Pages

Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Monday, May 27, 2013

Ubuntu: youtube downloader

 

 

To download youtube videos or any embedded videos from websites,

  1. Install firfox if you don't have it on your system.

  2. open firefox web browser

  3. go to Tools->Add Ons

  4. search for video downloadHelper

  5. the "video downloadHelper" add on will appear in search results.

  6. install the add on.

  7. restart the firefox.

  8. open youtube.

  9. click on some video.

  10. to the left of address bar in firefox, you will see one animated bubbles playing, which means the particular website has an embedded video to download.

  11. click on it and download the video.

  12. DONE.

Wednesday, December 19, 2012

configure exchange global address book on thunderbird 17


steps:


  1.   on thunderbird, go to Tools->address book
  2. a new window pops-up. go to File->New->LDAP Directory
  3. a new small window pops up.
  4. name =
  5. hostname = check in outlook. Else, most probably if your mail server is ..com, your hostname for address book will be .com
  6. BASE DN = dc=y,dc=com
  7. port number = 3268 ( default port 389 did not work for me)
  8. bind DN = domain\username
  9. do not check "use secure...."
  10. click OK
  11. right click on the address book you have created, click properties, go to 'offline' tab
  12. click "Download Now"
  13. you should get a 'replication succeeded" message.
  14. To test, compose a mail. go to view->contacts sidebar
  15. type some half name in search bar that it shows. suggestions should pop up. Now its working for you!.
  16. If you would thunderbird to auto-search names form global address book while you type name in "To" list, go to edit->preferences->composition->addressing, check "Directory server" option and chose the global address book that you just created from the drop down menu. click OK.
  17. now open a new mail window, start typing some name, observe suggestions that thunderbird shows up!!! Works wonderfully! 


Thursday, December 13, 2012

vim open remote file via ssh


command:

vim scp://userid@remotePc//path/to/file

this command will prompt for password on

grep for multiple strings


command:

grep "string1\|string2\|string3"

gdb debug with different library path


$ gdb
(gdb) set solib-absolute-prefix ./libdir
(gdb) file ./a.out
(gdb) core-file ./a.core

Monday, December 10, 2012

linux: execute particular history command

suppose you want to execute a particular command out of N history commands:

$history

...
...
...

1992  pwd
 1993  clear
 1994  cd foo
 1995  ls
 1996  ./a.out
 1997  ls -als <<== if you want to execute this command, run "!1997 " on terminal
 1998  ssh bar
 1999  ping bar
  2000  history
$!1997


Tuesday, November 20, 2012

sed search lines and comment out or uncomment



comment out..


             sed '/pattern/s/^/#/' 

uncomment out...
             sed '/pattern/s/^/# *//'

Wednesday, November 7, 2012

Friday, November 2, 2012

Monday, September 3, 2012

ubuntu tip: show tty console instead of GUI login

press ctrl+alt+F1 once ubuntu booted showing login prompt to switch to tty console.

Ubuntu tip: show hidden files in folder window ubuntu

Ubuntu tip:
to show hidden files in the folder window graphically, press ctrl+h on the folder window

Thursday, July 12, 2012

shell IF statements


shell script, IF evaluate conditions:



Expression
Description
-d file
True if file is a directory.
-e file
True if file exists.
-f file
True if file exists and is a regular file.
-L file
True if file is a symbolic link.
-r file
True if file is a file readable by you.
-w file
True if file is a file writable by you.
-x file
True if file is a file executable by you.
file1 -nt file2
True if file1 is newer than (according to modification time) file2
file1 -ot file2
True if file1 is older than file2
-z string
True if string is empty.
-n string
True if string is not empty.
string1 = string2
True if string1 equals string2.
string1 != string2
True if string1 does not equal string2.



Thursday, June 14, 2012

terminator; terminal for developers

terminator is an alternative for your putty on widows or gnome terminal on ubuntu/linux.

short tut on using it..


  • Ctrl-Shift-E: will split the view vertically.
  • Ctrl-Shift-O: will split the view horizontally.
  • Ctrl-Shift-P: will focus be active on the previous view.
  • Ctrl-Shift-N: will focus be active on the next view.
  • Ctrl-Shift-W: will close the view where the focus is on.
  • Ctrl-Shift-Q: will exit terminator.
  • F11: will make terminator go fullscreen.