OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: jgraves on May 26, 2004, 04:10:08 pm
-
I have built and uploaded xscreensaver for the pdaXrom:
http://www.pdaxrom.org/ipk_feed.php?menuid...unstableipkfeed (http://www.pdaxrom.org/ipk_feed.php?menuid=11&getfile=xscreensaver_4.15_arm.ipk&ipkname=xscreensaver&ipktable=unstableipkfeed)
Instructions from the installer:
Make sure you\'ve installed sudo!!!
Configuration:
Add the following line somewhere (before openbox) in your /home/root/.xinitrc:
sudo -u zaurus xscreensaver -nosplash&
This will start the xscreensaver server whenever you start X
If you want to be able to lock the screen, then set a password on the zaurus user:
# passwd zaurus
only some of the \'hacks\' (screen savers) have been included here. Install the others
if you like. They can take up a lot of space. So I recommend only installing the
ones you really like.
Run the config from the System tools to make changes.
------------------------
I\'ve only included a few hacks (screen savers) in this ipk. I didn\'t want it to be too big. So, I\'ve also uploaded a bunch of other hacks:
http://www.pdaxrom.org/ipk_feed.php?menuid...unstableipkfeed (http://www.pdaxrom.org/ipk_feed.php?menuid=11&getfile=xscreensaver-hacks_4.15_arm.ipk&ipkname=xscreensaver-hacks&ipktable=unstableipkfeed)
You may want to select your favorite hacks and delete the rest. They can be quite big.
Have fun.
-John
-
brilliant!
-
I've not tried to sudo from root to zaurus to run this yet, but I assumed that su'ing to zaurus and then running it would be the same.
Running as root it refuses (which is fair enough)
Running as zaurus it says it can't open display :0.0, which is presumably caused by insufficient privileges.
Any ideas as to what I need to edit to let zaurus open display :0.0?
Cheers,
Si
-
If you 'su -' you will take on the home directory of root.
If you 'su' or 'sudo' then typically you won't.
Authorisation is controlled by the 'MIT-MAGIC-COOKIE' value stored in ~/.Xauthority.
This is why sudo will probably work whilst su probably won't.
Of course you are doing this in reverse with 'sudo -u' and I'm guessing that you are logged in as root and want to retain access to root's copy of .Xauthority.
Try it as suggested, it sounds like it should work and makes sense as to why it doesn't when you su.
BTW: Don't copy .Xauthority to another home directory in the hope of fixing it. .Xauthority is normally generated on the fly when you startx (it generates the cookies using mkcookie).
Read the xauth man pages for more info (you won't find them on your Z )
-
Okay, I didn't have sudo to hand hence the roundabout method.
I also note that I created zaurus with adduser -H so there's no home directory anyway which may have caused problems. I'll create a home directory and try again (out of interest) then go for sudo.
Cheers for the info,
Si
-
actually, "su -" will simulate a login, so start up files are used...
and you will end up in the default dir of the result.
Scott
-
I removed zaurus and re-added 'him' with a home directory and despite this it still won't work even using sudo like so:
# sudo -u zaurus xscreensaver&
[1] 2060
# xscreensaver: couldn't get password of "zaurus"
xscreensaver: warning: $DISPLAY is not set: defaulting to ":0.0".
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
xscreensaver: Can't open display: :0.0
xscreensaver: running as zaurus/zaurus (500/500)
xscreensaver: Errors at startup are usually authorization problems.
But you're not logging in as root (good!) so something
else must be wrong. Did you read the manual and the FAQ?
http://www.jwz.org/xscreensaver/faq.html
http://www.jwz.org/xscreensaver/man.html
[1]+ Exit 1 sudo -u zaurus xscreensaver
Any suggestions?
In any case I suspect that this will be a fruitless effort as the (unsuccessful) result of running xscreensaver-demo is:
xscreensaver: undefined symbol: __divsi3
This seems to be a common thread using anything not specificallc ompiled for the pdaXrom 1.1.0 release, though I presume unrelated to the permissions problems above.
Si
-
...
Any suggestions?
In any case I suspect that this will be a fruitless effort as the (unsuccessful) result of running xscreensaver-demo is:
xscreensaver: undefined symbol: __divsi3
...
I've rebuilt xscreensaver and hacks for the 1.1.0RC3 rom.
-John
-
I've installed this on RC3 and it runs w/o any problem.
I was getting the same error lardman was though, but after about an hour of googling I found the solution...
In .xinitrc , insert the following line BEFORE the line that you added to start xscreensaver:
xhost +local: &