Archive for the ‘Linux’ Category

Linux Mint 17 Mate ping network issue solved

Tuesday, September 15th, 2015

Some have said the following is missing in Mint 17
apt-get install libnss-winbind

Add “wins” to /etc/nsswitch.conf
Should look like this notice wins near end of line before dns
hosts: files mdns4_minimal [NOTFOUND=return] dns wins mdns4

 

Linux Mint Mate 17 partitions, mount points and network connections

Saturday, September 12th, 2015

Fstab and systemd

Change partition/mount point

Open Menu -> Disks -> select partition -> gears -> Edit file system -> change name

Change computer name

Edit both /etc/hosts and /etc/hostname

Menu -> network Settings -> General Tab & Hosts Tab .>make changes.>reboot

Linux watch directory – inotify

Wednesday, September 9th, 2015

inotify to know when to run rsync (probably best bet for me)
http://techarena51.com/index.php/inotify-tools-example/

http://pythonic.zoomquiet.io/data/20081023114228/index.html

Has bash script example:
http://stackoverflow.com/questions/7566569/how-to-continuosly-monitor-the-directory-using-dnotify-inotify-command

At bottom is a downloadable file that contains example (uses ‘make’)
http://www.ibm.com/developerworks/library/l-inotify/

Backups for Linux

Friday, August 14th, 2015

System backup a manual approach
http://community.linuxmint.com/tutorial/view/1577

I found the best little article on Linux backups on wiki.ArchLinux.org. It summarizes what needs to be backed up and what to exclude very well.

This article has a nice list of what to backup and why.

There is also FSArchiver which is said to make a good live backup:

And that article references SystemRescueCD for PSE network boot and restore

Here’s an article describing how to manage a windows or linux server that is in a datacenter remotely, from your office

Also, do a search on this site for backups, I did write some things a few years ago

This comment http://unix.stackexchange.com/questions/41399/system-image-of-running-debian-system seems relevant:

I have tried so much backup and restore software and was never happy. This is what I do now: I have a second Debian installed on a spare computer (same MB, NIC card, etc). Every evening I rsync from machine A to machine B. There are some files that I hold back (/etc/network/interfaces, /etc/hosts, /etc/hostname) since I don’t want conflicts of the two running systems. Actually, I do have copies of them in another folder. I also disable some services that I don’t need to run on machine B (postfix, mysql, etc). I have a script written on machine B that will basically turn it into machine A (replace those files that I held back), restart the NIC and enable the services that were disabled. Of course machine A needs to be off when I run the script or there will be havoc. I test machine B monthly by turning off machine A, running the script, and doing some tests to make sure it is up to date and running properly. It works like a charm!

Linux multiple computer management

Tuesday, August 11th, 2015

https://wiki.fogproject.org/wiki//index.php?title=FOGUserGuide#Requirements