justin bengtson wrote:

> 3.  can anyone tell me how to _properly_ add a new user (and view
> their stats) using console tools?  i useradd-ed "justin" and tried
> changing the password and logging in.  it's always invalid.

"and view their stats":

        grep fred /etc/passwd /etc/group /etc/shadow
        finger -l fred
        ls -a ~fred
        
What other stats do you want to see?

> 4.  "startx" starts up the X server and then quits to the console.
> "xinit" starts up the X server and displays a "login" xterm.  i can
> start blackbox from the xterm, but if i close the xterm, the server
> dies.  i have a feeling this is all tied into the xinitrc, but i'm
> not sure.  any insights?

Let me try to answer this one again.

If you put this into ~/.xinitrc:

        #!/bin/sh
        xterm &
        xclock &
        xlogo &
        twm

Then xinit will start an xterm, an xclock, an xlogo, and a twm window
manager.  You can kill the visible clients at any time, but the X
session won't be over until you kill twm.

Generally, the window manager is the right client to wait on.

Another way to write same, so that twm is running before the other
clients, is this.

        #!/bin/sh
        twm &                   # put twm in background
        sleep 2                 # plenty of time for twm to start
        (xterm &)               # start in subshell so we can't wait on it
        (xclock &)              # ditto
        (xlogo &)               # ditto ditto
        wait                    # wait for twm to exit

Is that what you wanted to know?

-- 
Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     [EMAIL PROTECTED]

Reply via email to