-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrdesktop
More file actions
77 lines (55 loc) · 1.8 KB
/
rdesktop
File metadata and controls
77 lines (55 loc) · 1.8 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
75
76
77
#!/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
docker run -d \
--name=rdesktop \
--security-opt seccomp=unconfined `#optional` \
-e PUID=0 \
-e PGID=0 \
-e TZ=Europe/Copenhagen \
-p 3389:3389 \
-v /var/run/docker.sock:/var/run/docker.sock `#optional` \
-v /root/rdesktop/config:/config `#optional` \
--shm-size="2gb" `#optional` \
--restart unless-stopped \
lscr.io/linuxserver/rdesktop: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 tailscale ip -4
echo Done
exit