Go here and snag the "CentOS-7-x86_64-Minimal-1804.iso" or equivalent.
Open up VMWare (or VirtualBox) and make a VM with:
- 50GB HDD, single-file
- 2GB RAM
- 2CPU threads
- "Bridged" network adapter, replicate physical network (configure to only keep the connected interface)
- Or, use "Custom:Specific" and select "VMnet8(NAT)"
- Auto display adapter
Note: If having trouble with starting the VM from ISO, try after disabling all firewall applications.
Can also try running cmd
as admin, and netsh winsock reset
- Install with all the defaults, making sure to check "Auto connect" under network
- Make a root:root account
- Make a jake:admin123 account
- Reboot when prompted
- run
nmcli d
to list connections - run
nmtui
to Activate or edit connections- Use to enable or disable options
- get IP Address from DHCP:
service network {status|restart}
echo 'jake ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/jake
yum install -y vim git which wget httpie sudo tmux epel-release
vi /etc/ssh/sshd_config
# uncomment `PubkeyAuthentication yes`
# Check sshd is running
systemctl status sshd
# Live dangerously
systemctl disable firewalld
yum install samba samba-client samba-common
sudo vim /etc/samba/smb.conf
setsebool -P samba_enable_home_dirs on
sudo systemctl enable smb.service
sudo systemctl enable nmb.service
sudo systemctl start smb.service
sudo systemctl start nmb.service
sudo smbpasswd -a jake
# Check the ip address:
ip addr
# List the samba shares:
smbtree
- Now,
Win + E
andMap a Network Drive
to the share
yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
yum-config-manager --enable docker-ce-edge
yum install docker-ce
systemctl start docker
usermod -aG docker jake
Add docker-compose
curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
Mount everything without noauto
or, things with autonfs: