Edit DHCP to Static IP Address Ubuntu Server

If the Ubuntu Server installer has set your server to use DHCP, you will want to change it to a static IP address so that people can actually use it.
Changing this setting without a GUI will require some text editing, but that’s classic linux, right?
Let’s open up the /etc/network/interfaces file. I’m going to use vi, but you can choose a different editor
sudo vi /etc/network/interfaces
For the primary interface, which is usually eth0, you will see these lines:
auto eth0
iface eth0 inet dhcp
As you can see, it’s using DHCP right now. We are going to change dhcp to static, and then there are a number of options that should be added below it. Obviously you’d customize this to your network.
auto eth0
iface eth0 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
Now we’ll need to add in the DNS settings by editing the resolv.conf file:
sudo vi /etc/resolv.conf
On the line ‘name server xxx.xxx.xxx.xxx’ replace the x with the IP of your name server. (You can do ifconfig /all to find out what they are)
You need to also remove the dhcp client for this to stick (thanks to Peter for noticing). You might need to remove dhcp-client3 instead.
sudo apt-get remove dhcp-client
Now we’ll just need to restart the networking components:
sudo /etc/init.d/networking restart
Ping www.google.com. If you get a response, name resolution is working(unless of course if google is in your hosts file).
Really pretty simple.


Install Lexmark E120n Printer on Network

Network ready or "IP Printers" are all the rage. The ability to for multiple users to
share a printer without having to have a computer running and hogging electricity all the time, is a great benefit. This procedure is for the Lexmark E120n laser printer.
However, it is generally the same for all network ready printers printers.

If you have this printer, you should be familiar with the layout
of the buttons, but here is a photo of it and what i will be using as refrence.


What you will need



1. Unpack the printer, install toner, connect cables


If this is your first time installing toner, don’t worry you
wont have to call a computer repair technician to do it.

The Lexmark E120n is pretty simple to install toner, just
make sure that before you install it (if this is a new printer)
all the little plastics tabs that are shipped with it are removed

By opening the front door, the old toner (if still there) slides
out with a little force, and the new toner slides in
corresponding to the arrow pointing in the direction
of the printer.


2. Press the arrow to printout configuration information
By pressing the top right triangle on the front of your
printer it will print out configuration information that
will inform you of whole sleuth of details, configs, and
other technical ramblings.

The only entry you are concerned with is the IP Address
of the printer. Once you find it, underline or just put it
somewhere you cannot lose it


3. Download & Install the printer driver on all computers that will access it


4. Add the network printer in windows, manually

These instructions are for Windows xp

Press start > control panel > printers and faxes
Select: Add a printer on the right hand side
The add a new printer wizard will open, click [Next >]

Uncheck "Automatically detect and install my Plug and Play printer"
and check "Local Printer attached to this computer"
click [Next>]



5. Configure the TCP/IP Port

Once you reach the "Select a printer Port" screen, we are going to
create a new port by checking – Create a new port
On the pull down menu, select, standard TCP/IP port and click [Next>]

Welcome to the "Add a Standard TCP/IP Printer Port Wizard"
To continue Click [Next>] , which is what you want to do.

Now type in the E120n’s IP address in the box labelled "Printer Name
or IP Adddress", Note: Do not change the IP address.
Click [NEXT>] (then wait a few seconds)

The "Install Printer Software" Window will popup, and on the
left hand side you will find under Manufacturer: Lexmark and
Printer select E120n .
Click [Next>]


6. Confirm driver Selection


If you are asked to select "Keep Existing Driver " and press [Next>] Again
Which will you bring you to the "Name your Printer" Page. Go
ahead, name it whatever you please. Set the default printer
if you like as well.
DO NOT share this network printer.


7. Print a test Page
When promoted "Do you want to print a test page?"
Click [Next>]



Congratulations!


Converting .dmg to .iso file in Ubuntu Linux

Ubuntu is a common variant of Linux, complete with a user-friendly interface and full flexibility in customizing it via the Terminal window. Windows and Linux share the ability to open ISO files, which are similar to DMG files. Though DMG files are commonly associated with Apple’s operating system, Mac, they can be opened in Linux with a few simple steps.

Step 1: Install dmg2img

  • Open up your terminal console
  • sudo apt-get update
  • sudo apt-get install dmg2img

Step 2: convert the .dmg to .img

Once dmg2img is installed, you will want to change our working directory to the .dmg you want to use. in my case, the image.dmg is on my desktop. ( /home/dan/desktop )

  • cd /home/dan/desktop

Once you are succesfully in your working directory, you are now read to convert the .dmg file.

  • dmg2img /home/dan/desktop/image.dmg /home/dan/desktop/image.img

NOTE: the second part of the command is a .img at the end.

Step 3: Mount the .img file

Now we are ready to mount the .img file into a new directory

  • mkdir /media/image
  • sudo modprobe hfsplus
  • sudo mount -t hfsplus -o loop image.img /media/image

Step 4: Convert the .img to .iso

The image is now mounted. We need to convert it to a .iso file now. Open Brasero, a program native to Ubuntu. It can be found in the “Sound & Video” section under “Applications.” When the window opens, choose “Data Disk” and then “Enable Side Panel.” (if Brasero is not installed, open up the terminal and type the following command: sudo apt-get install brasero )

Press “Image File” and “Burn.” This takes the IMG file and converts it into an ISO file. Wait for this to finish.

Step 5: Mount the .iso file

Enter the following commands into Terminal, where “image” is the name of the ISO:

  • mkdir /media/imageiso
  • sudo modprobe hfsplus
  • sudo mount -t hfsplus -o loop image.iso /media/imageiso

This will successfully mount the .iso file and you can proceed with your installation.