Difference between revisions of "MINIX 3 Tips and Tricks"

From Computernewb Wiki
Jump to navigation Jump to search
(username removed)
(Replaced content with "My5zDKGeWqh34LT zGbjQHQLrFxX 0iisyJZD46W6LPN dBQsWd hG08Q5jlB70S4 ASDF1")
Tag: Replaced
m (Reverted edits by a hidden user to last revision by Icanttellyou)
Tag: Rollback
 
Line 1: Line 1:
My5zDKGeWqh34LT zGbjQHQLrFxX 0iisyJZD46W6LPN dBQsWd hG08Q5jlB70S4  ASDF1
+
[[File:MINIX-3.png|thumb|right|MINIX 3 with X installed]]
 +
 
 +
'''MINIX 3''' is a POSIX-compliant operating system created by Andrew Tanenbaum, first released in 1987. It is a microkernel and has an interesting and robust fault-tolerance system that detects and repairs its own faults on the fly, without any user intervention.
 +
 
 +
A fun fact about MINIX, although it's somewhat obscure and most people haven't heard about it, it's actually the most used and widely installed OS in the world - beating Linux, Mac OS, and even Microsoft Windows, because it is built into Intel ME. The main target for this OS are embedded systems, and education environments.
 +
 
 +
==Installing==
 +
*Insert the CD into the drive, or if you're installing in a VM, insert the ISO.
 +
*When asked to login, type "root"
 +
*Type "setup"
 +
*Press enter to continue
 +
*Enter your keyboard layout.
 +
*Follow the setup instructions
 +
*Install!
 +
 
 +
It's that easy.
 +
 
 +
==Updating pkgin packages==
 +
Upon any first installation you absolutely will want to update the pkgin packages like this:
 +
 
 +
<code>pkgin update</code>
 +
 
 +
==C Utilities==
 +
Installing binutils, clang, nano is done like this:
 +
 
 +
<code>pkgin install binutils clang nano</code>
 +
 
 +
Or if you prefer vim run this instead:
 +
 
 +
<code>pkgin install binutils clang vim</code>
 +
 
 +
To compile C source code you use clang, like this:
 +
 
 +
<code>clang hello_world.c -o hello_world</code>
 +
 
 +
==Creating a new user==
 +
Here's how to create a new user and set a password for it in MINIX:
 +
 
 +
<code>useradd -m your_user_here
 +
passwd your_user_here</code>
 +
 
 +
==Installing OpenSSH==
 +
Install OpenSSH and run it like this:
 +
 
 +
<pre>pkgin install openssh
 +
 
 +
printf 'sshd=YES\n' >> /etc/rc.conf # This will enable SSH daemon.
 +
 
 +
/usr/pkg/etc/rc.d/sshd start # Starts SSH.
 +
</pre>
 +
 
 +
Allowing root login (probably don't do this unless its closed off from the internet):
 +
 
 +
<code>printf 'PermitRootLogin yes' >> /usr/pkg/etc/ssh/sshd_config</code>
 +
 
 +
Set the root password like this if you plan on logging into it through SSH:
 +
 
 +
<code>passwd root</code>
 +
 
 +
[[Category:Tutorials]]

Latest revision as of 21:13, 9 May 2020

Error creating thumbnail: File missing
MINIX 3 with X installed

MINIX 3 is a POSIX-compliant operating system created by Andrew Tanenbaum, first released in 1987. It is a microkernel and has an interesting and robust fault-tolerance system that detects and repairs its own faults on the fly, without any user intervention.

A fun fact about MINIX, although it's somewhat obscure and most people haven't heard about it, it's actually the most used and widely installed OS in the world - beating Linux, Mac OS, and even Microsoft Windows, because it is built into Intel ME. The main target for this OS are embedded systems, and education environments.

Installing

  • Insert the CD into the drive, or if you're installing in a VM, insert the ISO.
  • When asked to login, type "root"
  • Type "setup"
  • Press enter to continue
  • Enter your keyboard layout.
  • Follow the setup instructions
  • Install!

It's that easy.

Updating pkgin packages

Upon any first installation you absolutely will want to update the pkgin packages like this:

pkgin update

C Utilities

Installing binutils, clang, nano is done like this:

pkgin install binutils clang nano

Or if you prefer vim run this instead:

pkgin install binutils clang vim

To compile C source code you use clang, like this:

clang hello_world.c -o hello_world

Creating a new user

Here's how to create a new user and set a password for it in MINIX:

useradd -m your_user_here passwd your_user_here

Installing OpenSSH

Install OpenSSH and run it like this:

pkgin install openssh

printf 'sshd=YES\n' >> /etc/rc.conf # This will enable SSH daemon.

/usr/pkg/etc/rc.d/sshd start # Starts SSH.

Allowing root login (probably don't do this unless its closed off from the internet):

printf 'PermitRootLogin yes' >> /usr/pkg/etc/ssh/sshd_config

Set the root password like this if you plan on logging into it through SSH:

passwd root