debian超省资源挂vagex一键安装包+教程
2012年4月2日
1 |
apt-get update |
1 |
apt-get -q -y --force-yes install vnc4server xterm jwm mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm bzip2 libidl-dev zip |
1 |
wget http://vagex.com/vagex_add_on-1.2.3.xpi |
1 2 3 4 |
wget http://releases.mozilla.org/pub/firefox/releases/3.6/source/firefox-3.6.source.tar.bz2 tar jxvf firefox*.tar.bz2 cd mozilla-* ./configure --enable-application=browser && make && make install && echo '========================'$'\n''install Firefox is done!' |
1 |
apt-get -y install flashplugin-nonfree |
1 |
vncserver |
1 |
vi ~/.vnc/xstartup |
添加下面代码
1 2 |
startjwm & firefox --display=:1 |
1 |
chmod +x ~/.vnc/xstartup |
1 |
vi /etc/init.d/vncserver |
添加下面代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
### BEGIN INIT INFO # Provides: vncserver # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start daemon at boot time # Description: Enable service provided by daemon. ### END INIT INFO PATH="$PATH:/usr/X11R6/bin/" # The Username:Group that will run VNC export USER="root" #${RUNAS} # The display that VNC will use DISPLAY="1" # Color depth (between 8 and 32) DEPTH="16" # The Desktop geometry to use. #GEOMETRY="x" GEOMETRY="800x600" #You Can Choice GEOMETRY="1024x768" && GEOMETRY="1280x1024" # The name that the VNC Desktop will have. NAME="Vncserver" OPTIONS="-name ${NAME} -depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}" . /lib/lsb/init-functions case "$1" in start) su ${USER} -c "/usr/bin/vncserver ${OPTIONS}" ;; stop) su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}" ;; restart) $0 stop $0 start ;; esac exit 0 |
1 |
chmod +x /etc/init.d/vncserver |
1 |
update-rc.d vncserver defaults |
1 |
reboot |
然后手动设置插件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
root@s4:~# ps -ax PID TTY STAT TIME COMMAND 1 ? Ss 0:01 init [2] 1351 ? S 0:00 /usr/sbin/syslogd --no-forward 1361 ? Ss 0:00 /usr/bin/dbus-daemon --system 1393 ? Ss 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6 1424 ? Ss 0:00 /usr/sbin/cron 12245 ? S 0:01 Xvnc4 :1 -desktop Vncserver -auth /root/.Xauthority -geometry 800x600 -depth 16 -rfbwait 30000 -rfbauth /root/.vnc/ 12247 ? S 0:00 /bin/sh /root/.vnc/xstartup 12248 ? S 0:00 x-window-manager 12250 ? S 0:00 /bin/sh /usr/local/bin/firefox --display=:1 12265 ? S 0:00 /bin/sh /usr/local/lib/firefox-3.6/run-mozilla.sh /usr/local/lib/firefox-3.6/firefox-bin --display=:1 12269 ? Sl 1:54 /usr/local/lib/firefox-3.6/firefox-bin --display=:1 12279 ? Ss 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session 12280 ? S 0:00 dbus-launch --autolaunch 114de641cf6f5b879ebfb3ca0001c1f0 --binary-syntax --close-stderr 12282 ? S 0:00 /usr/lib/libgconf2-4/gconfd-2 13473 ? Ss 0:00 dropbear -i 13474 pts/0 Ss 0:00 -bash 13477 pts/0 R+ 0:00 ps ax |
1 2 3 4 5 |
root@s4:~# free -m total used free shared buffers cached Mem: 512 276 235 0 0 0 -/+ buffers/cache: 276 235 Swap: 0 0 0 |
一键安装包
1 2 |
wget http://www.autoinstallscript.com/AutojwmDebian.sh chmod +x AutojwmDebian.sh && ./AutojwmDebian.sh |
声明: 本文采用 BY-NC-SA 协议进行授权. 转载请注明转自: debian超省资源挂vagex一键安装包+教程