Site Tools


Sidebar

common_box_creation_commands

This is an old revision of the document!


Common Box Creation Resources

Windows reset firewalls:

netsh advfirewall reset
netsh advfirewall set allprofiles state off
<code>

Windows reset admin:
<code>
net user Administrator /active:yes
net user Administrator Password1!

Windows → ENABLE SMB!

Linux clear history: (we are purposely not removing apt logs and such)

rm -f /root/.viminfo
rm -f /root/.bash_history
rm -f /root/.zsh_history

Linux add users:

for user in $(cat users.txt); do useradd -m -s /bin/bash $user; echo "$user:Password1!" | chpasswd; done

Linux set static IP:

/etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.11
netmask 255.255.255.0
network 192.168.0.1
broadcast 192.168.0.255
gateway 192.168.0.1
/etc/netplan/01-ethernet.yaml
network:
    version: 2
    renderer: networkd
    ethernets:
        ens160:
            dhcp4: no
            addresses: [198.168.0.10/24]
            gateway4: 192.168.0.1
            nameservers:
                addresses: [192.168.0.11,172.16.3.100]
common_box_creation_commands.1636163761.txt.gz · Last modified: 2021/11/06 01:56 by Charlie Root