Page 2 of 3
Posted: Thu Dec 14, 2006 6:34 pm
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^^
Posted: Thu Dec 14, 2006 6:38 pm
by GeoTrail
Ok, done. Before I restart, what does it do? The composite setting.
Posted: Thu Dec 14, 2006 6:40 pm
by Nik
It speeds up the desktop but it should work without and you can turn it on again when Fred fixed the problem.
Posted: Thu Dec 14, 2006 6:51 pm
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...)
Posted: Thu Dec 14, 2006 7:33 pm
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?
Posted: Thu Dec 14, 2006 7:35 pm
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]
Posted: Thu Dec 14, 2006 7:39 pm
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?
Posted: Thu Dec 14, 2006 7:44 pm
by Nik
no nano doesn't need it and vim does neither
Posted: Thu Dec 14, 2006 7:58 pm
by Trond
If the Ubuntu developers are sane, just type xorgconfig and answer the questions to create a new valid xorg.conf.
Posted: Thu Dec 14, 2006 8:49 pm
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

Posted: Thu Dec 14, 2006 9:09 pm
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?
Posted: Thu Dec 14, 2006 9:13 pm
by Nik
Leave out the $ signs
Posted: Thu Dec 14, 2006 11:29 pm
by GeoTrail
Aaa
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
Posted: Sun Dec 24, 2006 1:57 pm
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
Posted: Sun Dec 24, 2006 3:00 pm
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.