More very useful shell tricks for using Ubuntu in 2022.

How to clear the screen in your terminal in a shell script. ┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5/Music/Youtube] └─$ printf ‘\33c\e[3J’┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5/Music/Youtube] └─$ printf ‘\33c\e[3J’ Just execute the printf statement and this will clear the screen. This will also clear the scrollback buffer as well. This is another way to accomplish this task. ┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5/Music/Youtube] └─$ printf "\ec"┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5/Music/Youtube] … Read more

How to have a much wider scrollbars in Firefox on Debian.

The scrollbars on Firefox are very narrow and annoying, but this may be fixed. This is how to get wider scrollbars in Firefox when using Linux. The best way is to edit the about:config and then look for this entry. widget.non-native-theme.gtk.scrollbar.thumb-sizewidget.non-native-theme.gtk.scrollbar.thumb-size Change this to 1.50 and this makes the scrollbar much wider. Also this setting. … Read more

How to easily install Teamspeak on Linux.

Installing Teamspeak allows easy voice and text communication over a TCP/IP network. This is easy to install. Download Teamspeak 64-bit client from this page: https://teamspeak.com/en/downloads/#. Then run it like this to install. ┌──[[email protected]]─[~/Downloads] └──╼ ╼ $ bash ./TeamSpeak3-Client-linux_amd64-3.5.6.run Welcome to the TeamSpeak 3 Client for Linux on amd64 installer   In order to install this … Read more

Linux distribution alternatives to Ubuntu.

There are many Linux distributions that are good alternatives to Ubuntu. This gives you more freedom of choice. Debian Live distribution. This is a nice way to try out some Debian goodness before installing on your system. Find some download links here: https://www.debian.org/CD/live/. Ubuntu is based on Debian anyway, so running the original distro should … Read more

How to list certain installed packages on Debian Linux.

The dpkg command can be used to list all installed packages. I wanted to list the language packs installed with Firefox. So the command below is perfect. jason@Yog-Sothoth:~$ dpkg –list firefox-locale-* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============================-====================-====================-================================================================== ii firefox-locale-de 75.0+build3-0ubuntu0 amd64 German language pack for Firefox ii firefox-locale-en … Read more

Adding your user to the sudoers file on Debian.

If you want to be able to use the sudo command in Debian to do superuser tasks as your normal user, then you need to edit the /etc/sudoers file to be able to perform administrator tasks as a normal user with sudo. Add the user lovecraft to the sudoers file like this. lovecraft ALL=(ALL:ALL) ALLlovecraft … Read more

Compiling and installing a 2.4 kernel on Debian GNU/Linux Sarge.

Compiling and Installing a 2.4 Kernel on Debian This is quite like the installation process for the 2.6 kernel. Just unpack the kernel sources to your home directory and cd to the directory and type make mrproper to make sure the source directory is clean. Then type make menuconfigmake menuconfig And follow the options to … Read more

Re-install the GRUB 2 bootloader in Debian easily.

To re-install the grub2 bootloader in Debian 6.0 , you need to be chrooted into the filesystem, this can be done from the installation DVD or an Ubuntu Live CD. Once you are sitting at a root prompt on the Debian system, you need to type: debian ~ # grub-install /dev/sdadebian ~ # grub-install /dev/sda … Read more

How to list all gnome or Firefox packages on your Debian or Ubuntu system.

This command will list all Gnome packages that are currently installed on your Debian system and can be uninstalled. 4.4 Mon Sep 10 jason@Yog-Sothoth 0: $ dpkg –get-selections | grep gnome | cut -f 14.4 Mon Sep 10 jason@Yog-Sothoth 0: $ dpkg –get-selections | grep gnome | cut -f 1 This example lists all Doom … Read more

Very useful Linux tips for a desktop Ubuntu user.

Write an ISO to a thumb drive easily with the etcher utility https://etcher.io/. Download this utility from the Github site. Then unpack the zip file to a empty folder, or to your desktop. Then make it executable. jason@Yog-Sothoth » Desktop » $ chmod +x etcher-electron-1.4.4-x86_64.AppImage Then run the AppImage to open Etcher. jason@Yog-Sothoth » Desktop … Read more

Make XfCE 4 look like a SGI O2 workstation.

Make your XFCE desktop look as close as possible to an old IRIX machine. SGI Screen Fonts https://www.gnome-look.org/p/998527/ Xfwm4 theme that is based on the window manager for SGI OS. https://www.gnome-look.org/p/1015906/ SGI-IMD Metacity theme. This also works with MATE. https://www.gnome-look.org/p/1006689/ SGI Irix cursor theme. This works with any window manager. https://www.gnome-look.org/p/999497/ SGI IRIX icons theme. … Read more

Checking /var/log. How to best find good information about your system.

Checking the /var/log files is very important. This can show you a lot of information about what is happening with your Linux system. The below command shows how to get a list of previously installed programs on a Debian based system. jason@Yog-Sothoth » ~ » $ grep install /var/log/apt/history.log Commandline: apt install nethogs Commandline: apt … Read more

Restore the files in /etc/skel if they have been deleted.

The files in /etc/skel are for the creation of new user accounts, but if they are deleted accidentally, they are no good no anyone. This is how to re-download these files and restore them. Firstly, download the bash package to an empty directory. ason@Yog-Sothoth » bash » $ apt download bash Then extract it to … Read more

Very cool Linux text processing tricks.

Align all text right on an 80 column width. jason@jason-Lenovo-H50-55:~/Documents$ ls -hula | sed -e :a -e ‘s/^.\{1,80\}$/ &/;ta’ total 872K drwxr-xr-x 2 jason jason 4.0K May 4 08:48 . drwxr-xr-x 23 jason jason 4.0K May 3 20:51 .. -rw-r–r– 1 jason jason 848K Apr 21 13:01 altis_insurgency_altis.pbo -rwxrwxr-x 1 jason jason 166 Apr 22 … Read more

Awesome E17 desktop is the best alternative to the MATE and KDE desktop environments.

The E17 desktop is the best alternative to the bloated MATE and Gnome desktop environments. These are good, but use a lot of resources. A good alternative is to use E17. This is light and has a lot of very good effects. Install it on Ubuntu 17 easily. sudo apt install e17-data e17sudo apt install … Read more