Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Root history
- 1 clear
- 2 apt update
- 3 nano /etc/network/interfaces
- 4 ifconfig
- 5 nano /etc/network/interfaces
- 6 ip link show
- 7 nano /etc/network/interfaces
- 8 service networking reload
- 9 ifconfig
- 10 service networking stop
- 11 service networking start
- 12 ifconfig
- 13 apt update
- 14 nano /etc/network/interfaces
- 15 service networking restart
- 16 apt update
- 17 apt upgrade -y
- 18 apt update
- 19 htop
- 20 apt install htop
- 21 htop
- 22 free
- 23 dd if=/dev/zero of=/swapfile bs=1024 count=12230864
- 24 mkswap /swapfile
- 25 swapon /swapfile
- 26 chmod 600 /swapfile
- 27 swapon /swapfile
- 28 swapoff /swapfile
- 29 swapon /swapfile
- 30 nano /etc/fstab
- 31 htop
- 32 clear
- 33 apt install ltsp-server-standalone -y
- 34 reboot
- 35 ltsp-build-client
- 36 reboot
- 37 cd /etc/ltsp/
- 38 ls
- 39 nano dhcpd.conf
- 40 service --status-all
- 41 reboot
- 42 ltsp-chroot
- 43 ltsp-update-image
- 44 nano /var/lib/tftpboot/ltsp/amd64/lts.conf
- 45 sysctl -w net.ipv4.ip_forward=1
- 46 iptables --table nat --append POSTROUTING --out-interface enp1s0f1 -j MASQUERADE
- 47 apt install iptables-persistent -y
- 48 iptables --table nat --append POSTROUTING -j MASQUERADE --source 192.168.67.0/8
- 49 iptables-save > /etc/iptables/rules.v4
- 50 reboot
- 51 cd /var/log/
- 52 ls
- 53 ls -la
- 54 tail -f syslog
- 55 tail -f auth.log
- 56 useradd -m test
- 57 chpasswd
- 58 chpasswd -h
- 59 chpasswd
- 60 echo test:passwd | chpasswd --
- 61 ltsp-update-sshkeys; ltsp-update-image
- 62 ltsp-chroot
- 63 tail -f auth.log
- 64 ltsp-chroot
- 65 apt install lubuntu-desktop -y
- 66 apt remove lubuntu-desktop -y --purge; apt autoremove -y
- 67 apt --fix-missing
- 68 apt update
- 69 apt -h
- 70 nano /etc/iptables/rules.v4
- 71 reboot
- 72 nano /etc/iptables/rules.v4
- 73 service reboot
- 74 reboot
- 75 bash -c 'iptables-save > /etc/ltsp/nat'
- 76 cd /etc/ltsp/
- 77 more nat
- 78 nano /etc/iptables/rules.v6
- 79 nano /etc/iptables/rules.v4
- 80 nano nat
- 81 nano /etc/network/interfaces
- 82 apt remove iptables-persistent
- 83 cd /etc/iptables/
- 84 rm *
- 85 reboot
- 86 nano /etc/network/interfaces
- 87 sysctl -w net.ipv4.ip_forward=1
- 88 iptables --table nat --append POSTROUTING --out-interface enp1s0f1 -j MASQUERADE
- 89 apt install iptables-persistent
- 90 iptables-save > /etc/iptables/rules.v4
- 91 nano /etc/iptables/rules.v4
- 92 nano /etc/network/interfaces
- 93 reboot
- 94 nano /var/lib/tftpboot/ltsp/amd64/lts.conf
- 95 ltsp-update-sshkeys
- 96 ltsp-update-image
- 97 apt remove iptables-persistent
- 98 iptables --flush
- 99 cd /etc/iptables/
- 100 rm *
- 101 nano /etc/sysctl.conf
- 102 ifconfig
- 103 iptables --table nat --append POSTROUTING --jump MASQUERADE --source 192.168.67.0/8
- 104 bash -c 'iptables-save > /etc/ltsp/nat'
- 105 more /etc/ltsp/nat
- 106 nano /etc/ltsp/nat
- 107 nano /etc/network/interfaces
- 108 reboot
- 109 iptables-save
- 110 cat iptables-save
- 111 iptables -h
- 112 iptables -l
- 113 iptables -L
- 114 cd /etc/ltsp/
- 115 more nat
- 116 iptables -h
- 117 man iptables
- 118 iptables-restore < nat
- 119 nano /etc/network/interfaces
- 120 nano /etc/sysctl.conf
- 121 iptables --table nat --append POSTROUTING --jump MASQUERADE --source 192.168.67.0/24
- 122 iptables -L
- 123 more nat
- 124 cd ..
- 125 cd network/
- 126 nano interfaces
- 127 service networking reload
- 128 service networking restart
- 129 cd ..
- 130 nano /etc/ltsp/dhcpd.conf
- 131 nano network/interfaces
- 132 reboot
- 133 cd /etc/
- 134 nano ltsp/dhcpd.conf
- 135 ifconfig
- 136 nano network/interfaces
- 137 ifconfig
- 138 networkctl status
- 139 service systemd-networkd-resolvconf-update
- 140 service systemd-networkd-resolvconf-update reload
- 141 service systemd-networkd reload
- 142 service networking reload
- 143 networkctl status
- 144 nano network/interfaces
- 145 service networking reload
- 146 ltsp-update-sshkeys
- 147 ltsp-update-image
- 148 iptables -S
- 149 iptables-restore < /etc/ltsp/nat
- 150 iptables -S
- 151 apt install iftop
- 152 apt autoremove
- 153 iftop
- 154 reboot
- 155 iptables-restore < /etc/ltsp/nat
- 156 nano /etc/network/interfaces
- 157 iptables -S
- 158 service networking reload
- 159 history
- 160 ifconfig
- 161 iptables --table nat -A POSTROUTING -o enp1s0f1
- 162 iptables -A FORWARD -i enp1s0f0 -j ACCEPT
- 163 iptables -S
- 164 apt install iptables-persistent
- 165 cd /etc/iptables/
- 166 iptables-save > /etc/iptables/rules.v4
- 167 more rules.v
- 168 more rules.v4
- 169 nano /etc/network/interfaces
- 170 reboot
- 171 history
- 172 reboot
- 173 exit
- 174 ltsp-build-client --arch i386
- 175 cd /var/lib/tftpboot/ltsp/
- 176 cp amd64/lts.conf i386/
- 177 cd amd64/
- 178 ls
- 179 cd ..
- 180 cd i386/
- 181 ls
- 182 nano /etc/ltsp/dhcpd.conf
- 183 ltsp-chroot -h
- 184 ltsp-chroot --arch i368
- 185 cd /opt/ltsp/
- 186 ls
- 187 ltsp-chroot --arch i368
- 188 cd i386/
- 189 ls
- 190 chroot ./
- 191 ltsp-update-image --arch i386
- 192 ltsp-update-images
- 193 cd ..
- 194 ls
- 195 rm -rf amd64/
- 196 cd images/
- 197 ls
- 198 rm amd64.img*
- 199 ls
- 200 cd /var/lib/tftpboot/ltsp/
- 201 ls
- 202 rm -rf amd64/
- 203 ltsp-update-image
- 204 reboot
- 205 apt install screen
- 206 screen
- 207 screen -S ltsp-build-image
- 208 ls
- 209 cd ..
- 210 ls
- 211 htop
- 212 screen -r
- 213 htop
- 214 screen -r
- 215 ltsp-chroot
- 216 ltsp-update-image
- 217 iptables -S
- 218 ping ya.ru
- 219 ltsp-update-sshkeys
- 220 ltsp-chroot
- 221 ltsp-update-sshkeys
- 222 ltsp-update-image
- 223 nano /etc/network/interfaces
- 224 reboot
- 225 nano /etc/network/interfaces
- 226 iptables -S
- 227 nano /etc/ltsp/dhcpd.conf
- 228 service --status-all
- 229 reboot
- 230 ltsp-update-sshkeys
- 231 nano /var/lib/tftpboot/ltsp/i386/lts.conf
- 232 nano add-users.sh
- 233 chmod +x add-users.sh
- 234 ./add-users.sh
- 235 nano add-users.sh
- 236 ./add-users.sh
- 237 exit
- 238 tail -f /var/lib/tftpboot/ltsp/i386/lts.conf
- 239 exit
- 240 iftop
- 241 exit
- 242 iptables-save > /etc/iptables/rules.v4
- 243 nano /etc/iptables/rules.v4
- 244 reboot
- 245 exit
- 246 apt update; apt upgrade -y;
- 247 exit
- 248 cd /home/taly/
- 249 ls
- 250 cd
- 251 ls
- 252 more add-users.sh
- 253 wget https://releases.hyper.js/download/deb
- 254 ping ya.ru
- 255 wget https://releases.hyper.is/download/deb
- 256 ls
- 257 mv deb hyper.deb
- 258 apt install ./hyper.deb
- 259 chmod 777 ./hyper.deb
- 260 apt install ./hyper.deb
- 261 cp hyper.deb /opt/ltsp/i386/tmp/
- 262 ltsp-chroot
- 263 ltsp-update-image
- 264 history
- 265 exit
- 266 screen
- 267 iptables-save
- 268 service networking reload
- 269 iptables-apply
- 270 iptables-apply /etc/iptables/rules.v4
- 271 nano /etc/network/interfaces
- 272 service networking reload
- 273 nano /etc/network/interfaces
- 274 iptables-restore < /etc/iptables/rules.v4
- 275 service networking reload
- 276 name
- 277 uname
- 278 uname -v
- 279 history
- 280 apt install git
- 281 cd /
- 282 git init
- 283 git add .
- 284 git add . -v
- 285 git add . --verbose
- 286 git status
- 287 git add etc/
- 288 git status
- 289 git add home/
- 290 git add lib/
- 291 git status
- 292 apt autoremove
- 293 screen -r
- 294 apt update
- 295 service networking reload
- 296 apt update
- 297 nano /etc/network/interfaces
- 298 service networking reload
- 299 apt update
- 300 apt upgrade -y
- 301 git status
- 302 git add etc/
- 303 git add opt/ltsp/
- 304 git add opt/ltsp/i386/
- 305 history
- 306 history > /home/history
- add-users.sh
- #!/bin/bash
- for i in `seq 20 250`
- do
- NUMBER=$i
- USERNAME="user$NUMBER"
- PASSWORD="password"
- useradd -m $USERNAME
- echo $USERNAME:$PASSWORD | chpasswd
- echo "
- [192.168.67.$NUMBER]
- LDM_AUTOLOGIN = True
- LDM_USERNAME = $USERNAME
- LDM_PASSWORD = $PASSWORD
- " >> /var/lib/tftpboot/ltsp/i386/lts.conf
- echo "USER $NUMBER DONE"
- done
- ltsp-chroot history
- mount -t proc proc /proc
- apt install lubuntu-desktop lubuntu-core
- apt install gcc firefox
- apt install libreoffice -y
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- source /etc/network/interfaces.d/*
- # The loopback network interface
- auto lo
- iface lo inet loopback
- auto enp1s0f1
- iface enp1s0f1 inet static
- address 172.23.16.40
- netmask 255.255.240.0
- network 172.23.16.0
- broadcast 172.23.31.255
- gateway 172.23.31.254
- dns-nameservers 172.23.31.254
- auto enp1s0f0
- iface enp1s0f0 inet static
- address 192.168.67.1
- netmask 255.255.255.0
- network 192.168.67.0
- gateway 192.168.67.1
- # up iptables-restore < /etc/ltsp/nat
- # Generated by iptables-save v1.6.0 on Fri Jun 22 15:07:29 2018
- *filter
- :INPUT ACCEPT [165309:187918636]
- :FORWARD ACCEPT [78244:82799743]
- :OUTPUT ACCEPT [169838:414956406]
- -A FORWARD -i enp1s0f0 -j ACCEPT
- COMMIT
- # Completed on Fri Jun 22 15:07:29 2018
- # Generated by iptables-save v1.6.0 on Fri Jun 22 15:07:29 2018
- *nat
- :PREROUTING ACCEPT [423:26662]
- :INPUT ACCEPT [1:78]
- :OUTPUT ACCEPT [3:228]
- :POSTROUTING ACCEPT [0:0]
- -A OUTPUT -p udp -m udp --dport 53 -j DNAT --to-destination 176.103.130.130:53
- -A OUTPUT -p tcp -m tcp --dport 53 -j DNAT --to-destination 176.103.130.130:53
- -A POSTROUTING -s 192.168.67.0/24 -j MASQUERADE
- -A POSTROUTING -o enp1s0f1
- -A POSTROUTING -j MASQUERADE
- -A POSTROUTING -j MASQUERADE
- COMMIT
- # Completed on Fri Jun 22 15:07:29 2018
- /etc/ltsp/dhcpd.conf
- #
- # Default LTSP dhcpd.conf config file.
- #
- authoritative;
- subnet 192.168.67.0 netmask 255.255.255.0 {
- range 192.168.67.20 192.168.67.250;
- option domain-name "example.com";
- # option domain-name-servers 192.168.67.1;
- option domain-name-servers 1.1.1.1;
- option broadcast-address 192.168.67.255;
- option routers 192.168.67.1;
- next-server 192.168.67.1;
- # get-lease-hostnames true;
- option subnet-mask 255.255.255.0;
- option root-path "/opt/ltsp/i386";
- if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
- filename "/ltsp/i386/pxelinux.0";
- } else {
- filename "/ltsp/i386/nbi.img";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement