Useful Linux commands and tips for beginners.

Useful tips and commands for absolute Linux beginners. The Linux command line has many useful commands that are useful for managing files and installing software. I will cover a few in this post. cp. This command is used to copy a file from one location to the other. For example:…

Read More

How to fix problems with the apt-get command when installing packages.

Sometimes when you are using the apt-get command to install updates you can get errors when installing a deb package. This is easily remedied by using the -f parameter to the apt-get install command. Use it like this: homer@lollinux-machina:~$ sudo apt-get -f installhomer@lollinux-machina:~$ sudo apt-get -f install This will run…

Read More

How to install Virtualbox 4.3 on Fedora Core 19.

To install Virtualbox 4.3 on Fedora 19; firstly navigate to the directory that contains the *.repo files. cd /etc/yum.repos.d/cd /etc/yum.repos.d/ Then retrieve the file for the Virtualbox repository. wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repowget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo And update the repository files. yum updateyum update Now you should be able to install Virtualbox. yum install VirtualBox-4.3yum…

Read More

Running Windows Vista in Virtualbox with Linux Mint 15.

Vista running in Virtualbox and how to RDP into Windows from Linux. Here I am running Windows Vista in Virtualbox. This is an older version of Windows, but I really wanted to try this out on my laptop. I installed the 32bit Virtualbox Guest Additions in Vista and now I…

Read More

The old xmms music player is still available for Fedora 19!

To install the old xmms mp3 player on Fedora 19 just use this command. root@neo homer# yum install xmms.x86_64 xmms-mp3.x86_64 xmms-pulse.x86_64 xmms-flac.x86_64root@neo homer# yum install xmms.x86_64 xmms-mp3.x86_64 xmms-pulse.x86_64 xmms-flac.x86_64 This will install xmms as well as support for the Pulseaudio sound system and the FLAC sound codec. I thought that…

Read More

Another way to get information about your laptop battery when you are running Linux.

This command: upower -i /org/freedesktop/UPower/devices/battery_BAT0 will give you information about your laptop battery. homer@neo:~/Documents$ upower -i /org/freedesktop/UPower/devices/battery_BAT0 native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:0c/PNP0C0A:00/power_supply/BAT0 vendor: PANASONIC model: Li_Ion_4000mA serial: 0000 power supply: yes updated: Sun Sep 29 02:39:34 2013 (3 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: discharging…

Read More

How to turn on swap partitions in Fedora Core Linux.

I recently wanted to add a swap partition to my Fedora Core 19 system as apparently I was running all this time without one. This is the command that I used to find a partition to use. root@neo homer# fdisk -l /dev/sdb   Disk /dev/sdb: 500.1 GB, 500107862016 bytes, 976773168…

Read More

How to use the interactive features of the Linux rm command.

In this example; I am using the -i parameter to the rm command to ask for permission before erasing a file. This is very useful if you want to be sure that you are wiping the correct file. homer@deep-thought ~/Documents $ rm -i thoughts.txt rm: remove regular file ‘thoughts.txt’? yhomer@deep-thought…

Read More

Some commands that you should never run in Linux ever!

This is one command that you should never run on Linux. $(echo 726d202d7266202a | xxd -r -p)$(echo 726d202d7266202a | xxd -r -p) This is the text string “rm -rf *”” that is converted to hexadecimal and then put into this command. This will erase all of your files if you…

Read More