- How to login as root in Ubuntu
- Install some nice themes and wallpapers in Ubuntu
- Get weather information from the command line in Linux
- Add a nice menu to the Ubuntu MATE panel easily
How to login as root in Ubuntu
To login as a proper root user on Ubuntu, use this command.
4.4 Thu Dec 13 jason@Yog-Sothoth 0: $ sudo su - 1) All commands run with root privileges are always dangerous. 2) Never run commands on an environment you are not willing to destroy, or able to restore. 3) Do not become root until you know what you are going to do. 4) Be sure of your command and what is going to be affected by it. [sudo] password for jason: root@Yog-Sothoth:~# |
This will give the user a proper root prompt. To enable the actual root account on Ubuntu if you wish, just do this.
4.4 Thu Dec 13 jason@Yog-Sothoth 0: $ sudo passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully |
This sets a password for the root account on Linux and unlocks the account. To lock the account properly, modify the expiry date, this will prevent the user logging in at all.
4.4 Thu Dec 13 jason@Yog-Sothoth 0: $ sudo usermod --expiredate 1 root |
This is what the user will see if they try and login again.
4.4 Thu Dec 13 jason@Yog-Sothoth 0: $ su root Password: Your account has expired; please contact your system administrator su: Authentication failure |
Add these two lines to your .bashrc on Ubuntu and get the system information and news printed in your terminal just as Ubuntu server does.
cat /var/cache/motd-news landscape-sysinfo |
This is an example of the output.
* MicroK8s is Kubernetes in a snap. Made by devs for devs. One quick install on a workstation, VM, or appliance. - https://bit.ly/microk8s * Full K8s GPU support is now available! Get it in MicroK8s, CDK, and on GKE with Ubuntu workers. - https://blog.ubuntu.com/2018/12/10/using-gpgpus-with-kubernetes System load: 0.92 Processes: 262 Usage of /: 91.5% of 228.18GB Users logged in: 1 Memory usage: 21% IP address for enp0s25: 192.168.1.2 Swap usage: 0% IP address for virbr0: 192.168.122.1 => / is using 91.5% of 228.18GB => There is 1 zombie process. |
Just make sure that the landscape-common package is installed, so that the landscape-sysinfo command is available.
Install some nice themes and wallpapers in Ubuntu
Run this command to install a heap of themes and wallpapers for your MATE desktop.
jason@Yog-Sothoth:~$ sudo apt install ubuntu-gnome-wallpapers ubuntu-wallpapers-* mate-themes ubuntu-gnome-wallpapers-* |
Then add the contents of the /usr/share/backgrounds/ubuntu-gnome/ directory to the MATE wallpaper chooser.
This will add a lot of wallpapers to the available list.
Get weather information from the command line in Linux
https://securitronlinux.com/bejiitaswrath/get-weather-information-from-the-command-line-in-linux/.
Add a nice menu to the Ubuntu MATE panel easily
Right-click on the MATE panel and choose Add to panel.
Then choose the Add to panel option.
This is the type of menu that you will get.
This is a very nice and easy to use menu for the MATE desktop.