Tutorial Category

General Linux Server Administration

  1. How to configure auto-update of Let’s Encrypt certificates with Nginx

    Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. One of the features of Let’s Encrypt is ninety-day lifetimes for certificates. There are many tutorials how to automate the procedure of updating certificates. All of them have their pros and cons. For example you must manually create folders and files or stop web-server for several minutes... I think I found one of the simpliest ways. The main idea is to let Let's Encrypt to...
  2. How To Setup CentOS WebPanel On A VPS

    This article will show you how to setup CentOS WebPanel on your Virtual Private Server -VPS. There are multiple alternatives available but I will focus on an easy approach and let you inspect the other options on your own. This article doe not show you what to do after you deployed the WebPanel. It will only point you to the next steps.
  3. How To Clear Linux / UNIX BASH Shell Command Line Cache / History

    Introduction to Shell Q. I just noticed faq about clearing dns cache and there are lots of commands stored in my cache. Can you tell me the command to clear out my command history or cache from a shell prompt? A. Many programs read input from the user a line at a time. The GNU history library is able to keep track of those lines, associate arbitrary data with each line, and utilize information from previous lines in composing new ones. Bash and other shell may...
  4. How To Lock Down Your Linux Server For Additional Security

    Introduction to Linux Security Linux Security. Most people rarely secure a freshly installed server right off the bat, but in the world we live in this is an absolute must. So if it’s so important to, why do so many people wait and do it last, if at all? I’m as guilty as the next person. It often comes down to just wanting to to start developing and doing the fun stuff. Hopefully this tutorial will show that it is far better secure your server first, and...
  5. How To Change Your Hostname

    Change the hostname line in /etc/sysconfig/network to the hostname you want (this file may be different on FreeBSd and others). Your hostname should be something prefixing a domain you own (this is referred to as a fully qualified domain name, FQDN), so server1.yourdomain.com for example, not just yourdomain.com. Changing it in that file ensure that your hostname gets set each time networking starts, however you'd need to restart networking for it to get set in the current session with just that changed....
  6. How To Change The Shell Type For A Specific User

    If you would like to change the shell type for a specific user you can do the following. In this example we will change the shell type for username jimmysmith to Bash: chsh -s /bin/bash jimmysmith If you have any questions feel free to leave me a note below and I will get back to you....
  7. How To Change The Time Zone In Linux

    To set the timezone in Linux, update /etc/localtime with the appropriate timezone file from /usr/share/zoneinfo. Example: rm -f /etc/localtime ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime This would set your time zone to PST/PDT (Pacific Time) because that is the time zone Los Angles is located in....
  8. How To Change The Language In A Linux (BaSH) Shell

    To set your current shell to a different language you use the bash variable LANG followed by the language you want: LANG=en_us_8859_1 If you want to set that so its used every time add an export line to your .bashrc for that user. The .bashrc file can be found in each user's homedir, if they don't have one you can create it: export LANG=en_us_8859_1 The command locale will show you information about locale on the server. The command locale -a will give you a list of all...