Ubuntu 16.04 sources.list file. Might be useful.

This sources.list file might be useful for an Ubuntu desktop user who has overwritten their file and needs a new one. ## SOURCES LIST FOR UBUNTU 16.04 LTS XENIAL XERUS ## ALSO FOR XUBUNTU 16.04, LUBUNTU 16.04 ## AND KUBUNTU 16.04 ## From: http://sites.google.com/site/easylinuxtipsproject ## This list is for the Main server; you might want … Read more

Create aliases with the Linux command line to make commands easier to remember.

Creating an alias for bash makes remembering a command easier. This is how longer commands may be simplified. Here is an example. [jason@darknet:~] alias lseasy=’ls -lAhF'[jason@darknet:~] alias lseasy=’ls -lAhF’ This is the output. [jason@darknet:~/Videos] lseasy total 4.8G -rw-r–r– 1 jason jason 18 Mar 24 13:34 authrootseq.txt -rw-r–r– 1 jason jason 23K Mar 24 13:55 heap2.htm … Read more

Windows 10 bash shell not very impressive at all.

The new Windows 10 bash shell is not very impressive once you get it installed. I have tried it and I could not ping websites even though Microsoft Edge could access the Internet. It is possible to install packages if these lines are added to the /etc/hosts file. 91.189.91.14 archive.ubuntu.com 91.189.92.201 security.ubuntu.com91.189.91.14 archive.ubuntu.com 91.189.92.201 security.ubuntu.com … Read more

How to get weather information with curl on Linux.

The curl command on Linux may be used to get weather information from the Internet. The curl wttr.in/”new york” command will retrieve weather information from wttr.in. [jason@darknet:~] curl wttr.in/"new york" Weather for City: New York, United States of America   \ / Clear .-. 6 – 8 °C ― ( ) ― ↓ 9 km/h … Read more

Windows 10 bash shell 10.0.14316 very good for getting system information.

The new bash shell in Windows 10 build 10.0.14316 is the best addition to Windows 10 yet. Here I am getting information about the CPU. root@localhost:/mnt/c/Users/johnc# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 60 model name : Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz stepping : 3 microcode : … Read more

How to build a 4.6 kernel on Ubuntu 16.04.

Firstly, download a kernel tarball from kernel.org. jason@jason-desktop:~$ wget https://cdn.kernel.org/pub/linux/kernel/v4.x/testing/linux-4.6-rc1.tar.xz –2016-03-29 10:22:34– https://cdn.kernel.org/pub/linux/kernel/v4.x/testing/linux-4.6-rc1.tar.xz Resolving cdn.kernel.org (cdn.kernel.org)… 103.245.222.69 Connecting to cdn.kernel.org (cdn.kernel.org)|103.245.222.69|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 89423304 (85M) [application/x-xz] Saving to: ‘linux-4.6-rc1.tar.xz’   linux-4.6-rc1.tar.xz 100%[======================================================================>] 85.28M 1.29MB/s in 66s   2016-03-29 10:23:54 (1.28 MB/s) – ‘linux-4.6-rc1.tar.xz’ saved [89423304/89423304]jason@jason-desktop:~$ wget https://cdn.kernel.org/pub/linux/kernel/v4.x/testing/linux-4.6-rc1.tar.xz –2016-03-29 … Read more

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