-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall Rclone
130 lines (93 loc) · 2.46 KB
/
install Rclone
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
124
125
126
127
128
129
#!/bin/bash
clear
#by snap
#sudo snap install rclone --classic
echo -n "This script will install Rclone software on your machine
Rclone is a remote cloud storage mounter and compatible with
Service . Name
---------------------------------
1- Google Drive . gdrive
2- OneDrive . onedrive
3- Box . box
4- DropBox . dropbox
5- pCloud . pcloud
6- Yandex Disk . yandex
so, while configuring your remote cloud storage keep in mind these cloud services only.
Note: use "name" discription as above schedule
For Example :
Google Drive >>>> gdrive
press enter to continue or Ctrl + C to exit "
read enter
sudo apt update
curl https://rclone.org/install.sh | sudo bash
echo -n "
Remember to use 'name' againest your remote cloud storage as below
Service . Name
---------------------------------
1- Google Drive . gdrive
2- OneDrive . onedrive
3- Box . box
4- DropBox . dropbox
5- pCloud . pcloud
6- Yandex Disk . yandex
###############################################
# For Example : #
# Google Drive >>>> gdrive #
###############################################
so, while configuring your cloud storage keep in mind these cloud services only.
press enter to continue "
read enter
rclone config
echo -n "
Select your remote storage to mount it
Service . Name
---------------------------------
1- Google Drive . gdrive
2- OneDrive . onedrive
3- Box . box
4- DropBox . dropbox
5- pCloud . pcloud
6- Yandex Disk . yandex
[ 1 - 6 ] : "
read mount
auto_mount(){
mkdir ~/${1}
echo "#!/bin/bash
rclone mount ${1}: ~/${1}" > ~/auto${1}
chmod +x ~/auto${1}
direct1=~/auto${1}
bash $direct1 &
sudo echo "[Desktop Entry]
Type=Application
Exec=$direct1
X-GNOME-Autostart-enabled=true
NoDisplay=false
Hidden=false
Name[en_US]=rclone ${1}
Comment[en_US]=No description
X-GNOME-Autostart-Delay=5" > ~/.config/autostart/auto${1}.desktop
}
if [ $mount == "1" ]; then
auto_mount gdrive
#${1} = gdrive
fi
if [ $mount == "2" ]; then
auto_mount onedrive
fi
if [ $mount == "3" ]; then
auto_mount box
fi
if [ $mount == "4" ]; then
auto_mount dropbox
fi
if [ $mount == "5" ]; then
auto_mount pcloud
fi
if [ $mount == "6" ]; then
auto_mount yandex
fi
#echo "bash script" > ~/automount$(selected)
#chmod +x ~/automount$(selected)
read -p "Installation is complete.
Press enter to continue" nothing
clear