Skip to content

Instantly share code, notes, and snippets.

View grahamperrin's full-sized avatar

Graham Perrin grahamperrin

View GitHub Profile
@grahamperrin
grahamperrin / wine-freebsd-i386-wine-pkg-current-amd64.txt
Created January 12, 2025 04:35
Wine on FreeBSD: upgrading ~/.i386-wine-pkg on FreeBSD 15.0-CURRENT on AMD64 – not on i386
grahamperrin:~ % echo $SHELL
/bin/tcsh
grahamperrin:~ % uname -mKU
amd64 1500030 1500030
grahamperrin:~ % setenv ABI FreeBSD:15:i386
grahamperrin:~ % /usr/bin/time -h pkg -o ABI_FILE=/usr/lib32/libc.so.7 -o INSTALL_AS_USER=true -o RUN_SCRIPTS=false --rootdir /home/grahamperrin/.i386-wine-pkg upgrade --fetch-only --quiet --yes --repository FreeBSD-ports-i386
Conflicts with the existing packages have been found.
One more solver iteration is needed to resolve them.
1m3.60s real 7.07s user 1.75s sys
grahamperrin:~ % pkg -o ABI_FILE=/usr/lib32/libc.so.7 -o INSTALL_AS_USER=true -o RUN_SCRIPTS=false -r /home/grahamperrin/.i386-wine-pkg upgrade -F -r FreeBSD-ports-i386 Updating FreeBSD-ports-i386 repository catalogue...
@grahamperrin
grahamperrin / 2024-12-22_0730-mac-typescript.txt
Created December 22, 2024 18:30
2024-12-22 FreeBSD pkgbase upgrade from 14.2-RELEASE to 15.0-CURRENT, part two
Script started on Sun Dec 22 07:30:24 2024
You have mail.
root@fourteen-pkgbase:~ # echo $SHELL
/bin/tcsh
root@fourteen-pkgbase:~ # date ; uptime
Sun Dec 22 07:30:30 GMT 2024
7:30AM up 6 mins, 2 users, load averages: 0.21, 0.12, 0.05
root@fourteen-pkgbase:~ # echo $EDITOR
vi
root@fourteen-pkgbase:~ # grep nano /etc/csh.cshrc
@grahamperrin
grahamperrin / 2024-12-22_0646-mac-typescript.txt
Last active December 22, 2024 18:29
2024-12-22 FreeBSD pkgbase upgrade from 14.2-RELEASE to 15.0-CURRENT, part one
Script started on Sun Dec 22 06:45:49 2024
You have mail.
root@fourteen-pkgbase:~ # echo $SHELL
/bin/tcsh
root@fourteen-pkgbase:~ # date ; uptime
Sun Dec 22 06:46:01 GMT 2024
6:46AM up 1:18, 1 user, load averages: 0.20, 0.33, 0.39
root@fourteen-pkgbase:~ # freebsd-version -kru ; uname -aKU
@grahamperrin
grahamperrin / 2024-12-19_18-57_chroot-typescript.txt
Created December 19, 2024 21:18
2024-12-19 18:57 chroot typescript
This file has been truncated, but you can view the full file.
Script started on Thu Dec 19 18:57:07 2024
root@pkg:~ # echo $SHELL
/bin/csh
root@pkg:~ # bectl list -c creation
BE Active Mountpoint Space Created
13.3r - - 53.3M 2024-07-20 15:42
14.1r NR / 6.77G 2024-12-19 16:57
13.3-RELEASE-p8_2024-12-19_172054 - - 2.11M 2024-12-19 17:20
@grahamperrin
grahamperrin / 2024-12-19_16-56_14.1r-chroot-typescript-partial.txt
Created December 19, 2024 21:16
2024-12-19 16:56 14.1r chroot typescript, partial
This file has been truncated, but you can view the full file.
Script started on Thu Dec 19 16:56:18 2024
root@pkg:~ # echo $SHELL
/bin/csh
root@pkg:~ # date ; uptime
Thu Dec 19 16:56:29 GMT 2024
4:56PM up 19 mins, 1 user, load averages: 0.14, 0.25, 0.23
root@pkg:~ # freebsd-version -kru ; uname -aKU
@grahamperrin
grahamperrin / 14.2r-20241215-1011-priority-5.txt
Created December 15, 2024 10:38
FreeBSD 14.2-RELEASE with kmods_latest_2 at priority 5, 2024-12-15 10:22
root@fourteen-pkgbase:~ # date ; uptime ; bectl list -c creation
Sun Dec 15 09:22:28 GMT 2024
9:22AM up 1 min, 1 user, load averages: 0.41, 0.14, 0.05
BE Active Mountpoint Space Created
original - - 458M 2024-07-10 02:29
fourteen-pkgbase - - 8.81G 2024-07-10 02:46
kde6 - - 8.17G 2024-07-21 15:45
14.2r R - 24.5G 2024-11-23 07:53
14.2r-20241215-1011 N / 110M 2024-12-15 09:13
root@fourteen-pkgbase:~ # bectl activate 14.2r-20241215-1011
@grahamperrin
grahamperrin / 14.2r-20241215-1011.txt
Created December 15, 2024 10:36
FreeBSD 14.2-RELEASE with kmods_latest_2 not prioritised, 2024-12-15 10:11
root@fourteen-pkgbase:~ # date ; uptime
Sun Dec 15 09:13:23 GMT 2024
9:13AM up 27 mins, 2 users, load averages: 0.17, 0.27, 0.37
root@fourteen-pkgbase:~ # uname -bmvKU
FreeBSD 14.2-RELEASE releng/14.2-n269506-c8918d6c7412 GENERIC amd64 1402000 1402000 4f83741c36da87fe6226d4043930a4ea79801b8e
root@fourteen-pkgbase:~ # pkg -vv | grep -B 1 -e url -e priority
FreeBSD-ports: {
url : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest",
enabled : yes,
priority : 0,
@grahamperrin
grahamperrin / 14.2-RC1-pkgbase-transcript-MacBookPro8,3.txt
Created November 23, 2024 11:25
FreeBSD pkgbase upgrade from 14.2-BETA3 to 14.2-RC1 – MacBookPro8,3
root@fourteen-pkgbase:~ # freebsd-version -kru ; uname -bmvKU
14.2-BETA3
14.2-BETA3
14.2-BETA3
FreeBSD 14.2-BETA3 releng/14.2-n269493-bcd5f9573588 GENERIC amd64 1402000 1402000 620a4be8f253703ba67b3826b98e04ce6af18c06
root@fourteen-pkgbase:~ # /usr/bin/time -h pkg upgrade --fetch-only --quiet --yes --repository FreeBSD-base
Fetching provides database: 100% 19 MiB 2.8MB/s 00:07
Extracting database....success
9m23.88s real 1m9.71s user 22.22s sys
root@fourteen-pkgbase:~ # bectl list -c creation
@grahamperrin
grahamperrin / 14.2-BETA2-pkgbase-transcript-MacBookPro8,3.txt
Created November 10, 2024 17:31
FreeBSD pkgbase upgrade from 14.1-RELEASE-p6 to 14.2-BETA2 – MacBookPro8,3
root@fourteen-pkgbase:~ # bectl list -c creation
BE Active Mountpoint Space Created
original - - 346M 2024-07-10 02:29
fourteen-pkgbase NR / 13.5G 2024-07-10 02:46
kde6 - - 7.25G 2024-07-21 15:45
14.2-BETA2 - - 3.08G 2024-11-10 01:34
14.1-RELEASE-p6_2024-11-10_042257 - - 2.22M 2024-11-10 04:22
14.2-BETA2_2024-11-10_044031 - - 2.56M 2024-11-10 04:40
root@fourteen-pkgbase:~ # bectl destroy 14.2-BETA2_2024-11-10_044031
root@fourteen-pkgbase:~ # bectl destroy 14.1-RELEASE-p6_2024-11-10_042257
@grahamperrin
grahamperrin / r-freebsd-old-stylesheet.css
Created May 26, 2024 11:51
/r/freebsd old Reddit stylesheet
#header {
position:relative;
background:-moz-linear-gradient(top,#660000 0px,#8F0000 96px,#F7F7F7 97px,#DFDFDF 125px);
background:-webkit-linear-gradient(top,#660000 0px,#8F0000 96px,#F7F7F7 97px,#DFDFDF 125px);
background:-ms-linear-gradient(top,#660000 0px,#8F0000 96px,#F7F7F7 97px,#DFDFDF 125px);
background:linear-gradient(top,#660000 0px,#8F0000 96px,#F7F7F7 97px,#DFDFDF 125px);
z-index:99;
height:125px;
border-bottom:1px solid #B4B4B4;
}