Just installed Ubuntu 6.1 and has some "dumb" ques

For everything that's not in any way related to PureBasic. General chat etc...
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Open your xorg.conf file add the following lines and save the file

Section “Extensions”
Option “Composite” “Disable”
EndSection


reboot

PS: My mistake^^
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Ok, done. Before I restart, what does it do? The composite setting.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

It speeds up the desktop but it should work without and you can turn it on again when Fred fixed the problem.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

You don't have to reboot, just logout and press Ctrl+Alt+Backspace. (And be prepared for a messup with your dpi settings...)
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

That didn't work. Now I'm running the live cd.
I got an error when starting the machine about it failed to start the X server.
In the details it said something about incorrect or missing " sign in the section. How can I edit the conf file from the command prompt?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Post by remi_meier »

Not
Section “Extensions”
Option “Composite” “Disable”
EndSection
but
Section "Extensions"
Option "Composite" "Disable"
EndSection
just use gedit or nano to edit the file within the terminal.[/quote]
Athlon64 3700+, 1024MB Ram, Radeon X1600
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Aaa I didn't see the difference at first hehehe.

I tried gedit but it won't start because the X server isn't running. Does nano need the graphics server too?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

no nano doesn't need it and vim does neither
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

If the Ubuntu developers are sane, just type xorgconfig and answer the questions to create a new valid xorg.conf.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Got it fixed now. I typed sudo nano /etc/X11/xorg.conf and corrected the file and restarted. Now PB works like a charm ;)

Thanks for all the help guys :)
BUT, do expect some more lame linux questions in the very near future ;)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

I've tried making a sh file for launching PB

Code: Select all

#!/bin/sh

$ export PUREBASIC_HOME=~/purebasic
$ export PATH=$PUREBASIC_HOME/compilers:$PATH
$ purebasic
but it doesn't work. Nothing happens. What am I doing wrong?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Leave out the $ signs
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Aaa :lol:

That worked. When I click the help menu in the PB editor I get this error "Cannot open the file '~/purebasic/purebasic.help' ! When I click OK the help program opens up but without any contents.



When I try to compile this

Code: Select all

RunProgram("export", "PUREBASIC_HOME=~/purebasic", WorkingDirectory.s)
RunProgram("export", "PATH=$PUREBASIC_HOME/compilers:$PATH", WorkingDirectory.s)
RunProgram("purebasic", Parameter.s, WorkingDirectory.s)
I get the following error: Can't load any OSLibraries! Please re-install PureBasic
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

GeoTrail wrote:When I try to compile this

Code: Select all

RunProgram("export", "PUREBASIC_HOME=~/purebasic", WorkingDirectory.s)
RunProgram("export", "PATH=$PUREBASIC_HOME/compilers:$PATH", WorkingDirectory.s)
RunProgram("purebasic", Parameter.s, WorkingDirectory.s)
I get the following error: Can't load any OSLibraries! Please re-install PureBasic
Pity that RunProgram() PB function is still not perfect for linux, because it is one of the more interesting functions for that OS.
BTW of Ubuntu, i installed KUbuntu 6.10, and as a notice; if you are full that it checks filesystem partitions every time you boot, the solution is to edit /etc/fstab file (set to 0 the last parameters).
Info about that file:
http://en.wikipedia.org/wiki/Fstab
Very good done, but in spanish:
http://es.tldp.org/Manuales-LuCAS/lfs-e ... fstab.html
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

This has nothing to do with RunProgram().
The expansion of environment variables is done by the shell, and running a program
directly does not involve the shell, so this kind of thing will never work.
quidquid Latine dictum sit altum videtur
Post Reply