Friday, August 9, 2024

straight to i3 no lightdm

sudo apt remove --purge lightdm
sudo apt autoremove
sudo apt install xinit
vim ~/.xinitrc
exec i3
vim ~/.profile
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
  startx
fi

for the i3 config i like to add

sudo apt-get install unclutter

#add to /.config/i3/config
exec --no-startup-id unclutter -idle 2

tired of waiting to enter commands apparently you can double pipe to true and its supposed to keep going even if one of the parts fails

sudo apt-get install -y vifm milkytracker cmus tmux git i3 w3m || true

that way just suppresses errors. looping over them might be better?

sudo apt-get update

# List of packages to install
packages=("vifm" "milkytracker" "cmus" "tmux" "git" "i3" "w3m" "schism")

# Install each package individually
for pkg in "${packages[@]}"; do
    echo "Installing $pkg..."
    sudo apt-get install -y $pkg || echo "Failed to install $pkg"
done

hide the mouse in i3

exec --no-startup-id -idle 2

autostary programs on raspberry pi

with autostar

git clone https://github.com/Botspot/autostar
~/autostar/main.sh

this patch goose patch on amazon

goose patch

Thursday, August 8, 2024

how to backup iso using cli

Step Linux/macOS Windows
Insert SD Card Insert the Raspberry Pi SD card into your computer. Insert the Raspberry Pi SD card into your computer.
Identify SD Card Use diskutil list (macOS) or lsblk (Linux) to find the device identifier (e.g., /dev/sdb). Skip to the next step as Win32 Disk Imager handles this.
Create Backup Run: sudo dd if=/dev/sdX of=~/raspberry_pi_backup.iso bs=4M (replace /dev/sdX with the correct device identifier). Use Win32 Disk Imager: Select the SD card, choose a save location, and click "Read" to create the backup.
Verify Backup Check the size of the ISO file and optionally mount it to verify the contents. Check the size of the ISO file and optionally mount it to verify the contents.
Restore (Optional) To restore, run: sudo dd if=~/raspberry_pi_backup.iso of=/dev/sdX bs=4M. Use Win32 Disk Imager: Select the ISO file and write it to the SD card.
Notes The dd command is powerful, so double-check device identifiers to avoid mistakes. Ensure you have enough storage space for the .iso file. The .iso file will be the size of the SD card, so make sure you have enough storage space.

raspberry pi 3.5 tft waveshare screen better frame rate

bytesnbits article

Wednesday, August 7, 2024

post to blogger from email

Recently discovered the option in blogger to post from email. Previously had it disabled. I'm making a shortcut to publish blogposts from an iPhone.

mixxx on raspberry pi3b

fayaaz/mixxx-pigen on github

a raspbian image with realtime kernel mixxx and sway wm

NSCDE a really nice window manager

Its a fork of fvwm

nscde on github

Grammar Checking In Vim: Proselint

Tuesday, August 6, 2024

vim spellcheck

enable with

:set spell
  • s[ go to next mispelled word
  • z= show changes
  • zg add to dictionary
  • zw remove

Saturday, August 3, 2024

i3 on raspberry pi os lite is great

install i3 on pi lite

sudo apt-get install i3
sudo apt-get install xserver-xorg
sudo apt-get install xinit
sudo startx

it works on a pi zero!
in raspi-config set auto login to console and use the script below to have it run startx for you after loading the tty

auto startx


vim ~/.profile

if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
    startx
fi

the default terminal is atrocious light theme. the i3-sensible-terminal references URxvt terminal so change those configurations and make the font bigger

how to grep ip using ifconfig

ifconfig | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}'

Friday, August 2, 2024

ai tools to check out for linux

under 20$ pizza order options

Pizza Pizza

a pizza order i was putting together at pizza pizza

Pizza Pizza has a fixed price 4 topping xl deal which may be better than my custom one

mountroyal pizza

this spot in burlington has some gourmet pizzas, the brisket looks good

Napolitana -medium @ Pizza Nova is $19.34 - anchovies, black olives, mushroom

Pizza Pollo @ Pizza nova has been my goto for years. $19.49 for a small. Its $23.89 for a medium

  • grilled chicken
  • roasted red pepper
  • spinach
  • feta

Chicken Florentine

$18.89 small med $23.34

  • pesto base
  • chicken
  • feta
  • roasted garlic
  • spinach

Tuscan Pesto

$19.49 small

  • pesto base
  • chicken
  • roasted red peppers
  • artichokes
  • goat cheese

something like karabiner on mac but for linux

Feeds - RSS reader

  1. gnome-feeds
  2. nom
  3. quiterss

sudo apt install gnome-feeds

sudo apt install nom

sudo apt install quiterss

newsboat is great but I was looking for something different. I really like feeds its clean and simple and you don't have to deal with some config files.

linuxlinks.com

I like this webistes reviews of linux software

linuxlinks.com

Thursday, August 1, 2024

i3status toolbar normal time instead of 24 hour

 sudo vim /etc/i3status.conf

edit the %H %M %S to be %I %M %P

The Tree Command


sudo apt install tree

I like piping the output of tree into less so I can actually see the rest of it using vim binds, and I like to pipe it to the clipboard when im trying to explain a directory structure to chatgpt

how to pipe term output into system clipboard


echo "hello world" | xclip -selection clipboard

!! | xclip -selection clipboard

This pipes the output of the last run command into the system clipboard