Kurulumu başlatmadan önce sistemi güncelle
sudo apt-get update && sudo apt-get upgrade
Güncellemeden sonra gerekli eklentileri yükle
sudo apt-get install ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
Kurulum esnasında
Configuration file '/etc/init/tty1.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** tty1.conf (Y/I/N/O/D/Z) [default=N] ?
Y gir ve okeyle.
Vncserver kurulumu için
sudo apt install xfce4 xfce4-goodies tightvncserver
Kurulum bittikten sonra vncserver :1 komutunu girerek vncserver’i başlat (ilk kez başlatanlar için şifre girmeni isteyecek). Bağlanmak içinse ipadresi:5901 port adresi ile giriş yap
NOT: Ubuntu 16.04 versiyonuna vncserver ile giriş yaptıktan sonra gri ekran açılıyor. Bu sorun basitce çözülebiliyor. Terminal’den sudo nano ~/.vnc/xstartup açılan sayfada en altta ekle tamamdır.
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
Sunucu her kapanıp açıldığında vncserver otomatik başlaması için crontab ekleme yapalım.
Terminalden crontab -e gir ve editör seç (genelde otomatik seçilir).
crontab -e
no crontab for root - using an empty one
Select an editor. To change later, run 'select-editor'.
1. /bin/nano 2. /usr/bin/mg
3. /usr/bin/vim.basic
Choose 1-3 [1]:
Tamam de ve açılan sayfada en altta @reboot /usr/bin/vncserver :1 ekle
Sonuç şu şekilde olacak
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
@reboot /usr/bin/vncserver :1
Son olarak vncserver belirli bi ekran büyüklügünde açmak istersen
örnek :
@reboot /usr/bin/vncserver :1 -geometry 1440x900
olarak degiştir