Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#94097 - 15/05/2002 11:28 What is userver?
caederus
journeyman

Registered: 18/02/2000
Posts: 51
Loc: UK
Looking in /bin, I see a load of things I recognise, together with the
trivial scripts `ro', `rw', `rwm', `rom' and unexecutable `x'. But
what is `userver'? at 367K, it's big enough to do something substantial.
The usage message isn't too helpful:

userver: usage: userver [-dlL1w02] [-p <file>] [-m <maximum>]
[-R <directory>] [-U <user-spec>] [-C <directory>]
[-t <time-spec>] [-a <token>] <local-address> <command> [<arg> ...]

but it suggests some sort of remote file serving capability, as do some of
the internal strings. All my attempts to run it produce one of two error messages:
opening socket: Unrecognized UNSN protocol name
opening socket: Unsupported protocol combination in UNSN

Any ideas? I'm surprised it hasn't been mentioned before, but the bbs search
turns up only a post with a list of the contents of /bin.
_________________________
http://ro.nu/ Robin O'Leary

Top
#94098 - 15/05/2002 11:45 Re: What is userver? [Re: caederus]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
You should try www.Google.com once in a while. It's pretty useful.

http://people.redhat.com/johnsonm/lad/src/userver.c.html
_________________________
Tony Fabris

Top
#94099 - 15/05/2002 12:11 Re: What is userver? [Re: tfabris]
caederus
journeyman

Registered: 18/02/2000
Posts: 51
Loc: UK
Close, but no cigar.

I had already tried google and found the code snippet you found,
but that program only does unix domain sockets and doesn't have
anything like the complexity of arguments found on the empeg, so it's
probably completely unrelated.

I just found where userver is called: in /empeg/bin/d it is invoked as:
userver -1 -d ip/tcp=9999 tar xf - -C /
This seems to be part of the install or upgrade procedure.

It looks like a very handy tool to have around for bootstrapping
software development. It means we can squirt arbitrary files at
a completely unmodified empeg.
_________________________
http://ro.nu/ Robin O'Leary

Top
#94100 - 15/05/2002 12:16 Re: What is userver? [Re: caederus]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
It looks like a very handy tool to have around for bootstrapping
software development. It means we can squirt arbitrary files at
a completely unmodified empeg.


Cool. Okay, great. Let's do it!
_________________________
Tony Fabris

Top
#94101 - 15/05/2002 12:24 Re: What is userver? [Re: tfabris]
caederus
journeyman

Registered: 18/02/2000
Posts: 51
Loc: UK
It's so easy. On empeg:
/empeg/bin/d
On a machine with netcat installed:
nc my.empeg.addr 9999 < whatever.tar

That's it! The tar file gets unpacked at /
_________________________
http://ro.nu/ Robin O'Leary

Top
#94102 - 15/05/2002 12:36 Re: What is userver? [Re: caederus]
caederus
journeyman

Registered: 18/02/2000
Posts: 51
Loc: UK
And it's a way to do easy backup/restore. On empeg:
userver -1 -d ip/tcp=1234 tar cf - /
On a machine with netcat installed:
nc my.empeg.addr 1234 > backup.tar

To restore, proceed as in my previous post.
/empeg/bin/d
nc my.empeg.addr 9999 < backup.tar
_________________________
http://ro.nu/ Robin O'Leary

Top
#94103 - 16/05/2002 01:51 Re: What is userver? [Re: caederus]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
It looks like a very handy tool to have around for bootstrapping
software development.


Gee, I guess that never occurred to us .

No, seriously, the 'd' script (and the corresponding userver binary) are what we use to put a new player binary on the empeg, to avoid needing to build (and apply) an upgrade file.

One of the targets of the player Makefile is 'dstrip', which tars up the player binary (and fonts and visuals, etc.), and then sends it (using 'uclient') to the player configured in the Makefile.
_________________________
-- roger

Top
#94104 - 16/05/2002 02:53 Re: What is userver? [Re: caederus]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
But what is `userver'? at 367K, it's big enough to do something substantial.

It's a bit like netcat (nc)...

userver [-dlL1w02] [-p <file>] [-m <maximum>] [-R <directory>] [-U <user-spec>] [-C <directory>] [-t <time-spec>] [-a <token>] <local-address> <command> [<arg> ...]

...but aimed at people who don't think nc's command-line syntax is obscure enough.

The package it's from is called libunsn; I think it was written by one of Mike's university friends.

Peter

Top