hostodo VPS debian-6.0-x86-minimal 安装vnc桌面、firefox及adobe flash player插件

*****桌面环境安装*****

#添加网易源 源下载地址(每4小时更新,下文中的源已过期,需要的请重新下载):http://mirrors.163.com/.help/sources.list.squeeze
vi /etc/apt/sources.list

deb http://mirrors.163.com/debian/ squeeze main non-free contrib
deb http://mirrors.163.com/debian/ squeeze-updates main non-free contrib
deb http://mirrors.163.com/debian/ squeeze-lts main non-free contrib
deb-src http://mirrors.163.com/debian/ squeeze main non-free contrib
deb-src http://mirrors.163.com/debian/ squeeze-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ squeeze-lts main non-free contrib
deb http://mirrors.163.com/debian-security/ squeeze/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ squeeze/updates main non-free contrib
deb http://mirrors.163.com/debian-backports/ squeeze-backports main contrib non-free
deb-src http://mirrors.163.com/debian-backports/ squeeze-backports main contrib non-free

#更新安装包
apt-get update

#安装aptitude
apt-get install aptitude

#安装中文字体
aptitude install xfonts-intl-chinese xfonts-wqy ttf-wqy-zenhei ttf-wqy-microhei

#安装xfce4桌面环境
aptitude install –without-recommends xorg xfce4 alsa-base alsa-utils cpufrequtils gamin xdg-utils desktop-base gnome-brave-icon-theme dmz-cursor-theme

#安装远程访问软件 vnc4server
aptitude install vnc4server

#安装完毕之后,输入命令vncserver,启动VNC,首次启动会要求你输入两遍访问控制密码
vnc4server

#修改VNC 的 xstartup 启动文件,否则不显示 Xfce 的图像界面,而是灰屏
vi ~/.vnc/xstartup
#xstartup 文件内容如下:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
[ -x /etc/X11/xinit/xinitrc ] && exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
xfce4-session &

vi 操作:复制以上文本,打开xstartup文件后,先按 Esc 然后依次按 dG(注意大小写)清空文本,再按 i 键,右键粘贴进去。

#给 xstartup 赋予可执行权限
chmod +x ~/.vnc/xstartup

#杀死已运行的vncserver进程
vncserver -kill :1

#重新启动vnc服务
vncserver

 

*****firefox及adobe flash player插件安装*****

#加入firefox及flashplayer源
deb http://packages.linuxmint.com debian import
deb http://www.debian-multimedia.org squeeze main non-free

# 更新安装包 :
aptitude update

#安装 firefox & 中文语言包 & flashplayer deb package
aptitude install firefox firefox-l10n-zh flashplayer-mozilla

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据