Skip to main content

Posts

Getting rtcwake working on Bluefin

#!/bin/bash # User systemd setup for auto suspend/wake on Bluefin #Please run these two commands manually: #1. First, create the sudo rule: echo "$( whoami ) ALL=(ALL) NOPASSWD: /usr/bin/rtcwake" | sudo tee /etc/sudoers.d/rtcwake-nopasswd #bash #2. Then set the correct permissions: sudo chmod 440 /etc/sudoers.d/rtcwake-nopasswd #bash #After you've run those commands, we can test if passwordless sudo works: sudo rtcwake -m show #❯ sudo rtcwake -m show #alarm: off # Create user service directory mkdir -p ~/.config/systemd/user # Create helper script for suspend + rtcwake mkdir -p ~/bin cat > ~/bin/rtc-suspend.sh << 'EOF' #!/bin/bash # Helper script to suspend and set RTC wake time # Usage: rtc-suspend.sh "wake_time_description" if [ $# -ne 1 ]; then echo "Usage: $0 'wake_time_description'" echo "Example: $0 '15:00 today'" exit 1 fi wake_time="$1" wake_timestamp=$(date -d ...

Ublue Aurora Custom Image

Development environment: https://docs.projectbluefin.io/bluefin-dx Terminal setup: https://docs.projectbluefin.io/command-line/ Rebasing: https://docs.projectbluefin.io/administration/ Custom Images: Images for NVIDIA and non-NVIDIA at: https://github.com/whelanh/myAurora OneDrive: brew install onedrive # type onedrive to register/connect with your MSft OneDrive account brew services start onedrive Tailscale: Already installed in Aurora tailscale up --ssh # flag permits ssh access tailscale ssh <tailscale node name> Toolbox (good pattern: use to compile Stockfish...but can now do in custom image): toolbox create toolbox enter sudo dnf groupinstall "Development Tools" sudo dnf in gcc-c++ Cron Replacement : https://fedoramagazine.org/systemd-timers-for-scheduling-tasks/ systemctl --user stop schedule-test.timer systemctl --user disable schedule-test.timer systemctl --user stop schedule-test.service systemctl --user disable schedule-te...

Opensuse Tumbleweed

  Edit zypp.conf: sudo micro /etc/zypp/zypp.conf    parallel downloads=5 download.min_download_speed = 20000   Install opi: sudo zypper install opi sudo zypper install -t pattern devel_basis Install Pycharm: sudo zypper in libgthread-2_0-0 gcc-fortran gnome-disk-utility texlive sudo opi pycharm sudo zypper in python3-pandas python3-suds python3-colorama python3-reportlab python3-svglib sudo pip3 install chess --break-system-packages sudo opi micro   Rstudio-desktop: sudo zypper in R-base-devel sudo opi rstudio-desktop opi version is outdated, so can also download Opensuse rpm from: https://posit.co/download/rstudio-desktop/  then:  sudo zypper in [ downloaded rpm file ] You also need to: sudo zypper in openssl-1_1 If you manually install rstudio, zypper will want to downgrade....so run sudo zypper al rstudio .....which locks the package ( sudo zypper removelock rstudio to remove lock) sudo dnf in openssl-devel libcurl-devel fontconfig-devel libxm...

Fedora Install Notes

  Many of the steps in setting up Fedora are the same as I do for Arch.  My preferred install is Fedora Rawhide.  You are better off with the default "Gnome" desktop than trying the KDE spin (seems to be the best integrated experience with few/no hardware/GPU issues). Helpful notes to me: Initial "get started" installs: sudo dnf in R bat btrfs-assistant cmake duf fastfetch fish fontawesome-fonts-all freetype-devel fribidi-devel gnome-extensions-app gnome-tweaks htop inxi java-latest-openjdk-devel jetbrains-mono-fonts kitty kmymoney lftp libcurl-devel libjpeg-turbo-devel libpng-devel libtiff-devel llvm-devel meson micro onedrive python3-colorama python3-ipykernel python3-pip python3-pyquery sqlitebrowser tcl8-devel tk8-devel typescript xsane zsh Snapper: do rollback: Use sudo snapper ls to list all available snapshots and their corresponding numbers. Note the number of the snapshot you want to revert to. Open a terminal and use the following command: sudo snapper ro...

Final Tweaks

 In System Settings app: Uncheck Suspend Session in Power Management, Energy Savings (I've had back luck with corrupted suspends that cause boot failure)   Turn on numlock in Input Devices, Keyboard   Turn on night color in Display and Monitor, Night Color In right-click Display Settings, set up random slide show with preferred wallpapers sudo su and then EDITOR=micro visudo  to get rid of update password timeout Defaults passwd_timeout=0  sudo micro  /boot/loader/loader.conf   to set longer time for boot menu Set up Printer.  HP is easy using HPlip.   Set up Printer: For Brother Laser printer: download linux deb package from Brother yay -S dpkg sudo dpkg -i --force-architecture hll2480dwpdrv-4.1.0-1.i386.deb Then set up in KDE add printer; manually point to ppd file at /usr/share/ppd/brother/XXXXX.ppd socket://192.168.4.174 and https://support.cc.gatech.edu/support-tools/howto/direct-ip-printing-unix   yay -S brother-hll2370dw ...

Install Windows 11 on Virt-Manager

 Virt-Manager will have been installed in base install.  But to enable it (make sure SVM, or whatever virtualization is called in your BIOS is enabled). From https://computingforgeeks.com/install-kvm-qemu-virt-manager-arch-manjar/ sudo pacman -S qemu-full virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat dmidecode ip tables libguestfs edk2-ovmf swtpm Then enable and start libritd.service sudo systemctl enable libvirtd.service sudo systemctl start libvirtd.service sudo micro /etc/libvirt/libvirtd.conf Set the UNIX domain socket group ownership to libvirt, (around line 85 ) unix_sock_group = "libvirt" Set the UNIX socket permissions for the R/W socket (around line 102 ) unix_sock_rw_perms = "0770" Add your user account to libvirt group.   sudo usermod -a -G libvirt $(whoami) newgrp libvirt Restart libvirt daemon. sudo systemctl restart libvirtd.service Section below is quoted directly from https://linustechtips.com/topic/1379063-windows-11-in-virt-mana...