skip to main |
skip to sidebar
RSS Feeds
Nope. nothing .. just some random thoughts come to my mind ...
Nope. nothing .. just some random thoughts come to my mind ...
9:34 PM | Saturday, May 18, 2013
Posted by harshadura

sudo suecho 11 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio11/directionecho 1 > /sys/class/gpio/gpio11/valueecho 0 > /sys/class/gpio/gpio11/value
echo 11 > /sys/class/gpio/unexport 9:20 PM | Tuesday, June 12, 2012
Posted by harshadura
wget on each server:$ wget http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm
After launching the command, the server redirects me to a 5K HTML file:Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
WAIT, WHAT? I can’t download the file if I don’t visit their download page to accept the OTN license.Request URL:http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm
Request Method:GET
Cookie:s_nr=some_integer; s_cc=true; gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk-7u3-download-1501626.html; s_sq=%5B%5BB%5D%5D
Okay, trying to play with cookie values (I deleted the useless values):$ wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk-7u3-download-1501626.html;" http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm
--2012-04-12 18:47:58-- http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm
Resolving download.oracle.com (download.oracle.com)... 24.29.138.48, 24.29.138.40
Connecting to download.oracle.com (download.oracle.com)|24.29.138.48|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm [following]
--2012-04-12 18:47:59-- https://edelivery.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm
Resolving edelivery.oracle.com (edelivery.oracle.com)... 2.18.222.174
Connecting to edelivery.oracle.com (edelivery.oracle.com)|2.18.222.174|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm?AuthParam=THEIR_AUTHPARAM [following]
--2012-04-12 18:48:00-- http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm?AuthParam=THEIR_AUTHPARAM
Connecting to download.oracle.com (download.oracle.com)|24.29.138.48|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 67667318 (65M) [application/x-redhat-package-manager]
Saving to: `jdk-7u3-linux-x64.rpm'
Fuck Yea.gpw_e24, I think it’s a kind of referer. As for me, I’m using the download page URL.BY SELECTING THE “ACCEPT LICENSE AGREEMENT” (OR THE EQUIVALENT) BUTTON AND/OR BY USING THE SOFTWARE YOU ACKNOWLEDGE THAT YOU HAVE READ THE TERMS AND AGREE TO THEM.Enjoy it!
8:28 AM | Monday, June 11, 2012
Posted by harshadura

ironhide-configuration - Initial configuration ironhide-settings - Lots of different settings ironhide-bugreport - Bug Report Utility ironhide-submitsystem - Utility to submit working system infomation
7:03 AM | Thursday, May 24, 2012
Posted by harshadura
sudo apt-get install linux-generic-pae linux-headers-generic-pae
sudo reboot now
I had the same problem, and after installing the linux-generic-pae and linux-headers-generic-pae my Ubuntu shows the whole 8GB I have available.8:30 PM | Saturday, March 17, 2012
Posted by harshadura
Have you wondered why certain programs are located under /bin, or /sbin, or /usr/bin, or /usr/sbin?
For example, less command is located under /usr/bin directory. Why
not /bin, or /sbin, or /usr/sbin? What is the different between all
these directories?
In this article, let us review the Linux filesystem structures and understand the meaning of individual high-level directories.
12:28 PM | Wednesday, January 18, 2012
Posted by harshadura
I'm having a really annoying problem on my Ubuntu laptop.
I noticed it today, after upgrading to Ubuntu 11.04, although I'm not
entirely sure this is the cause as I played with my ssh keys a few days
ago.
The problem is, whenever I try to ssh to ANY host I get the following error:
Read from socket failed: Connection reset by peer
sudo vim /etc/ssh/ssh_config
Host *
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
5:55 PM | Sunday, December 25, 2011
Posted by harshadura
Just type in Bash.
sudo apt-get install ttf-sinhala-lklug ibus im-switch ibus-m17n m17n-db m17n-contrib language-pack-si-base
10:50 AM | Tuesday, December 20, 2011
Posted by harshadura
If you are like me and like developing in Linux, then you will find
this guide useful. When I was setting up everything for my Android
development, I ran into the problem that Linux was not recognizing my
Android phone, and took me some time figuring out how to make Linux
recognize my phone. Finally, after some research I was able to put this
little guide together and decided to share it with the rest of the
world.
ADB (Android Debug Bridge) is a handy tool that comes with Android
SDK that allows you to control and interface with your Android device.
Update: 02/04/11 – HTC changed its Vendor ID, older phones have different ID than newer phones. Refer to USB Vendor IDs table at the bottom of this tutorial to see the change.
Update: 01/02/11 – By mistake I had linked the ADB tool for OSX in step 3.1. Now it should be the correct one for Linux.
IMPORTANT Update 12/11/10 – There has been a change to
the new Android SDK. ADB Tool has been moved to
/android-sdk-linux_x86/plataform-tools, so if you have the old SDK,
please download the new one and update your path (Step 9.2 of this
tutorial). If this is your first time doing this, then disregard the
update and continue with the tutorial.
Update: 09/21/10 – Working code with Ubuntu Lucid Lynx and added more USB vendor IDs.
sudo gedit /etc/udev/rules.d/##-android.rules then enter your passwordadb devices in a terminal window with your phone plugged in.adb devices gives you a “no permissions” error, try typing the following in terminal
adb kill-serveradb start-server| Manufacturer | USB Vendor ID |
|---|---|
| Acer | 0502 |
| Dell | 413c |
| Foxconn | 0489 |
| Garmin-Asus | 091E |
| HTC (Older Phones) | 0bb4 |
| HTC (Newer phones) | 18d1 |
| Huawei | 12d1 |
| Kyocera | 0482 |
| LG | 1004 |
| Motorola | 22b8 |
| Nexus One/S | 18d1 |
| Nvidia | 0955 |
| Pantech | 10A9 |
| Samsung | 04e8 |
| Sharp | 04dd |
| Sony Ericsson | 0fce |
| ZTE | 19D2 |