vnc远程桌面复制文件Linux,vncviewer远程桌面linux
1、在服務器上啟用vnc
(1)查看有沒有安裝vnc
[root@localhost ~]# rpm -qa |grep vnc
gtk-vnc-0.3.2-3.el5
vnc-4.1.2-14.el5
vnc-server-4.1.2-14.el5
gtk-vnc-python-0.3.2-3.el5
(2)root用戶登錄
[root@localhost ~]# vncserver
You will require a password to access your desktops.
Password:
(3)輸入root用戶密碼并確認
[root@localhost ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
New 'localhost.localdomain:1 (root)' desktop is
localhost.localdomain:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log
2、停掉vnc
[root@localhost ~]# vncserver -kill :1
Killing Xvnc process ID 24659
3、更改/root/.vnc/xstartup文件
去掉注釋
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
修改后如下:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec
/etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb
$HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop"
&
twm &
4、重新啟動vnc
[root@localhost ~]# vncserver
New 'localhost.localdomain:1 (root)' desktop is
localhost.localdomain:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log
5、客戶端遠程桌面(注意關閉防火墻)
運行vncviewer.exe,服務器:10.108.140.9:1 口令:********
總結
以上是生活随笔為你收集整理的vnc远程桌面复制文件Linux,vncviewer远程桌面linux的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: windows文件 linux cr,D
- 下一篇: linux某个目录环境变量,在linux