Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Tuesday, August 5, 2014

How to search for installed Software in Ubuntu

Very simple way to identify your installed software in  you Ubuntu machine.

List all the installed software


dpkg --get-selections 

Find the specif software


dpkg --get-selections |grep 

Tuesday, June 3, 2014

Enable Unlimited Scrolling in the Terminal - Ubuntu


Usually while i am testing my server logs the output from a command can be so so lengthy and hard to able scroll back to the beginning. Therefore, I always set the terminal of the each machine that i work to display as many lines as unlimited scrolling.

In the terminal, go to Edit > Profile Preferences, and in the Scrolling tab you will see there is a default amount of lines to be displayed (probably something like 512). Under that, you will see “Unlimited“, so check that, and from the next command on-wards you won’t have that limitation any more.

Monday, October 7, 2013

Find and Replace the String


So long time i was searching for single terminal grep or sed or find command that could find and replace all the place the string value in the document!

Finally i found the command!.

find /path -type f -exec sed -i 's/OldString/NewString/g' {} \;

This command will replace the OldString with NewString. If you want to search with the folder then your path should be "./"

Thursday, April 4, 2013

Cool Terminal Commands to identify your OS detail

I want get the details about my current Ubunutu OS that has been installed in my machine!
as a result of google search. I found few cool commands!


1) uname -a

This command will retrieve you, full detail of the OS that install in your computer.

Linux vanjikumaran-ThinkPad-T530 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux



2) lsb_release -d


This command should give you the the description including the OS name ("Ubuntu" on an Ubuntu system) and the release number.

Description:    Ubuntu 12.10
 

3) lsb_release -c

This will give you just the codename.

Codename:    quantal

 
4) lsb_release -r

This will give you just the release number only.

Release:    12.10


5) lsb_release -a

This will provide you full lsb detail.

No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 12.10
Release:    12.10
Codename:    quantal

Monday, April 1, 2013

Installing Maven and Ant in Ubuntu

Configuring Maven or Ant in the Ubuntu is relatively very easy task!

Just a matter of invoking above code code snippets in terminal!

to install Maven

sudo apt-get install maven

for further detail, visit to http://maven.apache.org/


to Install Ant

sudo apt-get install ant

for further detail, visit to http://ant.apache.org/


Sunday, March 31, 2013

Install VIM in Ubuntu with Features

This post will explain how to install VIM in Ubunutu with Features in step by step Process.

The Default VIM editor do not show any syntax highlighting.

Therefore, 

If you install this VIM configuration, in run time you can see the syntax highlighting in your code!

apt-get install vim vim-common vim-gnome vim-gui-common vim-runtime








Interesting Post be read regard VIM commands,
[1]http://bullium.com/support/vim.html
[2]https://help.ubuntu.com/community/VimHowto
[3]http://www.yolinux.com/TUTORIALS/LinuxTutorialAdvanced_vi.html

Happy Coding :D

Activate and use laptop Fingerprint Reader in ubuntu

This post will guide you step by step, how to Activate and use laptop Fingerprint Reader in Ubuntu.

Tested in Lenovo T530


for Further Information Please follow this link https://launchpad.net/~fingerprint/+archive/fprint


Step 1

Add this PPA to your sources:


  sudo add-apt-repository ppa:fingerprint/fprint
  sudo apt-get update
  sudo apt-get upgrade






Step 2

Install the Software:

 sudo apt-get install libfprint0 fprint-demo libpam-fprintd gksu-polkit




Important Note:

If you have experimented with fingerprint authentication before and have changed your /etc/pam.d/common-auth, you may be presented with a screen asking whether you want to override those changes. Select Yes. Under very special circumstances, you may get an error saying

   pam-auth-update: Local modifications to /etc/pam.d/common-*, not updating.
   pam-auth-update: Run pam-auth-update --force to override.

In this case, run “sudo pam-auth-update --force”, exactly as suggested, and enable the fprintd profile manually. Leave the standard system profiles (Unix, Keyring and ConsoleKit) enabled as well.



Step 3

Launch “fprint project demo” and check that you can enroll and verify your fingerprints and that your reader is indeed supported.







Step 4

Run “fprintd-enroll” in terminal to save your fingerprint.


system will request you to enroll the finger  print.




That's All :)

Now lock your screen and unlock by fingerprint reader :)


security Alert 


Image is taken from http://www.navigantresearch.com/research/smart-meter-security

if you consider more about your laptop's data protection, you should disable the guest account otherwise anyone can simply access your computer as a guest and they have read access to your home folder by default.

How to Disable Ubuntu’s Guest Session Account
** Edit following file
sudo vim /etc/lightdm/lightdm.conf

** Append following line under [SeatDefaults]
allow-guest=false

** Reboot the computer or restart your graphical environment by following command
sudo restart lightdm





Upgrade Ubuntu 12.04 to Ubuntu 12.10

This Post will explain, how to upgrade Ubuntu 12.04 to Ubuntu 12.10 in step by step Order.

Author assume that, user currently having 12.04 version in his/her machine.


Step 1

Open up Update manger, you can achieve it by typing "Update manger" in "Dash Home".

Step 2

In the Update Manger, user can find "Settings" Button, Click it.

Step 3

Select "Updates" Tab.




 Step 4

Select "For any new version" option form drop down available in "Notify me of a new Ubuntu version" and close the settings.


 Step 5

Now it is possible to see, New option in "Update Manger". 

Click "Upgrade" in order to upgrade your system to "Ubuntu 12.10"