CentOS 6.3 :: Setup VNC Server

39 sec read

:: What is vnc
VNC is a graphical desktop sharing system that uses the remote framebuffer protocol to remotely control another computer.

 
:: How to install vnc server in CentOS 6.3

yum groupinstall Desktop
yum install tigervnc-server xorg-x11-fonts-Type1

 
:: How to setup vnc server in CentOS 6.3
+ Configure VNC Server

vi /etc/sysconfig/vncservers
VNCSERVERS="1:myusername"
VNCSERVERARGS[1]="-geometry 1024x600"

if you used multi-user, setup like these:

VNCSERVERS="1:myusername 2:otheruser"
VNCSERVERARGS[1]="-geometry 1024x600"
VNCSERVERARGS[2]="-geometry 1024x600"

+ Configure vnc user

# su - myusername
$ vncpassword
$ vi .vnc/xstartup

## add some configuration like these

#!/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" &
exec gnome-session &
$ chmod 755 .vnc/xstartup

+ Restarting vnc and start vncserver when booting

/etc/init.d/vncserver restart
chkconfig vncserver on

 
:: Connect to vnc server
you can using Remmina to connect vnc.

hostname: localhost:5901
user: myusername
pass: mypassword

 
:: Link
+ Google
+ rbgeek

How to fix problem with the editor ‘vi’

:: git error with vi error: There was a problem with the editor 'vi'   :: how to fix the problem 0. check path...
sysadmin.id
10 sec read

Apache :: MP4 Streaming

:: How to Enable mp4 Streaming in Apache + Installing mod h624 streaming wget //h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -xzf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7/ ./configure --with-apxs=`which apxs2` make...
sysadmin.id
18 sec read

Apache :: Flash / FLV Streaming

:: How to Configure Apache for FLV Streaming + Installing mod_flvx wget //people.apache.org/~pquerna/modules/mod_flvx.c which apxs /usr/bin/apxs /usr/bin/apxs -cia mod_flvx.c + setup mod_flvx in http.conf...
sysadmin.id
15 sec read