Saturday, September 5, 2009

Howto Create Bootable Ubuntu USB Pendrive : An Easy Method

Howto Create Bootable Ubuntu USB Pendrive : An Easy Method

Power users of Ubunto knows howto create a Bootable Ubuntu USB PenDrive. But Newbies have some confusions. From Ubuntu 8.10 onwords Ubuntu included a tool for making usb bootable. It is very simple.
USB Startup Disk creator tool

Requiremets:

1. A USB Pendrive with Minimum 700 MB

2. An Ubuntu CD or Ubuntu CD iso file.

Howto make Bootable USB


Start USB Startup Disk creator tool from System->Administration->Create a USB startup disk.


Either insert your Ubuntu CD, or click Other and browse to your ISO file. Plug in your USB drive. (You can plug USB and Put CD before running program). The software should recognize the pendrive immediately and check that there is enough free space.

Finally, you can choose whether you want your USB system to be persistent between boots( this option is good because your PenDrive will keep Your Documents and Settings in a reserved extra Space ) , or static like a live CD. By Adjusting the slider you can choose how much space Ubuntu will have on the disk to reserve, or select the Discarded on shutdown option for work like a live CD.

Now click on Make Startup Disk. and wait while the USB boot disk is created.

Now Your USB Pendrive is bootable.

Howto use Windows Shared HP printer in Ubuntu / Debian Linux (using samba)

Most of the Computer Labs in Industry and Education Institutions are equipped with Windows. So Printers are also connected to Windows machines. Here a Simple howto for sharing windows shared printers for Linux users. I have test with a HP1015 printer installed in an Windows XP machine and shared. My linux box is ubuntu 9.04 ( I also tested with ubuntu 8.04, 8.10 , debian 4.0 and 5.0).

First install samba

apt-get install samba

apt-get install smbfs

apt-get install cupsys

after this installations

open a browser and type

http://localhost:631/

you will get a cups administration page

select add printer

then type Name : anything
Location : anything
description : anything

now you will get a dropdown menu

select windows printer via samba

now there is text box Device URI

type smb://shibuscomputer/1015 ( see I have a shared hp 1015 printer at computer name called shibuscomupter and share name of printer is 1015 with permision to all)

after selecting uri u will get a page for selecting make

select your printer make in my case it is HP

next page select model HP Laserjet series PCL 4/5 CUPS v 1.2 (en)

now printer installation is over

you can make a test print now











Thursday, September 3, 2009

Howto Install PHP GD (PHP Graphics) support in Ubuntu / Debian

PHP is not limited to creating just HTML output. It can also be used to create and manipulate image files in a variety of different image formats, including GIF, PNG, JPEG, WBMP, and XPM. Even more convenient, PHP can output image streams directly to a browser. You need to install GD Library for this purpose. Simply you can do this.
If you have a LAMP (PHP. APACHE and Mysql) Installation in your System , you can install GD library using the following .

in Ubuntu /Debian Install the package


$ sudo apt-get install php5-gd ( or use synaptic for installing this package )

Now Restart Your apache

$sudo /etc/init.d/apache2 restart