Category Archives: linux

Clonning CentOS 6.2 in VirtualBox

Step 1

Install, update & configure your new CentOS installation. I wanted to install the Virtualbox Guest Additions and I recommend that you do the same due to the extra drivers and extensions it installs as it will make it easier later on (seamless mode and you don’t have to RIGHT CTRL every time you want to click outside the VM)

To install the Virtualbox Guest Additions do the following:

Read more »

Ubuntu Mediawiki Move LocalSettings.php Fix

If you have just installed Mediawiki from its .deb package and you get the below message:To complete the installation, move config/LocalSettings.php to the parent directory.

Then all you have to do is move the the LocationSettings.php file:

 sudo mv /var/lib/mediawiki/config/LocalSettings.php /etc/mediawiki

Refresh the page and it should all work nicely!

Auto Mount SMB/CIFS Shares Ubuntu 11.10

If you are always accessing network shares from your Linux desktop you might find it easier to have those shares automatically mounted at login.

This can be achieved like so on a Ubuntu installation:

Step 1

First we’ll add our remote SMB/CIFS share information to the /etc/fstab file:

sudo nano /etc/fstab

And at the end of the bottom of the fstab file add the following:

//YOURSMBCIFSSHAREIP /media/YOURSMBCIFSSHARE smbfs credentials=/home/YOURUSERNAME/.smbcred,gid=users

Simply put your SMB/CIFS share IP address and then the desired name that will appear in /media/ as. Then in the next step we’ll create a credentials folder so you’ll want to put in your username in the path there and ultimately we want to allow all users to access this share, so we add the users group.

Step 2

Now create a credentials file in your home directory /home/yourusername

 nano ~/.smbcred

And add the following in the newly created file:

username=YOURSMBUSERNAME
password=YOURSMBPASSWORD

Now you don’t have to create the .smbcred file if authentication is disabled on your share. You can leave the fields blank or remove credentials=/home/YOURUSERNAME/.smbcred.

Update Ubuntu 11.10 to Kernel 3.2

So you want to take advantage of the new features the new version of Kernel 3.2 has to offer? Fear not, simply copy and paste the below commands and you’ll be good to go!

Some of the main features along with many others of 3.2 are:

  • Ext4 now supports block sizes up to 1MB, which decreases the time spent doing block allocations.
  • Btrfs delivers detailed curruption error messages, so instead of something like ‘block xyz is bad’ you get this:
    btrfs: checksum error at logical 5085110272 on dev /dev/sde, sector 2474832, root 5, inode 32583, offset 0, length 4096, links 1 (path: default/kernel-0/Makefile)
  • Lots of filesystem performance improvements.
  • A process scheduler divides the available CPU bandwidth between all processes that need to run.
  • Inclusion of a TCP “Proportional Rate Reduction” algorithm, developed by Google, which improves latency and the time to recover.
  • Support for transmission of IPv6 packets as well as the formation of IPv6 link-local addresses and statelessly autoconfigured addresses on top of IEEE 802.15.4 networks.

For 32bit Systems


wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2-precise/linux-headers-3.2.0-030200_3.2.0-030200.201201042035_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2-precise/linux-headers-3.2.0-030200-generic_3.2.0-030200.201201042035_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2-precise/linux-image-3.2.0-030200-generic_3.2.0-030200.201201042035_i386.deb

sudo dpkg -i linux-headers-3.2.0-030200_3.2.0-030200.201201042035_all.deb
sudo dpkg -i linux-headers-3.2.0-030200-generic_3.2.0-030200.201201042035_i386.deb
sudo dpkg -i linux-image-3.2.0-030200-generic_3.2.0-030200.201201042035_i386.deb

For 64bit Systems

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2-precise/linux-headers-3.2.0-030200_3.2.0-030200.201201042035_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2-precise/linux-headers-3.2.0-030200-generic_3.2.0-030200.201201042035_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.2-precise/linux-image-3.2.0-030200-generic_3.2.0-030200.201201042035_amd64.deb

sudo dpkg -i linux-headers-3.2.0-030200_3.2.0-030200.201201042035_all.deb
sudo dpkg -i linux-headers-3.2.0-030200-generic_3.2.0-030200.201201042035_amd64.deb
sudo dpkg -i linux-image-3.2.0-030200-generic_3.2.0-030200.201201042035_amd64.deb

Xubuntu 11.10 & USB Headset Workaround

So you got yourself Xubuntu 11.10 installed and now want to Skype with your USB headset. Great, so you plug in your headset into the USB port, start Skype call a friend (or the test call bot) and BAM – audio out from the speakers and no mic recording in sight! You scratch your head… You dig around the ALSA mixer but nothing, no matter how many “Controls” you select it just wouldn’t happen and this is why ladies and gents Linux is still a basement level 10 paladin player toy OS to brag about on forums.

Read more »

Xubuntu 11.10 & Redshift Howto

Following on from my previous rant/workaround in getting your USB headset to work, it is time to save our eyes by configuring “Redshift. As the developer puts it:

Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night. This program is inspired by f.lux (read here for the reason why I started this project).

In my case, simply installing it via “Ubuntu Software Center” didn’t work, why should it? It would be too easy then, so anyway.

Read more »

OpenVPN Access Server ESXi 4.1 Installation Guide

In the this tutorial we will be going through deploying a OpenVPN Access Server (AS) from scratch in a VMWare ESXi 4.1 environment. This should be perfect for a home VPN server (due to licence limitations of a maximum of 2 users being connected at the same time)!

Good luck and read on!

Step 1

Open VMWare vSphere Client and go to File > Deploy OVF Template

Select "Deploy OVF Template from the File menu

Read more »

Linux Mint Font Rendering

Following on from my Terminal font post I decided to further tweak the way text is rendered on Linux Mint, especially the way it looks on a laptop LCD screen. After bleeding eyes and a lot of squinting I think I’ve got it set.

Font settings window

I selected the Ubuntu font with a size 10

Read more »

Ubuntu Terminal Font

So I have just installed the latest version of Linux Mint (12 RC) and I wasn’t pretty happy with the default font in Terminal on a laptop… And so my search started until I found the good ‘ol xfonts-terminus font font:

Linux Mint 12RC displaying xfonts-terminus font

Simply installed by:

$ sudo apt-get install xfonts-terminus

Ubuntu 10.04 (Lucid Lynx) Behind Proxy

If you have a Ubuntu 10.04 LTS (Lucid Lynx) installation behind a proxy and you would like to use APT-GET and WGET then the below modifications need to be implemented:

Modifying apt.conf:

# sudo nano /etc/apt/apt.conf

And add these two lines:

Acquire::http::Proxy "http://user:pass@proxy-host:port/";
Acquire::ftp::Proxy "http://user:pass@proxy-host:port/";

If a username and password is not required, simply remove them as so:

Acquire::http::Proxy "http://proxy-host:port/";
Acquire::ftp::Proxy "http://proxy-host:port/";

Save & exit.

Modiying WGET

Simply run the below command:

# echo "export http_proxy=http://user:pass@proxy-host:port/" | tee -a ~/.bashrc

If there isn’t a username or password:

# echo "export http_proxy=http://proxy-host:port/" | tee -a ~/.bashrc

Done! :)