Howto vncserver » Historie » Version 2
Jeremias Keihsler, 13.01.2017 10:55
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 | 2 | Jeremias Keihsler | <pre> |
10 | yum -y install tigervnc-server |
||
11 | </pre> |
||
12 | 1 | Jeremias Keihsler | |
13 | h2. Config |
||
14 | |||
15 | 2 | Jeremias Keihsler | * switch to a user you'd like to config VNC |
16 | <pre> |
||
17 | su - cent |
||
18 | </pre> |
||
19 | * set VNC password |
||
20 | <pre> |
||
21 | vncpasswd |
||
22 | </pre> |
||
23 | * start |
||
24 | <pre> |
||
25 | vncserver :1 |
||
26 | </pre> |
||
27 | 1 | Jeremias Keihsler | |
28 | xauth: creating new authority file /home/cent/.Xauthority |
||
29 | New 'dlp.server.world:1 (cent)' desktop is dlp.server.world:1 |
||
30 | Creating default startup script /home/cent/.vnc/xstartup |
||
31 | Starting applications specified in /home/cent/.vnc/xstartup |
||
32 | Log file is /home/cent/.vnc/dlp.server.world:1.log |
||
33 | |||
34 | 2 | Jeremias Keihsler | * stop |
35 | <pre> |
||
36 | vncserver -kill :1 |
||
37 | </pre> |
||
38 | 1 | Jeremias Keihsler | Killing Xvnc process ID 2187 |
39 | 2 | Jeremias Keihsler | |
40 | .... JKE 2017-01-13 ... need some testing and rework. |
||
41 | check also http://keihsler.com/dokuwiki/barn/public/doku.php?id=vbip:software:operatingsystem:centos6:howto:vncserver |
||
42 | <pre> |
||
43 | 1 | Jeremias Keihsler | [cent@dlp ~]$ |
44 | vi /home/cent/.vnc/xstartup |
||
45 | # |
||
46 | twm & |
||
47 | # last line: make it comment |
||
48 | |||
49 | exec gnome-session & |
||
50 | 2 | Jeremias Keihsler | </pre> |
51 | 1 | Jeremias Keihsler | |
52 | 2 | Jeremias Keihsler | * run Gnome with display number '1', screen resolution '800x600', color depth '24' |
53 | <pre> |
||
54 | vncserver :1 -geometry 800x600 -depth 24 |
||
55 | </pre> |