Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
unxmaal authored Jul 5, 2020
1 parent 495c3be commit 6b96762
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,19 @@ NOTE: While we are not yet out of beta, it is recommended to remove any previous

(0) Add your user account to the irix `sys` group - this will allow you to use the sgug `sudo` out of the box with your user password - then you can follow the steps below without additional hoop jumping.

(1) Optional - remove any previous sgug-rse installation:
(1) Ensure your system can cope with long command line buffers (this value or higher):

```
# As root
su -
# Show existing value
systune ncargs
# Tweak if < 131072
systune ncargs 131072
```


(2) Optional - remove any previous sgug-rse installation:

```
# As your user
Expand All @@ -28,7 +40,7 @@ rm -rf ~/rpmbuild/RPMS/*
rm -rf /usr/sgug/*
```

(2) Download the artifacts for the latest version from the github releases tab (assuming they aren't too big).
(3) Download the artifacts for the latest version from the github releases tab (assuming they aren't too big).

You'll find three main archives - and there might be "update" archives too that need to be extracted:

Expand All @@ -40,7 +52,7 @@ sgug-rse-rpms-0.0.5beta.tar.gz
sgug-rse-rpms-0.0.5betaupdateNUM.tar.gz
```

(3) Extract the selfhoster archive under /usr as root (important, sgug-rse _installation_ files are root owned and managed):
(4) Extract the selfhoster archive under /usr as root (important, sgug-rse _installation_ files are root owned and managed):

```
su - (enter root password)
Expand All @@ -49,7 +61,7 @@ gunzip -dc /path/to/sgug-rse-selfhoster-0.0.5beta.tar.gz |tar xf -
(log out of root)
```

(4) You'll need to setup some new directories for your user:
(5) You'll need to setup some new directories for your user:

```
mkdir -p ~/rpmbuild/SPECS
Expand All @@ -58,7 +70,7 @@ mkdir -p ~/rpmbuild/SRPMS
mkdir -p ~/rpmbuild/RPMS
```

(5) As your user extract the SRPMs and RPMs in an appropriate place.
(6) As your user extract the SRPMs and RPMs in an appropriate place.

```
cd ~/rpmbuild
Expand All @@ -70,7 +82,7 @@ cd ~/rpmupdates
gunzip -dc /path/to/sgug-rse-rpms-0.0.5betaupdateNUM.tar.gz | tar xf -
```

(6) You'll need to clone this repo (sgug-rse) -
(7) You'll need to clone this repo (sgug-rse) -

```
cd ~
Expand All @@ -80,7 +92,7 @@ Adjust that path as appropriate for where you wish the repo to live.

(Of course you can fork the repo and clone from your own copy!)

(7) Now you can install all packages (you can pick and choose if that's your thing):
(8) Now you can install all packages (you can pick and choose if that's your thing):

```
cd ~/sgug-rse.git
Expand All @@ -100,7 +112,7 @@ cd ~/rpmupdates/RPMS
sudo rpm -Uvh noarch/*.rpm mips/*.rpm
```

(8) Now you can rebuild one of the out-of-the-box packages with:
(9) Now you can rebuild one of the out-of-the-box packages with:

```
cd ~/sgug-rse.git
Expand All @@ -111,7 +123,7 @@ cp -r ~/sgug-rse.git/packages/m4/* ~/rpmbuild/
rpmbuild -ba m4.spec --nocheck
```

(9) Installing RPMs must be done as root (add `--reinstall` to refresh an already installed package):
(10) Installing RPMs must be done as root (add `--reinstall` to refresh an already installed package):

```
cd ~user/sgug-rse.git
Expand Down

0 comments on commit 6b96762

Please sign in to comment.