How To Setup VNC For Ubuntu 12

How To Setup VNC For Ubuntu 12

How To Setup VNC For Ubuntu 12

If you want to remotely access your Ubuntu 12 desktop, you can use VNC (Virtual Network Computing). VNC allows you to control your Ubuntu desktop from another computer over the network.

Step 1: Install VNC server

Open a terminal and type the following command:

sudo apt-get install vnc4server

Step 2: Configure VNC server

Run the following command to configure VNC server:

vncserver :1

You will be prompted to set a VNC password. Enter a strong password and remember it.

Step 3: Configure startup file

Open the VNC startup file in a text editor:

sudo nano ~/.vnc/xstartup

Replace the contents of the file with the following:

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &

Save and close the file.

Step 4: Start VNC server

Start the VNC server with the following command:

vncserver :1 -geometry 1280x800 -depth 16

You can change the resolution and depth to match your preferences.

Step 5: Connect to VNC server

Use a VNC viewer to connect to your Ubuntu desktop using the IP address of the Ubuntu computer and the VNC port (e.g. 192.168.0.100:1).

Enter the VNC password when prompted.

That's it! You can now remotely access your Ubuntu desktop using VNC.

Keywords: VNC, Ubuntu 12, setup, tutorial, remote access, VNC server, configure, startup file, VNC viewer, IP address, VNC password.

Комментарии

Популярные сообщения из этого блога

How To Modify CSS Classes in JavaScript

How To Backup MySQL Databases on an Ubuntu VPS

How To Backup PostgreSQL Databases on an Ubuntu VPS