Changing ownership of files when the UID/GID is obsolete or you need to change it for some other reason.
If you have changed or removed a UID for a user or GID a group, you must also change the flags set on the files belonging to these IDs. Otherwise you will have orphaned files.
To setup a PXE server with dnsmasq is really simple the second time 🙂 This is how I did mine on Ubuntu 12.04, but it should be similar on most Linux distros and versions.
Setup dnsmasq so it is providing DNS and DHCP first. See my How to setup dnsmasq for DNS and DHCP.
Well what can I say, ‘if’ is the Input file name, and you already worked out that ‘of’ is the output file that is the resulting iso.
dd if=/dev/sr0 of=/cdrom_image.iso
This is so easy, the second time :-)!
You will need somewhere to mount the ISO. If you are expecting to do this more than once then create a specific ISO directory.
Now you can mount the iso,
sudo mount -o loop /path/to/your.iso /media/iso
To access the iso image simply cd or access /media/iso which is now the root of your image.
When you are all done you can umount the image with
This post will explain how to Setup dnsmasq as DNS DHCP.
What is Dnsmaq
This description of dnsmasq shamelessly taken from the dnsmasq home page.
dnsmasq is a lightweight DNS, TFTP, PXE, router advertisement and DHCP server. It is intended to provide coupled DNS and DHCP service to a LAN.
To find a list of installed packages use the dpkg command and its –get-selections switch. This is rather long so narrow it down with grep
dpkg --get-selections | grep w-scan
[blacksample text=”output:”]w-scan install
So for whatever reason you need to change the hostname of your GNU Linux machine. For me this is usually because I am playing around with a virtual machine. I have automated the setup for a number machine installations. Once I have it running and configured I may want to keep, so changing it’s name is a nice thing to do.
Check your hostname is set to something and no errors are returned. The commands below will return the host name with and without the domain.
The full Perl tutorial can be viewed by downloading the attached file.
To view the tutorial content, use one of the two command lines below:
I have been using the text editor Brief or it’s offspring for over 20 years now. 🙂 When I changed companies they didn’t have any licenses for it or any editors like it. So after a quick search on the net I found a set of macros that almost did what I wanted them to do. They are very old and the key mappings are incomplete.
The downloadable file below is the result of my tweaking and additions.
You will, not might, need this at some point in time. It will happen to you. :) When you find that grub2 is no longer on your MBR so the system will not boot or even find grub. For example you installed Windows, dumb move, but heh! You may also have cloned the hard disk and forgot to copy the MBR.
This will get you back up and running again!
You will need an Ubuntu LIVE cd or Desktop for your current install. Boot the system with Live cd. Once booted open a terminal.