How to upgrade a single package if needed using apt.

This command will update a single package upon request. This would be very useful if you want to update only one critical package on a Debian system. dpkg -s <package> 2>/dev/null | grep -q Status.*installed && sudo apt-get install <package>dpkg -s <package> 2>/dev/null | grep -q Status.*installed && sudo apt-get install <package> I found this … Read more

How to shutdown your Linux system properly with the command prompt.

The shutdown command for Linux and UNIX is used to shutdown your Linux system properly. This command will bring down the system immediately. shutdown -h nowshutdown -h now This will shut down the system in 60 minutes. shutdown -h +60shutdown -h +60 Use this command to reboot the computer immediately. shutdown -r nowshutdown -r now … Read more

Some miscellaneous Linux tips for Ubuntu and Linux Mint users.

If you are starting Firefox from a terminal window where you have specified the proxy settings, and you have the use system proxy settings option ticked, you will not need to set the proxy within Firefox. That is a very cool tip indeed. If you need to set the proxy before using apt, you will … 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

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

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

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

How to make the best use of apt on Ubuntu and Linux Mint.

This is how to automatically remove unneeded packages on your Linux Mint system. jason@jason-desktop:~$ sudo apt-get autoremove [sudo] password for jason: Reading package lists… Done Building dependency tree Reading state information… Done The following packages will be REMOVED: libglib2.0-0:i386 libgstreamer-plugins-base0.10-0 libgstreamer-plugins-base0.10-0:i386 libgstreamer0.10-0 libgstreamer0.10-0:i386 liborc-0.4-0:i386 libpgm-5.1-0 libpoppler57 libpth20 libsndio6.0 libzmq3 qtdeclarative5-qtfeedback-plugin qtdeclarative5-ubuntu-web-plugin 0 to upgrade, 0 … Read more

Setting up Debian 7.0 in VMware, how to install the VMware tools extensions.

The VMware tools are useful extensions for Debian, that allow a Linux distribution to be more usable in the VMware hypervisor. Use this simple command to install them in Debian 7.0. root@debian:/home/homer# apt-get install open-vm-tools-desktoproot@debian:/home/homer# apt-get install open-vm-tools-desktop The open-vm-tools-desktop package installs the graphical VMware tools additions that will speed up the desktop and enable … Read more

How to use VNC to connect to a remote Linux machine and administer it with the graphical desktop.

Using tightvnc to connect to a remote Linux machine is a good way to access a graphical desktop on a remote Linux box. Firstly; install the tightvnc server on the target machine to be accessed. homer@deusexmachina ~ $ sudo apt-get install tightvncserver [sudo] password for homer: Reading package lists… Done Building dependency tree Reading state … Read more

How I got my Realtek RTL2832 DVB-T USB adapter working on Debian 7.1.

I recently bought a TVstick branded USB TV tuner that had the Realtek Rtl2832UDVB chipset inside. Following the instructions on this site: http://jms.id.au/wiki/EzcapDvbAdapter. I was able to get this device working with the 3.2 kernel on Debian Linux 7.1. Firstly; retrieve the source code for the drivers. git clone –depth=1 git://linuxtv.org/media_build.gitgit clone –depth=1 git://linuxtv.org/media_build.git Then … Read more

how to use the git clone command through a http proxy.

The git clone command is used to pull the latest code from a GIT repository. But using it through a proxy can be annoying. Here is how to do this. Firstly; define your HTTP proxy information. export HTTP_PROXY="http://Monty.Burns:[email protected]:80"export HTTP_PROXY="http://Monty.Burns:[email protected]:80" Then you need to tell GIT about the proxy. git config –global http.proxy $HTTP_PROXYgit config –global … Read more

Installing MATE on Debian 7.1. I am trying this to install a better desktop.

I am currently in the process of installing the MATE desktop on my Debian 7.1 laptop. I wanted to install this desktop as I am sick of the Gnome 3 desktop and I want something that I can theme more easily. The instructions are on the MATE Download WIKI: http://wiki.mate-desktop.org/download. Once this is installed I … Read more

How to build a vanilla kernel from kernel.org on Linux and install it properly.

How to build and install a vanilla kernel on a Linux computer. How to build and install a vanilla kernel on a Linux computer.Getting the source code.Preparing to build the source.Compiling the kernelInstalling the kernel. This posting will explain how to build a vanilla kernel from kernel.org and properly install it to your Linux machine. … Read more