Why I recommend to use aapanel on Linux server?

aapanel is a very useful dashboard, with which you can easily manage your websites. You can easily install it by using the following command. CentOS yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh Ubuntu/Deepin and Debian wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh The picture above shows the homepage of aapanel. It's very powerful. You […]

How to insert multiple lines into a batch of text files on Linux system with sed

Question description This question come from when I want to insert Google Analytics code into HTML files. Let's have a look on the code. <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-155361814-3"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-155361814-3'); </script> I run four sites on my Rock64 (an alternative of […]

Install screenfetch and linux_logo on Linux System

Want to show the cool logo and basic hardware information of your Linux distribution on the screen? Check out the amazing screenfetch and linux_logo tools. How to run them when login please check out a post talks about how to execute commands after login. screenfetch screenfetch is a command line script that displays system / theme information in a screenshot. […]

Play Tetris on Linux Terminal

I finished a project that allows you to play Tetris on Linux terminal. Here's the screenshort of this game. It's written in Linux Shell script. If you like it, you may fork and star it git clone https://github.com/You0916/terminal_games.git In that repo, there are also a classic game Snack and a Terminal clock. Like this: All of them are written in […]

How to change password on Linux

It's quite simple if you want to change your password on Linux. After you log in to the server, you can use the command below to modify your password: passwd After that command, type the password twice (each time with enter, and the password in Linux will not show up on screen). If you are root user, you can also […]

How to change SSH port on Linux

Open the SSH config file: sudo vim /etc/ssh/sshd_config find the line with default port 22. In vim normal-mode (once you opened the vim, it is under normal-mode), find 22, and change it to the port that you want. Remember, don't use the common port, use the port number from 10000~60000. After that, save the file. and restart the ssh service. […]

Run Linux and Python on a Business Card

For an engineer, how to declare his strength on a business card? It might be a good idea to build a complete computer on it. George Hilliard, an embedded system engineer in the United States, has attracted attention. He used his business card as the "motherboard" and printed all the components needed for the computer system in a small space, […]