- Install Oracle VirtualBox
- Download CentOS DVD ISO: https://www.centos.org/download/
- Create a new VM
- mount DVD image as optical drive
- swap the network adapter type to Bridged network
- Start the VM, Install CentOS with "Minimal install"
- Start with partitioning, defaults should be good
- Go to network
- Make sure adapter configured to start automatically
- Rename the host
- Set time zone and ntp
- Login (as root) and make sure the adapter is set to autostart
- nmtui
- Edit a connection / enp0s8 (check the name in the VM settings)
- check Automatically connect
- Exit the ui
- systemctl restart network
- Disable ipv6 (it is sooo slow)
- Append below lines in /etc/sysctl.conf:
net.ipv6.conf.default.disable_ipv6 = 1
- sysctl -p
- nano /etc/ssh/sshd_config
- Append this to the config file:
AddressFamily inet
- systemctl restart sshd
- Do a minimal samba installation
- Configure firewall
- firewall-cmd --permanent --zone=public --add-service=samba
- firewall-cmd --reload
- Install samba
- yum install samba
- mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
- nano /etc/samba/smb.conf
- Enter the above to the text editor, save and exit
workgroup = WORKGROUP
netbios name = server1
security = user
map to guest = Bad User
dns proxy = no
- Enable and start samba
- systemctl enable smb.service
- systemctl enable nmb.service
- systemctl restart smb.service
- systemctl restart nmb.service
- Test samba
- testparm /etc/samba/smb.conf
- At this point you should be able to login with Putty as well
- update your new server
- yum makecache fast
- yum install epel-release
- yum update
- yum install nano (unless you prefer vi)
Nincsenek megjegyzések:
Megjegyzés küldése