=============================================================================
(DosLinux) (Version 47) (9-28-97)
This is a version of 'Linux' that can be droped into any dos system,
e.g. msdos, pcdos, opendos, etc. and win95 in dos mode.
=============================================================================
About 11 mbytes compressed...
=============================================================================
ftp://wauug.erols.com/pub/people/kent-robotti/doslinux
ftp> open wauug.erols.com
ftp> cd /pub/people/kent-robotti/doslinux
=============================================================================
The complete system...
doslnx47.exe + doslnx47.r00 - doslnx47.r05 <-The complete linux system...)
zimagei.exe <-You need one of these kernels also, if you have a IDE
hard drive, get this kernel.
zimages.exe <-If you have a SCSI hard drive, get this kernel.)
It runs on kernel 2.0.30...ELF...
It's really kernel pre-2.0.31-8...
The kernel has math-coprocessor support for cpu's 486sx and
below, that don't have a built in coprocessor.
You need at least a 386 CPU to run linux.
The kernel supports CPU'S 386 and up.
It's %100 ELF...
If you ever want to change the kernel above, you can get kernels = zImage
from: ftp://ftp.cdrom.com/pub/linux/slackware/kernels
READ: README.NOW
The directories with the ?.i extension have IDE kernels, and
the ?.s have SCSI kernels.
You could put the zImage in /boot/zimage and put this in linux.bat.
c:\linux\boot\loadlin c:\linux\boot\zimage root=/dev/???? rw
This is the modules directory, the modules must match the kernel-version.
ftp://ftp.cdrom.com/pub/linux/slackware/modules/kernel-version
if you're using kernel-version 2.0.30, the modules must be from 2.0.30 etc.
The modules would go in /lib/modules/kernel-version on doslinux.
~# depmod -a
If you use another kernel above, you may have to change pppd also, because
the pppd with doslinux is from ppp-2.3.1 and the kernels above were probably
compiled with ppp-2.2?.
ftp://ftp.cdrom.com/pub/linux/slackware/slakware/n3?/ppp.tgz
~# mv /usr/sbin/pppd /usr/sbin/pppd.old <-Keep the old pppd in case.)
Just put the pppd from ppp.tgz in: /usr/sbin/pppd
To turn the speaker off|on...
~# speaker off
# speaker on
There is no support for ETHERNET cards or ISDN modems...
You may be able to use a isdn modem, if it's like a regular 28.8 modem etc.
I mean, if it accepts AT commands like a regular modem.
The pppd with doslinux supports these speeds also 230400 and 460800...
I have no experience with isdn so i don't know....
See the end of this readme for a listing of SCSI hosts = controllers
that DosLinux supports.
DosLinux doesn't have X windows or any programs needed for compiling,
i.e. gcc compiler, binutils, the complete libc, etc...
There are compiled elf versions of all the above, so they can
be easily droped into the system...
If you want to install the X Window system, after you install DosLinux
read the /usr/X11R6/install.X and X.config guides, they explain where
to get X and how to install it on DosLinux.
If you want to install the GCC compiler and the other programs
that are required to compile source code, read /usr/doc/GUIDES/
gcc-doslinux.gz.
~# docs <-Press enter on 'gcc-doslinux.gz' to read file, 'q' to exit...)
DosLinux is primarily intended as a way to have outgoing SLIP/PPP
networking under a dos system, by droping into dos a relatively
small linux operating system named doslinux, if you want a more
complete installation of linux, i suggest you get one of the many
linux distributions on cdrom i.e. slackware, redhat, debian, etc...
All the above linux distributions are good, but the only one that
presently "9-28-97" supports the installation of linux on a dos
partition is slackware.
If you want to install some server programs, you can get them from:
ftp://ftp.cdrom.com/pub/linux/slackware/slakware/n6?/tcpip.tgz
You can just unpack it and take what you want from /usr/sbin and put
it in /usr/sbin on doslinux inetd, tcpd, in.telnetd, wu.ftpd, etc.
The file that boots the network server daemons is /etc/rc.d/rc.inet2.
You can get a free version of dos called 'OpenDOS' from...
http://www.caldera.com/dos
You should have at least 8 mb. of Ram = Memory to run doslinux,
you'll also need to create a swap file of at least 4 mb. better
yet 8 mb, this is easy to create...see below...
DosLinux will probably run on as little as 4mb of Ram + 8mb
swap file, but if you install the X window system, you'll need
at least 8mb of ram + 8mb swap file to run X.
If you have 12 mbytes. of memory or more, you probably can get
by without creating a swap file, but it would'nt hurt to
create a 4mb swap file.
This is the hardware DosLinux supports...
1. ISA, EISA, PCI, motherboards...
2. IDE hard drives and IDE/ATAPI cdrom drives...
3. SCSI hard drives and cdrom drives...Complete support list below...
4. Non Atapi/Scsi cdrom drives...See list below...
5. Standard floppy drives, e.g. a: b: etc...
6. Parallel printers...
7. Serial mice... + Non serial mice...See list below...
8. Sound Cards...See list below...
9. PCMCIA support...
10. Intel CPU etc. + Cyrix CPU support...
11. (A)dvanced (P)ower (M)anagement support for laptops...
12. QIC-117, 40/80/3010/3020 Tape Drives...
~# modprobe ftape <-To load QIC-117 etc. tape driver...v.2.11a.)
# rmmod ftape <-To unload tape driver.)
There's also support for Hayes ESP cards if you have one...
~# modprobe esp
Read the /usr/doc/ESP.readme file.
The modem is set to /dev/cua1 = com2, the mouse is set to
/dev/ttyS0 = com1, these can be changed...
cua0 = com1 cua1 = com2 cua2 = com3 cua3 = com4
ttyS0 = com1 ttyS1 = com2 ttyS2 = com3 ttyS3 = com4
~# comset <-Run this script to setup your modem and or mouse.)
Comset will setup serial and other kinds of mice.
If you want to reset the modem, you can use this program to send
commands to the modem, if the modem doesn't respond, you may have
to 'halt' the system, shut the computter off, wait a few seconds
and turn it back on, you should hear the modem click if you listen
closely.
~# modem -c ath0 /dev/modem <-Hangup modem.)
# modem -c atz /dev/modem <-Reset modem.)
# atz <-Script to do the above.)
OK
OK
# mod "at&fw2" <-Shortcut script: Use "" if "&" is part of string.)
OK
# man modem
If you have any pnp devices, you should get 'pnptools.tgz' in the doslinux
directory, and install it like this on doslinux.
~# tar xzvfC pnptools.tgz /
If you have a (p)lug (n) (p)lay modem and it's not recognized by setserial
at boot time, you may have to do this below.
~# pnpdump > /etc/isapnp.conf <-You just need to do this once.)
READ: /usr/doc/isapnpfaq.txt
Take a look at /etc/isapnp.conf to see the IRQ etc. of the modem, if
it was found by pnpdump.
~# isapnp /etc/isapnp.conf
# setserial -v /dev/modem auto_irq autoconfig
Just remove the ### from the end of /etc/rc.d/rc.S to run isapnp at boot
time.
~# man isapnp
isapnp.conf
pnpdump
If you have a PCMCIA modem, you should rename /etc/rc.d/rc.serial = setserial,
because rc.serial will only configure non-removable modems, not pcmcia modems.
~# mv /etc/rc.d/rc.serial /etc/rc.d/rc.serial.off
You'll need the pcmcia package if you have any pcmcia cards modem, cdrom, etc.
ftp://wauug.erols.com/pub/people/kent-robotti/doslinux/modules/pcmcia/
pcmcia.tgz
Unpack it like this, this will unpack it from: /
~# tar xzvfC pcmcia.tgz /
The /etc/rc.d/rc.pcmcia file from pcmcia.tgz will be run at boot time,
then you need to load the module like below.
You could put this in the /etc/rc.d/rc.local file, this is to load
the pcmcia serial modem module.
/sbin/insmod -f /lib/modules/2.0.30/pcmcia/serial_cs.o
READ: /usr/doc/pcmcia/PCMCIA-HOWTO
There are some modules included with pcmcia.tgz, enought for modem serial
support i think, if you need any other pcmcia modules, you can get them
from the modules/pcmcia directory and put them in /lib/modules/2.0.30/pcmcia
on doslinux.
~# test-mouse <-To see if your getting any output from the mouse,
press the left & right mouse buttons to quit.
~# gpm "v.1.13" <-Gpm is a mouse driver, it allows you to cut and paste
# man gpm with a mouse in a console or editor.
~# gpm -t help <-To see mousetype options.)
# gpm -t ms <-For example, to set mousetype to microsoft.)
# gpm -k <-To kill gpm.)
~# pico "v.2.9 with hebrew support."
# e
Ctrl-K = Cut. Ctrl-U = Paste.
~# mcedit
You can also cut & paste in 'mcedit' using these keys...
[Shift]-[Down]-arrow-key to highlight text.
[Shift]-[Delete] to cut highlighted text.
[Shift]-[Insert] to paste.
These are the filesystems DosLinux supports, in the (K)ernel or as (M)odules.
K 1. ext2 <-Standard Linux OS filesystem.
K 2. msdos <-Dos filesystem, msdos, pcdos, opendos, etc.
K 3. umsdos <-This is what allows linux to run on top of Dos.
K 4. vfat + FAT32 <-Win95 filesystems, older fat16 & newer FAT32.
K 5. iso9660 + joliet extensions. <-Standard cdrom filesystem.
M 6. nfs <-Network filesystem, you can use this with slip/ppp.
M 7. smbfs <-Windows Network FS, you can use this with slip/ppp.
M 9. minix <-Minix OS filesystem.
To put a Win95 FAT32 filesystem on a floppy...
~# mkdosfs -v -F32 /dev/fd0 <-Make a FAT32 filesystem.)
# man mkdosfs
Do this to mount your cdrom drive.
~# mount /cdrom
# cd /cdrom
/cdrom# ls
# cd /root <-Change directory.)
# umount /cdrom <-Now unmount and change cd's if you wish.)
# eject <-Eject cd...)
The /dev/hdc is linked with /dev/cdrom, if your ide-atapi cdrom is
detected on another device at bootup time e.g. hdb, hdd, etc. you
can run 'cdset' to change the link.
If you have a scsi cdrom or a non atapi/scsi cdrom, just run
'cdset' and chose the type of cdrom you have and where it's
mounted if asked.
~# cdset
Do this to mount a floppy...
~# mount -t msdos /dev/fd0 /mnt
# mount /floppy <-This also does the above.)
# cd /floppy
/floppy# ls
# cp file.? /root <-Copy file.? from floppy to.> /root
# cp /root/file.? /dev/fd0 <-Copy /root/file.? to floppy.
# cd /root
~# umount /dev/fd0 <-Unmoumt from a different directory.)
Do this to format a floppy...
~# MAKEFLOPPIES <-You need to run this script just once.)
# superformat /dev/fd0 <-To format a 1.44M floppy.)
# superformat /dev/fd1 <-To format a 1.2M floppy.)
The first time you use superformat to format a floppy, it will
tell you to "add something to the /etc/driveprm file".
drive0: deviation=-3440 <-For example if it said this, you would
put this in the /etc/driveprm file,
whatever it says, put it in the file.
Superformat is from fdutils.v.5.2.
~# dmesg | less <-To see bootup messages of the system,
Press 'q' to quit. and the hardware that was detected.)
~# ls -a <-To see the contents of a directory, including the hidden files.)
# lsp <-To view large dir. one screenfull at a time, press Q to quit.)
# lsp -l
==============================================================================
DosLinux has full SLIP/PPP networking support...PPP.v.2.3.1...
==============================================================================
This is some of the software DosLinux contains...
# slrn -C -n <-Fast newsreader, perfect for a slip/ppp connection,
v.0.9.4.3 + offline capability with 'slrnpull'.
# lynx <-Lynx WWW Browser, with slang-color...v.2.7.1 "9-27-97"
# mc <-Midnight Commander file manager, also does excellent
ftp...a classic...v.4.1.1
# minicom <-Modem terminal program, with X, Y, Zmodem...v.1.75
Minicom also supports the protocols 'hydracom',
'smodem', & 'sixpack' if you want to install them.
# termite <-Modem terminal program, with X, Y, Zmodem...v.0.2.0b1
# modemu <-Telnet program, gives minicom telnet capability...v.0.0.1
# lftp <-Lftp...v.pre0.13.0 "970926"
# ncftp <-Ncftp...v.2.4.2
# irc <-IrcII...Internet Relay Chat...v.BitchX-73p2
# tin -rnq <-Newsreader with fast startup, won't read active or
# rtin "same" newsgroups file + color...v.1.3-unoff-970923
# mutt <-Mail client-reader...v.0.84e with 'color'.
# fetchmail <-Pop3, APOP, IMAP, RPOP, ETRN, mail client.v.4.2.7
# sendmail <-Mail delivery program...v.8.8.7
# procmail <-Mail processing program...v.3.11pre7
# metamail <-Frontend to mmencode, etc., used to display = decode-
encode base64 & other mime mail formats...v.2.7
# wget <-WWW URL & FTP retrieval program...v.1.4.5
# mm <-MultiMail 'BWAVE' 'QWK' mail packet reader...v.0.6a
# uqwk <-Qwk, Soup, etc. mail packer...v.1.8
# ztelnet, ytalk, mget, snarf, rftp, tftp, rlogin, finger, nslookup, ping,
# ftp, fping, pftp, host, vrfy, whois, lurkftp.v.0.99, etc.
# bash <-Shell...v.1.14.7
# zgv <-Image viewer...jpeg, .gif, .bmp, .png, etc...v.2.8
# acdc <-Audio cd player...v.1.1
# fax <-Efax fax program...v.0.8a
# If you have a 'voice modem' & a 'soundcard' read: /usr/doc/voice.README
There's a more recent version of the bash shell v.2.0 or 2.01, but i don't
recommend it, because some programs and or scripts will not work with
it, this problem is known.
If you want to try out another version of bash, make a copy of the
present one first.
~# cp /bin/bash /bin/bash.old
# cp bash.new /bin/bash
You can use 'zmodem' over 'telnet' in minicom, for example...
modemu -e "at%b0=3%b1=3" -c "minicom -c on -o -m -t linux -p tty%s"
~# mininet <-Script to do the above.)
atdt"bbs.foo.com <-The BBS you want to connect to.)
atdt"205.190.185.15
Connected...
Download SOMETHING.QWK
Chose packing method: pkzip
Chose Protocol: zmodem
Zmodem ready to send **B00
<Zmodem Autodownload> <-Starts automatically, zmodem can resume an
interrupted download i.e. pick up where it
left off.
[Alt] S <-To upload using X, Y, Zmodem.)
Logoff BBS...
NO CARRIER...
Press Alt-Q to quit minicom...Leave Without Reset? = Yes
~# man modemu
minicom
rz
sz
Put any BBS .QWK mail in the /root/mmail/bwdown/SOMETHING.QWK directory.
~# mm
# man mm
If you connect to a BBS through 'telnet' while in or outside of 'lynx',
you can use 'zmodem'.
Connected to BBS...
BBS zmodem ready to send...
Press Ctrl ]
ztelnet> set binary <-Set to binary mode.)
ztelnet> rz -v
ztelnet> close <-You can 'close' here or press [Enter] & return to BBS.
Back to lynx...
Ztelnet also has a pipe command |, so you don't have to use the builtin
zmodem, you can call a external zmodem program etc.
Connected to BBS...
BBS zmodem ready to send...
Press Ctrl ]
ztelnet> set binary <-Set to binary mode.)
ztelnet> | rz -b -y
ztelnet> close <-You can 'close' here or press [Enter] & return to BBS.
Back to lynx...
If you set the font to default8x16 it will probably improve the
color over telnet, this font may not work as well with other
programs, the font will stay loaded until you reboot.
~# setfont
# telnet
ztelnet> open bbs.foo.com <- Ctrl-Backspace = Backspace
If the programs 'ytalk' and or 'finger' don't work, it's probably because
your service provider doesn't support them at their end.
To set the time of your computers cmos clock over slip/ppp, do this...
~# nist -t -d -h foo.boo.com;hwclock --systohc
# nettime foo.boo.com <-Script that does the above.)
Put a local server or time server in your area for foo.boo.com.
If you want to read news offline, use 'slrnpull'.
(1). ~# slrnpull <-To retrieve the newsgroups in the /var/spool/slrnpull/
slrnpull.conf file.
touch /root/.pnewsrc
slrn --spool -i /root/.slrnpullrc -f /root/.pnewsrc
(2). ~# spool <-Script to do the above, read newsgroups offline.)
a = add s = subscribe ? = help q = quit
(3). ~# slrnpull --expire <-To expire outdated news.)
Read /usr/doc/slrn/slrnpull...
~# man slrn
~# acidwarp <-Eyecandy, press Ctrl-C or Q to exit.)
# zgv
(/root/logo.gif) <-Gif to test zgv.)
There's a program called IRQTUNE.v.0.5 that gives the highest priority
to serial ports, it may or may not improve SLIP/PPP performance, read
/usr/doc/IRQTUNE.txt.gz.
You can load this program before or after you make a SLIP/PPP connection.
~# irqtune <-It stays loaded until you reboot.)
irqtune: setting system IRQ prioity to 3/14 <-Irqtune message.)
There's also a module called /sbin/ppp_deflate.o you can load
before you make a ppp connection, it may improve ppp performance.
# /sbin/modprobe ppp_deflate.o
Remove the # from the above line in /etc/rc.d/rc.local, to load
the ppp_deflate module at bootup time.
~# modprobe ppp_deflate.o <-Or load it this way anytime.)
# man pppd
Put this in the /etc/ppp/options file...
deflate 15,15
If you want to use another keyboard keymap other then the default
one in the kernel = /boot/zimage?, you can load another one from
the /usr/lib/kbd/keytables directory.
~# loadkeys fr <-Load french keymap etc.)
gr = greek it = italian se-lat1 = swedish de = german etc...
You can put the line below in the /etc/rc.local file, to have
your chosen keymap loaded at boot time.
loadkeys fr
DosLinux includes /lib/libvga.so.1.2.11, this is used to support various
programs that require a graphics capable console e.g. screensavers, video
games, jpeg-gif-mpeg viewers, etc., there are precompiled-elf versions of
these programs that can be droped into the system.
Libvga.so.1.2.11 supports quite a few different graphic cards...see
list at end of this readme...
/lib/libc.so.5.4.39 <-DosLinux Libraries.)
libm.so.5.0.9
libncurses.so.4.1 "970920"
libtermcap.so.2.0.8
libvgagl.so.1.2.11
ld-linux.so.1.9.6
Modules.v.2.1.55 <-Some other programs on DosLinux.)
Make.v.3.76
patch.v.2.5
diffutils.v.2.7b
sysvinit.v.2.71
mtools.v.3.8
man.v.1.4j
groff.v.1.11
procps.v.1.12.2 "With color support."
gawk.v.3.0.3
sed.v.2.0.5
Most linux software at this time is linked with libc.so.5 and friends,
but more and more it will be linked with the new libc.so.6 aka glibc
and friends, if you want to run such a program, you'll have to install
libc.so.6 + libm.so.6 + ld-linux.so.2 + libdl.so.2.
The above is just to inform you in case you download a program that's
linked to the new libc.so.6, then try to run it, and wonder why the
system says it doesn't exist "No such file or directory".
The development of libc.so.6 is in it's early stages, so it should be
awhile yet before the flood of libc.so.6 linked software begins.
All the software on doslinux is linked to libc.so.5 and friends, so
if you ever do install libc.so.6, keep libc.so.5 + everything in /lib
also, because the system won't run without libc.so.5 and friends.
============================================================================
You should try and use 'ftp' to download doslinux, if you loose the
connection you can resume the download and pick up where you left
off...
Most browser programs won't recognize the extension .r00 etc., they will
think it's a text file and download it accordingly, this may corrupt
doslinux and you won't be able to extract it without errors.
You have to inform the program you're using to download doslinux, that
it's in binary format.
If you're using 'netscape', hold down the [Shift] key and click on
doslnx47.exe etc. with the mouse.
If you're using 'lynx', press the 'd' key when doslnx47.exe etc. is
highlighted.
ftp> bin <-Set to binary mode.)
ftp> get doslnx47.exe
Lost connection...
ftp> bin
ftp> reget doslnx47.exe
ncftp> get -C doslnx47.exe <-Same as reget for 'ncftp' recent version...)
============================================================================
How To Install DosLinux...
============================================================================
Unpack doslnx47.exe + r00 - r05 from C:\, D:\, etc. don't create another
directory for doslnx47.exe + r00 - r05 and unpack them from there.
C:\ doslnx47.exe <-This will extract doslnx47.exe + r00 - r05
doslnx47.r00 to get.> C:\linux & C:\doslinux
doslnx47.r01
doslnx47.r02
doslnx47.r03
doslnx47.r04
doslnx47.r05
C:\ zimagei.exe <-Now extract this, or zimages for a SCSI hard drive.)
C:\ linux.bat <-Boot DosLinux...)
This is just a little description of how DosLinux was packed using rar v.201.
Begin...
C:\ rar a -s -m5 -sfx zimagei.exe linux.bat linux\boot\zimagei
C:\ rar a -s -m5 -sfx zimages.exe linux.bat linux\boot\zimages
C:\ del linux\boot\zimagei
C:\ del linux\boot\zimages
C:\ rar a -s -m5 -v1440 -sfx -r doslnx47.exe doslinux linux
ftp://ftp.elf.stuba.sk/pub/pc/pack
rar201.exe <-Dos version.)
End...
C:\doslinux> <-bootfail.bat, doslinux.txt, fromdos.exe,
fromdos.txt, ls.exe, ls.txt, loadlin.txt.
You can put 'ls.exe' and 'fromdos.exe' in the c:\dos directory,
so you can call them from anywhere.
linux.bat will look like one of these...
@echo off
rem smartdrv /c
c:\linux\boot\loadlin c:\linux\boot\zimagei root=/dev/hda1 rw
@echo off
rem smartdrv /c
c:\linux\boot\loadlin c:\linux\boot\zimages root=/dev/hda1 rw
If you have a SCSI Hard Drive you would change 'root=/dev/hda1 rw' to
'root=/dev/sda1 rw' 'root=/dev/sda2 rw' etc.
If the drive you're installing doslinux on is not C:, you would
change this also in the linux.bat file.
For example, if you were installing doslinux on the D: drive.
@echo off
d:\linux\boot\loadlin d:\linux\boot\zimage? root=/dev/???? rw
Don't run fdisk unless you know what your doing, because you could make
changes unintentionally and then exit fdisk and have them unintentionally
written to disk and made permanent.
C:\ fdisk <-Display partition info. then [Esc]...)
~# fdisk <-Fdisk in linux...safe just to see partition info...)
(m for help): p
(m for help): q
If /dev/hda1 is not where your dos partition is mounted,
change 'root=/dev/???? rw' in linux.bat.
root=/dev/hda <-First IDE drive.) (/dev/hda = Drive C:)
root=/dev/hda1 rw <-First partition of First IDE drive.)
root=/dev/hda2 rw <-Second partition etc...)
root=/dev/hdb <-Second IDE drive.) (/dev/hdb = Drive D:)
root=/dev/hdb1 rw <-First partition of Second IDE drive.)
root=/dev/hdb2 rw <-Second partition etc...)
root=/dev/sda <-First SCSI drive.)
root=/dev/sda1 rw <-First partition of First SCSI drive.)
root=/dev/sda2 rw <-Second partition etc...)
root=/dev/sdb <-Second SCSI drive.)
root=/dev/sdb1 rw <-First partition of Second SCSI drive.)
root=/dev/sdb2 rw <-Second partition etc...)
I have no experience with booting doslinux from within a Win95 system.
Q. Can i boot doslinux on a Win95 system that has the newer FAT32
filesystem?
A. I don't know, probably not.
Q. Can i boot doslinux on a Win95 system that has the older 'vfat fat16'
filesystem?
A. I think so.
Q. Can i boot doslinux on a dos system i.e. msdos, pcdos, opendos, etc.?
A. YES for sure.
Q. Can i boot doslinux on a windows NT system?
A. I'm not sure, i heard of one person doing this.
Q. Can i boot doslinux on a OS/2 system in dos mode?
A. I don't know, probably not.
Read the loadlin.txt, it tells you things you should
do to allow loadlin to work with win95 in dos mode,
e.g. don't boot linux in a window, exit any windows
and get a dos prompt.
Loadlin is the program that will boot doslinux on your dos system
If you try and boot linux and it freezes with kernel panic,
or it's unable to mount (VFS), just shutdown or reboot the
computer, don't look at the screen and wonder what's
happening, reboot and be sure you have the right
partition "root=/dev/???? rw" listed in linux.bat.
The program ls.exe is like the 'dir' command from dos or the unix
'ls' command, you can use it to view the contents of the c:\linux
directories as well as the dos directories.
C:\ cd linux/root
linux/root> ls -a <-For example.)
ls -a -r <-List in reverse.)
I don't think you can use 'ls' like 'dir /p' to list contents
of long directories one screenfull at a time, not in c:\linux>
anyway, maybe in dos you can c:\dos> ls /p might work.
Read ls.txt for all the ls options.
Make sure the program you're using to download DosLinux is set to
'binary mode', and be sure 'doslnx47.exe + r00 - r05' match the
size that is stated in the doslnx47.lsm file.
DosLinux login: root <-To login...
DosLinux:~# mc
# halt <-To shutdown the system...
# reboot <-To shutdown & reboot...
The complete system requires about 22 mbytes uncompressed,
compressed it's about 11 mbytes.
Read the stuff in /usr/doc, the PPP texts might be helpfull,
there's also man pages for most of the programs & commands
installed...
If you're new to linux = unix, you should read the
'DOStoLinux-HOWTO.gz' in the /usr/doc directory.
~# docs
Try the script 'pppsetup' to connect to your service provider and
establish a PPP connection.
~# pppsetup <-Answer the questions, and then.-> ~# ppp-go
~# ppp-off <-To quit ppp.)
The 'pppsetup' script above should be enought to get you ppp
connected to your service provider.
If your service provider is using 'chap' or 'pap', when you run
'pppsetup' you have to give a login and password when asked
in the PAP or CHAP? section of the script.
The pppsetup script will put the 'pap' or 'chap' information that you
give, in the /etc/ppp/pap-secrets and chap-secrets file.
# client = username = login server secret = password
jerry * Pk3Zh7cL
If you have to authenticate yourself using 'chap' or 'pap', the name
option will also be added to the /etc/ppp/options file.
name "jerry" <-Name option, your username: = login: jerry
name "jerry_donut" <-If you have a two part name, you might
have to do it this way.
remotename "foo.boo.com" <-This additional option is only required
for microsoft's chap-80 authentification.
remotename = your.service.providers.name
There's also support for the microsoft version of chap called
ms-chap-80, read /usr/doc/PPP.MSCHAP80 for info. on this.
There's also (c)all (b)ack (c)onfiguration (p)rotocol support
in pppd, for connecting with windows NT servers.
If you get this message "last message repeated # times." when you run
ppp-go and try to connect to your service provider, it could mean that
they're trying to negotiate a pap, chap, ms-chap, or callback connection
with you, but you're not setup or not setup correctly for it at your end.
If you're not sure whether or not your service provider is using
pap, chap, ms-chap, or callback, ask your service provider.
Read the ppp docs in the /usr/doc directory...
~# connect <-To see if your connected.)
* YES! you are connected... *
* NO! you are not connected... *
~#
If you're having trouble keeping the connection up after you make a slip/ppp
connection, you can ping your service provider at 5 second intervals while
you're online...
~#
Press left-[Alt] & [Up]-arrow-key to open another console, then start pingup.
~# pingup <-Script to get your ISP IP address and ping it.)
Press [Alt]-[F1] to go back...
~# lynx ftp etc...
You still have 10 consoles...
If you want to make a SLIP or CSLIP connection, you can use the program
'dip.v.3.3.7p' for this, read /usr/doc/GUIDES/dip-guide.gz and the files
in /etc/ppp/dip.samples.
~# dipsetup <-Run this and answer the questions to create a dip script.)
# dip-go
# dip -k <-To kiil dip and the slip/ppp connection.)
# man dip
Use the script 'fetchsetup' to setup 'fetchmail', the pop2, pop3, etc.
mail client, just answer the questions username, password, etc.
~# fetchsetup
# fetchmail <-After your slip/ppp connected, retrieve your mail.)
# mutt <-You can use mutt to read, send, & respond to mail,
mutt can also connect to a pop3 mail box and do
what fetchmail does above, but you'll have to read
# docs -> /usr/doc/mutt.manual.gz to get guidance on how to
configure the /root/.muttrc file for this.
If you get this message from fetchmail "Another foreground fetchmail
is running at ?" do this to kill it.
~# die -f fetchmail (Or.> ~# killall fetchmail
# fetchmail
If you want fetchmail to run in the background = daemon mode, put
this in your /root/.fetchmailrc file.
set daemon 300 <-For example, check for mail every 5 minutes etc.)
~# fetchmail -d 300 <-Or from the command line.)
~# fetchmail -q <-To kill the fetchmail daemon.)
If fetchmail or any program just hangs after you start it, do this.
~# fetchmail
Hanging...
Press Ctrl C
~# fetchmail
The mail that 'fetchmail' retrieves, will be processed = sorted by
'procmail', based on guidelines it finds in the /root/.procmailrc
file.
Sendmail is configured in the /etc/sendmail.cf file, to pass incoming
mail to '/usr/local/bin/procmail' for local delivery.
To learn about the program procmail, read the docs in the /usr/doc/procmail
directory.
~# man procmail
~# man slrn <-Manual pages for DosLinux programs
rm and commands.
ls
lynx
fetchmail
tin
ircII
etc...
The bash shell has command recall, so you don't have to type in a command
again, just press the [Up] or [Down]-arrow-key to recall a command.
If you have any 'zombie' processes, do this to remove them...
~# ps x
koo <zombie>
~# pstree -p
foo(346)-+-boo(350)---koo(357)
~# kill -9 350
You don't have to go all the way back unless you want to,
just kill the parent of the zombie process, not the parent
of the parent...
If the terminal gets messed up for whatever reason, do this to
restore it.
~# reset
Even if you can't see what you're typing in, you can still type in
reset and press enter.
You can also change consoles by pressing left-[Alt] and [Up]-arrow-key,
then Alt-F1 etc. to go back.
There are 12 consoles on doslinux, so you can download something
in one and do something else in another etc. etc. etc...
~# less file.txt <-To read a text file, press Q to exit.)
# less file.gz <-To read a compressed text file.)
# lynx file.html <-To read a file with a .html extensiom...)
# mc <-You can also press [Enter] or [F3] in mc on
the above files to read them.)
(To get help.> [F1]
(Extract Menu...zip.deb.rpm.tar.gz.exe.hqx.lha.rar.uue.arj.Z.> [F2]
You can also read a file from within mc. ~# mc (To read a file.> [F3]
The builtin editor "mcedit" will -> (To edit a file.> [F4]
be called for most things. (To copy a file.> [F5]
(To move or rename a file.> [F6]
(To quit mc.> [F10]
You can install precompiled 'slackware ?.tgz' '?.deb' '?.i386.rpm'
packages on doslinux...
Read the /usr/doc/unrpm-install.README.gz file.
Press [F2] in mc and chose from the menu the type of package you want
to install...
package?.i386.rpm <-For example, the highlighted package in mc you want
to install is this.)
1. Install current Slackware '?.tgz' <-For slackware package.)
2. Install current '?.deb' <-For debian package.)
3. Install current '?.i386.rpm' <-For redhat you would chose this type
option from the menu and press enter.)
Convert <-See below for info on this option.)
You can see the contents of these archives in mc, by pressing [Enter]
or [F3] on them.
?.rpm ?.deb ?.tar.gz ?.zip ?.tgz ?.tar.Z ?.tar.bz2 ?.tar.tz ?.bz2 ?.tz
?.gz ?.Z ?.arj ?.lha/lzh ?.rar ?.exe
DosLinux is based on the slackware linux distribution, so if you use
one of those 3 extract & install methods above, try to use slackware
with slackware packages.
You should be able to install debian & redhat packages also, because
there's realy no significant difference between the distributions.
It's just that debian & redhat tend to be little more library dependent
than slackware, this just means that in addition to installing a particular
package, you may also have to install libraries that the package requires
to run...
Because of the above you have to procede with a little more caution with
debian & redhat packages.
If you install a important package that replaces a important program
on doslinux e.g. /bin/bash, you should be sure that the replacement
/bin/bash doesn't require a library to run that you don't have
installed.
In other words, "beware of putting the cart before the horse", find out
first what the package is linked with before you install it, you can
unpack any package first to inspect it before installing it.
~# ldd bash
lib.so.mething.?
If it's linked to a lib.something.? you don't have on the system,
then install this lib.something.? first, because the program won't
run without it.
~# mc
foo.boo.deb
Press [Enter] to view the contents of a debian.deb package.
Press [F3] to get info on a debian.deb package.
You can convert a redhat.i386.rpm or debian.deb package to a
slackware ?.tgz package...
Chose Convert from the menu in mc [F2] then press enter, and the current =
highlighted ?.i386.rpm or ?.deb package will be converted...
foo.boo.i386.rpm <-For example, you have this.)
foo.boo.i386.tgz <-Now you also have this.)
You can then install it as a slackware ?.tgz package...
You can remove slackware or converted packages that you installed...
For example, if you installed a package called foo.boo.tgz...
~# mc
In the directory /var/log/packages press [F2] and chose Remove, then the
current = highlighted package will be removed, in this example foo.boo.
All slackware and converted packages that you install, will be
listed in the /var/log/packages directory.
The above stuff is based on commands in the /usr/lib/mc/mc.menu &
mc.ext files...
There are extra copies of the above files in /usr/lib/mc/*.bak.
=============================================================================
To create a 8 mb. swap file...
~# dd if=/dev/zero of=/swap bs=1024 count=8192 (Or.> count=4192 for 4 mb.
# sync
# mkswap -c /swap 8192
# sync
# swapon /swap
Then put this line in the /etc/fstab file.
/swap swap swap defaults 0 0
~# swapfile <-Run this script to do all of the above.)
~# swapoff /swap <-If you want to remove the /swap file.)
# rm /swap
/swap swap swap defaults 0 0 <-Remove this from the /etc/fstab file.)
~# rmswap <-Or run this script to remove the swap file.)
=============================================================================
~# free <-To see memory usage...) (Or.> ~# top <-Press q to quit.)
# df <-To see disk space...)
Don't make any changes to C:\linux from within dos, each directory
in C:\linux has a --linux-.--- file, don't remove these from
within dos, they are not visable when you're in linux, it's
best not to even look in C:\linux from within dos.
Don't make changes to /DOS from within linux either.
If there's a file or directory in linux that you want to delete,
but the system refuses to delete it for whatever reason, e.g.
"directory not empty" you can delete it from dos.
Try this first, be sure, this will delete the whole directory.)
~# rm -Rf directory
C:\ cd linux\root
linux\root> ls -A -p -M <- -A or -a = Show hidden files.
-p = Indicate directories with \.
-M = Show before and after ls.)
foofoo {1C\ _booboo {_A <-That's how linux looks from dos,
linux\root> deltree foofoo.2.0 if you use dir /p instead of ls.)
linux\root> del booboo.tgz
linux\root> cd c:\ <-Don't hang around.)
If you want to move a file or directory from linux to /DOS do this.
file directory
~/root# cp directory /DOS
# cp file /DOS
Don't use the mv = move command to move a file or directory to /DOS,
use the cp = copy command if you must.
You can just delete that file and or directory from linux now.
~/root# rm -Rf directory
# rm file
If you want to move something from dos to linux do this.
C:\ copy something linux\root
C:\ del something <-You can delete it now if you wish.)
Now in linux you have to do this to make that something visable.
~# umssync .
Until you do 'umssync .' in the directory something is in, you
won't be able to see that something.
Never use the move command to put something in linux, always use
the copy command if you must.
If you look at /DOS from linux and there's nothing there, you'll
have to remove any --LINUX- --- file you find in the C:\ directory.
C:\ del --linux-.--- (Not the ones in.-> C:\linux\ --LINUX-.---
You can read a file that's in /DOS from linux, but don't edit it.
The above instructions are just in case you must do these things,
it is generally best to keep to linux when your in linux and to dos
when your in dos, otherwise you take the risk of not being able
to get back into dos and or linux.
There's a program called fromdos in c:\doslinux and on doslinux,
this will convert dos files to unix and unix to dos.
If you edit a file in dos it will put ^M carriage returns in the
file, this is not acceptable to unix = linux and vice versa.
If you edit a file in linux\etc\file from dos.
c:\ edit linux\etc\file
Save...
You should now do this to convert it back to unix...
c:\ fromdos -b -f linux\etc\file <-Dos to Unix.)
Read: fromdos.txt
If you edit a file in /DOS from linux.
~# pico /DOS/file
Save...
You should now do this to convert it back to dos...
~# fromdos -b -f -u /DOS/file <-Unix to Dos.)
~# man fromdos
I mention 'fromdos' just in case you have to edit a file in c:\linux
form dos or in /DOS from linux, as i said above you take a risk.
If you want to add a program to linux, download it from within
doslinux, unpack it from within doslinux, install it from within
doslinux.
This is a ELF system, it will only run elf compiled programs, so
be sure the program you want to download is compiled elf, read
the .lsm file that should be with the program or a readme.
The program should have a .bin & or .elf somewhere in it's name,
for example: program.bin.elf.tar.gz
Just because it has a .bin in it's name doesn't mean it's compiled
(elf), it could be compiled (aout), look at the date, if it's
before August 1995 there is a good chance it's compiled (aout),
you won't be able to run it.
~# tar xzvpf program.tar.gz <-To unpack a 'tar.gz' 'tgz' 'tar.Z' file.
# unzip program.zip <-If it's a .zip file.
# unzip program.exe <-If it's a .exe file.
# gzip -d program.gz <-If it's a .gz file.
# tar xvpf program.tar <-If it's a .tar file.
~# file program <-To see if a program is compiled elf, use the (file)
command, it should say (ELF) somewhere in the little
description.
~# file /usr/bin/ncftp <-To test the file command.)
# ldd /usr/bin/ncftp <-To see what libraries a program is linked with.)
Ncftp is linked with libc.so.5 & libncurses.so.?, this means ncftp
won't run without these libraries.
If you download a program and try to run it, and it says "can't find
lib.something?", this means you don't have a library required to run
this program, you can forget about it or get that library and put
it in /lib/lib.something?.
Just be sure the library is compiled elf and after you put it in /lib,
run.> ~# ldconfig -v <-To link it up.)
Most unix programs you download will include a man page...
~# mc
You can read man pages in 'mc' by pressing [Enter] on them...
foo.1 - 9 <-These are the man page extensions that 'mc' recognizes.)
foo.1.gz - 9.gz
foo.1.Z - 9.Z
foo.man
foo.man.gz
foo.man.Z
foo.me <-These are not man page format, but can be read also.)
foo.ms
~# readman foo.? <-If you know it's a man page, but it doesn't have
one of the above extensions.)
Man pages usally have a ?.1 - ?.9 or ?.man extension, for example: foo.1
You can put any man pages in the /usr/man/man1 - man9 directories.
If it has a .1 ext. it would go in man1 etc.
Most linux software can be found at ftp://sunsite.unc.edu/pub/Linux,
or one of it's mirrors, ftp://cc.gatech.edu/pub/linux etc...
There are also .hqx, .arj, .uue, .lha/lzh, .rpm, .deb .bz2, unpackers.
# uudeview program.hqx
# uudeview base64file <-Decode base64 file.)
# unarj x program.arj
# uudecode file.uue <-uudecode = uudeview...v.0.5pl13
# lha x program.lzh/lha
# unshar shell-archive.shar (Or.> # sh shell-archive.shar
# gzip -dc ?.shar.gz | unshar (Or.> ?.shar.Z
# tar xevpf program.tar.bz2 <-I never saw one of these, but who knows?
# tar xjvpf program.tar.tz
To unpack .rpm and .deb files...
# unrpm program.i386.rpm <-i386 = Compiled not Source.)
# unrpm program.src.rpm <-src = Source not Compiled.)
# xrpm program.?.rpm <-Another rpm unpacker.)
# undeb program.deb <-deb = Compiled not Source.)
# man rpm2cpio
dpkg-deb
There's also a bootfail.bat to boot linux if it refuses
to boot from linux.bat, if you removed a important file
or program, or made some changes to a important file,
bootfail.bat will allow you to get back into linux
to fix the problem.
This readme will be included in C:\doslinux\doslinux.txt & on
doslinux in /usr/doc/DosLinux.README-part-1.gz & 2.
You can remove doslnx47.exe + r00 - r05, after it's
installed if you wish...
Running a (defragmentation) program on your dos system, should not have
a negative affect on C:\linux.
Disclaimer...
It works on my system "OpenDOS.v.7.01, IDE 540MB HARD DRIVE, CPU-486-DX2-66,
8MB RAM + 4MB SWAP FILE" but this doesn't mean anything, I have just one
computer out of millions, if all else fails do this...
C:\ deltree linux "Terminate with extreme prejudice."
C:\ xdel /dnors linux <-OpenDOS...)
...9-28-97...
End of part 1...
==============================================================================
==============================================================================
Below is all the stuff DosLinux supports, either in the kernel or through
modules. Continued in doslnx47.README-part-2...
==============================================================================