** Update 11/10/17 [Thanks James] **
It looks like there is an issue if you had
dnf-automatic in Fedora 25 or earlier as Fedora 26 jumps from DNF 1.x to 2.x, so please read THIS post before you install it in 25 and upgrade.
Blatantly stolen from here for my records – Thanks Iain R. Learmonth
Make sure that unattended-upgrades is installed and then enable the installation of updates (as root):
apt install unattended-upgrades
dpkg-reconfigure -plow unattended-upgrades
Fedora 22 or later
Beginning with Fedora 22, you can enable automatic updates via:
dnf install dnf-automatic
apply_updates = yes
Now enable and start automatic updates via:
systemctl enable dnf-automatic.timer
systemctl start dnf-automatic.timer
(Thanks to Enrico Zini I know all about these timer units in systemd now.)
RHEL or CentOS
For CentOS, RHEL, and older versions of Fedora, the yum-cron package is the preferred approach:
apply_updates = yes
Enable and start automatic updates via:
systemctl start yum-cron.service
Moving on from my getting Nvidia working in Debian for my laptop, I thought I’d move onto the server and have a play with KVM Virtualization. I’ve experiance with VMware and Hyper-V and Virtualization using RHEL, but that’s with a GUI and I wanted to everything from scratch. I did the Debian minimal installation so I new I didn’t have anything I didn’t want. I then did this.
A lot of extra dependencies were added as well. Once I’d done this, I rebooted just to make sure.
To make sure it was up and working, you can run the following command to check it’s all working
You should see something like this. All this is telling you is what VM’s are running currently.
That’s all I had to do to get it working.
From that point on, all I needed to do was install virt-manager onto my laptop, setup keys so that virt-manager could log onto the server, upload a few iso images and install some vms, but that can be for another post.
Look Look Virtual Machines Running 😀
I wanted a server I could use to backup all my data, I’ve been toying with the idea of Windows server, it’s easy enough to install it and create a share so that I can use it to backup my laptops. But then I stopped being silly and just installed debian. I then had to setup samba. This is how I did it on Debian 7, but as it’s samba, it’ll probably work on Fedora or any linux distro.
The end result is to have a network share, you can mount, then use what ever method to backup your machines/data to.
- Install server OS
- Install samba – Debian I used apt-get install samba, on a fedora/centos then it’s more than likely yum install samba
- edit the samba conf – vi /etc/samba/smb.conf
- search for the global group and update your workgroup
- search for [homes] section
- enable read/write for the homes by setting read only = no
- create your own share
read only = no
path = /home/paulsfiles
guest ok = no
- make sure you’ve set the smb password for the user or they won’t be able to connect. The user must exist on the server. smbpasswd -a username
- restart samba – /etc/init.d/samba restart or service restart samba
You should then be able to map your drive on your own pc/laptop
That’s it in a nutshell. There are more options you can use, if you use man samba you’ll be able to see them all.