Category: Linux

How to Mount a Data Disk on Linux Systems

Applicable Systems: Linux (Redhat, CentOS, Debian, Ubuntu) * If your Linux cloud server has an unpartitioned data disk, follow these steps to partition and format it. The data disk will be divided into a single partition. 1. View the data disk…

How to Install Software via YUM on CentOS

How to Use Tencent Cloud Yum Repository for Faster Software Installs on CentOS
To improve software installation efficiency on cloud servers and reduce the cost of downloading and installing software, Tencent Cloud provides a Yum download source. On CentOS, developers can quickly install software via YUM.
For the Yum download source, you can install software packages directly without adding a software source.
1. Installation step 1 …

How to Reset the Root Password on CentOS

Here’s how to crack the root password using CentOS as an example: 1. When the boot menu appears during startup, use the up and down arrow keys to select the system for which you forgot the password, then press “e”. 2. Next, you will see a screen like the one shown below; use the up and down arrow keys again to select the latest …

How to Change the SSH Port on Linux

vi /etc/ssh/sshd_config锛宖ind Port 22锛宼hen change port 22 to your desired port number锛宺estart SSH service锛?etc/init.d/sshd restart锛宼hen test SSH connection锛?ssh localhost -p your port number锛宑onnection successful.
If you want to be safe …

How to Install Python 3.3.5 on Ubuntu and Its Derivatives

Python 3.3.5 was released last month, and compared to previous Python versions, it resolves some key issues. For detailed release information about this version, check the changelog. To install, a PPA is available (supporting all Ubuntu versions and derivatives). Open a terminal and enter the command: sudo add-apt-repository …

How to Resolve Linux Package Dependencies

Just saw someone discussing Linux package dependency issues. Software dependencies are indeed quite a headache, especially for newcomers. Personally, I have three methods for resolving these dependency problems.

(Taking Fedora as an example below)

1. Whenever possible, install packages already available in the software repositories …

Linux File Permissions 644, 755, 777 Explained

From left to right, the first digit represents the file owner’s permissions, the second digit represents the group’s permissions, and the third digit represents permissions for other users.

And the specific permissions are represented by numbers: read permission equals 4, denoted by r; write permission equals 2, denoted by w; execute permission equals 1, denoted by x …

How to Install and Enable Telnet Service on CentOS

1. Check if the telnet service is installed: rpm –qa|grep telnet. If not, locate the installation package and install it. If you have the installation CD, find the corresponding package on the disc to install. Here we will install directly via the network.
2. Install the Telnet program using yum install: [root@bogon x …