Skip to contentSkip to conversation

Running dosemu as a user

DISCUSSION Victor Warner 2 participants 4 messages Dec 29, 2005 – Dec 30, 2005

lore
Share & tools
lore
#0 lore raw

unable to run Dosemu as a user. When I try to run xdosemu or dosemu as a
user I get
the following message: "bash: dosemu: command not found".

There no are problems running from root (eg su from Konsole). A copy of MSDOS 6.22
is installed in /home/victor/dos. Running Linspire 5.0.59

I compiled from source code. After compilation Dosemu (1.3.1, 1.3.2 or 1.3.3) is placed in

1. /etc/dosemu (containing dosemu.conf, dosemu.users, global.conf)
2. /usr/local/bin (containing dosemu.bin etc)
3. /usr/local/share (containing commands directory, xfonts directory, freedos directory etc).
4. /root/.dosemu/ (containing drives directory, run directory, etc)

I have looked through all the documentation (INSTALL, readme.txt, etc) but cannot see the
specific command or setting to deal with this (or cannot understand significance of what is
written) (tried adding "victor c_all" to dosemu.users but the problem still present).

Help in solving this would be gratefully received.

Content of boot.log and /root/.dosemurc below

Victor Warner

/root/.dosemurc
$_hdimage = "/home/victor/dos"
$_printer_command = "lpr -l"
$_printer = "hplj3030"
$_layout="uk"
$_X_font="vga12x30"

/root/.dosemu/boot.log

CONF: config variable parser_version_3 set
CONF: config variable c_system set
CONF: Parsing built-in dosemu.conf file.
CONF: config variable version_3_style_used set
CONF: Parsing built-in global.conf file.
CONF: config variable version_3_style_used unset
CONF: config variable version_3_style_used set
CONF: opened include file /etc/dosemu/dosemu.conf
CONF: closed include file /etc/dosemu/dosemu.conf
CONF: opened include file /root/.dosemurc
CONF: closed include file /root/.dosemurc
CONF: config variable skip_dosrc set
CONF: mapping driver = 'auto'
debug flags: -a+cw
CONF: Disabling use of pentium timer
CONF: dosbanner on
CONF: timer freq=18, update=54925
CONF: CPU set to 386
CONF: 8192k bytes XMS memory
CONF: 2048k bytes EMS memory
CONF: EMS-frame = 0xe000
CONF: DPMI-Server on
CONF: PM DOS API Translator on
CONF: dosemu running on _xterm
SER: directory /var/lock namestub LCK.. binary No
MOUSE: no device specified, type 0 using internaldriver: yes,
emulate3buttons: no
baudrate: 0
CONF: Keyboard-layout keyb-user
CONF: Keyboard-layout uk
device: /dev/fd0 type 2 h: 0 s: 0 t: 0 floppy A:
CONF: fastfloppy = 1
CONF: IPX support off
CONF(LPT0) f: (null) c: lpr -l o: -Phplj3030 t: 20 port: 0
CONF: not allowing speaker port access
CONF: Packet Driver disabled.
device: /home/victor/dos type 4 h: -1 s: -1 t: -1 drive C:
CONF: config variable c_system unset
CONF: running exclusively as ROOT: uid=0 (cached 0) gid=0 (cached 0) DBG_FD already set
DOSEMU-1.3.1.0 is coming up on Linux version 2.6.10
CONF: reserving 640Kb at 0x00000 for 'd' (Base DOS memory (first 640K))
CONF: reserving 64Kb at 0xF0000 for 'r' (Dosemu reserved area)
CPU: Stack bottom 0xbfffe000, top 0xc0000000, esp=0xbffff6c0 major = 136 minor = 1
CONF: reserving 128Kb at 0xA0000 for 'v' (Video memory) SERIAL $Header: /cvsroot/dosemu/dosemu/src/base/serial/ser_init.c,v 1.9 2004/05/07
13:49:45 stsp Exp $
CONF: reserving 64Kb at 0xE0000 for 'E' (EMS page frame)
TIME: using 9154 usec for updating ALRM timer
DOS termination requested
leavedos(0|0x0) called - shutting down

#1 lore raw
Quoted 3 lines · Victor Warner

unable to run Dosemu as a user. When I try to run xdosemu or dosemu as
a user I get
the following message: "bash: dosemu: command not found".

This indicates a likely error in your PATH variable. BASH uses the PATH variable to search for command files.

Quoted 7 lines

There no are problems running from root (eg su from Konsole). A copy of MSDOS 6.22 is installed in /home/victor/dos. Running Linspire 5.0.59

I compiled from source code. After compilation Dosemu (1.3.1, 1.3.2 or 1.3.3) is placed in

1. /etc/dosemu (containing dosemu.conf, dosemu.users, global.conf)
2. /usr/local/bin (containing dosemu.bin etc)

You probably need to add /usr/local/bin to your PATH variable. A possible fix is to add in .profile, .bashrc, or wherever you prefer a line like:

export PATH=$PATH:/usr/local/bin

You may need to add other things to the PATH variable.

[snip]

Quoted 1 line

Help in solving this would be gratefully received.

HTH.

[snip]

Mike

Signature · 5 lines
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!
#2 lore raw

Thank you for your reply but this is the first time I have had to do this type of thing..

There is only only .profile (in /root) but several .bashrc (/root, /home/victor,
/etc/bash, etc).

In which one of the files do I add "export PATH=$PATH:/usr/local/bin"?

Any further help would be very gratefully received.

Victor Warner

#3 lore raw
Quoted 1 line · Victor Warner

Thank you for your reply but this is the first time I have had to do this type of thing..

I had already managed to figure that out :-)

Quoted 4 lines

There is only only .profile (in /root) but several .bashrc (/root, /home/victor,
/etc/bash, etc).

In which one of the files do I add "export PATH=$PATH:/usr/local/bin"?

For whichever user it is that is having the problem.

Quoted 1 line

Any further help would be very gratefully received.

I presume that you log in as user "victor". In that case, you put the export line in

/home/victor/.bashrc

If you also log in as "vwarner", then you would also put it into

/home/vwarner/.bashrc

This is only a convention, and you could put it elsewhere.

Here is how this works:

When you enter a command like

$ ls

your shell (bash in this case) first looks to see if it "knows" this command itself. In this case (ls) it does not. It then looks for an environment variable (just some information you have given to bash and given a name) for a list of directories to search for a file named "ls". The name of the environment variable is "PATH". The entries in the PATH variable are separated by the colon character (":"). To query what variables you have told bash about, you use the "set" command, which bash knows directly. Like this:

$ set

You'll see a bunch of stuff come out. Probably more than you want. So you can use "less" to view it. Like this:

$ set | less

Or if you want to query your PATH, you can use grep, like this:

$ set | grep PATH

Mine looks like this...

$ set | grep PATH
PATH=/home/jmccarty/bin:/home/jmccarty/games/usr/games:/home/jmccarty/devtools/assemblers/asxxxx/asxv4pxx/asxmak/linux/exe:/usr/local/lib/lcc:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin

So, when I type in "ls fred", bash first sees that it doesn't know about "ls" directly, and it then looks for /home/jmccarty/bin/ls. It finds nothing. Then it looks for /home/jmccarty/games/usr/games/ls, and still finds nothing. Then it looks in /home/jmccarty/de... Eventually it looks for /bin/ls, and it finds an executable, which it loads and runs.

To set a variable to a value, use

$ set VARIABLE="value to set"

This sets it only for the shell. To make the variable visible to other programs the shell runs, you need to export it.

$ export VARIABLE

These two commands may be abbreviated into just the export, like this

$ export VARIBLE="value to set VARIABLE to"

Now, to use what is in a variable when setting a variable, use the "$" symbol. Like this:

$ set VAR1="string 1"
$ set VAR2="$VAR1:string 2"

This sets VAR2 to "string 1:string 2". So,

$ export PATH="$PATH:/usr/local/bin"

sets PATH to whatever it already is, followed by a colon and some more information.

It happens that there is a convention that applications use an "rc" file to Read Configuration from. For bash, it is ~/.bashrc, which contains a bunch of commands which bash executes upon startup.

Got it?

I suggest you use

$ man bash
$ info bash

to get more information.

Mike

Signature · 5 lines
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!