Tampilkan postingan dengan label Linux. Tampilkan semua postingan
Tampilkan postingan dengan label Linux. Tampilkan semua postingan

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.


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.


Automatic Printer Driver Download Service for Linux OS

Seiko Epson and AVASYS have joint hand to introduce industry’s first service for printer manufacturer that would allow an automatic downloading of printer drivers through simple connection of an Epson inkjet printer with a PC running Linux OS.

The new service will start at the end of April 2011, allowing automatic downloads of printer drivers for a total of 268 Epson inkjet printer models launch since 2005. The new service will ease the burden of manual download of appropriate driver from AVASYS website for Epson printers using PCs running Linux OS.
In order to launch this service Epson had to create a driver that complies with the standard Linux specification “LSB” (Linux Standard Base), while AVASYS had to develop an automatic Linux printer driver download solution form the Open Printing Database.


New Features Coming to Ubuntu 11.04 'Natty Narwhal'

The combination of Ubuntu Linux's growing popularity with all the big changes coming up in the next version mean that Natty Narwhal, or Ubuntu 11.04, might just be the most widely and anxiously anticipated release of the open source operating system ever.

Due to launch officially on April 28, Natty Narwhal will be the first version of Ubuntu to reflect a number of radical changes. The Wayland graphics system won't be ready in time, but 3D-enabled Unity has already replaced the GNOME shell as the default desktop interface, for example.

A 2D version of Unity is also available, and Ubuntu 11.04 uses the Compiz window manager rather than Mutter by default. LibreOffice is now included, and a raft of other changes are planned for the software as well. The first beta version of Natty Narwhal was just released on Thursday.

Meanwhile, news of several additional features has emerged in recent weeks that will likely further heighten anticipation of the final release. Here are the four that have most recently stood out.

1. Try Before You Buy

Starting with Ubuntu 11.04, the Ubuntu Software Center will reportedly let you test out applications without actually installing them, much the way Android users now can on the Amazon Appstore. A WebUpd8 video on YouTube demonstrates the new Ubuntu capability in action.

2. 'Love Handles'

Those using touchscreen devices will surely appreciate Ubuntu's upcoming "Love Handles," which are designed to make it easier to resize or move windows when using Ubuntu on a tablet or other touchscreen device. Available as a Compiz plug-in, Love Handles reportedly let users resize a window by tapping on arrows or grabbing a corner. An OMG! Ubuntu! video demonstrates how Love Handles work.

3. No Third-Party Installs by Default

After considering the possibility of enabling by default the option to "install third-party software" when installing Ubuntu, the Ubuntu Technical Board voted last week not to do that. Both legal and usability reasons were cited for voting down the proposed change.

"There is a low tolerance for failure in common and basic use cases," the board meeting notes explain. "In the world we want to get to, all the functionality users expect will be deliverable with open source software."

Flash, for example, will be downloadable from within Ubuntu, but the option won't be selected by default.

4. No More Netbook Edition

Finally, a few weeks ago we learned that Canonical is planning to discontinue its separate Netbook Edition of Ubuntu starting with the Natty Narwhal release. Rather, there will be a single core product that you run on "anything you like from a netbook to a notebook to a desktop," the company explained on a recent blog. Ubuntu Server, meanwhile, will be maintained separately.

Work has already begun, of course, on Ubuntu 11.10, or Oneiric Ocelot. But with so much exciting new functionality coming to Natty Narwhal, there's plenty to look forward to in the much closer future.