Tag Archives: ubuntu 11.10

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