Tiny Core Extensions > TCE Q&A Forum

Xorg.tce ok as /tce but on /tclocal Can't open /var/log/Xorg.0.log message.

<< < (2/2)

Jason W:
kagashe,
Did you try the /usr/local approach for graphics modules listed in this thread?

http://forum.tinycorelinux.net/index.php?topic=152.0

They should stay installed after reboot with this method.  I tried it for the graphics-2.6.26.tcem and it works here.

JW

kagashe:

--- Quote from: Juanito on December 17, 2008, 09:16:17 AM ---If you try this, what do you get:
--- Code: ---$ which Xorg
--- End code ---

--- End quote ---
/usr/local/bin/Xorg
Even normal Xorg gets installed in /usr/local/bin so how it can be different. Anyway I have checked it.and it is ok.

--- Quote from: Jason W on December 17, 2008, 09:19:56 AM ---kagashe,
Did you try the /usr/local approach for graphics modules listed in this thread?

http://forum.tinycorelinux.net/index.php?topic=152.0

They should stay installed after reboot with this method.  I tried it for the graphics-2.6.26.tcem and it works here.

JW


--- End quote ---
I have done it now and the modules are installed in /usr/local/lib

But I am getting:

--- Quote ---can't open /var/log/Xorg.0.log
--- End quote ---
inspite of /usr/local/bin/Xorg is suid.

Please note that the partition as a whole is getting mounted at /mnt/hdx (for backup) and again /tclocal which is on same partition is getting mounted at /usr/local

Could it make any difference?

kagashe

kagashe:
I have googled for the error:

--- Quote ---xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
--- End quote ---
and got many pages. One page is DSL Tips and Tricks :: A quick guide on compiling XOrg 7.0 on DSL which looks related to our Xorg.

This is a long page and if you search for the error "xf86EnableIOPorts" on the page you can see the mail.

kagashe

curaga:
Just now revisiting this, I felt struck by lightning :p
Pretty sure I know where the fault is.

Could you try to apply this patch to /etc/init.d/tc-config? It's against TC 1.1.

--- Quote ------ tc-config   2009-02-27 17:34:08.000000000 +0200
+++ tc-config.new   2009-02-27 17:37:30.000000000 +0200
@@ -235,18 +235,18 @@
    wait $fstab_pid
    if [ -n "$LOCAL" ]; then
       LOCAL_DEVICE="${LOCAL%%/*}"
-      mount /mnt/"$LOCAL_DEVICE"
+      mount /mnt/"$LOCAL_DEVICE" -o suid
       if [ "$?" == 0 ]; then
          [ -d /mnt/"$LOCAL_DEVICE"/tclocal ] && mount --bind /mnt/"$LOCAL_DEVICE"/tclocal /usr/local/ && LOCAL_READY=1
-         [ -z "$LOCAL_READY" ] &&  [ -f /mnt/"$LOCAL_DEVICE"/tclocal ] && mount -o loop /mnt/"$LOCAL_DEVICE"/tclocal /usr/local/ && LOCAL_READY=1
+         [ -z "$LOCAL_READY" ] &&  [ -f /mnt/"$LOCAL_DEVICE"/tclocal ] && mount -o loop,suid /mnt/"$LOCAL_DEVICE"/tclocal /usr/local/ && LOCAL_READY=1
          [ -z "$LOCAL_READY" ] &&  mkdir /mnt/"$LOCAL_DEVICE"/tclocal && mount --bind /mnt/"$LOCAL_DEVICE"/tclocal /usr/local/
       fi
    else
       LOCAL_DEVICE="$(autoscan 'tclocal' 'd')"
       if [ -n "$LOCAL_DEVICE" ]; then
-        mount /mnt/"$LOCAL_DEVICE" && mount --bind /mnt/"$LOCAL_DEVICE"/tclocal /usr/local
+        mount /mnt/"$LOCAL_DEVICE" -o suid && mount --bind /mnt/"$LOCAL_DEVICE"/tclocal /usr/local
      else LOCAL_DEVICE="$(autoscan 'tclocal' 'f')"
-        [ -n "$LOCAL_DEVICE" ] && mount /mnt/"$LOCAL_DEVICE" && mount -o loop /mnt/"$LOCAL_DEVICE"/tclocal /usr/local
+        [ -n "$LOCAL_DEVICE" ] && mount /mnt/"$LOCAL_DEVICE" && mount -o loop,suid /mnt/"$LOCAL_DEVICE"/tclocal /usr/local
      fi
    fi
    # Final test for /usr/local mount and call setup routines for libraries, modules, and menu.
--- End quote ---
Downloadable version:
http://www.ziddu.com/download/3663010/tclocal.patch.gz.html

I think the cause is that by default the SUID bit is not honored, this should force it on with the tclocal mounts.

Navigation

[0] Message Index

[*] Previous page

Go to full version