« December 2008 | Main | March 2009 »

February 27, 2009

Crunchbang Linux

Decided to try a new flavour of linux on the netbook to see if by going with an Ubuntu based distribution there would be more up to date stuff avalable.

I went with crashbang as it looked like most of the stuff worked...even though it had a dodgy name
I followed this guide

I had to rebuild it shortly after as I found that if I installed the recomended kernel I couldnt get my Vodafone mobile Connect USB stick to be recognised by the netbook.

I installed vodafone mobile connect from here
follow the instructions under the Debian, Ubuntu, Ubuntu Netbook Remix, Linux Mint secion

Only other configuration I have had to do so far is to get the mic to work in skype I had to set the inbound sound to use the device HDA Interl (hw:intel,0) from the dropdown options in the skype sound devices configuration.

February 26, 2009

Backing up Acer Aspire One

I usd this method to backup the netbook tonight before I tried a different version of Linux

Had to zero the drive first to reclaim all the space I had been using otherwise my backup was just too large

Acer Aspire One Backup
AA1BACKUP is a backup solution for the Acer Aspire One based on free and open source software. It makes an exact copy of the drive, bit for bit, and therefore works with any file system, partition table or operating system. And to emphasize its operating system independence it can be installed from either Linux or Windows.

In Windows just download the installer from here.
In Linux open a terminal and run the following commands.

wget -O aa1blinux http://sites.google.com/site/aa1backupinstaller/1/aa1blinux
chmod 755 aa1blinux && sudo ./aa1blinux

The only selectable option is the drive letter or device node.

You can now reboot and press F12 to select the USB drive from the boot menu. The next menu will only have two options: BACKUP and RESTORE. Selecting either of them will start the fully automated backup or restoration process. There will be no further prompts or warnings.

A sufficiently large USB drive is obviously required to store the backup on. If your USB stick or external USB hard drive matches or exceeds the size of the internal solid state disk or hard drive you're set.

In most cases a smaller USB drive will also work due to the data being compressed during the backup. Not already compressed data is compressed by a factor of 2:1 on average at a speed of about 40 MB/s, which exceeds the write speed of any USB stick and most portable external hard drives. Free space is compressed by a factor of 250:1. Note that most of the free space may not be really empty, depending on the amount of data already written to the drive, but just not indexed in the file table. To get the increased compression ratio just overwrite all free space with zeros. There are probably a few freeware tools to do this in Windows, one of them is eraser. In Linux only a single command is required.

dd if=/dev/zero of=zero; rm -f zero

Another benefit of zeroing the free space is an increased backup speed, especially if you only have a slow USB stick. And most of them are very slow. If the write speed is not specifically advertised or mentioned anywhere then it's usually just 3MB/s. External hard drives are usually fast enough, but a 120GB or 160GB backup will take a while in any case.

A fresh system installed from the recovery image with some modifications takes up about 2-4GB of disk space, depending on the amount of actual software removed or installed. The backup fits nicely on a 2GB stick and can then be used as an updated recovery image, which avoids going through all the modifications again on every reinstall.

The backup itself is split into 1GB files and stored in the backup folder in the top directory of the USB drive. The files are automatically removed before the next backup, but you can still keep several backups if you move them to another medium or simply rename the backup folder if there's still enough space for another backup.

And despite its name suggesting otherwise AA1BACKUP is not limited to the Acer Aspire One, but will also work with all other currently available netbooks like the Asus EEE, Dell Inspiron Mini 9, Samsung NC10 or Lenovo S9. Probably most notebooks as well. There is however a limitation: it only makes a backup of the first physical drive and it does probably not work with non-SATA controllers.

As a final note a few words on the software used to realize this project. The installer is a custom version of Unetbootin and the distribution is based on Linux Live scripts with a slimmed down version of SLAX.

Upgrading the Memory in the Acer Aspire One

Bit of a big job to do this... if you are every brave enough instructions are here
http://www.aspireoneuser.com/forum/viewtopic.php?f=40&t=2673

Updating the Acer Aspire one Bios

Updated the BIOS today using these instructions

1. You need a USB flash drive (SanDisk or any Generic brand)
2. Make it bootable to DOS by following these instructions:
Just download the file from here
Set the distribution to FreeDOS 1.0 and set the drive letter to be the USB drive
3. Download the latest BIOS and Extract all files from the BIOS zip file onto the USB stick.
4 Reboot and press F12 to select a bootable device. Choose option 5 when prompted by DOS and ignore the error about a missing CD-ROM. Change to drive C: and if that doesn't work try drive B: instead.
5 Run the included batch file to flash the BIOS by simply entering its filename, The AC adapter must be connected or else the flash utility will wait until it is.


February 22, 2009

Vodafone Mobile Connect - Linpus

Found these instrucions to get Vodafone Mobile Connect working on Linpus and my Acer Aspire one. I use a Vodafone USB 3G device E172


Download the installer from here, and save it to your Desktop.

Then, open a terminal, and run:


cd ~/Desktop
sudo sh vodafone-mobile-connect-card-driver-for-linux-2.0.beta3-ALL-i386-installer.run


When prompted, enter your password

You will be prompted to enter users who should have permissions for this: enter your username, and root

When installation has finished, you should be able to run the utility from the terminal by typing:


sudo vodafone-mobile-connect-card-driver-for-linux


or, if you modify the entry in the Internet section of the Launch menu, so that the command "vodafone-mobile-connect-card-driver-for-linux" is prefaced with "sudo", you can run it by clicking on there instead.

Acer Aspire one official linux updates

found a website with some easy to install linux updates for the apire one

http://www.acer.com/aspireone/support/files/connect.html

February 19, 2009

Acer Aspire Netbook

After saying I wouldnt get one I finally decided that at £150 it was too good a bargin too pass up

The netbook comes with a cut down version of linux on it called linpus. Its quite locked down so that its nice and easy to use.

To unlock it I followed the instructions here

http://jorge.fbarr.net/2008/08/06/acer-aspire-one-tips-and-tricks/

First I unlocked the deskop by doing

SUPERUSER
sudo su -

NOTEPAD style editor
mousepad

But the thing is, when you replace xfdesktopnew with xfdesktop-xfce, a script called xfce-mcs-manager won’t start up, and that is what some people find so “horrible” about the regular xfce-desktop. If we open up the file xfdesktopnew located in /usr/bin/, we find the following:

#!/bin/sh
if [ -f /usr/bin/xfce-mcs-manager.new ];then
sudo mv /usr/bin/xfce-mcs-manager.new /usr/bin/xfce-mcs-manager
fi
/usr/bin/xfdesktop2 & >/dev/null 2>&1
sleep 5
if [ -f /usr/bin/xfce-mcs-manager ];then
sudo mv /usr/bin/xfce-mcs-manager /usr/bin/xfce-mcs-manager.new
fi
As you can se here the script xfdesktopnew starts the application xfdesktop2. What that script contains, I’ve no idea. Try opening the file for yourself, you’ll see what I’m talking about. Anyway, in order for this to work, change the line:

/usr/bin/xfdesktop2 & >/dev/null 2>&1
to:

/usr/bin/xfdesktop & >/dev/null 2>&1
Save it and close it. Next, open up the file /usr/bin/xfdesktop, and change line 6 to look like this:

/usr/bin/xfdesktop-xfce & >/dev/null 2>&1
Save, close, and reboot. You should have a fully working xfce desktop, with icons!


Usually when you’re in xfce you can right-click on the desktop to bring forth a menu. This isn’t enabled as a standard function with the desktop that comes with the Acer Aspire One. To enable it, do the following.

On your desktop, under the File category, select My Documents. When this opens, select File and then Terminal. When the terminal opens, type:

$ xfce-setting-show
This will bring up the xfce settings manager. Select Desktop, Behavior and click the box named Show desktop menu on right click. Voila, that should be it.


Installing Firefox 3

If you want Firefox 3 to be installed properly (via yum), you should add the remi repository:

# wget http://rpms.famillecollet.com/remi-release-8.rpm
# rpm -Uvh remi-release-8.rpm
Edit the file /etc/yum.repos.d/remi.repo, and set enabled to 1 under [remi] and NOT [remi-test].

Then we proceed with removing the old Firefox and installing the new one. Now, a regular yum remove firefox won’t work, as it’ll drag a buttload of dependencies with it. However, this will only remove Firefox, without its dependencies:

# rpm -e --nodeps firefox
Then install the new one:

# yum install firefox
That’s all there is to it.

Now, having said that, a friendly chap named Nacho Marin made me aware of a problem that had totally slipped my mind. It seems that there are several programs that are depending on some libraries that Firefox 2 has, and not Firefox 3. The Acer Aspire One e-mail client being one of them, and the RSS reader too. The missing libraries are libgtkembedmoz.so, libmozjs.so, libxpcom_core.so and libxpcom.so.

A big thank you to Nacho for the heads up about the library-files.

Update: It seems that several people were complaining about how the e-mail program kept shutting down for no apparent reason. It seems that they need more than simply the library-files. I believe I’ve located the files, and that you now should be able to have both Firefox 3, and the email client working. Give me some feedback to let me know how the script turns out.

I (Jorge) have made a script to make this a bit easier to fix, so stay tuned.

Update: Script is finished, instructions are as follows:

Become root and open a file named recover_firefox_libraries.sh:

$ sudo su -
# mousepad recover_firefox_libraries.sh
Place the following in it:

#!/bin/bash
#
## Script to recover Firefox 2 libraries
## Jorge Barrera Grandon
## Version 2
#
#
## Usage: ./recover_firefox_libraries.sh

WGET=`which wget`
RPM_URL="http://jorge.ulver.no/files/firefox-files.tar.gz"
MV=`which mv`
CHOWN=`which chown`
CHMOD=`which chmod`
RM=`which rm`
TAR=`which tar`
MKDIR=`which mkdir`
RMDIR=`which rmdir`

cd /root/
echo "## Getting hold of the Firefox-files.."
$WGET $RPM_URL

echo "## Unpacking the library-files.."
$TAR zxvf firefox-files.tar.gz

echo "## Moving library-files.."
$MV /usr/acer/bin/AME /usr/acer/bin/old.AME
$MV /root/firefox-files/AME /usr/acer/bin/AME
$MKDIR /usr/lib/firefox-files/
$MV /root/firefox-files/* /usr/lib/firefox-files/

echo "## Changing permissions and cleaning up.."
$RM /root/firefox-files.tar.gz
$RMDIR /root/firefox-files/
$CHOWN -R root.root /usr/lib/firefox-files/
$CHMOD -R 755 /usr/lib/firefox-files/

echo "## Done!"
What the script basically does is to get hold of the file firefox-files.tar.gz (so be online when running it), moves the libraryfiles, changes the permission, and removes the file and the unnecessary directories it creates. Make the file executable, then run it:

# chmod +x recover_firefox_libraries.sh
# ./recover_firefox_libraries.sh
Enjoy!