Last update at :2024-07-01,Edit by888u
Snail has shared a lot of articles on setting up VNC remote desktop on Linux VPS hosts in his blog. He also mentioned in an article before that he will not write it again next time. It feels too much and a bit overwhelming when I write it. Got an appetite. I didn’t hold back this time, so I shared the article on setting up Fluxbox VNC remote desktop in CentOS 5 environment to my blog today. Because there are usually a few netizens who are engaged in the business of brushing orders (presumably many people are doing it by brushing orders on Amazon and the like). In view of the low cost of Linux VPS and the need to simulate remote desktop, remote login requires the use of FireFox browser manually. Manipulates the behavior of people buying products.
This is not useful in setting up VNC remote environments based on some environments, such as LXDE, XFCE, etc., but in order to simulate the behavior more realistically, I hope to use different environments (specifically, I also I don’t know what the principle is, but I want to create a different environment anyway), so I rummaged through the box and found that many people mentioned the Fluxbox remote desktop environment, so I compiled an article about installing Fluxbox.
PS: The following content and screenshots are based on my actual performance on the test machine, but there is no guarantee that it will work in all environments. Sometimes, various problems will occur very strangely, and some unknown reasons are really unclear. So let's get started.
First, install the RPMForge software library
wget ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/x86_64/dag/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm;rpm - Uvh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
The snail here (laozuo.org) is based on CentOS 5 64bit environment, so I directly use this RPMForge library for update and installation. If we are 32-bit, we need to look for a 32-bit version.
Second, install the necessary installation packages
yum install vnc-server vnc xorg-x11-xinit fluxbox xterm xarchiver firefox -y;
Here we directly install the required software packages in one step, such as vnc-server, fluxbox and firefox. Just throw it in and press Enter, then wait for the installation to complete.
Third, configure the interface resolution
vi /etc/sysconfig/vncservers
Edit the file and add in the last line:
VNCSERVERS=\\”1:root\\”VNCSERVERARGS[1]=\\”-geometry 1024×768\\”
Save and exit after adding. If we open this file and see that it is all blank, we need to execute:
yum install tigervnc tigervnc-server -y
Execute the command to install tigervnc. Edit the vncservers file after installation.
Fourth, start VNC and set password
chkconfig vncserver onvncserver
Here we need to start VNC and then set the password. The password needs to be entered twice.
Fifth, configure system files
vi /root/.vnc/xstartup
Open the file with VI editor and add the code at the end:
amule &fluxbox &
Then save and exit.
Sixth, restart VNC and set startup items
service vncserver restarttouch /root/.vnc/vncstart;chmod +x /root/.vnc/vncstart;echo \\”service vncserver start\\” > /root/.vnc/vncstartecho \\”sh /root/ .vnc/vncstart\\” >> /etc/rc.local
So far, Snail (laozuo.org) has completed the deployment and installation of Fluxbox VNC. There is not much text, but I have repeated the installation several times and encountered various problems. It took several hours to write this article. It's too hard.
Seventh, log in to the VNC client remote link
Here we can use the VNC client tool link, vncviewer (https://soft.laozuo.org/tools/vncviewer.zip) or TightVNC are more commonly used tools.
After confirmation, enter the VNC password we set.
It is relatively smooth to enter the remote desktop here (it has failed many times), and then right-click the mouse to see the menu (at first I was stupidly looking for the menu above and below). What is generally needed here is the Firefox browser. , after opening it is a project that we can operate.
In summary, Fluxbox’s installation of the remote desktop VNC environment is completed. At least it can ensure that the current article is true and effective, although it failed many times in the process. This way we have another way to install remote desktop in a Linux server. By the way, if any friends come across other methods, please leave a message and I will look into it later. Although the process is quite laborious, I am still pleased to see the actual results.
Recommended site searches: Mainland China domain name, domain name query, Hengtian host, site group server, domain name registration service website, registration query network, domain name search, website domain name registration, registration query network, foreign server,
发表评论