Skip to main content

Posts

Showing posts from October, 2008

Howto Install BSNL wll clarity phone in Ubuntu

Hello linixians, Failed to access internet through your bsnl clarity phone.... Here is an easy way 1. Just download this executable..... bsnlclarity and save it to your home folder. 2. Connect your phone to the system with the usb cable. 3. Now at terminal type $ sudo ./bsnlclarity You will be asked for your username and password for accessing the internet enter it ..... now start surffing Ctrl+C to stop

Assign a Hotkey to Open a Terminal Window in Ubuntu

Since we spend so much time at the command line in Ubuntu, it sometimes makes it simpler to launch a new terminal window with a shortcut key. Ubuntu has a built-in utility for assigning shortcut keys. Go to System \ Preferences \ Keyboard Shortcuts: Scroll down to where it says "Run a terminal", and click in the Shortcut column. When you see "New accelerator…", the next keystroke that you use will set the keyboard shortcut. I assigned Ctrl+Alt+X as mine…. one press of the key combination and up pops a terminal. What a time saver!

Add the Trash Can Icon to Your Ubuntu Desktop

Ubuntu has an option for adding a Trash Can icon to the desktop, which might be a comfort for those of you migrating from Windows. Just type gconf-editor into the Alt+F2 run dialog to open the Gnome Configuration Editor. Now browse down to the following key: apps \ nautilus \ desktop On the right hand side, you'll see an entry called trash_icon_visible . Just check the box. You can also change the trash_icon_name if you'd like. And there's the icon.

Reset Your Ubuntu Password Easily from the Live CD

Our last article on how to reset your Ubuntu password easily through the grub menu was quite popular, so I've decided to make a series on all the different ways to reset your password on either Linux or Windows… today's lesson is how to use the Live CD to reset the password. Note that we'll also cover how to protect yourself against somebody else resetting your password, so stay tuned! Of course, this method will also work if you've installed your Ubuntu Live CD to a thumb drive . Resetting the Password You'll want to boot from your Ubuntu Live CD, choosing "Try Ubuntu without any change to your computer" from the boot menu. Once the system boots, open up a new Terminal window from Applications \ Accessories and then type in the following command: sudo fdisk -l This command is used to tell what device name the hard drive is using, which in most cases should be /dev/sda1, but could be different on your system. Now you'll need to create

Reset Your Forgotten Ubuntu Password in 2 Minutes or Less

If you've ever forgotten your password, you aren't alone… it's probably one of the most common tech support problems I've encountered over the years. Luckily if you are using Ubuntu they made it incredibly easy to reset your password. All it takes is adjusting the boot parameters slightly and typing a command or two, but we'll walk you through it. Reset Your Ubuntu Password Reboot your computer, and then as soon as you see the GRUB Loading screen, make sure to hit the ESC key so that you can get to the menu. Root Shell - Easy Method If you have the option, you can choose the "recovery mode" item on the menu, usually found right below your default kernel option. Then choose "Drop to root shell prompt" from this menu. This should give you a root shell prompt. Alternate Root Shell Method If you don't have the recovery mode option, this is the alternate way to manually edit the grub options to allow for a root shell. First you'll

Create a Bootable Ubuntu USB Flash Drive the Easy Way

We've already covered how to use an Ubuntu Live CD to backup files from your dead Windows computer , but using the boot cd can sometimes be a little slow. We can speed up the booting process by installing Ubuntu to a bootable USB flash drive instead. To accomplish this, we'll use a tiny software package called UNetbootin, which is designed to make the installation process simple and easy. Create the Bootable Flash Drive You'll first need to download the UNetbootin software and save it somewhere useful, since there's no installation required, just double-click to run. I chose to use an already downloaded ISO image of the Ubuntu installation cd , and then chose my flash drive, and clicked the OK button. Yes, this step is as simple as that. The process will extract the files from the ISO image (or download them), copy them to the flash drive and then install the bootloader. Depending on what you are installing, this really doesn't take very long. Once the pro

Ubuntu Feisty on Wubi on WinXP Pro

This time I want to tryout Wubi (Windows based installer for Ubuntu). My objective is to install Ubuntu and create a dual boot system on my existing WinXP machine without having to repartition my hard drive. I’m very fond of virtual machine idea (Vmware, Xen & Microsoft Virtual PC) but so far I found out that there are severe performance hit on my pc at home (AMD Athlon XP 1800 & 256 RAM) whenever I use virtual machine and I finally decided to use dual boot instead. Extracts from the Wubi website Wubi is an unofficial Ubuntu installer for Windows users that will bring you into the Linux world with a few clicks. Wubi allows you to install and uninstall Ubuntu as any other application. If you heard about Linux and Ubuntu, if you wanted to try them but you were afraid, this is for you. I will try to install Ubuntu Feisty 7.04. Firstly I grab the Wubi installer . Optionally, you can download the Alternate ISO (ubuntu-7.04-alternate-i386.iso) first from ubuntu site or any neare

Make an Ubuntu live USB

You know,Fedora project has a tool names Fedora liveusb-creator for easily installing Fedora live operating systems on to USB flash drives.I found a tool names Ubuntu LiveUSB which also for creating a bootable Live USB stick from the running Ubuntu Live CD. Ubuntu LiveUSB performs the following actions:: Detects available USB sticks (using HAL) and asks user which one to use Partitions USB stick with 1 partition Sets partition bootable Writes MBR to USB stick Formats partition FAT16 Installs bootloader (syslinux) to partition Writes bootloader configuration file Copies necessary files from running Live CD to USB stick Sets language and keyboard of USB Live system to match running Live CD Optionally: Downloads and integrates Adobe Flash Player Some experience: 1.It does not supports USB HD,supports USB flash stick only. 2.The USB stick must be bigger than 1G. 3.Can only save data on home folder. 4.Time for making an Ubuntu live usb is almost = installing the Ubuntu onto hard

Another Ubuntu Flavor: Ubuntu Studio

Ubuntu Studio bills itself as the "multimedia creation flavor of Ubuntu," an official Ubuntu project "aimed at the GNU/Linux audio, video, and graphic enthusiast as well as professional." It is certainly flashy on the outside -- even if it is mostly the same Ubuntu Linux distro under the hood. " We provide a suite of the best open-source applications available for multimedia creation. Completely free to use, modify and redistribute. Your only limitation is your imagination. " For me, this Linux is nice for multimedia. Current release is UbuntuStudio 7.04. Congratulation to Ubuntu Team that make this distro (Ubuntu Flavor) alive!. Some screen shots. Follow this link: http://ubuntustudio.org/screenshots To download: http://ubuntustudio.org/downloads Wiki: https://wiki.ubuntu.com/UbuntuStudio Support: http://ubuntustudio.org/support

How to install Google Earth on Ubuntu

Some people who use ubuntu, could not know that Google Earth, exists in Ubuntu version! Here is a simple "HowTo" to install it: - Download Google Earth for Linux - GoogleEarthLinux.bin saved on your Desktop - Open the terminal and enter these commands in sequence: cd Desktop chmod +x GoogleEarthLinux.bin ./GoogleEarthLinux.bin

Windows shared printer in Linux (using samba)

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://mycomputer/1015 ( see I have a shared hp 1015 printer at computer name called mycomputer 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

Boot and run Linux from a USB flash memory stick

Carry a portable Linux version with you on a USB flash pen drive. Easily bring your portable desktop with you wherever you go. USB Linux installation enables you to install a portable Linux operating system on a flash drive or USB key no larger than your thumb (thumbdrive). This portable Linux operating system can then be run from any computer that can boot from a flash device, allowing you to bring your operating system, desktop, applications, files, email, personal settings, favorites, games and more with you. It’s your own personal operating system you can carry in your pocket. On Pendrivelinux.com, we provide many simplified portable Linux flash drive installation tutorials. Making is easy for anyone to install, boot and run Linux portably from a Pen drive!

Installing Fonts in Ubuntu

Installing fonts in Ubuntu 7.10 (Gutsy Gibbon) can be done in a number of ways. Personally I like the following method, it's quick,simple and it works. Installing some common fonts. There are a number of very common fonts, which you can install through APT/Synaptic, including the Microsoft TrueType core fonts (e.g. Arial Black, Times New Roman). Before installing, make sure you enable the extra repositories, (If your not sure how to do this please see: Repositories/Ubuntu ). Install the fonts: # sudo apt-get install msttcorefonts texlive-fonts-extra Installing Other fonts You can also use many other fonts, like those downloaded from dafont.com . There are two options when installing: one to install them for a Single User , this means that only this user can use them, or installing them for System Wide use, so that every user on the system can use the fonts. Single User: Once you have downloaded and unpacked your font files (.ttf, .TTF) , you will need to create a ~/.fonts if it d

Installing New Usplash Themes in Ubuntu

There are many different looks you can give to your boot screen by adding more themes to usplash, the program which displays the splash image at boot time . You can install a number of them using Synaptic by doing a search for usplash . You can also download different themes online ( see below ). Installing StartUp-Manager Before playing with Usplash themes we need a way to easily switch between themes, enter StartUp-Manager , this program lets us control many aspects of Ubuntu's start-up including Usplash. You can install startupmanager via Synaptic or apt using the following line: # sudo apt-get install startupmanager Download Uspash theme When I searched Gnome-look for Usplash I found a number of very nice themes: Usplash Themes at Gnome-Look . I quite like the Black Chrome theme . Once you have chosen one or two that you like, download them, and extract them from there archive: Right click on the archive .tar.gz and select Extract Here : Installing Usplash Themes Now we wi

Changing the Color Scheme in Gedit

I find looking at a white background and black text a little daunting in Gedit, however in Ubuntu 7.10 (Gutsy Gibbon), you can easily change colour schemes and save your eyes. To change schemes: In Gedit Go to Edit --> Preferences . In the Preferences dialogue click on the Font & Colours Tab. Then choose a scheme to suit you.

Unable to Switch User Error - su: no shell

We had some users complaining about not being able to switch or substitute user, su. Here is the error message they were receiving: "su: no shell.” At first I thought the users had inadvertently locked out their accounts. But after querying nisplus and checking the file-based users, I didn’t observe any locked accounts. I tried switching to various users from root and received the same error. Then I tried switching user on a different workstation - no problem. The problem was tied to a particular box. Then we used the truss command to trace the system/lib calls. It pointed to an unexpected access/permission issue. Observed the /usr directory was set to 600. Frankly speaking, the permission problem was somewhat a surprise since it was working fine the previous day. At any rate, changed the permissions and things were back to normal. # truss su esofthub

Mounting ISO and DD Image Files

Occasionally, I'll download an image file and want to see what is on it, or make a few changes to it before burning it to CD. The image file (dd, iso, etc) can be mounted using the loop device. You will need to know the type of filesystem the image uses. Most Linux/Unix-based OS's have an application that will help you identify the filesystem type. Debian includes the command /lib/udev/vol_id, SUSE has the same command but in a different location (/sbin/vol_id). If you know how to get this information on a SUN box, please leave a comment for us. If you don't have a command that will tell you the filesystem type, you can guess. Most images downloaded from the Internet will be iso9660, Windows filesystems are normally ntfs, Linux are commonly ext2, and Macintosh are udf or hfs. As a last resort, you can work your way down the list of filesystem types listed in the mount man pages. After you know the filesystem type, you are ready to mount. Note: replace <_type> with th

Strip a Prepended String From a Filename - Unix

I had a process that was pre-pending by design its PID to a file name string. But unfortunately, it caused a few unexpected problems when this handling process inadvertently terminated. I had to rename the files without the defunct pre-pended PID string and then reprocess them (several thousand). Here is what I used as a quick and dirty procedure. # csh # ls prependPID_filename_etc1 prependPID_filename_etc2 prependPID_filename_etc3 prependPID_filename_etc4 # foreach filename (prependPID*) ? mv $filename `echo $filename | sed 's/prependPID_//'` ? end # ls filename_etc1 filename_etc2 filename_etc3 filename_etc4 # zsh # ls prependPID_filename_etc1 prependPID_filename_etc2 prependPID_filename_etc3 prependPID_filename_etc4 # for i in prependPID* for> mv $i `echo $i | sed 's/prependPID_//'` # ls filename_etc1 filename_etc2 filename_etc3 filename_etc4

Dual Boot Live DVD ELPICX with Ubuntu and Fedora

Elpicx is a dual boot live DVD with ubuntu 8.04 and Fedora 9 KDE . It includes a collection of reference cards, test simulators, study notes and exercises for the Linux Professional Institute certification exam. It best for students preparing any certification in Linux. Originally it is a germen distribution but English version also available. Now elpicx 2.0 is available. Download English version (1483MB)

RUN DOS APPLICATIONS AND GAMES IN UBUNTU LINUX : DOSBOX

DOSBOX RUN DOS APPLICATIONS AND GAMES IN UBUNTU LINUX $ sudo apt-get install dosbox (Your can use Synaptic Package Manager and search for dosbox) After Installation you can make a folder xxxxx in your home directory (eg: $ mkdir mydos ) copy your favorite dos programs and games like Turboc, dave, digger etc in this directory Now you can run dosbox by typing dosbox in a terminal or by select it from menu $ doxbox You will get a small dos window with Z:\> prompt In Z prompt type the following Z:\> mount c /home/xxx/mydos This command for mounting your dos directory to C Drive (in my case my dos files are in /home/xxx/mydos ) Now You are ready for running your dos programms Z:\> c: ( change drive to c:) Z:\> dir (this will list your dos files placed in /home/xxx/mydos) if ther is our old famous digger game Z:\> digger and Enjoy it.

How to make Your Own Ubuntu Live CD using remastersys

Remastersys Remastersys is a tool that can be used to make ubuntu livecd and also it can make a full system backup including personal data to a live cd or dvd that you can use anywhere and and it can install at any time. It can make your own distributable copy with all the softwares installed in your system (eg:java,flashplayer, codecs, fonts, mysql, apache, php etc) can share with your friends. This will not have any of your personal user data in it. Add the following line to your /etc/apt/sources.list $ deb http://www.remastersys.klikit-linux.com/repository remastersys/ $ sudo apt-get update $ sudo apt-get install remastersys run remastersys-gui and make your live cd http://www.remastersys.klikit-linux.com/

Howto Cleanup Your Ubuntu Linux Filesystem

FSLint will clean your temp files, duplicate files, bad sim links and etc. It is very useful tool with an attractive user friendly front-end. apt-get install fslint

Howto change your MAC address in ubuntu Linux

To change the mac address of your ethernet port follow the steps below. Type the following in a terminal with root permission 1. Disable your ethernet. # ifconfig eth0 down 2. Configure new mac address. # ifconfig eth0 hw ether 1b:2a:4c:4d:8e:9f ( 1b:2a:4c:4d:8e:9f is only for example..give your preffered mac address) 3. enable your ethernet # ifconfig eth0 up Check your new MAC address by using # ifconfig

Linux commands for System Administrators

Kernel Ring Buffer: dmesg # dmesg |more [ 0.000000] Linux version 2.6.24-16-generic (buildd@palmer) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Thu Apr 10 13:23:42 UTC 2008 (Ubuntu 2.6.24-16.30-generic) [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009e000 (usable) [ 0.000000] BIOS-e820: 000000007edf4000 - 000000007edff000 (ACPI data) [ 0.000000] 1134MB HIGHMEM available. [ 0.000000] 896MB LOWMEM available. [ 0.000000] found SMP MP-table at 000fe200 [ 0.000000] Entering add_active_range(0, 0, 519680) 0 entries of 256 used [ 0.000000] Zone PFN ranges: [ 0.000000] DMA 0 -> 4096 [ 0.000000] Normal 4096 -> 229376 [ 0.000000] HighMem 229376 -> 519680 List of Open Files: lsof To view a list of all the open files. # lsof -p 6685 To view a list of all the files open for a particular process # lsof -p 6685 6685 is the process ID for a process (ps -u

How to Create and Modify ISO Images in Ubuntu

You can create and Modify ISO9660 files (iso images) graphicaly in ubuntu by using an open source Linux application ISO Master Features: 1. Create an ISO image from scratch. 2. Add or remove files and directories to a CD iso image. 3. Make bootable CDs 4. Support for Rock Ridge and Joliet file names. ISO Master can read .ISO files (ISO9660, Joliet, RockRidge, and El Torito), most NERO .NRG files, and some single-track .MDF files. $ sudo apt-get install isomaster