2017-10-08 13:28:12 +11:00
# Installing PsychOS
## Step 0: Information
PsychOS requires the following hardware:
2017-10-08 13:31:46 +11:00
2017-10-08 13:28:12 +11:00
- 150K RAM
- 40K storage, preferably on its own disk
In addition, this guide assumes the machine has an internet card to download files with. It's possible to install PsychOS from an existing copy but that is out of scope of this guide.
You will want to know the address of the disk you plan to install PsychOS onto.
## Step 1: Obtaining and booting a copy of PsychOS
From OpenOS:
```
2017-10-08 13:29:55 +11:00
cd /tmp
wget https://oc.shadowkat.net/PsychOS/build/fsdev/PsychOS-fsdev-latest/severything.lua init.lua
2017-10-08 13:28:12 +11:00
init.lua
```
The 'same file' error is normal.
These commands will reboot your machine into PsychOS running from the computer's temporary filesystem. Following this, you should see something like
```
2017-10-08 13:29:55 +11:00
PsychOS 83e2673 on 404cf459, 256K memory
lush v1/Lua 5.2
2017-10-08 13:28:12 +11:00
[superuser@404cf459 /boot]#
```
## Step 2: Downloading to a disk
2017-10-08 13:34:27 +11:00
From your prompt, you'll want to invoke pkg to download a copy of PsychOS onto a disk. The path of the disk is `/<the first 3 characters of the disk address>/`
2017-10-08 13:28:12 +11:00
```
[superuser@404cf459 /boot]# pkg install https://oc.shadowkat.net/PsychOS/build/fsdev/PsychOS-fsdev-latest/psychos-latest.pkr /< disk > /
```
This will take a while, but will output progress.
Once that has completed, power your machine off and take out all but the disk you installed PsychOS onto, then boot it up.
## Step 4: Configuration
This step is optional.
Now that you have a working PsychOS system, you can set up users.
### superuser
Superuser is the most powerful user on the system, and should have a strong password.
```
2017-10-08 13:29:55 +11:00
[superuser@404cf459 /boot]# passwd superuser
2017-10-08 13:32:43 +11:00
New password for superuser: ** ******
2017-10-08 13:28:12 +11:00
```
### A non-superuser
Running as superuser all the time is bad for security, so you should create a user for yourself.
```
2017-10-08 13:29:55 +11:00
[superuser@404cf459 /boot]# passwd username
2017-10-08 13:32:43 +11:00
New password for username: ** ******
2017-10-08 13:28:12 +11:00
```
Now, if you press ctrl-alt-c, it should bring up a login screen.
Congratulations, you now have a functional and configured PsychOS system.