Get information about your network interface with Linux.

Linux has quite a few commands for finding out information about your network adapters. Below is an example. Using the ethtool command as root. homer@deusexmachina ~ $ sudo ethtool eth2 [sudo] password for homer: Settings for eth2: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supported pause frame use: No … Read more

How to use SFTP on Linux and copy files easily.

This video shows how to use the SFTP command on Linux and transfer files easily. How to use sftp to retrieve files from a remote Linux server securely. https://securitronlinux.com/debian-testing/how-to-use-sftp-to-retrieve-files-from-a-remote-linux-server-securely/. Copy a file from one UNIX/Linux machine to another using the sftp utility. https://securitronlinux.com/debian-testing/copy-a-file-from-one-unixlinux-machine-to-another-using-the-sftp-utility/. How to upload files to your Amazon AWS instance using the bash … Read more

How to take a screenshot of a Linux desktop over SSH.

To take a screenshot of a Linux desktop over SSH; firstly you must set the DISPLAY environment variable. homer@deusexmachina ~ $ export DISPLAY=:0homer@deusexmachina ~ $ export DISPLAY=:0 Then use scrot to capture a screenshot of the desktop to a file. homer@deusexmachina ~ $ scrot :0 my.jpeghomer@deusexmachina ~ $ scrot :0 my.jpeg Since I am using … Read more

How to fix the incorrect time in Linux Mint Debian Edition.

The time in Linux Mint Debian Edition can be wrong compared to your Windows installation; this is easily fixed though. Open the /etc/adjtime file in VIM. vim /etc/adjtimevim /etc/adjtime Then change the last line from UTC to LOCAL as shown below. deusexmachina ~ # cat /etc/adjtime 0.014261 1405441104 0.000000 1405441104 LOCALdeusexmachina ~ # cat /etc/adjtime … Read more

Awesome themes that would suit a modern KDE 5 desktop.

Themes. Oxygen GTK, a port of the KDE Oxygen theme to GTK: http://kde-look.org/content/show.php/Oxygen+Gtk?content=136216. Aeri 5.0. This is a flat and light theme inspired by mobile and tablet operating system interfaces: http://kde-look.org/content/show.php/Aeri+?content=162303. Kawai. A very smooth and sleek KDE theme: http://kde-look.org/content/show.php/Kawai+%5BQtCurve%5D?content=141920. Descartes Breeze: http://kde-look.org/content/show.php/Descartes+Breeze?content=165578. Soft Metal: http://kde-look.org/content/show.php/Soft+Metal?content=120867. Lightning Unified QtCurve: http://kde-look.org/content/show.php/Lightning+Unified+QtCurve?content=155169. Polyester 1.0.4: http://kde-look.org/content/show.php/Polyester?content=27968. Skulpture: http://kde-look.org/content/show.php/Skulpture?content=59031. … Read more

How to use rsync to copy files from one computer to another.

This is an example where I am using the rsync command to copy files from one computer to another. homer@deusexmachina ~ $ rsync -avz -e "ssh -p 443" [email protected]:/home/homer/Desktop/ /home/homer/Videos The authenticity of host ‘[192.168.100.4]:443 ([192.168.100.4]:443)’ can’t be established. ECDSA key fingerprint is ############################################. Are you sure you want to continue connecting (yes/no)? yes Warning: … Read more

Some more useful Linux commands for the desktop and server user.

This simple command allows the user to print the contents of a variable. homer@deusexmachina:~ % echo "$LOGNAME" homerhomer@deusexmachina:~ % echo "$LOGNAME" homer Use the netstat command to get information about all network connections to and from your machine. homer@deusexmachina:~ % netstat Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 … Read more

Some useful Linux scripts for the desktop Linux user who likes the command line.

There are many useful Linux tips that make the life of a Linux user much easier. One is for the VI or VIM editor. To open a file at a specific line; use this command. homer@deusexmachina ~/Documents/yadex-1.7.901 $ vim src/x11.h +33homer@deusexmachina ~/Documents/yadex-1.7.901 $ vim src/x11.h +33 This will open the file x11.h at line 33. … Read more

How to calculate an IP subnetwork with the sipcalc command.

The sipcalc command is very useful for calculating an IP subnet. This command shows the amount of hosts available for a given subnet. root@debian:/home/homer# sipcalc 192.168.100.1/24 -[ipv4 : 192.168.100.1/24] – 0   [CIDR] Host address – 192.168.100.1 Host address (decimal) – 3232261121 Host address (hex) – C0A86401 Network address – 192.168.100.0 Network mask – 255.255.255.0 … Read more

The proper command to install the ATI fglrx drivers on Linux Mint Debian Edition.

This is the proper command to install the accelerated ATI drivers on Linux Mint Debian Edition. The fglrx-driver package allowed me to use higher resolutions after enabling the driver with this command: sudo aticontrol –initial but the driver did not allow acceleration. After using this command to install all of the required ATI packages, I … Read more

How to review package installation logs on Linux Mint Debian Edition.

The cat /var/log/apt/term.log command will allow you to retrieve information about a package installation; you may then review the installation process and see if anything went wrong during the installation process. In the example below, I am reviewing an installation of Midnight Commander. jason@darkstar:~$ cat /var/log/apt/term.log | grep mc Selecting previously unselected package libxdmcp6:amd64. Preparing … Read more

NSA equating Linux use with terrorism.

The NSA are equating Linux users with terrorists. This after they created the NSA Selinux security framework for Linux machines around the world. They are monitoring the visitors of the website http://www.linuxjournal.com and flagging them as terrorists and putting them on a watchlist. This is a quite concerning development. Linux users are usually more experienced … Read more

How to copy files from one machine to another using SSH and the sftp command.

The sftp command allows a user to retrieve files on a remote machine and save them on their computer. Use this command to access the files: sftp -P 443 [email protected]:/home/homer/Downloads/*.pdf I have my SSH server running on port 443, so I need to specify that port when using this command. I am using Cygwin on … Read more

Another way to listen to Wi-Fi traffic using Kali Linux and a wireless adaptor.

The p0f command for Kali Linux allows a user to listen in on traffic passing over a wireless network. I am using a Netgear WLAN adapter and I am listening in on an open Access Point. This is the command to use: p0f -i wlan0 this will start the p0f traffic sniffer. root@kali:~# p0f -i … Read more

How to use the touch command to create a file with an arbitrary filename.

The touch command ordinarily does not allow the user to create files with a filename like –rf, but if you want to really annoy someone then you may use this command to create one. homer@debian:~$ touch — ‘–rf ‘homer@debian:~$ touch — ‘–rf ‘ And now you have a file named –rf. -rw-r–r– 1 homer homer … Read more