• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install VNC Server on Ubuntu 17.04

1622

To install VNC Server on Ubuntu 17.04

VNC or ' Virtual Network Computing' server is a software is used to control and operate client machines which are connected to the same network, VNC is the graphical desktop sharing application used to control another computer. It makes management of files, software and settings on a remote server easy for users who find command interface little hard. In this tutorial, we will be setting up VNC on a Ubuntu 17.04.

Install VNC

Lets begin with the installation of the VNC server package on your Ubuntu machine by running the following command.

root@linuxhelp1:~# apt install vnc4server -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  xbase-clients
Suggested packages:
  vnc-java x11-xfs-utils
The following NEW packages will be installed:
  vnc4server xbase-clients
0 upgraded, 2 newly installed, 0 to remove and 42 not upgraded.
Need to get 1,626 kB of archives.
After this operation, 5,515 kB of additional disk space will be used.
.
.
.
update-alternatives: using /usr/bin/vnc4passwd to provide /usr/bin/vncpasswd (vncpasswd) in auto mode
update-alternatives: using /usr/bin/vnc4config to pro

vide /usr/bin/vncconfig (vncconfig) in auto mode
Processing triggers for man-db (2.7.6.1-2) ...

Once it is installed, set password for VNC as follows.

root@linuxhelp1:~# vncpasswd 
Password:
Verify:

After setting up the password start the VNC Server by triggering the following command.

root@linuxhelp1:~# vncserver :1
New ' linuxhelp1:1 (root)'  desktop is linuxhelp1:1
Creating default startup script /home/user1/.vnc/xstartup
Starting applications specified in /home/user1/.vnc/xstartup
Log file is /home/user1/.vnc/linuxhelp1:1.log

You can run the following command to kill VNC.

root@linuxhelp1:~# vncserver -kill :1
Killing Xvnc4 process ID 4352

If you want to edit the file run the following command.

root@linuxhelp1:~# vim .vnc/xstartup 
add the below line in the end of the file
exec /usr/bin/mate-session & 

Now start VNC server with custom resolution using following command.

root@linuxhelp1:~# vncserver :1 -geometry 800x600 -depth 24
New ' linuxhelp1:1 (root)'  desktop is linuxhelp1:1
Starting applications specified in /home/user1/.vnc/xstartup
Log file is /home/user1/.vnc/linuxhelp1:1.log

Now VNC Server is started now you can access this machine from another machine before that install VNC Viewer on that machine in-order to access VNC Server.

Tags:
matthew
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How does VNC technology work?

A

VNC uses the RFB protocol to transmit screen pixel data from one computer to another over a network, and send control events in return. It’s a simple yet powerful protocol invented by RealVNC.

Q

What is VNC Server?

A

VNC or ' Virtual Network Computing' server is a software is used to control and operate client machines which are connected to the same network, VNC is the graphical desktop sharing application used to control another computer. It makes management of files, software, and settings on a remote server easy for users who find command interface little hard. In this tutorial, we will be setting up VNC on an Ubuntu 17.04.

Q

How to install VNC Server on Ubuntu 17.04?

A

run the following command:
# apt install vnc4server

Q

How to set the password for VNC server?

A

Once it is installed, set password for VNC as follows:
# vncpasswd

Q

How does the server start with custom resolution?

A

Now start VNC server with custom resolution using the following command:
# vncserver :1 -geometry 800x600 -depth 24

Related Tutorials in How to install VNC Server on Ubuntu 17.04

Related Tutorials in How to install VNC Server on Ubuntu 17.04

How to install Meld tool in Ubuntu
How to install Meld tool in Ubuntu
Feb 25, 2017
How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to install GLib 2.0 on Ubuntu 17.04
How to install GLib 2.0 on Ubuntu 17.04
May 22, 2017
How to Install Android Emulator on Ubuntu 20.4.1
How to Install Android Emulator on Ubuntu 20.4.1
Jul 13, 2021
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018
How to install Genymotion 2.12.1 on Ubuntu 18.04
How to install Genymotion 2.12.1 on Ubuntu 18.04
Jul 9, 2018
How to Setup VNC Server on Linux Mint 20
How to Setup VNC Server on Linux Mint 20
Dec 22, 2020

Related Forums in How to install VNC Server on Ubuntu 17.04

Related Forums in How to install VNC Server on Ubuntu 17.04

Ubuntu
matthew class=
Failed to enable unit: Refusing to operate on linked unit file sshd.service
Apr 15, 2019
Ubuntu
mason class=
Passwd: You may not view or modify password information for root On Ubuntu 19.04
May 27, 2019
Ubuntu
isaac class=
/etc/apt/sources.list Permission denied
May 18, 2017
Ubuntu
yousuf class=
lsb_release command not working : Debian
Jan 18, 2018
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
NFS
luke class=
clnt_create: RPC: Program not registered
Apr 25, 2017
Apache
isaac class=
How to disable apache welcome page on Ubuntu
Dec 15, 2018

Related News in How to install VNC Server on Ubuntu 17.04

Related News in How to install VNC Server on Ubuntu 17.04

How To Install Mixxx on Ubuntu 16.04
How To Install Mixxx on Ubuntu 16.04
Oct 11, 2017
Ubuntu 17.04 released with greater expectations
Ubuntu 17.04 released with greater expectations
Apr 15, 2017
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Mar 1, 2017
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Sep 2, 2017
Ubuntu Unity is no more: One Linux dream has been axed
Ubuntu Unity is no more: One Linux dream has been axed
Apr 7, 2017
What’s next for Ubuntu Linux Desktop?
What’s next for Ubuntu Linux Desktop?
Apr 11, 2017
Say Hi to Ubuntu's new mascot
Say Hi to Ubuntu's new mascot
Mar 22, 2019
KDE Connect App was removed from Google Play Store and brought back in 24 hours
KDE Connect App was removed from Google Play Store and brought back in 24 hours
Mar 22, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help keel johnston ?
Unhide the folders on windows Explorer

Give any solutions to unhide folder using command prompt?

forum3

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.