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 […]

Use Tuir to Read Reddit on Linux terminal

Short breaks are important for maintaining productivity. One of my favorite places to go during my break is Reddit, which might be a great resource if you want to. There I found various articles about DevOps, productivity, Emacs, chicken, and ChromeOS projects. These discussions can be valuable. I also paid attention to some daughter boards with only pictures of animals, […]

Execute programs after login

This idea comes from a reddit user edtheloon. When I posted my post about screenfetch and linux_logo on reddit, he commented that I fotgot the most important thing that I can add them into .bashrc. I have to say that is a awesome idea. .bashrc file is very uesful that you can add your personal environment variables in it. In […]

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. […]