Author Topic: XScreensaver 4.15  (Read 3452 times)

jgraves

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://
XScreensaver 4.15
« 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

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

You may want to select your favorite hacks and delete the rest.  They can be quite big.

Have fun.

-John

time

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://www.trustice.com
XScreensaver 4.15
« Reply #1 on: May 26, 2004, 09:11:09 pm »
brilliant!
Zaurus SL-C860 / pdaXrom

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
XScreensaver 4.15
« Reply #2 on: August 19, 2004, 07:29:03 am »
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
XScreensaver 4.15
« Reply #3 on: August 19, 2004, 07:41:22 am »
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 )
« Last Edit: August 19, 2004, 07:55:04 am by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
XScreensaver 4.15
« Reply #4 on: August 19, 2004, 07:58:22 am »
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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
XScreensaver 4.15
« Reply #5 on: August 19, 2004, 09:41:12 am »
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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
XScreensaver 4.15
« Reply #6 on: August 19, 2004, 05:10:37 pm »
I removed zaurus and re-added 'him' with a home directory and despite this it still won't work even using sudo like so:


Code: [Select]
# 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

jgraves

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://
XScreensaver 4.15
« Reply #7 on: September 15, 2004, 02:36:33 am »
Quote
...
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

CoreyC

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
    • http://
XScreensaver 4.15
« Reply #8 on: October 05, 2004, 01:31:55 am »
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:

Code: [Select]
xhost +local: &
« Last Edit: October 05, 2004, 01:32:10 am by CoreyC »