Skip to content

Instantly share code, notes, and snippets.

@linkarys
Last active January 3, 2016 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linkarys/8451044 to your computer and use it in GitHub Desktop.
Save linkarys/8451044 to your computer and use it in GitHub Desktop.
centos
#ssh
ssh root@ip
# 1. 安装桌面系统
yum groupinstall "Desktop"
yum groupinstall "X Window System"
# 启动gnome
startx
# 然后按下Ctrl+Alt+F2
如果要开杨自动启动gnome,则编辑/etc/inittab文件,将
id:3:initdefault
修改为
id:5:initdefault
重启后生效。
# 安装firefox
yum install firefox
# fix auto start
ln -s /etc/init.d/smb /etc/rc3.d/S96smb & ln -s /etc/init.d/cfmx8-atii /etc/rc3.d/S96cfmx8-atii & ln -s /opt/coldfusion10/dashboard-dev/bin/coldfusion /etc/rc3.d/S94ColdF10Dash-dev & ln -s /opt/coldfusion10/atii-dev/bin/coldfusion /etc/rc3.d/S93ColdF10ATII-dev & ln -s /etc/init.d/mysqld-dev-core-55 /etc/rc3.d/S91mysqld-dev-core-55 & ln -s /etc/init.d/mysqld-dev-core-56 /etc/rc3.d/S91mysqld-dev-core-56
#reboot
reboot
# fixed network
sudo iptables -I INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT
service iptables save
service iptables restart
vi /etc/resolv.conf
#append fllowing lines
nameserver 8.8.8.8
nameserver 8.8.4.4
service network restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment