Skip to content

Instantly share code, notes, and snippets.

View dillera's full-sized avatar

Andrew Diller dillera

View GitHub Profile
@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}
@dillera
dillera / master_irix.txt
Last active January 3, 2020 18:27
IRIX Master Class for Development
_ ___ ___ __ __ __ __ __ _____ ___ ___
| | _ \ \ \_/ / | V |/ \ /' _/_ _| __| _ \
| | v / |> , < | \_/ | /\ |`._`. | | | _|| v /
|_|_|_\_/_/ \_\ |_| |_|_||_||___/ |_| |___|_|_\
Sections:
1. Dec Tools - install Dev packages
2. run irix_ansible
3. DIDBS - install didbs
@dillera
dillera / didbs9-output1.txt
Created January 2, 2020 16:00
didbs output1
dillera@challenge /usr/didbs/didbs.git (master) $ cat /tmp/logforthinly.txt
2020-01-02 13:57:49.864 didbs bootstrapper script version 0.1.9
2020-01-02 13:57:49.866
2020-01-02 13:57:49.866 Adding found config.
To start fresh, rm /usr/didbs/didbs.git/bootstrap.conf
systune ncargs=131072
2020-01-02 13:57:49.973 Checking for /usr/didbs/current symbolic link..1
2020-01-02 13:57:49.974 Checking underlying dir is compatible version..2020-01-02 13:57:49.975 dirBehindLink is /usr/didbs/0_1_9_n32_mips3_gcc
2020-01-02 13:57:49.976 Matched 0 1 9 _n32_mips3_gcc
@dillera
dillera / post-booterizer-bootstrap.txt
Last active January 1, 2020 23:41
Fuel Post Booterizer
Fuel - post Booterizer Setup
Sections:
1. install Dev packages
2. run irix_ansible
3. install didbs
https://www.well.ox.ac.uk/~johnb/comp/unix/ksh.html