This wiki has been archived and can only be read.

Ubuntu

From Cedega Wiki
Jump to: navigation, search

Contents

What is Ubuntu?

Ubuntu is a Debian SID derived distribution using Gnome 2.10. KDE is also now supported and easily installable by using the Kubuntu distribution. Nvidia and ATI drivers are already installed out of the box, they just need to be enabled on i386 and AMD64. All the python libraries are also installed, so point2play-small works well. By default all 'root' access is done with sudo. Ubuntu also provides a great pure64 AMD64 distribution.

More information can be found here:

http://www.ubuntulinux.org/

This wiki page is based on Ubuntu 5.04 "The Hoary Hedgehog" which was released on 2005-04-08

  • To open a Terminal = Applications -> System Tools -> Terminal
  • To open a Run Button = ALT + F2
  • Note: All sudo commands will prompt for your password.

Enabling Nvidia 3D driver

The Nvidia 3D driver is installed by default, but not enabled. To enable the Nvidia driver follow these steps:

More information can be found at this URL:

[http://wiki.ubuntu.com/BinaryDriverHowto Ubuntu Binary Driver Howto]

  • Open a Terminal.
  • Type: sudo apt-get install nvidia-glx
  • Type: sudo nvidia-glx-config enable
  • Reboot
  • If all went well and the driver is loading properly, you should see the Nvidia logo.
  • To test your 3D setup. Open a Terminal and type: glxgears

Optimizing Nvidia 3D driver

  • Open a Terminal.
  • Check the status of the nvidia driver. Type: cat /proc/driver/nvidia/agp/status
  • Sample Output:
 Status:          Enabled
 Driver:          AGPGART
 AGP Rate:        4x
 Fast Writes:     Disabled
 SBA:             Disabled
  • To enable 'Fast Writes' and 'SBA' you can try this.
  • Open a Run Button.
  • Type: sudo gedit /etc/modutils/nvidia-kernel-nkc
  • Add this to the end of the file and save: options nvidia NVreg_EnableAGPSBA=1 NVreg_EnableAGPFW=1 NVreg_ReqAGPRate=8
  • Modify the above settings for your system.
  • Open a Terminal.
  • Type: sudo update-modules
  • Reboot or unload/load the Nvidia driver and restart X.
  • Sometimes you have to add 'agpgart' and 'via-agp' at the end of /etc/hotplug/blacklist

Enabling ATI 3D driver

I do not have any ATI hardware to write this section up. Ubuntu does come with the 'fglrx' ATI driver so it may just need to be enabled like the Nvidia 3D driver does.

More information can be found at this URL:

[http://wiki.ubuntu.com/BinaryDriverHowto Ubuntu Binary Driver Howto]

Enabling an Optimized Kernel

  • On Ubuntu you can easily install an optimized kernel for you hardware.
  • If you have an Athlon system in a terminal type: sudo apt-get install linux-k7 linux-restricted-modules-k7 nvidia-glx
  • If you have an Pentium system in a terminal type: sudo apt-get install linux-686 linux-restricted-modules-686 nvidia-glx
  • If you have an AMD64 system in a terminal type: sudo apt-get install linux-amd64-k8 linux-restricted-modules-amd64-k8 nvidia-glx
  • Upon the next reboot you should be running an optimized kernel. You can confirm you have the optomized kernel enabled by typing this in a terminal: uname -a. Look for 'k7' or '686' in the kernel name instead of '386'.

How to install Cedega

  • Download cedega*.deb into your home directory.
  • Download transgaming*.deb into your home directory.
  • Open a Terminal.
  • Use dpkg to install the packages: sudo dpkg -i cedega*.deb transgaming*.deb

How to install Point2Play Small

  • Download point2play-small*.deb into your home directory.
  • Open a Terminal.
  • Use dpkg to install the package: sudo dpkg -i point2play-small*.deb

How to install Cedega on AMD64

  • Download cedega*.deb into your home directory.
  • Download transgaming*.deb into your home directory.
  • Open a Terminal.
  • Use dpkg to install the packages: sudo dpkg --force-architecture --force-depends -i cedega*
  • Use dpkg to install the packages: sudo dpkg --force-architecture -i transgaming*
  • Fix libpng3: sudo ln -s /usr/lib32/libpng12.so.0.1.2.5 /usr/lib32/libpng.so.3
  • Fix cedega script to use 32bit libs.
  • Open a Run Button.
  • Type: sudo gedit /usr/bin/cedega
  • Replace this line: export LD_LIBRARY_PATH="$WINEXINSTALLDIR/winex/lib:$WINEXINSTALLDIR/winex/bin:$LD_LIBRARY_PATH"
  • With this: export LD_LIBRARY_PATH="$WINEXINSTALLDIR/winex/lib:$WINEXINSTALLDIR/winex/bin:/lib32:/usr/lib32:$LD_LIBRARY_PATH"

How to install Point2Play Small on AMD64

  • Download point2play-small*.deb into your home directory.
  • Open a Terminal.
  • Use dpkg to install the package: sudo dpkg --force-architecture -i point2play-small*
  • Fix libpng3: sudo ln -s /usr/lib32/libpng12.so.0.1.2.5 /usr/lib32/libpng.so.3
  • When using AMD64 and Point2Play the version of cedega's winex script will need to be updated with the proper LD_LIBRARY_PATH path.
  • Open a run button.
  • Type: gedit .point2play/.winex_ver/winex-4.3.1/bin/winex3
  • Note: Replace winex-4.3.1 with the correct version you have.
  • Replace this line: export LD_LIBRARY_PATH="$WINEXINSTALLDIR/winex/lib:$WINEXINSTALLDIR/winex/bin:$LD_LIBRARY_PATH"
  • With this: export LD_LIBRARY_PATH="$WINEXINSTALLDIR/winex/lib:$WINEXINSTALLDIR/winex/bin:/lib32:/usr/lib32:$LD_LIBRARY_PATH"

UPDATED AMD64 pure64 w/32bit libs and NO 32bit chroot

It is now possible on Ubuntu Hoary AMD64 to use Cedega/Point2Play without going through the hassle of building a 32bit chroot. Here are the steps I found worked well for me:

  • Make sure libpng3 is all good

sudo apt-get install ia32-libs-gtk
sudo apt-get install libpng3
sudo ln -s /usr/lib32/libpng12.so.0.1.2.5 /usr/lib32/libpng.so.3

  • Install cedega and transgaming packages

sudo dpkg --force-architecture -i transgaming*
sudo dpkg --force-architecture --force-depends -i cedega*
sudo dpkg --force-architecture -i point2play-small*

  • Edit /usr/bin/cedega to find lib32

Add: /lib32:/usr/lib32 to the $LD_LIBRARY_PATH

  • For Point2Play edit ~/.point2play/.wine_ver/winex-xxx/bin/winex

Add: /lib32:/usr/lib32 to the $LD_LIBRARY_PATH

I tested with World of Warcraft, Half Life 2/Steam and a few other win32 games I had on my hard drive, everything appears to be working great.

AMD64 pure64 w/32bit libs VS. 32bit chroot

Most 32 bit binaries will work fine in a pure64 bit environment like Ubuntu Warty. I have not been able to get Cedega or Point2play to work reliably in a pure64 bit enviroment. Other 32 bit games like Neverwinter Nights and Doom3 do work fine in pure64 using 32 bit libraries.

A solution I have found to this problem is to build a 32 bit chroot. There are 2 ways to do this that I know of.

  • Install a 32 bit Ubuntu into a second partition or second hard drive.
  • Use debootstrap to build a clean 32 bit chroot

The first option was the easiest for me. As I already had a 32 bit partition from my old system when I upgraded. Having a separate 32 bit OS installed can also be useful to test to see if the libraries are setup properly.


Building a clean 32bit chroot with debbootstrap

This section is not necessary for using Cedega/Point2Play on Ubuntu Hoary AMD64. It is still useful for installing Firefox with Flash, RealPlayer10, mozilla-mplayer, w32codecs, or any or 32bit only game or application. This can also be useful if you want to install a clean version of Debian or dchroot another Linux distribution.

This section was recently lifted from a cleaned up version by Crad on this thread: [1]

Setup the chroot

  • Open a Terminal.
  • Type: sudo apt-get install dchroot debootstrap
  • Type: sudo mkdir /chroot/
  • Type: sudo gedit /etc/dchroot.conf
  • Add this line to the end of the file, save and exit: hoary /chroot
  • Type: sudo debootstrap --arch i386 hoary /chroot/ http://archive.ubuntu.com/ubuntu
  • Wait for the installation to complete.
  • Type: sudo chroot /chroot/
  • Type: dpkg-reconfigure locales
  • Select your proper locale.

Setup apt-get

  • Open another Terminal (or Type: exit).
  • Type: sudo cp /etc/apt/sources.list /chroot/etc/apt/sources.list
  • Type: sudo chroot /chroot/
  • Type: apt-get update ; apt-get upgrade

Finish chroot setup

  • Open another Terminal (or Type: exit).
  • Type: sudo cp /etc/passwd /chroot/etc/
  • Type: sudo cp /etc/shadow /chroot/etc/
  • Type: sudo cp /etc/group /chroot/etc/
  • Type: sudo cp /etc/sudoers /chroot/etc/
  • Type: sudo cp /etc/hosts /chroot/etc/
  • Type: sudo gedit /etc/fstab
  • Add the following lines:
/home		/chroot/home		none bind 0 0
/tmp		/chroot/tmp		none bind 0 0
/dev		/chroot/dev		none bind 0 0
/proc		/chroot/proc		proc defaults 0 0
/media/cdrom0	/chroot/media/cdrom0	none bind 0 0
  • Type: sudo mkdir /chroot/media/cdrom0
  • Type: sudo mount -a
  • Type: sudo gedit /usr/local/bin/do_dchroot
  • Add the following:
#!/bin/bash
args=""
for i in "$@" ; do
        args="$args '$i'"
done
/usr/bin/dchroot -d "`basename $0`" "$args"
  • Type: sudo chmod 755 /usr/local/bin/do_dchroot

Install 32bit applications

  • Open a Terminal.
  • Type: dchroot -d
  • Type: sudo apt-get install synaptic libxmu6 mozilla-firefox flashplugin-nonfree mozilla-firefox-gnome-support gtk2-engines-clearlooks ubuntu-artwork
  • Type: sudo ln -s /usr/sbin/synaptic /usr/local/bin/synaptic32
  • Type: sudo ln -s /usr/lib/libesd.so.0 /usr/lib/libesd.so.1
  • Type: sudo ln -s /usr/bin/firefox /usr/bin/firefox32
  • Type: exit
  • Type: sudo ln -s /usr/local/bin/do_dchroot /usr/local/bin/synaptic32
  • Type: sudo ln -s /usr/local/bin/do_dchroot /usr/local/bin/firefox32
  • To run a 32bit synaptic in a Run Button: sudo synaptic32
  • To run a 32bit firefox in a Run Button: firefox32
Personal tools
Namespaces

Variants
Actions
Navigation
Game lists
Resources
Tools