Category: Linux

How to Set the SU Password on Deepin

Open a terminal with sufficient privileges. This example uses the regular user `sjby365` to change the root password.

sudo passwd # After pressing Enter, you will be prompted to enter the current user’s password, as shown below.

Enter new UNIX password: # Set the root password
Retype new …

How to Set Linux Time to 24-Hour Format

1. Modify the current time:
vi /etc/sysconfig/clock
Add the following content:

ZONE="Asia/Shanghai" UTC=false ARC=false

cp /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/Asia/Shanghai.bak #Backup
vi /usr/share …

How to Fix LNMP and Crontab Conflicts

How to Fix Crontab Not Running for Non-Root Users in LNMP/LAMP

I believe anyone familiar with PHP programs has used LNMP or LAMP. A couple of days ago, after installing the LAMP stack from https://lnmp.org/, I found that crontab scheduled tasks were not executing for regular users. The issue went away after uninstalling it.

Here’s how to fix it:
vi /etc/crontab # Edit the file
SHELL=/bin/ …

SVN: Item Is Not Readable Fix

SVN Update Log Error Fix:

svn: E220001: Item is not readable

Reason: Insufficient read permissions.

Solution:
Open the project configuration file (using my project as an example):

vi /backup/svn/nager/conf/svnserve.conf

[general] anon-access = none …

Linux System Time Sync Tool rdate

Command:
#yum -y install rdate #If the situation shown above occurs, you can install the rdate tool with this command
#rdate -s time.nist.gov #Manually sync the time
Set up daily automatic sync:
#crontab -e
30 0 * * * rdate -t 60 -s time. …

Linux BT Download Tool Transmission-CLI

How to Install EPEL Repository and Transmission-CLI on CentOS 6 64-Bit
Install EPEL repo:
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Install Transmission: yum -y install transmission-cli

Download magnet link: transmission-cli -D -w ./ magnet:? …

How to Install Pure-FTPd Using Yum

One, Yum Installation
Linux Environment: CentOS 6.x x64

1. Install
yum install pure-ftpd -y
vim /etc/pure-ftpd/pure-ftpd.conf
PureDB /etc/pure-ftpd/pureftpd.pdb # Remove the preceding comment
VerboseLog yes # Change to yes
NoAnon …

FTP vs SFTP: Key Differences Explained

FTP stands for File Transfer Protocol. When you want to share files with others on a website, the most convenient method is to upload the files to an FTP server, and then others can download the needed files using an FTP client program.

FTP file transfers require communication through specific ports. Generally, the ports needed are:
1. Contr…