CentOS + VNC + Openbox

废话不说

1680x1120_1587001741367083.jpg
$ sudo yum -y install epel-release
$ sudo yum -y install openbox
$ sudo yum -y install xfce4-terminal tint2 network-manager-applet
$ sudo yum -y install ibus ibus-libpinyin cjkuni-ukai-fonts
$ sudo yum -y install tigervnc-server
$ vncpasswd
$ vncserver :1 -depth 32 -geometry 1280x760 
$ vncserver -list
$ vim .vnc/xstartup 
#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
/etc/X11/xinit/xinitrc
# Assume either Gnome or KDE will be started by default when installed
# We want to kill the session automatically in this case when user logs out. In case you modify
# /etc/X11/xinit/Xclients or ~/.Xclients yourself to achieve a different result, then you should
# be responsible to modify below code to avoid that your session will be automatically killed
if [ -e /usr/bin/gnome-session -o -e /usr/bin/startkde ]; then
    vncserver -kill $DISPLAY
fi
ibus-daemon -d -x &
tint2 &
nm-applet  &
xfce4-terminal &
openbox-session &
: wq
$ vncserver -kill :1
Killing Xvnc process ID 102120
$ vncserver :1 -depth 32 -geometry 1280x760 

安装浏览器:

$ sudo yum -y install firefox
$ sudo vim /etc/yum.repos.d/google-chrome.repo

[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=0
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

:wq
$ sudo yum -y install google-chrome-stable


pdf 阅读器:zathura
看图软件: ristretto

$ sudo yum -y install zathura-pdf-poppler
$ sudo yum -y install ristretto 
$ vim ~/.bashrc
export XMODIFIERS='@im=ibus'
:wq

先酱。

你可能感兴趣的:(CentOS + VNC + Openbox)