AUTO START OPENWIN UPON REBOOT, not LOGIN

AUTO START OPENWIN UPON REBOOT, not LOGIN

Post by Peter D. Smi » Wed, 03 Dec 1997 04:00:00



II am looking for some assistance with this error.  I have modified my
inittab to startup a script that will su and startup openwin.  Files
below:

inittab
---------
ap::sysinit:/sbin/autopush -f /etc/iu.ap
fs::sysinit:/sbin/rcS                   >/dev/console 2>&1
</dev/console
is:3:initdefault:
p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/console 2>&1
s0:0:wait:/sbin/rc0                     >/dev/console 2>&1
</dev/console
s1:1:wait:/usr/sbin/shutdown -y -iS -g0 >/dev/console 2>&1
</dev/console
s2:23:wait:/sbin/rc2                    >/dev/console 2>&1
</dev/console
s3:3:wait:/sbin/rc3                     >/dev/console 2>&1
</dev/console
s5:5:wait:/sbin/rc5                     >/dev/console 2>&1
</dev/console
s6:6:wait:/sbin/rc6                     >/dev/console 2>&1
</dev/console
fw:0:wait:/sbin/uadmin 2 0              >/dev/console 2>&1
</dev/console
of:5:wait:/sbin/uadmin 2 6              >/dev/console 2>&1
</dev/console
rb:6:wait:/sbin/uadmin 2 1              >/dev/console 2>&1
</dev/console
sc:234:respawn:/usr/lib/saf/sac -t 300
co:234:respawn:/export/home/obmigfa/rc.daemon   >/dev/console 2>&1
</dev/console

rc.daemon
-----------------
#!/bin/sh
#
#
#  Daemon startup for the MIGFA software
#
#
echo "Switch to obmigfa"
/bin/su obmigfa -c "/usr/openwin/bin/openwin"

The following is the erros I am getting:
-----------------------------------------------------------
Graphics adapter device /dev/fb is of unknown type

Fatal server error:
InitOutput:Error loading module for /dev/fb

/usr/openwin/bin/xinit: Server error.

Has anyone ran into this before?  If so, what can I do to fix it?

 
 
 

AUTO START OPENWIN UPON REBOOT, not LOGIN

Post by j carrol » Fri, 05 Dec 1997 04:00:00



> II am looking for some assistance with this error.  I have modified my
> inittab to startup a script that will su and startup openwin.  Files
> below:

Peter,

Have you considered using the real SUN startup methods?  Try looking
into the rc?.d directories.  Typically in Solareis you don't kick off
stuff through inittab any more.  You place the proper script in
/etc/init.d
and link it (hard or soft) to a script that starts with "S" in either
/etc/rc3.d or /etc/rc2.d.

Jesse

 
 
 

AUTO START OPENWIN UPON REBOOT, not LOGIN

Post by Frank Heime » Sat, 06 Dec 1997 04:00:00



> I am looking for some assistance with this error.  I have modified my
> inittab to startup a script that will su and startup openwin.  Files
> below:

> inittab
> ---------
> [...]
> s2:23:wait:/sbin/rc2                    >/dev/console 2>&1</dev/console
> co:234:respawn:/export/home/obmigfa/rc.daemon   >/dev/console 2>&1</dev/console
> rc.daemon
> -----------------
> #!/bin/sh
> /bin/su obmigfa -c "/usr/openwin/bin/openwin"
> Graphics adapter device /dev/fb is of unknown type

The problem is that your machine simply isn't configured at the point
your tiny little script attempts to run openwin.

I haven't messed around with startup files, but consider the rc2-line,
for example. /etc/rc2 executes all commands in /etc/rc2.d/* in
alphanumeric order and these do a lot of setup work.

You're probably best off, if you just move your rc.daemon script to
/etc/rc2.d/S77rc_daemon which will cause it to be executed last
during normal startup (just after S76nscd)

adios,
      Frank Heimes
________________________________________________________________________
FhG-IITB,     \_____  phone: +49(0)721/6091-424  fax: +49(0)721/6091-413

D-76131 Karlsruhe, Germany  \__________ http://i21www.ira.uka.de/~heimes

 
 
 

1. AUTO START OPENWIN UPON LOGIN

II am looking for some assistance with this error.  I have modified my
inittab to startup a script that will su and startup openwin.  Files
below:

inittab
---------
ap::sysinit:/sbin/autopush -f /etc/iu.ap
fs::sysinit:/sbin/rcS                   >/dev/console 2>&1
</dev/console
is:3:initdefault:
p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/console 2>&1
s0:0:wait:/sbin/rc0                     >/dev/console 2>&1
</dev/console
s1:1:wait:/usr/sbin/shutdown -y -iS -g0 >/dev/console 2>&1
</dev/console
s2:23:wait:/sbin/rc2                    >/dev/console 2>&1
</dev/console
s3:3:wait:/sbin/rc3                     >/dev/console 2>&1
</dev/console
s5:5:wait:/sbin/rc5                     >/dev/console 2>&1
</dev/console
s6:6:wait:/sbin/rc6                     >/dev/console 2>&1
</dev/console
fw:0:wait:/sbin/uadmin 2 0              >/dev/console 2>&1
</dev/console
of:5:wait:/sbin/uadmin 2 6              >/dev/console 2>&1
</dev/console
rb:6:wait:/sbin/uadmin 2 1              >/dev/console 2>&1
</dev/console
sc:234:respawn:/usr/lib/saf/sac -t 300
co:234:respawn:/export/home/obmigfa/rc.daemon   >/dev/console 2>&1
</dev/console

rc.daemon
-----------------
#!/bin/sh
#
#
#  Daemon startup for the MIGFA software
#
#
echo "Switch to obmigfa"
/bin/su obmigfa -c "/usr/openwin/bin/openwin"

The following is the erros I am getting:
-----------------------------------------------------------
Graphics adapter device /dev/fb is of unknown type

Fatal server error:
InitOutput:Error loading module for /dev/fb

/usr/openwin/bin/xinit: Server error.

Has anyone ran into this before?  If so, what can I do to fix it?

2. Kernel panic: no init found. Try passing init=option to kernel

3. How can I auto-reboot a SUN, then auto-login, then auto-start a program?

4. loop device problem. How umount? How mkfs?

5. How to auto-reboot a SUN, then auto-login, then auto-start a program?

6. Help with cdrom!!!

7. Auto login upon reboot

8. Dialup Problems, help!

9. Saving My Modem's Auto Answer Setting Upon Reboot Box

10. gnome auto(re)starts many programs upon restarting X

11. how to start apps upon reboot ?

12. How to login user upon reboot

13. Can NOT Install, Reboots Upon First Disk, Please Help :) [Slackware]