#00ffff

canoodle@nerdpol.ch

GNU Linux - i-war running inside GNU Linux Debian 11 via wine - run old dos games (and windo(w)s games) from wine to dosbox-x - how to compile from latest src - first problems: keyboard / some keys ":" not working

Remember Monkey Island and Tomb Raider 1? yeah… wanna play it on GNU Linux? yeeeessss!

over 1600 FREE DOS GAMES! -> https://www.dosgames.com/

and also this goody:

https://dwaves.de/2022/04/19/i-war-defiance-1997-how-to-setup-windows-7-and-windows-10-with-3d-acceleration-a-old-but-genious-scifi-space-ship-simulator-with-real-mass-drifting-inertia/

i-war: why this game is a genius space flight and fight sim

gate jump: from earth to jupiter (?)

check out the the 3rd trainings mission: docking with containers (fast) and throwing them through a ring X-D

[video width=”746″ height=”560″ mp4=”https://dwaves.de/wp-content/uploads/2022/04/i-war-pc-game-1997-independence-war-mission-docking-with-crates-and-throwing-them-through-a-ring-creativity-and-beauty-in-game-design-genious-autopilot-almost-messes-up.mp4″\]\[/video\]

… this could make for an interesting ship space soccer game… X-D (dock with the ball… and inertia throw it through the goal of the enemy X-D)

wine

[video width=”638″ height=”428″ mp4=”https://dwaves.de/wp-content/uploads/2022/04/i-war-running-inside-gnu-linux-debian-11-via-wine.mp4″\]\[/video\]

wine: what works?

  • the setup
  • nGlide setup
  • the game itself EVEN in 3DFx-Voodoo-nGlide in full screen mode 🙂 (CONGRATZ ALL INVOLVED! GREAT JOB!)

wine: what does not work?

  • in-game menus
  • instructors sound output (might be a game “can’t find cdrom drive” related issue)
  • it crashes on the end of a mission, but the progress is still saved… so simply restart the game after every mission and should be good
  • possible problems: does not detect the CD-ROM drive (even when it is mounted and files are clearly accessible)
    • possible workaround: copy the CD1 CD2 CD3 CD4 content simply into the game folder….

nice!

wine per default creates an folder called

/home/user/.wine/drive_c

which resembles the C:\ drive while installing, it will store files there.

install:

<span style="color: #00ffff;">su - root</span>
<span style="color: #00ffff;">apt update</span>
<span style="color: #00ffff;">apt install wine winetricks
</span># start the config tool<span style="color: #00ffff;">
winecfg
</span># start the config tool
# <a href="https://github.com/Winetricks/winetricks">https://github.com/Winetricks/winetricks</a><span style="color: #00ffff;">
winetricks
winetricks --optout
</span>
# mount cd image iso
<span style="color: #00ffff;">mkdir /media/user/cdrom</span>
<span style="color: #00ffff;">mount -t iso9660 -r -o loop /path/to/iwar-cd1.iso /media/user/cdrom

</span># wine setup, this will create a "prefix" "iwar"
# (aka a alias under which to store-remember the settings for this game)
<span style="color: #00ffff;">WINEPREFIX=${HOME}/games/iwar WINEARCH=win32 winecfg</span>
# in the dialogue
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg_select_windows_98se.png"><img alt="" class="alignnone size-full wp-image-25717" height="696" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg_select_windows_98se.png" width="607"></img></a>
# Applications → Windows Version → Windows 98 (hit apply)
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg-graphics-emulate-a-virtual-desktop-enabled.png"><img alt="" class="alignnone size-full wp-image-25718" height="506" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg-graphics-emulate-a-virtual-desktop-enabled.png" width="591"></img></a>
# Graphics → Emulate a virtual desktop → Desktop size: 1024x786

# not sure if this is actually needed
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg-cdrom-drive-d.png"><img alt="" class="alignnone size-full wp-image-25719" height="513" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg-cdrom-drive-d.png" width="612"></img></a>

# install game setup
<span style="color: #00ffff;">WINEPREFIX=${HOME}/iwar wine /media/user/cdrom/SETUP.EXE
</span>
<a href="https://dwaves.de/wp-content/uploads/2022/04/iwar_setup.jpg"><img alt="" class="alignnone size-full wp-image-25655" height="906" src="https://dwaves.de/wp-content/uploads/2022/04/iwar_setup.jpg" width="1219"></img></a>
# the installer should come up and just work fine
# leave it at default install path

# try to start<strong> THE GAME :)</strong>
<span style="color: #00ffff;">cd "${HOME}/iwar/drive_c/Program Files/Particle Systems/Independence War"</span>
<span style="color: #00ffff;">WINEPREFIX=${HOME}/iwar wine IWar.exe</span>

<strong><a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice1-software-rendering-mode.jpg"><img alt="" class="alignnone size-full wp-image-25720" height="522" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice1-software-rendering-mode.jpg" width="761"></img></a>
 <a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice2-software-rendering-mode.jpg"><img alt="" class="alignnone size-full wp-image-25721" height="511" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice2-software-rendering-mode.jpg" width="753"></img></a>

NICE! :) Space Pilots! ENGAGE!

<a href="https://duckduckgo.com/?q=star+trek+lower+decks&t=ffab&ia=web"><img alt="" class="alignnone wp-image-25735 size-full" height="500" src="https://dwaves.de/wp-content/uploads/2022/04/star-trek-lower-decks-marvel-at-the-stars.jpg" width="889"></img></a>

</strong><strong>the menus are still a bit glitchy but...
true space pilots are not scared by that
there are only 4 symbols:
<a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-menus-not-working-properly-yet-1.jpg"><img alt="" class="alignnone size-full wp-image-25734" height="502" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-menus-not-working-properly-yet-1.jpg" width="641"></img></a>

<a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-options-screenshot.png"><img alt="" class="alignnone size-full wp-image-25733" height="501" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-options-screenshot.png" width="636"></img></a></strong>

just4info:

i-war stored the path to the setup cdrom in the registry here…

nice 🙂 now what about full screen?

the workaround is like this:

  1. set monitor to 800×600
  2. config wine
  3. ``` WINEPREFIX=${HOME}/iwar winecfg

# create a new start.bat in the same folder as the IWar.exe
echo "IWar.exe -b -16 -800x600 -english" > "~/iwar/drive_c/Program Files/Particle Systems/Independence War/start.bat"

# start the game via wine explorer
cd "${HOME}/iwar/drive_c/Program Files/Particle Systems/Independence War"
WINEPREFIX=${HOME}/iwar wine explorer
```
4. search for the start.bat -r-click-> open & enjoy 🙂

playonlinux

it’s basically a gui for wine…

unfortunately same problem here… the game won’t detect CD change… possible workaround: copy the CD1 CD2 CD3 CD4 content simply into the game folder….

might also be interesting checking out:

https://www.playonlinux.com/en/

virtualbox.org?

while it is possible to run i-war in software rendering mode (not the smoother 3d accelerated mode that would be started with:

<span style="color: #00ffff;">"C:\Programme\Particle Systems\Independence War\IWar.exe" -b -16 -800x600 -english</span>

within a windows xp vm (set RAM to 256MBytes!)

there will probably be (never?) be proper 3DFx / nGlide / Voodoo support… https://www.virtualbox.org/ticket/7828

dosbox-x:

https://dosbox-x.com/

managed to install win 98 se… but was not able to mount any disk-image.iso (no kidding! it is a major hazzle!

and the documentation does not check out, sorry guys)

if no windoowze is needed to play the game… even BETTER! 🙂

as penguins try to win the war for independence from closed source 🙂

https://dosbox-x.com (NOT based on wine!)

  • “running Linux in an x86 or x86-64 PC … can also try running Windows games and applications using Wine.”
  • “Especially 32-bit Windows games and applications, typically work quite well, and this may be an easier and faster solution and provide better integration with your desktop environment.”
  • “16-bit or mixed 16/32-bit Windows games and applications are more problematic with Wine as modern 64-bit Linux distributions typically have the required kernel functionality for running 16-bit code (e.g., X86_16BIT and MODIFY_LDT_SYSCALL) disabled at kernel compile time.” (src)

compile instructions can be found here: https://github.com/joncampbell123/dosbox-x/blob/master/BUILD.md

https://dosbox-x.com/

https://dosbox-x.com/

<span style="color: #00ffff;">lsb_release -a</span>
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye

<span style="color: #00ffff;">su - root</span>
<span style="color: #00ffff;">apt search dosbox</span>
# installs old version
dosbox/stable<span style="color: #ff6600;"> 0.74-3-3</span> amd64
  x86 emulator with Tandy/Herc/CGA/EGA/VGA/SVGA graphics, sound and DOS

# to install latest version compile from src: <a href="https://github.com/joncampbell123/dosbox-x/">https://github.com/joncampbell123/dosbox-x/</a>
<span style="color: #00ffff;">su - root
apt update
</span>
# install requirements
<span style="color: #00ffff;">apt install automake gcc g++ make libncurses-dev nasm libsdl-net1.2-dev libsdl2-net-dev libpcap-dev libslirp-dev fluidsynth libfluidsynth-dev libavdevice58 libavformat-dev libavcodec-dev libavcodec-extra libavcodec-extra58 libswscale-dev libfreetype-dev libxkbfile-dev libxrandr-dev
</span>
# clone dosbox source to local machine
<span style="color: #00ffff;">git clone https://github.com/joncampbell123/dosbox-x.git</span>

# compile as non-root
<span style="color: #00ffff;">Ctrl+D</span> - log out root
<span style="color: #00ffff;">cd dosbox-x
./build-debug</span>
# install binaries as root
<span style="color: #00ffff;">su - root
make install</span>

# run as non-root
<span style="color: #00ffff;">Ctrl+D</span> - log out root
<span style="color: #00ffff;">dosbox-x</span>

# it is located here
<span style="color: #00ffff;">/usr/bin/dosbox-x</span>

# alternative: snapd setup
<span style="color: #00ffff;">apt install snapd
snap install core
snap install dosbox-x
</span>
snap remove dosbox-x

congratz! 🙂

first problems: keyboard / some keys “:” not working

for example with older version it was no problem typing “ö” and getting (US-KeybLayout) a “:”

to work around this problem, open a terminal type “:”, copy it to clipboard, start dosbox-x and hit Ctrl+F6 to paste it in

How to install Windows 98 SE?

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98#_installation_method_2

when the user wants to install windows 98 se

can get it from here: https://archive.org/details/win98se_201801

(but the serial is missing?)

  1. rename the iso to win98se.iso and put it into the user’s home directory
  2. create config file (also in user’s home directory):
    • <span style="color: #00ffff;">cd ~ wget <a href="https://dwaves.de/wp-content/uploads/2022/04/win98.conf_.txt">https://dwaves.de/wp-content/uploads/2022/04/win98.conf_.txt</a></span> <span style="color: #00ffff;">mv -v win98.conf_.txt win98.conf </span> 3. start it like this: - <span style="color: #00ffff;">dosbox -conf win98.conf</span>

the Ctrl+F6 hotkey comes in handy in the next steps, so simply copy and paste those instructions line by line:

# IMGMAKE hdd.img -t hd_8gig
<span style="color: #00ffff;">IMGMAKE hdd.img -t hd -size 16384 -force
IMGMOUNT C hdd.img
IMGMOUNT D win98.iso
</span># copy CD content to C: because during setup it will ask for more files from the CD
<span style="color: #00ccff;">XCOPY D:\WIN98 C:\WIN98 /I /E</span>
<span style="color: #00ffff;">IMGMOUNT A -bootcd D BOOT A:
BOOT A:</span>

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98#_installation_method_2

When the Windows installer reboots, and your back at the DOSBox-X Z:\> prompt. Close DOSBox-X and edit your win98.conf config file, and add the following lines in the [autoexec] section at the end of the file:

IMGMOUNT C hdd.img
IMGMOUNT D win98.iso
BOOT C:

hotkeys / shortcuts: Special Keys

These are the default keybindings. They can be changed using the keymapper.

Note: If you’re using a Mac and are having trouble with the function keys, you may need to set your F keys to function as function keys. You can do this by going to System Preferences > Keyboard, going to the Keyboard area, and checking the “Use all F1, F2, etc” box.

KeyAction*ALT-ENTERSwitch to full-screen (and back).ALT-PAUSE (ALT-F16 on OS X)Pause emulation.CTRL-F1Show the keymapper configuration screen,CTRL-F4Update cached information about mounted drives. Useful if you changed something on a mounted drive outside of DOSBox. Also cycles through disk images mounted using IMGMOUNT.CTRL-F5Save a screenshot (goes to capture folder).CTRL-ALT-F5Start/Stop recording of AVI video. NOTE: You may well have some problems with this, please see Recording Video for more information.CTRL-F6Start/Stop recording sound output to a wave file (goes to capture folder).CTRL-ALT-F7Start/Stop recording of OPL commands.CTRL-ALT-F8Start/Stop the recording of raw MIDI commands.CTRL-F7Decreases frameskip.CTRL-F8Increases frameskip.CTRL-F9Kill (close) DOSBox.CTRL-F10Capture/Release the mouse (if you need to use the mouse within DOSBox).CTRL-F11Decrease DOSBox cycles (slows down the emulation).CTRL-F12Increase DOSBox cycles (speeds up the emulation).ALT-F12*Unlock speed (turbo button).These default bindings are also documented in the README file accompanying the software.

Language Keys

When a keyboard layout is loaded:

CTRL+ALT+F2Switch between foreign layout and US layout.LEFT-ALT+RIGHT-SHIFTActivate dual layouts (for some keyboards, e.g. GK codepage 869 and RU codepage 808).LEFT-ALT+LEFT-SHIFTDeactivate dual layouts.For OS X you have to use additionally + [Applekey] for the same result

INS key is [Fn] + M on OS X.

For Linux you have to use additionally + [win] for the same result

src: https://www.dosbox.com/wiki/Special_Keys

creditz:

Links:

thanks for inspiration: https://darrengoossens.wordpress.com/2021/01/20/dosbox-x-on-debian-10-compiling-and-running/

https://snapcraft.io/install/dosbox-x/debian

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98

https://www.dosgames.com/game/duke-nukem-3d/ <- for the nerds that enjoyed this reckless guy

https://i-war2.com/

#linux #gnu #gnulinux #opensource #administration #sysops #wine #games #gnu-linux #game #iwar #space #simulator #spaceship

Originally posted at: https://dwaves.de/2022/04/21/gnu-linux-i-war-running-inside-gnu-linux-debian-11-via-wine-run-old-dos-games-and-windows-games-from-wine-to-dosbox-x-how-to-compile-from-latest-src-first-problems-keyboard-some-keys/

canoodle@nerdpol.ch

GNU Linux - i-war running inside GNU Linux Debian 11 via wine - run old dos games (and windo(w)s games) from wine to dosbox-x - how to compile from latest src - first problems: keyboard / some keys ":" not working

Remember Monkey Island and Tomb Raider 1? yeah… wanna play it on GNU Linux? yeeeessss!

over 1600 FREE DOS GAMES! -> https://www.dosgames.com/

and also this goody:

https://dwaves.de/2022/04/19/i-war-defiance-1997-how-to-setup-windows-7-and-windows-10-with-3d-acceleration-a-old-but-genious-scifi-space-ship-simulator-with-real-mass-drifting-inertia/

i-war: why this game is a genius space flight and fight sim

gate jump: from earth to jupiter (?)

check out the the 3rd trainings mission: docking with containers (fast) and throwing them through a ring X-D

[video width=”746″ height=”560″ mp4=”https://dwaves.de/wp-content/uploads/2022/04/i-war-pc-game-1997-independence-war-mission-docking-with-crates-and-throwing-them-through-a-ring-creativity-and-beauty-in-game-design-genious-autopilot-almost-messes-up.mp4″\]\[/video\]

… this could make for an interesting ship space soccer game… X-D (dock with the ball… and inertia throw it through the goal of the enemy X-D)

wine

[video width=”638″ height=”428″ mp4=”https://dwaves.de/wp-content/uploads/2022/04/i-war-running-inside-gnu-linux-debian-11-via-wine.mp4″\]\[/video\]

nice!

although this is the software rendering mode… happy that 1) sound works 2) 3D graphics work 🙂

(the menus don’t work but that’s not a biggie for i-war professionals X-D)

it’s a a bit of fiddling & getting used to, but actually got iwar setup working and the game also… what does not (currently) work is changing CDs (game won’t detect CD change, even when it clearly changed).

wine per default creates an folder called

/home/user/.wine/drive_c

which resembles the C:\ drive while installing, it will store files there.

install:

<span style="color: #00ffff;">su - root</span>
<span style="color: #00ffff;">apt update</span>
<span style="color: #00ffff;">apt install wine winetricks
</span># start the config tool<span style="color: #00ffff;">
winecfg
</span># start the config tool
# <a href="https://github.com/Winetricks/winetricks">https://github.com/Winetricks/winetricks</a><span style="color: #00ffff;">
winetricks
winetricks --optout
</span>
# mount cd image iso
<span style="color: #00ffff;">mkdir /media/user/cdrom</span>
<span style="color: #00ffff;">mount -t iso9660 -r -o loop /path/to/iwar-cd1.iso /media/user/cdrom

</span># wine setup, this will create a "prefix" "iwar"
# (aka a alias under which to store-remember the settings for this game)
<span style="color: #00ffff;">WINEPREFIX=${HOME}/games/iwar WINEARCH=win32 winecfg</span>
# in the dialogue
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg_select_windows_98se.png"><img alt="" class="alignnone size-full wp-image-25717" height="696" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg_select_windows_98se.png" width="607"></img></a>
# Applications → Windows Version → Windows 98 (hit apply)
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg-graphics-emulate-a-virtual-desktop-enabled.png"><img alt="" class="alignnone size-full wp-image-25718" height="506" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg-graphics-emulate-a-virtual-desktop-enabled.png" width="591"></img></a>
# Graphics → Emulate a virtual desktop → Desktop size: 1024x786

# not sure if this is actually needed
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg-cdrom-drive-d.png"><img alt="" class="alignnone size-full wp-image-25719" height="513" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg-cdrom-drive-d.png" width="612"></img></a>

# install game setup
<span style="color: #00ffff;">WINEPREFIX=${HOME}/iwar wine /media/user/cdrom/SETUP.EXE
</span>
<a href="https://dwaves.de/wp-content/uploads/2022/04/iwar_setup.jpg"><img alt="" class="alignnone size-full wp-image-25655" height="906" src="https://dwaves.de/wp-content/uploads/2022/04/iwar_setup.jpg" width="1219"></img></a>
# the installer should come up and just work fine
# leave it at default install path

# try to start<strong> THE GAME :)</strong>
<span style="color: #00ffff;">cd "${HOME}/iwar/drive_c/Program Files/Particle Systems/Independence War"</span>
<span style="color: #00ffff;">WINEPREFIX=${HOME}/iwar wine IWar.exe</span>

<strong><a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice1-software-rendering-mode.jpg"><img alt="" class="alignnone size-full wp-image-25720" height="522" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice1-software-rendering-mode.jpg" width="761"></img></a>
 <a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice2-software-rendering-mode.jpg"><img alt="" class="alignnone size-full wp-image-25721" height="511" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice2-software-rendering-mode.jpg" width="753"></img></a>

NICE! :) Space Pilots! ENGAGE!

<a href="https://duckduckgo.com/?q=star+trek+lower+decks&t=ffab&ia=web"><img alt="" class="alignnone wp-image-25735 size-full" height="500" src="https://dwaves.de/wp-content/uploads/2022/04/star-trek-lower-decks-marvel-at-the-stars.jpg" width="889"></img></a>

</strong><strong>the menus are still a bit glitchy but...
true space pilots are not scared by that
there are only 4 symbols:
<a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-menus-not-working-properly-yet-1.jpg"><img alt="" class="alignnone size-full wp-image-25734" height="502" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-menus-not-working-properly-yet-1.jpg" width="641"></img></a>

<a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-options-screenshot.png"><img alt="" class="alignnone size-full wp-image-25733" height="501" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-options-screenshot.png" width="636"></img></a></strong>

just4info:

i-war stored the path to the setup cdrom in the registry here…

nice 🙂 now what about full screen?

the workaround is like this:

  1. set monitor to 800×600
  2. config wine
  3. ``` WINEPREFIX=${HOME}/iwar winecfg

# create a new start.bat in the same folder as the IWar.exe
echo "IWar.exe -b -16 -800x600 -english" > "~/iwar/drive_c/Program Files/Particle Systems/Independence War/start.bat"

# start the game via wine explorer
cd "${HOME}/iwar/drive_c/Program Files/Particle Systems/Independence War"
WINEPREFIX=${HOME}/iwar wine explorer
```
4. search for the start.bat -r-click-> open & enjoy 🙂

playonlinux

it’s basically a gui for wine…

same problem here… the game won’t detect CD change…

might also be interesting checking out:

https://www.playonlinux.com/en/

virtualbox.org?

while it is possible to run i-war in software rendering mode (not the smoother 3d accelerated mode that would be started with:

<span style="color: #00ffff;">"C:\Programme\Particle Systems\Independence War\IWar.exe" -b -16 -800x600 -english</span>

within a windows xp vm (set RAM to 256MBytes!)

there will probably be (never?) be proper 3DFx / nGlide / Voodoo support… https://www.virtualbox.org/ticket/7828

dosbox-x:

https://dosbox-x.com/

managed to install win 98 se… but was not able to mount any disk-image.iso (no kidding! it is a major hazzle!

and the documentation does not check out, sorry guys)

if no windoowze is needed to play the game… even BETTER! 🙂

as penguins try to win the war for independence from closed source 🙂

https://dosbox-x.com (NOT based on wine!)

  • “running Linux in an x86 or x86-64 PC … can also try running Windows games and applications using Wine.”
  • “Especially 32-bit Windows games and applications, typically work quite well, and this may be an easier and faster solution and provide better integration with your desktop environment.”
  • “16-bit or mixed 16/32-bit Windows games and applications are more problematic with Wine as modern 64-bit Linux distributions typically have the required kernel functionality for running 16-bit code (e.g., X86_16BIT and MODIFY_LDT_SYSCALL) disabled at kernel compile time.” (src)

compile instructions can be found here: https://github.com/joncampbell123/dosbox-x/blob/master/BUILD.md

https://dosbox-x.com/

https://dosbox-x.com/

<span style="color: #00ffff;">lsb_release -a</span>
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye

<span style="color: #00ffff;">su - root</span>
<span style="color: #00ffff;">apt search dosbox</span>
# installs old version
dosbox/stable<span style="color: #ff6600;"> 0.74-3-3</span> amd64
  x86 emulator with Tandy/Herc/CGA/EGA/VGA/SVGA graphics, sound and DOS

# to install latest version compile from src: <a href="https://github.com/joncampbell123/dosbox-x/">https://github.com/joncampbell123/dosbox-x/</a>
<span style="color: #00ffff;">su - root
apt update
</span>
# install requirements
<span style="color: #00ffff;">apt install automake gcc g++ make libncurses-dev nasm libsdl-net1.2-dev libsdl2-net-dev libpcap-dev libslirp-dev fluidsynth libfluidsynth-dev libavdevice58 libavformat-dev libavcodec-dev libavcodec-extra libavcodec-extra58 libswscale-dev libfreetype-dev libxkbfile-dev libxrandr-dev
</span>
# clone dosbox source to local machine
<span style="color: #00ffff;">git clone https://github.com/joncampbell123/dosbox-x.git</span>

# compile as non-root
<span style="color: #00ffff;">Ctrl+D</span> - log out root
<span style="color: #00ffff;">cd dosbox-x
./build-debug</span>
# install binaries as root
<span style="color: #00ffff;">su - root
make install</span>

# run as non-root
<span style="color: #00ffff;">Ctrl+D</span> - log out root
<span style="color: #00ffff;">dosbox-x</span>

# it is located here
<span style="color: #00ffff;">/usr/bin/dosbox-x</span>

# alternative: snapd setup
<span style="color: #00ffff;">apt install snapd
snap install core
snap install dosbox-x
</span>
snap remove dosbox-x

congratz! 🙂

first problems: keyboard / some keys “:” not working

for example with older version it was no problem typing “ö” and getting (US-KeybLayout) a “:”

to work around this problem, open a terminal type “:”, copy it to clipboard, start dosbox-x and hit Ctrl+F6 to paste it in

How to install Windows 98 SE?

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98#_installation_method_2

when the user wants to install windows 98 se

can get it from here: https://archive.org/details/win98se_201801

(but the serial is missing?)

  1. rename the iso to win98se.iso and put it into the user’s home directory
  2. create config file (also in user’s home directory):
    • <span style="color: #00ffff;">cd ~ wget <a href="https://dwaves.de/wp-content/uploads/2022/04/win98.conf_.txt">https://dwaves.de/wp-content/uploads/2022/04/win98.conf_.txt</a></span> <span style="color: #00ffff;">mv -v win98.conf_.txt win98.conf </span> 3. start it like this: - <span style="color: #00ffff;">dosbox -conf win98.conf</span>

the Ctrl+F6 hotkey comes in handy in the next steps, so simply copy and paste those instructions line by line:

# IMGMAKE hdd.img -t hd_8gig
<span style="color: #00ffff;">IMGMAKE hdd.img -t hd -size 16384 -force
IMGMOUNT C hdd.img
IMGMOUNT D win98.iso
</span># copy CD content to C: because during setup it will ask for more files from the CD
<span style="color: #00ccff;">XCOPY D:\WIN98 C:\WIN98 /I /E</span>
<span style="color: #00ffff;">IMGMOUNT A -bootcd D BOOT A:
BOOT A:</span>

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98#_installation_method_2

When the Windows installer reboots, and your back at the DOSBox-X Z:\> prompt. Close DOSBox-X and edit your win98.conf config file, and add the following lines in the [autoexec] section at the end of the file:

IMGMOUNT C hdd.img
IMGMOUNT D win98.iso
BOOT C:

hotkeys / shortcuts: Special Keys

These are the default keybindings. They can be changed using the keymapper.

Note: If you’re using a Mac and are having trouble with the function keys, you may need to set your F keys to function as function keys. You can do this by going to System Preferences > Keyboard, going to the Keyboard area, and checking the “Use all F1, F2, etc” box.

KeyAction*ALT-ENTERSwitch to full-screen (and back).ALT-PAUSE (ALT-F16 on OS X)Pause emulation.CTRL-F1Show the keymapper configuration screen,CTRL-F4Update cached information about mounted drives. Useful if you changed something on a mounted drive outside of DOSBox. Also cycles through disk images mounted using IMGMOUNT.CTRL-F5Save a screenshot (goes to capture folder).CTRL-ALT-F5Start/Stop recording of AVI video. NOTE: You may well have some problems with this, please see Recording Video for more information.CTRL-F6Start/Stop recording sound output to a wave file (goes to capture folder).CTRL-ALT-F7Start/Stop recording of OPL commands.CTRL-ALT-F8Start/Stop the recording of raw MIDI commands.CTRL-F7Decreases frameskip.CTRL-F8Increases frameskip.CTRL-F9Kill (close) DOSBox.CTRL-F10Capture/Release the mouse (if you need to use the mouse within DOSBox).CTRL-F11Decrease DOSBox cycles (slows down the emulation).CTRL-F12Increase DOSBox cycles (speeds up the emulation).ALT-F12*Unlock speed (turbo button).These default bindings are also documented in the README file accompanying the software.

Language Keys

When a keyboard layout is loaded:

CTRL+ALT+F2Switch between foreign layout and US layout.LEFT-ALT+RIGHT-SHIFTActivate dual layouts (for some keyboards, e.g. GK codepage 869 and RU codepage 808).LEFT-ALT+LEFT-SHIFTDeactivate dual layouts.For OS X you have to use additionally + [Applekey] for the same result

INS key is [Fn] + M on OS X.

For Linux you have to use additionally + [win] for the same result

src: https://www.dosbox.com/wiki/Special_Keys

creditz:

Links:

thanks for inspiration: https://darrengoossens.wordpress.com/2021/01/20/dosbox-x-on-debian-10-compiling-and-running/

https://snapcraft.io/install/dosbox-x/debian

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98

https://www.dosgames.com/game/duke-nukem-3d/ <- for the nerds that enjoyed this reckless guy

https://i-war2.com/

#linux #gnu #gnulinux #opensource #administration #sysops #wine #games #gnu-linux #game #iwar #space #simulator #spaceship

Originally posted at: https://dwaves.de/2022/04/21/gnu-linux-i-war-running-inside-gnu-linux-debian-11-via-wine-run-old-dos-games-and-windows-games-from-wine-to-dosbox-x-how-to-compile-from-latest-src-first-problems-keyboard-some-keys/

canoodle@nerdpol.ch

GNU Linux - i-war running inside GNU Linux via wine - run old dos games (and windo(w)s games) from wine to dosbox-x - how to compile from latest src - first problems: keyboard / some keys ":" not working

Remember Monkey Island and Tomb Raider 1? yeah… wanna play it on GNU Linux? yeeeessss!

over 1600 FREE DOS GAMES! -> https://www.dosgames.com/

and also this goody:

https://dwaves.de/2022/04/19/i-war-defiance-1997-how-to-setup-windows-7-and-windows-10-with-3d-acceleration-a-old-but-genious-scifi-space-ship-simulator-with-real-mass-drifting-inertia/

wine

[video width=”638″ height=”428″ mp4=”https://dwaves.de/wp-content/uploads/2022/04/i-war-running-inside-gnu-linux-debian-11-via-wine.mp4″\]\[/video\]

nice!

although this is the software rendering mode… happy that 1) sound works 2) 3D graphics work 🙂

(the menus don’t work but that’s not a biggie for i-war professionals X-D)

it’s a a bit of fiddling & getting used to, but actually got iwar setup working and the game also… what does not (currently) work is changing CDs (game won’t detect CD change, even when it clearly changed).

wine per default creates an folder called

/home/user/.wine/drive_c

which resembles the C:\ drive while installing, it will store files there.

install:

<span style="color: #00ffff;">su - root</span>
<span style="color: #00ffff;">apt update</span>
<span style="color: #00ffff;">apt install wine winetricks
</span># start the config tool<span style="color: #00ffff;">
winecfg
</span># start the config tool
# <a href="https://github.com/Winetricks/winetricks">https://github.com/Winetricks/winetricks</a><span style="color: #00ffff;">
winetricks
winetricks --optout
</span>
# mount cd image iso
<span style="color: #00ffff;">mkdir /media/user/cdrom</span>
<span style="color: #00ffff;">mount -t iso9660 -r -o loop /path/to/iwar-cd1.iso /media/user/cdrom

</span># wine setup, this will create a "prefix" "iwar"
# (aka a alias under which to store-remember the settings for this game)
<span style="color: #00ffff;">WINEPREFIX=${HOME}/games/iwar WINEARCH=win32 winecfg</span>
# in the dialogue
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg_select_windows_98se.png"><img alt="" class="alignnone size-full wp-image-25717" height="696" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg_select_windows_98se.png" width="607"></img></a>
# Applications → Windows Version → Windows 98 (hit apply)
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg-graphics-emulate-a-virtual-desktop-enabled.png"><img alt="" class="alignnone size-full wp-image-25718" height="506" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg-graphics-emulate-a-virtual-desktop-enabled.png" width="591"></img></a>
# Graphics → Emulate a virtual desktop → Desktop size: 1024x786

# not sure if this is actually needed
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg-cdrom-drive-d.png"><img alt="" class="alignnone size-full wp-image-25719" height="513" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg-cdrom-drive-d.png" width="612"></img></a>

# install game setup
<span style="color: #00ffff;">WINEPREFIX=${HOME}/iwar wine /media/user/cdrom/SETUP.EXE
</span>
<a href="https://dwaves.de/wp-content/uploads/2022/04/iwar_setup.jpg"><img alt="" class="alignnone size-full wp-image-25655" height="906" src="https://dwaves.de/wp-content/uploads/2022/04/iwar_setup.jpg" width="1219"></img></a>
# the installer should come up and just work fine
# leave it at default install path

# try to start<strong> THE GAME :)</strong>
<span style="color: #00ffff;">cd "${HOME}/iwar/drive_c/Program Files/Particle Systems/Independence War"</span>
<span style="color: #00ffff;">WINEPREFIX=${HOME}/iwar wine IWar.exe</span>

<strong><a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice1-software-rendering-mode.jpg"><img alt="" class="alignnone size-full wp-image-25720" height="522" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice1-software-rendering-mode.jpg" width="761"></img></a> <a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice2-software-rendering-mode.jpg"><img alt="" class="alignnone size-full wp-image-25721" height="511" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice2-software-rendering-mode.jpg" width="753"></img></a> <a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-menus-not-working-properly-yet.jpg"><img alt="" class="alignnone size-full wp-image-25722" height="502" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-menus-not-working-properly-yet.jpg" width="641"></img></a>
NICE! :) Space Pilots! ENGAGE!</strong>

just4info:

i-war stored the path to the setup cdrom in the registry here…

playonlinux

it’s basically a gui for wine…

same problem here… the game won’t detect CD change…

might also be interesting checking out:

https://www.playonlinux.com/en/

dosbox-x:

managed to install win 98 se… but was not able to mount any disk-image.iso (no kidding! it is a major hazzle!

and the documentation does not check out, sorry guys)

if no windoowze is needed to play the game… even BETTER! 🙂

as penguins try to win the war for independence from closed source 🙂

https://dosbox-x.com (NOT based on wine!)

  • “running Linux in an x86 or x86-64 PC … can also try running Windows games and applications using Wine.”
  • “Especially 32-bit Windows games and applications, typically work quite well, and this may be an easier and faster solution and provide better integration with your desktop environment.”
  • “16-bit or mixed 16/32-bit Windows games and applications are more problematic with Wine as modern 64-bit Linux distributions typically have the required kernel functionality for running 16-bit code (e.g., X86_16BIT and MODIFY_LDT_SYSCALL) disabled at kernel compile time.” (src)

compile instructions can be found here: https://github.com/joncampbell123/dosbox-x/blob/master/BUILD.md

<span style="color: #00ffff;">lsb_release -a</span>
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye

<span style="color: #00ffff;">su - root</span>
<span style="color: #00ffff;">apt search dosbox</span>
# installs old version
dosbox/stable<span style="color: #ff6600;"> 0.74-3-3</span> amd64
  x86 emulator with Tandy/Herc/CGA/EGA/VGA/SVGA graphics, sound and DOS

# to install latest version compile from src: <a href="https://github.com/joncampbell123/dosbox-x/">https://github.com/joncampbell123/dosbox-x/</a>
<span style="color: #00ffff;">su - root
apt update
</span>
# install requirements
<span style="color: #00ffff;">apt install automake gcc g++ make libncurses-dev nasm libsdl-net1.2-dev libsdl2-net-dev libpcap-dev libslirp-dev fluidsynth libfluidsynth-dev libavdevice58 libavformat-dev libavcodec-dev libavcodec-extra libavcodec-extra58 libswscale-dev libfreetype-dev libxkbfile-dev libxrandr-dev
</span>
# clone dosbox source to local machine
<span style="color: #00ffff;">git clone https://github.com/joncampbell123/dosbox-x.git</span>

# compile as non-root
<span style="color: #00ffff;">Ctrl+D</span> - log out root
<span style="color: #00ffff;">cd dosbox-x
./build-debug</span>
# install binaries as root
<span style="color: #00ffff;">su - root
make install</span>

# run as non-root
<span style="color: #00ffff;">Ctrl+D</span> - log out root
<span style="color: #00ffff;">dosbox-x</span>

# it is located here
<span style="color: #00ffff;">/usr/bin/dosbox-x</span>

# alternative: snapd setup
<span style="color: #00ffff;">apt install snapd
snap install core
snap install dosbox-x
</span>
snap remove dosbox-x

congratz! 🙂

first problems: keyboard / some keys “:” not working

for example with older version it was no problem typing “ö” and getting (US-KeybLayout) a “:”

to work around this problem, open a terminal type “:”, copy it to clipboard, start dosbox-x and hit Ctrl+F6 to paste it in

How to install Windows 98 SE?

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98#_installation_method_2

when the user wants to install windows 98 se

can get it from here: https://archive.org/details/win98se_201801

(but the serial is missing?)

  1. rename the iso to win98se.iso and put it into the user’s home directory
  2. create config file (also in user’s home directory):
    • <span style="color: #00ffff;">cd ~ wget <a href="https://dwaves.de/wp-content/uploads/2022/04/win98.conf_.txt">https://dwaves.de/wp-content/uploads/2022/04/win98.conf_.txt</a></span> <span style="color: #00ffff;">mv -v win98.conf_.txt win98.conf </span> 3. start it like this: - <span style="color: #00ffff;">dosbox -conf win98.conf</span>

the Ctrl+F6 hotkey comes in handy in the next steps, so simply copy and paste those instructions line by line:

# IMGMAKE hdd.img -t hd_8gig
<span style="color: #00ffff;">IMGMAKE hdd.img -t hd -size 16384 -force
IMGMOUNT C hdd.img
IMGMOUNT D win98.iso
</span># copy CD content to C: because during setup it will ask for more files from the CD
<span style="color: #00ccff;">XCOPY D:\WIN98 C:\WIN98 /I /E</span>
<span style="color: #00ffff;">IMGMOUNT A -bootcd D BOOT A:
BOOT A:</span>

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98#_installation_method_2

When the Windows installer reboots, and your back at the DOSBox-X Z:\> prompt. Close DOSBox-X and edit your win98.conf config file, and add the following lines in the [autoexec] section at the end of the file:

IMGMOUNT C hdd.img
IMGMOUNT D win98.iso
BOOT C:

hotkeys / shortcuts: Special Keys

These are the default keybindings. They can be changed using the keymapper.

Note: If you’re using a Mac and are having trouble with the function keys, you may need to set your F keys to function as function keys. You can do this by going to System Preferences > Keyboard, going to the Keyboard area, and checking the “Use all F1, F2, etc” box.

KeyAction*ALT-ENTERSwitch to full-screen (and back).ALT-PAUSE (ALT-F16 on OS X)Pause emulation.CTRL-F1Show the keymapper configuration screen,CTRL-F4Update cached information about mounted drives. Useful if you changed something on a mounted drive outside of DOSBox. Also cycles through disk images mounted using IMGMOUNT.CTRL-F5Save a screenshot (goes to capture folder).CTRL-ALT-F5Start/Stop recording of AVI video. NOTE: You may well have some problems with this, please see Recording Video for more information.CTRL-F6Start/Stop recording sound output to a wave file (goes to capture folder).CTRL-ALT-F7Start/Stop recording of OPL commands.CTRL-ALT-F8Start/Stop the recording of raw MIDI commands.CTRL-F7Decreases frameskip.CTRL-F8Increases frameskip.CTRL-F9Kill (close) DOSBox.CTRL-F10Capture/Release the mouse (if you need to use the mouse within DOSBox).CTRL-F11Decrease DOSBox cycles (slows down the emulation).CTRL-F12Increase DOSBox cycles (speeds up the emulation).ALT-F12*Unlock speed (turbo button).These default bindings are also documented in the README file accompanying the software.

Language Keys

When a keyboard layout is loaded:

CTRL+ALT+F2Switch between foreign layout and US layout.LEFT-ALT+RIGHT-SHIFTActivate dual layouts (for some keyboards, e.g. GK codepage 869 and RU codepage 808).LEFT-ALT+LEFT-SHIFTDeactivate dual layouts.For OS X you have to use additionally + [Applekey] for the same result

INS key is [Fn] + M on OS X.

For Linux you have to use additionally + [win] for the same result

src: https://www.dosbox.com/wiki/Special_Keys

Links:

thanks for inspiration: https://darrengoossens.wordpress.com/2021/01/20/dosbox-x-on-debian-10-compiling-and-running/

https://snapcraft.io/install/dosbox-x/debian

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98

https://www.dosgames.com/game/duke-nukem-3d/ <- for the nerds that enjoyed this reckless guy

#linux #gnu #gnulinux #opensource #administration #sysops #wine #games #gnu-linux #game #iwar #space #simulator #spaceship

Originally posted at: https://dwaves.de/2022/04/21/gnu-linux-i-war-running-inside-gnu-linux-via-wine-run-old-dos-games-and-windows-games-from-wine-to-dosbox-x-how-to-compile-from-latest-src-first-problems-keyboard-some-keys-not-wo/

canoodle@nerdpol.ch

GNU Linux - i-war running inside GNU Linux via wine - run old dos games (and windo(w)s games) from wine to dosbox-x - how to compile from latest src - first problems: keyboard / some keys ":" not working

Remember Monkey Island and Tomb Raider 1? yeah… wanna play it on GNU Linux? yeeeessss!

over 1600 FREE DOS GAMES! -> https://www.dosgames.com/

and also this goody:

https://dwaves.de/2022/04/19/i-war-defiance-1997-how-to-setup-windows-7-and-windows-10-with-3d-acceleration-a-old-but-genious-scifi-space-ship-simulator-with-real-mass-drifting-inertia/

wine

[video width=”638″ height=”428″ mp4=”https://dwaves.de/wp-content/uploads/2022/04/i-war-running-inside-gnu-linux-debian-11-via-wine.mp4″\]\[/video\]

nice!

although this is the software rendering mode… happy that 1) sound works 2) 3D graphics work 🙂

(the menus don’t work but that’s not a biggie for i-war professionals X-D)

it’s a a bit of fiddling & getting used to, but actually got iwar setup working and the game also… what does not (currently) work is changing CDs (game won’t detect CD change, even when it clearly changed).

wine per default creates an folder called

/home/user/.wine/drive_c

which resembles the C:\ drive while installing, it will store files there.

install:

<span style="color: #00ffff;">su - root</span>
<span style="color: #00ffff;">apt update</span>
<span style="color: #00ffff;">apt install wine winetricks
</span># start the config tool<span style="color: #00ffff;">
winecfg
</span># start the config tool
# <a href="https://github.com/Winetricks/winetricks">https://github.com/Winetricks/winetricks</a><span style="color: #00ffff;">
winetricks
winetricks --optout
</span>
# mount cd image iso
<span style="color: #00ffff;">mkdir /media/user/cdrom</span>
<span style="color: #00ffff;">mount -t iso9660 -r -o loop /path/to/iwar-cd1.iso /media/user/cdrom

</span># wine setup, this will create a "prefix" "iwar"
# (aka a alias under which to store-remember the settings for this game)
<span style="color: #00ffff;">WINEPREFIX=${HOME}/games/iwar WINEARCH=win32 winecfg</span>
# in the dialogue
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg_select_windows_98se.png"><img alt="" class="alignnone size-full wp-image-25717" height="696" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg_select_windows_98se.png" width="607"></img></a>
# Applications → Windows Version → Windows 98 (hit apply)
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg-graphics-emulate-a-virtual-desktop-enabled.png"><img alt="" class="alignnone size-full wp-image-25718" height="506" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg-graphics-emulate-a-virtual-desktop-enabled.png" width="591"></img></a>
# Graphics → Emulate a virtual desktop → Desktop size: 1024x786

# not sure if this is actually needed
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg-cdrom-drive-d.png"><img alt="" class="alignnone size-full wp-image-25719" height="513" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg-cdrom-drive-d.png" width="612"></img></a>

# install game setup
<span style="color: #00ffff;">WINEPREFIX=${HOME}/iwar wine /media/user/cdrom/SETUP.EXE
</span>
<a href="https://dwaves.de/wp-content/uploads/2022/04/iwar_setup.jpg"><img alt="" class="alignnone size-full wp-image-25655" height="906" src="https://dwaves.de/wp-content/uploads/2022/04/iwar_setup.jpg" width="1219"></img></a>
# the installer should come up and just work fine
# leave it at default install path

# try to start<strong> THE GAME :)</strong>
<span style="color: #00ffff;">cd "${HOME}/iwar/drive_c/Program Files/Particle Systems/Independence War"</span>
<span style="color: #00ffff;">WINEPREFIX=${HOME}/iwar wine IWar.exe</span>

<strong><a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice1-software-rendering-mode.jpg"><img alt="" class="alignnone size-full wp-image-25720" height="522" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice1-software-rendering-mode.jpg" width="761"></img></a> <a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice2-software-rendering-mode.jpg"><img alt="" class="alignnone size-full wp-image-25721" height="511" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice2-software-rendering-mode.jpg" width="753"></img></a> <a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-menus-not-working-properly-yet.jpg"><img alt="" class="alignnone size-full wp-image-25722" height="502" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-menus-not-working-properly-yet.jpg" width="641"></img></a>
NICE! :) Space Pilots! ENGAGE!</strong>

just4info:

i-war stored the path to the setup cdrom in the registry here…

playonlinux

it’s basically a gui for wine…

same problem here… the game won’t detect CD change…

might also be interesting checking out:

https://www.playonlinux.com/en/

dosbox-x:

managed to install win 98 se… but was not able to mount any disk-image.iso (no kidding! it is a major hazzle!

and the documentation does not check out, sorry guys)

if no windoowze is needed to play the game… even BETTER! 🙂

as penguins try to win the war for independence from closed source 🙂

https://dosbox-x.com (also based on wine?)

compile instructions can be found here: https://github.com/joncampbell123/dosbox-x/blob/master/BUILD.md

<span style="color: #00ffff;">lsb_release -a</span>
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye

<span style="color: #00ffff;">su - root</span>
<span style="color: #00ffff;">apt search dosbox</span>
# installs old version
dosbox/stable<span style="color: #ff6600;"> 0.74-3-3</span> amd64
  x86 emulator with Tandy/Herc/CGA/EGA/VGA/SVGA graphics, sound and DOS

# to install latest version compile from src: <a href="https://github.com/joncampbell123/dosbox-x/">https://github.com/joncampbell123/dosbox-x/</a>
<span style="color: #00ffff;">su - root
apt update
</span>
# install requirements
<span style="color: #00ffff;">apt install automake gcc g++ make libncurses-dev nasm libsdl-net1.2-dev libsdl2-net-dev libpcap-dev libslirp-dev fluidsynth libfluidsynth-dev libavdevice58 libavformat-dev libavcodec-dev libavcodec-extra libavcodec-extra58 libswscale-dev libfreetype-dev libxkbfile-dev libxrandr-dev
</span>
# clone dosbox source to local machine
<span style="color: #00ffff;">git clone https://github.com/joncampbell123/dosbox-x.git</span>

# compile as non-root
<span style="color: #00ffff;">Ctrl+D</span> - log out root
<span style="color: #00ffff;">cd dosbox-x
./build-debug</span>
# install binaries as root
<span style="color: #00ffff;">su - root
make install</span>

# run as non-root
<span style="color: #00ffff;">Ctrl+D</span> - log out root
<span style="color: #00ffff;">dosbox-x</span>

# it is located here
<span style="color: #00ffff;">/usr/bin/dosbox-x</span>

# alternative: snapd setup
<span style="color: #00ffff;">apt install snapd
snap install core
snap install dosbox-x
</span>
snap remove dosbox-x

congratz! 🙂

first problems: keyboard / some keys “:” not working

for example with older version it was no problem typing “ö” and getting (US-KeybLayout) a “:”

to work around this problem, open a terminal type “:”, copy it to clipboard, start dosbox-x and hit Ctrl+F6 to paste it in

How to install Windows 98 SE?

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98#_installation_method_2

when the user wants to install windows 98 se

can get it from here: https://archive.org/details/win98se_201801

(but the serial is missing?)

  1. rename the iso to win98se.iso and put it into the user’s home directory
  2. create config file (also in user’s home directory):
    • <span style="color: #00ffff;">cd ~ wget <a href="https://dwaves.de/wp-content/uploads/2022/04/win98.conf_.txt">https://dwaves.de/wp-content/uploads/2022/04/win98.conf_.txt</a></span> <span style="color: #00ffff;">mv -v win98.conf_.txt win98.conf </span> 3. start it like this: - <span style="color: #00ffff;">dosbox -conf win98.conf</span>

the Ctrl+F6 hotkey comes in handy in the next steps, so simply copy and paste those instructions line by line:

# IMGMAKE hdd.img -t hd_8gig
<span style="color: #00ffff;">IMGMAKE hdd.img -t hd -size 16384 -force
IMGMOUNT C hdd.img
IMGMOUNT D win98.iso
</span># copy CD content to C: because during setup it will ask for more files from the CD
<span style="color: #00ccff;">XCOPY D:\WIN98 C:\WIN98 /I /E</span>
<span style="color: #00ffff;">IMGMOUNT A -bootcd D BOOT A:
BOOT A:</span>

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98#_installation_method_2

When the Windows installer reboots, and your back at the DOSBox-X Z:\> prompt. Close DOSBox-X and edit your win98.conf config file, and add the following lines in the [autoexec] section at the end of the file:

IMGMOUNT C hdd.img
IMGMOUNT D win98.iso
BOOT C:

hotkeys / shortcuts: Special Keys

These are the default keybindings. They can be changed using the keymapper.

Note: If you’re using a Mac and are having trouble with the function keys, you may need to set your F keys to function as function keys. You can do this by going to System Preferences > Keyboard, going to the Keyboard area, and checking the “Use all F1, F2, etc” box.

KeyAction*ALT-ENTERSwitch to full-screen (and back).ALT-PAUSE (ALT-F16 on OS X)Pause emulation.CTRL-F1Show the keymapper configuration screen,CTRL-F4Update cached information about mounted drives. Useful if you changed something on a mounted drive outside of DOSBox. Also cycles through disk images mounted using IMGMOUNT.CTRL-F5Save a screenshot (goes to capture folder).CTRL-ALT-F5Start/Stop recording of AVI video. NOTE: You may well have some problems with this, please see Recording Video for more information.CTRL-F6Start/Stop recording sound output to a wave file (goes to capture folder).CTRL-ALT-F7Start/Stop recording of OPL commands.CTRL-ALT-F8Start/Stop the recording of raw MIDI commands.CTRL-F7Decreases frameskip.CTRL-F8Increases frameskip.CTRL-F9Kill (close) DOSBox.CTRL-F10Capture/Release the mouse (if you need to use the mouse within DOSBox).CTRL-F11Decrease DOSBox cycles (slows down the emulation).CTRL-F12Increase DOSBox cycles (speeds up the emulation).ALT-F12*Unlock speed (turbo button).These default bindings are also documented in the README file accompanying the software.

Language Keys

When a keyboard layout is loaded:

CTRL+ALT+F2Switch between foreign layout and US layout.LEFT-ALT+RIGHT-SHIFTActivate dual layouts (for some keyboards, e.g. GK codepage 869 and RU codepage 808).LEFT-ALT+LEFT-SHIFTDeactivate dual layouts.For OS X you have to use additionally + [Applekey] for the same result

INS key is [Fn] + M on OS X.

For Linux you have to use additionally + [win] for the same result

src: https://www.dosbox.com/wiki/Special_Keys

Links:

thanks for inspiration: https://darrengoossens.wordpress.com/2021/01/20/dosbox-x-on-debian-10-compiling-and-running/

https://snapcraft.io/install/dosbox-x/debian

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98

https://www.dosgames.com/game/duke-nukem-3d/ <- for the nerds that enjoyed this reckless guy

#linux #gnu #gnulinux #opensource #administration #sysops #wine #games #gnu-linux #game #iwar #space #simulator #spaceship

Originally posted at: https://dwaves.de/2022/04/21/gnu-linux-i-war-running-inside-gnu-linux-via-wine-run-old-dos-games-and-windows-games-from-wine-to-dosbox-x-how-to-compile-from-latest-src-first-problems-keyboard-some-keys-not-wo/

canoodle@nerdpol.ch

GNU Linux - i-war running inside GNU Linux via wine - run old dos games (and windo(w)s games) from wine to dosbox-x - how to compile from latest src - first problems: keyboard / some keys ":" not working

Remember Monkey Island and Tomb Raider 1? yeah… wanna play it on GNU Linux? yeeeessss!

and also this goody:

https://dwaves.de/2022/04/19/i-war-defiance-1997-how-to-setup-windows-7-and-windows-10-with-3d-acceleration-a-old-but-genious-scifi-space-ship-simulator-with-real-mass-drifting-inertia/

wine

[video width=”638″ height=”428″ mp4=”https://dwaves.de/wp-content/uploads/2022/04/i-war-running-inside-gnu-linux-debian-11-via-wine.mp4″\]\[/video\]

nice!

although this is the software rendering mode… happy that 1) sound works 2) 3D graphics work 🙂

(the menus don’t work but that’s not a biggie for i-war professionals X-D)

it’s a a bit of fiddling & getting used to, but actually got iwar setup working and the game also… what does not (currently) work is changing CDs (game won’t detect CD change, even when it clearly changed).

wine per default creates an folder called

/home/user/.wine/drive_c

which resembles the C:\ drive while installing, it will store files there.

install:

<span style="color: #00ffff;">su - root</span>
<span style="color: #00ffff;">apt update</span>
<span style="color: #00ffff;">apt install wine winetricks
</span># start the config tool<span style="color: #00ffff;">
winecfg
</span># start the config tool
# <a href="https://github.com/Winetricks/winetricks">https://github.com/Winetricks/winetricks</a><span style="color: #00ffff;">
winetricks
winetricks --optout
</span>
# mount cd image iso
<span style="color: #00ffff;">mkdir /media/user/cdrom</span>
<span style="color: #00ffff;">mount -t iso9660 -r -o loop /path/to/iwar-cd1.iso /media/user/cdrom

</span># wine setup, this will create a "prefix" "iwar"
# (aka a alias under which to store-remember the settings for this game)
<span style="color: #00ffff;">WINEPREFIX=${HOME}/games/iwar WINEARCH=win32 winecfg</span>
# in the dialogue
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg_select_windows_98se.png"><img alt="" class="alignnone size-full wp-image-25717" height="696" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg_select_windows_98se.png" width="607"></img></a>
# Applications → Windows Version → Windows 98 (hit apply)
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg-graphics-emulate-a-virtual-desktop-enabled.png"><img alt="" class="alignnone size-full wp-image-25718" height="506" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg-graphics-emulate-a-virtual-desktop-enabled.png" width="591"></img></a>
# Graphics → Emulate a virtual desktop → Desktop size: 1024x786

# not sure if this is actually needed
<a href="https://dwaves.de/wp-content/uploads/2022/04/winecfg-cdrom-drive-d.png"><img alt="" class="alignnone size-full wp-image-25719" height="513" src="https://dwaves.de/wp-content/uploads/2022/04/winecfg-cdrom-drive-d.png" width="612"></img></a>

# install game setup
<span style="color: #00ffff;">WINEPREFIX=${HOME}/iwar wine /media/user/cdrom/SETUP.EXE
</span>
# the installer should come up and just work fine
# leave it at default install path

# try to start<strong> THE GAME :)</strong>
<span style="color: #00ffff;">cd "${HOME}/iwar/drive_c/Program Files/Particle Systems/Independence War"</span>
<span style="color: #00ffff;">WINEPREFIX=${HOME}/iwar wine IWar.exe</span>

<strong><a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice1-software-rendering-mode.jpg"><img alt="" class="alignnone size-full wp-image-25720" height="522" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice1-software-rendering-mode.jpg" width="761"></img></a> <a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice2-software-rendering-mode.jpg"><img alt="" class="alignnone size-full wp-image-25721" height="511" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-working-nice2-software-rendering-mode.jpg" width="753"></img></a> <a href="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-menus-not-working-properly-yet.jpg"><img alt="" class="alignnone size-full wp-image-25722" height="502" src="https://dwaves.de/wp-content/uploads/2022/04/i-war-gnu-linux-debian-11-wine-menus-not-working-properly-yet.jpg" width="641"></img></a>
NICE! :) Space Pilots! ENGAGE!</strong>

playonlinux

same problem here… the game won’t detect CD change…

might also be interesting checking out:

https://www.playonlinux.com/en/

dosbox-x:

https://dosbox-x.com (also based on wine?)

compile instructions can be found here: https://github.com/joncampbell123/dosbox-x/blob/master/BUILD.md

<span style="color: #00ffff;">lsb_release -a</span>
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye

<span style="color: #00ffff;">su - root</span>
<span style="color: #00ffff;">apt search dosbox</span>
# installs old version
dosbox/stable<span style="color: #ff6600;"> 0.74-3-3</span> amd64
  x86 emulator with Tandy/Herc/CGA/EGA/VGA/SVGA graphics, sound and DOS

# to install latest version compile from src: <a href="https://github.com/joncampbell123/dosbox-x/">https://github.com/joncampbell123/dosbox-x/</a>
<span style="color: #00ffff;">su - root
apt update
</span>
# install requirements
<span style="color: #00ffff;">apt install automake gcc g++ make libncurses-dev nasm libsdl-net1.2-dev libsdl2-net-dev libpcap-dev libslirp-dev fluidsynth libfluidsynth-dev libavdevice58 libavformat-dev libavcodec-dev libavcodec-extra libavcodec-extra58 libswscale-dev libfreetype-dev libxkbfile-dev libxrandr-dev
</span>
# clone dosbox source to local machine
<span style="color: #00ffff;">git clone https://github.com/joncampbell123/dosbox-x.git</span>

# compile as non-root
<span style="color: #00ffff;">Ctrl+D</span> - log out root
<span style="color: #00ffff;">cd dosbox-x
./build-debug</span>
# install binaries as root
<span style="color: #00ffff;">su - root
make install</span>

# run as non-root
<span style="color: #00ffff;">Ctrl+D</span> - log out root
<span style="color: #00ffff;">dosbox-x</span>

# it is located here
<span style="color: #00ffff;">/usr/bin/dosbox-x</span>

# alternative: snapd setup
<span style="color: #00ffff;">apt install snapd
snap install core
snap install dosbox-x
</span>
snap remove dosbox-x

congratz! 🙂

first problems: keyboard / some keys “:” not working

for example with older version it was no problem typing “ö” and getting (US-KeybLayout) a “:”

to work around this problem, open a terminal type “:”, copy it to clipboard, start dosbox-x and hit Ctrl+F6 to paste it in

How to install Windows 98 SE?

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98#_installation_method_2

when the user wants to install windows 98 se

can get it from here: https://archive.org/details/win98se_201801

(but the serial is missing?)

  1. rename the iso to win98se.iso and put it into the user’s home directory
  2. create config file (also in user’s home directory):
    • <span style="color: #00ffff;">cd ~ wget <a href="https://dwaves.de/wp-content/uploads/2022/04/win98.conf_.txt">https://dwaves.de/wp-content/uploads/2022/04/win98.conf_.txt</a></span> <span style="color: #00ffff;">mv -v win98.conf_.txt win98.conf </span> 3. start it like this: - <span style="color: #00ffff;">dosbox -conf win98.conf</span>

the Ctrl+F6 hotkey comes in handy in the next steps, so simply copy and paste those instructions line by line:

# IMGMAKE hdd.img -t hd_8gig
<span style="color: #00ffff;">IMGMAKE hdd.img -t hd -size 16384 -force
IMGMOUNT C hdd.img
IMGMOUNT D win98.iso
</span># copy CD content to C: because during setup it will ask for more files from the CD
<span style="color: #00ccff;">XCOPY D:\WIN98 C:\WIN98 /I /E</span>
<span style="color: #00ffff;">IMGMOUNT A -bootcd D BOOT A:
BOOT A:</span>

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98#_installation_method_2

When the Windows installer reboots, and your back at the DOSBox-X Z:\> prompt. Close DOSBox-X and edit your win98.conf config file, and add the following lines in the [autoexec] section at the end of the file:

IMGMOUNT C hdd.img
IMGMOUNT D win98.iso
BOOT C:

hotkeys / shortcuts: Special Keys

These are the default keybindings. They can be changed using the keymapper.

Note: If you’re using a Mac and are having trouble with the function keys, you may need to set your F keys to function as function keys. You can do this by going to System Preferences > Keyboard, going to the Keyboard area, and checking the “Use all F1, F2, etc” box.

KeyAction*ALT-ENTERSwitch to full-screen (and back).ALT-PAUSE (ALT-F16 on OS X)Pause emulation.CTRL-F1Show the keymapper configuration screen,CTRL-F4Update cached information about mounted drives. Useful if you changed something on a mounted drive outside of DOSBox. Also cycles through disk images mounted using IMGMOUNT.CTRL-F5Save a screenshot (goes to capture folder).CTRL-ALT-F5Start/Stop recording of AVI video. NOTE: You may well have some problems with this, please see Recording Video for more information.CTRL-F6Start/Stop recording sound output to a wave file (goes to capture folder).CTRL-ALT-F7Start/Stop recording of OPL commands.CTRL-ALT-F8Start/Stop the recording of raw MIDI commands.CTRL-F7Decreases frameskip.CTRL-F8Increases frameskip.CTRL-F9Kill (close) DOSBox.CTRL-F10Capture/Release the mouse (if you need to use the mouse within DOSBox).CTRL-F11Decrease DOSBox cycles (slows down the emulation).CTRL-F12Increase DOSBox cycles (speeds up the emulation).ALT-F12*Unlock speed (turbo button).These default bindings are also documented in the README file accompanying the software.

Language Keys

When a keyboard layout is loaded:

CTRL+ALT+F2Switch between foreign layout and US layout.LEFT-ALT+RIGHT-SHIFTActivate dual layouts (for some keyboards, e.g. GK codepage 869 and RU codepage 808).LEFT-ALT+LEFT-SHIFTDeactivate dual layouts.For OS X you have to use additionally + [Applekey] for the same result

INS key is [Fn] + M on OS X.

For Linux you have to use additionally + [win] for the same result

src: https://www.dosbox.com/wiki/Special_Keys

Links:

thanks for inspiration: https://darrengoossens.wordpress.com/2021/01/20/dosbox-x-on-debian-10-compiling-and-running/

https://snapcraft.io/install/dosbox-x/debian

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98

#linux #gnu #gnulinux #opensource #administration #sysops #wine #games #gnu-linux #game #iwar #space #simulator #spaceship

Originally posted at: https://dwaves.de/2022/04/21/gnu-linux-i-war-running-inside-gnu-linux-via-wine-run-old-dos-games-and-windows-games-from-wine-to-dosbox-x-how-to-compile-from-latest-src-first-problems-keyboard-some-keys-not-wo/

canoodle@nerdpol.ch

GNU Linux - i-war running inside GNU Linux via wine - run old dos games (and windo(w)s games) from wine to dosbox-x - how to compile from latest src - first problems: keyboard / some keys ":" not working

Remember Monkey Island and Tomb Raider 1? yeah… wanna play it on GNU Linux? yeeeessss!

and also this goody:

https://dwaves.de/2022/04/19/i-war-defiance-1997-how-to-setup-windows-7-and-windows-10-with-3d-acceleration-a-old-but-genious-scifi-space-ship-simulator-with-real-mass-drifting-inertia/

wine

[video width=”638″ height=”428″ mp4=”https://dwaves.de/wp-content/uploads/2022/04/i-war-running-inside-gnu-linux-debian-11-via-wine.mp4″\]\[/video\]

nice!

although this is the software rendering mode… happy that 1) sound works 2) 3D graphics work 🙂

(the menus don’t work but that’s not a biggie for i-war professionals X-D)

it’s a a bit of fiddling & getting used to, but actually got iwar setup working and the game also… what does not (currently) work is changing CDs (game won’t detect CD change, even when it clearly changed).

wine per default creates an folder called

/home/user/.wine/drive_c

which resembles the C:\ drive while installing, it will store files there.

install:

<span style="color: #00ffff;">su - root</span>
<span style="color: #00ffff;">apt update</span>
<span style="color: #00ffff;">apt install wine winetricks
</span># start the config tool<span style="color: #00ffff;">
winecfg
</span># start the config tool
# <a href="https://github.com/Winetricks/winetricks">https://github.com/Winetricks/winetricks</a><span style="color: #00ffff;">
winetricks
winetricks --optout
</span>
# mount cd image iso
<span style="color: #00ffff;">mkdir /media/user/cdrom</span>
<span style="color: #00ffff;">mount -t iso9660 -r -o loop /path/to/iwar-cd1.iso /media/user/cdrom

</span># start setup<span style="color: #00ffff;">
wine /media/user/cdrom/setup.exe
</span># the installer should come up
# install to C:\games\iwar
# (no filenames with spaces)

# when done, unmount<span style="color: #00ffff;">
umount /media/user/cdrom

</span># for some reason, was only able to start the game via<span style="color: #00ffff;">
wine explorer
<a href="https://dwaves.de/wp-content/uploads/2022/04/wine-explorer-starting-game.png"><img alt="" class="alignnone size-full wp-image-25707" height="542" src="https://dwaves.de/wp-content/uploads/2022/04/wine-explorer-starting-game.png" width="707"></img></a>
</span>-> navigate to C:\games\iwar\IWar.exe -> r-click - open

playonlinux

same problem here… the game won’t detect CD change…

might also be interesting checking out:

https://www.playonlinux.com/en/

dosbox-x:

https://dosbox-x.com (also based on wine?)

compile instructions can be found here: https://github.com/joncampbell123/dosbox-x/blob/master/BUILD.md

<span style="color: #00ffff;">lsb_release -a</span>
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye

<span style="color: #00ffff;">su - root</span>
<span style="color: #00ffff;">apt search dosbox</span>
# installs old version
dosbox/stable<span style="color: #ff6600;"> 0.74-3-3</span> amd64
  x86 emulator with Tandy/Herc/CGA/EGA/VGA/SVGA graphics, sound and DOS

# to install latest version compile from src: <a href="https://github.com/joncampbell123/dosbox-x/">https://github.com/joncampbell123/dosbox-x/</a>
<span style="color: #00ffff;">su - root
apt update
</span>
# install requirements
<span style="color: #00ffff;">apt install automake gcc g++ make libncurses-dev nasm libsdl-net1.2-dev libsdl2-net-dev libpcap-dev libslirp-dev fluidsynth libfluidsynth-dev libavdevice58 libavformat-dev libavcodec-dev libavcodec-extra libavcodec-extra58 libswscale-dev libfreetype-dev libxkbfile-dev libxrandr-dev
</span>
# clone dosbox source to local machine
<span style="color: #00ffff;">git clone https://github.com/joncampbell123/dosbox-x.git</span>

# compile as non-root
<span style="color: #00ffff;">Ctrl+D</span> - log out root
<span style="color: #00ffff;">cd dosbox-x
./build-debug</span>
# install binaries as root
<span style="color: #00ffff;">su - root
make install</span>

# run as non-root
<span style="color: #00ffff;">Ctrl+D</span> - log out root
<span style="color: #00ffff;">dosbox-x</span>

# it is located here
<span style="color: #00ffff;">/usr/bin/dosbox-x</span>

# alternative: snapd setup
<span style="color: #00ffff;">apt install snapd
snap install core
snap install dosbox-x
</span>
snap remove dosbox-x

congratz! 🙂

first problems: keyboard / some keys “:” not working

for example with older version it was no problem typing “ö” and getting (US-KeybLayout) a “:”

to work around this problem, open a terminal type “:”, copy it to clipboard, start dosbox-x and hit Ctrl+F6 to paste it in

How to install Windows 98 SE?

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98#_installation_method_2

when the user wants to install windows 98 se

can get it from here: https://archive.org/details/win98se_201801

(but the serial is missing?)

  1. rename the iso to win98se.iso and put it into the user’s home directory
  2. create config file (also in user’s home directory):
    • <span style="color: #00ffff;">cd ~ wget <a href="https://dwaves.de/wp-content/uploads/2022/04/win98.conf_.txt">https://dwaves.de/wp-content/uploads/2022/04/win98.conf_.txt</a></span> <span style="color: #00ffff;">mv -v win98.conf_.txt win98.conf </span> 3. start it like this: - <span style="color: #00ffff;">dosbox -conf win98.conf</span>

the Ctrl+F6 hotkey comes in handy in the next steps, so simply copy and paste those instructions line by line:

# IMGMAKE hdd.img -t hd_8gig
<span style="color: #00ffff;">IMGMAKE hdd.img -t hd -size 16384 -force
IMGMOUNT C hdd.img
IMGMOUNT D win98.iso
</span># copy CD content to C: because during setup it will ask for more files from the CD
<span style="color: #00ccff;">XCOPY D:\WIN98 C:\WIN98 /I /E</span>
<span style="color: #00ffff;">IMGMOUNT A -bootcd D BOOT A:
BOOT A:</span>

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98#_installation_method_2

When the Windows installer reboots, and your back at the DOSBox-X Z:\> prompt. Close DOSBox-X and edit your win98.conf config file, and add the following lines in the [autoexec] section at the end of the file:

IMGMOUNT C hdd.img
IMGMOUNT D win98.iso
BOOT C:

hotkeys / shortcuts: Special Keys

These are the default keybindings. They can be changed using the keymapper.

Note: If you’re using a Mac and are having trouble with the function keys, you may need to set your F keys to function as function keys. You can do this by going to System Preferences > Keyboard, going to the Keyboard area, and checking the “Use all F1, F2, etc” box.

KeyAction*ALT-ENTERSwitch to full-screen (and back).ALT-PAUSE (ALT-F16 on OS X)Pause emulation.CTRL-F1Show the keymapper configuration screen,CTRL-F4Update cached information about mounted drives. Useful if you changed something on a mounted drive outside of DOSBox. Also cycles through disk images mounted using IMGMOUNT.CTRL-F5Save a screenshot (goes to capture folder).CTRL-ALT-F5Start/Stop recording of AVI video. NOTE: You may well have some problems with this, please see Recording Video for more information.CTRL-F6Start/Stop recording sound output to a wave file (goes to capture folder).CTRL-ALT-F7Start/Stop recording of OPL commands.CTRL-ALT-F8Start/Stop the recording of raw MIDI commands.CTRL-F7Decreases frameskip.CTRL-F8Increases frameskip.CTRL-F9Kill (close) DOSBox.CTRL-F10Capture/Release the mouse (if you need to use the mouse within DOSBox).CTRL-F11Decrease DOSBox cycles (slows down the emulation).CTRL-F12Increase DOSBox cycles (speeds up the emulation).ALT-F12*Unlock speed (turbo button).These default bindings are also documented in the README file accompanying the software.

Language Keys

When a keyboard layout is loaded:

CTRL+ALT+F2Switch between foreign layout and US layout.LEFT-ALT+RIGHT-SHIFTActivate dual layouts (for some keyboards, e.g. GK codepage 869 and RU codepage 808).LEFT-ALT+LEFT-SHIFTDeactivate dual layouts.For OS X you have to use additionally + [Applekey] for the same result

INS key is [Fn] + M on OS X.

For Linux you have to use additionally + [win] for the same result

src: https://www.dosbox.com/wiki/Special_Keys

Links:

thanks for inspiration: https://darrengoossens.wordpress.com/2021/01/20/dosbox-x-on-debian-10-compiling-and-running/

https://snapcraft.io/install/dosbox-x/debian

https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98

#linux #gnu #gnulinux #opensource #administration #sysops #wine #games #gnu-linux #game #iwar #space #simulator #spaceship

Originally posted at: https://dwaves.de/2022/04/21/gnu-linux-i-war-running-inside-gnu-linux-via-wine-run-old-dos-games-and-windows-games-from-wine-to-dosbox-x-how-to-compile-from-latest-src-first-problems-keyboard-some-keys-not-wo/

canoodle@nerdpol.ch

GNU Linux -> Alternative Browsers :) (for Desktop and Mobile)

alternative Browsers for Mobile OS: Android

https://privacytests.org/android.html

https://privacytests.org/ios.html

alternative Browsers for Desktop OS:

update 2022-04

https://librewolf.net/

https://librewolf.net/

https://librewolf.net/docs/faq/

just for completion:

https://www.torproject.org/download/

https://www.torproject.org/download/

https://brave.com/

(currently best Browser in terms of privacy according to https://privacytests.org <- check em out they got a ton of alternative browsers also mobile)

(based on Google’s https://www.chromium.org/)

how to install for various GNU Linux distributions: https://brave.com/linux/

https://vivaldi.com/

https://vivaldi.com/

Vivaldi Web Browser Made in Norway (!) by Vivaldi Technologies

(based on Google’s https://www.chromium.org/)

(It is Open Source (get the source here)! but not under GPL, but this licence)

https://vivaldi.com/blog/technology/why-isnt-vivaldi-browser-open-source/

update 2020-10

(untested)

https://www.falkon.org/

update: 2018:

https://en.wikipedia.org/wiki/Vivaldi_(web_browser)

Vivaldi is a freeware, cross-platform web browser developed by Vivaldi Technologies, a company founded by Opera Software co-founder and former CEO Jon Stephenson von Tetzchner and Tatsuki Tomita. The browser was officially launched on April 12, 2016.[8][9] The browser is aimed at staunch technologists, heavy Internet users, and previous Opera web browser users disgruntled by Opera’s transition from the Presto layout engine to the Blink layout engine, which removed many popular features.[8][10] Vivaldi aims to revive the old, popular features of Opera 12.[11] The browser has gained popularity since the launch of its first technical preview.[12][13] The browser has 1 million users as of January 2017.[14]

Arora

it’s always a good idea to try out alternatives. 🙂 Welcome to Arora: (under Debian-Gnome3)

arora alternative webKit based browser (similar to firefox)_1

is a lightweight, cross-platform, free and open-source web browser

Arora is available for Linux, OS X, Windows, FreeBSD, OS/2, Haiku,[6] and any other operating system supported by the Qt toolkit. Arora’s name is a palindrome.

The browser’s features include tabbed browsing, bookmarks, browsing history, smart location bar, OpenSearch, session management, privacy mode, a download manager, WebInspector, and AdBlock.[7]

For several months, Meyer discontinued development of Arora due to uncertainty about the strictures of non-compete clauses by his employer; finally in July 2011, he announced that he would no longer contribute to the project.[8] Another software developer, Bastien Pederencino forked Arora’s source code, and published a variant called zBrowser – renamed Zeromus Browser in February 2013. In May 2013, Pederencino published another variant called BlueLightCat. In February 2014, some new patches were released on Arora’s github project page, with some Linux distributions incorporating the changes in their individual versions of Arora packages in their repositories.[9]

Source: https://en.wikipedia.org/wiki/Arora_(web_browser)

install

under Debian it’s easy as the usual:

<span style="color: #00ffff;">apt-get update</span>; # update apt package definitions
<span style="color: #00ffff;">apt-get install arora</span>; # install arora browser

Nice features:

  • fast, sleak, efficient, webkit without Google influenced Firefox (they get millions for making Google the default search engine…)
  • JavaScript and Images can be easily disabled
  • AdBlock INCLUDED 🙂
  • Nice Page-loading %percentage% view
  • Excellent https://startpage.com/ / https://ixquick.com/ integration 🙂
  • You can use all the Firefox-Hotkeys like Alt+D to select the Adress-Bar

I really love that loading %percentage display, that also shows you how big and bulky a website is: (maybe disable grafics or js) arora alternative webKit based browser (similar to firefox)_5 size of website

Nicely: Easy to disable image loading (speed up things) and javascript (security problem)

arora alternative webKit based browser (similar to firefox)_3

It has Adblock INCLUDED! 🙂 No extension needed! GOOD JOB!

arora alternative webKit based browser (similar to firefox)_2

What features i would love to see:

  • easy Tor enable/disable buttone 😀 (if that is not making it very bulky)

Links:

http://www.linuxuser.co.uk/reviews/arora-web-browser-review

Other alternative fast / lightweight browsers: https://en.wikipedia.org/wiki/Comparison_of_lightweight_web_browsers

https://sourceforge.net/projects/zbrowser-linux/

https://sourceforge.net/projects/bluelightcat/

http://www.vavai.net/2010/01/7-lightweight-linux-browsers-you-may-want-to-consider-for-fast-browsing-experience/

Midori

Check out the FAQ.

Midori is a cross-platform GTK browser based on Webkit. It tracks the latest Webkit very closely, so you always have a fresh version. Midori is very lightweight and fast, but still has a lot of features. Midori is amazingly quick and can be useful for sites like Facebook which tend to slow down Firefox. Users concerned about privacy will be interested to know that Midori features Duck Duck Go as the default search engine, offers built-in ad blocking and good cookie control. An old version (0.4.3) is currently included with Ubuntu 13.10, so it is recommended that you install from the Midori PPA.

SETUP:

tested on debian:

<span style="color: #00ffff;">apt-get update; apt-get install midori</span>; # let's test this ;)

QupZilla

QupZilla is a fast Qt and Webkit based browser that is available for multiple operating systems. It features a reasonably simple interface that will seem familiar to new users. The browser is packed with options, but really offers nothing new or unique when compared to Firefox or Chromium. The QupZilla team has put together a really solid browser, but without offering something unique, I find myself asking “what’s the point?” [Install Now](apt://qupzilla)

IceCat

icecat_browser_logo_gnuzilla_fsf

GNU IceCat, formerly known as GNU IceWeasel,[3] is a free software rebranding of the Mozilla Firefox web browser distributed by the GNU Project. It is compatible with Linux, Windows, Android and macOS.[4]

IceCat is released as a part of GNUzilla, GNU’s rebranding of a code base that used to be the Mozilla Application Suite. As an internet suite, GNUzilla also includes a mail & newsgroup program and an HTML composer.

Mozilla produces free and open-source software, but the binaries include trademarked artwork. The GNU Project attempts to keep IceCat in synchronization with upstream development of Firefox (long-term support versions) while removing all trademarked artwork and non-free add-ons. It also maintains a large list of free software plugins. In addition, it features a few security features not found in the mainline Firefox browser.

https://en.wikipedia.org/wiki/GNU_IceCat

QupZilla 1.6.6 on Debian-Gnome3

qupzilla_screenshot_browser

qupzilla_screenshot_about

install

debian linux

apt-get update; # you know what this does
apt-get install qupzilla; # install qupzilla

Screenshots

Import Bookmarks.html

it’s nice that Arora and QupZilla (the naming is terrible 2 remember :-D) allow importing Firefox/Iceweasel exported bookmarks.html.

qupzilla_screenshot_toolbar_bookmarks

QupZilla even gets all the website Icons for you….

qupzilla_screenshot_preferences_bookmark_importer qupzilla_screenshot_preferences_bookmark_importer2

qupzilla_screenshot_preferences_extensions qupzilla_screenshot_preferences_javascript_options qupzilla_screenshot_preferences_privacy qupzilla_screenshot_preferences_password_manager qupzilla_screenshot_preferences_downloads qupzilla_screenshot_preferences_browsing qupzilla_screenshot_preferences_browsing2 qupzilla_screenshot_preferences_tabs qupzilla_screenshot_preferences_appearance qupzilla_screenshot_preferences_general qupzilla_screenshot_preferences_adblock_settings

Web (Epiphany)

Web (formerly Epiphany) is the official web browser of the GNOME desktop. It is a very easy to use Webkit based browser with a simplistic user interface. In fact, Web is like the granddaddy of simple web browsers, delivering a simple user interface years before Chrome came on the scene. The browser is very speedy and polished, offering more features with each release. Web makes a great simple alternative to Firefox and Chrome. [Install Now](apt://epiphany-browser)

Bash / Command Line Browsers 🙂

Elinks

Elinks is a text based browser similar to the classic Lynx browser. It launches inside a Terminal window and presents you with only the text of websites, no images, javascript, or Flash. This can be rather useful for website developers to test their sites, or for reading information on sites that are full of annoying javascript and Flash ads.

that’s what http://google.de looks like in elinks:

<a href="https://dwaves.de/wp-content/uploads/2015/07/google.de-in-elinks.png"><img alt="google.de in elinks" class="alignnone size-full wp-image-5752" height="424" src="https://dwaves.de/wp-content/uploads/2015/07/google.de-in-elinks.png" width="910"></img></a>

Source: https://www.starryhope.com/10-alternative-browsers-for-ubuntu-linux/

#linux #gnu #gnulinux #opensource #administration #sysops #alternatives #browser #www #internet #web #firefox #Linux #Internet #Browser #Alternatives #html #css #js #browse #theweb #javascript #html5 #webrtc #vivaldi #android #mobile

Originally posted at: https://dwaves.de/2015/07/17/gnu-linux-alternative-browsers-for-desktop-and-mobile/

canoodle@nerdpol.ch

wie privatsphäre online verbessern mit tor und kostenloser vpn firmware für router / How to protect privacy online with tor and free vpn firmware for routers - how to setup tor node / Как защитить конфиденциальность онлайн с помощью tor и бесплатной прошивки vpn для роутеров - как настроить tor узел / Як захистити конфіденційність в Інтернеті за допомогою tor і безкоштовної прошивки VPN для маршрутизаторів - як налаштувати вузол tor / Cómo proteger la privacidad en línea con tor y firmware vpn gratuito para enrutadores: cómo configurar el nodo tor / Comment protéger la confidentialité en ligne avec tor et le firmware VPN gratuit pour routeurs - comment configurer le nœud tor / 如何使用路由器的tor和免费VPN固件在线保护隐私 - 如何设置tor节点

https://www.whatismyip.com/

https://www.whatismyip.com/

warning:

  • EN: ATTENTION! ABSOLUTE IT SECURITY AND ONLINE PRIVACY DO NOT EXIST! NO HOWTO IS PERFECT! IF THE PC/LAPTOP/SMARTPHONE ALREADY HAS SPYWARE PREINSTALLED (WINDOWS OR OSX) A VPNs & FIREWALLS ARE BETTER THAN NOTHING, BUT WILL NOT GIVE ABSOLUTE PROTECTION! YOU HAVE BEEN WARNED!
  • DE: ACHTUNG! DIE ABSOLUTE IT SICHERHEIT UND ONLINE PRIVATSPHÄRE GIBT ES NICHT! KEIN HOWTO IST PERFEKT! WENN DER PC/LAPTOP/SMARTPHONE SCHON SPYWARE (WINDOWS ODER OSX) VORINSTALLIERT HAT, BRINGT DAS GANZE AUCH NICHT VIEL! SIE WURDEN GEWARNT!
  • RU: ВНИМАНИЕ! АБСОЛЮТНОЙ ИТ-БЕЗОПАСНОСТИ И КОНФИДЕНЦИАЛЬНОСТИ В ИНТЕРНЕТЕ НЕ СУЩЕСТВУЕТ! НЕТ HOWTO ИДЕАЛЬНО! ЕСЛИ НА ПК / НОУТБУКЕ / СМАРТФОНЕ УЖЕ ПРЕДУСТАНОВЛЕНО ШПИОНСКОЕ ПО (WINDOWS ИЛИ OSX), VPN И БРАНДМАУЭРЫ ЛУЧШЕ, ЧЕМ НИЧЕГО, НО НЕ ДАДУТ АБСОЛЮТНОЙ ЗАЩИТЫ! ВЫ ПРЕДУПРЕЖДЕНЫ!
  • UA: УВАГА! АБСОЛЮТНОЇ ІТ-БЕЗПЕКИ ТА КОНФІДЕНЦІЙНОСТІ В ІНТЕРНЕТІ НЕ ІСНУЄ! ЖОДНЕ ХАУТО НЕ Є ІДЕАЛЬНИМ! ЯКЩО НА ПК/НОУТБУЦІ/СМАРТФОНІ ВЖЕ Є ПОПЕРЕДНЬО ІНСТАЛЬОВАНІ ШПИГУНСЬКІ ПРОГРАМИ (WINDOWS АБО OSX), VPN & FIREWALLS КРАЩЕ, НІЖ НІЧОГО, АЛЕ НЕ ДАСТЬ АБСОЛЮТНОГО ЗАХИСТУ! ВАС ПОПЕРЕДИЛИ!
  • ES: ¡ATENCIÓN! ¡LA SEGURIDAD ABSOLUTA DE TI Y LA PRIVACIDAD EN LÍNEA NO EXISTEN! ¡NO HOWTO ES PERFECTO! SI LA PC / COMPUTADORA PORTÁTIL / TELÉFONO INTELIGENTE YA TIENE SPYWARE PREINSTALADO (WINDOWS U OSX) UNA VPN Y FIREWALLS SON MEJORES QUE NADA, ¡PERO NO DARÁN PROTECCIÓN ABSOLUTA! ¡HAS SIDO ADVERTIDO!
  • FR: ATTENTION! LA SÉCURITÉ INFORMATIQUE ABSOLUE ET LA CONFIDENTIALITÉ EN LIGNE N’EXISTENT PAS! NO HOWTO EST PARFAIT! SI LE PC / ORDINATEUR PORTABLE / SMARTPHONE A DÉJÀ UN LOGICIEL ESPION PRÉINSTALLÉ (WINDOWS OU OSX), UN VPN ET DES PARE-FEU VALENT MIEUX QUE RIEN, MAIS NE DONNERONT PAS UNE PROTECTION ABSOLUE! VOUS ÊTES PRÉVENUS !
  • CN: 注意力!绝对的IT安全和在线隐私不存在!没有如何是完美的!如果PC/笔记本电脑/智能手机已经预装了间谍软件(WINDOWS或OSX),那么VPN和防火墙总比没有好,但不会提供绝对的保护!你被警告了!

start:

  • EN: Parallel to the real war, an information war is taking place on the Internet, which threatens the privacy of journalists and whistleblowers even more than usual, what possibilities are there to protect oneself?
    • Snowden: “At the end of the day, saying you don’t care about privacy because you have nothing to hide is no different than saying you don’t care about free speech because you have nothing to say.”
  • DE: Parallel zum realen Krieg findet ein Informations Krieg im Internet statt, welcher die Privatsphäre von Journalisten und Whistleblowern noch mehr bedroht als sonst, welche möglichkeiten gibt es sich zu schützen?
    • Snowden: “zu sagen, dass einem Privatsphäre egal ist, weil man nichts zu verbergen hat, ist nichts anderes, als zu sagen, dass einem die Redefreiheit egal ist weil man nichts zu sagen hat”
  • RU: Параллельно с реальной войной в интернете идет информационная война, которая угрожает частной жизни журналистов и осведомителей еще больше, чем обычно, какие есть возможности защитить себя?
    • Сноуден: В конце концов, сказать, что вы не заботитесь о конфиденциальности, потому что вам нечего скрывать, ничем не отличается от того, чтобы сказать, что вы не заботитесь о свободе слова, потому что вам нечего сказать.
  • UA: Паралельно з реальною війною в інтернеті йде інформаційна війна, яка загрожує приватному життю журналістів і викривачів навіть більше, ніж зазвичай, які можливості є, щоб захистити себе?
    • Сноуден: Зрештою, говорити, що ви не дбаєте про приватність, тому що вам нема чого приховувати, нічим не відрізняється від того, щоб сказати, що ви не дбаєте про свободу слова, тому що вам нема чого сказати.
  • ES: Paralelamente a la guerra real, se está produciendo una guerra de información en Internet, que amenaza la privacidad de periodistas y denunciantes aún más de lo habitual, ¿qué posibilidades hay para protegerse?
    • Snowden: Al final del día, decir que no te importa la privacidad porque no tienes nada que ocultar no es diferente a decir que no te importa la libertad de expresión porque no tienes nada que decir.
  • FR : Parallèlement à la vraie guerre, une guerre de l’information se déroule sur Internet, qui menace encore plus que d’habitude la vie privée des journalistes et des lanceurs d’alerte, quelles sont les possibilités de se protéger?
    • Snowden : En fin de compte, dire que vous ne vous souciez pas de la vie privée parce que vous n’avez rien à cacher n’est pas différent de dire que vous ne vous souciez pas de la liberté d’expression parce que vous n’avez rien à dire.
  • CN: 在真正的战争的同时,互联网上正在发生一场信息战,这比平时更威胁记者和举报人的隐私,有什么可能保护自己?
    • 斯诺登:归根结底,说你不关心隐私,因为你没有什么可隐瞒的,这与说你不关心言论自由没有什么不同,因为你无话可说。

0) dns servers:

test: https://dnsleaktest.com/

https://libredns.gr/

https://libredns.gr/

  • EN: there is a “phone book” server called DNS sever which are contacted before www.domain.com is loaded with the question: “which ip phone number has www.domain.com?” You have to be able to trust the DNS server, because it knows which websites have been visited.
  • DE: es gibt einen “Telefonbuch” Server genannt DNS sever welche vor jeder www.domain.com anfragen gefragt wird: welche ip-telefonnummer hat denn www.domain.com? Man muss dem DNS server vertrauen können, weil dieser weiss welche websites besucht wurden.
  • RU: Существует сервер «телефонной книги», называемый DNS-сервером, с которым связываются перед загрузкой www.domain.com с вопросом: «какой IP-номер телефона www.domain.com?» Вы должны быть в состоянии доверять DNS-серверу, потому что он знает, какие веб-сайты были посещены.
  • UA: існує сервер “телефонної книги” під назвою DNS sever, з яким зв’язуються, перш ніж www.domain.com завантажується з питанням: “який ip-номер телефону має www.domain.com?” Ви повинні бути в змозі довіряти DNS-серверу, тому що він знає, які веб-сайти були відвідані.
  • ES: hay un servidor de “libreta de teléfonos” llamado DNS sever que se contacta antes de www.domain.com se carga con la pregunta: “¿qué número de teléfono IP tiene www.domain.com?” Debe poder confiar en el servidor DNS, porque sabe qué sitios web se han visitado.
  • FR: il y a un serveur « annuaire téléphonique » appelé DNS sever qui est contacté avant que www.domain.com ne soit chargé avec la question: « quel numéro de téléphone IP a www.domain.com? » Vous devez pouvoir faire confiance au serveur DNS, car il sait quels sites Web ont été visités.
  • CN: 有一个名为DNS sever的”电话簿”服务器,在加载 www.domain.com 之前,我们会联系该服务器:”哪个IP电话号码 www.domain.com?您必须能够信任DNS服务器,因为它知道访问过哪些网站。

1) tor browser bundle

https://www.torproject.org/download/

https://www.torproject.org/download/

https://www.torproject.org/download/

  • EN: tor-browser-bundle, it is very simple to install and available for Windows, OSX and GNU Linux, it already has an alternative DNS server installed, please donate https://donate.torproject.org/ so that the project can be improved.
  • DE: tor-browser-bundle nutzen, es ist sehr einfach und für Windows, OSX und GNU Linux erhältlich, tor-browser-bundle hat schon einen alternativen DNS server eingebaut, bitte spenden https://donate.torproject.org/ damit das projekt verbessert werden kann.
  • RU: tor-browser-bundle, он очень прост в установке и доступен для Windows, OSX и GNU Linux, у него уже установлен альтернативный DNS-сервер, пожалуйста, пожертвуйте https://donate.torproject.org/, чтобы проект можно было улучшить.
  • UA: tor-browser-bundle, він дуже простий в установці і доступний для Windows, OSX і GNU Linux, у нього вже встановлений альтернативний DNS-сервер, будь ласка, пожертвуйте https://donate.torproject.org/, щоб проект можна було вдосконалити.
  • ES: tor-browser-bundle, es muy sencillo de instalar y está disponible para Windows, OSX y GNU Linux, ya tiene un servidor DNS alternativo instalado, por favor done https://donate.torproject.org/ para que el proyecto pueda ser mejorado.
  • FR: tor-browser-bundle, il est très simple à installer et disponible pour Windows, OSX et GNU Linux, il a déjà un serveur DNS alternatif installé, veuillez faire un don https://donate.torproject.org/ afin que le projet puisse être amélioré.
  • CN: tor-browser-bundle,它安装非常简单,可用于Windows,OSX和GNU Linux,它已经安装了替代DNS服务器,请捐赠 https://donate.torproject.org/ 以便可以改进项目。

2) freifunk firmware vpn

https://firmware.freifunk-ulm.de/

https://openwrt.org/toh/hwdata/tp-link/tp-link_tl-wr1043nd_v4

https://openwrt.org/toh/hwdata/tp-link/tp-link_tl-wr1043nd_v4

CHINA: https://openwrt.org/toh/hwdata/tp-link/tp-link_tl-wr1043nd_v4

CHINA: https://openwrt.org/toh/hwdata/tp-link/tp-link_tl-wr1043n_v5

CHINA: Outdoor AP TP-Link CPE210/CPE220 https://openwrt.org/toh/tp-link/cpe210

USA: https://openwrt.org/toh/netgear/r6120

GERMANY: https://openwrt.org/toh/avm/avm_fritz_box_4040

https://wiki.freifunk-mwu.de/w/Welchen_Router_kaufe_ich

https://wiki.freifunk-mwu.de/w/Welchen_Router_kaufe_ich

  • DE: hier updated man die firmware eines routers mit einer freifunk firmware, welche einen kostenlosen VPN tunnel entweder über Deutschland oder Schweden auf baut, man muss ein passende router modell haben (sehr günstig bei ebay).
  • EN: with freifunk the user updates a router with the freifunk firmware, which has a build-in free VPN tunnel via Germany or Sweden, the user needs a compatible router model.
  • RU: с freifunk пользователь обновляет маршрутизатор с прошивкой freifunk, которая имеет встроенный бесплатный VPN-туннель через Германию или Швецию, пользователю нужна совместимая модель маршрутизатора.
  • UA: з freifunk користувач оновлює маршрутизатор за допомогою прошивки freifunk, яка має вбудований безкоштовний VPN-тунель через Німеччину або Швецію, користувачеві потрібна сумісна модель маршрутизатора.
  • ES: con freifunk el usuario actualiza un router con el firmware freifunk, que tiene un túnel VPN gratuito incorporado a través de Alemania o Suecia, el usuario necesita un modelo de router compatible.
  • FR: avec freifunk, l’utilisateur met à jour un routeur avec le firmware freifunk, qui dispose d’un tunnel VPN gratuit intégré via l’Allemagne ou la Suède, l’utilisateur a besoin d’un modèle de routeur compatible.
  • CN: 使用freifunk,用户使用freifunk固件更新路由器,该固件具有通过德国或瑞典的内置免费VPN隧道,用户需要兼容的路由器型号。

3) tor server node

https://community.torproject.org/relay/setup/bridge/debian-ubuntu/

3.1) auto updates

  • EN: there should be as few other services as possible running on the vps, the more software is installed, the more problems there could be with automatic updates.
  • DE: es sollte auf der vps möglichst keine/wenig andere services laufen, umso mehr software installiert ist, umso mehr probleme könnte es bei automatischen updates geben.
  • RU: на vps должно быть как можно меньше других сервисов, чем больше программного обеспечения установлено, тем больше проблем может быть с автоматическими обновлениями.
  • UA: на vps має працювати якомога менше інших сервісів, чим більше програмного забезпечення встановлено, тим більше проблем може бути з автоматичними оновленнями.
  • ES: debería haber la menor cantidad posible de otros servicios ejecutándose en el vps, cuanto más software se instale, más problemas podría haber con las actualizaciones automáticas.
  • FR: il devrait y avoir le moins d’autres services possible fonctionnant sur les vps, plus il y a de logiciels installés, plus il pourrait y avoir de problèmes avec les mises à jour automatiques.
  • CN: vps上运行的其他服务应该尽可能少,安装的软件越多,自动更新的问题就越多。

crontab:

<span style="color: #00ffff;">lsb_release -a</span>; # tested
Description: Debian GNU/Linux 11 (bullseye)<span style="color: #00ffff;">

su - root</span>
<span style="color: #00ffff;">crontab -e</span>; # will run the update process every night at 3:00 am
<span style="color: #ff6600;">0 3 * * * /scripts/update.sh
</span>

update script:

<span style="color: #00ffff;">vim /scripts/update.sh</span>
<span style="color: #ff6600;">#!/bin/bash

echo "=== attempting automatic daily update on $(date '+%Y-%m-%d-%H:%M:%S') ===" >> /scripts/update.sh.log

apt update >> /scripts/update.sh.log
apt -y upgrade >> /scripts/update.sh.log
apt -y autoremove

echo "=== fine ===" >> /scripts/update.sh.log
echo "" >> /scripts/update.sh.log
</span>
  • eine mögliche tor config file könnte so aussehen:
<span style="color: #00ffff;">vim /etc/tor/torrc</span>

## Configuration file for a typical Tor user
## Last updated 9 October 2013 for Tor 0.2.5.2-alpha.
## (may or may not work for much older or much newer versions of Tor.)
##
## Lines that begin with "## " try to explain what's going on. Lines
## that begin with just "#" are disabled commands: you can enable them
## by removing the "#" symbol.
##
## See 'man tor', or https://www.torproject.org/docs/tor-manual.html,
## for more options you can use in this file.
##
## Tor will look for this file in various places based on your platform:
## https://www.torproject.org/docs/faq#torrc

## Tor opens a socks proxy on port 9050 by default -- even if you don't
## configure one below. Set "SocksPort 0" if you plan to run Tor only
## as a relay, and not make any local application connections yourself.
<span style="color: #ff6600;">SocksPort 0</span>
#SocksPort 9050 # Default: Bind to localhost:9050 for local connections.
#SocksPort 192.168.0.1:9100 # Bind to this address:port too.

## Entry policies to allow/deny SOCKS requests based on IP address.
## First entry that matches wins. If no SocksPolicy is set, we accept
## all (and only) requests that reach a SocksPort. Untrusted users who
## can access your SocksPort may be able to learn about the connections
## you make.
#SocksPolicy accept 192.168.0.0/16
#SocksPolicy reject *

## Logs go to stdout at level "notice" unless redirected by something
## else, like one of the below lines. You can have as many Log lines as
## you want.
##
## We advise using "notice" in most cases, since anything more verbose
## may provide sensitive information to an attacker who obtains the logs.
##
## Send all messages of level 'notice' or higher to /var/log/tor/notices.log
<span style="color: #ff6600;">Log notice file /var/log/tor/notices.log</span>
## Send every possible message to /var/log/tor/debug.log
# Log debug file /var/log/tor/debug.log
## Use the system log instead of Tor's logfiles
#Log notice syslog
## To send all messages to stderr:
#Log debug stderr

## Uncomment this to start the process in the background... or use
## --runasdaemon 1 on the command line. This is ignored on Windows;
## see the FAQ entry if you want Tor to run as an NT service.
#RunAsDaemon 1

## The directory for keeping all the keys/etc. By default, we store
## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
#DataDirectory /var/lib/tor

## The port on which Tor will listen for local connections from Tor
## controller applications, as documented in control-spec.txt.
#ControlPort 9051
## If you enable the controlport, be sure to enable one of these
## authentication methods, to prevent attackers from accessing it.
#HashedControlPassword 16:872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C
#CookieAuthentication 1

############### This section is just for location-hidden services ###

## Once you have configured a hidden service, you can look at the
## contents of the file ".../hidden_service/hostname" for the address
## to tell people.
##
## HiddenServicePort x y:z says to redirect requests on port x to the
## address y:z.

#HiddenServiceDir /var/lib/tor/hidden_service/
#HiddenServicePort 80 127.0.0.1:80

#HiddenServiceDir /var/lib/tor/other_hidden_service/
#HiddenServicePort 80 127.0.0.1:80
#HiddenServicePort 22 127.0.0.1:22

################ This section is just for relays #####################
#
## See https://www.torproject.org/docs/tor-doc-relay for details.

## Required: what port to advertise for incoming Tor connections.
ORPort 9001
## If you want to listen on a port other than the one advertised in
## ORPort (e.g. to advertise 443 but bind to 9090), you can do it as
## follows.  You'll need to do ipchains or other port forwarding
## yourself to make this work.
#ORPort 443 NoListen
#ORPort 127.0.0.1:9090 NoAdvertise

## The IP address or full DNS name for incoming connections to your
## relay. Leave commented out and Tor will guess.
#Address noname.example.com

## If you have multiple network interfaces, you can specify one for
## outgoing traffic to use.
# OutboundBindAddress 10.0.0.5

## A handle for your relay, so people don't have to refer to it by key.
<span style="color: #ff6600;">Nickname NICKNAMEOFTHETORNODE</span>

## Define these to limit how much relayed traffic you will allow. Your
## own traffic is still unthrottled. Note that RelayBandwidthRate must
## be at least 20 KB.
## Note that units for these config options are bytes per second, not bits
## per second, and that prefixes are binary prefixes, i.e. 2^10, 2^20, etc.
<span style="color: #ff6600;">RelayBandwidthRate 5000 KB  # Throttle traffic to 100KB/s (800Kbps)
RelayBandwidthBurst 7000 KB # But allow bursts up to 200KB/s (1600Kbps)</span>

## Use these to restrict the maximum traffic per day, week, or month.
## Note that this threshold applies separately to sent and received bytes,
## not to their sum: setting "4 GB" may allow up to 8 GB total before
## hibernating.
##
## Set a maximum of 4 gigabytes each way per period.
<span style="color: #ff6600;">AccountingMax 400 GB</span>
## Each period starts daily at midnight (AccountingMax is per day)
<span style="color: #ff6600;">AccountingStart day 00:00</span>
## Each period starts on the 3rd of the month at 15:00 (AccountingMax
## is per month)
#AccountingStart month 3 15:00

## Administrative contact information for this relay or bridge. This line
## can be used to contact you if your relay or bridge is misconfigured or
## something else goes wrong. Note that we archive and publish all
## descriptors containing these lines and that Google indexes them, so
## spammers might also collect them. You may want to obscure the fact that
## it's an email address and/or generate a new address for this purpose.
#ContactInfo Random Person 
## You might also include your PGP or GPG fingerprint if you have one:
<span style="color: #ff6600;">ContactInfo 0xFFFFFFFF user <privacy@yourdomain.com></span>

## Uncomment this to mirror directory information for others. Please do
## if you have enough bandwidth.
#DirPort 9030 # what port to advertise for directory connections
## If you want to listen on a port other than the one advertised in
## DirPort (e.g. to advertise 80 but bind to 9091), you can do it as
## follows.  below too. You'll need to do ipchains or other port
## forwarding yourself to make this work.
#DirPort 80 NoListen
#DirPort 127.0.0.1:9091 NoAdvertise
## Uncomment to return an arbitrary blob of html on your DirPort. Now you
## can explain what Tor is if anybody wonders why your IP address is
## contacting them. See contrib/tor-exit-notice.html in Tor's source
## distribution for a sample.
#DirPortFrontPage /etc/tor/tor-exit-notice.html

## Uncomment this if you run more than one Tor relay, and add the identity
## key fingerprint of each Tor relay you control, even if they're on
## different networks. You declare it here so Tor clients can avoid
## using more than one of your relays in a single circuit. See
## https://www.torproject.org/docs/faq#MultipleRelays
## However, you should never include a bridge's fingerprint here, as it would
## break its concealability and potentionally reveal its IP/TCP address.
#MyFamily $keyid,$keyid,...

## A comma-separated list of exit policies. They're considered first
## to last, and the first match wins. If you want to _replace_
## the default exit policy, end this with either a reject *:* or an
## accept *:*. Otherwise, you're _augmenting_ (prepending to) the
## default exit policy. Leave commented to just use the default, which is
## described in the man page or at
## https://www.torproject.org/documentation.html
##
## Look at https://www.torproject.org/faq-abuse.html#TypicalAbuses
## for issues you might encounter if you use the default exit policy.
##
## If certain IPs and ports are blocked externally, e.g. by your firewall,
## you should update your exit policy to reflect this -- otherwise Tor
## users will be told that those destinations are down.
##
## For security, by default Tor rejects connections to private (local)
## networks, including to your public IP address. See the man page entry
## for ExitPolicyRejectPrivate if you want to allow "exit enclaving".
##
#ExitPolicy accept *:6660-6667,reject *:* # allow irc ports but no more
#ExitPolicy accept *:119 # accept nntp as well as default exit policy
<span style="color: #ff6600;">ExitPolicy reject *:*</span> # no exits allowed

## Bridge relays (or "bridges") are Tor relays that aren't listed in the
## main directory. Since there is no complete public list of them, even an
## ISP that filters connections to all the known Tor relays probably
## won't be able to block all the bridges. Also, websites won't treat you
## differently because they won't know you're running Tor. If you can
## be a real relay, please do; but if not, be a bridge!
<span style="color: #ff6600;">BridgeRelay 1</span>
## By default, Tor will advertise your bridge to users through various
## mechanisms like <a href="https://bridges.torproject.org/">https://bridges.torproject.org/</a>. If you want to run
## a private bridge, for example because you'll give out your bridge
## address manually to your friends, uncomment this line:
#PublishServerDescriptor 0

viel Spass!

have fun!

Веселитесь!

Розважатися!

¡Que te diviertas!

Amusez-vous!

玩得愉快!

Links:

search the user’s tor node here: (if BridgeRelay 1) https://metrics.torproject.org/rs.html

it has nice graph that shows bandwidth usage etc.

https://tb-manual.torproject.org/bridges/

https://mastodon.social/@torproject

https://dnsleaktest.com/

#linux #gnu #gnulinux #opensource #administration #sysops #tor #vpn #privacy #dns #howto #surveillance #1984

Originally posted at: https://dwaves.de/2022/03/31/wie-privatsphare-online-verbessern-mit-tor-und-kostenloser-vpn-firmware-fur-router-how-to-protect-privacy-online-with-tor-and-free-vpn-firmware-for-routers-how-to-setup-tor-node-%d0%ba%d0%b0/

canoodle@nerdpol.ch

cool & tested GNU Linux software - excellent Jajuk Music Player for large libraries - re-discover your Music collection

mocplayer has become the default player:

https://dwaves.de/2020/09/05/gnu-debian-linux-install-and-autostart-play-music-from-command-line-with-mocp-mocplayer-musicplayer-music-on-console-play-music-without-gui-without-desktop-hotkeys-shortcuts-shortcuts-ho/

being written in C it is extremely resource efficient, being a terminal based GUI it is actually possible to ssh into the box that is playing the music, and change tracks “remotely”. NOICE!

BUT…. if you happen to have a large music library collection?

It seems that VLC AND MOCP are great piece of software, BUT they do not really shuffle that music.

They do not shuffle through all the songs in all sub sub sub directory with an obscure names and thus some songs won’t show up on the playlist and things get repetative fast.

Try jajuk! And rediscover your Music library!

<span style="color: #00ffff;">lsb_release -a</span>; # tesetd on
Description: Debian GNU/Linux 10 (buster)

and discover the gems in your song library that you totally missed out by constantly listening to your favourite playlist…

The user can tag a favorite song with a ⭐

https://www.jajuk.info/

  1. on newer Debian just manually download the latest release.tar.gz
  2. unpack:
    • tar fxvz jajuk-linux-11.0.tar.gz
    • start it from command line like this:
      • <span style="color: #00ffff;">./jajuk</span>
    • install mozo + java if not already:
    • <span style="color: #00ffff;">su - root; apt install <a href="https://dwaves.de/2016/10/10/gnu-linux-debian-gnome2-mate-desktop-how-to-modify-menu-menumanager-mozo/" style="color: #00ffff;">mozo</a> java-common</span> - and add an entry to “start” menu: - - should do the job

(in older Debian, this used to work it used to be part of the package libraryhttps://packages.debian.org/stretch/jajuk but was removed for whatever reason)

  1. first launch, it will ask for path to music library, let it search the media

listen to music how you want to listen to it… not how apple thinks, to sell more stuff. (R.I.P. Steve Jobs mad and angry creative genious of design and innovation)

… it automatically downloads album covers, the gui takes a little time to get used to.

being a Java based program, YES it needs some resources (CPU + RAM)

but it is worth it. (really finds all music in the deepest of directories, unlike VLC)

jajuk devices jajuk devices configure jajuk disable scan

have fun!

rock on! 🙂

related:

https://dwaves.de/2021/12/22/as-geeky-as-it-gets-floppydrives-make-music/

#linux #gnu #gnulinux #opensource #administration #sysops #music #mp3 #aac #player #gnu-linux #app #apps

Originally posted at: https://dwaves.de/2015/03/19/cool-tested-gnu-linux-software-excellent-jajuk-music-player-for-large-libraries-re-discover-your-music-collection/

canoodle@nerdpol.ch

how to setup basic LAMP stack GNU Linux Debian 11 - (Apache2 php8.1 MariaDB) (how to install xdebug - step debugging php requests in eclipse (LAMP web development stack))

the possibility to step (!) debug requests, as they appear on the server is a neat feature.

  • installed GNU Linux Debian 11 + MATE Desktop
  • installed apache2 + php8.1
  • installed eclipse
  • installed xdebug
    • and as usually, xdebug + eclipse do not like to cooperate out of the box, why?
    • because they can not agree on what port to use
      • latest eclipse wants to connect to xdebug per default on port 9000
      • latest xdebug wants to connect to eclipse per default on por 9003
      • c’mon guys. get in contact with each other and set a standard
      • (this has cost me about 2h of debugging around eclipse preferences and xdebug.ini files)
  • so the below guide is still usable:

https://dwaves.de/2020/05/05/how-to-setup-basic-lamp-stack-gnu-linux-debian-apache2-php7-3-mariadb-how-to-install-xdebug-step-debugging-php-requests-in-eclipse-pdt-on-debian-10-buster-lamp-web-development-stack/

    • ``` php -v; # is also a good way to test if xdebug is loaded when php is started vim /etc/php/8.1/apache2/php.ini; # no xdebug related settings are here vim /etc/php/8.1/cli/conf.d/20-xdebug.ini; # they are all here and read like:

    [XDebug]
    zend_extension=xdebug.so
    xdebug.mode=debug
    xdebug.start_with_request=trigger
    xdebug.start_with_request = 1
    xdebug.remote_autostart = on
    xdebug.log_level = 7
    xdebug.profiler_enable_trigger = 1
    xdebug.profiler_enable = 0
    xdebug.remote_enable = 1
    xdebug.profiler_output_dir = "/tmp"

    systemctl restart apache; # changes need to be made active by restarting webserver

    - when everything is installed go to eclipse -&gt; window -&gt; preferences 
    - [![](https://dwaves.de/wp-content/uploads/2022/03/eclipse-change-default-debugger-to-xdebug-and-xdebug-port-to-9003.png)](https://dwaves.de/wp-content/uploads/2022/03/eclipse-change-default-debugger-to-xdebug-and-xdebug-port-to-9003.png)
    - and also here: 
      - [![](https://dwaves.de/wp-content/uploads/2022/03/eclipse-change-default-debugger-to-xdebug-and-xdebug-port-to-9003_2.png)](https://dwaves.de/wp-content/uploads/2022/03/eclipse-change-default-debugger-to-xdebug-and-xdebug-port-to-9003_2.png)
    - if the developer r-click in the empty white space next to the code -&gt; 
    - [![](https://dwaves.de/wp-content/uploads/2022/03/eclipse-xdebug-php-debug-as-web-application.png)](https://dwaves.de/wp-content/uploads/2022/03/eclipse-xdebug-php-debug-as-web-application.png)
    - sees this message… 
    - - [![](https://dwaves.de/wp-content/uploads/2022/03/2022-03-YES-XDEBUG-IS-TALKING-TO-ECLIPSE-FINALLY-HURRAY.png)](https://dwaves.de/wp-content/uploads/2022/03/2022-03-YES-XDEBUG-IS-TALKING-TO-ECLIPSE-FINALLY-HURRAY.png)
      - releave… good god thanks they are talking to each other!
    

Tux_FlickFlack

what is btw excellent done is this “Open Source project funding and progress status page”:

so every user can see, what is the progress “where is it hanging” of the software project, is it a lack of funding?

suggestion: what still missing a “still todo” todo list, where user’s can post suggestions and vote on features 🙂

https://xdebug.org/log

https://xdebug.org/log

#linux #gnu #gnulinux #opensource #administration #sysops #php #apache2 #webserver #web #dev #html #javascript #apache #eclipse #xdebug #debugging #devphp #webdev #webdevelopment

Originally posted at: https://dwaves.de/2022/03/21/how-to-setup-basic-lamp-stack-gnu-linux-debian-11-apache2-php8-1-mariadb-how-to-install-xdebug-step-debugging-php-requests-in-eclipse-lamp-web-development-stack/

canoodle@nerdpol.ch

GNU Linux (Debian) 10 - how to access QNAP (TS-219P) NAS via NFSv4 - why QNAP has created a security mess - portmap query failed: RPC: Program/version mismatch / Protocol not supported

  1. create a new shared folder on the nas call it “data”
  2. enable NFSv4, disable NFSv3
  3. specify list of IPs that are allowed to access the NFSv4 share:
    • don’t forget to hit “Apply”
    • the idea is “anyway” to NAS<-directly-LAN-1000MBit->PC connect the NAS to the GNU Linux 10 based PC for maximum speed (PC will get fixed IP so no problem here)
<span style="color: #00ffff;">lsb_release -a</span>; # tested on
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:    10
Codename:   buster

su - root; # become root
# create mount point
<span style="color: #00ffff;">mkdir /media/user/nfs/</span>

# the actual mounting process
<span style="color: #00ffff;">mount -v -t nfs4 192.168.0.230:/data/ /media/user/nfs/
</span>

possible errors: portmap query failed: RPC: Program/version mismatch / Protocol not supported

in this case what fixed those errors, was to allow access from specific list of IPs:

mount.nfs4: timeout set for Mon Mar 14 16:32:09 2022
mount.nfs4: trying text-based options 'vers=4.2,addr=192.168.0.230,clientaddr=192.168.0.222'
mount.nfs4: mount(2): Protocol not supported
mount.nfs4: trying text-based options 'vers=4.1,addr=192.168.0.230,clientaddr=192.168.0.222'
mount.nfs4: mount(2): No such file or directory
mount.nfs4: trying text-based options 'addr=192.168.0.230'
mount.nfs4: prog 100003, trying vers=3, prot=6
mount.nfs4: trying 192.168.0.230 prog 100003 vers 3 prot TCP port 2049
mount.nfs4: portmap query retrying: RPC: Program/version mismatch
mount.nfs4: prog 100003, trying vers=3, prot=17
mount.nfs4: trying 192.168.0.230 prog 100003 vers 3 prot UDP port 2049
mount.nfs4: portmap query failed: RPC: Program/version mismatch
mount.nfs4: Protocol not supported

the QNAP itsec mess: NEVER ALLOW PUBLIC ACCESS TO USER’S QNAP NAS VIA INTERNET!

while QNAP THINKS it does goad by loading MASSIVE amounts of pre installed stuff on their devices and promising “your personal cloud” QNAP actually creates A GIANT SECURITY PROBLEM because users WRONGLY trusting that QNAP NAS DEVICES ARE SUPER SECURE GNU LINUX (BUSY)BOXES and then DIRECTLY make the NAS accessible via internet from outside via various (more or less secure protocols, SMB/FTP/NFS ALL NOT SECURE PROTOCOLS!)

QNAP NAS and NFS protocol are intended to be used behind a firewall within a company net to store only backups, not unique data that might get lost BECAUSE OF A FIRMWARE BUG. (it has happened before)

less is sometimes more:

some performance & security optimizations that should be done:

  • go through ALL settings and disable ALL service that are not needed (Windows-Samba-Sharing, AFS Apple FileSharing, UPnP)
  • furthermore: ssh into the nas and modify crontab to not start those services:
  • ``` # every hour make sure mytranscode media bloatware is stopped! 0 * * * * /etc/init.d/QMediaService.sh stop

# every hour make sure cups service is stopped (not needed free ram for something else)
0 * * * * /etc/init.d/cupsd.sh stop
```
- run ps uax to checkout any unecessary service that might still be running & consuming resources

here is the output in this case:

<span style="color: #00ffff;">ps uax</span>
  PID  Uid     VmSize Stat Command
    1 admin       644 S   init       
    2 admin           SW  [kthreadd]
    3 admin           SW  [ksoftirqd/0]
    6 admin           SW< [khelper]
    7 admin           SW  [kworker/u:1]
  139 admin           SW  [sync_supers]
  141 admin           SW  [bdi-default]
  142 admin           SW< [kblockd]
  148 admin           SW< [ata_sff]
  158 admin           SW  [khubd]
  160 admin           SW  [kethubd]
  165 admin           SW< [md]
  258 admin           SW  [kswapd0]
  259 admin           SW  [fsnotify_mark]
  261 admin           SW< [crypto]
  358 admin           SW  [scsi_eh_0]
  361 admin           SW  [scsi_eh_1]
  365 admin           SW  [kworker/u:3]
  374 admin           SW  [scsi_eh_2]
  377 admin           SW  [scsi_eh_3]
  388 admin           SW< [orion_spi]
  396 admin           SW  [mtdblock0]
  400 admin           SW  [mtdblock1]
  404 admin           SW  [mtdblock2]
  408 admin           SW  [mtdblock3]
  412 admin           SW  [mtdblock4]
  416 admin           SW  [mtdblock5]
  441 admin           SW< [deferwq]
  475 admin           SW  [flush-1:0]
  578 admin      1276 S   /bin/sh /sbin/hotplug usb 
  583 admin      1532 S   /bin/sh /etc/hotplug/usb.agent 
  651 admin           SW  [md9_raid1]
  688 admin           SW  [md13_raid1]
  773 admin           SW  [kjournald]
 1144 admin           SW< [dm-block-clone]
 1164 admin           SW  [mv_crypto]
 1177 admin           SW< [cryptodev_queue]
 1209 admin           SW< [rpciod]
 1216 admin           SW< [nfsiod]
 1223 admin           SW< [cifsiod]
 1234 admin           SW  [fnotify]
 1244 admin           SW< [cfg80211]
 1265 admin       472 S < qWatchdogd: keeping alive every 1 seconds...
 1459 admin           SW  [flush-9:0]
 1736 admin           SW  [kjournald]
 1873 admin       980 S   /sbin/modagent 
 1918 admin           SW  [md2_raid1]
 2167 admin      1304 S   /bin/sh /etc/init.d/mtp_run.sh 
 2310 admin       632 S   /sbin/kerrd 
 2407 admin           SW  [md0_raid1]
 2409 admin           RWN [md0_resync]
 2760 admin           SW  [jbd2/md0-8]
 2761 admin           SW< [ext4-dio-unwrit]
 2821 admin      1688 S   /sbin/hotswap 
 2826 admin      1428 S   /sbin/qsmartd -d 
 3161 admin      5604 S < /usr/local/apache/bin/fcgi-pm      -k start -f /etc/apache-sys-proxy.conf 
 3168 admin      6588 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/apache-sys-proxy.conf 
 3169 admin      6588 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/apache-sys-proxy.conf 
 3170 admin      6588 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/apache-sys-proxy.conf 
 3171 admin      6588 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/apache-sys-proxy.conf 
 3172 admin      6588 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/apache-sys-proxy.conf 
 3188 admin      6512 S   /usr/local/apache/bin/fcgi-pm       -k start -f /etc/apache-sys-proxy-ssl.conf 
 3196 httpdusr   6904 S   /usr/local/apache/bin/apache -k start -c PidFile /var/lock/apache.pid -f /etc/config/apache/apache.conf 
 3197 httpdusr   6904 S   /usr/local/apache/bin/apache -k start -c PidFile /var/lock/apache.pid -f /etc/config/apache/apache.conf 
 3198 httpdusr   6928 S   /usr/local/apache/bin/apache -k start -c PidFile /var/lock/apache.pid -f /etc/config/apache/apache.conf 
 3287 admin      3132 S   sshd: admin@pts/1                                        
 3315 admin      1484 S   -sh 
 3324 admin      1476 S   bash 
 3358 admin      9544 S   /usr/local/apache/bin/apache_proxys -k start -f /etc/apache-sys-proxy-ssl.conf 
 3398 admin      9472 S   /usr/local/apache/bin/apache_proxys -k start -f /etc/apache-sys-proxy-ssl.conf 
 3404 admin      9424 S   /usr/local/apache/bin/apache_proxys -k start -f /etc/apache-sys-proxy-ssl.conf 
 3420 admin      9140 S   /usr/local/apache/bin/apache_proxys -k start -f /etc/apache-sys-proxy-ssl.conf 
 3421 admin      9164 S   /usr/local/apache/bin/apache_proxys -k start -f /etc/apache-sys-proxy-ssl.conf 
 4017 admin      6588 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/apache-sys-proxy.conf 
# yes it runs a full blown mysql database server
<span style="color: #ff6600;"> 4244 admin     45236 S   /usr/local/mariadb/bin/mysqld --defaults-file=/usr/local/mariadb/my-mariadb.cnf --basedir=/usr/local/mariadb --datadir=/share/MD0_DATA/.system/data --plugin-dir=/usr/local/mariadb/lib/</span>
 4365 admin      2388 S   /sbin/qpkgd -d0 
 4420 guest      1084 S   /usr/sbin/dbus-daemon --system 
 5328 admin      2380 S   /usr/local/sbin/_thttpd_ -p 58080 -nor -nos -u admin -d /home/httpd -c **.* -h 127.0.0.1 -i /var/lock/._thttpd_.pid 
 5609 admin     22128 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/apache-sys-proxy.conf 
 5718 httpdusr   1148 S   /sbin/lpb_scheduler -d 
 5760 admin      1560 S   /sbin/genthd 
 5948 admin           SW< [krfcommd]
 5973 admin      1480 S   /usr/sbin/bluetoothd 
 5982 admin       428 S   /usr/sbin/agent --adapter hci0 
 6044 admin      1916 S   /usr/local/sbin/remote_folder_daemon --reset 
 6202 admin       912 S   /usr/sbin/ntpdated 
 6216 admin      1600 S   /usr/sbin/upsutil 
 6478 admin      2756 S   /usr/sbin/sshd -f /etc/config/ssh/sshd_config -p 1234 
 6744 admin     23660 S   /usr/local/apache/bin/apache_proxys -k start -f /etc/apache-sys-proxy-ssl.conf 
 7211 admin      1348 S   /usr/bin/lunportman 
 7264 admin      2080 S   /sbin/bcclient 
 7347 admin      1944 S   /sbin/picd 
 7350 admin      1724 S   /sbin/gpiod 
 7355 admin      1868 S   /sbin/hwmond 
 7432 admin       816 S N /usr/bin/rsyncd --daemon --sever-mode=1 --qnap-bwlimit 
 7728 admin      1880 S   /sbin/hd_util 
 7730 admin       552 S   /sbin/gen_bandwidth -r -i 5 
 7863 admin      1128 S   /bin/sh /etc/init.d/klogd.sh start 
 7872 admin      1748 S   qNoticeEngined: Write notice is enabled...
 7885 admin      1304 S   /sbin/qsyslogd 
 7893 admin      1392 S   /sbin/qShield 
 7907 admin      1956 S   qLogEngined: Write log is disabled...
 7964 admin       460 S   /bin/dd if=/proc/kmsg of=/mnt/HDA_ROOT/.logs/kmsg bs=1 count=1024000 
 8131 admin           SW< [iscsi_eh]
 8179 admin           SW  [qnap_et]
 8250 admin       448 S   /sbin/iscsid --config=/etc/config/iscsi/sbin/iscsid.conf --initiatorname=/etc/iscsi/initiatorname.iscsi 
 8251 admin      2248 S < /sbin/iscsid --config=/etc/config/iscsi/sbin/iscsid.conf --initiatorname=/etc/iscsi/initiatorname.iscsi 
 8296 admin      1512 S   /sbin/vdd_control -d 
 8943 admin       820 S   /usr/bin/portmap 
 9189 admin       232 S   /usr/sbin/rpc.rquotad -p 30002 
 9465 admin      2476 S   /usr/sbin/rpc.mountd -p 30000 -F 
 9628 admin           SW  [lockd]
 9629 admin           SW< [nfsd4]
 9631 admin           SW< [nfsd4_callbacks]
 9633 admin           SW  [nfsd]
 9634 admin           SW  [nfsd]
 9635 admin           SW  [nfsd]
 9636 admin           SW  [nfsd]
 9637 admin           SW  [nfsd]
 9638 admin           SW  [nfsd]
 9639 admin           SW  [nfsd]
 9640 admin           SW  [nfsd]
 9775 admin      1440 S   /usr/sbin/rpc.idmapd 
 9784 admin      1940 S   /usr/sbin/rpc.statd -p 30001 
 9826 admin      1280 S   /sbin/daemon_mgr 
 9886 admin      2012 S   /usr/local/bin/qb_daemon -d 7 
 9906 admin      2048 S   /usr/bin/qsyncman 
10321 admin      2032 S   /sbin/upnpcd -i 300 
11289 admin      3860 S   /usr/local/apache/bin/apache-dav -k start -f /etc/apache-dav-sys.conf 
11296 admin      2024 S   /usr/local/apache/bin/apache-dav -k start -f /etc/apache-dav-sys.conf 
11516 admin       592 S   /sbin/getty 115200 ttyS0 
11731 admin     23484 S   /usr/local/apache/bin/apache -k start -c PidFile /var/lock/apache.pid -f /etc/config/apache/apache.conf 
12927 admin           SW  [kworker/0:1]
14999 admin      3136 S   sshd: admin@pts/2                                        
15024 admin      1488 S   -sh 
15291 admin      1568 S   bash 
15461 admin      8360 S   /usr/local/apache/bin/apache_proxys -k start -f /etc/apache-sys-proxy-ssl.conf 
16254 admin           SW  [kworker/0:2]
16963 admin           SW  [flush-9:9]
18716 admin       748 S   /usr/sbin/crond -l 9 -c /tmp/cron/crontabs 
18893 admin      8932 S   /usr/local/apache/bin/apache_proxys -k start -f /etc/apache-sys-proxy-ssl.conf 
19588 admin           SW  [kworker/0:0]
20944 admin      6764 S   /usr/local/apache/bin/apache_proxys -k start -f /etc/apache-sys-proxy-ssl.conf 
23461 admin           SW  [kworker/0:3]
23685 admin       400 S   /bin/sleep 1 
23686 admin       784 R   ps uax 
23687 admin      1848 R   chartReq.cgi 
23688 admin      1076 S   /usr/local/sbin/_thttpd_ -p 58080 -nor -nos -u admin -d /home/httpd -c **.* -h 127.0.0.1 -i /var/lock/._thttpd_.pid 
30445 admin           SW  [flush-9:13]

related articles:

https://dwaves.de/2021/10/11/gnu-linux-debian-how-to-setup-nfs-server-and-mount-nfs-share/

manpages:

mount.nfs4.man.txt

#linux #gnu #gnulinux #opensource #administration #sysops #qnap #nas #nfs #storage

Originally posted at: https://dwaves.de/2022/03/14/gnu-linux-debian-10-how-to-access-qnap-ts-219p-nas-via-nfsv4-why-qnap-has-created-a-security-mess-portmap-query-failed-rpc-program-version-mismatch-protocol-not-supported/

canoodle@nerdpol.ch

GNU Linux (Debian) 10 - how to access QNAP (TS-219P) NAS via NFSv4 - portmap query failed: RPC: Program/version mismatch / Protocol not supported

  1. create a new shared folder on the nas call it “data”
  2. enable NFSv4, disable NFSv3
  3. specify list of IPs that are allowed to access the NFSv4 share:
    • don’t forget to hit “Apply”
    • the idea is “anyway” to NAS<-directly-LAN-1000MBit->PC connect the NAS to the GNU Linux 10 based PC for maximum speed (PC will get fixed IP so no problem here)
<span style="color: #00ffff;">lsb_release -a</span>; # tested on
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:    10
Codename:   buster

su - root; # become root
# create mount point
<span style="color: #00ffff;">mkdir /media/user/nfs/</span>

# the actual mounting process
<span style="color: #00ffff;">mount -v -t nfs4 192.168.0.230:/data/ /media/user/nfs/
</span>

possible errors: portmap query failed: RPC: Program/version mismatch / Protocol not supported

in this case what fixed those errors, was to allow access from specific list of IPs:

mount.nfs4: timeout set for Mon Mar 14 16:32:09 2022
mount.nfs4: trying text-based options 'vers=4.2,addr=192.168.0.230,clientaddr=192.168.0.222'
mount.nfs4: mount(2): Protocol not supported
mount.nfs4: trying text-based options 'vers=4.1,addr=192.168.0.230,clientaddr=192.168.0.222'
mount.nfs4: mount(2): No such file or directory
mount.nfs4: trying text-based options 'addr=192.168.0.230'
mount.nfs4: prog 100003, trying vers=3, prot=6
mount.nfs4: trying 192.168.0.230 prog 100003 vers 3 prot TCP port 2049
mount.nfs4: portmap query retrying: RPC: Program/version mismatch
mount.nfs4: prog 100003, trying vers=3, prot=17
mount.nfs4: trying 192.168.0.230 prog 100003 vers 3 prot UDP port 2049
mount.nfs4: portmap query failed: RPC: Program/version mismatch
mount.nfs4: Protocol not supported

manpages:

mount.nfs4.man.txt

#linux #gnu #gnulinux #opensource #administration #sysops #qnap #nas #nfs #storage

Originally posted at: https://dwaves.de/2022/03/14/gnu-linux-debian-10-how-to-access-qnap-ts-219p-nas-via-nfsv4-portmap-query-failed-rpc-program-version-mismatch-protocol-not-supported/

canoodle@nerdpol.ch

GNU Linux Debian 11 (bullseye) - how to install virtualbox 6.1

<span style="color: #00ffff;">lsb_release -a</span>; # tested with
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye

<span style="color: #00ffff;">su - root
wget https://download.virtualbox.org/virtualbox/6.1.32/virtualbox-6.1_6.1.32-149290~Debian~bullseye_amd64.deb
</span>sha512sum 7e977fde8a2fc370d7df24f761e75eced308ea17037113db877bd799abec4a3a9b6324fcbfda2d2a67d63fbe23b822abbd36ab0f9af4fc5c352df04a97dbe550

# needs to be dpkg installed manually

<span style="color: #00ffff;">apt update && apt upgrade

apt install software-properties-common libvpx6 libqt5opengl5 libqt5x11extras5 libsdl1.2debian 

linux-headers-amd64 linux-headers-$(uname -r) gcc make

dpkg -i virtualbox-6.1_6.1.32-149290~Debian~bullseye_amd64.deb

/sbin/vboxconfig
</span>

#linux #gnu #gnulinux #opensource #administration #sysops #oracle #virtualbox #debian #gnu-linux

Originally posted at: https://dwaves.de/2022/02/24/gnu-linux-debian-11-bullseye-how-to-install-virtualbox-6-1/

canoodle@nerdpol.ch

how to use vim's build in history (re run re play commands) by line number

prepare:

<span style="color: #00ffff;">
echo "com -nargs=1 HI exe histget('c', )" >> ~/.vimrc</span>

then start vim and type to show the history (commands last typed):

[ESC]
<span style="color: #00ffff;">:history</span>
# or short
<span style="color: #00ffff;">:his
</span>

now to re run the command #LineNumber 29, type:

<span style="color: #00ffff;">:HI 29

<a href="https://dwaves.de/wp-content/uploads/2022/02/how-to-use-vims-build-in-history-re-run-re-play-commands-by-line-number_2.jpg"><img alt="" class="alignnone size-full wp-image-25261" height="265" src="https://dwaves.de/wp-content/uploads/2022/02/how-to-use-vims-build-in-history-re-run-re-play-commands-by-line-number_2.jpg" width="500"></img></a>
</span>

#linux #gnu #gnulinux #opensource #administration #sysops #vim #howto #gnu-linux

Originally posted at: https://dwaves.de/2022/02/09/how-to-use-vims-build-in-history-re-run-re-play-commands-by-line-number/

canoodle@nerdpol.ch

GNU Linux Debian - very fast and easy semi-automatic online install Debian 11 (non-free)

many users have/had macbooks.

what was/still is great: OSX can be reinstalled over internet! (no more searching for licence keys or setup sticks/DVDs/CDs/)

given the fact – that once installed – GNU Linux Debian can boot (almost) anywhere, the fastest and easiest way to “install” it is to simply 1:1 copy it on whatever the user wants to boot from (harddisk or usb stick (some sticks can not be made bootable, try at least 3 different vendors)).

So… this install script 1:1 copy installs Debian 11 (non-free) on any laptop/desktop/server (depending on internet speed) very fast & easy.

The process can be automated (on similar hardware or on hardware where /dev/sda is always the device the user wants to 1:1 overwrite).

This script install process is almost like OSX 🙂 but “semi-automatic” to double ask, not to overwrite the wrong (USB attached?) disk.

  • it comes with a full MATE Desktop and everything to get working (LibreOffice and Firefox and Thunderbird)
  • it has the “cosmos” slideshow (love it!) background enabled per default
  • the terminal comes with green on black for better readability
  • it does not have a swap partition enabled, so the user can easily with gparted 1) extend the harddisk to it’s full capacity 2) create a swap partition
  • English, Spanish, Chinese and German keyboard layout are active, should be possible to switch between them in the top right corner

todo: what is still missing

  • what is still missing is:
    • automatically calc (based on RAM size, would do as much swap as RAM) how much swap should be created
    • extend the /root partition to full harddisk capacity minus the swap space
    • create the swap partition and edit config files /etc/fstab and /etc/initramfs-tools/conf.d/resume for proper (as intended) functionality of the system
  • apply this
  • display a dancing penguin during first successfull boot and encourage user to do at least 5min of dancing to this funky music 🙂

WARNING!

  • make sure to disconnect all devices (external harddisks, usb sticks, sdcards)
    • less devices = less trouble and less accidentally overwriting a external harddisk or usb stick
  • if the target device /dev/sdX contains important data, backup it up !first! (all data will be overwritten)

WHY NON FREE?

it’s based on the non-free version, because it is intended to allow new users that never tested GNU Linux Debian (with a MATE Desktop) a “it just works” turnkey experience.

Is the Free version better?

If the user has concerns about surveillance/spying and needs maximum privacy than it is probably better to start with the defautl GNU Linux Debian free version and usually all network-cards/NICs work out of the box (free drivers available 🙂 (but maybe not the wifi cards)

new users: workaround for this pitfall:

https://dwaves.de/2022/01/21/gnu-linux-debian-11-2-network-stops-working-networking-stops-during-setup-bad-archive-mirror-how-every-os-setup-should-be/

Problems might arise with the free version and wifi: (notebooks)

because then the user will probably have to install the appropriate closed source (#evil!) drivers from the the non-free repository with all the spying backdoors that a intel wifi driver might have (after all a network card, is like a small computer, inside a computer, ideal! but then if the BIOS is not LibreBooted… the Intel ME can not be disabled… (some OS allow to permanently disable Intel ME!!!).

… the fight for more privacy and security – seems never ending and goes on.

requirements:

  • the laptop/desktop/server root harddisk/the target harddisk (/dev/sdX) should have at least 100GBytes of harddisk space
  • ideally boot from GNU Linux live usb stick with at least 3GBytes of free space
  • or alternatively: boot from read-only live DVD or image and when booted up, connect a ext4 or ext3 or fat32 or ntfs formatted USB stick or drive with at least 3GBytes of free space

    • there are many other desktop live flavours available (great! 🙂 : https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/
    • when booted from live, cd into the external usb stick-drive
    • create the below script (copy content into a text file, name it name-of-script.sh)
    • <span style="color: #00ffff;">chmod +x name-of-script.sh</span>; # mark it runnable - <span style="color: #00ffff;">su - root</span>; # become root
    • <span style="color: #00ffff;">/name-of-script.sh /dev/sdX</span>; # run it, passing the device Debian 11 should be installed on - will download ~2.5Gbytes image.gz to current directory (the usb-stick-drive and store it there permanently for later re-use) - curl can resume interrupted downloads

usage:

# sdX is the device the user wants to install Debian 11 on
<span style="color: #00ffff;">/scripts/install_debian_from_image.sh /dev/sdX
</span>

process complete? reboot & “it just works”?

congratz! do 1min of wiggle dance!

[video width=”306″ height=”194″ mp4=”https://dwaves.de/wp-content/uploads/2022/01/happyness-drum-and-bass-dance-of-success.mp4″\]\[/video\]

post processing:

want to use the complete harddisk not just the 100GBytes? two possibilities:

what the script will do:

  • download a pre-installed Debian 11 image.gz and it’s sha512check-sum
  • sha512 check the image (check the image is unaltered and intact)
  • on the fly unpack and 1:1 write the image to /dev/sdX while showing a progress bar
<span style="color: #00ffff;">vim /scripts/install_debian_from_image.sh</span>

<span style="color: #ff6600;">#!/bin/bash

DEBIAN_IMAGE=debian11_amd64_non_free_drivers_mate_libre_firefox.img.gz
DOWNLOAD=https://dwaves.de/downloads/$DEBIAN_IMAGE

# define colors
RED='\033[0;31m'
WHITE='\033[0;37m'
YELLOW='\033[0;33m'
COLOR_OFF='\033[0m' # reset color to default

echo -e "${WHITE}=== download and 1:1 copy debian.img.gz to $1 ===${COLOR_OFF}\n"

if [ -z "$1" ]
  then
    echo "please pass device like this: /dev/sdx
          TARGET THE WHOLE DEVICE (sdb)
          NOT A PARTITION! (sdb1)"
  else


echo -e "${RED}this script is meant to be run from an live-cd or usb stick (so $1 should be an OFFLINE filesystem (not currently running)"
    echo "please read carefully, a mistake could overwrite critical data!!!"
    echo -e "physically disconnect all critical data-drives before procedure!!!${COLOR_OFF}\n"
    echo ""

    echo "========== do you want to copy the $DEBIAN_IMAGE image on device $1 ?"

    echo -e "${YELLOW}~3GBytes of disk space is needed in the current directory${COLOR_OFF}\n"
    pwd
    echo "=========== harddisk overview";
    echo "==== where is what";
    lsblk -o 'NAME,MAJ:MIN,RM,SIZE,RO,FSTYPE,MOUNTPOINT,UUID'
    smartctl -i $1;
    echo ""


echo -e "${YELLOW}"
read -p "CONTINUE? (y/n)" choice
case "$choice" in 
  y|Y ) echo "yes";;
  n|N ) echo "no";;
  * ) echo "invalid";;
esac

    echo "installing required software for fast multi threaded decompression of image (pigz)"
    echo "and showing progress during dd (pv)"

echo -e "${COLOR_OFF}\n"

    apt update
    apt install pv pigz curl

echo -e "${YELLOW}starting download of $DOWNLOAD... please stand by${COLOR_OFF}\n"
    curl -L -O -C - $DOWNLOAD;

echo -e "${YELLOW}starting download of checksum $DOWNLOAD.sha512sum.txt ... please stand by${COLOR_OFF}\n"

    curl -L -O -C - $DOWNLOAD.sha512sum.txt;

    echo "verify sha512sum..."

cat "./$DEBIAN_IMAGE.sha512sum.txt" | sha512sum -c

if [ $? != 0 ]; then
echo -e "${RED}Checksum failed. aborting script. maybe $DEBIAN_IMAGE corrupted during download. please try to re-run the script." >&2
echo -e "${COLOR_OFF}\n"
  exit 1
fi

echo -e "${YELLOW}starting write process...${COLOR_OFF}\n"
    umount $1*;

    dd if=./$DEBIAN_IMAGE of=$1 status=progress; sync;

    pigz -dc $DEBIAN_IMAGE | pv | dd bs=1M of=$1; sync;
    ## single core
    ### gunzip -c /path/to/image.img.gz | pv | dd of=$1; # write image to usb stick

echo -e "${YELLOW}the image $DEBIAN_IMAGE was written to stick $1. process finished. try booting it now :)${COLOR_OFF}\n"
fi

</span>

#linux #gnu #gnulinux #opensource #administration #sysops #gnu-linux #debian #osx #setup #installation #breeze #easy #fast #debian11 #bullseye

Originally posted at: https://dwaves.de/2022/01/28/gnu-linux-debian-very-fast-and-easy-semi-automatic-online-install-debian-11-non-free/

canoodle@nerdpol.ch

GNU Linux hardware reviews - something between tablet and notebook: the Lenovo Ideapad MIIX 510 12ISK - Can it Debian? - yes it can (Debian 11 out of the box Debian 10 rfkill reports hardblocked wlan)

Lenovo Ideapad: What is it and can it run Debian?

hint: it’s also not mine.

The Lenovo Ideapad is a “notebook-tablet” (a very slim notebook that pretends to be a tablet (it has a touch screen!) 🙂

can it Debian?

Yes it can pretty fast actually.

What is not working (yet) are the front- and back-webcams (tried with cheese, can not find any cams)

the specs:

<span style="color: #00ffff;">/scripts/bench/<a href="https://dwaves.de/scripts/bench/bench_harddisk.sh">bench_harddisk.sh</a>; # <a href="https://dwaves.de/scripts/bench/bench_harddisk.sh">https://dwaves.de/scripts/bench/bench_harddisk.sh</a></span>
=== harddisk sequential write and read bench v1 ===
starting test on the device that holds the current directory the user is in
no need to run it as root

========== writing 3GB of zeroes ==========
0+1 records in
0+1 records out
2147479552 bytes (2.1 GB, 2.0 GiB) copied, 14.152 s, <span style="color: #ffff00;">152 MB/s</span>

real    0m14.163s
user    0m0.000s
sys 0m5.685s
========== reading 6GB of zeroes ==========
0+1 records in
0+1 records out
2147479552 bytes (2.1 GB, 2.0 GiB) copied, 3.407 s, <span style="color: #ffff00;">630 MB/s</span>

real    0m3.434s
user    0m0.000s
sys 0m1.270s
========== tidy up remove testfile ==========

how to get started:

what is good:

  • the speed (i5 CPU & NVMe (!) harddisk) are pretty speedy good for a device that small 🙂
    • ok the speed is largely also attributed to GNU Linux Debian being very resource efficient 🙂
  • the touchscreen works very nicely and is usefull e.g. for selecting text:
  • close the lid, open the lid, resume from standby works perfectly 🙂 (well done all involved!)
  • they keyboard is also the cover, it could be a bit more “sturdy” (metal?) but it’s okay
  • is it noisy?
    • no. most of the time it sits quiet. when in bios longer time, the fan can be heared. but it’s not bad.

what could be better:

Debian 10: how to fix the wifi not working

“guess a hard block can be caused by multiple modules and/or firmware trying to use the same device” (creditz: https://access.redhat.com/discussions/3081141)

Debian 11 wifi works out of the box, in Debian 10, it is required to blacklist some kernel module drivers.

open a terminal and run this:

<span style="color: #00ffff;">su - root</span>
<span style="color: #00ffff;">apt update</span>
<span style="color: #00ffff;">apt install rfkill</span>
<span style="color: #00ffff;">while true; do rfkill list all; sleep 1; clear; done;
</span>

what this will do is output the status of all possibly hard or soft blocked devices.

now hit F7 or Fn+F7 (enable/disable flight mode = enable/disable wifi)

there should be changes visible in the terminal… still not wifi?

ok next step:

<span style="color: #00ffff;">echo "blacklist ideapad_laptop" >> /etc/modprobe.de/blacklist.conf
echo "blacklist acer_wmi" >> /etc/modprobe.de/blacklist.conf</span>
# then:
<span style="color: #00ffff;">reboot
</span>

#linux #gnu #gnulinux #opensource #administration #sysops #gnu-linux #hardware #review #debian #lenovo #ideapad

Originally posted at: https://dwaves.de/2022/01/23/gnu-linux-hardware-reviews-something-between-tablet-and-notebook-the-lenovo-ideapad-miix-510-12isk-can-it-debian-yes-it-can-debian-11-out-of-the-box-debian-10-rfkill-reports-hardblocked-wlan/

canoodle@nerdpol.ch

server heating a lemon tree crypto experiment: rechnet es sich in 2022-01 monero zu minen? does mining monero pay off? - maybe better of boinc

the whole project started, because a lemon tree needed some heating in the winter.

getting started is not hard,

does it pay off? not without “free” energy

because there is no such thing as free energy, “only other user’s devices” and “other’s users energy bills” (which is more than CO2 evil).

currently: not with i5s and Xeons, the user will need a very expensive 32x Core or even better 64x Core x86 CPU

At1 XMR monero price trading below $250 @ (0.3€ per 1kWh) ratio, all Xeon CPU mining is a loss and thus pure activism

  • what is good:
  • activism: might be somewhat legitimate, but only @ 100% renewables
    • as mankind is in desperate need for more innovative forms of finance based cooperation system that “make sense” in the terms of “create jobs innovation and sustainable products for a sustainable survival of mankind” (cause that should be what it’s all about)
  • so if monero turns out to be a good thing for mankind or not
    • it is recommended to mine with 100% renewabele energy only (only mine when the sun is up and the wind is blowing and the user can not store the energy): don’t do it.

here are the numbers:

monero’s RandomX is optimized (on purpose) for CPU to avoid ASIC mining monopolies taking over/dominating the whole project (foster democracy, more distributed mining as it has happened with other crypto projects).

let’s assume a Intel(R) Xeon(R) CPU E3-1270 V2 @ 3.50GHz is xmrig mining at 1000H/s using 300W.

(here is a list of CPUs and their monero hashrates)

That translates into 0.3kWh * 24h = 7.2kWh @ the user’s power costs of 0.3€ per 1kWh: 7.2 kWh * 0.3€ = 2.16€ per day.

generated/mined 0.000137068369 XMR in 24h which translates into

1 XMR = $219.26

219.26/(1/0.000137068369) = $0.03005 ~ 0.03€

that’s a loss of: 2.16€ – 0.03€ = -2.13€ per daily, -15€ per week.

(this calculator (red numbers = bad) confirm that current calculation)

(another calculator)

in the future: who knows. depends on availability of cheap renewable (!) energy and the monero price or the inflation of $ and € (the last one being pretty certain).

pool mining?

https://web.xmrpool.eu/

“pending balance reaches the minimum payment threshold of 0.07 xmr, the pool will automatically send you your mined coins”

that would be ~ 1 year of runtime full cores of that Xeon CPU E3-1270 V2 @ 3.50GHz @300W, no thanks, man.

“The payment occurs once every day between 12:00 midnight – 01:00 am CET.”

“Kindly specify if you want a manual payout, without reaching the threshold. Note, you will be charged about 0.00003 XMR for transaction fees.”

what is being calculated?

“Bitcoin production is estimated to generate between 22 and 22.9 million metric tons of carbon dioxide emissions a year” (reuters in 2021)

(comparison: netherlands in 2020 138t CO2, so bitcoin alone produces as much CO2 as 6% of the netherlands)

massive calulation powers are thrown at crypto and AI deep learning.

unfortunately most countries are not on 100% renewables, so a lot of CO2 is generated in that process (please check the energy mix of your country)

Why can all this block mining/generating not do something usefull… like train AI how to cure cancer… or calculate possible solutions for complicated problems… or try to predict the shape of an asteroid according to very low quality images https://asteroidsathome.net/ every asteroid = one token? #AsteroidCoin?

unfortunately the only “free energy” is in other user’s devices, which is frankly bad bad bad because it is producing CO2: https://www.zdnet.com/article/free-money-cyber-criminals-are-installing-cryptojacking-malware-on-unpatched-microsoft-exchange-servers/

alternatives to heat up cpus: boinc @ milkyway@home

https://dwaves.de/2014/11/27/3d-milkyway-home/

setup boinc for debian

We recommend installing the BOINC client directly from the Ubuntu/Debian repositories.

  1. In a terminal window, run the following command:
  <span style="color: #00ffff;">sudo apt install boinc-client boinc-manager</span>

Set the BOINC client to automatically start after you restart your computer:

<span style="color: #00ffff;">sudo systemctl enable boinc-client</span>

Start the BOINC client:

<span style="color: #00ffff;">sudo systemctl start boinc-client</span>

Allow group access to client access file:

<span style="color: #00ffff;">sudo chmod g+r /var/lib/boinc-client/gui_rpc_auth.cfg</span>

Add your Linux user to the BOINC group to allow the BOINC Manager to communicate with the BOINC client:

<span style="color: #00ffff;"><code>sudo usermod -a -G boinc $USER</code></span>

Allow your terminal to pick up the privileges of the new group:

<span style="color: #00ffff;">exec su $USER</span>

In the same terminal window, start the BOINC Manager:

<span style="color: #00ffff;">boincmgr -d /var/lib/boinc-client</span>
  1. When BOINC Manager opens, select World Community Grid from the list of BOINC projects then enter your World Community Grid username and password.
  2. When these steps are completed, you should see a screen to confirm that you’ve been successfully signed up to World Community Grid.

creditz: https://www.worldcommunitygrid.org/download/debian

how to start stop boinc client:

# start BOINC client, running as a system daemon
<span style="color: #00ffff;">/etc/init.d/boinc-client start</span>

# stop the BOINC daemon
<span style="color: #00ffff;">/etc/init.d/boinc-client stop</span>

# stop and start the BOINC daemon
<span style="color: #00ffff;">/etc/init.d/boinc-client restart</span>

# report on status of the daemon (is it running or not?)
<span style="color: #00ffff;">/etc/init.d/boinc-client status
</span>

Links:

Why Monero?

Active attack vector

The attack is pretty straightforward: when the wallet requests data from the remote node to create a transaction, the remote node sends bogus data in response. This results in an error message displayed to the user. If the user clicks through the error and retries the transaction a second time, this immediately reveals the real input to the remote node. Mitigations: If you see *ANY** error message after attempting a transaction, DISCONNECT from that remote node and DO NOT try your transaction again right away.*

Please run your own node

Public nodes should be considered a last resort if you can’t get your own node working. The entire value of a decentralized cryptocurrency is its decentralized nature. If you are a mobile user, you can even setup your mobile wallet to connect to your home node. Please, take the time to try running your own node, or perhaps just use a remote node until your daemon is synchronized.

src: https://moneroworld.com/

mining pools: https://miningpoolstats.stream/monero

https://www.getmonero.org/community/workgroups/

so heise: “when it pays to mine monero” currently it does not and produce too much CO2: https://www.heise.de/ratgeber/Mining-Guide-zum-Geldverdienen-per-Prozessor-Wann-sich-Monero-Schuerfen-lohnt-5991303.html

“Namely, on Tuesday, Federal Reserve Chairman Jerome Powell told a U.S. Senate committee that a report on central bank digital currencies (CBDCs) would be ready “within weeks.” This announcement stoked fears that top cryptocurrencies may see competition from a government-backed cryptocurrency. However, Monero’s focus on privacy and untraceable transactions has provided investors with a key reason to own this token this week.”

https://www.fool.com/investing/2022/01/14/why-monero-was-one-of-the-best-performing-cryptos/

tweets:

https://twitter.com/hashtag/monero

https://twitter.com/fluffypony

https://twitter.com/mattblaze/with_replies

wallets:

#linux #gnu #gnulinux #opensource #administration #sysops #crypto #monero #co2 #climatechange #cryptocurrencies #finance #boinc #berkely #milkyway

Originally posted at: https://dwaves.de/2022/01/14/server-heating-a-lemon-tree-crypto-experiment-rechnet-es-sich-in-2022-01-monero-zu-minen-does-mining-monero-pay-off-maybe-better-of-boinc/

canoodle@nerdpol.ch

Rust Dev Lang - how to view onboard html based documentation (man page) - The Rust Standard Library

# will open [file:///home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/std/index.html](file:///home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/std/index.html) in browser

<span style="color: #00ffff;">rustup doc --std
</span>

which looks like:

of course there is an online version: https://doc.rust-lang.org/std/

#linux #gnu #gnulinux #opensource #administration #sysops #rust #rust-lang #rustlang #devrust #rustdev

Originally posted at: https://dwaves.de/2021/12/27/rust-dev-lang-how-to-view-onboard-html-based-documentation-man-page-the-rust-standard-library/

canoodle@nerdpol.ch

BE CAREFUL WITH find + delete - find . -delete -name vs find . -name -delete

one neat function of find, it that what it found can be passed to another function for further processing.

or: it can delete the file

BUT

this can go horribly wrong (and it does not ask for confirmation)

… deleting EVERYTHING in the current directory within the blink of an eye (depending on systems speed… terrabytes of data within seconds).

# warning! this can ruin one's day

<span style="color: #00ffff;">mkdir temp
cd temp
touch 1 2 3 f25020672.avi</span>

# only finds that file
<span style="color: #00ffff;">find . -name "*f25020672.avi*"
./f25020672.avi</span>

<span style="color: #ff0000;"># DANGER! THIS DELETES ALL FILES IN THE CURRENT DIRECTORY! NOT ONLY THE FILE BEHIND -name</span>
<span style="color: #00ffff;">find . -delete -name "*f25020672.avi*"</span>

# this would have been the correct way to do it
<span style="color: #00ffff;">find . -name "*f25020672.avi*" -delete
</span>

guess will have to powerdown, and continue when the backup-system of the backup-system is ready X-D

#linux #gnu #gnulinux #opensource #administration #sysops #accidental #delete #ext4 #trump #gnu-linux #the-internet #internet #lol #argh #fail #backups

Originally posted at: https://dwaves.de/2021/12/20/be-careful-with-find-delete-find-delete-name-vs-find-name-delete/

canoodle@nerdpol.ch

Human-Users should NEVER wait for machines - THE POWER OF THE PENGUIN - 15 sec boot up time GNU Linux Debian 8 + MATE Desktop - on Dell E4310 + SSD

[video width=”1280″ height=”720″ mp4=”https://dwaves.de/wp-content/uploads/2016/09/THE-POWER-OF-THE-PENGUIN-15-sec-boot-up-time-GNU-Linux-Debian-8-MATE-Desktop-on-Dell-E4310-SSD.mp4″\]\[/video\]

THE POWER OF THE GNU PENGUIN: https://youtu.be/0MI2k_Ml5_0

HUMANS SHOULD NEVER EVER WAIT FOR MACHINES! 🙂

MACHINES LIVE FOREVER – HUMANS DO NOT (YET)

GNU LINUX Debian 8 “Jessie” with MATE Gnome2 Desktop GUI) on DELL E4310 with Samsung SSD 830 – powerup until ready.

This Laptop consumes around 50 Watts.

On those energy saving embedded PCs (30Watts) http://www.giadapc.com/products/minipc/F300.html it boots up even faster – because the BIOS does not take as long as with the DELL Laptop.

software: simplicity at it’s best

https://mate-desktop.org/

only the gnome2 network manager is a bit… strange (why no field for primary and secondary dns!!!?????)

replace with:

<span style="color: #00ffff;">su - root
apt remove network-manager-gnome
apt remove network-manager</span>
<span style="color: #00ffff;">apt install wicd</span>

MATE Desktop Environment

Also available in: Català Čeština Deutsch Ελληνικά Español Français אנגלית Magyarul Bahasa Indonesia Italiano 日本語 Nederlands Polski Português Türkçe 简体中文 繁體中文

The MATE Desktop Environment is the continuation of GNOME 2. It provides an intuitive and attractive desktop environment using traditional metaphors for Linux and other Unix-like operating systems.

MATE is under active development to add support for new technologies while preserving a traditional desktop experience. See the Roadmap.

image

You can find more screenshots of MATE.

News

Blog posts are also indexed by tag and archived by date. You might also want to take a look at Planet MATE to see what the wider MATE community are blogging about.

Which distributions support MATE?

MATE is available via the official repositories for the following Linux distributions:

MATE is available via unofficial repositories for the following Linux distributions:

Maybe you prefer UNIX?

You can also query DistroWatch.com for all the distributions that support MATE.

The MATE community has documented how to install MATE on many distributions in the install guidelines.

Applications

MATE is composed of a number of applications. The renaming is necessary to avoid conflicts with GNOME components.

Caja

image

Caja is the official file manager for the MATE desktop. It allows for browsing directories, as well as previewing files and launching applications associated with them. It is also responsible for handling the icons on the MATE desktop. It works on local and remote filesystems. Caja is a fork of Nautilus.

Pluma

image

Pluma is a text editor which supports most standard editor features. It also extends this basic functionality with other features not usually found in simple text editors. Pluma is a graphical application which supports editing multiple text files in one window (known sometimes as tabs or MDI). Pluma fully supports international text through its use of the Unicode UTF-8 encoding in edited files. Its core feature set includes syntax highlighting of source code, auto indentation, and printing support (with print preview). Pluma is a fork of Gedit.

Eye of MATE

image

eom or the Eye of MATE is a simple graphics viewer for the MATE desktop which uses the gdk-pixbuf library. It can deal with large images, and can zoom and scroll with constant memory usage. Its goals are simplicity and standards compliance. Eye of MATE is a fork of Eye of GNOME.

Atril

image

Atril is a simple multi-page document viewer. It can display and print PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI, XPS and Portable Document Format (PDF) files. When supported by the document, it also allows searching for text, copying text to the clipboard, hypertext navigation, and table-of-contents bookmarks. Atril is a fork of Evince.

Engrampa

image

Engrampa is an archive manager for the MATE environment. It allows you to create and modify archives, view the contents of an archive, view a file contained in an archive, and extract files from archive. Engrampa is a fork of File Roller.

MATE Terminal

image

MATE Terminal is a terminal emulation application that you can use to access a UNIX shell in the MATE environment. With it, you can run any application that is designed to run on VT102, VT220, and xterm terminals. MATE Terminal also has the ability to use multiple terminals in a single window (tabs) and supports management of different configurations (profiles). MATE Terminal is a fork of GNOME Terminal.

Where does the name come from?

The name “MATE“, pronounced Ma-Tay, comes from yerba maté, a species of holly native to subtropical South America. Its leaves contain caffeine and are used to make infusions and a beverage called mate.

image

#linux #gnu #gnulinux #opensource #administration #sysops #debian #debian8 #mate #ThePowerOfThePenguin #TUXRACER #tux #bootuptime #dell #samsung #tuxracer

Originally posted at: https://dwaves.de/2016/09/24/human-users-should-never-wait-for-machines-the-power-of-the-penguin-15-sec-boot-up-time-gnu-linux-debian-8-mate-desktop-on-dell-e4310-ssd/