Compare commits
8 Commits
d2010eba2b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 89d235ac19 | |||
| 4fd013af82 | |||
| fe734e633e | |||
| 7ff462ef3a | |||
|
|
dea48aeed5 | ||
|
|
9d767ed88c | ||
|
|
b6a2195ed3 | ||
|
|
a163166a19 |
@@ -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
|
sudo mkdir /kpnas
|
||||||
cd /kpnas
|
cd /kpnas
|
||||||
sudo mkdir videos vfx library localData web videos
|
sudo mkdir videos vfx library localData web videos data media nvme other
|
||||||
cd ~/
|
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
|
||||||
|
|||||||
25
common/fstab
25
common/fstab
@@ -1,10 +1,15 @@
|
|||||||
192.168.86.50:/Carlos/Documents /home/carlos/Documents nfs nofail 0 2
|
kp-server:/mnt/data /kpnas/data nfs nofail 0 2
|
||||||
192.168.86.50:/Carlos/Images /home/carlos/Pictures nfs nofail 0 2
|
192.168.86.50:/Library /kpnas/library nfs nofail 0 2
|
||||||
192.168.86.50:/Fabrication /home/carlos/fabrication nfs nofail 0 2
|
192.168.86.50:/LocalData /kpnas/localData nfs nofail 0 2
|
||||||
192.168.86.50:/Projects /home/carlos/projects nfs nofail 0 2
|
192.168.86.50:/Media /kpnas/media nfs nofail 0 2
|
||||||
192.168.86.50:/Carlos /home/carlos/Remote nfs nofail 0 2
|
192.168.86.50:/NVME /kpnas/nvme nfs nofail 0 2
|
||||||
192.168.86.50:/Library /kpnas/library nfs nofail 0 2
|
192.168.86.50:/Videos /kpnas/videos nfs user 0 2
|
||||||
192.168.86.50:/LocalData /kpnas/localData nfs nofail 0 2
|
192.168.86.50:/VFX /kpnas/vfx nfs user 0 2
|
||||||
192.168.86.50:/VFX /kpnas/vfx nfs nofail 0 2
|
192.168.86.50:/Web /kpnas/web nfs nofail 0 2
|
||||||
192.168.86.50:/Videos /kpnas/videos nfs nofail 0 2
|
192.168.86.50:/Carlos /home/carlos/server nfs nofail 0 2
|
||||||
192.168.86.50:/Web /kpnas/web 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
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#! /bin/bash
|
||||||
dconf dump / >settings.gnome
|
dconf dump / >settings.gnome
|
||||||
|
|
||||||
git add settings.gnome
|
git add settings.gnome
|
||||||
|
|||||||
3
omakub.sh
Normal file
3
omakub.sh
Normal 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
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
cd ~/Downloads
|
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
|
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
|
sudo dpkg -i ./ghostty_1.1.3-0.ppa2_amd64_24.04.deb
|
||||||
|
cd -
|
||||||
|
|||||||
4
ubuntu/scripts/save_display_config.sh
Executable file
4
ubuntu/scripts/save_display_config.sh
Executable 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
|
||||||
Reference in New Issue
Block a user