Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Installing SL on linux howto

ragarth Doolittle
Registered User
Join date: 18 Nov 2005
Posts: 28
12-26-2005 01:27
SL on Linux howto

--My system:
CPU: AMDXP 1700+ @ 1.46GHz
Video Card: GeForce FX 5200 w/ 128Mb
RAM: 512mb Geil 3200 DDR Dual Channel @ 233MHz
Swap: 1.1Gb
OS: Ubuntu 5.10 "Breezy Badger"
Windows Manager: KDE 3.4.3
Kernel: 2.6.12-10-386

--references:
http://www.linux-gamers.net/modules/wfsection/article.php?articleid=45
-This is where I got the directions for installing cedega from the cvs directory.

--Needed packages/aps:
wget
fontconfig
freetype2
freetype2-devel
bison
flex
libjpeg
libjpeg-devel
libpng
libpng-devel
zlib
zlib-devel
xorg-x11-devel (resp. XFree86-devel)
Mesa (resp. xorg-x11-Mesa, XFree86-Mesa)
Mesa-devel (resp. xorg-x11-Mesa-devel, XFree86-Mesa-devel)
freeglut
freeglut-devel
SDL
SDL-devel

Debian users can just use:
apt-get install cvs build-essential bison flex-old libasound2-dev x-window-system-dev libpng12-dev libjpeg62-dev libfreetype6-dev libxrender-dev libttf2 libttf-dev libsdl1.2-dev libsdl-ttf2.0-dev libsdl-net1.2-dev libsdl-gfx1.2-dev msttcorefonts libfontconfig1-dev

--Dependency notes:
Compiled mine without freetype2
I don't know if freetype2-devel is on my system, it's not in adept and I just didn't check
Compiled with flex-old, installed the new flex later
I ran the debian command, but got a msttcorefonts missing message, so didn't install that package

--Cedega Installation:
download the install script from: http://cvscedega.linux-gamers.net/WineCVS.sh

Change to the location where the WineCVS.sh is located

type: 'sh WineCVS.sh'

follow the directions given! I used cedega_head_userinstall

NOTES: I had to install gcc 3.4, then type export CC=gcc-3.4 before cedega would compile

--Configuration
run cvscedega, mine was in ~/bin, so I typed '~/bin/cvscedega' to run it, this sets up the virtual windows on your system under a directory called ~/.cvscedega

edit the configuration file: 'vi ~/.cvscedega/config' I didn't have to change much here, just my video RAM in the [x11drv] section

NOTES: use http://www.linux-gamers.net/modules/wfsection/article.php?articleid=45 as a guide to editing the config file. I would recommend creating a ~/bin directory and moving cvscedega there, then putting PATH=~/bin:"${PATH}" at the end of your .bash_profile file.


--SL installation
Download the windows version, go to where it's downloaded and run: '~/bin/cvscedega Second\ Life\ 1-8-0-6\ Setup.exe'

follow the prompts on your screen!

start SL with: ~/bin/cvscedega ~/.cvscedega/drive_c/Program\ Files/SecondLife/SecondLife.exe

NOTES: If you add the path statement to .bash_profile, you can drop the ~/bin. My SL executable is at /home/testbed/.cvscedega/drive_c/Program\ Files/SecondLife/SecondLife.exe with defaults, yours may vary. I recommend creating a desktop icon for SL and putting the full command in, hard-linked: /home/testbed/bin/cvscedega /home/testbed/.cvscedega/drive_c/Program\ Files/SecondLife/SecondLife.exe just replace 'testbed' with whatever your username is.

There you go!

things to work on:

SL doesn't like to share my soundserver, I'm using gstreamer
every other time I log in, I have no sound. Invariably this is every even startup
ctrl+alt+d may or may not work in linux, but my hotkey for minimizing everything is that and I'm too lazy to change it
LordJason Kiesler
imperfection inventor.
Join date: 30 May 2004
Posts: 215
12-26-2005 21:03
Sl also runs fine ( I'd say better ) on regular wine.
Even counterstrike source, although its sometimes tricky to get steam to behave.
For Ubuntu 5.10 Just add the wine repositories to your sources.list
CODE
sudo gedit /etc/apt/sources.list

Add the following lines,
CODE
deb http://wine.sourceforge.net/apt/ binary/
deb-src http://wine.sourceforge.net/apt/ source/

Actually you don't even need the source "deb-src" one if you don't plan to compile wine.
Save and close gedit.
Then go to a terminal and type.
CODE
sudo apt-get update

Then when thats done,
CODE
sudo apt-get install wine

After thats done, just download SL and do one of the following...
1.
a. Right click on the SL installer exe file
b. Left click on "run with wine".

Or if for some reason that option dosnt show up.
2.
a. Go to the terminal
b. Change directory to where the installer is
c. Run,
CODE
wine /path/to/sl/installer/sl_installer.exe

"If you have problems with spaces in the filename just put quotes around the whole path and filename"

note: your default wine "C" drive will be in "/home/username/.wine/drive_c"
You may need to run "winecfg" and change the default os to winxp instead of win98.
I didnt have to disable my sound server for sound to work in sl, but doing so did make it run a tad smoother. When running apt-get install wine, it will most likely ask to install a few more things, there just dependencies (things wine needs to work).
On the gnome desktop ( I have not tried kde ), the installer should make a shortcut. But they have never worked for me. Just right click on the desktop and click "Create Launcher"
Name it Second Life or whatever, and for the command put..
wine "C:\Program Files\Secondlife\secondlife.exe"

the same command would work in a terminal also.
CODE
wine "C:\Program Files\Secondlife\secondlife.exe"
_____________________
"no, my alt is clean on crashing any sims"
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
12-27-2005 00:01
altho informitive and ill be trying it out let me add ...

Sl and half assed windows emulation under linux = pray

ie mandrake comes up with a different error than fedora
(eventho they are the same core software)
Kathmandu Gilman
Fearful Symmetry Baby!
Join date: 21 May 2004
Posts: 1,418
12-27-2005 16:06
And this is why Linux is not ready for prime time and why Windows will be king for a while longer. I like Linux ( I use Ubuntu as well) but the hoops you have to jump through can be madning and I'm not even going to try to do this. Thanks for posting though in case I change my mind. :)
_____________________
It may be true that the squeaky wheel gets the grease but it is also true that the squeaky wheel gets replaced at the first critical maintenance opportunity.
ragarth Doolittle
Registered User
Join date: 18 Nov 2005
Posts: 28
12-28-2005 01:11
Lord Kiesler: I followed your directions and it tells me 'can't find suitable pixel format' :-/
From command prompt, wine produces this error:

INFO: Initializing window...
err:opengl:X11DRV_ChoosePixelFormat glXChooseFBConfig returns NULL (glError: 0)
WARNING: Release of rendering context failed
WARNING: LLWindowManager::create() : Error creating window.
WARNING: Unable to create window, be sure screen is set at 32-bit color in Control Panels->Display->Settings
LordJason Kiesler
imperfection inventor.
Join date: 30 May 2004
Posts: 215
12-28-2005 22:51
From: ragarth Doolittle
Lord Kiesler: I followed your directions and it tells me 'can't find suitable pixel format' :-/

First: try running
CODE
winecfg
and playing with the display settings.
If that don't help.
What kind of videocard do you have? Have you installed the modules/drivers for it?
Assuming your using Ubuntu 5.04 or 5.10.
Nvidia
ATI

Also sometimes people get better results by compiling wine.
apt makes this easy ( assuming your not using 64bit )
wine on Ubuntu or Debian compiling instructions.
Scroll down to the bottom of that page..
Run
CODE
sudo apt-get build-dep wine

then
CODE
sudo apt-get --build source wine

From: someone
have a snack, and wait for the compiling to finish.

Then
CODE
sudo dpkg -i wine*.deb

you may also want to run
CODE
sudo dpkg -i libwine*.deb

Because it will make 2 "libwine" .deb's as well, winehq says nothing about installing these. But they may or may not be needed, dunno what they are.
Also make sure you remove wine first.
CODE
sudo dpkg -P wine



EDIT:
After writing this, I tried to log in and am no longer able to get SL to run under wine, its crashing with ..
CODE
INFO: Initializing window...
WARNING: No ARB WGL render texture extensions
fixme:opengl:wglGetPixelFormatAttribivARB unsupported 2007 WGL Attribute
INFO: Swap Method: Unknown
INFO: GL buffer: Color Bits 32 Alpha Bits 8 Depth Bits 24
INFO: Disabling vertical sync
WARNING: Unable to get device gamma ramp
INFO: Previous gamma: 7.37848
INFO: remove_marker_file()
INFO: Starting crash reporter

Oddly enough the crash reporter actually works, thats one thing that has never worked under wine as far as I can remember.
I have no idea what ive done, I hope this isnt due to a SL client update and its only a problem on my end.
_____________________
"no, my alt is clean on crashing any sims"
ragarth Doolittle
Registered User
Join date: 18 Nov 2005
Posts: 28
12-29-2005 03:06
I feel like such a dutz, it was my forgetting my hardware acceleration. -.- Blarrr. Oh well.

Yeah, I got the same crash report error you did. I'm going to try my cedega stuff again and see if that works, cedega succeeded for me where wine had failed before.

EDIT: I am SUCH a bubble-brain, I've been trying for an hour to install cedega. I did everything fine, I remembered to export my gcc-3.4, but I forgot to *install* gcc-3.4. Fear me, for I am swisscheese!
Tsutomu Yamabushi
Scripter
Join date: 6 Sep 2005
Posts: 34
12-29-2005 12:20
I tried to run SL with Wine today and I got this error: (full log)

CODE

Invoking /usr/lib/wine/wine.bin c:\Programme\SecondLife\SecondLife.exe ...
fixme:opengl:query_function_pbuffer gl_version is: "1.2 Mesa 4.0.4"
fixme:opengl:query_function_pbuffer glx_exts is: "GLX_EXT_visual_info GLX_EXT_visual_rating GLX_EXT_import_context "
fixme:opengl:query_function_pbuffer gl_version is: "1.2 Mesa 4.0.4"
fixme:opengl:query_function_pbuffer glx_exts is: "GLX_EXT_visual_info GLX_EXT_visual_rating GLX_EXT_import_context "
fixme:avifile:AVIFileInit (): stub!
INFO: QUEUED THREAD STARTING

INFO: QUEUED THREAD STARTING

INFO: Checking marker file for lock...

INFO: Marker file isn't locked.

INFO: Checking marker file for lock...

INFO: Marker file created.

INFO: Removing SecondLife.dmp

INFO: Removing message.log

INFO: Exiting init_marker_file().

INFO: Opening debug file c:\windows\profiles\carsten\Anwendungsdaten\SecondLife\logs\debug_info.log

INFO: Second Life version 1.8.0

INFO: Local time: 2005-12-29T21:17:09 Central European Time

INFO: QUEUED THREAD STARTING

INFO: CPU info:

// CPU General Information

//////////////////////////

Processor name: Original OEM Intel Pentium 4 (Unknown model)

Frequency: 2666.65 MHz



Vendor: GenuineIntel

Family: Intel Pentium 4

Extended family: 0

Model: Unknown Intel Pentium 4

Extended model: 0

Type: Original OEM

Brand ID: Not supported

Processor Serial: Disabled





// CPU Configuration

////////////////////

L1 instruction cache: Not present

L1 data cache: Not present

L2 cache: Not present

L3 cache: Not present

Trace cache: 12 K-micro-ops cache size, 4 ways associative, 0 bytes line size

Instruction TLB: 4 KB / 2 MB / 4 MB page size, fully associative, 128 entries

Data TLB: 4 KB / 4 MB page size, fully associative, 64 entries

Max Supported CPUID-Level: 0x00000005

Max Supported Ext. CPUID-Level: 0x80000008





// CPU Extensions

/////////////////

AA64 AMD 64-bit Architecture: No

ACPI Thermal Monitor And Clock Control: Yes

APIC Advanced Programmable Interrupt Controller: Yes

APIC-ID: 0

CLFSH CLFLUSH Instruction Presence: Yes

CLFLUSH Instruction Cache Line Size: 8

CMOV Conditional Move And Compare Instructions: Yes

CX8 COMPXCHG8B Instruction: Yes

DE Debugging Extensions: Yes

DS Debug Store: Yes

FGPAT Page Attribute Table: Yes

FPU Floating Point Unit: Yes

FXSR Fast Streaming SIMD Extensions Save/Restore: Yes

HT Hyper Threading: Yes

IA64 Intel 64-Bit Architecture: No

MCA Machine Check Architecture: Yes

MCE Machine Check Exception: Yes

MMX Multimedia Extensions: Yes

MMX+ Multimedia Extensions: No

MSR Model Specific Registers: Yes

MTRR Memory Type Range Registers: Yes

PAE Physical Address Extension: Yes

PGE PTE Global Flag: Yes

PN Processor Serial Number: Disabled

PSE Page Size Extensions: Yes

PSE36 36-bit Page Size Extension: Yes

SEP Fast System Call: Yes

SS Self Snoop: Yes

SSE Streaming SIMD Extensions: Yes

SSE2 Streaming SIMD 2 Extensions: Yes

TM Thermal Monitor: Yes

TSC Time Stamp Counter: Yes

VME Virtual 8086 Mode Enhancements: Yes

3DNow! Instructions: No

Enhanced 3DNow! Instructions: No



INFO: Memory info:

Percent Memory use: 9%

Total Physical Kb: 516408

Avail Physical Kb: 318580

Total page Kb: 1510068

Avail page Kb: 1510068

Total Virtual Kb: 2097087

Avail Virtual Kb: 2097023



INFO: OS info: Microsoft Windows 95

INFO: Loading feature tables.

INFO: Turning off Windows error reporting.

INFO: Using configuration file c:\windows\profiles\carsten\Anwendungsdaten\SecondLife\user_settings\settings.ini

INFO: LLControlGroup::loadFromFile unable to open.

INFO: LLControlGroup::loadFromFile unable to open.

INFO: Loading art table from viewerart.ini

INFO: Loading base colors from colofixme:dxdiag:IDxDiagContainerImpl_AddProp (0x403cf6b8, L"dwDirectXVersionMajor", 0x406ef1e4)
fixme:dxdiag:IDxDiagContainerImpl_AddProp (0x403cf6b8, L"dwDirectXVersionMinor", 0x406ef1e4)
fixme:dxdiag:IDxDiagContainerImpl_AddProp (0x403cf6b8, L"szDirectXVersionLetter", 0x406ef1e4)
fixme:dxdiag:IDxDiagContainerImpl_AddChildContainer (0x403cf698, L"DxDiag_SystemInfo", 0x403cf6b8)
fixme:dxdiag:IDxDiagContainerImpl_GetChildContainer (0x403cf698, L"DxDiag_DisplayDevices", 0x406ef260)
fixme:avifile:AVIFileExit (): stub!
rs_base.ini

INFO: Loading user colors from colors.ini

INFO: Attempting to poll DirectX for hardware info

INFO: CoCreateInstance IID_IDxDiagProvider

INFO: dx_diag_providerp->Initialize

INFO: dx_diag_providerp->GetRootContainer

INFO: dx_diag_rootp->GetChildContainer

WARNING: DX9 probe failed

INFO: DirectX probe failed, alerting user.

INFO: Done polling DirectX for hardware info

WARNING: Unknown Windows major version 4, aborting detection!

INFO: Detected VRAM: 0

INFO: Default vfs data file not present, found c:\windows\profiles\carsten\Anwendungsdaten\SecondLife\cache\data.db2.x.24301

INFO: Old salt: 24301

INFO: Renaming c:\windows\profiles\carsten\Anwendungsdaten\SecondLife\cache\data.db2.x.24301 to c:\windows\profiles\carsten\Anwendungsdaten\SecondLife\cache\data.db2.x.25601

INFO: Renaming c:\windows\profiles\carsten\Anwendungsdaten\SecondLife\cache\index.db2.x.24301 to c:\windows\profiles\carsten\Anwendungsdaten\SecondLife\cache\index.db2.x.25601

INFO: VFS: Using index file c:\windows\profiles\carsten\Anwendungsdaten\SecondLife\cache\index.db2.x.25601 and data file c:\windows\profiles\carsten\Anwendungsdaten\SecondLife\cache\data.db2.x.25601

INFO: VFS: Using index file C:\Programme\SecondLife\app_settings\static_index.db2 and data file C:\Programme\SecondLife\app_settings\static_data.db2

INFO: Initializing window...

WARNING: Release of rendering context failed

WARNING: LLWindowManager::create() : Error creating window.

WARNING: Unable to create window, be sure screen is set at 32-bit color in Control Panels->Display->Settings

INFO: remove_marker_file()



I switched to 32bit graphics before trying to run SL. I use a current Debian/Sarge with Wine 20050310.

I can't install DirectX 9, so I think I quit my efforts for today. Maybe another day brings more luck or the official client.
_____________________
See my things at SLExchange

Need a scripter? Visit me at www.primotion.de.
ragarth Doolittle
Registered User
Join date: 18 Nov 2005
Posts: 28
12-29-2005 17:44
Tsutomu Yamabushi, what does the cedega method do for you? Just be sure you have gcc-3.4 installed when you do it. ~.n gcc is soooo may bane, I keep forgetting to install that sucker.
Beata Tempura
Registered User
Join date: 30 Dec 2005
Posts: 2
glib errors and crashed X server
12-30-2005 10:39
I'm using wine 0.9-1 from Debian. Runs for a little while, but eventually (at least when I'm able to capture wine's log) glib makes a complaint about trying to free already-freed memory, and (almost always) the X server and console will go unresponsive and (usually) the machine will lock soon after.
LordJason Kiesler
imperfection inventor.
Join date: 30 May 2004
Posts: 215
12-30-2005 13:07
Btw "cvs-cedega" is not "cedega", its a totaly different (behind) project. Tsutomu, you shouldnt have to install DirectX9, I highly doubt that would work anyway. Cedega and Wine have there own version of the directx libraries. Second Life will say that it does not detect DirectX9.
Just click yes on the "Warning bla bla bla Do you wish to continue?" dialog.

I think maybe the latest version of wine (0.9.4) is abit on the buggy side.
Steam is no longer working as well as Second Life.
Im going to go back and try some older versions and let you all know how that went.

EDIT: winex3 (3.3.2-1) seems to run SL fairly well. But the installer will not work on it. You have to first use cedega, wine, or windows, to install sl, and then use winex3 to run it.
_____________________
"no, my alt is clean on crashing any sims"
LordJason Kiesler
imperfection inventor.
Join date: 30 May 2004
Posts: 215
12-30-2005 14:36
Just tried 0.9.2 same exact problem(s).
_____________________
"no, my alt is clean on crashing any sims"
Tsutomu Yamabushi
Scripter
Join date: 6 Sep 2005
Posts: 34
12-31-2005 01:44
From: ragarth Doolittle
Tsutomu Yamabushi, what does the cedega method do for you?

I haven't tried it yet. I don't want to mess my system with all that CVS informations spreading around the file system... But I think I'll try it anyway. Waiting for an official client is way to far in the future, I guess.

BTW, is there any information page about the linux development?

Tsutomu
_____________________
See my things at SLExchange

Need a scripter? Visit me at www.primotion.de.
Tsutomu Yamabushi
Scripter
Join date: 6 Sep 2005
Posts: 34
12-31-2005 03:34
I managed to install cedega now and SL is starting. But the screen stays black, I can only see the SL cursor with the tiny clock attached to it. And I think something is not quite right, because the cursor switches back to my linux cursor when I move it above the position where a linux window should be... strange, strange.

Maybe I should wait a little bit longer when running SL, because I quit it with CTRL+ALT+BACKSPACE after a while.
_____________________
See my things at SLExchange

Need a scripter? Visit me at www.primotion.de.
LordJason Kiesler
imperfection inventor.
Join date: 30 May 2004
Posts: 215
12-31-2005 03:51
Tsutomu Yamabushi
Sl will do that on Cedega, You have to use cedega to install it, But you have to Run secondlife.exe with "winex3" WineX 3.3.2-1. Winex I guess is basicly cedega, just an older version, you download it from transgaming anyway.
_____________________
"no, my alt is clean on crashing any sims"
Beata Tempura
Registered User
Join date: 30 Dec 2005
Posts: 2
12-31-2005 04:28
From: LordJason Kiesler
Tsutomu Yamabushi
Sl will do that on Cedega, You have to use cedega to install it, But you have to Run secondlife.exe with "winex3" WineX 3.3.2-1. Winex I guess is basicly cedega, just an older version, you download it from transgaming anyway.


Where are they hiding winex3 for download?
LordJason Kiesler
imperfection inventor.
Join date: 30 May 2004
Posts: 215
01-01-2006 11:48
From: Beata Tempura
Where are they hiding winex3 for download?


Well I dont have an account anymore, But last I remember, under Downloads -> archives.
The exact filename your looking for, (if your usind DEB or Ubuntu) is.
winex3_3.3.2-1_i386.deb
_____________________
"no, my alt is clean on crashing any sims"
Richie Waves
Predictable
Join date: 29 Jun 2005
Posts: 1,424
01-01-2006 12:15
*head explodes*
_____________________
no u!
ragarth Doolittle
Registered User
Join date: 18 Nov 2005
Posts: 28
01-03-2006 00:05
winex3 is one of the available 'heads' in the cvs script I gave ya. I run SL just fine in cvscedega with no problems, so it's not a *haveto* to use winex3.
Tsutomu Yamabushi, QnA time:
What distribution are you running?
What's your graphics card and it's memory?
How much ram do you have in your pc?
What;s your processor and it's speed?

Did you setup hardware acceleration for your graphics card and verify it works?
TBA Lardner
Registered User
Join date: 8 Nov 2005
Posts: 24
01-05-2006 19:51
how do i get cedega to run sl in "true 32" every time i run it the screen goes some stupid purple like pixle type crap and i can barely make out that its complaining about not being able to run in 32bit mode...i'm using ubuntu 5.10 with cedega 5.0.3 if you guys can help me out it would be much appreciated :)
ragarth Doolittle
Registered User
Join date: 18 Nov 2005
Posts: 28
01-05-2006 21:32
TBA Lardner, did you install the hardware acceleration drivers?
Run glxgears from a command prompt, see if it gives you frame rates, if it doesn's give frame rates then play an OpenGL game like Slune and see what happens.