install gnome

centos redhad fedora

yum groupinstall "GNOME Desktop Environment"


添加自启动脚本
centos redhad fedora

sudo gedit /etc/rc.local
给我翻译To set up VNC on Debian, you can follow these steps: Install a desktop environment if you haven't already done so. For example, you can install GNOME by running the command sudo apt-get install gnome-core. Install the VNC server software. One popular option is TigerVNC. You can install it by running the command sudo apt-get install tigervnc-standalone-server. Configure the VNC server. You can do this by creating a configuration file in the directory /etc/systemd/system. For example, you can create a file called vncserver@.service with the following contents: 复制 [Unit] Description=Start TigerVNC server at startup After=syslog.target network.target [Service] Type=forking User=%i ExecStart=/usr/bin/vncserver :1 -geometry 1280x800 -depth 24 -dpi 96 ExecStop=/usr/bin/vncserver -kill :1 [Install] WantedBy=multi-user.target This configuration will start the VNC server on display 1 with a resolution of 1280x800, a color depth of 24 bits, and a DPI of 96. You can modify these settings to suit your needs. Enable and start the VNC server. You can do this by running the following commands: 复制 sudo systemctl enable vncserver@:1.service sudo systemctl start vncserver@:1.service This will enable the VNC server to start automatically at boot time, and start the server immediately. Connect to the VNC server. You can use any VNC client software to connect to the server. For example, you can use RealVNC or TightVNC. Just enter the IP address of the Debian machine and the display number (in this case, :1) to connect.
06-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值