Linux MS DOS discussions
 help / color / mirror / Atom feed
* start dosemu automaticly with /etc/rc.local at bootup
@ 2006-11-30 15:03 Lars Johannes
  2006-11-30 20:39 ` Mike McCarty
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Johannes @ 2006-11-30 15:03 UTC (permalink / raw)
  To: linux-msdos

Hi,

i want dosemu starting automaticly at bootup. I tried different thinks, but 
everytime i bootup it asked me to 'yes' a disclaimer. The manuel start after 
login (local user or root) of dosemu works perfect, it asked me only once and 
then it works. 

I tried the following in /etc/rc.local

dosemu
- does not work

dosemu -quiet
sleep 15
- does not work, the input of yes and ENTER in the 15 seconds is not 
recognised

dosemu < yes.txt
yes.txt once with yes and a new Line and once with
yes.txt with yes\n\r
- does not work

dosemu -input 'yes\r\n'  
- does not work

dosemu -s -quiet
- does not work

sudo -u <localusername> dosemu
- does not work

Does anyone have a suggestion?

Regards,
Lars

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: start dosemu automaticly with /etc/rc.local at bootup
  2006-11-30 15:03 start dosemu automaticly with /etc/rc.local at bootup Lars Johannes
@ 2006-11-30 20:39 ` Mike McCarty
  0 siblings, 0 replies; 2+ messages in thread
From: Mike McCarty @ 2006-11-30 20:39 UTC (permalink / raw)
  To: linux-msdos

Lars Johannes wrote:
> Hi,
> 
> i want dosemu starting automaticly at bootup. I tried different thinks, but 
> everytime i bootup it asked me to 'yes' a disclaimer. The manuel start after 
> login (local user or root) of dosemu works perfect, it asked me only once and 
> then it works. 

I am not a dosemu expert. I use it only occasionally.

I have a little script to start dosemu so I can use the
brilliant colors normally used with DOS.

I use

xterm -pc -fg white -bg black -geometry 80x25 -e dosemu &

and never get a prompt for confirmation. The possibility
I see is a line in /usr/local/bin/dosemu (or wherever
you installed it) which asks for
confirmation for using a proprietary (i.e. MSDOS) DOS.
If you look for this:
-----------------------------------------------------
   if [ -z "$PROPRIETARY" ]; then
     (cd $BOOT_DIR_PATH
       tar -xzf $SYSTEM_INSTALL_PATH/dosemu-freedos-bin.tgz
     )
   else
     echo "
   The DOSEMU part of the proprietary installation has been done.
 

   Please make sure that you have a bootable DOS in '$PROPRIETARY'.
   Read the documentation for details on what it must contain.
   You should also install a symbolic link to or make a copy of the files in
   $SYSTEM_INSTALL_PATH/commands
   in order to make the DOSEMU support commands available within 
$PROPRIETARY.
 

   Type ENTER to confirm or Ctrl-C to abort
"
     read x
   fi
------------------------------------------------------

you may find the exact string you are looking for. If this
is it, then you may simply comment the "read x" line, like
this:

# Commented so we can bypass the confirmation
# when starting at bootup
#  read x


I suggest you use

$ which dosemu

to find out where you installed, and then edit the script.

[snip]



Mike
-- 
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-30 20:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-30 15:03 start dosemu automaticly with /etc/rc.local at bootup Lars Johannes
2006-11-30 20:39 ` Mike McCarty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox