How to connect to a Windows machine using RDP from a Linux machine using bash.

The rdesktop utility for Linux allows easy remote desktop access from a Linux machine. Type: sudo apt-get install rdesktop to install this useful utility and then type: rdesktop 192.168.100.5 to connect to a remote machine. Specify the username with the -u parameter: rdesktop -u homer 192.168.100.5. If you wish to use RDP in full-screen; enabling … Read more

Some very useful networking tricks for Linux/UNIX users.

Get your gateway IP address with curl on the command line. [homer@localhost ~]$ echo $(curl -# http://ipecho.net/plain) ######################################################################## 100.0% 153.107.97.164[homer@localhost ~]$ echo $(curl -# http://ipecho.net/plain) ######################################################################## 100.0% 153.107.97.164 Another way to list the IP addresses of your network interfaces. Using the ip command. [homer@localhost ~]$ ip a | grep inet* inet 127.0.0.1/8 scope host lo … Read more

Useful networking commands for listing open ports and listening services.

To print a list of all open ports and established TCP connections, type this command. homer@deusexmachina /etc/asterisk $ netstat -vatn Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.1:4101 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 … Read more

A useful script for gaining information about your Ethernet adapter.

This useful shell script will print information about your Ethernet or Wireless adapter. This is very useful for getting a lot of information at once. #!/bin/sh   DEV="eno16777736"   echo "Showing information for the active network interface: $DEV."   echo -e "-*- \e[1mGet timestamping information for your Ethernet device.\e[0m -*-" echo   ethtool -T $DEV … Read more

How to open an RDP connection to Windows from Linux using the remote desktop utility for Gnome.

Opening a Remote Desktop connection from Linux to Windows is very easy when you are using the Remote Desktop utility for the Gnome 3 desktop. This is a very easy RDP application for Linux. Below I am entering the details for a new connection. Just go to Applications->Internet-Remote Desktop Viewer to open this useful utility. … Read more

Amazon web services. The perfect alternative to a locally hosted server solution.

Amazon Web Services is the perfect solution for hosting a server outside your organization. This allows you to create a cloud hosted database server that takes the strain off your local server infrastructure using Microsoft SQL server 2012 or a Linux based solution in a cloud hosted server instance. There is a free trial that … Read more

How to list users on a WordPress website with the Kali Linux distribution and wpscan.

Kali Linux has available to it a Ruby script that may be used to list all users on a WordPress website. Use the command below to scan a website for security vulnerabilties and see if there are any problems with the website. root@kali:~# wpscan –url mywordpresssite.com –enumerate userroot@kali:~# wpscan –url mywordpresssite.com –enumerate user Use this … Read more

The mtr command for Linux. Another way to trace network hops using the command line.

The mtr command for Linux is another good way to trace network hops. Use it like this: mtr –report [HOST] homer@deusexmachina ~ $ mtr –report yahoo.com Start: Mon Jul 28 07:42:16 2014 HOST: deusexmachina Loss% Snt Last Avg Best Wrst StDev 1.|– 192.168.100.1 0.0% 10 0.3 0.3 0.3 0.4 0.0 2.|– 185.3.148.122.network.m2c 0.0% 10 29.0 … Read more

A good guide to creating SSH keys and disabling the password for an SSH login.

This guide I just used used allows a Linux user to disable the password and enable SSH keys to manage logins to an SSH server. http://lani78.com/2008/08/08/generate-a-ssh-key-and-disable-password-authentication-on-ubuntu-server/. This is very useful, you can access your machine remotely and without requiring the user to remember a complex password. if you are on Windows, the Bitvise SSH client … Read more

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