Install VNCServer In Debian

Source: Internet
Author: User
Install VNCServer In Debian-Debian, the Linux release technology. For details, refer to the following section. In most cases, we can use ssh to log on to the linux server. But sometimes our program needs to run in the graphical interface, and we need to use the vnc server software. Installing the vnc server In Debian is simple. It takes only a few steps:

1. Search for resources

Apt-cache search tightvncserver

Search whether the VNC Server exists on the Server. If yes, perform Step 2:

2. Install software

Apt-get install tightvncserver tightvnc-java

3. Configure your own vnc server.

Start command:
Vncserver-depth 24-name aru_desktop-httpport 9001-geometry 1024 × 768: 1

Parameter description:
1.-depth 24 uses a 24-bit color, usually 16 or 24 here.

2.-name aru_desktop desktop name. This parameter is not required.

3.-httpport 9001 indicates the port connected by a browser. Use a port above 1024. If multiple users enable the vnc server, each user must use a different port.
4.-geometry 1024x768 desktop resolution, adjusted as required

5.: 1 session number, same as 3

The first operation requires you to enter a password, which is separate from your ssh logon password. Of course, you can use the same password.

Close command:
Vncserver-kill: 1

: 1 indicates the number of sessions, which is consistent with the number of started sessions.

4. Input Method and desktop environment

The vnc server startup script for each user is ~ /. Vnc/xstartup

The following is my startup script:
#! /Bin/sh

Xrdb $ HOME/. Xresources
Xsetroot-solid gray
X-terminal-emulator-geometry 80 × 24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
# X-window-manager &
# Gnome-session &
Xfce4-session &
Scim-d

There are three Window Management Servers:
# X-window-manager &

# Gnome-session &

Xfce4-session &

The top two are commented out. Just select your favorite window management and comment out the remaining Window managers.

Scim-d

Open the scim input method.

5. Connect to the vnc server

After opening the vnc server, you can connect to the server through http or a dedicated client.

In the browser, enter http: // ip: 9001/

Private Client, enter ip Address: 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.