Subscribe to RSS Subscribe to Comments

My Little Ubuntu Guide

Some Extras: GoogleEarth, AWN, and Wine

So I wanted to show you how to get some extra stuff working, since these have been problematic and now fixed for me. You are all no-doubt familiar with Google Earth and Wine, but AWN just so you know is “Avant Window Navigator”. It’s a really cool “dock” type app that lets you run a doc similar to Apple’s.

Below are scripts you can download and run for AWN and Wine or follow the steps.

Scripts for AWN and Wine:
AWN
1. Download Script HERE
2. Run With The Following Command:
sudo sh awn

Wine
1. Download Script HERE
2. Run With The Following Command:
sudo sh wine

How To Get Google Earth To Work With ATI and Compiz:
1. Install Google Earth
2. Download the following tar and extract into the GoogleEarth folder (usually at /home/yourname/googleearth/), replacing the old files:
Download Google Earth Fix
3. Start Google Earth and it should work perfectly even within an XGL/Compiz session!

How To Install AWN:
1. Add the following to the end of your /etc/apt/sources.list file:
## Avant Window Navigator
deb http://download.tuxfamily.org/syzygy42/ feisty avant-window-navigator
deb-src http://download.tuxfamily.org/syzygy42/ feisty avant-window-navigator

2. Now get the key before updating:
wget http://download.tuxfamily.org/syzygy42/8434D43A.gpg -O- | sudo apt-key add -

3. Now you can update:
sudo apt-get update

4. Now install AWN:
sudo apt-get install avant-window-navigator-bzr awn-core-applets-bzr libawn-bzr

How to Install The Latest Wine (supports Photoshop CS2):
1. First get the key:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

2. Now add the Gutsy repository:
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list

3. Now update your sources and install Wine:
sudo apt-get update
sudo apt-get install wine

That’s it!

Enjoy!

John

Dell Inspiron 6400 Ubuntu 7.10 Gutsy Install Script

Ok, the CD is not finished yet, but I did get some scripting done for you all. If you’d like an easy way to configure your Dell Inspiron Ubuntu install once you’ve installed the base system, do this:

1. Download the following script into your home directory and run it.
Download Script
Run it with the following command:
sh ~/config.sh

Here’s the Readme file:
Download Readme

What this does:
If you just installed Gutsy (7.10) on your Dell Inspiron system, you will have poor resolution, no WiFi, and other issues. To fix all this without any difficulty, run the script. It will upgrade your system and then reboot it. Once it’s rebooted, run the script again from your home directory and it will then proceed to enable the restricted drivers, install XGL and Compiz-Fusion, and even install some extra Compiz plugins if you choose!

Hope this helps!

Enjoy!

John

[EDIT]

Oops! Had to fix a small mistake, the scripts should work now.

HOW TO: Install Ubuntu 7.10 Gutsy Gibbon on Dell Inspiron 6400 w/ ATI, Compiz, Wifi, Using FGLRX Restricted Drivers

The following guide is how I install a fresh version of Ubuntu 7.10 “Gutsy Gibbon” on my Dell Inspiron 6400 with ATI Restricted Drivers (fglrx), WiFi, XGL, Compiz, etc. This will give you a graphically fast system but with no Hibernate or Suspend. Also, boot into the system is slower.

So really it’s a toss-up. If fast, nice, graphics are priority and you don’t care how long it takes to boot your system or whether you can hibernate/suspend, this is the How To for you. But if suspend/hibernate are more important than graphics, go with the Official ATI How To that I posted before this. It will be choppy compiz but will suspend and hibernate.

1 - Install system - I do a partition like this:
sda1 = 16 GB - Mounted at / (root)
sda2 = 135 GB - Mounted at /home
sda3 = 1 GB swap

By doing a separate partition mounted to /home, I don’t ever have to format it and can reinstall my system as much as I like without destroying my own data. I do always clean my /home directory before I do a fresh install however. To clean it I move the bookmark, key3, and signon files from within /home/john/.mozilla/firefox/***profile/ to a directory in my Documents folder. I then delete all the folders and files preceded with a “.” This way all my settings are reset on a new install. Just my preference.

2 - After installation & reboot, login to new system

3 - Go to System > Administration > Software Sources
- Uncheck “CDROM with Ubuntu 7.10 (Gutsy Gibbon)”
- Click the “Third-Party Software” tab and check all
- Click Close
- At the popup click “Reload”

4 - Open a terminal: Applications > Accessories > Terminal and run the following:

gksu gedit /etc/apt/sources.list

- When the editor opens look for any remaining entries that begin with deb or deb-src that are commented out with “#” and uncomment them (remove the “#” in front of them. Only do this for lines beginning in “deb” or “deb-src”. There should be at least two of them.
- After changing it, save it and close
- Now type the following to update your sources:

sudo apt-get update

- Close the terminal window

5 - Right click the update icon in the top right of the screen, it’s either grey or orange with a star in the middle. Choose “Check for Updates” from the drop down menu and wait. When the icon turns orange, double click it. At the popup, click “Install Updates”. Wait for updates to finish. When finished click “Close” and again, “Close”.

6 - A blue recycle looking icon will appear in the top right, double click it and choose “Restart Now”. After system reboots, login.

8 - OPTIONAL - This step is necessary only if you will be building anything, such as installing VMWare.
- Open a terminal: Applications > Accessories > Terminal and run the following:
sudo apt-get install build-essential fakeroot dh-make debhelper \
debconf libstdc++5 dkms

- When complete, close the terminal.
- Now check for additional updates by doing the following: System > Administration > Update Manager and click “Check”. If any updates exist, click “Install Updates”. Close when completed and reboot only if required.

9 - Enable the restricted wireless and video (ATI) drivers by doing the following:
- Go to System > Administration > Restricted Drivers Manager
- Place a check in all the available boxes under the “Enable” column. At the popup, click “Enable” and wait for downloads to complete.
- For the WiFi firmware, after the Enable popup, choose the Download option and click “OK”
- When completed, Close.
- Restart by clicking the blue recycle icon in the top right and clicking “Restart Now”.

10 - Install XGL
- Open a terminal: Applications > Accessories > Terminal and run the following:

sudo apt-get install xserver-xgl

- When complete, close the terminal and reboot

11 - Install additional Compiz-Fusion features:
- Open a terminal: Applications > Accessories > Terminal and type the following:

sudo apt-get install compizconfig-settings-manager emerald libemeraldengine0 python-compizconfig

12 - OPTIONAL BEFORE REBOOT:
To install the compiz fusion icon that you can use to restart compiz and other things, do the following:
- Open a terminal: Applications > Accessories > Terminal and type the following commands:

mkdir ~/temp
cd ~/temp
wget http://www.mylittleubuntuguide.com/files/fusion-icon.tar.gz
tar xzvf fusion-icon.tar.gz
cd fusion-icon
make
sudo make install
fusion-icon &

- Press CTRL-C

13 - Reboot system, login, and approve any messages about XGL being started automatically. You should now have a working install!

Please post comments about problems, etc. I’m going to try to get a CD that does all this for you up soon.

Thanks!

HOW TO: Install Ubuntu 7.10 Gutsy Gibbon on Dell Inspiron 6400 w/ Compiz, Hibernate, and Suspend Working Using Official ATI Drivers

UPDATE: Using the latest ATI driver (8.471 and above) you can now have everything working! This means your system will Hibernate, Suspend, run Compiz, etc…

Using this method eliminates the need for XGL since ATI utilizes AIGLX. Follow this guide to either fix your system or configure a new system.

Please give me feedback so we can get this how-to really clean and updated. Thanks!

References
http://wiki.cchtml.com/index.php/Ubuntu_Gutsy_Installation_Guide
https://help.ubuntu.com/community/BinaryDriverHowto/ATI
http://combatwombat.7doves.com/index.php/2007/10/31/gutsy_effort_in_new_ati_driver
http://ubuntuforums.org/showthread.php?t=601310

Phase 1 - Clean Up
If you are not going from a fresh install of Gutsy do steps 1 through 3. If this is a fresh install, only do step 3:

1. Remove anything with “fglrx” in the name by opening System > Administration > Synaptic Package Manager and doing a search for fglrx. Only remove entries that have fglrx in the name! If it’s only in the description somewhere, leave it alone.

2. Remove anything with “XGL” in the name by opening System > Administration > Synaptic Package Manager and doing a search for XGL. Again, only remove entries that have XGL in their name.

3. Your system is now clean and you can proceed to installing the ATI drivers.

Phase 2 - Installing ATI Drivers
1. Make sure your sources.list file has all sources uncommented.
gksu gedit /etc/apt/sources.list

Here’s a snapshot of mine:
——————————————————————————————————
# deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted

deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu gutsy partner
deb-src http://archive.canonical.com/ubuntu gutsy partner
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse

#AUTOMATIX REPOS START

deb http://www.getautomatix.com/apt gutsy main
#AUTOMATIX REPOS END

#Screenlets Start
deb http://hendrik.kaju.pri.ee/ubuntu gutsy screenlets
#Screenlets End
——————————————————————————————————

2. Now update sources
sudo apt-get update

3. Next install necessary tools
sudo apt-get install build-essential fakeroot dh-make debhelper \
debconf libstdc++5 dkms

4. Now download the latest ATI driver from the following site to a temporary folder:
(You’ll need to create the folder. I recommend “temp” inside your home directory, then cd into it and do the following)
ATI Linux x86 Driver Download

5. Next, build the DEB files:
sudo bash ati-***.run --buildpkg Ubuntu/gutsy
Remember you must replace the *** above with the actual file name!

6. Now blacklist the old fglrx modules since the new driver will have it’s own that make Hibernate and Suspend work:
gksu gedit /etc/default/linux-restricted-modules-common
Once open, at the end of the file put fglrx in the quotes like this:
DISABLED_MODULES="fglrx"

7. Install the .deb files you just made:
sudo dpkg -i *.deb
Remember to replace the * with the file name of each .deb file created.

8. Setup your xorg.conf file:
sudo aticonfig --initial
sudo aticonfig --overlay-type=Xv

9. Reboot:
sudo shutdown -hr now

10. Now edit the xorg.conf file:
gksu gedit /etc/X11/xorg.conf

Comment out the following:
# Section “Extensions”
# Option “Composite” “0″
# EndSection

Here’s a snapshot of mine:
——————————————————————————————————
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "Dell LCD"
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection

Section "Device"
Identifier "ATI X1400"
Driver "fglrx"
Option "XaaNoOffscreenPixmaps" "true"
Option "UseFastTLS" "2"
Option "VBERestore" "true"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "DRI" "true"
Option "ColorTiling" "on"
Option "EnablePageFlip" "true"
Option "AccelMethod" "EXA"
Option "RenderAccel" "true"
Option "AGPMode" "4"
Option "AGPFastWrite" "on"
Option "KernelModuleParm" "agplock=0"
Option "UseInternalAGPGART" "no"
Option "EnablePrivateBackZ" "no"
Option "DisableGLXRootClipping" "true"
Option "AddARGBGLXVisuals" "true"
Option "AllowGLXWithComposite" "true"
Option "mtrr" "on
BusID "PCI:1:0:0"
EndSection

Section "DRI"
Mode 0666
EndSection

Section "ServerFlags"
Option "AIGLX" "on"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "ATI X1400"
Monitor "Dell LCD"
DefaultDepth 24
EndSection
——————————————————————————————————

Phase 3 - Installing Compiz
1. After ATI is running and you’ve rebooted, re-enable Compiz.

2. Next fix the /usr/bin/compiz file by adding fglrx to the Whitelist and removing the Blacklisted PCIID:
gksu gedit /usr/bin/compiz
Now locate the following sections and fix according to my entry below:
# Driver whitelist
WHITELIST="fglrx nvidia intel ati radeon i810"

# blacklist based on the pci ids
# BLACKLIST_PCIIDS="$T"
BLACKLIST_PCIIDS=""

3. Before doing the next step, check to see if it’s necessary by doing this:
sudo cp /etc/xdg/compiz/compiz-manager.ubuntu.dpkg-new /etc/xdg/compiz/compiz-manager.ubuntu
sudo shutdown -hr now

After your system reboots, enable Compiz. If it starts skip the last step. Otherwise you may need to do the following.

3-b (May Be Unnecessary). Before you enable Compiz you may need to edit the /usr/bin/compiz file and change some lines. If Compiz won’t start try changing the following lines in /usr/bin/compiz beginning at line 30:
(note: these three lines are not all together and shouldn’t be, they are just lumped together for this how to)

COMPIZ_BIN_PATH=”/usr/local/bin/” # For window decorators and compiz
PLUGIN_PATH=”/usr/local/lib/compiz/”
COMPIZ_NAME=”compiz” # Final name for compiz (compiz.real)

Change these to look like this:

COMPIZ_BIN_PATH=”/usr/bin/” # For window decorators and compiz
PLUGIN_PATH=”/usr/lib/compiz/”
COMPIZ_NAME=”compiz.real” # Final name for compiz (compiz.real)

Now restart X and enable compiz. Everything should work!

That’s it!

How To: Get Widgets Using Compiz in Ubuntu 7.10

There are some really nifty widgets available for linux users called Screenlets. Here’s a quick How To to install Screenlets in Ubuntu 7.10 (Gutsy) using Compiz Widget Plugin. If you don’t care to do it yourself using the How To, click below for an auto install script:

NOT AVAILABLE YET
NOTE: To use the script, after download do a “sudo chmod +x screenlets.sh” on it to make it executable. Then run it with “sudo ./screenlets”. After you’ve run the script open Compiz settings and enable

Below each line of code is entered seperately

1. Update Your Aptitude Sources
sudo su -c 'echo deb http://hendrik.kaju.pri.ee/ubuntu gutsy screenlets >> /etc/apt/sources.list'
wget http://hendrik.kaju.pri.ee/ubuntu/hendrikkaju.gpg -O- | sudo apt-key add -
sudo apt-get update

2. Install Screenlets
sudo apt-get install --assume-yes screenlets
mkdir ~/.config/Screenlets
mkdir ~/.config/autostart

3. Open your compiz Advanced Settings and enable the Regex Matching and Widget Layer plugins.

4. Open the Widget Layer plugin and go to the Behavior tab. Paste the following into the space provided and close the window:
name=Screenlet.py

5. Now you can enable various Screenlets under your menu’s Other section and hit the F9 key to see them and make them disappear.

Progress!

Ok, I’ve made some progress. As of now I’m running the “official” compiz and it’s working exactly as my hacked version was before. The system seems very stable, all my apps work great.

Only thing still on the agenda to fix is Hibernate/Suspend.

From what I’ve read on the bug report about that issue is they are not fixing it till the next release. I think we can get this working however without having to revert to the old kernel. I’ll continue working on it and keep you all posted.

Until I get a new CD with the Compiz stuff working, here’s a quick and dirty tutorial:

1. Enable all software resources EXCEPT the Trevino ones. To do this, click System > Administration > Software Sources and uncheck the following under the “Third-Party Software” tab:
http://download.tuxfamily.org/3v1deb feisty eyecandy
http://download.tuxfamily.org/3v1deb feisty eyecandy (Source Code)

2. Now install compiz and all other “parts”:
sudo apt-get install compiz compiz-bcop compiz-core compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-gnome compiz-plugins compizconfig-settings-manager emerald libcompizconfig-backend-gconf libcompizconfig0 libdecoration0 libemeraldengine0 python-compizconfig librsvg2-common gnome-compiz-manager libgnome-compiz-manager0-d

3. Now download and unzip the fusion icon:
wget http://www.mylittleubuntuguide.com/files/fusion-icon.tar.gz
tar -zxvf fusion-icon.tar.gz
cd fusion-icon

4. Now we build it:
make
sudo make install

5. Now re-enable the Trevino sources by returning to System > Administration > Software Sources and checking the two “trevino” repositories under Third-Party Software. Close and choose Reload.

6. Now install Emerald Themes:
sudo apt-get install emerald-themes

7. For good measure let’s make sure Emerald is handling the window decorations:
emerald &
Now right click the blue icon that appears in the upper right on your task bar and click “Select Window Decorator” and ensure “Emerald” is checked. If it’s not, check it.

That’s it! Now restart compiz and you can change the settings in System > Preferences > Advanced Desktop Effects Settings

Note: You can get all of your virtual desktops back on the cube by changing the General Options setting in Advanced Desktop Effects Settings, under the tab “Desktop Size”, change the “Horizontal Virtual Size” to your liking.

Beta Release of Custom Gutsy CD for Dell Inspiron 6400

The first Beta Custom CD for the Dell 6400 is now available for download. You can get the Gutsy CD here:
DOWNLOAD DELL 6400 GUTSY CD

You can get the MD5 file here:
DOWNLOAD MATCHING MD5 FILE

Be sure to report your errors and successes!

Remember, this version will allow you to do Wireless out of the box, ATI is installed out of the box, and Compiz-Fusion works out of the box. However, Suspend and Hibernate do not work in this version. I’m still working on that issue and Ubuntu may get ATI to fix the fglrx binary before I get a work around, so my bet is things will be working soon anyway.

Gutsy Suspend & Hibernate Working…at a cost

The problem with Suspend and Hibernate in Gutsy is that Gutsy is using CONFIG_SLUB=y in it’s kernel instead of CONFIG_SLAB=y, which Feisty used in it’s kernel. This is a problem with the fglrx driver, which worked fine in Feisty. Anyway, you can read more about this bug at https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules-2.6.22/+bug/121653.

For now, here’s a fix, but it comes at a cost. Temporarily anyway. As I said, the FGLRX driver (i.e. xorg-driver-fglrx) doesn’t work right with the new kernel, BUT the ATI driver from www.amd.com does. The trade off is your Compiz-Fusion.

I’m going to try to get Compiz working with the official ATI driver as I get more time to work on it. But for now if you want Suspend/Hibernate you need to be running the official ATI driver.

So what you do is:

Preparation
Install Build Tools:

sudo apt-get install module-assistant build-essential debhelper debconf dh-make fakeroot libstdc++5 linux-headers-generic

Installation

Build Ubuntu packages from the installer by opening a terminal, entering the directory that you saved the installer to, and running:

bash ./ati-driver-installer-.run –buildpkg Ubuntu/gutsy

where is the version number of the driver you downloaded. This will take a short time. After finishing, the installer will create several debs. Use the command “dpkg -i ” to install the debs:

sudo dpkg -i *.deb

After installing the kernel source and xorg driver, you will now need to compile the fglrx kernel module in order to get 3-d rendering. Do so with the following commands:

sudo m-a prepare,update
sudo m-a build,install fglrx-kernel
sudo depmod
sudo rm -f /usr/src/fglrx-kernel*.deb

Configuration

Now open “System -> Administration -> Restricted Drivers Manager” and select the enable box for “ATI accelerated graphics driver” and hit apply. Reboot now.

At next boot, Ubuntu will load an old version of fglrx, so you have to blacklist it by changing the following file as so:

sudo gedit /etc/default/linux-restricted-modules-common

Now change it to say:
DISABLED_MODULES=”fglrx”

You’re finished! Now Reboot Again.

You are now running the ATI official driver with Direct Rendering working. I’ll figure out how to get Compiz to work with this soon.

After any kernel updates

After every update of the kernel (linux-image-), you will need to recompile the kernel module (make sure to get the latest linux-headers too) as explained under the installation section. After you recompile the module, you can regain direct rendering by logging into a console (ctrl+alt+f1) and typing:

sudo /etc/init.d/gdm stop (kdm if you use Kubuntu)
sudo rmmod fglrx (even if this command fails, go on)
sudo modprobe fglrx
sudo /etc/init.d/gdm start (again, Kubuntu users type kdm)

That’s it. Should work to get your Suspend/Hibernate working for now in Gutsy. As I said, I’ll update when I find a fix for all with the compiz working too.

Later!

If You Want The Benefits of The New CD Before It Is Available…

For those of you who don’t want to wait or download another CD iso, here’s a quick guide to get you “updated” to the new features of the new CD! Keep in mind this will replace your current xorg.conf and sources.list files. Also, after it finishes it will automatically reboot your PC. Here’s how you do it:

1. Open a terminal and go into your home directory, then download the updateme script:
cd ~
wget http://www.mylittleubuntuguide.com/files/updateme.sh

2. Make it executable:
sudo chmod +x updateme.sh

3. Run as root:
sudo ./updateme.sh

NOTE: You will be required to press ENTER at one point, when it asks you for the location of your kernel files for the Modem build. Just hit ENTER and the script will finish.

4. After if finishes, it will clean itself up and reboot

After it reboots you should now have Compiz-Fusion working, Horizontal Scrolling working with the touchpad, and suspend working!

Please comment your success or bugs!

NOTES:
1. This script does the exact same thing the new finishup script does. So if you just installed from the CD, the FinishUp script will take care of all the above, no need to do both. If you installed and ran the FinishUp script 3 or 4 days or more ago, you need this.

Time to Get Detailed!

Ok everyone, I’ve noticed that many of you are coming here in search for very specific “How To’s” on Linux and Ubuntu in relation to Dell primarily. So I’ve decided to get detailed in the “How To” department and start spelling out each scripted action in a related How To. That way you can pick apart the code a lot easier and do custom stuff for your self.

I’ll try to explain each step in each how to as much as possible so you can learn as you do. That way you too can start experiencing Ubuntu, and Linux for that matter, in a way that will make you more independent! For starters, I’m going to spell out the Custom Live CD how to as this is a crucial one since the scripts don’t work that well!

Cheers!

John Westbrook

Custom Live CD WORKING!

UPDATE: The custom live dvd how to is updated. Check it out!

Ok all, I’ve successfully created a custom CD, well DVD, the image was over 1 Gig, so it will work great on a USB key as well. The steps are quite complex for the newbie, so I created some scripts that simplify the process. You can get my How-To and scripts from the link above that says “CUSTOM LIVE CD”.

I’ll post a full how to in a few days. For now, you are welcome to look at the scripts. DON’T SKIP A SINGLE STEP! Otherwise it won’t work properly.

Also, as stated on the page, this process was designed to work with an ATI card or Generic. If you have Nvidia you’ll have to look elsewhere for how to do it.

Cheers!

John

Ubuntu Live CD Customization

Ok folks, I did it! I’ve learned how to customize the Live CD. Now, here’s what I did. I made a script, well a few, that somewhat automate this process. They come with a simple How To. For the Dell Inspiron users with the ATI card, this solves your problem of having no graphics, and allows your live system to start with graphics AND a ton of apps.

Now, the “catch” is that the image is larger than 700 Megs, which means it’s meant for either a DVD or USB. I have a how to on here already that shows you how to make the USB stick, just change the partition sizes when you make it to fit this image. I don’t know yet what the size of the ISO will be, but will update this when it’s finished. I’m currently testing everything to ensure it works flawlessly!

Ubuntu on USB Drive

Here’s a great how to I found www.pendrivelinux.com for installing linux to your USB

1. Download the Ubuntu 7.04 ISO and burn it to a CD
2. Reboot your computer into Ubuntu 7.04 from the Live CD
3. Insert a 1GB or larger USB flash drive
4. Open a terminal window and type the following:
Code:
sudo su
5. Type the following to list the available drives/partitions. Note which device is your flash drive (e.g. /dev/sdb). From now on replace x with your flash drive letter. So if your flash drive is sdb, replace x with b
Code:
fdisk -l
6. Now type each of the following in order:
umount /dev/sdx1
fdisk /dev/sdx
p
to show the existing partition and d to delete it
p again to show any remaining partitions (if partitions exist, d to delete them)
n to make a new partition
p for primary partition
1 to make this the first partition
hit enter to use the default 1st cylinder
+700M to set the partition size
a to make this partition active
1 to select partition 1
t to change the partition filesystem
6 to select the fat16 file system
n to make another new partition
p for primary partition
2 to make this the second partition
hit enter to use the default cylinder
hit enter again to use the default last cylinder
w to write the new partition table
7. Unmount the 1st partition:
Code:
umount /dev/sdx1
8. Format the first partition
Code:
mkfs.vfat -F 16 -n usb /dev/sdx1
9. Unmount the 2nd partition
Code:
umount /dev/sdx2
10. Format the second partition
Code:
mkfs.ext2 -b 4096 -L casper-rw /dev/sdx2
11. Remove and Re-insert your flash drive
12. Back at the terminal, type:
Code:
sudo apt-get install syslinux mtools
13. Now type:
Code:
syslinux -sf /dev/sdx1
14. Download this custom usyslinux.tar file using the archive manager and extract the syslinux.cfg file to your “USB” stick
15. Type:
Code:
cd /cdrom
16. Type:
Code:
cp -rf casper disctree dists install pics pool preseed .disk isolinux/* md5sum.txt README.diskdefines ubuntu.ico casper/vmlinuz casper/initrd.gz install/mt86plus /media/usb/
17. Reboot your computer and set your system BIOS to boot from USB-HDD or USB-ZIP. Also set the boot priority if necessary.

If everything has gone as it should, you should now be able to boot Ubuntu from the USB flash device and it should save your changes, restoring them on boot.

Notes: If your having trouble getting Ubuntu to boot, your memory stick may have a corrupted mbr. To repair the mbr of your USB device, at the terminal type sudo apt-get install lilo then type lilo -M /dev/sdx (replacing x with the letter of your flash device)

How to Install Feisty Fawn - w/ Beryl, Wireless, ATI, VMWare Player

***NEW: You can now do almost everything using a script package I created and tested…AND IT WORKS. See below, Method One.***

Also please note my system hardware:
Dell Inspiron 6400
ATI X1400 128 MB (not shared) - Works after config.
BCM4311 (Dell 1390) WiFi - Works after config.
BCM4401 LAN - Works
160 GB HD - Works
DVD Writer - Works
2 GB RAM - Works
15.4″ LCD w/ 1280×800 Res. - Works
Firewire - Works
Intel 82801G High Def. Audio - Works
Synaptic Touchpad - Works
56K Modem - Not Tested
Ricoh MultiCard Reader - Doesn’t Work

METHOD ONE — INSTALLING IT THE EASY (SCRIPT) WAY

INITIAL INSTALL & PREP

1. Install base Feisty from the Alternate CD: Download ISO Here. Make sure you place a check in the box that reads “Check here if you need the alternate desktop cd suited for computers with less than 256MB of RAM”.

2. After creating a CD, boot from it and choose the Text Install option.

3. Follow prompts and when the option to choose resolution appears, also select the 1280×800 option.

4. After your system finishes installing it will prompt you before rebooting, ensure you have a network cable connected, and when it boots into the new system you’ll see an error about X. Use your arrows to select NO, hit ENTER and then OK to get to the black login screen. You’ll see an error regarding BCM43xx appearing, ignore it and type as if it wasn’t there. The command line can’t “read” that error so don’t try to backspace over it, etc. Login using your username and password.

5. Create a folder called “install” by doing the following:
Code:

sudo mkdir -p ${HOME}/install

Go into that new folder now:
Code:

cd install

6. Download the script package that suits you best, the first is with VMWare and the second is without. Only download the one you need (I prefer with VMWare):
For the script package with VMWare:
Code:

wget http://www.mylittleubuntuguide.com/files/feistydell.tar.gz

OR … For the script package with no VMWare:
Code:

wget http://www.mylittleubuntuguide.com/files/novm/feistydell.tar.gz

7. Unzip the package by typing the following:
Code:

tar xzvf feistydell.tar.gz

8. Type the following command before starting to make the first script executable. It will make all others executable so don’t worry about any of the other files:
Code:

sudo chmod +x step1

9. Now execute the 1st script:
Code:

./step1

Pay attention as it will prompt you during this and you need to respond appropriately. If it has a Y/n option for installing something, always choose Y.

10. After the system reboots X still won’t start, login to the black login screen (X still errors out), go into the install (cd install) directory and type the following to run the 2nd script:
Code:

./step2

Again, Pay attention to the prompts. If it’s the VMWare version you’ll be prompted to configure VMWare. Defaults are usually ok on that. You’ll see some of the prompts twice as it’s running a patch, just choose the same options.

Your system will reboot automatically and after it comes up you’ll have X. To login to Beryl, before you login select the GNOME with XGL session from the Options>Sessions menu in the bottom left corner. ENJOY!

How To Install Edgy - With Beryl, VMWare, and Automatix

Initial Setup

1. Install base Edgy install.
2. After install, open the sources file:
Code:

sudo gedit /etc/apt/sources.list

And uncomment all entries that begin with “deb http” or “deb-src” except for the CD ROM, make sure it’s commented out

3. Next update by entering the following, twice.
Code:

sudo apt-get update

4. Now open your Software Sources in: SYSTEM > ADMINISTRATION > SOFTWARE SOURCES
and make sure all the boxes under “Downloadable from the Internet” are checked. Click “CLOSE” and then “RELOAD”

5. Go to: SYSTEM > ADMINISTRATION > UPDATE MANAGER
and first click “CHECK”, then click “INSTALL UPDATES”

After your updates are finished installing, REBOOT

After a reboot, create a working folder for the following install steps. Just a way to keep your system clean. Go into your home folder and create a folder called “install” or something. Now open terminal and go to that directory before you proceed.

6. Now you’re going to get some tools for future steps.
Code:

sudo apt-get install build-essential module-assistant build-essential fakeroot dh-make debconf libstdc++5 linux-headers-$(uname -r)

7. Update again, just in case, and install any updates that appear in the top right corner.
Code:

sudo apt-get update

Now you’ll install your wireless device

1. Clean your system by entering the following code. Disregard errors as you may not have ndiswrapper.
Code:

sudo rmmod ndiswrapper
sudo apt-get remove ndiswrapper-utils

2. Download driver files. Unzip them.
Code:

wget http://www.jrdw.com/linux/wireless/bcmdrivers.tar.gz
tar -xzvf bcmdrivers.tar.gz

3. Download latest Ndiswrapper, I’ve included th latest at the time of this edit. Unzip it.
Code:

wget http://superb-east.dl.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-1.38.tar.gz
tar -xzvf ndiswrapper-1.38.tar.gz

4. Blacklist the bcm43xx firmware drivers that come default.
Code:

sudo gedit /etc/modprobe.d/blacklist

Add the following line to the end of the file and save your changes:

blacklist bcm43xx

REBOOT NOW

After a reboot open a terminal and go to the same folder you created earlier.

5. Get into the ndiswrapper folder it created when you unzipped it. The [TAB] represents using your TAB key to finish the name of the folder.
Code:

cd ndis[TAB]

6. Begin the install process. Do the following multiple times, until you see some error about no files or directories or something.
Code:

sudo make uninstall

7. Main install process
Code:

sudo make
sudo make install

8. Installing drivers, first in your terminal go to the folder that unzipped earlier with the driver files in it.
Code:

cd bcm[TAB]
sudo ndiswrapper -i bcmwl5.inf
sudo ndiswrapper -l

NOTE: If you don’t see a message that says driver present, hardware detected, you may have problems.

Code:

sudo ndiswrapper -m
sudo modprobe ndiswrapper

9. Test your wireless. You may need to reboot, however a reboot won’t suffice, you’ll need to shutdown and then restart. Your WIFI light should illuminate when successful.
Code:

sudo iwlist scanning

10. Before trying to connect to a network I recommend installing Wifi-Radar to make your life simpler. It manages your wireless networks. To install and use it open Synaptic Package Manager and search for “wifi-radar”. Install it and then run it from the Applications–>Internet menu.

Now time to install ATI drivers!

1. Disable Composite Extension - In Ubuntu Edgy the Composite extension is enabled by default, however, fglrx does not yet support Composite with DRI. In order to disable Composite you have to edit the xorg.conf file:
Code:

sudo gedit /etc/X11/xorg.conf

and add these lines at the end of the file:

Section "Extensions"
Option "Composite" "Disable"
EndSection

Section "ServerFlags"
Option "AIGLX" "off"
EndSection

2. Update System & Install the 8.28.8 ATI Driver in the Ubuntu Repos. For instructions on installing the proprietary drivers, click here: http://wiki.cchtml.com/index.php/Ubu…allation_Guide
Code:

sudo apt-get update
sudo apt-get install linux-restricted-modules-$(uname -r) #Okay if it is already installed
sudo apt-get install xorg-driver-fglrx

3. Now you can run:
Code:

sudo aticonfig --initial

4. Run the ATI config script
Code:

sudo aticonfig --overlay-type=Xv

5. Reboot and you should see your new res. Login and type “fglrxinfo” at the terminal to see if the ATI driver is loaded. Check for direct rendering by typing:
Code:

glxinfo | grep direct

You should now be able to install Beryl without problems.

BERYL:

1. Add Beryl repositories.
Code:

sudo gedit /etc/apt/sources.list

Add the following to the end:

deb http://ubuntu.beryl-project.org/ edgy main

2. Add the key
Code:

wget -q http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -

3. Now update
Code:

sudo apt-get update

4. Install XGL Server
Code:

sudo apt-get install xserver-xgl

5. Install Beryl and Themes
Code:

sudo apt-get install beryl emerald-themes

Next you’ll configure it. I configure mine to have a separate session so that’s what I’ll cover here.

6. Now create a startup script
Code:

sudo gedit /usr/local/bin/startxgl.sh

I added the following into the empty file just created:
Code:

#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec dbus-launch --exit-with-session gnome-session

7. Make the script executable
Code:

sudo chmod a+x /usr/local/bin/startxgl.sh

8. Create a Login Entry
Code:

sudo mkdir -p /etc/X11/sessions
sudo gedit /etc/X11/sessions/xgl.desktop

Now add the following and save it:

[Desktop Entry]
Encoding=UTF-8
Name=Xgl
Exec=/usr/local/bin/startxgl.sh
Icon=
Type=Application

9. If it tests okay, add a script to load it automatically every time the Xgl session is loaded. Create the script and paste the following into it as so:
Code:

sudo gedit /usr/local/bin/start_beryl.sh

Now add the following and save the changes:
Code:

#!/bin/bash
#
# Start beryl-manager within gnome-session
#
if (( `ps -A -o comm | grep -c '^Xgl$'` == "1" )); then
DISPLAY=:1 beryl-manager
DISPLAY=:1 beryl-xgl
else echo "${0}: Error: beryl-manager not launched. Xgl not running?"
fi

10. Now make the script executable:
Code:

sudo chmod a+x /usr/local/bin/start_beryl.sh

11. Next add the following to the “Startup Programs” inside Programs>Preferences>Sessions

/usr/local/bin/start_beryl.sh

12. Done! You can reboot and enjoy! Troubleshooting: http://wiki.beryl-project.org/wiki/I…_Edgy_with_XGL

UPDATE: Thanks to nachotronics, the following will fix your screen brightness buttons!

1. Using a terminal, open the blacklist file again:
Code:

sudo gedit /etc/modprobe.d/blacklist

Add the following to the end:

blacklist video

2. Reboot and it should work! Thanks Nacho!

Here’s a little extra fun stuff you can add:

Fan and temp control
1. sudo apt-get install i8kutils gkrellm gkrellm-i8k
2. sudo modprobe i8k force=1
3. sudo gedit /etc/modules
4. add the following line to the end of the file: i8k force=1
5. go to System > Preferences > Sessions > Startup Programs
6. Click ADD and put the command: gkrellm
Now you will see the GKrellm utility load at startup and you can then configure your fan thresholds, etc.

Configure front panel buttons, etc.
1. System > Preferences > Keyboard Shortcuts
2. Choose custom actions for your special keys, click an action and press the key!

Automatix **For Edgy and Dapper**
1. Visit www.GetAutomatix.com and follow instructions for your distro.

Optional things I did:

Citrix (I use this so it’s optional)
**For Edgy and Dapper**
1. Download 9.0 client for linux here: http://www.jrdw.com/linux/citrix/linuxx86.tar.gz
2. Download and install libmotif3 here: http://www.jrdw.com/linux/citrix/lib…untu2_i386.deb
3. Extract citrix to folder and go to folder with terminal
4. sudo ./setupwfc
5. Install default with Y for all answers. Be careful during the License acceptance as it defaults to reject so if you hold the ENTER key it will exit the install!
6. 3 to quit install

VMWare
**For Edgy and Dapper**
1. Download vmware server tar.gz file from: http://download3.vmware.com/software…1-29996.tar.gz
2. place downloaded file somewhere in a folder in your home folder and using terminal CD into that folder
3. tar xvzf VMware-server-1.0.1-29996.tar.gz
4. cd into the folder it creates
5. sudo ./vmware-install.pl
2. Obtain a free serial at www.vmware.com

IEs4Linux
**For Edgy and Dapper**
1. First get Wine using Automatix.
2. Open a terminal
3. If you haven’t, uncomment the Universe lines in sources.list
4. sudo apt-get install cabextract
5. CD into the directory you want to download the ie4linux package to
6. wget http://www.tatanka.com.br/ies4linux/…-latest.tar.gz
7. tar zxvf ies4linux-latest.tar.gz
8. cd ies4linux-*
9. ./ies4linux
10. You’ll be prompted which IE you want and other options, most options just leave default.

Done and have fun!

Based on FluidityTheme Redesigned by Kaushal Sheth Sponsored by Send Flowers