Compare commits

...

8 Commits

Author SHA1 Message Date
89d235ac19 updates dirs 2026-01-21 20:52:00 -08:00
4fd013af82 adds save display config 2026-01-07 19:06:09 -08:00
fe734e633e updates fstab entries 2026-01-07 19:05:59 -08:00
7ff462ef3a updates fstab script 2025-07-10 14:06:54 -07:00
Carlos Aldana
dea48aeed5 updates adding nfs mounts 2025-06-12 16:02:56 -07:00
Carlos Aldana
9d767ed88c adds omakub script 2025-05-20 17:49:24 -07:00
Carlos Aldana
b6a2195ed3 updates ghostty script 2025-05-20 17:49:18 -07:00
Carlos Aldana
a163166a19 turns gnome to exec 2025-05-20 17:49:07 -07:00
6 changed files with 65 additions and 13 deletions

View File

@@ -1,7 +1,45 @@
sudo cat fstab >>/etc/fstab
#!/bin/bash
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# cat fstab | sudo tee -a /etc/fstab
sudo mkdir /kpnas
cd /kpnas
sudo mkdir videos vfx library localData web videos
sudo mkdir videos vfx library localData web videos data media nvme other
cd ~/
mkdir fabrication projects Remote
mkdir fabrication projects server
# Change to the script's directory
cd "$script_dir" || exit
# Now you are in the script's directory
# echo "Current directory: $(pwd)"
entries_file="fstab"
if [[ ! -f "$entries_file" ]]; then
echo "Entries file '$entries_file' not found."
exit 1
fi
# Backup the original fstab file
# cp /etc/fstab /etc/fstab.bak
# Function to check if an entry exists in fstab
entry_exists() {
local entry="$1"
grep -qF -- "$entry" /etc/fstab
}
# Read entries from the file and add them if they don't exist
while IFS= read -r entry; do
# Skip empty lines or lines starting with #
[[ -z "$entry" || "$entry" =~ ^# ]] && continue
if entry_exists "$entry"; then
echo "Entry already exists: $entry"
else
echo "Adding entry: $entry"
echo "$entry" | sudo tee -a /etc/fstab >/dev/null
fi
done <"$entries_file"
echo "Done."
sudo apt install nfs-common -y

View File

@@ -1,10 +1,15 @@
192.168.86.50:/Carlos/Documents /home/carlos/Documents nfs nofail 0 2
192.168.86.50:/Carlos/Images /home/carlos/Pictures nfs nofail 0 2
192.168.86.50:/Fabrication /home/carlos/fabrication nfs nofail 0 2
192.168.86.50:/Projects /home/carlos/projects nfs nofail 0 2
192.168.86.50:/Carlos /home/carlos/Remote nfs nofail 0 2
192.168.86.50:/Library /kpnas/library nfs nofail 0 2
192.168.86.50:/LocalData /kpnas/localData nfs nofail 0 2
192.168.86.50:/VFX /kpnas/vfx nfs nofail 0 2
192.168.86.50:/Videos /kpnas/videos nfs nofail 0 2
192.168.86.50:/Web /kpnas/web nfs nofail 0 2
kp-server:/mnt/data /kpnas/data nfs nofail 0 2
192.168.86.50:/Library /kpnas/library nfs nofail 0 2
192.168.86.50:/LocalData /kpnas/localData nfs nofail 0 2
192.168.86.50:/Media /kpnas/media nfs nofail 0 2
192.168.86.50:/NVME /kpnas/nvme nfs nofail 0 2
192.168.86.50:/Videos /kpnas/videos nfs user 0 2
192.168.86.50:/VFX /kpnas/vfx nfs user 0 2
192.168.86.50:/Web /kpnas/web nfs nofail 0 2
192.168.86.50:/Carlos /home/carlos/server nfs nofail 0 2
192.168.86.50:/Carlos/Images /home/carlos/Pictures nfs nofail 0 2
192.168.86.50:/Carlos/Documents /home/carlos/Documents nfs nofail 0 2
192.168.86.50:/Fabrication /home/carlos/fabrication nfs nofail 0 2
192.168.86.50:/Projects /home/carlos/projects nfs nofail 0 2
192.168.86.50:/Media/Music /home/carlos/Music nfs nofail 0 2
192.168.86.50:/Carlos/Other /kpnas/other nfs nofail 0 2

View File

@@ -1,3 +1,4 @@
#! /bin/bash
dconf dump / >settings.gnome
git add settings.gnome

3
omakub.sh Normal file
View File

@@ -0,0 +1,3 @@
git config --global credential.helper store
git clone https://git.noisyserver.sbs/noisycarlos/omakub ~/.local/share/omakub
bash ~/.local/share/omakub/install.sh

View File

@@ -1,3 +1,4 @@
cd ~/Downloads
wget https://github.com/mkasberg/ghostty-ubuntu/releases/download/1.1.3-0-ppa2/ghostty_1.1.3-0.ppa2_amd64_24.04.deb
sudo dpkg -i ./ghostty_1.1.3-0.ppa2_amd64_24.04.deb
cd -

View File

@@ -0,0 +1,4 @@
#!/bin/bash
hostname=$(hostname)
# echo ~/.local/share/omakub/configs/displays/displays-${hostname}.config
xrandr | tee ~/.local/share/omakub/configs/displays/displays-${hostname}.config