mzahnd / minix3

MINIX 3 Fork

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting MINIX 3 image

If you want to build Minix v3.3.0 from sources, check build_v3.3.0 branch.

# Get the ISO image
curl --remote-name  http://download.minix3.org/iso/minix_R3.3.0-588a35b.iso.bz2

# Decompress it
# If you don't have bzip2, install it running:
# sudo apt install bzip2 # Ubuntu / Debian
# sudo pacman -S bzip2 # Arch Linux
bzip2 -d minix_R3.3.0-588a35b.iso.bz2

# Create an image file (recomended minimum size is 8GB)
qemu-img create minix.img 8G

# Install it
qemu-system-x86_64 -net user -net nic -m 256 -cdrom minix_R3.3.0-588a35b.iso -drive file=minix.img,format=raw -boot d

# Run after installation
qemu-system-x86_64 -net user -net nic -m 256 -drive file=minix.img,format=raw

Once inside your Minix VM, install the basic tools and OpenSSH to access it from a shell in your host machine.

echo export TZ=America/Buenos_Aires > /etc/rc.timezone
pkgin update
pkgin install openssh git-base binutils clang vim
passwd # Set root password (needed for SSH)
reboot

We can now use SSH to control our Minix VM:

qemu-system-x86_64 -net user,hostfwd=tcp::2022-:22 -net nic -m 1024 -drive file=minix.img,format=raw

In a shell in your host machine:

# SSH
ssh -p 2022 root@localhost

# SFTP
sftp -P 2022 root@localhost

About

MINIX 3 Fork

License:Other


Languages

Language:C 78.2%Language:Roff 10.2%Language:Assembly 4.6%Language:Shell 3.7%Language:Makefile 1.6%Language:C++ 0.9%Language:Yacc 0.3%Language:HTML 0.1%Language:M4 0.1%Language:Awk 0.1%Language:GAP 0.1%Language:Lex 0.1%Language:JavaScript 0.0%Language:Lua 0.0%Language:RPC 0.0%Language:Perl 0.0%Language:Brainfuck 0.0%Language:sed 0.0%Language:Emacs Lisp 0.0%Language:Max 0.0%Language:Objective-C 0.0%Language:IGOR Pro 0.0%Language:Arc 0.0%Language:R 0.0%Language:Rebol 0.0%Language:Raku 0.0%Language:CSS 0.0%Language:NASL 0.0%Language:Terra 0.0%