Awesome Linux tricks and tips.

Some very useful Linux tricks and tips. Convert a Linux text file to DOS format with AWK. ┌──(john㉿DESKTOP-PF01IEE)-[~] └─$ awk ‘{sub(/$/,"\r")};1’ hello.txt > dodo2.txt┌──(john㉿DESKTOP-PF01IEE)-[~] └─$ awk ‘{sub(/$/,"\r")};1’ hello.txt > dodo2.txt Convert a DOS text file to UNIX format. [jason@darknet:~] awk ‘{sub(/\r$/,"")};1’ dodo2.txt > dodo3.txt[jason@darknet:~] awk ‘{sub(/\r$/,"")};1’ dodo2.txt > dodo3.txt Get your Internet-facing IP address from … Read more

Move the Unity launcher to the bottom of the screen with the new 16.04 release.

The new Ubuntu 16.04 release allows moving the Unity launcher to the bottom of the screen. This does make sense, screens are wider than they are tall, and I like having the bar on the bottom of the screen. Use the command below to move the bar to the bottom. jason@jason-desktop:~$ gsettings set com.canonical.Unity.Launcher launcher-position … Read more

How to format a new Linux partition with the command line.

This is how to format a hard disk partition that will hold data for your Linux system. The partition must be unmounted before formatting, but this is the ideal way to create a file-system on a new partition that has been created with fdisk. root@jason-desktop:~# mkfs.ext4 mkfs.ext4 mkfs.ext4dev root@jason-desktop:~# mkfs.ext4 /dev/sdd3 mke2fs 1.42.13 (17-May-2015) /dev/sdd3 … Read more

Cracking a pin number hash with hashcat on Debian Linux.

I recently needed to crack a pin number hash that was four digits and used the numbers 2490. This sounds easy, but hard until you realise that it is a relatively simple PIN. I used the command below to generate a 60 Gigabyte wordlist, containing all possible combinations of the numbers in the PIN. crunch … Read more

Cracking Windows 10 passwords with john the ripper on Kali Linux 2016.

Break Windows 10 password hashes with Kali Linux and John the Ripper Cracking the SAM file in Windows 10 is easy with Kali Linux. Use a Live Kali Linux DVD and mount the Windows 10 partition. Firstly, get the SAM and SYSTEM files from the C:\Windows\System32\config folder. Copy these to your desktop directory. Then dump … Read more

How to fix the read timeout with Me TV on Ubuntu GNU/Linux 16.04.

I was getting the read time-out error on Me TV on Ubuntu 16.04 and this is how I fixed it. Just run the application with this command line. ~$ me-tv –read-timeout 60~$ me-tv –read-timeout 60 This fixed the error. My ASUS My Cinema-U3100Mini Plus V2 device is now working and I am happy again. So … Read more

How to list all passwords on a Cisco switch.

This Cisco command will list all passwords on a switch. mrrobot#sh ru | inc password service password-encryption password 7 00141215174C04140B70 password 7 00141215174C04140B70mrrobot#sh ru | inc password service password-encryption password 7 00141215174C04140B70 password 7 00141215174C04140B70 The inc command looks for any text that matches the argument. Like this: mrrobot#sh ru | inc line line con … Read more

Use the ip route command to create an ip route manually on Linux.

This command will add an IP route to the 172.29.59.1 router using the wlan0 wireless interface card on my laptop. jason@darknet:~$ sudo ip route add 0/0 via 172.29.59.1 dev wlan0jason@darknet:~$ sudo ip route add 0/0 via 172.29.59.1 dev wlan0 This is part of the process of creating a network connection from your machine to a … Read more

Elevator spotted running GNU/Linux Ubuntu Unity desktop.

This photograph shows an elevator display screen that is displaying an Ubuntu Unity desktop environment with the updates manager prompting for updates to be installed. This is strange, this is not necessarily the most reliable desktop environment and running this on a computer in an elevator seems like a very dumb idea. But whoever designed … Read more

How to create a keyboard map in the .Xmodmap file.

Creating a .Xmodmap file for Linux is very easy. This file contains all of the keyboard mappings for the keyboard keys for your system. jason@darknet:~$ xmodmap -pke > ~/.Xmodmapjason@darknet:~$ xmodmap -pke > ~/.Xmodmap Now use less to view the completed file. jason@darknet:~$ cat .Xmodmapjason@darknet:~$ cat .Xmodmap This file can be edited if you wish to … Read more

How to set the time and date on a Cisco switch with the clock command.

This is how to set the clock and date on a Cisco switch using the clock command in privileged exec mode. Router#clock set 11:10:45 24 Feb 2016Router#clock set 11:10:45 24 Feb 2016 Check the date using this command. mrrobot#show clock 11:14:34.844 UTC Wed Feb 24 2016mrrobot#show clock 11:14:34.844 UTC Wed Feb 24 2016 Show the … Read more

How to stop the annoying domain lookup on a Cisco switch.

This is a very annoying feature on a Cisco switch… Router>en\ Translating "en\"…domain server (255.255.255.255)Router>en\ Translating "en\"…domain server (255.255.255.255) But, this is how to turn this behavior off. Run this command in privileged exec mode. arya(config)#no ip domain-lookuparya(config)#no ip domain-lookup And this behavior will no longer occur. arya#help2 Translating "help2" % Unknown command or computer … Read more

Install a Windows 3.1 styled theme on Lubuntu.

How to have a Win 3.11 styled Linux theme on a Linux desktop. Firstly, download this theme and save it to your Computer. Extract the theme to your ~/.themes directory: http://gnome-look.org/content/show.php/Win3x?content=169112. This Classic `95 icon theme will provide Windows `95 styled icons to help complete the classic Windows look: http://gnome-look.org/content/show.php/Classic95?content=157298. Put this into your ~/.icons … Read more

Get the command line of a process without the ps command.

To get the command line of a process without the ps command, and the PID of the command is known, use this command. This example is using a process with a PID of 28633. ubuntu ~ $ cat /proc/28633/cmdline ; echo upstart-socket-bridge–daemonubuntu ~ $ cat /proc/28633/cmdline ; echo upstart-socket-bridge–daemon This will show the command line … Read more

Linux Mint security breach cause for much discussion.

The recent security breach on the Linux Mint website shows that updating a WordPress website regularly is very important. This breach allowed malicious attackers to compromise the Mint website and change download links to point to Linux Mint ISO images that contained extra files. Therefore, the people using these ISO`s would have been using a … Read more

Retrieve information about your wireless interface on Ubuntu with the command line.

The /proc/net/wireless file contains information about your wireless connection. jason@darknet:~$ cat /proc/net/wireless Inter-| sta-| Quality | Discarded packets | Missed | WE face | tus | link level noise | nwid crypt frag retry misc | beacon | 22 wlan0: 0000 58. -52. -256 0 0 0 1 47 0jason@darknet:~$ cat /proc/net/wireless Inter-| sta-| Quality … Read more

Different ways to get user and system information on Linux.

The who command on Linux and UNIX systems will list all currently logged in users on your system. jason@darknet:~$ who -Htu NAME LINE TIME IDLE PID COMMENT jason :0 2016-02-13 13:43 ? 1895 (:0) jason tty2 2016-02-13 13:43 00:01 2164 jason pts/0 2016-02-13 13:43 . 2178 (:0.0)jason@darknet:~$ who -Htu NAME LINE TIME IDLE PID COMMENT … Read more

How to create an ISO image of a directory with the command line.

Creating an ISO image of a directory is useful sometimes. This command will create an ISO image of a directory, ready to burn to a CD or DVD. jason@darknet:~$ genisoimage -l -V hi -r ~/Downloads/stuff > cdrom.isojason@darknet:~$ genisoimage -l -V hi -r ~/Downloads/stuff > cdrom.iso Here is example usage, creating an ISO of a directory … Read more