debian+xfce4+vnc+firefox+vagex
2012年2月14日
1 2 |
apt-get update apt-get -y install xfce4 vnc4server |
下载vagex插件
1 |
wget http://vagex.com/vagex_add_on-1.2.3.xpi |
下载及编译安装火狐
1 2 3 4 5 |
apt-get -y install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm bzip2 libidl-dev zip 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!' |
安装flash插件
1 |
apt-get -y install flashplugin-nonfree |
首次运行vncserver设置密码
1 |
vncserver |
修改密码
1 |
vncpasswd |
修改生成的配置文件
1 |
vi /root/.vnc/xstartup |
改为
1 2 |
#!/bin/sh /usr/bin/startxfce4 |
给xstartup加上权限
1 |
chmod +x ~/.vnc/xstartup |
设置vncserver开机启动
1 |
vim /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 2 |
chmod +x /etc/init.d/vncserver update-rc.d vncserver defaults |
然后重启系统手动设置火狐及vagex插件
声明: 本文采用 BY-NC-SA 协议进行授权. 转载请注明转自: debian+xfce4+vnc+firefox+vagex