Различия
Здесь показаны различия между двумя версиями данной страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
dev:centos:textmode [2013/04/19 15:38] jamis7005 [serial ports] |
dev:centos:textmode [2013/05/06 11:22] (текущий) jamis7005 [disable daemons] |
||
---|---|---|---|
Строка 5: | Строка 5: | ||
http://isoredirect.centos.org/centos/6/isos/ | http://isoredirect.centos.org/centos/6/isos/ | ||
- | ===== network and mc ===== | + | ===== network (static)===== |
+ | <code> | ||
+ | # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | ||
+ | DEVICE=eth0 | ||
+ | BOOTPROTO=none | ||
+ | ONBOOT=yes | ||
+ | HWADDR=06:01:78:a7:00:33 | ||
+ | NETMASK=255.255.255.0 | ||
+ | IPADDR=192.168.0.10 | ||
+ | TYPE=Ethernet | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | # vi /etc/sysconfig/network | ||
+ | NETWORKING=yes | ||
+ | NETWORKING_IPV6=no | ||
+ | HOSTNAME=jroboplc.centos | ||
+ | GATEWAY=192.168.0.1 | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | # vi /etc/resolv.conf | ||
+ | nameserver 192.168.0.1 | ||
+ | </code> | ||
+ | |||
+ | # service network restart | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== network (dhcp) and mc ===== | ||
Строка 20: | Строка 50: | ||
[[http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-dhcp-configuring-client.html|(src1)]] | [[http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-dhcp-configuring-client.html|(src1)]] | ||
[[http://www.dizwell.com/2011/07/11/network-configuration-in-minimal-linux-installs/|(src2)]] | [[http://www.dizwell.com/2011/07/11/network-configuration-in-minimal-linux-installs/|(src2)]] | ||
- | + | ===== add user plc===== | |
- | ===== add users ===== | + | |
# adduser plc | # adduser plc | ||
# passwd plc | # passwd plc | ||
- | # adduser admin | + | ===== disable daemons ===== |
- | # passwd admin | + | # chkconfig --del auditd |
+ | # chkconfig --del postfix | ||
+ | # chkconfig --del netfs | ||
+ | # chkconfig --del nfslock | ||
+ | # chkconfig --del fcoe | ||
+ | # chkconfig --del ip6tables | ||
+ | # chkconfig --del iscsi | ||
+ | # chkconfig --del iscsid | ||
+ | # chkconfig --del lldpad | ||
+ | # chkconfig --del lvm2-monitor | ||
+ | # chkconfig --del rpcbind | ||
+ | # chkconfig --del rpcidmapd | ||
+ | # chkconfig --del rpcgssd | ||
+ | # chkconfig --del udev-post | ||
+ | ===== power button shutdown ===== | ||
+ | # yum -y install acpid | ||
+ | # service acpid start | ||
+ | # chkconfig acpid on | ||
===== install shh ===== | ===== install shh ===== | ||
Строка 72: | Строка 117: | ||
===== serial ports ===== | ===== serial ports ===== | ||
- | # dmesg | egrep --color 'serial|ttyS | + | [[http://www.cyberciti.biz/hardware/5-linux-unix-commands-for-connecting-to-the-serial-console/|(serial)]] |
- | # chmod 666 /dev/ttyS* | + | [[http://ubuntuforums.org/showthread.php?t=1203883|(permissions)]] |
+ | # dmesg | egrep --color 'serial|ttyS' | ||
+ | # usermod -a -G dialout plc | ||
test post access: | test post access: | ||
# yum install setserial | # yum install setserial | ||
Строка 87: | Строка 134: | ||
| | ||
| | ||
+ | |||
+ | ===== install java ===== | ||
+ | # mkdir /media/asutp/jvm | ||
+ | # cp .../jre-xxx.tar.gz /media/asutp/jvm | ||
+ | # cd /media/asutp/jvm | ||
+ | # tar -xzf jre-xxx.tar.gz | ||
+ | # ln -s jre-xxx jre | ||
+ | # echo "export JRE_HOME=/media/asutp/jvm/jre" > /etc/profile.d/java.sh | ||
+ | # echo "export PATH=\$PATH:\$JRE_HOME/bin" >> /etc/profile.d/java.sh | ||
+ | |||
+ | |||
+ | |||
| | ||
===== RpSvrTcp port ===== | ===== RpSvrTcp port ===== |