Jump to content

Recommended Posts

Acest tutorial va ajuta sa configurati VNC Server gratis pe Ubuntu 14.04 cu software-ul VNC software, TightVNC.

 

1: Instalm componentele

 

Avem nevoie de urmatoarele componentele pentru a configura un VNC Server corect.

 

  • xOrg
  • Un desktop (LXDE)
  • Ubuntu VNC server (TightVNC)
sudo apt-get install xorg lxde-core tightvncserver

2: Configurare VNC

Configuram VNC si vom alege o parola pentru vnc server cu care ne vom conecta.

This password is limited to 8 characters in length. Longer passwords will be truncated

tightvncserver :1

Next, vom modifica fisierul config din /root/.vnc/ deoarece VNC nu stie ca trebuie sa porneasca Desktop-ul LXDE

nano ~/.vnc/xstartup

Si acuma modificam

  • Stergem # inainte de #x-window-manager &
  • Adaugam linia lxterminal &
  • Adaugam linia /usr/bin/lxsession -s LXDE &

Fisierul config acuma ar trebui sa arate :

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
lxterminal &
/usr/bin/lxsession -s LXDE &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession

Salvam fisierul cu Ctrl + O si iesim din NANO cu  Ctrl + X

 

3: Restart VNC

Ca sa restartam VNC-ul trebuie sa-l inchidem cu:

tightvncserver -kill :1

 

Si sa-l pornim din nou cu:

vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565

4: Conecteaza-te la noul tau VNC Server

Pentru a te contecta la VNC Server ai nevoie de un VNC Client, recomand VNC Viewer. Acuma te poti conecta cu ip-ul de la server si portul :1 (exemplu:192.168.1.1:1) si folosesti parola de la punctul 3.

 

Eu am avut nevoie de VNC Server pentru aplicatia Hitleap.

Edited by Spacetrip
  • Upvote 5
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...