This is a fresh install using VMware Workstation
I wrote this for
myself so I would not lose it, I kept it short and to the point
Source of ìso file:
Full version
information at end of this document
Enable
SSH and configure it
During the install
process I installed SSH so I just had to configure it.
Edit the file
sudo nano /etc/sshd_config
Find this line and
either edit or add this (I have seen PermitRootLogin look
similar but different)
#PermitRootLogin
without-password
#StrictModes yes
PermitRootLogin yes #Change this line
to add "yes" Comment out others
sudo reboot
Connect
with SSH (because copy paste rules) and Update everything
sudo apt update && sudo apt -y
upgrade && sudo apt -y dist-upgrade && sudo apt -y autoremove
sudo reboot
Install
Open VMware tools
Make sure VMware
tools is installed, It was installed by default but I just had to check
sudo apt -y install open-vm-tools
Get
Samba working
I don't feel like
playing around so I'm just going to install crap whether I need it or not.
sudo apt -y install libsmbclient
libwbclient0 python-dnspython python-samba python3-smbc samba samba-common
samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules smbclient
Make a backup of the
config file for when you screw up and have to start over
sudo cp /etc/samba/smb.conf
/etc/samba/smb.bak
I'm going to share
the /home/ folder, I do not create one because it's already there by default
(mkdir -p /home)
sudo chown -R root:users /home
sudo chmod -R ug+rwx,o+rx-w /home
Edit the file
sudo nano /etc/samba/smb.conf
Change these lines
# Change this to the
workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP
# unless your workgroup is the same
# Windows Internet
Name Serving Support Section:
# WINS Support -
Tells the NMBD component of Samba to enable its WINS Server
# wins support = no #
change to yes , and get rid of the pound sing "#"
# This will prevent
nmbd to search for NetBIOS names through DNS.
dns proxy = no # I
changed this to yes
# The specific set
of interfaces / networks to bind to
# This can be either
the interface name or an IP address/netmask;
# interface names
are normally preferred
; interfaces = 127.0.0.0/8 ens33
interfaces = 192.168.200.0/24 ens33 # Add your network adapter and subnet
Add this at the end
[Home]
path = /home
force group = users
create mask = 0660
directory mask = 0771
browsable =yes
writable = yes
guest ok = yes
Restart the smb service
sudo systemctl restart
smbd.service
sudo systemctl restart
nmbd.service
I reboot the VM and
check if it is sharing on another machine. If everything works (surprisingly it
did) I will clone it to have a base to create other VM's
Version
information
test@ubuntu:~$ uname -a
Linux ubuntu
4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:07 UTC 2018 i686 i686 i686
GNU/Linux
test@ubuntu:~$ lsb_release -a
No LSB modules are
available.
Distributor ID:
Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
test@ubuntu:~$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu
16.04.3 LTS"
NAME="Ubuntu"
VERSION="16.04.3
LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu
16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
test@ubuntu:~$ cat /proc/version
Linux version
4.4.0-109-generic (buildd@lgw01-amd64-035) (gcc version 5.4.0 20160609 (Ubuntu
5.4.0-6ubuntu1~16.04.5) ) #132-Ubuntu SMP Tue Jan 9 19:52:07 UTC 2018
test@ubuntu:~$ file /lib/systemd/systemd
/lib/systemd/systemd:
ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically
linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32,
BuildID[sha1]=e192bb554b80dbcdd7ca58802f4b2c41432b5ac9, stripped
No comments:
Post a Comment