使用 VNC Server:
RHEL:~ # yum install -y tigervnc-server # 安裝 vnc server
RHEL:~ # firewall-cmd --add-port=5901/tcp # 設定防火牆, 開啟 vnc port
RHEL:~ $ vncserver # 啟用 vncserver
RHEL:~ $ echo "gnome-session" > ~/.vnc/xstartup # 設定vnc 桌面為 gnome, 預設為 twm
RHEL:~ $ vncserver -kill :1 # 關閉 vncserver
設定隱藏全視窗快捷鍵 (Hide all normal windows):
RHEL:~$ gnome-control-center keyboard
在 Shortcuts \ Navigation 下設定 Hide all normal windows
安裝 EPEL (Extra Packages for Enterprise Linux)
RHEL:~ # wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
RHEL:~ # sudo rpm -Uvh epel-release-7*.rpm
新增 / 設定 應用程式圖示 (Desktop icon)
在 /usr/share/applications 目錄下, 新增或修改 app.desktop, 內容約略如下:
[Desktop Entry]
Comment=Application Name
Terminal=false
Name=app
Exec=/opt/app/bin/app.exe
Type=Application
Icon=/opt/app/icon/app.png
Categories=Development;TextEditor;
NoDisplay=false
停用 Network Manager, 改用 network daemon
RHEL:~ # systemctl disable NetworkManager
RHEL:~ # systemctl stop NetworkManager
RHEL:~ # vi /etc/sysconfig/network-script/ifcfg-eth0 # 直接新增 / 修改設定檔
TYPE=Ethernet
BOOTPROTO=static
NAME=eth0
DEVICE=eth0
ONBOOT=yes
IPADDR=10.0.0.10
PREFIX=24
GATEWAY=10.0.0.1
NM_CONTROLLED=no
留言列表