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

Target

Select target project
  • can/unix-command-line
  • gdurif/unix-command-line_dev
2 results
Show changes
This diff is collapsed.
sudo apt update
sudo apt install --yes openssl shellinabox
sudo sed -i 's|SHELLINABOX_PORT=4200|SHELLINABOX_PORT=443|' /etc/default/shellinabox
sudo iptables -t filter -A INPUT -p tcp --dport 443 -j ACCEPT
sudo iptables -t filter -A OUTPUT -p tcp --dport 443 -j ACCEPT
sudo iptables-save
sudo systemctl restart shellinabox
sudo useradd -m -s /bin/bash -g users -G adm,dialout,cdrom,floppy,sudo,audio,dip,video,plugdev,netdev etudiant
sudo cp /etc/skel/.* /home/etudiant/
USER_PASSWORD=$( openssl rand -hex 12 )
sudo passwd etudiant << EOF
${USER_PASSWORD}
${USER_PASSWORD}
EOF
HTTP_ENDP="https://$HOST_NAME"
ss-set url.service "${HTTP_ENDP}"
ss-set ss:url.service "[HTTPS]$HTTP_ENDP,[LOGIN]$etudiant,[PASSWORD]$USER_PASSWORD"
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
- hosts: all
tasks:
- name: Update the system
apt:
upgrade: dist
- name: Install requirements
apt:
name:
- openssl
- shellinabox
- stress
state: latest
- name: Configure shell in a box
shell: sed -i 's|SHELLINABOX_PORT=4200|SHELLINABOX_PORT=443|' /etc/default/shellinabox
- 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
- name: Restart services
systemd:
name: "{{ item }}"
enabled: yes
state: restarted
loop:
- shellinabox
Dear all,
We will start the Unix / command line training course next week, in a 1h / week format every Tuesday between 13h and 14h next week (the 29/09).
The training course will be 100% on videoconference, you will need.
—A modern browser to connect to the videoconference (and a microphone and/or a fast keyboard)
—A modern browser to do the practicals
The objectives of this training course are the following:
—Overcoming your fear of command-line interfaces
—Basic knowledge on operating systems
—Files and folders manipulation
—Text data manipulation
—Processes control
—Pipping (chaining of tools)
—Networking
—Virtualization
If you already choose the Tuesday in the previous poll, you are considered as registered. For the other, we have 7 places left, so you can register with the following form:
https://evento.renater.fr/survey/unix-command-line-training-course-weh6plht
I will send this email to the other labs of the SFR Biosciences bioscience this afternoon if there are still some place left.
Best,
-------------------------------------------------------------------------------
Dear all,
We will start the Unix / command line training course next week, in a 1h / week format every Tuesday between 13h and 14h next week (the 29/09).
The training course will be 100% on videoconference, you will need.
—A modern browser to connect to the videoconference (and a microphone and/or a fast keyboard)
—A modern browser to do the practicals
The objectives of this training course are the following:
—Overcoming your fear of command-line interfaces
—Basic knowledge on operating systems
—Files and folders manipulation
—Text data manipulation
—Processes control
—Pipping (chaining of tools)
—Networking
—Virtualization
If you already choose the Tuesday in the previous poll, you are considered as registered. For the other, we have 4 places left, so you can register with the following form:
https://evento.renater.fr/survey/unix-command-line-training-course-weh6plht
I will send this email to the other labs of the SFR Biosciences bioscience this afternoon if there are still some place left.
Best,
-------------------------------------------------------------------------------
Dear all,
You registered on the Unix / command line training course.
To follow the first session of this course you will need to log on the entVisio service.
https://ent-services.ens-lyon.fr/entVisio/index.php
To the LBMC_bioinfo channel with the password biocomputing
We will start tomorrow (29/09) at 1 p.m., don’t forget your microphone and headphone if you share your office !
Best,
File added
File added
This diff is collapsed.
This diff is collapsed.