Tuesday, February 11, 2025

using apt or nala

using apt or nala

sudo apt update 

apt list --upgradable

sudo apt upgrade

sudo apt autoclean && sudo apt autoremove 

 

apt list --installed

apt search fastfetch
apt search gcc
apt search python
apt search python | grep installed
apt remove tlp
 

history -w /dev/stdout | grep apt |sort |uniq >> apt_history.txt
 

sudo add-apt-repository ppa:fastfetch/stable
sudo add-apt-repository ppa:zhangsongcui3371/fastfetch
sudo apt install fastfetch

sudo apt remove tlp
 

sudo nala search



 

 

 

 

Build and run Redox OS macos m1

 Build and run Redox OS macos m1

 

https://doc.redox-os.org/book/aarch64.html

https://gist.github.com/willnode/88da35d0c0542276b4631746d8fc3de1

 

 

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

Ubuntu Multipass for x86 MBP; Fedora m1 mac UTM

 

Ubuntu multipass

 
First download the tiny installer:
https://github.com/canonical/multipass/releases 
newer versions don't work on macos Monterey 12.6.7

Docs:


https://blog.humphd.org/multipass-on-macos/
https://fromanegg.com/post/2020/02/28/use-ubuntu-on-mac-os-with-multipass/
launch failed: multipass socket access denied
 
https://github.com/canonical/multipass/issues/1437
 
 FYI, the new command is multipass auth. Note you must first issue multipass set local.passphrase as admin to set passphrase (and then enter this same passphrase when issuing the auth command).

H...Gi...4...!
 
 
https://discourse.ubuntu.com/t/ubuntu-frame-on-macos-including-apple-silicon-m1/28534 

 

 

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