-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_floccus.sh
executable file
·64 lines (54 loc) · 1.99 KB
/
install_floccus.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
#!/bin/bash
#to run this script go into the folder where it is then run: ./install_floccus.sh
#set -eu
FOLDERNAME="lofloccus"
if [ -d "/home/$USER/programs_setup/$FOLDERNAME" ]; then
cd /home/$USER/
rm -rf $HOME/.config/autostart/lofloccus.desktop
rm -rf /home/$USER/programs_setup/$FOLDERNAME
echo "done removing $FOLDERNAME"
ehco "maybe also run: rm -rf $HOME/bookmarks"
exit
fi
mkdir -p /home/$USER/programs_setup/$FOLDERNAME
cd /home/$USER/programs_setup/$FOLDERNAME
python3 -m venv lofloccus_env
lofloccus_env/bin/pip install WsgiDAV
lofloccus_env/bin/pip install gevent
lofloccus_env/bin/pip install lxml
#lofloccus_env/bin/wsgidav
#pip3 install WsgiDAV
#pip3 install gevent
##sudo apt-get install cadaver -y
##cadaver http://localhost:8008
echo "
more infos at:
https://github.com/marcelklehr/floccus
https://github.com/TCB13/LoFloccus
floccus browser setup:
WebDAV URL: http://localhost:8008/
Username: anonymous
Password:
Booksmarks file path: bookmarks.xbel
Folder mapping:
Local folder: /Bookmarks Toolbar/Floccus (anonymous@localhost)
to run it:
wsgidav -r $HOME/bookmarks -p 8008 --auth anonymous --server gevent"
#Exec=/home/xxUserxx/.local/bin/wsgidav -r /home/xxUserxx/bookmarks -p 8008 --auth anonymous --server gevent
#/home/$USER/programs_setup/lofloccus/lofloccus_env/bin/wsgidav -r /home/$USER/bookmarks -p 8008 --auth anonymous --server gevent
mkdir $HOME/bookmarks
#rm $HOME/.config/autostart/lofloccus.desktop
touch $HOME/.config/autostart/lofloccus.desktop
chmod +x $HOME/.config/autostart/lofloccus.desktop
cat << EOF | tee $HOME/.config/autostart/lofloccus.desktop
[Desktop Entry]
Name=lofloccus-davserver
Comment=start lofloccus davserver alternative
Exec=/home/xxUserxx/programs_setup/lofloccus/lofloccus_env/bin/wsgidav -r /home/xxUserxx/bookmarks -p 8008 --auth anonymous --server gevent
Terminal=false
Type=Application
Categories=Graphics;System;
EOF
cd /home/$USER/.config/autostart/
sed -i 's/xxUserxx/'$USER'/' lofloccus.desktop
sed -i 's/xxUserxx/'$USER'/' lofloccus.desktop