自宅サーバにVNCサーバ構築時のメモ
インストール
apt-getでインストール
bashでコマンド登録
vi .bashrc # VNC alias vncs='vncserver :1 -geometry 1016x704 -depth 16' alias vnck='vncserver -kill :1' :wq source .bashrcこれで、Telnetでログインして、vncsでVNCサーバの起動、vnckでVNCサーバのKillを行う。
Xの設定
cd .vnc vi xstartup !/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc#[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
#[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &xrdb $HOME/.Xresources
LANG=ja_JP.ujis
export LANGxsetroot -solid grey
kinput2 &
exec gnome-session &
:wq
これでデスクトップがGnomeになります。
コメントする