Skip to content

Instantly share code, notes, and snippets.

@Tookmund
Tookmund / 1000-snis-download-build.hook.binary
Created September 6, 2017 03:52
live build for Space Nerds In Space
#!/bin/sh
apt install --yes git devscripts
URL="https://github.com/smcameron/space-nerds-in-space"
CACHE="../cache/snis/"
TARGET=$PWD
mkdir -p $CACHE
git clone $URL $CACHE
cd $CACHE
Going to build Minix source code...
===> build.sh command: build.sh -j 1 -m i386 -O ../obj.i386 -D ../obj.i386/destdir.i386 -U -u release
===> build.sh started: Sat Apr 9 21:16:00 EDT 2016
===> MINIX version: 3.4.0
===> MACHINE: i386
===> MACHINE_ARCH: i386
===> Build platform: Linux 4.4.0-1-amd64 x86_64
===> HOST_SH: /bin/sh
===> MAKECONF file: /etc/mk.conf (File not found)
===> TOOLDIR path: /home/arthur/coding/minix/minix/../obj.i386/tooldir.Linux-4.4.0-1-amd64-x86_64
@Tookmund
Tookmund / dmesg.log
Created December 22, 2015 16:50
Odd radeon bug affecting my desktop
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.2.0-1-amd64 (debian-kernel@lists.debian.org) (gcc version 4.9.3 (Debian 4.9.3-8) ) #1 SMP Debian 4.2.6-3 (2015-12-06)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.2.0-1-amd64 root=UUID=23aa24f1-553c-422d-88c5-2ed845195251 ro quiet
[ 0.000000] tseg: 00bf800000
[ 0.000000] x86/fpu: xstate_offset[2]: 0240, xstate_sizes[2]: 0100
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x01: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x02: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x04: 'AVX registers'
@{builtin cd lib9 ; mk $MKFLAGS $stem}
c:/Users/jacob_2/Documents/code/inferno-os/Nt/386/lib/lib9.a doesn't exist: assu
ming it will be an archive
cl -c -nologo -W3 -Zi -MT -D_WIN32_WINNT=0x0400 -Ic:/Users/jacob_2/Documents/cod
e/inferno-os/Nt/386/include -Ic:/Users/jacob_2/Documents/code/inferno-os/include
convD2M.c
convD2M.c
convD2M.c(18) : warning C4267: '+=' : conversion from 'size_t' to 'int', possibl
e loss of data
convD2M.c(44) : warning C4267: '=' : conversion from 'size_t' to 'int', possible
@Tookmund
Tookmund / error.log
Created May 24, 2015 21:15
Minix Error Log
/usr/src/lib/libc/stdlib/malloc.c:341:1: warning: function 'wrterror' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
{
^
1 warning generated.
/usr/src/lib/libc/stdlib/malloc.c:341:1: warning: function 'wrterror' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
{
^
1 warning generated.
/usr/src/lib/libc/ssp/memcpy_chk.c:42:1: warning: no previous prototype for function '__memcpy_chk' [-Wmissing-prototypes]
__memcpy_chk(void * __restrict dst, const void * __restrict src, size_t len,
@Tookmund
Tookmund / 20150516
Created May 16, 2015 22:48
Minix cppcheck
[minix/benchmarks/unixbench-5.1.2/src/big.c:110]: (error) Return value of allocation function freopen is not used.
[minix/benchmarks/unixbench-5.1.2/src/big.c:198]: (error) Return value of allocation function freopen is not used.
[minix/benchmarks/unixbench-5.1.2/src/big.c:226]: (error) Return value of allocation function freopen is not used.
[minix/commands/at/at.c:168]: (error) Resource leak: fp
[minix/commands/cawf/regexp.c:238]: (error) Memory leak: r
[minix/commands/cawf/regexp.c:1208]: (error) Pointer to local array variable returned.
[minix/commands/ci/ci.c:283]: (error) Uninitialized variable: dirname
[minix/commands/ci/ci.c:285]: (error) Uninitialized variable: dirname
[minix/commands/ci/ci.c:286]: (error) Uninitialized variable: dirname
[minix/commands/cleantmp/cleantmp.c:102]: (error) Common realloc mistake: 'path' nulled but not freed upon failure
@Tookmund
Tookmund / Debootstrap Install.rst
Last active April 5, 2024 20:20
Install Debian or Ubuntu like Arch

This guide is a best-effort to configure a system with just debootstrap.

It has been updated so as not to be actively incorrect as of June 2022, when I realized it was still being used, but it was first written in 2015 and I can't guarantee that it's not missing essential parts of the process.

If it breaks, you get to keep both pieces

  1. Download a Debian live standard CD: https://cdimage.debian.org/cdimage/release/current-live/amd64/bt-hybrid/
  2. Login with user:live (if needed, it will probably automatically login)
  3. Check that you have internet with ip a. If you're using ethernet it should already be connected, otherwise you'll need to configure interfaces(5) and probably wpa_supplicant(8)
@Tookmund
Tookmund / xorg.conf
Last active August 29, 2015 14:18
Xorg.conf for Minix 3.3.1 on Thinkpad R51
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/X11R7/lib/modules"
@Tookmund
Tookmund / Syslog
Created February 4, 2014 01:19
Logs for debian
This file has been truncated, but you can view the full file.
Jan 21 15:20:16 j-deb rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="2398" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Jan 21 15:20:19 j-deb anacron[3614]: Job `cron.daily' terminated
Jan 21 15:20:19 j-deb anacron[3614]: Normal exit (1 job run)
Jan 21 15:22:11 j-deb dbus[3032]: [system] Reloaded configuration
Jan 21 15:22:11 j-deb dbus[3032]: [system] Reloaded configuration
Jan 21 15:22:11 j-deb dbus[3032]: [system] Reloaded configuration
Jan 21 15:22:11 j-deb dbus[3032]: [system] Reloaded configuration
Jan 21 15:22:11 j-deb dbus[3032]: [system] Reloaded configuration
Jan 21 15:22:24 j-deb dbus[3032]: [system] Reloaded configuration
Jan 21 15:22:24 j-deb dbus[3032]: [system] Reloaded configuration