Some very useful Gnome 3 tips for Linux users.

Use the Gnome favorites barUse a blue light filter for GnomeSet GTK 3.0 theme with command line Use the Gnome favorites bar To add applications to the favorites bar on the left of the screen in Gnome 3, just right click on any application icon in the applications menu and…

Read More

Linux has come so far since the old days.

The many Linux distributions we have today have come a long way since the old days. The evolution of the Linux desktop has lead us in strange directions, culminating in the Gnome Shell desktop interface, as well as Ubuntu Unity. But these have some nice features that make up for…

Read More

Miscellaneous Linux commands. Some useful tips for the Linux BASH prompt.

The ldd command will print out a list of all libraries that an executable is linked against. This is the output for a simple “Hello World” command. 20:15:31 tux@linux-v415 ($ ldd ./a.out linux-vdso.so.1 => (0x00007fff171ff000) libc.so.6 => /lib64/libc.so.6 (0x00007fe56ef58000) /lib64/ld-linux-x86-64.so.2 (0x00007fe56f2e8000) 20:15:49 tux@linux-v415 ($20:15:31 tux@linux-v415 ($ ldd ./a.out linux-vdso.so.1 =>…

Read More

Trim multiple spaces with sed into a normal string.

To trim multiple spaces from a sentence and turn it back into properly readable text, use this sed syntax. sed ‘s/ \+/ /g’sed ‘s/ \+/ /g’ This is an example. echo "Hello, this sentence has multiple spaces in it and needs fixing." Hello, this sentence has multiple spaces in it…

Read More

Get information about your swap partition with this simple command.

This command will print information about your swap partition easily using the Linux command line. root@Yog-Sothoth:~# swapon -s -v Filename Type Size Used Priority /dev/sda5 partition 7811068 0 -2 /dev/dm-1 partition 62500860 0 -3root@Yog-Sothoth:~# swapon -s -v Filename Type Size Used Priority /dev/sda5 partition 7811068 0 -2 /dev/dm-1 partition 62500860…

Read More

How to place a watermark in the corner of an image with ImageMagick.

ImageMagick(1) can be used to put a watermark on an image easily. The command below will place a TV styled watermark on an image in the lower left corner. This is very useful to watermark images you place on the Internet. convert pripyat.jpg ABCTV2005.png -gravity southeast -composite output.pngconvert pripyat.jpg ABCTV2005.png…

Read More

Very useful Linux shell tips and tricks.

Add a new directory to the PATH to allow running an application from it without typing the full path every time you wish to run it. PATH=$PATH:/usr/local/binPATH=$PATH:/usr/local/bin Or you may have something like this in your .bashrc to add this every time you log in. PATH="/home/jason/perl5/bin${PATH:+:${PATH}}"; export PATH;PATH="/home/jason/perl5/bin${PATH:+:${PATH}}"; export PATH;…

Read More

Very useful resources for learning penetration testing and Linux commands.

CysCA hacking challenge penetration testing results, how students overcame a few vulnerable network servers and successfully captured flags. Students Write-ups. A number of write-ups submitted by the students on the day, this is a document of their solutions for the challenge. https://www.cyberchallenge.com.au/pdf/CySCA2018-Students.pdf. Active Defense pentest. https://www.cyberchallenge.com.au/pdf/CySCA2018-Active_Defence_Questions.pdf. These resources might give…

Read More

How to disable the su to root in Linux using PAM.

The default Linux behavior allows the user to gain root access by typing su and entering the root password to gain a root prompt. If you wish to disable this behavior, then open this file as root for editing. jason@jason-Virtual-Machine:~$ vim /etc/pam.d/sujason@jason-Virtual-Machine:~$ vim /etc/pam.d/su Then un-comment this line. auth required…

Read More

Misc BASH shell tricks for the Linux user.

To recall the last entered command on the Linux console, press the Ctrl-P key shortcut. You may also press the up arrow to recall the command, but the Ctrl-P shortcut is another good way to perform this feat. The CTRL-A shortcut will jump to the beginning of the line you…

Read More

Digital TV on Linux really works well.

Using Digital TV on Linux is possible, but it depends on the adapter whether it will work or not. I had a Compro DVB T-300 digital TV card in my old PC. And the digital TV support will only work on Windows, I have to use a USB device to…

Read More

Fun with sed on Linux.

The sed command can be used to reverse text. This is a very interesting feature. Provide a text string, and it will be reversed. jason@jason-Virtual-Machine:~$ sed ‘/\n/!G;s/\(.\)\(.*\n\)/&\2\1/;//D;s/./Hello. /’ <<< ‘This is a long sentence in reverse. This is a lot of fun.’ Hello. .nuf fo tol a si sihT .esrever…

Read More

Get information about users on your Linux system easily.

A Linux system can have a lot of users in the /etc/passwd file. But it is easy to keep track of your users with the command line. The lslogins command will print a listing of known users on your Linux system. An example of the usage. jason@jason-Virtual-Machine:~$ lslogins UID USER…

Read More