-
Notifications
You must be signed in to change notification settings - Fork 0
/
local_mount.sh
132 lines (47 loc) · 2.16 KB
/
local_mount.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
124
125
126
127
128
129
130
131
132
# !!!!!make sure the ubuntu version is 20.04
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt-get update
apt-get install blobfuse=1.3.2 -y
CN=zhiwang
AN=msranlpintern
AK=TDiIfKsHfxN+/5CFjVoWvWT3s3feQWnbhmp8DH3coHZEZB1FRMIDaaC8ijOfLA+An4RB/fUNdpUXCjBgX64vdQ==
# you should change to your password instead of using mine, or you will use my datablob
MOUNT_DIR=/mnt/${AN}
CFG_PATH=~/fuse_connection_${CN}.cfg
MTP=/mnt/localdata/blobfusetmp_temp_${CN}
mkdir -p ${MTP}
chmod 777 ${MTP}
printf 'accountName %s\naccountKey %s\ncontainerName %s\n' ${AN} ${AK} ${CN} > ${CFG_PATH}
chmod 600 ${CFG_PATH}
mkdir -p ${MOUNT_DIR}
chmod 777 ${MOUNT_DIR}
blobfuse ${MOUNT_DIR} --tmp-path=${MTP} --config-file=${CFG_PATH} -o attr_timeout=240 -o entry_timeout=240 -o negative_timeout=120
CN=unilm
AN=conversationhub
AK=Eb/MuazMyTqDj/WS+/020UKkGLiff/iI6go4Obqp6o/dQ7rUtT7THisY5y9o5f3ch5kGVdjvc2E5+ASt2zLXSg==
# you should change to your password instead of using mine, or you will use my datablob
MOUNT_DIR=/mnt/${AN}
CFG_PATH=~/fuse_connection_${CN}.cfg
MTP=/mnt/localdata/blobfusetmp_temp_${CN}
mkdir -p ${MTP}
chmod 777 ${MTP}
printf 'accountName %s\naccountKey %s\ncontainerName %s\n' ${AN} ${AK} ${CN} > ${CFG_PATH}
chmod 600 ${CFG_PATH}
mkdir -p ${MOUNT_DIR}
chmod 777 ${MOUNT_DIR}
blobfuse ${MOUNT_DIR} --tmp-path=${MTP} --config-file=${CFG_PATH} -o attr_timeout=240 -o entry_timeout=240 -o negative_timeout=120
CN=unilm
AN=msranlp
AK=OnSdaQJfGJ9YJ7tvFKNg9KkiQqXv1RHcc81oT5rxXmNzxWKTVF9vOmpn7+iIh44HoYG+h1pJFHNpIyrmwp2J0w==
# you should change to your password instead of using mine, or you will use my datablob
MOUNT_DIR=/mnt/${AN}
CFG_PATH=~/fuse_connection_${CN}.cfg
MTP=/mnt/localdata/blobfusetmp_temp_${CN}
mkdir -p ${MTP}
chmod 777 ${MTP}
printf 'accountName %s\naccountKey %s\ncontainerName %s\n' ${AN} ${AK} ${CN} > ${CFG_PATH}
chmod 600 ${CFG_PATH}
mkdir -p ${MOUNT_DIR}
chmod 777 ${MOUNT_DIR}
blobfuse ${MOUNT_DIR} --tmp-path=${MTP} --config-file=${CFG_PATH} -o attr_timeout=240 -o entry_timeout=240 -o negative_timeout=120