Howto vncserver » Historie » Version 1
Jeremias Keihsler, 13.01.2017 10:50
1 | 1 | Jeremias Keihsler | h1. VNCServer |
---|---|---|---|
2 | |||
3 | h2. preliminary note |
||
4 | |||
5 | this information is taken from [[http://www.server-world.info/en/note?os=CentOS_6&p=x&f=2]] |
||
6 | |||
7 | h2. Install |
||
8 | |||
9 | [root@dlp ~]# |
||
10 | yum -y install tigervnc-server |
||
11 | |||
12 | h2. Config |
||
13 | |||
14 | [root@dlp ~]# |
||
15 | su - cent |
||
16 | # switch to a user you'd like to config VNC |
||
17 | |||
18 | [cent@dlp ~]$ |
||
19 | vncpasswd |
||
20 | # set VNC password |
||
21 | |||
22 | Password: |
||
23 | # input |
||
24 | |||
25 | Verify: |
||
26 | # confirm |
||
27 | |||
28 | [cent@dlp ~]$ |
||
29 | vncserver :1 |
||
30 | # start |
||
31 | |||
32 | xauth: creating new authority file /home/cent/.Xauthority |
||
33 | New 'dlp.server.world:1 (cent)' desktop is dlp.server.world:1 |
||
34 | Creating default startup script /home/cent/.vnc/xstartup |
||
35 | Starting applications specified in /home/cent/.vnc/xstartup |
||
36 | Log file is /home/cent/.vnc/dlp.server.world:1.log |
||
37 | [cent@dlp ~]$ |
||
38 | vncserver -kill :1 |
||
39 | # stop |
||
40 | |||
41 | Killing Xvnc process ID 2187 |
||
42 | [cent@dlp ~]$ |
||
43 | vi /home/cent/.vnc/xstartup |
||
44 | # |
||
45 | twm & |
||
46 | # last line: make it comment |
||
47 | |||
48 | exec gnome-session & |
||
49 | # run Gnome with display number '1', screen resolution '800x600', color depth '24' |
||
50 | |||
51 | [cent@dlp ~]$ |
||
52 | vncserver :1 -geometry 800x600 -depth 24 |