Install Ubuntu Hardy (8.04.1) Guide

Forum just for Ubuntu chat

Moderators: glibdud, janss

Re: Install Ubuntu Hardy (8.04.1) Guide

Postby Aubrey » Fri Jul 18, 2008 10:36 am

Reporting back as promised.

Permanently converting an installed ext3 filesytem to ext2 is pretty much as described above.

Doing it from my LiveUSB (Xubuntu) to the installed system meant that I had to unmount the root partition on the SDD:

Code: Select all
sudo umount /dev/sda1


Then,as suggested:

Code: Select all
sudo tune2fs -O ^has_journal /dev/sda1

Code: Select all
sudo e2fsck /dev/sda1


Then create a new temporary mount point for sda1

Code: Select all
sudo mkdir /media/temp


Edit the fstab in the running Xubuntu:

Code: Select all
sudo mousepad /etc/fstab


And add a line for the sda1

/dev/sda1 /media/temp ext2 defaults 0 0 <enter>


Save the file

Mount sda1

Code: Select all
sudo mount /media/temp


And then edit the fstab on that drive

Code: Select all
cd /media/temp/etc
sudo mousepad fstab


And change the file system attribute for sda1 (/) from ext3 to ext2

Save and reboot

(I could not find the .journal file mentioned in the guides and my machine rebooted fine)

So far it seems less laggy.
Last edited by Aubrey on Fri Jul 18, 2008 2:57 pm, edited 1 time in total.
User avatar
Aubrey
 
Posts: 20
Joined: Sat Jul 12, 2008 1:22 am

Re: Install Ubuntu Hardy (8.04.1) Guide

Postby baseline » Fri Jul 18, 2008 1:25 pm

Hi all,

Okay, try as I might, I can't get the wifi to work... The only difference that I can see is that I'm using Xubuntu and not Ubuntu, shouldn't make a difference because the freaking repositories are the same but maybe it does.
Everything shows up fine: ath0 is on interface conf file, wifi0 shown up on ifconfig, hell, even a wlan scan yelds all the hotspot around me but to no avail. I also did a rmmod of the orignal atheros drivers... Nothing seems to fix this...
The damn thing just wont get an IP. It does a dhcpdiscover but seems unable to interpret the offer. I had this exact same problem with a Gutsy Gibbon distro upate to Hardy, the only way to solve it was to completly reinstall the OS.
As anyone came across this problem?

tks in advance
baseline
 
Posts: 43
Joined: Wed Jul 16, 2008 4:20 am

Re: Install Ubuntu Hardy (8.04.1) Guide

Postby glibdud » Fri Jul 18, 2008 1:42 pm

Nice guide, thanks for writing this up.

WanderingStar wrote:A copy of 8.04.1 Hardy Heron. This is the latest version. If you downloaded the ISO a while ago, it may be 8.04.0. This version will not function.

What doesn't function with the original 8.04 release?
glibdud
 
Posts: 162
Joined: Mon Jun 30, 2008 2:55 pm

Re: Install Ubuntu Hardy (8.04.1) Guide

Postby Aubrey » Fri Jul 18, 2008 2:54 pm

baseline wrote:Hi all,

Okay, try as I might, I can't get the wifi to work... The only difference that I can see is that I'm using Xubuntu and not Ubuntu, shouldn't make a difference because the freaking repositories are the same but maybe it does.
Everything shows up fine: ath0 is on interface conf file, wifi0 shown up on ifconfig, hell, even a wlan scan yelds all the hotspot around me but to no avail. I also did a rmmod of the orignal atheros drivers... Nothing seems to fix this...
The damn thing just wont get an IP. It does a dhcpdiscover but seems unable to interpret the offer. I had this exact same problem with a Gutsy Gibbon distro upate to Hardy, the only way to solve it was to completly reinstall the OS.
As anyone came across this problem?

tks in advance


Strange. I assume you are using the madwifi-ng-r3366+ar5007 drivers cited in the original post. Did you "turn off" (ie uncheck) the restricted drivers that Ubuntu so kindly loads before you installed madwifi?

I have also seen posts elsewhere about people successfully using ndiswrapper. I'd only do that if all else fails.

Good luck.


What doesn't function with the original 8.04 release?


It would not boot for me - modprobe error. Even if it did work, it would probably be quicker to download 8.04.1 rather than go through the massive update process.
User avatar
Aubrey
 
Posts: 20
Joined: Sat Jul 12, 2008 1:22 am

Re: Install Ubuntu Hardy (8.04.1) Guide

Postby brentashley » Fri Jul 18, 2008 3:55 pm

Aubrey wrote:Nice guide, WanderingStar
Great tip about using ext2 rather than ext3, by the way. I hadn't thought of that. I can feel a re-install coming on. :D


No need to reinstall. I installed with ext3 and then converted to ext2.

I booted onto the Ubuntu liveCD I used to install onto the One, opened a terminal and...:

sudo su -
/sbin/tune2fs -O ^has_journal /dev/sda1
/sbin/e2fsck -y /dev/sda1
mkdir tmpmnt
mount -t ext2 /dev/sda1 tmpmnt
cd tmpmnt
rm -f .journal

then you need to edit etc/fstab with vi or whatever and change /dev/sda1 from ext3 to ext2 so it mounts properly on boot

reboot and you now have an ext2 root partition.
brentashley
 
Posts: 20
Joined: Tue Jul 15, 2008 3:07 am
Location: Brampton, Ontario, Canada

Re: Install Ubuntu Hardy (8.04.1) Guide

Postby WanderingStar » Fri Jul 18, 2008 3:57 pm

One more, with feeling:
Changes - writing cleanup, fixed wireless instructions, added tmpfs logging and phantom fstab CD-Rom correction.

Install Ubuntu Hardy Heron (8.04.1) on the Acer Aspire One 512mb/1GB model.

Fully functional:
Suspend / Resume
Video (with desktop effects)
Wireless Networking (WPA tested)
Wired Networking
Webcam
USB

Partial Function:
Card Readers (only work if card in when booting, researching fix)
Audio - there is sound, but by default it will not mute speakers when
headphones connected. Upgraded ALSA allows headphone detection but
sound lost on suspend (researching fix)

Pre-Requs:

Before you begin you will need the following:

A copy of 8.04.1 Hardy Heron. This is the latest version. If you downloaded the ISO a while ago, it may be 8.04.0. The original 8.04.0 release will not even boot.
A 1+ GB memory key that can be formatted.
A copy of the liveUSB DEB.
(Website: http://klik.atekon.de/liveusb and the DEB: http://ppa.launchpad.net/probono/ubuntu ... u1_all.deb).
A wired network connection.
Another computer, with network access.

Step One: Preperation

So the first thing we need to do is create a bootable copy of the Ubuntu LiveCD. This will be our install media for the Aspire One. Its actually pretty simmilar to creating recovery media for Linpus Lite (the included version of Linux).

Download and copy the LiveUSB .deb file from the link above to a memory key (you can use the same one we we are going to format to create the install media, we only need this file once), and remove the memory key. The LiveUSB software should only be installed when booted off the LiveCD environment, so we do that next.

Boot to the 8.04.1 Live CD on your other computer, and choose the first option off the boot menu (Try Ubuntu). When you reach the desktop insert the memory key with the LiveUSB software one it and double click. Follow the prompts to install it. Now we can create our bootable USB key. Start the LiveUSB application from System -> Administration -> Install LiveUSB. Select the target device (my two keys were listed by a human readable name, so it was easy to find) and click Execute. It will give you a warning about data loss, so double check that you selected the correct device and continue.

Step Two: Install Ubuntu

Once that is done, you can shut down the other computer and remove the memory key. Shut down your Aspire One and insert the memory key that we just used. Turn it on and tap F12 to bring up the boot menu. Choose the boot the USB HDD option. This will boot you to the LiveUSB stick, and allow you to install Ubuntu. Install it like normal, except for good performance, and to increase the life of the SSD use a non-journaled (I suggest EXT2) filesystem. If you have already installed with EXT3 then follow this post by Aubrey (viewtopic.php?f=5&t=164&st=0&sk=t&sd=a&start=10#p1177) to convert to EXT2. Installation (file copy) will take a LONG time (hour +). If your not currently connected to the internet on a wired connection, you may get an error about setting up a mirror (thanks lotus49). Don't worry about it if you do however, its non-fatal.

Step 3: Tweak / Fix

So now we should have an installed Ubuntu system. At this point wire your One into the network. If you use DHCP it should pick up an IP address automatically. The first thing you will want to do is updates, since the wireless driver needs to be reinstalled after every kernel update. Open a terminal (Applications -> Accessories -> Terminal). Do the updates:

Code: Select all
sudo apt-get update
sudo apt-get upgrade


WIRELESS:

Now we need to disable the hardware drivers that Ubuntu tries to use before the ones we make will function. So go to System -> Administration -> Hardware Drivers and uncheck everything. It should prompt us to reboot, so lets do it now.

We need to grab the wireless driver, and the things we need to build it, from a terminal:

Code: Select all
mkdir source
cd source
wget http://snapshots.madwifi.org/special/madwifi-ng-r3366+ar5007.tar.gz
tar xzvf madwifi-ng-r3366+ar5007.tar.gz
cd madwifi-ng-r3366+ar5007
sudo apt-get install build-essential linux-headers-$(uname -r)


And we build, install, and make it perminant...
Code: Select all
make
sudo make install
sudo echo ath_pci >> /etc/modules
sudo modprobe ath_pci


You should now have working wireless. If you get a symbol mismatch when loading the driver, just reboot as that has corrected it everytime for me.

Everytime there is a kernel update you will need to perform the following steps to make the wireless work. Go to the directory (madwifi-ng-r3366+ar5007) and run:

Code: Select all
make clean
make
sudo make install


USB MOUNT:

If you insert a memory key, you may notice an error and that it cannot be mounted. This is due to the CD-ROM entry in the fstab. Since we don't have an optical drive on the One we will comment that out. From a terminal again:

Code: Select all
sudo gedit /etc/fstab


You should see a line that looks like:

Code: Select all
/dev/sdb        /media/cdrom0   udf,iso9660 user,noauto,exec 0       0


add a hash in front:

Code: Select all
#/dev/sdb        /media/cdrom0   udf,iso9660 user,noauto,exec 0       0


Reboot, and automount should work.

REDUCING SSD WEAR:

Frequent writes to the SSD will cause failure eventually. We can reduce the number of writes to the SSD my moving our logs to a temporary filesystem in RAM that gets destroyed at ever reboot. Now this means your logs will not be persistent across reboots making debuging difficult in some cases. This step is optional of course, so if you need the logs for an extended period of time do not follow these steps.

Open your fstab again, and add the following lines:
Code: Select all
sudo gedit /etc/fstab
tmpfs      /var/log        tmpfs        defaults           0    0
tmpfs      /tmp            tmpfs        defaults           0    0
tmpfs      /var/tmp        tmpfs        defaults           0    0
tmpfs      /var/log/apt    tmpfs        defaults           0    0


AUDIO:
Oddly, my issues with audio are not apparent on the LiveCD, reinstalling now - so will report back with a fix (hopefully).
WanderingStar
 
Posts: 26
Joined: Tue Jul 15, 2008 7:54 pm
Location: Ottawa, On, Ca

Re: Install Ubuntu Hardy (8.04.1) Guide

Postby egesia » Fri Jul 18, 2008 4:16 pm

Thank you all for the great work.
I installed ubuntu 8.04.1 on dual boot with linpus, everything is working well, except the microphone: is alsa last driver required ? is there also a way to test the mic on linpus, is the webcam application recording sound ?

egesia
Aspire One Blue - 2200 mAh - 1.5 Gb Ram - dual boot linpus / ubuntu (reduced swap to 32 Mb) - Huawei e169 3g modem
egesia
 
Posts: 11
Joined: Fri Jul 18, 2008 3:58 pm

Re: Install Ubuntu Hardy (8.04.1) Guide

Postby Thomas8675309 » Fri Jul 18, 2008 5:05 pm

egesia wrote:Thank you all for the great work.
I installed ubuntu 8.04.1 on dual boot with linpus, everything is working well, except the microphone: is alsa last driver required ? is there also a way to test the mic on linpus, is the webcam application recording sound ?


Did you install 8.04.1 onto the ssd or did you use an SD card? It seems like the SSD doesn't have much room for a dual boot by itself. I'm looking for a way to have Ubuntu on the SD card and leave the SSD as is (or mostly as is). (I have a separate post on this topic in the Hardware forum.)

Thanks.

Best regards,

Tom
Thomas8675309
 
Posts: 31
Joined: Fri Jul 18, 2008 3:21 pm

Re: Install Ubuntu Hardy (8.04.1) Guide

Postby WanderingStar » Fri Jul 18, 2008 7:01 pm

Not sure about installing to an SD card - I'm not really interested in dual booting (I run Ubuntu on everything - my primary notebook, HTPC and file server). I expect if its not supported by the BIOS. You could look into adding an entry to an existing grub on the SSD that points to the SD card, if its being presented by the BIOS as a drive at all.

Jeff
WanderingStar
 
Posts: 26
Joined: Tue Jul 15, 2008 7:54 pm
Location: Ottawa, On, Ca

Re: Install Ubuntu Hardy (8.04.1) Guide

Postby egesia » Fri Jul 18, 2008 10:40 pm

Installed both on SSD, 500 mb free on Linpus, 1gb on Ubuntu after install. Now i'll try to reduce swap partition to 256 Mb and to mount /home to SD card.
What about the microphone on ubuntu ?
Aspire One Blue - 2200 mAh - 1.5 Gb Ram - dual boot linpus / ubuntu (reduced swap to 32 Mb) - Huawei e169 3g modem
egesia
 
Posts: 11
Joined: Fri Jul 18, 2008 3:58 pm

PreviousNext

Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 2 guests