 |
от mrvoland(16-06-2003)
рейтинг (3)
[ добре ]
[ зле ]
Вариант за отпечатване
най-накрая успях да пусна кирилизирано dosemu под чиста
конзола (тези които работят само под X (kde,gnome, etc) не
се нуждаят от следващите упътвания :))
на което се стартира paradox4.5 счетоводна програма
system
Debian3.0 (up to date)
kernel 2.4.19-2.4.21
ext3fs
свалете последното dosemu (аз използвам 1.1.4.0 stable)
www.dosemu.org
свалете последния dosemu-freedos-bin.tgz
ftp://ftp.dosemu.org/dosemu/dosemu-freedos-bin.tgz
(A tarball containing a collection of suitable FreeDos
binaries)
ftp://ftp.dosemu.org/dosemu/dosemu-<version>-bin.tgz
(A tarball containing the recent DOSEMU binaries)
за предпочитане е да се свали последната версия на
freedos-bin за да можете да имате със сигурност последното
ядро на freedos
свалете bg-linux и инсталирайте последната версия
изпълнете следният ред в чиста конзола
cyr bg_phon ctrl_shift_toggle --style dos -e mik --save
копирайте някоя от старите програми за кирилизация примерно
cyr.com или подобна (забележка: някои от тях не работят
нормално)
разархивирайте dosemu-1.1.4.tgz в примерно
/usr/src/dosemu-1.1.4.tgz
изкопирайте oemu-freedos-bin.tgz в
/usr/src/dosemu-1.1.4.tgz
за да могат скриптовете на dosemu да намерят freedos-a и да
го инсталират автоматично
./default-configure or
./default-configure –help за опции, по подразбиране нещата
се инсталират в /usr/local освен ако не се промени
./default-configure --prefix=/usr или --prefix=/home/dos
след това се изпълнява make и make install (трябва
последното да се изпълни като root потребител)
трябва да се редактират autoexec.bat и config.sys защото
под dosmemu c:\ е readonly за това под линукс се редактират
файловете кито се намират в /usr/lib/freedos (при мен
префикса за инсталацията е --prefix=/usr) добавянето на
допълнителни пътища и настройки се прави под linux
задължително.
всички програми се инсталират в вашата home dir която става
автоматично като D:\ след като се стартира dosemu -home или
xdosemu -home
естестено може да се използва и цял партишън или IMG файл,
вариациите са много, но за мен така беше най-удобно
следват моите конфигурационни файлове:
bash-2.05a# cat /etc/dosemu/dosemu.conf
##############################################################################
# This file is /etc/dosemu.conf, included by
DOSEMU_LIB_DIR>/global.conf
#
# Linux DOSEMU configuration for parser versions
>= 3 (dosemu-0.97.0.1)
#
# ./doc/README.txt (chapter 2.) contains a description of
the syntax
# and the usage of dosemu.conf.
#
#
# Access rights are defined in
#
# /etc/dosemu.users
#
##############################################################################
$_debug = "-a"
# same format as -D commandline option
$_features= ""
# list of temporary hacks, see release notes in
# the file ChangeLog. e.g
"0:1 2:0", which means
# to set feature_0 to 1 and
feature_2 to 0.
$_mapping= "auto"
# prefered mapping driver, one of:
# auto, mapself, mapfile,
mapshm
$_timint = (on) # emulate INT08
type timer interrupts
$_mathco = (on) # or off
$_cpu = "80686" # CPU
showing to DOS, valid values:
"80[345]86"
# or "emulated" for
non-native CPU (386 in this case)
$_rdtsc = (on) # if
possible use Pentium cycle counter
$_cpuspeed = (0) # 0 =
calibrated by dosemu, else given (e.g.166.666)
$_pci = (on)
$_xms = (16384) # in Kbyte
$_ems = (16384) # in Kbyte
$_ems_frame = (0xe000)
$_dpmi = (2048) # in Kbyte
$_dosmem = (640) # in Kbyte,
< 640
$_hardware_ram = "" # list of
segment values/ranges such as
# "0xc8000 range
0xcc000,0xcffff"
$_secure ="ngd" #
secure for: n (normal users), g (guest), d (dexe)
# empty
string: depending on 'restricted'
# "0": always insecure (not
recommended)
$_odd_hosts = "" #
black list such as "lucifer.hell.com
billy.the.cat"
$_diskless_hosts="" # black list
such as "hacker1 newbee gateway1"
$_emusys = ""
# empty or 3 char., config.sys -> config.XXX
$_emubat = ""
# empty or 3 char., autoexec.bat -> autoexec.XXX
$_emuini = ""
# empty or 3 char., system.ini -> system.XXX
$_hogthreshold = (1) # 0 == all CPU power to
DOSEMU
$_irqpassing = "" # list of
IRQ number (2-15) to pass to DOS such as
# "3 8 10"
$_speaker = ""
# or "native" or "emulated"
#$_term_char_set = "" # Global code page
and character set selection.
#$_term_char_set = "ibm"
# "" == automatic, else: ibm, latin, latin1,
latin2
$_term_char_set = "latin1"
$_external_char_set = "cp855"
$_internal_char_set = "cp855"
$_term_color = (on) # terminal with color
support
$_term_updfreq = (4) # time between refreshs
(units: 20 == 1 second)
$_escchar = (30) # 30 == Ctrl-^,
special-sequence prefix
$_rawkeyboard = (1) # bypass normal keyboard
input, maybe dangerous
$_layout = "us" # one of: finnish(-latin1),
de(-latin1), be, it, us
#$_layout = "us" # uk,
dk(-latin1), keyb-no, no-latin1, dvorak, po
# sg(-latin1), fr(-latin1),
sf(-latin1), es(-latin1)
# sw, hu(-latin2), hu-cwi,
keyb-user
# hr-cp852, hr-latin2, cz-qwerty,
cz-qwertz.
# Or 'auto' (which tries to
generate the table from
# the current Linux console
settings)
$_keybint = (on) # emulate PCish
keyboard interrupt
$_togle = "alt_shift"
#$_keybint = (off)
$_X_updfreq = (5) # time between
refreshs (units: 20 == 1 second)
$_X_title = "DOS in a BOX" #
Title in the top bar of the window
$_X_icon_name = "xdos" # Text for icon,
when minimized
#$_X_keycode = (off) # on == translate keybord
via dosemu keytables
$_X_keycode = (auto) # or 'off' or 'auto'
$_X_blinkrate = (8) # blink rate for the
cursor
$_X_font = ""
# basename from /usr/X11R6/lib/X11/fonts/misc/*
# (without extension) e.g.
"vga"
$_X_mitshm = (on) # Use shared memory
extensions
$_X_sharecmap = (off) # share the colormap with
other applications
$_X_fixed_aspect = (on) # Set fixed aspect for resize the
graphics window
$_X_aspect_43 = (on) # Always use an aspect
ratio of 4:3 for graphics
$_X_lin_filt = (off) # Use linear filtering
for >15 bpp interpolation
$_X_bilin_filt = (off) # Use bi-linear filtering for
>15 bpp interpolation
$_X_mode13fact = (2) # initial size factor for
video mode 0x13 (320x200)
$_X_winsize = "" #
"x,y" of initial windows size (defaults to
float)
$_X_gamma = (1.0) # gamma
correction
$_X_vgaemu_memsize = (1024) # size (in Kbytes) of the frame
buffer for emulated vga
$_X_lfb = (on) # use linear frame buffer in VESA
modes
$_X_pm_interface = (on) # use protected mode interface for
VESA modes
$_X_mgrab_key = "Home" # KeySym name to
activate mouse grab, empty == off
$_X_vesamode = "" #
"xres,yres ... xres,yres"
# List of vesamodes to add. The
list has to contain
# SPACE separated
"xres,yres" pairs
$_video = "vga" # one
of: plainvga, vga, ega, mda, mga, cga
$_console = (0) # use 'console'
video
$_graphics = (0) # use the cards
BIOS to set graphics
$_videoportaccess = (0) # allow videoportaccess when
'graphics' enabled
$_vbios_seg = (0xc000) # set the address of your
VBIOS (e.g. 0xe000)
$_vbios_size = (0x10000)# set the size of your BIOS (e.g.
0x8000)
$_vmemsize = (1024) # size of regen
buffer
$_chipset = "plainvga"
# one of: plainvga, trident, et4000, diamond,
avance
#$_chipset = "svgalib"
# cirrus, matrox,
wdvga, paradise, ati, s3, sis
$_dualmon = (0) # if you have
one vga _plus_ one hgc (2 monitors)
$_vbootfloppy = "" # if you
want to boot from a virtual floppy:
# file name of the floppy image
under DOSEMU_LIB_DIR
# e.g. "floppyimage"
disables $_hdimage
#
"floppyimage +hd" does _not_ disable
$_hdimage
$_floppy_a ="threeinch" # or "fiveinch"
or "atapi" or empty, if not existing
# optionally the device may be
appended such as
#
"threeinch:/dev/fd0"
$_floppy_b = "" #
dito for B:
$_hdimage = "freedos:ro"# list of hdimages under
DOSEMU_LIB_DIR
# assigned in this order such as
# "hdimage_c hdimage_d
hdimage_e"
# If the name begins with
'/dev/', then partion
# access is done instead of
virtual hdimage such as
# "/dev/hda1" or
"/dev/hda1:ro" for readonly
# Currently mounted devices and
swap are refused.
# Hdimages and devices may be
mixed such as
# "hdimage_c /dev/hda1
/dev/hda3:ro"
# Note: 'wholedisk' is _not_
supported.
$_hdimage_r = $_hdimage # hdimages for 'restricted access
(if different)
$_aspi = ""
# list of generic SCSI devices to make available
# for the builtin aspi driver
(format of an entry
# is 'device:type:mappedtarget'
such as
# "sg2:WORM
sg3:Sequential-Access:6 sg4:CD-ROM" or
# "sg2:4 sg3:1:6 sg4:5"
(which are equal)
$_com1 = ""
# e.g. "/dev/mouse" or
"/dev/ttyS0"
$_com2 = ""
# e.g. "/dev/modem" or
"/dev/ttyS1"
$_com3 = ""
# dito
"/dev/ttyS2"
$_com4 = ""
# dito
"/dev/ttyS3"
# Note: all
"/dev/ttyXX" may be suffixed by the IRQ
# used (instead of the default
one), such as
# "/dev/ttyS2 irq 5" or
"/dev/ttyS3 irq 9"
$_ttylocks = "" #
Lock directory (e.g. "/var/lock")
# default ("") is
/var/lock
$_mouse = "imps2" # one of:
microsoft, mousesystems, logitech, mmseries
# mouseman, hitachi, busmouse,
ps2, imps2
$_mouse_dev = "/dev/psaux" #
one of: com1, com2, com3, com4 or /dev/mouse
$_mouse_flags = "" # list of
none or one or more of:
# "emulate3buttons
cleardtr"
$_mouse_baud = (0) # baudrate, 0 ==
don't set
$_printer = "lp" #
list of (/etc/printcap) printer names to appear as
# LPT1, LPT2, LPT3 (not all are
needed, empty for none)
$_printer_timeout = (20)# idle time in seconds before
spooling out
$_ports = ""
# list of portnumbers such as "0x1ce 0x1cf
0x238"
# or "0x1ce range
0x280,0x29f 310"
# or "range
0x1a0,(0x1a0+15)"
$_ipxsupport = (on) # or on
$_novell_hack = (on)
$_vnet = (on) # 'on' for
packet-multi (used by dosnet)
$_sound = (on) # sound
support on/off
$_sb_base = (0x220)
$_sb_irq = (5)
$_sb_dma = (1)
$_sb_dsp = "/dev/audio"
$_sb_mixer = "/dev/mixer"
$_mpu_base = "0x330"
bash-2.05a# cat /usr/lib/freedos/autoexec.bat
@echo off
rem set the paths in next line
path
c:\bin;c:\gnu;c:\dosemu;d:\pdoxrun;d:\;d:\caeacc;d:\pd45
set HELPPATH=c:\help
set TEMP=c:\tmp
prompt $P$G
unix -s DOSDRIVE_D
if "%DOSDRIVE_D%" == "" goto
nodrived
lredir d: linux\fs%DOSDRIVE_D%/
:nodrived
unix -s DOSEMU_VERSION
echo "Welcome to dosemu %DOSEMU_VERSION%!"
unix -e
bash-2.05a# cat /usr/lib/freedos/config.sys
DOS=UMB,HIGH
lastdrive=H
files=55
buffers=55
devicehigh=c:\dosemu\ems.sys
device=c:\bin\nansi.sys
rem devicehigh=c:\dosemu\cdrom.sys
shell=c:\command.com /e:1024 /p
<< Повече сигурност с pam_limits | FreeBSD: PPP и SLIP >>
|
 |