This is a test of the color picker that's built into browsers to see if that's better than having lots of different CSS files to have a whole spectrum of choices. Note that links would need to change color if the background does which is another complication! I decided to go ahead and add syntax formatting using PrismJS even tho ATM I'm stuck with dark theme for that so playing around may be very ugly haha.
Linux Notes
# this is mostly for quick reference for brain farts or in case something happens reinstalling.
# Very much a WIP and incomplete, this isn't a baby's first how to Linux by any means lol
______
__/ BASH \______________________________________________________________________
# man pages vary in usefulness since they just list all options without meta knowledge and can be overwhelming.
# The goal here is as much VANILLA DEFAULT as possible
# and append with third party things because sometimes you can't install or projects die etc.
# list long, sort by time
$ ls -lt
$ find -name "filename"
$ grep -w word filename
# zgrep searches zipped files
# copy recursively
$ cp -r /here /there
# Useful when you want to copy a file to/from the directory you were just in.
$ cp ~-/foo.txt .
# moves former into latter
$ mv /here /there
# moves up one
$ mv /subfolder ..
$ cd /var/www/html
$ sudo mkdir newproject
# go home!
$ cd ~
# see all the filesystems currently mounted on your computer and
# their respective specs with the added benefit of nice formatting.
$ mount | column -t
# most used commands! a nice example of piping as well.
$ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
________
__/.bashrc \______________________________________________________________________
# /home/username/.bashrc is the location.
# User specific aliases and functions
# this is just for a fancy text color scheme
PS1="\[\033[1;30m\][\[\033[1;30m\]\u\[\033[1;30m\]@\[\033[1;30m\]\h\[\033[1;30m\]] \[\033[1;30m\]\$\[\033[0m\] "
# GZDOOM didn't have an installer for Fedora so I use chocolate doom instead.
alias doom1="chocolate-doom -iwad ~/'GOG Games'/DOOM/doom.wad"
alias doom2="chocolate-doom -iwad ~/'GOG Games'/DOOM/DOOM2.wad"
alias doomp="chocolate-doom -iwad ~/'GOG Games'/DOOM/plutonia.wad"
alias doomt="chocolate-doom -iwad ~/'GOG Games'/DOOM/tnt.wad"
# convenient shortcuts
alias la="ls -lah --color=auto"
________________________________________________________________________________
____________
__/ Utilities \________________________________________________________________
# These are the ones I find useful, even if it isn't very often.
# btop++
# fastfetch (instead of neofetch)
# pianobar needs a folder+file in .config so just copied the old one.
# (Note this is from adding a new SSD so the old one was plugged in and could copy!)
## https://github.com/yt-dlp/yt-dlp/
https://ytdl-org.github.io/youtube-dl/supportedsites.html
# to keep track of changes in a playlist do this first time:
yt-dlp --download-archive archive.txt "playlist url"
# basic use, AMV playlist as example:
yt-dlp --download-archive archive.txt "https://www.youtube.com/playlist?list=PLvxrevgM9zouJ49hrmL7oCMwU2C8eGAAc"
# more options:
--playlist-items 6,9,20-25
--write-subs
#draw/paint
yt-dlp --download-archive archive.txt https://www.youtube.com/playlist?list=PLvxrevgM9zos3At0nzRG4TjCS1Riv7bJD
#music
yt-dlp --download-archive archive.txt https://www.youtube.com/playlist?list=PL86EFCA6F7580BA6B
#worldbuilding
yt-dlp --download-archive archive.txt https://www.youtube.com/playlist?list=PLvxrevgM9zovMnOzV8Lneml6vaODB7D07
_______________
__/ BACKUP NOTES \_________________________________________________________________
#SAVE GAMES- wherever those are located.
~/.wine/drive_c/users/ben/Application Data/runic games/torchlight
/home/ben/.config/StardewValley/saves
/home/.minetest/worlds
/home/.local/share/openmw/saves
# FlatOut has WINE bundled in so it was a journey to find.
/ben/GOG Games/FlatOut/prefix/drive_c/users/ben # has a Saved Games folder but it's empty!
/ben/GOG Games/FlatOut/prefix/drive_c/GOG Games/FlatOut/Savegame # is where it is!
# Steam games saved under
/ben/.local/share/Steam/userdata/293788130/
# then folders which use the steam id for each game, for example Oblivion is 22330
# But that's mainly for emergency or ones that don't save to the cloud since it seems 90% of the ones I checked were fine.
# WWW- anything not in git, like bookmarks.html
# Make sure everything with GIT is synched!
# also anything in gitignore needs manual backup!!!!!!!!
# archive items verbose
$ rsync -aiv /home/ben/Documents /hdd1/Backup
_______________
__/ INSTALL STEPS \_________________________________________________________________
# This is for Fedora in 2025
# Now RE install is fairly simple, going from 42 to 43 took less than an hour and I waited a few weeks so no obvious bugs.
# For a CLEAN install of course that part will probably be simple but the rest is fiddly piddly tweaking.
# 1. after install and it works, "sudo dnf upgrade" and reboot.
# 2. VERY important to go to power management and turn OFF "shut down after 15 minutes""!!!
# because you'll be downloading and the @%Q%$%#$^#^#%^@#%^%^ will SHUT OFF! SRSLY WTF KDE.
# 3. change hostname to whatever->
$ hostnamectl
$ sudo hostnamectl set-hostname --pretty "A very fancy name"
$ sudo hostnamectl set-hostname --static compy2000
# 4. gimme that GOOD stuff
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
# 5. add uBlock Origin to Firefox so can look things up without pain.
# 6. adding drives!
# Since I have the SSD for the OS (even tho 1 terabyte now lol) and then a HDD for storage, gotta make sure it mounts.
$ sudo fdisk -l
# you can name this whatever
$ sudo mkdir -p /hdd1
$ sudo mount /dev/sda1 /hdd1
$ sudo blkid
# so far so good now the scary part, editing a critical system file!
# We want to add a line at the end of fstab like so--
# UUID=b17dec2f-e919-4677-972f-62e1b859fb9c /hdd1 ext4 defaults,nofail 0 2
$ sudo cp /etc/fstab /etc/fstab.old
$ sudo nano /etc/fstab
$ systemctl daemon-reload
$ sudo umount /hdd1
$ sudo mount -a
$ ls /
# should see hdd1 in the list!
$ ls /hdd1
# if the contents pop up it's working!
# also this
$ apachectl status
$ sudo systemctl enable httpd.service
# other Fedora stuff that might be useful IDK
$ rpm -qa | grep packagename
Steam
If reinstalling make sure it can find existing games- in the download options it has the main drive, you gotta pick another drive, and navigate to existing folder! Reboot and restart steam and it shows them installed! Have to turn off shader caching or it downloads tons of useless crap. Go into settings > compatibility and turn it on and it finally saw everything on the hdd.
a mystery
So yeah this LG monitor I have uses an awkward and silly little stick knob to control everything which is very stupid. Once in a blue moon when I turn everything on it acts like it should be on but displays nothing. Just turn it on and off again.
Paint Tool SAI
I have some SAI files and of course it does not have a Linux version, but I made it work under WINE a while back on the old drive. I still have the email from when I bought it in 2012 and you can still get an updated license file so all I need is to install on the new. I just did vanilla Fedora WINE install because I don't have time for too many steps, it's updated enough for me. THEN SAI 1 didn't want to work right, it said there's a priviledge error and who has time to figure that out when I can just download SAI 2!!! (ALso I got the 64 bit version IDK if it matters). It doens't even install it just runs the EXE from the folder. There's an old note here on using it- on winehq
Open sai2.ini from Sai's directory and make these modifications:
Make sure this setting is set to "yes": AlwaysUseTabletPcApi = yes
Set this to "yes": AvoidWacomBug = yes
Open Sai and go to Other > Options
Go to Pen Tablet (Usually the default option page)
Select "Use Windows API (For Windows Vista or later)"
Restart Sai
You should now have pen pressure on Wacom tablets (Using xsetwacom).
I did all that and it worked!
But you need a license to really USE it and I do so I just got the system ID from SAI2 and found the email from when I bought it over a decade ago.
license link
Just go here and toss in the numbers and boom a shiny new license. so easy so far!
I just need to find the right folder to move it into!
official website says it should look like this: Documents\SYSTEMAX Software Development\SAIv2
You're probably thinking BASH is involved? Arcane wizardry that require precise spelling!?!? NOPE lol.
SAI2 stuffed it in my normal Documents folder so I just used the splitscreen feature to open Downloads on one side and drag and move over.
Then reopened SAI2 and boom I can open and save and pen pressure. Amazing.
It is a little slow at times but I'm not trying to really draw just export as PSD etc. for Krita.
Oh, I did move the SAI2 folder into my Documents folder because IDK better than leaving it in downloads. The only annoying thing is it doesn't associate the SAI filetype with it, so have to use SAI's CTRL+O to dig around. Yeah sure I could probably fix it if I planned to use more than five minutes.