Tiny Core Extensions > TCE Q&A Forum
[SOLVED] Xorg.tcz Fatal server error -- can't open /var/log/Xorg.0.log
Juanito:
As you might have guessed, I'm not in front of a linux machine at the moment, but I'm now reasonably sure the issue is that /usr/local/bin/Xorg needs to be set uid (this allows a normal user to run an application with root privileges) and it is not in the tcz extension you have.
You cannot change anything with the tcz loaded as it is read-only.
Depending on how deeply you want to get into this, you could try to make a new tcz extension out of the tce extension you have, or you could wait for curaga to see this and give his feedback.
kagashe:
--- Quote from: Juanito on December 11, 2008, 08:14:47 AM ---Depending on how deeply you want to get into this, you could try to make a new tcz extension out of the tce extension you have, or you could wait for curaga to see this and give his feedback.
--- End quote ---
Please tell me where to get tce2tcz.sh script and how to convert Xorg.tce into tcz using it.
kagashe
Juanito:
The tce2tcz.sh script is included with tinycore so you should just be able to type "tce2tcz.sh" and it will (probably) tell you what to do.
Otherwise
--- Code: ---$ tce-load /path-to-file/cramfs-utils.tce
$ mkdir /tmp/pkg
$ cp /path-to-file/Xorg-7.4.tce /tmp/pkg/Xorg-7.4.tar.gz
$ cd /tmp/pkg
$ sudo tar xzf Xorg-7.4.tar.gz
$ sudo rm Xorg-7.4.tar.gz
[check /tmp/pkg/usr/local/bin/Xorg has set uid]
[if not, $sudo chmod +s usr/local/bin/Xorg]
$ cd ..
$ sudo mkfs.cramfs pkg/ Xorg-7.4.tcz
$ sudo chown tc:staff Xorg-7.4.tcz
$ mv Xorg-7.4.tcz /path-to-safe-place
$ tce-load /path-to-safe-place/Xorg-7.4.tcz
--- End code ---
kagashe:
--- Quote from: Juanito on December 11, 2008, 08:34:53 AM ---The tce2tcz.sh script is included with tinycore so you should just be able to type "tce2tcz.sh" and it will (probably) tell you what to do.
Otherwise
--- Code: ---$ tce-load /path-to-file/cramfs-utils.tce
$ mkdir /tmp/pkg
$ cp /path-to-file/Xorg-7.4.tce /tmp/pkg/Xorg-7.4.tar.gz
$ cd /tmp/pkg
$ sudo tar xzf Xorg-7.4.tar.gz
$ sudo rm Xorg-7.4.tar.gz
[check /tmp/pkg/usr/local/bin/Xorg has set uid]
[if not, $sudo chmod +s usr/local/bin/Xorg]
$ cd ..
$ sudo mkfs.cramfs pkg/ Xorg-7.4.tcz
$ sudo chown tc:staff Xorg-7.4.tcz
$ mv Xorg-7.4.tcz /path-to-safe-place
$ tce-load /path-to-safe-place/Xorg-7.4.tcz
--- End code ---
--- End quote ---
I could not find the script but followed your instructions step by step and now running on Xorg-7.4.tcz. Thank you.
There is considerable reduction in memory compared to tce. I will follow your other instruction and trim Xorg further.
Yes. I confirm that I had to use "$sudo chmod +s usr/local/bin/Xorg" to change it.
kagashe
kagashe:
--- Quote from: Juanito on December 11, 2008, 07:05:55 AM ---If you take Xorg-7.4.tce and edit out all the drivers (and Xvesa, Xfbdev?) you don't need, you can significantly reduce the size of the extension.
In doing the above I reduced the size to 10.5MB for the tce and 12MB for the tcz. These sizes include the large intel drm drivers, if you don't use drm, you could probably drop another 1-2MB
--- End quote ---
Where are the drivers located in extracted Xorg-7.4.tgz?
kagashe
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version