Tuesday, January 15, 2008

Getting WoW to Work (cont)

Read an article that suggest that I may not have entered the reload command correctly.

http://appdb.winehq.org/commentview.php?iAppId=1922&iVersionId=9429&iThreadId=29321

Should say: /console reloadui

This does actually reload the user interface; however, it doesn't fix my problem.

Monday, January 14, 2008

Getting WOW to Work

I removed the xserver-glx and set the gxApi to 'OpenGL' and now it work but I get no characters or pictures of characters.

http://appdb.winehq.org/commentview.php?iAppId=1922&iVersionId=9262&iThreadId=27806

With some reading around in the WOW wine stuff I would someone who talk about having similar problems and removing the glx server as I have done and also removing the compiz package.

I am removing the compiz package.

Now for a reboot.

No change :-(

gfxinfo Problems

gfx is not using the driver nor do I have direct rendering.

Trying to uninstall the xserver-glx and seeing if that helps.

WoW is no longer working at all. I believe that it is a Mesa problem.

But unintalling Mesa now will unintall many applications I don't want uninstalled.

Installing from ATI

Install dynamic module kernel support.
These instruction assume that I know a lot that I don't know: https://help.ubuntu.com/community/BinaryDriverHowto/ATI
sudo apt-get install dkms
Downloading the driver from here: http://ati.amd.com/support/drivers/linux/linux-radeon.html

Select the driver from the following page using the linux x85_64=>Integraed/Motherboard=>Radeon Xpress 1250 option: http://ati.amd.com/support/driver.html

This is a "run" file. I think this is for Redhat.

Build an install package from the downloaded driver.
./ati-driver-installer-8.443.1-x86.x86_64.run --buildpkg Ubuntu/gutsy
Install the binary drivers.
sudo dpkg -i fglrx-kernel-source_8.443.1-1_amd64.deb
...
Installing initial module
modinfo: could not find module /lib/modules/2.6.22-14-generic/volatile/fglrx.ko
modinfo: could not find module /lib/modules/2.6.22-14-generic/volatile/fglrx.ko
Done.
This is not good. How do I resolve this?

Is this a left over directory link that is just causing problems?

Remove and install again.
Setting up fglrx-kernel-source (8.443.1-1) ...
Adding Module to DKMS build system

Error! DKMS tree already contains: fglrx-8.443.1
You cannot add the same module/version combo more than once.
Doing initial module build

Error! This module/version has already been built on: 2.6.22-14-generic
Directory: /var/lib/dkms/fglrx/8.443.1/2.6.22-14-generic/x86_64
already exists. Use the dkms remove function before trying to build again.
Installing initial module

Error! This module/version combo is already installed
for kernel: 2.6.22-14-generic (x86_64)
Done.
Install the non-dev XOrg Driver
sudo dpkg -i xorg-driver-fglrx_8.443.1-1_amd64.deb 
Installing the package maintainer version of compiz-manager, atieventsd, atisignature, atiogl.xml, /etc/ati/control

Time to reboot and cross my fingers.

Yea!!!! It seem to have worked!!!!!
stan@stan-laptop:~$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon Xpress Series
OpenGL version string: 2.1.7170 Release
PUB

Installing the Proprietary fglrx Driver (cont)

I think the reason that I could not get to the restricted driver dialogue was because I was running X from my user.

It says that it is installed but when I go to change it is says that there is no xconfig file present.

OK, now I trying it the harder way.
sudo apt-get update
sudo apt-get install linux-restricted-modules-generic restricted-manager
No change.
sudo apt-get update
sudo apt-get install xorg-driver-fglrx
This installed some more software but I still don't see the /etc/X11/xorg.conf file.

Make sure that fglrx is not in the disabled modules.
$ more /etc/default/linux-restricted-modules-common

There is nothing in the restricted module section so I am OK on that count.

Not installing the fglrx control because it is said to be buggy.

Generating a new set of module dependencies so the fglrx driver starts properly.
$ sudo depmod -a
WARNING: Can't read module /lib/modules/2.6.22-14-generic/volatile/fglrx.ko: No such file or directory

OK, do I need this?

Yes. Found the following under this link (way under :-):http://ubuntuforums.org/showthread.php?t=588605&page=4

sudo ln -s /lib/modules/fglrx/fglrx.2.6.22-14-generic.ko /lib/modules/2.6.22-14-generic/volatile/fglrx.ko

The file doesn't exists!!!

KO stands for kernel object (see http://tldp.org/HOWTO/Module-HOWTO/linuxversions.html)

Something is wrong because I am no longer getting a new xorg.conf file.

This has been a bust.

Try to install from ATI.

Ubuntu Updates

Wine update from 0.9.52 to 0.9.53.

The following is the comment from the installer:

While Wine is usually thought of as a Microsoft Windows emulator, the Wine developers would prefer that users thought of Wine as a Windows compatibility layer for Linux. Wine does not require MS Windows, but it can use native system dll files in place of its own if they are available.
This package includes a program loader, which allows unmodified Windows binaries to run under compatible hardware.
This package also includes the library that implements the Wine project's free version of the Windows API, allowing successful running of programs ported directly from Windows.
Homepage: http://www.winehq.org/

Seems to have installed fine

Installing the Proprietary fglrx Driver

OK, I cannot use the open source driver.

Tying to use the proprietary fglrx driver.

https://help.ubuntu.com/community/BinaryDriverHowto/ATI

How do I determine that my card is a Radeon card?

System=>Preferences=>Hardware Information

This show that my card to be the following
  • On the RS480 PCI Bridge
  • An RS485 [Radeon Xpress 1100 IGP]
Also the following will show that information from the command line.
$ lspci | grep VGA
However, the 'Hardware Information' gives a lot more information.

I am going to try to install from the Ubuntu repository first.

Making sure that the generic Linux restricted modules and the restricted KDE manager are installed.
$ sudo apt-get install --reinstall linux-restricted-modules-generic restricted-manager-kde
This demands that I have the CD.

Trying to mount the ISO like I did last time but the mount is not working.

Trying to simply point the /cdrom/ to the wrong location.

That worked. Everything is now installed.

Is the xconfig file back?

No it is still gone.

I cannot open the restricted driver.

Do I need to reboot?

I also seem to have lost the ability to reboot.

Must be because I started X from the command line in my user.

Have rebooted successfully

Verify the Open Source Driver

Testing for the driver.
$ glxinfo | grep vendor
This shows the driver to be SGI which is correct.
$ glxinfo | grep "direct rendering"
Says no for the direct rendering.
$ LIBGL_DEBUG=verbose
Setting this option seems to give no additional information.

Bottom line is that Wow will not work. However, everything else seems to be working OK.

It there a newer version of this driver?

WoW doesn't work :-(

Running WoW doesn't work.
$ wine "C:\Program Files\World of Warcraft\Wow.exe"
Give the following fixme's
  • advapi:SetSecurityInfo stub
  • powrprof:DllMain (0x7dff0000, 1, (nil)) no fully implemented
  • ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11
  • powrprof:DllMain (0x7dff0000, 0, (nil)) no full implemented
  • win:EnumDisplayDevicesW ((null), 0,0x33ed78,0x0000000), stub!
I finishes with the following error:

X Error of failed request: CLXUnsupportedPrivateRequest
Major opcode of failed request: 148 (GLX)
Minor opcode of failed request: 16 (X_GLXVendorPrivate)
Serial number of failed request: 469
Current serial number in output stream: 470

Installing the Open Source Radeon (ATI) Driver

Look like this driver will only give me 2 D support. Cannot be use with WOW for now.

https://help.ubuntu.com/community/RadeonDriver

$ sudo apt-get remove --purge xorg-driver-fglrx
This says that the drive is not installed.

$ glxinfo |grep vendor
This gives back: Error: unable to open display

This is not a good sign.

$ sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri

This says that the following packages where automatically installed and are no longer requried:
  • libfaad2-0
  • libavutil1d
  • libquicktime1
  • libavcodic1d
  • libx264-54
  • libmms0
It recommends that I use 'apt-get autoremove' to remove them.

It also talks about processing triggers for libc6 and that the ldconfig deferred processing is now taking place, whatever that means.

$ sudo apt-get autoremove
Says that it is removing the following packages:
  • libavcodec1d
  • libavutil1d
  • libcdaudio1
  • libfaad2-0
  • libgsm1
  • libmjpegtools0c2a
  • libmms0
  • libquicktime1
  • libsoundtouich1c2
  • libx264-54
Again says the ldconfig deferred processing now talking place.

Made a copy of the old xorg.conf to xorg.conf.fglrx.

In install instructions says that I should be able to simply remove the xorg.conf file and it should work.
$ sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.moved
$ sudo startx
Complains that I am running the session as a privileged user and that this should be avoided.

Quiting.
$ startx
Yea!!! My screen is back!!!!

Only Commandline

I now have only a command line available to me.

When I run startx it says that it cannot find fglrx. This is correct because I don't want to use fglrx at the point. The problem is that I don't know what is suppose to be used.

The problem seems to be my /etc/X11/xorg.conf file. It is still referencing the fglrx driver which is no longer available.

How do I make sure that I have the correct xorg.conf

Friday, January 11, 2008

Open Source ATI Driver (cont)

The /etc/X11/xorg.conf still contains the ATI Proprietary Driver (fglrx).

How do I truly uninstall fglrx?

Booting Linux ISO from HD

Need to make it look as if it is coming from the CD.

stan@stan-laptop:~/tmp/Windows XP with SP2$ sudo mount ./ubuntu-7.10-desktop-amd64.isoD /mnt/xpiso -t iso9660 -o loop=/dev/loop0

stan@stan-laptop:~/tmp$ sudo mount ./ubuntu-7.10-desktop-amd64.iso /mnt/ubuntu_iso -t iso9660 -o loop=/dev/loop0
mount: stolen loop=/dev/loop0
stan@stan-laptop:~/tmp$

Seem to only be able to mount 1 at a time.

stan@stan-laptop:~/tmp$ sudo mount ./ubuntu-7.10-desktop-amd64.iso /mnt/ubuntu_iso -t iso9660 -o loop=/dev/loop0

Point the /cdrom link to point to the mounted drive.

Create a new link and make sure that it looks like the old.

stan@stan-laptop:~/tmp$ sudo ln -s ubuntu-7.10-desktop-amd64.iso /ISO_Link
stan@stan-laptop:~/tmp$ sudo mv /cdrom /cdromold
stan@stan-laptop:~/tmp$ sudo mv /ISO_Link /cdrom

Is the /cdrom link a hard link or a soft link? The /cdrom link is blue and the ones I create are black, but it is definitely a soft link.

It failed but went to the site when it did.


Media change: please insert the disc labeled
'Ubuntu 7.10 _Gutsy Gibbon_ - Release amd64 (20071016.1)'
in the drive '/cdrom/' and press enter

Err cdrom://Ubuntu 7.10 _Gutsy Gibbon_ - Release amd64 (20071016.1) gutsy/main libgl1-mesa-glx 7.0.1-1ubuntu3
Unable to stat the mount point /cdrom/ - stat (2 No such file or directory)
Get:1 http://us.archive.ubuntu.com gutsy/main libgl1-mesa-glx 7.0.1-1ubuntu3 [176kB]
Get:2 http://us.archive.ubuntu.com gutsy/main libgl1-mesa-dri 7.0.1-1ubuntu3 [14.

Open Source ATI Driver

I have messed up the graphics on my system. Right now it is so slow that even simple typing is falling behind.

Try to switch back to the open source ATI driver.

https://help.ubuntu.com/community/RadeonDriver

This driver only does 2D support for Xpress type cards.

My card type.

01:05.0 VGA compatible controller [0300]: ATI Technologies Inc RS485 [Radeon Xpress 1100 IGP] [1002:5975]


Removing the proprietary driver.

$ sudo apt-get remove --purge xorg-driver-fglrx

Verify that proprietary drive is removed

stan@stan-laptop:~$ glxinfo | grep vendor
server glx vendor string: SGI
client glx vendor string: SGI
OpenGL vendor string: Mesa project: www.mesa3d.org
stan@stan-laptop:~$

Make sure that the open source drive is installed

sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri

I also need the install CD

Media change: please insert the disc labeled
'Ubuntu 7.10 _Gutsy Gibbon_ - Release amd64 (20071016.1)'
in the drive '/cdrom/' and press enter

Thursday, January 10, 2008

Updating ATI Driver

http://combatwombat.7doves.com/index.php/2007/10/31/gutsy_effort_in_new_ati_driver

The above page talks about what to do.

Xgl server setup changed

The Xgl server will now be started automatically next time you login. It is no longer necessary to use any special X session to start Xgl, and such sessions will likely fail to work properly. Please select a regular session from your session manager next time you log in. To disable Xgl autostart for this user, create a file named ~/.config/xserver-xgl/disable

WOW Under Linux!!!

However, it is so slow that I cannot play it, but it runs under Linux.

That was way cool. It work and it ran, just very, very slow.

Able to reset the resolution to a the actual resolution of the screen (1280x800)

Unable to change to use OpenGL.

SET gxApi "opengl"

I get the error "WoW was unable to start up 3D accelration"

SET ffxDeath "0"
SET ffxGlow "0"
This seems to help but things are still really slow.

How ever I jump from WOW to the blog without losing WOW.

It says that my ATI accelerated graphics direver is not in use.

This may be part of my problem.

Perhaps it is not installed.

I don't see it to install or uninstall it.

ATI accelerated graphics driver

Looks like I need to update graphics driver







SET ffx
SET ffxGlow "0"

Configuring Apache2

I need to configure Apache so that is knows where the Gallary PHP stuff is found.

OK, I can see that Apache and PHP are working, what do I need to do to get Gallery working?

How do a get Apache to point to /usr/share/gallery2 folder?

OK, the /etc/gallery2/apache.conf file has what I need. (i.e. it tell apache where to look for the Gallery file.)

#Alias /gallery2 /usr/share/gallery2


Options FollowSymLinks
AllowOverride Limit Options FileInfo



Now where do I find the Apache file to put the change in?

/etc/apache2/apache2.conf

It looks like the user configuration are suppose to go in httpd.conf

OK, how do I stop and start Apache?

sudo invoke-rc.d apache2 restart

I still don't see the http://localhost/gallary2 directory.

I don't see anything in the error log.

/var/log/apach2/error.log

What is going on?

Is this a privileges problem?

Installing Gallery Continued

Trying to make sure I have PHP5 working.

Using the following link: http://www.howtogeek.com/howto/ubuntu/installing-php5-and-apache-on-ubuntu/

Looks like everything is already installed.

Says to look in the /var/www folder.

Yea! That is where everything is.

Now I need to tell Apache where to find this new stuff.

Installing WOW under Ubuntu

Forgot to save what I did before unless I save it under the learning WOW blog.

I did not; however, with a lot of searching I finally found the magic google search string " wow ubuntu gusty wine" that leads me to this wonderful link: https://help.ubuntu.com/community/WorldofWarcraft

It seems that I need direct rendering to get WOW to work and I don't have direct rendering with my ATI graphics card. I will definitely look to get a graphic card other than ATI next time I buy a portable PC.

It seems that there is a way around my graphics problem, but it may give me some poor frame rates.

WOW does support OpenGL and I can use an XServer for this.

It looks like I will need to reinstall Wine by rebuilding the most recent code.

This could be some work.

ATI Accelerated Graphics Driver

Looking in the Restricted Drivers Manager I can see that it is not enabled.

Enabling.

Rebooting.

Wednesday, January 9, 2008

Installing Gallery

Using the Ubuntu install for Gallery.

The version being installed is 2.2.1-3.

Installing apache, mySql, and PHP.

Seems to have removed apache2-mpm-worker when some other packages may have depended upon.

Need to use the following command to restart apache2:

invoke-rd.d apache2 res

Using the network 127.0.1.1

Testing:

Apache is working but I don't see Web Gallery.

How don't see how to start gallery. All the instructions are for after gallery is started.

I was able to get MySQL running but I had to install it by hand.

It would be nice if Ubuntu handled this better.