host-pc : 192.168.0.100
target-board : 192.168.0.200
[ host-pc ]
apt-get install nfs-kernel-server nfs-common
vi /etc/exports
/nfs-folder 192.168.0.200(rw,no_root_squash,sync,no_subtree_check)
service nfs-kernel-server restart
[ target board ]
mount -t nfs -o nolock 192.168.0.100:/nfs-folder /mnt
2016년 5월 19일 목요일
2016년 3월 29일 화요일
Symbol 'V4L2_PIX_FMT_YUV422P' could not be resolved on eclipse cdt
cp linux mechine ( /usr/include/linux/* ) windows mechine cygwin/usr/include/
project select - right mouse click - Index -> Search For Unresolved Includes
project select - right mouse click - Index -> Search For Unresolved Includes
2016년 3월 24일 목요일
description of linux library
/lib/libfoo.so # symlink to shared object
/lib/libfoo.so.1 # symlink to shared object
/lib/libfoo.so.1.0.1 # shared object
/lib/libfoo.a # static library
/lib/libfoo.la # libtool library
/lib/libfoo.so.1 # symlink to shared object
/lib/libfoo.so.1.0.1 # shared object
/lib/libfoo.a # static library
/lib/libfoo.la # libtool library
2016년 1월 21일 목요일
2016년 1월 18일 월요일
nfs mount failure with ubuntu
mount: wrong fs type, bad option, bad superblock on 192.168.0.62:/home/musesoft/work2,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
apt-get install nfs-common
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
apt-get install nfs-common
2015년 12월 30일 수요일
timezone or localtime setting with ubuntu
ls /usr/share/zoneinfo
ls /usr/share/zoneinfo/Asia
ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
or
tzselect
5)Asia
23)Korea(South)
vi /home/musesoft/.profile
TZ='Asia/Seoul'; export TZ
vi /root/.profile
TZ='Asia/Seoul'; export TZ
date
ls /usr/share/zoneinfo/Asia
ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
or
tzselect
5)Asia
23)Korea(South)
vi /home/musesoft/.profile
TZ='Asia/Seoul'; export TZ
vi /root/.profile
TZ='Asia/Seoul'; export TZ
date
ntp setting with ubuntu
apt-get install ntp
## option
vi /etc/ntp.conf
pool.ntp.org # add
service ntp restart
## option
vi /etc/ntp.conf
pool.ntp.org # add
service ntp restart
2015년 12월 8일 화요일
samba client install & conf with ubuntu
os(smb client) : ubuntu 12.04
os(smb server) : centos 6.5
apt-get install smbclient cifs-utils
smbclient -L smbserverip -U%
mount -t cifs //smbserverip/museshare /mnt/sharefolder -o user=user,password=password,workgroup=workgroup,ip=smbserverip,iocharset=utf8
vi /etc/fstab
//smbserverip/museshare /mnt/sharefolder -o user=user,password=password,workgroup=workgroup,ip=smbserverip,iocharset=utf8
os(smb server) : centos 6.5
apt-get install smbclient cifs-utils
smbclient -L smbserverip -U%
mount -t cifs //smbserverip/museshare /mnt/sharefolder -o user=user,password=password,workgroup=workgroup,ip=smbserverip,iocharset=utf8
vi /etc/fstab
//smbserverip/museshare /mnt/sharefolder -o user=user,password=password,workgroup=workgroup,ip=smbserverip,iocharset=utf8
2015년 10월 13일 화요일
dual nic setup for centos
## WAN
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
IPADDR=118.x.x.x
NETMASK=255.0.0.0
GATEWAY=118.x.x.x
DNS1=8.8.8.8
DNS2=8.8.4.4
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
HWADDR=x:x:x:x:x
NM_CONTROLLED=no
USERCTL=no
## NAT
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.x
NETMASK=255.255.255.0
#GATEWAY=192.168.0.1 # this point
DNS1=8.8.8.8
DNS2=8.8.4.4
DEFROUTE=no # this point
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth1"
HWADDR=x:x:x:x:x
NM_CONTROLLED="no"
USERCTL=no
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
IPADDR=118.x.x.x
NETMASK=255.0.0.0
GATEWAY=118.x.x.x
DNS1=8.8.8.8
DNS2=8.8.4.4
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
HWADDR=x:x:x:x:x
NM_CONTROLLED=no
USERCTL=no
## NAT
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.x
NETMASK=255.255.255.0
#GATEWAY=192.168.0.1 # this point
DNS1=8.8.8.8
DNS2=8.8.4.4
DEFROUTE=no # this point
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth1"
HWADDR=x:x:x:x:x
NM_CONTROLLED="no"
USERCTL=no
2015년 9월 17일 목요일
2015년 9월 15일 화요일
samba install & conf with ubuntu
## linux
useradd username
passwd username
apt-get install samba
smbpasswd -a username
vim /etc/samba/smb.conf
[sharename]
comment = Samba Server
path = /home/username
valid users = username
writable = yes
public = yes
create mask = 0777
directory mask = 0777
service samba restart
service smbd restart
## windows
\\192.168.0.x
login
useradd username
passwd username
apt-get install samba
smbpasswd -a username
vim /etc/samba/smb.conf
[sharename]
comment = Samba Server
path = /home/username
valid users = username
writable = yes
public = yes
create mask = 0777
directory mask = 0777
service smbd restart
## windows
\\192.168.0.x
login
2015년 9월 11일 금요일
Error found when loading /root/.profile
Error found when loading /root/.profile
stdin: is not a tty
as a result the session will not be configured correctly
==>
vi /root/.profile
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
tty -s && mesg n
#mesg n
stdin: is not a tty
as a result the session will not be configured correctly
==>
vi /root/.profile
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
tty -s && mesg n
#mesg n
2015년 9월 10일 목요일
7z with ubuntu
apt-get install p7zip
unzip : 7zr x filename.7z
zip : 7zr a filename.7z filename1 test2 test3
unzip : 7zr x filename.7z
zip : 7zr a filename.7z filename1 test2 test3
2015년 9월 2일 수요일
2015년 9월 1일 화요일
snmp with centos
yum install net-snmp net-snmp-utils
vi /etc/snmp/snmpd.conf
# Map 'idv90we3rnov90wer' community to the 'ConfigUser'
# Map '209ijvfwer0df92jd' community to the 'AllUser'
# sec.name source community
com2sec ConfigUser default idv90we3rnov90wer
com2sec AllUser default 209ijvfwer0df92jd
# Map 'ConfigUser' to 'ConfigGroup' for SNMP Version 2c
# Map 'AllUser' to 'AllGroup' for SNMP Version 2c
# sec.model sec.name
group ConfigGroup v2c ConfigUser
group AllGroup v2c AllUser
# Define 'SystemView', which includes everything under .1.3.6.1.2.1.1 (or .1.3.6.1.2.1.25.1)
# Define 'AllView', which includes everything under .1
# incl/excl subtree
view SystemView included .1.3.6.1.2.1.1
view SystemView included .1.3.6.1.2.1.25.1.1
view AllView included .1
# Give 'ConfigGroup' read access to objects in the view 'SystemView'
# Give 'AllGroup' read access to objects in the view 'AllView'
# context model level prefix read write notify
access ConfigGroup "" any noauth exact SystemView none none
access AllGroup "" any noauth exact AllView none none
/etc/init.d/snmpd restart
vi /etc/snmp/snmpd.conf
# Map 'idv90we3rnov90wer' community to the 'ConfigUser'
# Map '209ijvfwer0df92jd' community to the 'AllUser'
# sec.name source community
com2sec ConfigUser default idv90we3rnov90wer
com2sec AllUser default 209ijvfwer0df92jd
# Map 'ConfigUser' to 'ConfigGroup' for SNMP Version 2c
# Map 'AllUser' to 'AllGroup' for SNMP Version 2c
# sec.model sec.name
group ConfigGroup v2c ConfigUser
group AllGroup v2c AllUser
# Define 'SystemView', which includes everything under .1.3.6.1.2.1.1 (or .1.3.6.1.2.1.25.1)
# Define 'AllView', which includes everything under .1
# incl/excl subtree
view SystemView included .1.3.6.1.2.1.1
view SystemView included .1.3.6.1.2.1.25.1.1
view AllView included .1
# Give 'ConfigGroup' read access to objects in the view 'SystemView'
# Give 'AllGroup' read access to objects in the view 'AllView'
# context model level prefix read write notify
access ConfigGroup "" any noauth exact SystemView none none
access AllGroup "" any noauth exact AllView none none
/etc/init.d/snmpd restart
2015년 8월 20일 목요일
samba server install & conf with centos
yum install samba
chkconfig smb on
mkdir /home/sharename
useradd sharename
passwd sharename
smbpasswd -a sharename ( exist user )
chmod 777 /home/sharename
/etc/samba/smb.conf ( add )
[sharename]
comment = sharename
path = /home/sharename
public = yes
writable = yes
write list = sharename KK
cresate mask = 0777
directory mask = 0777
iptables -I INPUT 4 -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
iptables -I INPUT 5 -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT
iptables -I INPUT 6 -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
/etc/init.d/iptables save
/etc/init.d/iptables restart
/etc/init.d/smb restart
chkconfig smb on
mkdir /home/sharename
useradd sharename
passwd sharename
smbpasswd -a sharename ( exist user )
chmod 777 /home/sharename
/etc/samba/smb.conf ( add )
[sharename]
comment = sharename
path = /home/sharename
public = yes
writable = yes
write list = sharename KK
cresate mask = 0777
directory mask = 0777
iptables -I INPUT 4 -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
iptables -I INPUT 5 -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT
iptables -I INPUT 6 -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
/etc/init.d/iptables save
/etc/init.d/iptables restart
/etc/init.d/smb restart
2015년 8월 17일 월요일
wireless static set for centos by wpa_supplicant
centos : Linux localhost.localdomain 2.6.32-504.23.4.el6.x86_64 #1 SMP Tue Jun 9 20:57:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
1. wpa_passphrase ssidname pskpassword
2. vi /etc/sysconfig/wpa_supplicant
# Use the flag "-i" before each of your interfaces, like so:
# INTERFACES="-ieth1 -iwlan0"
INTERFACES="-iwlan0"
# Use the flag "-D" before each driver, like so:
# DRIVERS="-Dwext"
DRIVERS=""
# Other arguments
# -u Enable the D-Bus interface (required for use with NetworkManager)
# -f Log to /var/log/wpa_supplicant.log
# -P Write pid file to /var/run/wpa_supplicant.pid
# required to return proper codes by init scripts (e.g. double "start" action)
# -B to daemonize that has to be used together with -P is already in wpa_supplicant.init.d
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid"
3. vi /etc/sysconfig/network-scripts/ifcfg-wlan0
DEVICE=wlan0
TYPE=Wireless
ONBOOT=yes
NM_CONTROLLED=no
HWADDR=30:10:B3:04:7C:1B
BOOTPROTO=static
BROADCAST=xxx.xxx.xxx.xxx
IPADDR=xxx.xxx.xxx.xxx
PREFIX=24
GATEWAY=192.168.0.1
DNS1=xxx.xxx.xxx.xxx
IPV6INIT=no
NETWORKING_IPV6=no
ESSID="ssidname"
4. /etc/init.d/network restart
1. wpa_passphrase ssidname pskpassword
2. vi /etc/sysconfig/wpa_supplicant
# Use the flag "-i" before each of your interfaces, like so:
# INTERFACES="-ieth1 -iwlan0"
INTERFACES="-iwlan0"
# Use the flag "-D" before each driver, like so:
# DRIVERS="-Dwext"
DRIVERS=""
# Other arguments
# -u Enable the D-Bus interface (required for use with NetworkManager)
# -f Log to /var/log/wpa_supplicant.log
# -P Write pid file to /var/run/wpa_supplicant.pid
# required to return proper codes by init scripts (e.g. double "start" action)
# -B to daemonize that has to be used together with -P is already in wpa_supplicant.init.d
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid"
3. vi /etc/sysconfig/network-scripts/ifcfg-wlan0
DEVICE=wlan0
TYPE=Wireless
ONBOOT=yes
NM_CONTROLLED=no
HWADDR=30:10:B3:04:7C:1B
BOOTPROTO=static
BROADCAST=xxx.xxx.xxx.xxx
IPADDR=xxx.xxx.xxx.xxx
PREFIX=24
GATEWAY=192.168.0.1
DNS1=xxx.xxx.xxx.xxx
IPV6INIT=no
NETWORKING_IPV6=no
ESSID="ssidname"
4. /etc/init.d/network restart
2015년 7월 30일 목요일
HW info for linux
dmidecode -t typenumber
:: DMI table decoder
Type Information
--------------------------------------------
0 BIOS
1 System
2 Baseboard
3 Chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System Slots
10 On Board Devices
11 OEM Strings
12 System Configuration Options
13 BIOS Language
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-bit Memory Error
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security
25 System Power Controls
26 Voltage Probe
27 Cooling Device
28 Temperature Probe
29 Electrical Current Probe
30 Out-of-band Remote Access
31 Boot Integrity Services
32 System Boot
33 64-bit Memory Error
34 Management Device
35 Management Device Component
36 Management Device Threshold Data
37 Memory Channel
38 IPMI Device
39 Power Supply
40 Additional Information
41 Onboard Devices Extended Information
42 Management Controller Host Interface
:: DMI table decoder
Type Information
--------------------------------------------
0 BIOS
1 System
2 Baseboard
3 Chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System Slots
10 On Board Devices
11 OEM Strings
12 System Configuration Options
13 BIOS Language
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-bit Memory Error
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security
25 System Power Controls
26 Voltage Probe
27 Cooling Device
28 Temperature Probe
29 Electrical Current Probe
30 Out-of-band Remote Access
31 Boot Integrity Services
32 System Boot
33 64-bit Memory Error
34 Management Device
35 Management Device Component
36 Management Device Threshold Data
37 Memory Channel
38 IPMI Device
39 Power Supply
40 Additional Information
41 Onboard Devices Extended Information
42 Management Controller Host Interface
피드 구독하기:
글 (Atom)