CentOS6 4下VNC Server最簡配置

2021-12-29 21:56:51 字數 1196 閱讀 6680

centos6.4下vnc server最簡配置

環境:centos 6.4 final,桌面安裝了除kde的所有元件

1、安裝服務

yum install tigervnc-server  

名字有點怪哦,centos5前叫vnc-server

2、執行並設定密碼

vncserver :1

輸入密碼,會生成相關的檔案

xauth:  creating new authority file /root/.xauthority  

new 'centos6-244:1 (root)' desktop is centos6-244:1  

starting applications specified in /root/.vnc/xstartup  

log file is /root/.vnc/centos6-244:1.log  

3、配置使用者

vim /etc/sysconfig/vncservers  

最後一行加入:

vncservers="1:root" 多個使用者用空格分開,並要先su - 到那個使用者執行vncserver :n來設定配置檔案和密碼

4、實用命令

usage: vncserver [:] [-name ] [-depth ]

[-geometry x]

[-pixelformat rgbnnn|bgrnnn]

[-fp ]

[-fg]

...  

vncserver -kill

vncserver -list

vncserver[:n]開服務

vncserver -list看有幾個在執行

vncserver -kill :n   殺掉第幾個x-display

vncpasswd           修改密碼

5、服務管理

service vncserver restart

其它用法:/etc/init.d/vncserver

chkconfig vncserver on 加入到自啟動(chkconfig --level 35 vncserver on)

6、客戶端連線

centos:使用tigervnc viewer 連線 ip:1

windows:使用real vnc viewer 連線ip:1

輸入密碼即可訪問

Centos 6 4下安裝Filezilla軟體

首選是安裝rpm,在centos下執行以下命令 注意 在此有兩條命令,其實輸入第一條即可,但是有的時候解析不了,所以只能通過ip位址進行解析安裝,如果第一條不能執行安裝,就選擇第二條。ping dl.fedoraproject.org 209.132.182.27 rpm ivh rpm ivh 安...

Centos6 4 下puppet yum源配置

1 將光碟配置為yum本地源 2 安裝製作yum倉庫的軟體包和yum priorities管理包 root python geek wget root python geek wget root python geek wget 4 製作puppet源 在使用createrepo 命令建立源時,提示...

CentOS6 4下vsftpd使用MySQL驗證

一.mysql的安裝與配置 1.使用yum方式安裝mysql root vsftpd yum y install mysql mysql server mysql devel 2.啟動mysql服務並修改mysql管理員密碼 root vsftpd service mysqld start 啟動my...