Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • main
  • master
2 results

Target

Select target project
  • can/unix-command-line
  • gdurif/unix-command-line_dev
2 results
Select Git revision
  • main
  • master
  • quarto-refactor
3 results
Show changes
# IFB Bioinformatics environment
export IFB_MAIN=/ifb
export IFB_BIN=$IFB_MAIN/bin
export IFB_DATADIR=$IFB_MAIN/data
export PATH=$PATH:$IFB_BIN
sudo useradd -m -s /bin/bash -g users -G adm,docker,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev $1
sudo cp /etc/skel/.* /home/$1
sudo passwd $1 << EOF
$1
$1
EOF
# scp -i ~/.ssh/id_ifb ssh_session_init.sh ssh_session_adduser.sh 2020_participants_mail.txt ubuntu@134.158.247.127:
# ssh -i ~/.ssh/id_ifb ubuntu@134.158.247.127
# bash ssh_session_init.sh 2020_participants_mail.txt
cat $1 | sed -e "s/@[^,]*[,]*//g" | tr ' ' '\n' | awk '{system("bash ssh_session_adduser.sh "$0)}'
sudo sed -i 's|PasswordAuthentication no|PasswordAuthentication yes|' /etc/ssh/sshd_config
sudo systemctl restart sshd
......@@ -8,51 +8,9 @@
- name: Install requirements
apt:
name:
- autofs
- fail2ban
- python3-pip
- nfs-common
- jq
- openssl
- shellinabox
state: latest
- name: Remove old Docker version
apt:
name:
- docker
- docker-engine
- docker.io
- containerd
- runc
state: absent
- name: Install Docker deps
apt:
name:
- apt-transport-https
- ca-certificates
- curl
- gnupg-agent
- software-properties-common
state: latest
- name: Add Docker’s official GPG key
apt_key:
url: https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg
state: present
- name: Add Docker's repository into sources list
apt_repository:
repo: deb [arch=amd64] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable
state: present
- name: Install Docker engine community
apt:
name:
- docker-ce
- docker-ce-cli
- containerd.io
- stress
state: latest
- name: Configure shell in a box
......@@ -60,16 +18,6 @@
- name: Configure network
shell: iptables -t filter -A INPUT -p tcp --dport 443 -j ACCEPT && iptables -t filter -A OUTPUT -p tcp --dport 443 -j ACCEPT && iptables-save
sudo systemctl restart shellinabox
- name: Enable services
systemd:
name: "{{ item }}"
enabled: yes
state: started
loop:
- docker
- fail2ban
- name: Restart services
systemd:
......@@ -78,34 +26,3 @@ sudo systemctl restart shellinabox
state: restarted
loop:
- shellinabox
- name: Update pip
pip:
name:
- pip
executable: pip3
state: latest
- name: Install docker-compose
pip:
name:
- docker-compose
executable: pip3
state: latest
- name: Install Miniconda
script: miniconda-install.sh
- name: Copy IFB profile
copy:
src: profile_ifb.sh
dest: /etc/profile.d/ifb.sh
owner: root
mode: '0644'
- name: Create IFB root dir and bin
shell: . /etc/profile.d/ifb.sh && mkdir -p $IFB_BIN
- name: Create IFB data dir
shell: . /etc/profile.d/ifb.sh && mkdir -p $IFB_DATADIR
This diff is collapsed.
File added
File added
This diff is collapsed.
This diff is collapsed.