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

Some awesome UNIX tricks. Create a file that is hard to delete.

Very old CRT terminal.

Here is one for any experimenters out there… It is possible to create files which simply cannot be deleted from the standard shell. To do this you will have to physically create the file using a script or a text editor, and you will have to use a sequence of control characters which cannot be … Read more

Get SSL information from a website using sslscan.

The sslscan command for the Kali Linux penetration testing distribution is very useful for gaining an insight into the SSL configuration of a web site. Here is example usage on healthcare.gov… root@darknet:~# sslscan healthcare.gov Version: 1.10.5-static OpenSSL 1.0.2e-dev xx XXX xxxx   Testing SSL server healthcare.gov on port 443   TLS renegotiation: Secure session renegotiation … Read more

How to use the ip command to bring down an interface on RHEL.

The ip command is a useful alternative to the ifconfig command and allows the user to manage network interfaces. This is a good way to use the command line to bring network interfaces up or down. In this example I am bringing the network interface down. [root@localhost jason]# ip link set eno16777736 down [root@localhost jason]# … Read more