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…

Read More

Updating to the very latest Debian release.

How to easily update your Debian Buster installation to Bullseye easily. This is not too hard at all. 1. Make sure all your packages are up to date. Run sudo apt update && sudo apt upgrade. 2. Make sure gcc-8-base is installed and up to date. 3. Edit your /etc/apt/sources.list…

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…

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  …

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…

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…

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…

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…

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…

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…

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

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:…

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…

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…

Read More