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

How to find out the gateway IP address of your Linux machine on a LAN.

This is how you find out the gateway IP address of your Linux machine on a LAN. I have executed the route -n command and I have this output. The UG flags on the IP address denote it as a gateway IP address. root@darknet:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric … Read more

Using the Linux stat command to get information about a file.

The Linux stat command allows information to be shown about a file on your file-system. jason@darknet:~/Documents$ stat /bin/ls File: ‘/bin/ls’ Size: 118280 Blocks: 232 IO Block: 4096 regular file Device: 801h/2049d Inode: 10616940 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2016-02-01 08:55:40.145487505 +1100 Modify: 2015-03-15 02:47:04.000000000 +1100 Change: 2016-01-19 … Read more

How to get RHS units to garrison buildings in Arma 3.

The simple CBA_fnc_taskDefend function will enable RHS Escalation units to garrison buildings. The Community Base Addons mod is required for this function. Just place this code in the init of each group leader. [this] call CBA_fnc_taskDefend;[this] call CBA_fnc_taskDefend; This is another example. The troops will head towards the marker named ‘hq’ and occupy buildings around … Read more

How to update packages on your Debian GNU/Linux system.

The packages on your Debian GNU/Linux system must be kept up to date to ensure the security concerns are addressed. Use this command to install any pending updates. sudo apt-get update; sudo apt-get upgradesudo apt-get update; sudo apt-get upgrade The Debian user may also use this command. sudo aptitude update; sudo aptitude safe-upgradesudo aptitude update; … Read more