Wednesday, December 11, 2024

homebrew hints

homebrew hints

homebrew is unuable; it is taking hours to install the prerequisites for emacs29.  Macport is quick in comparison.

 

 


https://apple.stackexchange.com/questions/198623/uninstall-all-programs-installed-by-homebrew

I usually just do: 
brew remove --force $(brew list --formula)

and

brew remove --cask --force $(brew list)

 

 

https://mac.install.guide/homebrew/4

 

Interview: Max Howell, homebrew

https://sourcegraph.com/podcast/max-howell

 






Friday, December 6, 2024

Fedora on m1 mac UTM

 

Installing Fedora on an Apple Silicon Mac using UTM

I followed the step-by-step instructions, thank you Jason!

Virtualbox: No





Sunday, November 10, 2024

installing fastfetch

Installing fastfetch

Neofetch has been abandoned so fastfetch.

https://github.com/fastfetch-cli/fastfetch

 

https://idroot.us/install-fastfetch-ubuntu-24-04/


## sudo add-apt-repository ppa:fastfetch/stable

## ERROR: ppa 'fastfetch/stable' not found (use --login if private) 

 

sudo add-apt-repository ppa:zhangsongcui3371/fastfetch
sudo apt update 
 
 
old intel hd graphics on i7-4790 reported as Xeon 1200
fastfetch:
GPU: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Con]


neofetch:
GPU: Intel HD Graphics

Install and run inxi for analysis:
inxi -SGx
 
 
Update fastfetch documentation; write python script source: 
https://github.com/fastfetch-cli/fastfetch/issues/830 
https://github.com/fastfetch-cli/fastfetch/pull/1292

 
output: manpage 
 
help2man 

https://unix.stackexchange.com/questions/34516/can-i-create-a-man-page-for-a-script 
https://www.dlab.ninja/2021/10/how-to-write-manpages-with-markdown-and.html
https://www.linux-magazine.com/Online/Features/Parsing-man-pages-for-modern-users 
https://betterprogramming.pub/man-pages-the-complete-guide-800ad93425fe
 
 
 
 

 

 

Saturday, November 2, 2024

sshd troubleshooting

 OpenBSD sshd server

 systemctl status ssh

 

 

Systematic Troubleshooting

Troubleshooting SSH Issues: A Sysadmin‘s Survival Guide

check

hostname

Is host reachable on the network?

ping host


Look at the boot log

journalctl -k -b -1










Wednesday, October 30, 2024

Apple USB keyboard (wired)

Apple USB keyboard wired

It was a hardware problem: three arrow keys were not working on the Apple KB.
 Plugged PS/2 keyboard  into mouse port.

#. Not true:

These are great keyboards but support under Ubuntu is janky.

Info:

https://wiki.archlinux.org/title/Apple_Keyboard#hid_apple_module_options

https://unix.stackexchange.com/questions/407501/make-apple-keyboard-settings-persistent-in-hid-apple-parameters

 

https://2e0pgs.github.io/blog/sysadmin/2021/04/03/apple-keyboard-ubuntu/

 

You can add the following lines to: /etc/modprobe.d/hid_apple.conf

$ cat /etc/modprobe.d/hid_apple.conf
options hid_apple fnmode=2
options hid_apple iso_layout=0

Then run sudo update-initramfs -u -k all and sudo reboot


 

mac_hid or hid_apple

 Turns out hid_apple was renamed to applespi.

echo 2 | sudo tee /sys/module/applespi/parameters/fnmode


For trackpads and laptop keyboard



https://help.ubuntu.com/community/AppleKeyboard#Change_Function_Key_behavior

https://help.ubuntu.com/community/TroubleWithAppleKbdOnUbuntu

 

 

Wednesday, August 14, 2024

macports port hints

macports.org

search for available packages

https://ports.macports.org/

 

port installed
 
 
sudo port selfupdate

 

2.4. Uninstall MacPorts

uninstall all installed packages

sudo port -fp uninstall installed

 To find the location of installed components, use the contents subcommand:

port contents libxml2
macport prefix
 
 
https://github.com/cargo-generate/cargo-generate/issues/1208#issuecomment-2182884600
sudo port deactivate libiconv cargo install cargo-generate sudo port activate libiconv

 

MacPort Cheat Sheet