-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmaak.sh
125 lines (80 loc) · 4.01 KB
/
smaak.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
sudo apt install nala -y
sudo nala fetch
sudo nala update
sudo nala upgrade -y
# Basic
sudo nala install clamav clamav-daemon clamtk unattended-upgrades arp-scan asciinema bash-completion bat binutils btop coreutils curl dmidecode evince exa feh ffmpeg file fish flameshot fonts-crosextra-caladea fonts-crosextra-carlito fonts-mononoki fonts-powerline geany ghostscript git gnupg gparted hashcat httrack iftop imagemagick keepassxc lolcat lshw lsof lynx mc mpc123 mtr ncal neofetch nethogs nmap p7zip pandoc pciutils pdf2svg powerline printer-driver-all printer-driver-cups-pdf proxychains ranger remmina rename ripgrep rsync smartmontools suckless-tools terminator tmux toilet tomb traceroute tre-command tree ttf-mscorefonts-installer ufw unrar unzip usbutils vlc w3m wget whois zip zsh -y
# Extra
sudo nala install aria2 asciinema autojump boxes bpytop buku chafa cloc cmatrix cmus colordiff ctop ddgr dua-cli duf entr exa exiftool libposix-strptime-perl libencode-hanextra-perl libpod2-base-perl fdupes figlet fortune fzf ghostwriter glances htop nmon hub hyperfine icdiff iftop iptraf mcedit jq just khal micro most mutt ncdu neofetch lolcat toilet newsboat ranger rig ripgrep rsync sl taskwarrior telnet thefuck tldr tmate toilet tree wordgrinder yt-dlp zoxide -y
# Flatpak
flatpak install flathub org.strawberrymusicplayer.strawberry
flatpak install flathub org.gimp.GIMP
flatpak install flathub org.kde.plasmatube
flatpak install flathub org.kde.audiotube
flatpak install flathub org.signal.Signal
flatpak install flathub io.github.shiftey.Desktop
flatpak install flathub io.freetubeapp.FreeTube
flatpak install flathub com.brave.Browser
REBOOT
sudo mintupdate-automation upgrade enable
sudo nano /etc/apt/apt.conf.d/50unattended-upgrades
sudo -v ; curl https://rclone.org/install.sh | sudo bash
rclone version
rclone v1.61.1
- os/version: linuxmint 21.1 (64 bit)
- os/kernel: 5.15.0-58-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.4
- go/linking: static
- go/tags: none
rclone config
n) New remote
onedrive
31 / Microsoft OneDrive
\ (onedrive)
blank
blank
1 / Microsoft Cloud Global
\ (global)
Edit advanced config?
n) No (default)
Use web browser to automatically authenticate rclone with remote?
* Say Y if the machine running rclone has a web browser you can use
* Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
y) Yes (default)
VOORBEELD:
rclone mount onedrive: /home/myname/onedrive --vfs-cache-mode=writes
Directory aanmaken!!!
cd ~
mkdir onedrive
LAPTOP 1:
rclone mount onedrive: /home/smaak/onedrive --vfs-cache-mode=writes
LAPTOP 2:
rclone mount onedrive: /home/dc-kantine/onedrive --vfs-cache-mode=writes
Maak hier een 1drive.sh van en plaats dit bestanden hier /bin
Ga naar "systeeminstellingen"
"Opstarttoepassing"
"Opstarttoepassing toevoegen", verkennen, /bin/1drive.sh toevoegen
for rclone mount to emulate a local file system, sometimes need to use the rclone vfs file cache.
this is required for LibreOffice to edit files.
so using the webgui, for CacheMode, change off to writes
"Cloud storage objects have lots of properties which aren't like disk files - you can't extend them or write to the middle of them, so the VFS layer has to deal with that."
https://rclone.org/commands/rclone_mount/#vfs-virtual-file-system
for systemd service file, check out https://github.com/animosity22/homescripts/blob/master/systemd/rclone-movies.service
tho that is for dropbox, the overall service file format is a good starting point.
another gui is https://kapitainsky.github.io/RcloneBrowser/
rclone config file
to find the rclone.conf and copy that to the laptop
# Enable FIrewall
sudo ufw enable
# Install ClamAV
sudo nala install clamav clamav-daemon -y
clamscan --version
sudo nala install clamtk -y
# Updating Virus Definitions/Databases
sudo systemctl stop clamav-freshclam
sudo freshclam
sudo systemctl start clamav-freshclam
# maak van het updaten van de antivirus software een script van en laat bij boot het script aftrappen