-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker_web_browser.sh
More file actions
74 lines (53 loc) · 1.86 KB
/
docker_web_browser.sh
File metadata and controls
74 lines (53 loc) · 1.86 KB
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
#!/bin/sh
while true; do ping -c1 www.google.com > /dev/null && break; done
sudo apt update && sudo apt upgrade -y
sudo apt install curl -y
sudo apt install docker.io docker-compose -y
sudo systemctl enable docker
sudo systemctl start docker
sudo docker run -d \
--name="portainer" \
--restart on-failure \
-p 9000:9000 \
-p 8000:8000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:latest
sudo curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up --authkey tskey-auth-kmYWEs4CNTRL-E58dqRPnpjitN4wH1JYshiDnogxNZCqR
sudo curl -s https://install.zerotier.com | sudo bash
sudo zerotier-cli join 0cccb752f77190cf
sudo chmod +x *.sh
curl https://getmic.ro | bash
sudo chown root:root micro
sudo mv micro /usr/local/bin
sudo apt install xclip -y
sudo apt update && sudo apt upgrade -y
# sudo cp /etc/systemd/logind.conf /etc/systemd/logind.conf.old
# sudo tee -a /etc/systemd/logind.conf <<EOF
# HandleLidSwitch=ignore
# LidSwitchIgnoreInhibited=no
# EOF
# sudo service systemd-logind restart
sudo tee -a /etc/ssh/sshd_config <<EOF
HostKeyAlgorithms +ssh-rsa
EOF
sudo service ssh restart
sudo apt install timeshift -y
# sudo timeshift --list-devices
# sudo timeshift --create --comments "FRESH" --snapshot-device /dev/dm-0
# sudo timeshift --restore
sudo echo 'user ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
sudo systemctl restart ssh
sudo passwd root
sudo docker run -d -it --shm-size=2048m -p 6901:6901 -e VNC_PW=root kasmweb/chrome:1.12.0
# The container is now accessible via a browser : https://IP_OF_SERVER:6901
# User : kasm_user
# Password: root
echo The container is now accessible via a browser : https://IP_OF_SERVER:6901
echo User : kasm_user
echo Password: root
sudo tailscale ip -4
echo Done
exit