Skip to content

Instantly share code, notes, and snippets.

View dillera's full-sized avatar

Andrew Diller dillera

View GitHub Profile
@dillera
dillera / autobuild.sh
Last active April 28, 2021 12:15
auto builder
#!/usr/sgug/bin/bash
# acdiller v1.0.5 trying to automate rse builds
# april2021
# > now it installs all created rpms properly
#
basepath="/usr/people/`whoami`"
codebase="$basepath/sgug-rse.git/packages"
rpmbase="$basepath/rpmbuild"
srcbase="$basepath/rpmbuild/SRPMS"
fc31updates='https://archives.fedoraproject.org/pub/archive/fedora/linux/updates/31/Everything/SRPMS/Packages'
@dillera
dillera / diablo_install.txt
Last active October 24, 2024 04:36
Installing Diablo on IRIX using remote RPMs
Here are some directions to install Diablo (devilutionX) on your SGI running IRIX.
- THANKS to Onre, HAL, Unxmaal, jenna16bit, mach-kernal of SGI UG! They did this.
- tested on 6.5.30, with RSE 0.0.7 on a Fuel and base Octane 1. Sound just works
- this is using SDL2, so many more games are in the pipeline!
- all packages were built on my Fuel with RSE 0.0.7 and patches and help from the gang above
- the dandyum repo host is mine and running on Digital Ocean droplet
- many hours of hacking, building packages and staging so you can install with one command... enjoy
- join us and help at http://sgi.sh/
@dillera
dillera / file-layout
Created April 12, 2021 19:16
dandyum2
[root@dandyum2 007]# tree
.
├── base
│   ├── mips
│   │   ├── CUnit-2.1.3-23.sgug.mips.rpm
│   │   ├── CUnit-devel-2.1.3-23.sgug.mips.rpm
│   │   ├── alternatives-1.11-8.sgug.mips.rpm
│   │   ├── at-spi2-atk-2.34.2-1.sgug.mips.rpm
│   │   ├── at-spi2-atk-devel-2.34.2-1.sgug.mips.rpm
@dillera
dillera / gist:77eefa4b0858b1dad80d9bb3afcde4d9
Created December 22, 2020 20:47
dnf doing RSE installation
dillera@octane ~ $ groups
user sys wheel
dillera@octane ~ $ /usr/sgug/bin/sgugshell
[sgugshell dillera@octane ~]$ sudo tdnf install git
Refreshing metadata for: 'Sgugrse Local 0.0.7beta - mips'
sgugrselocal 987604 100%
Installing:
libXdmcp mips 1.1.3-2.sgug sgugrselocal 71.00k 72708
libXau mips 1.0.9-2.sgug sgugrselocal 55.91k 57255
libXrender mips 0.9.10-10.sgug sgugrselocal 48.60k 49764
@dillera
dillera / fix_symlinks2.py
Last active July 9, 2020 02:40
This python script fixes symlinks in idm files on IRIX
You need to pre-process the idb file and create a file which has all the symlinks from the filesytem.
In this scenario we have a hierarchy of files on our sgi. You could just tarball them up and move them to a new system and extract. But in this case we want to use inst to install, and therefore gendist to create a tardist.
So there are two directories involved with a tardist, gendist called them source base and target base.
For this case, the source base (sbase) is /usr/sgug_raw_selfhoster and the target base is /usr/sgug.
This means the files to use to create the tardist exist in /usr/sgug_raw_selfhoster and when inst installs them I want them to go into /usr/sgug. Be aware of those paths in the example below and change as necessary.
1. Run Software Packager - point at the top of your SBASE. Add all the files into one sw.base for ease of use. Set the target up to be usr/sgug (no leading /). Save the IDB and SPEC files somewhere you can edit them. The rest will be done by hand. Quit Software Packager.
@dillera
dillera / idb_link_fixer.py
Last active July 8, 2020 21:09
Python script to fix IRIX idm files with symbolic links in them
@dillera
dillera / sgug_bashrc
Created June 27, 2020 20:51
SGUG Bashrc Hook file with Helper Commands
# sgug_bashrc helper commands
# andrew_diller 2020
# use with sugshell hook
######################################
# cd helpers
sgbuild() {
cd ~/rpmbuild/BUILD
}
sgbroot() {
cd ~/rpmbuild/BUILDROOT
@dillera
dillera / bashrc
Created June 27, 2020 20:48
Bashrc for use with RSE June 2020
echo " ______ ________ "
echo " / __/ / / / __/ / "
echo " / _// /_/ / _// /__ "
echo "/_/ \____/___/____/ "
echo setup `hostname` basic env
echo ----------------------------
echo ' '
export TERM=xterm
@dillera
dillera / originboot1
Created May 25, 2020 20:52
origin2001-boot-up
IP27 PROM SGI Version 6.156 built 11:27:56 AM Nov 18, 2003
Testing/Initializing memory ............... DONE
Copying PROM code to memory ............... DONE
Discovering local IO ...................... DONE
Discovering NUMAlink connectivity ......... DONE
Found 5 objects (3 hubs, 2 routers) in 55783 usec
Waiting for peers to complete discovery.... DONE
Recognized 390 MHz midplane
Global master is /hw/module/1/slot/n1
Testing/Initializing all memory ........... DONE
@dillera
dillera / .sgug_bashrc
Created March 1, 2020 00:42
Helper functions for sgugshell.sh
sgcp() {
cp -r ~/rpmbuild/sgug-rse/packages/"$1"/* ~/rpmbuild/
}
sgwipcp() {
cp -r ~/rpmbuild/sgug-rse-wip/packages/"$1"/* ~/rpmbuild/
}
sgsbuild() {
cd ~/rpmbuild/SPECS
TARGET="$(ls -1 ~/rpmbuild/SRPMS/ | grep ${1})"
rpm -ivh ~/rpmbuild/SRPMS/${TARGET}