From 9646dce8a010d51ebd8ad8a6bfd2cf777e4511cd Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Sat, 23 Mar 2024 23:47:32 +0000 Subject: Update movein script --- movein | 76 ++++++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 41 insertions(+), 35 deletions(-) mode change 100644 => 100755 movein diff --git a/movein b/movein old mode 100644 new mode 100755 index 364daac..8f65d0f --- a/movein +++ b/movein @@ -4,40 +4,48 @@ set -e echo "Hi noa. Let's get things set up~" echo "This script assumes a debian install." +read -p "Press RET when you are ready to start." echo -echo "=== INSTALL NECESSARY SOFTWARE ===" -echo "Please run:" -echo "> sudo apt install rclone keepassxc firefox webext-ublock-origin-firefox webext-keepassxc-browser" -read -p "Press RET to move to the next step." +echo "=== SYSTEM UPDATE ===" +sudo apt update +sudo apt upgrade -echo "=== SET UP FLATPAK ===" -# TODO---do i need this? -read -p "Press RET to move to the next step." +echo +echo "=== INSTALL FONTS ===" +sudo apt install fonts-noto-core -echo "=== SET UP CHINESE INPUT ===" -echo "Please run:" -echo "> sudo apt install fcitx5 fcitx-config-qt fcitx5-frontend-qt5 fcitx5-frontend-qt6 fcitx5-theme-breeze kde-config-fcitx5" -# TODO -read -p "Press RET to move to the next step." +echo +echo "=== FETCH CONFIGURATIONS ===" +sudo apt install git +git clone http://cgit.tilde.town/~noa/dots/ $HOME/.config echo -read -p "First we need the keepassxc database. Download it to ~/Documents/Passwords.kdbx and press RET when you're ready." -while [ ! -f ~/Documents/Passwords.kdbx ]; do - read -p "It looks like ~/Documents/Passwords.kdbx doesn't exist. Try again and press RET when you're ready." -done +echo "=== SET UP DISPLAY MANAGER ===" +sudo apt install xdm +sudo cp $HOME/.config/xdm/* /etc/X11/xdm/ + +echo +echo "=== SET UP GUI ===" +sudo install jwm brightnessctl picom cbatticon pnmixer nm-tray qlipper fcitx5 fcitx5-chinese-addons x11-xserver-utils echo -echo "=== SET UP KEEPASS BROWSER INTEGRATION ===" -echo "If you didn't install it with the system package manager, go to https://addons.mozilla.org/zh-CN/firefox/addon/keepassxc-browser/ and install it there." -echo "Make sure to go to keepassxc > preferences > browser integration and enable integration for firefox." -echo "If it still doesn't work, it's likely an issue with using a flatpak or apparmor." -read -p "When you are ready, press RET." +echo "=== INSTALL DESKTOP PROGRAMS ===" +sudo apt install rclone keepassxc firefox webext-ublock-origin-firefox webext-keepassxc-browser echo -echo "=== SYNC FILES FROM FASTMAIL ===" +echo "=== SET UP FLATPAK ===" +# TODO---do i need this? +read -p "Press RET to move to the next step." + +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 to https://app.fastmail.com/settings/security/integrations/devicekeys/new?u=0b814011 and create a new app password with access to webdav." +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 @@ -49,27 +57,25 @@ rclone config create fastmail webdav \ --obscure echo -echo "Now we will sync the standard directories from the fastmail remote." -# Checkout https://rclone.org/commands/rclone_bisync/ rclone copy fastmail:noa.gaiwan.org/files/Documents ~/Documents -P rclone copy fastmail:noa.gaiwan.org/files/Music ~/Music -P rclone copy fastmail:noa.gaiwan.org/files/Videos ~/Videos -P rclone copy fastmail:noa.gaiwan.org/files/Pictures ~/Pictures -P rclone copy fastmail:noa.gaiwan.org/files/Scripts ~/Scripts -P -echo -echo "=== INSTALL ANKI ===" -echo "The packaged version of anki is very old, and i'd rather not use the flatpak." -echo "First please run:" -echo "> sudo apt install libxcb-xinerama0 libxcb-cursor0 libnss3" -echo "Then go to https://github.com/ankitects/anki/releases/ and download the latest release." -echo "> tar xaf Downloads/anki-2XXX-linux-qt6.tar.zst" -echo "> cd anki-2XXX-linux-qt6" -echo "> sudo ./install.sh" +#echo +#echo "=== INSTALL ANKI ===" +#echo "The packaged version of anki is very old, and i'd rather not use the flatpak." +#echo "First please run:" +#echo "> sudo apt install libxcb-xinerama0 libxcb-cursor0 libnss3" +#echo "Then go to https://github.com/ankitects/anki/releases/ and download the latest release." +#echo "> tar xaf Downloads/anki-2XXX-linux-qt6.tar.zst" +#echo "> cd anki-2XXX-linux-qt6" +#echo "> sudo ./install.sh" echo echo "=== DOWNLOAD WIKIPEDIA MIRROR ===" -echo "Go to https://ftp.halifax.rwth-aachen.de/aarddict/zhwiki/ and download the latest slob file." +echo "Go to https://ftp.halifax.rwth-aachen.de/aarddict/zhwiki/ and download the latest slob file to ~/Documents/Dictionaries." echo echo "Thanks~" -- cgit 1.4.1-2-gfad0