Posts

Showing posts with the label linux

Headless Chrome/Firefox Selenium Java in Amazon EC2

Setting up chrome/firefox in linux based x86_64 EC2 instance In this post we'll see how to setup chrome/firefox in EC2 instance. Further we'll discuss the way to setup chromedriver with selenium [java] in EC2 instance aswell. Why is that difficult? Linux based EC2 instances lack gtk+ , which is a must to launch any GUI enabled applications. How to solve? Compile gtk+ from source. This gist by joekiller has the complete dependency tree resolved for installing gtk+ for x86_64 machines. Line 77 Basically installs firefox from its tarball. You can comment it out incase if you don't wish to. Incase Line 42 fails. Do a wget for direct tarball from here , instead the complex recursive wget. For Ex: wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/linux-x86_64/en-US/firefox-18.0.2.tar.bz2 So, All done? Nopes, Now we can't run either of the browsers as we lack X11 server which does graphics operations & screen outputing. As our envir...

Ubuntu 11.10 Bluetooth Issue & Exploration

Command Line Bluetooth Transfer This blog talks about the way to mount bluetooth enabled mobile phone for file transfer via obexfs and also a very nice way to transfer files without a GUI using sdptool & ussp-push Don't forget the power of sudo whenever you get any permission denied error ;) Since I had upgraded my ubuntu version from 11.04 to 11.10. I never succeeded in sending files via bluetooth to my mobile phone. And finally the day has come, I Googled for the error that I use to get while trying to send files via bluetooth "Permission Denied (13)" and landed Here From there I got redirected to Launch pad where I found many people reporting the same issue. I got a chance to know some decent amount of distinct phone models too ;) And I got him & HEEEE was the Guy whom I was looking for. Also The issue with 11.10 can be resolved by upgrading your blueman service too via ppa I just tried his way $ sudo apt-get install obexfs $ hci...

Abt Some Linux Commands

Interesting Linux Terminal Commands Notation => | - Cursor CTRL + w = Delete a word of the command typed Ex: $ echo this is a line| $ echo this is a |[After ^w] CTRL + b = Move the cursor one character left[Backward] Ex: $ cat filename| $ cat filenam|e CTRL + a = Move to the start of the command [Equivalent to Home] Ex: $ cat filename| $ |cat filename CTRL + u = Clear the command from the cursor's point Ex: $ cat file1 |file2 $ file2 CTRL + r = Reversed search, Searchs for the pattern in the commands entered in the past and displays one after another continuously [Last entered command first] CTRL + e = Move to the end of the command Ex: $ cat |file1 file2 $ cat file1 file2| !! = Executes the last entered commmand !$ = Returns the last argument of previously entered command Ex: $ mkdir /home/user/temp $ cd !$ !pattern = Executes the last command with this pattern !pattern:p = Prints the last command with this pattern instead exec...