Ubuntu 11.10 – 12.04 Tweaks

Many of these things aren't 11.10 specific, but since I find myself applying the same changes to each machine I install a list seemed prudent. Without a list I wind up trying to figure out why X works on one computer but not another. Play encrypted DVDs

sudo apt-get install libdvdread4

sudo /usr/share/doc/libdvdread4/install-css.sh

Add Medibuntu Repository

sudo wget –output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list &&sudo apt-get –quiet update && sudo apt-get –yes –quiet –allow-unauthenticated install medibuntu-keyring && sudo apt-get –quiet update

Classic Menu

http://www.noobslab.com/2011/07/classic-menu-indicator-on-ubuntu-1104.html

Menu Editor (and other Gnome stuff)

sudo apt-get install gnome-session-fallback

Allow stuff so display in top panel

gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

Kdenlive Latest Version My Favorite Video Editor

sudo add-apt-repository ppa:sunab/kdenlive-release && sudo apt-get update && sudo apt-get install kdenlive

sudo apt-get upgrade {this will get the new MLT packages}

Posted in Linux General | Tagged , , | Leave a comment

Removing open_basedir restriction from an iBay

Taken from: http://contribs.org/modules/phpwiki/index.php/TroubleshootingFAQ

* PHP Warning: (…) open_basedir restriction if installing anything PHP related in ibay

Related to open_basedir setting in php.ini file. SME does not allow PHP in /tmp or /usr/share. This is a security measure. PHP values are set per ibay in the template:

/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays

There you can set the basedir (or the includedir) for all ibays by changing the template.

These commands solves it, tmp could be another location where PHP wants to write.

/sbin/e-smith/db accounts setprop PHPBaseDir /home/e-smith/files/ibays//:/tmp
/sbin/e-smith/signal-event ibay-modify

Posted in SME Server | Leave a comment

PERC 5/i Array Management

Dell Open Management System Administration doesn’t work on the PERC 5/i

Dell SAS Storage Manager can’t add drives to an existing array

LSI MegaRAID Storage Mananger is the key

Download here

Command Line Cheat Sheet

Add Drive to existing Array

1. Connect the new drive to the controller. You may connect it while your server is working if you have how swap bays.

2. Open MegaRAID storage manager. You may also do the following procedure from BIOS but I would not recommend that because the procedure may take many hours (10+) and you dont want your server off-line for that long.
3. Click “Logical”
4. Right click on the virtual disc with the 3*1.5TB disks and select Advanced Reconstruction Wizard.
5. Click Add drive
6. Select the new disk and click “Add”.
7. Make sure that the correct RAID level is selected (RAID 0 or RAID 1).
8. Click next (or accept).

I just done this procedure. The perc is reconstructing the array on the fly. I can access my files while it is reconstructing the array.

Configuration backup

If the perc5 dies you have to find another perc5 with the same or newer firmware and the same configuration.

It is highly recommended that you save the configuration on a safe place (usb stick, email, CD-R). You may save the configuration file using MegaRAID storage manager.

I cleared the perc5 configuration once by accident and I was not able to recover the array data because I did not have the configuration file. I was lucky I made that mistake on my personal computer and not on a working server.

Posted in SME Server | Leave a comment

EXT3 to EXT4 migration SME 8 Beta 6

# Make sure you’re current
yum update

# Apply the changes
signal-event post-upgrade; signal-event reboot

#Get new tools
yum -y install e4fsprogs

# Edit /etc/fstab and set desired partitions to ext4. I was scared of /boot and just did /

# The line looked like this when I was done:
/dev/main/root / ext4 usrquota,grpquota 1 1

# Do the deed:
tune4fs -O extents,uninit_bg,dir_index,flex_bg -m 1 /dev/main/root

# Run e4fsck (Runs for a while)
e4fsck /dev/main/root

Posted in SME Server | Leave a comment