Skip to content
Snippets Groups Projects
Commit 2cc88408 authored by Emanuele Petagna's avatar Emanuele Petagna
Browse files

fixing syntax..

parent fcc1b72f
No related branches found
No related tags found
No related merge requests found
...@@ -689,15 +689,15 @@ it depends on your SSH Client. ...@@ -689,15 +689,15 @@ it depends on your SSH Client.
1. SSH login to your OpenStack VM 1. SSH login to your OpenStack VM
2. install XFCE4: `sudo apt-get install ubuntu-gnome-desktop gnome-icon-theme tigervnc-standalone-server` 2. install XFCE4: `sudo apt-get install ubuntu-gnome-desktop gnome-icon-theme tigervnc-standalone-server`
3. create a .vnc folder in your user home: `mkdir .vnc` 3. create a .vnc folder in your user home: `mkdir .vnc`
4. create xstartup file in `~/.vnc/` and paste the following content: 4. create xstartup file in `~/.vnc/` and paste the following content::
::
#!/bin/sh #!/bin/sh
# Start Gnome 3 Desktop # Start Gnome 3 Desktop
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -iconic & vncconfig -iconic &
dbus-launch --exit-with-session gnome-session & dbus-launch --exit-with-session gnome-session &
::
5. run `vncpasswd` and set VNC password (you can skip the viewer password) 5. run `vncpasswd` and set VNC password (you can skip the viewer password)
6. run `vncserver -geometry WIDTHxHEIGHT -localhost yes -rfbport PORT`, replace **WIDTH** and **HEIGHT** with 6. run `vncserver -geometry WIDTHxHEIGHT -localhost yes -rfbport PORT`, replace **WIDTH** and **HEIGHT** with
desired values (ex: 1024x768) and PORT (ex: 5901, default port) desired values (ex: 1024x768) and PORT (ex: 5901, default port)
...@@ -708,15 +708,15 @@ it depends on your SSH Client. ...@@ -708,15 +708,15 @@ it depends on your SSH Client.
When you do not need anymore VNC you can stop it; on your OpenStack VM: When you do not need anymore VNC you can stop it; on your OpenStack VM:
1. run `vncserver --list`, you should get a list of active VNC displays 1. run `vncserver --list`, you should get a list of active VNC displays::
::
testuser@test-gui:~$ vncserver --list testuser@test-gui:~$ vncserver --list
TigerVNC server sessions: TigerVNC server sessions:
X DISPLAY # RFB PORT # PROCESS ID X DISPLAY # RFB PORT # PROCESS ID
:2 5902 36811 :2 5902 36811
::
2. kill the proper VNC display: `vncserver -kill :DISPLAY`, replace **DISPLAY** with correct value (ex: 2 in our example) 2. kill the proper VNC display: `vncserver -kill :DISPLAY`, replace **DISPLAY** with correct value (ex: 2 in our example)
3. logout 3. logout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment