Do it your self hobby code


Changing server time zone — Ubuntu

This is very important when you have some programs scheduled to run using cron. Display current timezone cat /etc/timezone Because I’m using New York timezone, this will display:America/New_York How to change the server timezone? I’d like to change the server to Dubai timezone, so I’ll enter: ln -sf /usr/share/zoneinfo/Asia/Dubai /etc/localtime To list other countries timezone …

Changing server time zone — Ubuntu Read More »

Create a sudo user — Ubuntu

To have an administrator privileges, you have to add the user to sudo group. Log in to your Ubuntu server using your root account or a sudo user if you already have. While on the terminal type this command: adduser your_username or sudo adduser your_username Assign a password. Enter it twice. Now that you have …

Create a sudo user — Ubuntu Read More »