You are not logged in.
Pages: 1
Topic closed
I'm building a small video player for my kids, and it's got a hard on/off switch. Since the whole thing is booting off a small CF card, and since the device isn't doing anything but executing a single program in xorg, I'd like to just keep everything read only so it won't do a FS check every time it's flipped on. Unfortunately I haven't done much with X like this. When I do it now, I get errors about locking the .Xauthority file, and also for moving the log around. Does anyone have suggestions on how to run xorg in a read only setup like this?
Offline
Well, I figured this out. I'm mounting /var as tmpfs type and this fixed it. THanks for the help?
Offline
Mounting the entire /var as tmpfs might be a bit overkill as /var contains a bunch of other files as well. You could change your xserverrc to pass the `-logfile` option to X to have it put its logfiles in /tmp instead.
(Also you could try setting the XAUTHORITY env var if you want to actually use xauth, and have the Xauthority file created in /tmp as well. But I don't think you need to bother with that at all in your setup.)
Last edited by Blµb (2014-03-30 09:30:27)
You know you're paranoid when you start thinking random letters while typing a password.
A good post about vim
Python has no multithreading.
Offline
Not done much with X before Blµb. Is there some documentation on how to do that?
Offline
So far no luck. I mapped /var/log to a tmpfs but modifying .xinitrc to write to /tmp doesn't seem to work. When I use the tmpfs option X will start but all I get is a black screen without mouse.
Offline
can you post your:
uname -a
xorg.log
fstab
lsblk -f
xorg.conf
Offline
Sure:
uname -a:
Linux localhost 3.14.1-1-ARCH #1 SMP PREEMPT Mon Apr 14 21:01:08 CEST 2014 i686 GNU/Linux
xorg: http://pastebin.com/B4P0dhfu
fstab:
/dev/sda1 / ext2 ro,relatime 0 1
tempfs /var/log tmpfs nodev,nosuid,size=4M 0 0
tempfs /arcade tmpfs nodev,nosuid,size=1M 0 0
lsblk:
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
|-sda1 ext2 6b134659-ca83-4572-bb59-35dfa9d6b1a5 /
`-sda2 vfat FE7A-5F5B
I don't think there's an xorg.conf.
Last edited by kruuth (2014-05-15 17:43:04)
Offline
Could you put that in code tags as per the Etiquette
Offline
Fixed. Sorry. Been a loooong day.
Offline
Okay, what sort of device are you using ? Is it a Raspberry Pi sort of system or is it a PC? Just curious really. Also if you would like to stop the fsck then all you need to do is to edit your Fstab like this.
/dev/sda1 / ext2 ro,relatime 0 0
I also would change the labelling of /dev/sda1 to a UUID which you can find out with lsblk -f so it would be like
UUID=<partition root UUID number> / ext2 ro,relatime 0 0
Also I would update your system 3.14.4-1 is out in the repos now as well.
finally for now your Xorg.log says the server has terminated successfully which means that It has done the job it needs to do. If there is an error or problem you would get an error message at the end.
[ 433.051] (EE) Server terminated successfully (0). Closing log file.
So the question is, what exactly you want xorg to do, I know you said to run a simple program as a media player but is that a straight executed program ? or do you wanted to load a WM like openbox which then loads the program ? You should post your ~/.xinitrc
Edit :: Also any reason why the mounts on your tmpfs is so small ?
tempfs /var/log tmpfs nodev,nosuid,size=4M 0 0
tempfs /arcade tmpfs nodev,nosuid,size=1M 0 0
Last edited by Kartious (2014-05-16 07:58:10)
Offline
(hope this is not considered as necro post ...)
I have the same problem. I am using : Cubieboard2. I am trying to make the filesystem (that sit on a USB flash drive) read only.
When the root fs is read-only, somehow the Xserver and stop. I can only do a ssh to it. I don't know what stop/kill the Xserver. Failed to create some file somewhere ???
When the root fs is read/write, everything work fine, it boot to Xserver and stay there.
Is it related to Xauthority file ? In my user account .bashrc and .profile, I put :
export XAUTHORITY="/tmp/.Xauthority"
(/tmp is mounted as tmpfs)
PS: I use cubian distro, which is a bit different than Arch but the basic still the same ... Anybody have an idea why Xserver die ?
Offline
Offline
Pages: 1
Topic closed