Category: Linux

How to Set Up VNC Graphical Interface on CentOS

How to Install a GUI and Set Up VNC on CentOS Cloud Servers

If you need to use a graphical user interface on a CentOS cloud server—for example, to install Oracle using its GUI installer—how should you proceed? Today, I’ll walk you through installing a desktop environment and setting up VNC to solve this problem.

The installation process may clear your DNS settings, so make sure to run the following command first before proceeding…

How to Install SVN Server on Linux Using Yum

Installation steps are as follows:
1. Install via yum yum install subversion
2. Create the SVN repository directory, the location can be set arbitrarily: mkdir -p /var/svn/svnrepos
3. Create the repository svnadmin create /var/svn/svnrepos After executing this command, it will create files under /var/svn/svnr …

How to Establish SSH Trust Relationships on Linux

For easier management, especially when dealing with many machines, passwordless login becomes essential.

Simulated scenario: Machine A wants to log into Machine B via SSH without a password:
Machine A IP: 192.168.0.100 Machine B IP: 192.168.0.223

1. Log into 192.168.0.100 and generate a public/private key pair for Machine A …

How to Display Timestamps in Linux History Command

Many people use the history command, which by default lists all operations of the current user. However, many Linux distributions have history configured without user and timestamp information, which makes it difficult to review past operations. After checking the man page …

How to Change the Default SSH Port on CentOS

How to Change the Default SSH Port on CentOS (Example: 8223):
vi /etc/ssh/sshd_config

Change: #Port 22
to
Port 8223Restart SSH:
service sshd restart

Add a firewall exception:
#/sbin/iptables -I INPUT -p tcp –dport 8223 -j ACCEPT
#/e …

CentOS System IP Access Control

Scenario: You have a bunch of machines. The server IP being accessed is 192.168.1.1, and the IP address allowed to access it is 192.168.1.2. No need to list the rest since they won’t be used anyway.

For Linux systems, the connection method is basically SSH, which can be controlled through configuration files …