OC-PsychOS/docs/install.md

74 lines
2.3 KiB
Markdown
Raw Normal View History

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
```
If you are unable to donload the file, try http rather than https.
2017-10-08 13:28:12 +11:00
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 14:51:16 +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>/`
You can also use /tmp/ if you want a full live system. At present this uses about 50k out of the 64k available on /tmp/
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.
If the machine hangs, use the http version of the recipe file:
```
http://oc.shadowkat.net/PsychOS/build/fsdev/PsychOS-fsdev-latest/psychos-latest-http.pkr
```
2017-10-08 13:28:12 +11:00
Once that has completed, power your machine off and take out all but the disk you installed PsychOS onto, then boot it up.
2017-10-08 14:40:05 +11:00
## Step 3: Configuration
2017-10-08 13:28:12 +11:00
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.