diff options
author | noa@gaiwan.org | 2024-06-19 07:44:22 +0000 |
---|---|---|
committer | noa@gaiwan.org | 2024-06-19 07:44:22 +0000 |
commit | 3c10944651bc941149ae987ee8a4ea0c88378322 (patch) | |
tree | 3073bbe34b39ef127c29ea4ee7a9286a367e0c2b /setup.sh | |
parent | 2bec8ba46383685c28c55bd7969ee696aa31a528 (diff) |
Initial commit
Diffstat (limited to 'setup.sh')
-rwxr-xr-x | setup.sh | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/setup.sh b/setup.sh deleted file mode 100755 index 14caacf..0000000 --- a/setup.sh +++ /dev/null @@ -1,106 +0,0 @@ -#!/usr/bin/env sh - -set -e - -echo "Hi noa. Let's get things set up~" -echo "This script assumes a kde neon install." -read -p "Press RET when you are ready to start." - -echo -echo "=== SYSTEM UPDATE ===" -pkcon refresh -pkcon update - -echo -echo "=== DISABLE SNAP AND APPARMOR ===" -sudo apt remove -y plasma-discover-backend-snap -sudo systemctl stop apparmor -sudo systemctl disable apparmor -sudo apt remove apparmor - -echo -echo "=== CONFIGURE PLASMA ===" - -## Put control at left of space bar -## Better touchpad settings -## Night light -## Faster animations - -## Open krunner instead of application launcher -kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.krunner,/App,,display" - -## Nicer application launcher -## Nicer task bar - -#echo -#echo "=== INSTALL FONTS ===" -#sudo apt install fonts-noto-core - -echo "=== SET UP CHINESE INPUT ===" -sudo apt install -y --install-recommends --install-suggests fcitx5 -sudo apt remove -y im-config - -echo -echo "=== INSTALL DESKTOP PROGRAMS FROM APT ===" -sudo apt install rclone keepassxc - -echo -echo "=== INSTALL DESKTOP PROGRAMS FROM FLATHUB ===" -flatpak install flathub net.ankiweb.Anki - -echo -echo "=== CONFIGURE FIREFOX ===" -# copy user.js to right location -# copy userchrome to right location - -echo -echo "=== INSTALL FIREFOX ADDONS ===" -# - https://addons.mozilla.org/en-US/firefox/addon/keepassxc-browser/ -# - https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/ -# - https://addons.mozilla.org/en-US/firefox/addon/plasma-integration/ -# - https://addons.mozilla.org/en-US/firefox/addon/zhongwen/ -# - single tab? - -echo -echo "=== FETCH FILES ===" -while [ ! -f ~/.config/Passwords.kdbx ]; do - read -p "It looks like ~/.config/Passwords.kdbx doesn't exist. Make sure it exists and press RET when you're ready." -done - -read -rp "Fastmail username: " fastmailusername -echo "Now go to https://app.fastmail.com/settings/security/integrations/devicekeys/new?u=0b814011 and create a new app password with access to webdav." -read -rsp "Fastmail app password: " fastmailpassword -echo # Read with -s appears not to properly newline - -rclone config create fastmail webdav \ - url "https://webdav.fastmail.com/" \ - vendor "fastmail" \ - user "$fastmailusername" \ - pass "$fastmailpassword" \ - --obscure - -echo -rclone copy "fastmail:noa.gaiwan.org/files/10-19 Personal" "$HOME/10-19 Personal" -P -rclone copy "fastmail:noa.gaiwan.org/files/20-29 Study" "$HOME/20-29 Study" -P -rclone copy "fastmail:noa.gaiwan.org/files/30-39 Media" "$HOME/30-39 Media" -P -rclone copy "fastmail:noa.gaiwan.org/files/40-49 Words" "$HOME/40-49 Words" -P -rclone copy "fastmail:noa.gaiwan.org/files/50-59 Code" "$HOME/50-59 Code" -P - -echo -echo "=== CONFIGURE MAIL ===" -echo "Now go to https://app.fastmail.com/settings/security/integrations/devicekeys/new?u=0b814011 and create a new app password with access to imap and smtp." -read -rp "Fastmail app password: " fastmailpassword -echo # Read with -s appears not to properly newline -sed -i "s/!!REDACTED!!/$fastmailpassword/" ~/.config/mbsyncrc -sed -i "s/!!REDACTED!!/$fastmailpassword/" ~/.config/msmtp/config - -# mu init --maildir=~/mail '--my-address=/.*@gaiwan\.org/' -# mu index - -#echo -#echo "=== DOWNLOAD WIKIPEDIA MIRROR ===" -#echo "Go to https://ftp.halifax.rwth-aachen.de/aarddict/zhwiki/ and download the latest slob file to ~/Documents/Dictionaries." - -echo -echo "Thanks~" - |