10 Useful Basic Linux Commands

“Linux: the operating system with a CLUE… Command Line User Environment”.

Now a days , everything you can do with GUI mode, even though graphical mode is user friendly , only user can do their work more faster way using commands. As a Linux beginners , you need to know at least some basic commands which would be useful for your frequent activities in Linux. Here i have given 10 basic commands for beginners to work with some basic regular tasks in Linux .

  1. man
  2. apropos
  3. cd
  4. ls
  5. cp
  6. rm
  7. cat
  8. history
  9. find
  10. tar

Every command has lot of options , but i am going to give only the basic options for user regular activities. Please refer coming articles for understanding these 10 commands.

Elinks – Text Based Web Browser

ELinks is a feature-rich program for browsing the web in text mode.  It is like enhanced Lynx and Links. Unlike Firefox , elinks will display only text from the web pages , all multimedia components such as image , audio , video , flash file are removed from the web page.  So the browsing speed is very fast comparing to normal web browsers. To install elinks in your Ubuntu machine , use the given command

sudo apt-get install elinks

E-Links Installation

E-Links Installation

Features

  • Lots of protocols (local files, finger, HTTP(S), FTP, IPv4/6 etc.)
  • Internationalized domain names
  • Persistent cookies, HTTP authentication and proxy authentication
  • Tabbed browsing, good looking menus and dialogs, and key-binding manager
  • History browsing and typeahead searches
  • Forms history and completion, and history in commonly used input dialogs
  • CSS support and support for browser scripting (Perl, Lua, Guile etc.)
  • Tables and frames rendering, and configurable color support
  • Compressed and background (non-blocking) downloads, and download resuming

Home Page

Shortcut Keys

  1. Space      —  Move downwards by a page (move-page-down)
  2. D             —   Open download manager (download-manager)
  3. d              — Download the current link (link-download)
  4. Delete    —   Scroll down (scroll-down)
  5. Enter     —   Follow the current link (link-follow)
  6. F10        —   Open the File menu (file-menu)
  7. Tab        —   Move to the next frame (frame-next)
  8. Shift-Tab  —   Move to the previous frame (frame-prev)
  9. h                 —    Open history manager (history-manager)
  10. t                  —   Open a new tab (open-new-tab)
Sample Page from Openpeta.com

Sample Page from Openpeta.com

For more information , please refer http://elinks.or.cz/documentation/manpages/elinkskeys.5.html url.

Other Text Based Browsers

Watermark Images – A Software for Adding Text into Images

Every time when i post article in my blog, i used to display some images,  also i will think about adding  “my blog name:OpenPeta.com” as a watermark into the images for ownership purpose [In OpenPeta all content and images are published under Open source and creative common licenses , so any one can copy and distribute the content with author name. for that purpose only i want to add watermark in images] . but In Ubuntu i could not do that task , Windows Live has that features of adding watermark and border to images .  I always look into sourceforge.net for open source softwares, today i found one simple Java based watermark software for adding text into images. lets analyze it.

WatermarkImages from SourceForge.net

WatermarkImages from SourceForge.net

What is Image Watermarking?

Image watermarking is the technique for hiding data within the image, the data can be a text or image. This technique is used for preventing unauthorized ownership of  particular image . There are two types of watermarking

  1. Visible Watermarking – watermarked text will visible inside the image
  2. Invisible Watermarking – watermarked text will not be visible to others , only the owner can extract the text using decoding algorithm and key.

Image Watermarking Software -WatermarkImages

WatermarkImages is a software which is used for adding text with various colors and fonts into image. it can be downloaded from http://sourceforge.net/projects/watermarkimages/ sourceforge website.  This software is written in Java , so you need Java interpreter or run time environment to run this software .

Watermarker 2.0

Adding Watermark into Images

After downloading binary or jar file of this software from the net , simply extract the file and store it into some folder. for runnung this software , goto terminal and tyoe

#java -jar WaterMarker2.1.jar

Text Watermarking Panel

This command will open the GUI window of this software, then select the image which you want to add text , and Enter the text then  click start button ,  The watermarked image will be ready for you within a second.

Ubuntu One – A New Storage Application

Ubuntu one is the new storage application which provides file synchronization between client machines . User can store upto 2GB files through Ubuntu one client application. This application was written in Python and it comes with Ubuntu OS by default. Canonical company provides this services , If user want more space , they can pay $10 per month and utilize upto 50GB. Currently Ubuntu One Client application is not available for Windows and Mac OS.

Ubuntu One : Home

Ubuntu One : Home

Features of Ubuntu One Service

  • User Can Store up to 2GB for free of cost
  • Cloud Computing Technology – Storing and Retrieving files will be very fast
  • Synchronization functionality – User can access and store the file from any Linux client machines [Only thing is they need Ubuntu One Client Application]
  • Synchronizing Firefox Bookmarks with Ubuntu One
  • User can use web browser to upload the files using http://one.ubuntu.com link
  • Ubuntu One Music Store [ Will be released in Ubuntu 10.04 version]

Ubuntu One Preferences

How to Create an Account and Uploading files ?

You need user name and password for accessing this service , If you already have Ubuntu launchpad account, you can use that one for Ubuntu One Service, otherwise simply create one account with http://one.ubuntu.com website. You can find Ubuntu client application in Applications->Internet Menu.  click on it and enter your user name and password .

Ubuntu One - File Browser

Once you get connected , automatically one folder will appear in your file browser, simply drag and drop the files which you want to upload to Ubuntu One. , Ubuntu one will synchronize all the files while you access from another machine.

Ubuntu Pen Drive Read Only Problem

Some times Pen drive will be mounted in read only mode in Ubuntu due to virus problem.you cannot write anything into it. If you want to change the read only privilege, you can remount the pen drive. just follow these steps

  • Insert the pen drive in Ubuntu , then find the device name

root@Ubuntu:/home/anthoniraj# fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×90909090

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              13        7650    61337600    7  HPFS/NTFS
/dev/sda3            7651       11782    33190290    5  Extended
/dev/sda4           11783       14594    22579200    7  HPFS/NTFS
/dev/sda5            7651        8135     3895731   82  Linux swap / Solaris
/dev/sda6            8136       11782    29294496   83  Linux

Disk /dev/sdb: 8032 MB, 8032092160 bytes
131 heads, 50 sectors/track, 2395 cylinders
Units = cylinders of 6550 * 512 = 3353600 bytes
Disk identifier: 0×00008640

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           2        2396     7839744    b  W95 FAT3

In My system /dev/sdb1 is the pen drive device name

Pen Drive Device Name

  • Create one folder for mounting your pen drive files

# mkdir /media/Antony

  • Now Unmount the drive

# umount /dev/sdb1

  • Now manually mount the device with read-write mode

#mount -t vfat -o rw /dev/sda1 /media/Antony/

After this  steps, your pen drive privilleges will be changed to write mode.

Installing Microsoft Core Fonts in Ubuntu

I dont know why all people are always using Times New Roman in  publications and standard documents. Even though lot of alternate standard fonts are available [ Nimbus New Roman , Sans , Serif], only Times New Roman is in the first place. I think this is the domination or popularity of Microsoft windows. Ok you dont bother about how to use Microsoft core fonts in linux.  we have all options in linux , only thing is that we need to find it. For installing Mscorefonts simply search in Ubuntu  synaptic package manager with “microsoft core fonts” , you can find one package “ttf-mscorefonts-installer” , just mark this package and install it.

This package allows for easy installation of the Microsoft True Type Core Fonts for the Web including:

  • Andale Mono
  • Arial Black
  • Arial (Bold, Italic, Bold Italic)
  • Comic Sans MS (Bold)
  • Courier New (Bold, Italic, Bold Italic)
  • Georgia (Bold, Italic, Bold Italic)
  • Impact
  • Times New Roman (Bold, Italic, Bold Italic)
  • Trebuchet (Bold, Italic, Bold Italic)
  • Verdana (Bold, Italic, Bold Italic)
  • Webdings

You will need an Internet connection to download these fonts if you  don’t already have them.

Auto Shutdown Software for Linux

You are downloading softwares or movies in your desktop Linux , Your Internet connection is limited to GB usage. or only night hours internet is free. In that situation, If  you want to turn off or shutdown your computer after the free usage time. GShutdown software is doing that task for you.

Screenshot-GShutdown

GShutdown is an advanced shutdown utility which allows you to schedule the shutdown or the restart of your computer, or logout your actual session.

Installing GShutdown In Ubuntu

You can use Synaptic Package manager or Ubuntu Software center to install this software. or download the source code from http://gshutdown.tuxfamily.org site and install manually in your system.

Screenshot-Appnr - Get Ubuntu Applications! - Mozilla Firefox

GShutdown is a free software under the GPL license. The graphical user interface uses GTK+2.

Features :

  • Compatible with GNOME, KDE and XFCE.
  • Compatible with GDM and KDM to shutdown, reboot or close the current session, without being root.
  • The ability to choose a command to stop the computer (like “sudo poweroff”, for example)
  • Systray icon
  • Visual notifications (to warn the user that his computer is going to be stopped in a few seconds !)
  • Three different ways to schedule the turn off time : « at time and date », « after a delay », « now ».

Appnr – A Web Based Debian Package Manager

Appnr is a web-based package manager that install applications on Ubuntu. This is a web interface for APT system, and the package is downloaded and installed from Ubuntu/Third-party repositories.

Screenshot-Appnr - Get Ubuntu Applications! - Mozilla Firefox

The AptURL Protocol Handler and a web browser support are required to install packages. Steps are given here to install the apturl package [if using APT-based Linux system such as Ubuntu, Debian, Linux Mint, and gOS].

Install from Synaptic Package Manager

Go to Synaptic Package Manager and find apturl.
When you have found it check it and click on Apply Changes.

Install from Terminal

sudo apt-get install apturl

Enable the AptURL protocol in Web Browsers

*** Firefox ***

  • Type in about:config in the location bar.
  • Right click, select New -> String
    Type in network.protocol-handler.app.apt in the name of string, and type  in /usr/bin/apturl in the value.
  • One more right click, select New -> String
    Type in network.protocol-handler.app.apt+http in the name of string, and type in /usr/bin/apturl in the value.

*** Opera ***

  • Open Preferences.
    Tools -> Preferences -> Advanced -> Programs
  • Click “Add” button.
    Type in “apt” in the “Protocol” field,
    and type in “apturl” in the “Open with other application” field.
    Click “OK” button.
  • One more click “Add” button.
    Type in “apt+http” in the “Protocol” field,
    and type in “apturl” in the “Open with other application” field.
    Click “OK” button.

After finishing your configuration , You can use http://www.appnr.com search page to browse the package manager. This web based package browser will automatically find and install the dependency software of a given package.

Reference : http://www.appnr.com

Bilbo – A KDE Blogging Client

I have been searching for a good blogging client for long time. Finally i found Bilbo , the most powerful blogging client has all features. Bilbo is available for KDE , but you can also install in Gnome environment. For installing Bilbo in Ubuntu you can use the command

#sudo apt-get install bilbo

or use synaptic package manager and install it. The Bilbo client supports the following Blogs

  1. Blogger 1.0 API
  2. Metaweblog API
  3. Movable Type
  4. WordPress
  5. Blogspot.com

HTML Options for creating or editing POST

  • Spell Check
  • Bold , Italic , Underline and Strike
  • Code </>
  • Paragraph , h1,h2 …
  • Increase and Decrease font size
  • Changing font color
  • Clear formatting
  • Quote the text
  • Align left, right, center,Justify.
  • Ordered and Unordered list
  • Insert or Remove link
  • Insert Image or Media

Features of Bilbo

  1. Create / Modify post
  2. Remove post
  3. Fetch recent post
  4. Multipaged post
  5. Support Tags
  6. Upload Media
  7. Save File in Local Machine

Only bilbo  does not support “Create New Category “yet . This would be the best alternate open source alternate  for Windows Live Writer. Just Try this !!!!!!!!

Eclipse or Netbeans ? Which one to Choose ?

This article is absolutely for beginners those who want to choose / learn best IDE for their project Development. Both IDE has lot of features and supporting major programming languages [ Java , C , C++ , PHP , HTML , Perl , Python , Ruby Etc .. ] . The Comparison of these IDE are given here
Eclipse IDE

Pros

  1. IDE Features [ Syntax Highlighting , Debugging , Preview ...]
  2. Full Java , J2EE Development Support.
  3. Various Flavors are available [Eclipse Classic , Eclipse for Java  , Eclipse for J2EE ... ]
  4. Plug-in Development Support
  5. Perl , Python , C , C++ , Ruby on Rails language support
  6. Plug-in s are more [ You can find from Eclipse Plug-in Site ]
  7. Execution Speed is good ,Memory Consumption is less, Eclipse will also work in 512 MB RAM ,
  8. Debugging support for all languages.
  9. Developer friendly

Cons

  1. Single Bundle or package is not available for all features.
  2. Lacks for Java Swing Designing
  3. No Internal Server for running Client / Server Script like apache or tomcat or glassfish

Netbeans IDE

Pros

  1. All IDE Features
  2. Java, C , C++ , PHP , Ruby , groovy languages support
  3. Bundled with single package for all features
  4. Various flavors are available [Netbeans Java , J2EE , C ..]
  5. Debugging is good
  6. WYSIWYG design for Java Swing Application
  7. Full Java Script and CSS support
  8. Tomcat and Glassfish serves are in built with Netbeans IDE
  9. Developer friendly
  10. Option for uploading project into open source community [ using Kenai]

Cons

  1. Occupying More Memory (Min 512 MB)
  2. Execution Speed is somewhat low comparing to eclipse [But its  based on processor and memory )
  3. Plug-ins are less

Final Words

In my working experience with IDEs , If you want to develop Java Swing and J2EE Related Applications, you can move for Netbeans , or always choose Eclipse to code.