【Linux】Linux 配置VNC server 顯示圖形化桌面
Linux下配置VNC server 顯示圖形化桌面
本文連線:http://blog.itpub.net/29475508/viewspace-1671101/
[root@bigdatalite ~]# cd /root/.vnc/
[root@bigdatalite .vnc]# ls
bigdatalite:2.log bigdatalite:2.pid localhost:1.log passwd xstartup
[root@bigdatalite .vnc]# ls -l
total 20
-rw-r--r-- 1 root root 1189 May 25 11:49 bigdatalite:2.log
-rw-r--r-- 1 root root 6 May 25 11:47 bigdatalite:2.pid
-rw-r--r-- 1 root root 663 Jun 12 2013 localhost:1.log
-rw------- 1 root root 8 May 25 11:47 passwd
-rwxr-xr-x 1 root root 334 May 25 11:47 xstartup
備份原始檔案
[root@bigdatalite .vnc]# cp -p xstartup xstartup.bak
編輯檔案,最後一行改為gnome-session &
[root@bigdatalite .vnc]# vi xstartup
#!/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 &
gnome-session &
殺死掉之前的vnc程式
[root@bigdatalite .vnc]# vncserver -kill :1
Can't find file /root/.vnc/bigdatalite:1.pid
You'll have to kill the Xvnc process manually
[root@bigdatalite .vnc]# vncserver -kill :2
Killing Xvnc process ID 13462
[root@bigdatalite .vnc]# vncserver -kill :3
Killing Xvnc process ID 13797
重啟vnc服務
[root@bigdatalite .vnc]# vncserver
New 'bigdatalite:2 (root)' desktop is bigdatalite:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/bigdatalite:2.log
[root@bigdatalite .vnc]#
客戶端使用vncviewer進行登入

登入後是圖形化操作介面

呂星昊
2015.5.25
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29475508/viewspace-1671101/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- centOS5.5配置vnc,開啟linux遠端桌面CentOSVNCLinux
- RedHat Linux 6企業版開啟VNC Server遠端桌面RedhatLinuxVNCServer
- 兩款 Linux 桌面中的圖形化操作 PDF 的工具Linux
- Kali Linux修改桌面預設圖示Linux
- XManager:xshell顯示圖形化介面
- openEuler 配置VNC ServerVNCServer
- Linux基礎命令---顯示樹形程式pstreeLinux
- 雲伺服器 ECS Linux 系統如何安裝圖形化桌面伺服器Linux
- Windows Server 2012/2016 在桌面上顯示“我的電腦”圖示WindowsServer
- 配置與美化Linux桌面Linux
- Arch Linux配置gnome桌面Linux
- Linux效能分析工具與圖形化方法Linux
- oracle linux 7 安裝圖形化介面OracleLinux
- 在visual studio裡圖形化顯示陣列陣列
- win10如何設定桌面顯示圖示_windows10顯示桌面圖示設定方法Win10Windows
- vnc管理工具,vnc管理工具安裝使用教程,linux如何安裝vnc server?VNCLinuxServer
- linux系統lcd顯示jpg格式圖片Linux
- linux遠端工具vnc啟用,linux遠端工具vnc如何啟用,Linux安裝vnc教程。LinuxVNC
- 如何為 Linux 桌面配置 OpenboxLinux
- LINUX圖形化安裝ORACLE 前置條件LinuxOracle
- Windows Server 2012伺服器顯示或隱藏桌面上的通用圖示教程WindowsServer伺服器
- Xenlism WildFire: Linux 桌面的極簡風格圖示主題Linux
- LINUX網路不顯示Linux
- Windows 的桌面圖示沒有顯示正確Windows
- [BUG反饋]LINUX下圖示、圖片及驗證碼顯示不正確Linux
- Win10系統如何建立顯示桌面圖示_win10怎麼新增顯示桌面Win10
- Xmanager4遠端連線linux圖形介面(vsftpd配置)LinuxFTP
- 顯示卡效能天梯圖2022最新 桌面顯示卡筆記本顯示卡效能天梯圖最新筆記
- Zeit – Linux圖形化中定時任務的工具Linux
- Linux 上配置 SQL Server Always On Availability GroupLinuxSQLServerAI
- [linux] fuser程式顯示檔案Linux
- win10系統顯示桌面圖示的方法Win10
- Linux 環境 Intelij Idea 安裝與快捷圖示配置LinuxIntelIdea
- CentOS 7 配置 VNC 遠端桌面連線CentOSVNC
- vnc遠端連線linux,vnc遠端連線linux的具體操作VNCLinux
- vnc遠端連線linux,vnc遠端連線linux的具體方法。VNCLinux
- VNC,Linux遠端VNC連線伺服器!VNCLinux伺服器
- win10 桌面圖示不顯示名字如何解決_win10桌面圖示不顯示名稱解決方法Win10
- Linux系統安裝VNCLinuxVNC