Before starting, make sure that you have enough space for the LEEF
data upload and processing. This can be done either by having a large
enough system drive or have a second drive mounted. For this document,
we will assume that the space for the LEEF data is at
/mnt/leef_data
.
~ubuntu
Incoming
to /mnt/leef_data/Incoming
Done
to /mnt/leef_data/Done
LEEF
to /mnt/leef_data/LEEF
sudo apt-get -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
# apt-cache policy docker-ce
sudo apt -y install docker-ce
Add the following line, but adapt the UUIB to the actual one
sudo cp -pf /etc/samba/smb.conf /etc/samba/smb.conf.bak
sudo addgroup smbgrp
sudo useradd leef -G smbgrp
sudo smbpasswd -a leef
sudo chmod -R 0770 /mnt/leef_data/LEEF /mnt/leef_data/Diverse /mnt/leef_data/sample\ one\ day
sudo chown -R ubuntu:smbgrp /mnt/leef_data/LEEF /mnt/leef_data/Diverse /mnt/leef_data/sample\ one\ day
sudo zile /etc/samba/smb.conf
The file should be as followed:
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
dns proxy = no
#### Networking ####
#### Debugging/Accounting ####
log file = /var/log/samba/log.%m
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
########## Domains ###########
############ Misc ############
usershare allow guests = yes
#======================= Share Definitions =======================
[leef_data]
comment = LEEF Data
path = /mnt/leef_data
browsable = yes
writable = yes
read only = no
guest ok = no
Now restart samba
See S3IT for details
In order to setup your environment, please download Openstack RC file from ScienceCloud GUI by: Access & Security > API Access > Download OpenStack RC file.
Then import this variables into your shell environment by:
This needs to be done before each using of the commands.
Better: Service account.
Follow S3IT Info to set this up.
This is not needed at the moment, although it was a nice idea. Still here to remember how it was done.
echo “deb https://apt.syncthing.net/ syncthing stable” | sudo tee /etc/apt/sources.list.d/syncthing.list curl -s https://syncthing.net/release-key.txt | sudo apt-key add - printf “Package: *: origin apt.syncthing.net-Priority: 990” | sudo tee /etc/apt/preferences.d/syncthing sudo apt-get update sudo apt-get install syncthing
~/.config/syncthing/config.xml
Change
to
to enable global access ### Start syncthing
sudo systemctl enable [email protected]
sudo systemctl start [email protected]