BSD - howinfo/howinfo GitHub Wiki

Change Linux to NetBSD with SSH only

https://cloudbsd.xyz/

https://news.ycombinator.com/item?id=41041995

A NetBSD/amd64 guest can now boot in 18ms

Deb

Package management for FreeDOS/Linux/BSD

Killing VirtualBox that is stuck

./killvm.sh

killall VirtualBox VirtualBoxVM

AlpineLinux

./update.sh

apk upgrade

./install.sh

apk add $1

./uninstall.sh

apk del $1

./dev.sh (compiler packages, like "sudo apt install build-essential")

apk add alpine-sdk

FreeDOS

https://www.freedos.org

http://freedos.org/download/

Requirements from http://wiki.freedos.org/wiki/index.php/Main_Page

"FreeDOS should run on any standard PC, although for better performance you may want an Intel ‘386 or better processor, 2MB or more memory, and 40MB disk space. "

FreeDOS has some GUI like OzoneGUI and OpenGEM.

When installing to VirtualBox, set harddisk .vdi growable max size to 4000 MB / 4 GB, because LiveCD + BonusCD could take nearly 2 GB total disk space.

  1. Install from LiveCD
  2. Boot from harddisk
  3. Insert BonusCD
  4. Edit and save .bat files: edit update.bat
  5. Update: update
  6. Search: search zip

Packange management TUI:

fdimples

Package management CLI: https://fdnpkg.sourceforge.net

update.bat

fdnpkg update

search.bat

fdnpkg search %1

install.bat

fdnpkg install %1

reboot.bat

reboot

shutdown.bat

shutdown

FreeDOS browsers

At FreeDOS, Dillo and Arachne.

Also MicroWeb:

DOS 4 related

https://github.com/dos-fx/dos-fx

https://github.com/howinfo/howinfo/wiki/DOS

Ubuntu

https://ubuntu.com

  1. Edit file: nano update.sh
  2. Save and Exit: Ctrl-o Enter Ctrl-x Enter
  3. Change to executeable: chmod +x *.sh
  4. Update: ./update.sh

./more-package-managers.sh

sudo apt -y install flatpak gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo apt -y install snapd
sudo reboot

./update.sh

sudo apt update
sudo apt -y dist-upgrade
sudo snap refresh
flatpak update

./release-info.sh

uname -a

cat /etc/issue

./release-upgrade.sh as normal user (not root)

do-release-upgrade

./search.sh

sudo apt-cache search $1

./clean.sh

sudo apt clean
sudo apt -y autoclean
sudo apt -y autoremove

./install.sh

sudo apt -y install $1

./uninstall.sh

sudo apt remove $1

./uninstall-all.sh

# more dangerous, all configs and data:
sudo apt --purge remove $1

shutdown.sh

sudo shutdown --poweroff now

reboot.sh

sudo shutdown --reboot now

Fedora

https://fedoraproject.org

./more-software.sh , change first line -fi to your language. Voikko is Finnish spellchecking, not for other languages.

sudo dnf install libreoffice-langpack-fi libreoffice-help-fi libreoffice-voikko \
libreoffice libreoffice-postgresql libreoffice-pdfimport libreoffice-writer2latex \
libreoffice-writer2xhtml libreoffice-filters \
lazarus zip unzip p7zip gimp inkscape keepassxc haxe zig \
gambas3 godot golang virt-manager qemu remmina

./update.sh

sudo dnf upgrade --refresh

./release-info.sh

cat /etc/fedora-release

./release-upgrade.sh 38 after above ./update.sh and ./reboot.sh https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/

sudo dnf install dnf-plugin-system-upgrade

sudo dnf system-upgrade download --releasever=$1

./search.sh

sudo dnf search $1

./clean.sh

sudo dnf clean all

./install.sh

sudo dnf -y install $1

./uninstall.sh

sudo dnf remove $1

./uninstall-all.sh

# more dangerous, all related packages, configs and data:
sudo dnf erase $1

./shutdown.sh

sudo shutdown --h now

./reboot.sh

sudo reboot

NetBSD

https://netbsd.org

  1. Edit file: nano update.sh
  2. Save and Exit: Ctrl-o Enter Ctrl-x Enter
  3. Change to executeable: chmod +x *.sh
  4. Update: ./update.sh

Package management: https://www.netbsd.org/docs/pkgsrc/using.html

Before these, change to root:

su

./update.sh

pkgin upgrade

./release-info.sh

uname -a

./release-upgrade.sh 9.3 after ./install.sh sysupgrade https://www.netbsd.org/docs/guide/en/chap-upgrading.html

sysupgrade auto https://cdn.NetBSD.org/pub/NetBSD/NetBSD-$1/amd64

./search.sh

pkgin search $1

./install.sh

pkgin install $1

./uninstall.sh

pkg_delete $1

./shutdown.sh

/sbin/shutdown -p now

./reboot.sh

/sbin/reboot now

Installing locate

pkgin install findutils nano bash
updatedb
locate somefilename

File locations:

/usr/pkg/gnu/bin/updatedb
/usr/pkg/gnu/bin/locate
/usr/pkg/bin/bash
/usr/pkg/bin/nano

Changing above bash shell path with nano, for example to bash, for both root and username:

su
export EDITOR=/usr/pkg/bin/nano
chpass
chpass username

After changing default shells and saving, reboot.

Showing current paths:

echo $PATH

If some path is missing, and using bash, add it to ~/.bashrc

export PATH=$PATH:/usr/pkg/gnu/bin:/usr/pkg/bin

Install Firefox:

./install.sh firefox

NetBSD version of git command has certificate errors. To be able to clone git repos, with Firefox download working git command from https://cosmo.zip/pub/cosmos/zip/git.zip , unzip, and add those files to ~/bin . This is part of cross-platform cosmos https://justine.lol/cosmo3/

Also add your ssh keys to ~.ssh

free.sh , showing amount of free RAM:

cat /proc/meminfo

OpenBSD

https://www.openbsd.org

Installing OpenBSD: https://www.youtube.com/watch?v=4MMr9mDD2cw

  1. Edit file: nano update.sh
  2. Save and Exit: Ctrl-o Enter Ctrl-x Enter
  3. Change to executeable: chmod +x *.sh
  4. Update: ./update.sh

Package management: https://www.openbsd.org/faq/faq15.html

Before these, change to root:

su

./update.sh

pkg_add -u

./release-info.sh

uname -a

./release-upgrade.sh as root https://www.openbsd.org/faq/upgrade73.html

sysupgrade

./search.sh

pkg_info -Q $1

./install.sh

pkg_add $1

./uninstall.sh

pkg_delete $1

./shutdown.sh

halt -p

./reboot.sh

reboot

Pacman

Arch Linux, HyperbolaBSD, etc

  1. Edit file: nano update.sh
  2. Save and Exit: Ctrl-o Enter Ctrl-x Enter
  3. Change to executeable: chmod +x *.sh
  4. Update: ./update.sh

Package management: https://www.openbsd.org/faq/faq15.html

Before these, change to root:

su

./update.sh

pacman -Syuu

./search.sh

pacman -Ss $1

./install.sh

pacman -S $1

./uninstall.sh

pacman -R $1

Haiku

./update.sh

pkgman refresh
pkgman full-sync
pkgman update

./install.sh

pkgman install $1

./uninstall.sh

pkgman uninstall $1

./search.sh

pkgman search $1

./listrepos.sh

pkgman list-repos

./addrepo.sh

## Add repo URL
pkgman add-repo $1

./resolvedeps.sh

# packagename repository-url
pkgman resolve-dependencies $1 $2