soft.linux - jgrey4296/jgrey4296.github.io GitHub Wiki

Linux

systemctl snap service

Linux

Startup

Boot Log

“journalctl -b” to inspect boot log

Grub

https://www.gnu.org/software/grub/manual/grub/grub.html in /etc/default/grub remove “quiet splash” then run “sudo update-grub2”

System D

https://wiki.ubuntu.com/SystemdForUpstartUsers https://docs.fedoraproject.org/en-US/quick-docs/systemd-understanding-and-administering/ https://docs.redhat.com/en/documentation/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html https://access.redhat.com/articles/754933

systemctl --version
# Gets startup programs
systemctl --all list-unit-files --type=service

init-d

man init-d-script --help 2>&1

Drive mounting

/etc/fstab

Bluetooth wake

https://askubuntu.com/questions/239590/how-do-i-wake-from-sleep-using-a-bluetooth-keyboard

Firewall

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu

ufw --help

Keyboard settings

https://askubuntu.com/questions/818413/how-can-i-toggle-the-fn-function-key https://unix.stackexchange.com/questions/407501/make-apple-keyboard-settings-persistent-in-hid-apple-parameters https://help.ubuntu.com/community/AppleKeyboard#Change_Function_Key_behavior https://wiki.linuxquestions.org/wiki/Altering_or_Creating_Keyboard_Maps

Locations

$HOME $HOME/_cache_ : sdkman, sdkmanager, mamba, mail… $HOME/.config : settings, symlink to this repo, secrets for encrypted stuff $HOME/.local : things better installed manually. texlive, javamo, jason, mamba, opa

Networking

systemctl restart Networking.service
nmcli --help 2>&1

Firewall: UFW

sudo ufw allow ssh

USB Wake

https://askubuntu.com/questions/1268107

modify /sys/bus/usb/devices/usb{bus}/power/wakeup to enabled

sudo sh -c "echo 'enabled' > /sys/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/power/wakeup"
lsusb --help 2>&1

Version check

https://kinsta.com/knowledgebase/check-ubuntu-version/

lsb_release -a
echo "---"
cat /etc/os-release
echo "---"
hostnamectl

Groups

groupadd --help

useradd --help

chown --help

sandboxing

https://containertoolbx.org/

bluetooth bluez

https://www.pcsuggest.com/linux-bluetooth-setup-hcitool-bluez/ https://programmerall.com/article/4399592982/

sdptool bluetoothctl hcitool

systemctl

# list-units list-paths list-automounts list-sockets list-timers
systemctl list-automounts

journalctl

Snap

https://www.freecodecamp.org/news/managing-ubuntu-snaps/

# List running services
snap services
# Stop a service:
# snap stop --disable %x

dotnet

https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install https://github.com/dotnet/sdk/issues/34590

add permission

snap connections mega-cmd
snap connect mega-cmd:removable-media

Flatpak

https://flathub.org/setup/Ubuntu https://docs.flatpak.org/en/latest/ https://itsfoss.com/flatpak-guide/ https://learnubuntu.com/install-emacs/

flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Apt

https://vitux.com/how-to-add-remove-ppa-repositories-in-ubuntu/

Add sources to etc/apt/sources.list.d templates are in ~/.config/jg/templates/sources/

https://launchpad.net/~potassco

dpkg

Use to find where apt puts stuff

# Find installed emacs files
dpkg -L emacs

Links

⚠️ **GitHub.com Fallback** ⚠️