A simple autosetup script to ease my reinstallation & new system setup :)
Current list of packages:
- Vivaldi
- Thunderbird
- Motrix
- Spark-Store
- YesPlayMusic
- Zotero
- Calibre
- Joplin
- VSCode
- WPS-CN
- Shadowsocks-Electron
- rclone
- PulseAudio
- Eudic
- Zoom
- Vulkan
- Steam
- Heroic Game Launcher
- Foxit PDF Reader
- Duplicati
tar -xf ./themes/icons/<icon-theme>.tar.xz -C ~/.local/share/icons
- whiptail
- gdebi
- aria2
- git
- fonts-noto-color-emoji
Sometimes, we may want to access certain files offline as well, such as photos, zotero collections, logseq files, etc. mount
no longer fulfills this demand and bisync
seems a nice alternative in such scenarios. However, this function only supports certain cloud systems. Also, rclone at this moment doesn't support file change monitoring. We will need to use cron
to make this happen.
cd ./scripts
chmod +x ./setBisync.sh
./setBisync.sh '/local/target/path/' 'rclone:/remote/path/' [1~60] # mins, default 30 mins
This wikidoc describes a template way to create rclone services: https://github.com/rclone/rclone/wiki/Systemd-rclone-mount
[email protected]
file is the systemd template service file.
Save the above file to
/etc/systemd/user/[email protected]
if you want it accessible to the entire system, or~/.config/systemd/user/[email protected]
This script places the file at ~/.config/systemd/user/[email protected]
run systemctl --user daemon-reload
to refresh systemd service list
# suppose we have "OneDrive-Personal" already configured in rclone
# create local mapping dirs
mkdir -p ~/OneDrive-Personal
systemctl --user start rclone@OneDrive-Personal
# if you could navigate to ~/OneDrive-Personal and see your files
# you could decide to make the rclone service autostart
systemctl --user enable rclone@OneDrive-Personal
-
Remove better-dde. The way it installs making reverting/uninstallation very difficult, so I decide to drop it from the script.
If you wish to use it, do it by yourself or use historical commit of this script. -
This script below is no longer supported. If you wish to use it, please check historical commit
# create local mapping dirs
mkdir -p ~/OneDrive-Personal
mkdir -p ~/OneDrive-UChicago
mkdir -p ~/MegaSync
# setup systemd service, reference: https://www.guyrutenberg.com/2021/06/25/autostart-rclone-mount-using-systemd/
cp rclone-* ~/.config/systemd/user
systemctl --user daemon-reload
systemctl --user enable --now rclone-onedrive-personal.service
systemctl --user enable --now rclone-onedrive-uchicago.service
systemctl --user enable --now rclone-megasync.service