Friday, July 23, 2010
Wubi has no install inside windows option
Posted by linuxtechie at 2:39 PM 0 comments
Wednesday, July 21, 2010
Using WinMerge with GIT
git config --replace --global diff.tool winmerge
git config --replace --global difftool.winmerge.cmd "winmerge.cmd \"$LOCAL\" \"$REMOTE\""
git config --replace --global difftool.prompt false
Prepare winmerge.cmd as following as it will be used by git. Make sure its in a path:
cat D:\MyDocs\bin\winmerge.cmd
echo Launching WinMergeU.exe: $1 $2
"C:/Program Files/WinMerge/WinMergeU.exe" -e -ub -dl "Base" -dr "Mine" "$1" "$2"
Use git command as :
git difftool
Thats it! Its all set.
Posted by linuxtechie at 11:29 AM 0 comments
Wednesday, June 16, 2010
Ubuntu | Force switch on screen lock and turn off lcd display
gnome-screensaver-command -l && xset dpms force off
Does the job, unless you, audience, can please suggest me better.
Posted by linuxtechie at 9:39 AM 0 comments
Saturday, June 12, 2010
Calculating time difference for reservations using Python
import datetime
# Since I wish to do reservation on 12 Sept 2010
d = datetime.datetime(2010,09,12)
# I can do reservation 90 days before
b = datetime.timedelta(90)
# The day when I can do reservation is
print d - b
Posted by linuxtechie at 11:18 AM 0 comments
Saturday, May 1, 2010
Timex HRM for Sale
Folks,
Selling following:
URL: http://www.amazon.com/gp/product/B000P8VWRC/ref=cm_cr_rev_prod_title
Mail me!
Posted by linuxtechie at 7:41 PM 0 comments
Monday, April 12, 2010
A 3 years old defect!
http://bugs.python.org/issue1731717
Posted by linuxtechie at 10:04 PM 0 comments
Sunday, February 28, 2010
Pidgin | libPurple | Python | Motion | Whacking combination to get instant motion alert!
Posted by linuxtechie at 8:39 PM 0 comments
Friday, February 19, 2010
django and threading :)
A drop in for the threading:
http://github.com/jaylett/django_concurrent_test_server
Also a proxying solution using django:
http://pypi.python.org/pypi/django-http-proxy/
Looks like I am all set with a desired proxy server :)
Posted by linuxtechie at 3:55 PM 0 comments
Saturday, February 6, 2010
SSH Chrooting on Ubuntu 9.10
First thing first, setup sshd so that it allows chroot for a given user as following:
Match User jazz
ChrootDirectory /home/jazz
AllowTCPForwarding yes
X11Forwarding no
Next, make sure the directory /home/jazz is owned explicitly on root and no one else:
chown -R root:root /home/jazz
Next execute following:
cd /home/jazz
mkdir etc
mkdir bin
mkdir lib
mkdir usr
mkdir usr/bin
mkdir dev
mknod dev/null c 1 3
mknod dev/zero c 1 5
Execute following:
APPS="/bin/bash /bin/ls"
for prog in $APPS; do
cp $prog ./$prog
# obtain a list of related libraries
ldd $prog > /dev/null
if [ "$?" = 0 ] ; then
LIBS=`ldd $prog | awk '{ print $3 }'`
for l in $LIBS; do
mkdir -p ./`dirname $l` > /dev/null 2>&1
cp $l ./$l
done
fi
done
Please note apps above can be modified as per needed binaries. In a nutshell all the libraries on which binaries depend must be copied to lib, even those libraries depending on libraries must be copied.
Finally copy library as following:
cp /lib/ld-linux.so.2 lib
If you would like to share files between chroot and otherwise use following:
mount --bind /home/ubuntu/Downloads /home/jazz/Downloads
Ofcourse /home/jazz/Downloads must exist!
There chroot should work!
Posted by linuxtechie at 11:19 PM 0 comments
Thursday, January 28, 2010
Installing Ubuntu without functioning CDROM, Bootable USB Bios
- Assumptions: there is a bootable MBR already present, either though Linux or Windows.
- Get a bootable USB drive and the CD image of the ubuntu distribution.
- Install the CD image on the usb drive using software say: PendriveLinux.Com
- Make sure that software goes fine, else it may crib about some error if the usb drive is not bootable.
- Get a hold of plop boot loader. This guy allows you to boot to USB drive through its boot loader.
- Reboot into plop boot loader and you are good to go!
Posted by linuxtechie at 7:14 PM 0 comments
Smooth, eye catching fonts on linux - using Ubuntu 9.10 - Karmic
Thats pretty good looking font ;)
+LT
Posted by linuxtechie at 7:05 PM 0 comments
Thursday, January 14, 2010
|| प्रार्थना ||
पूजांचैव न जानामि क्षम्यतां जगदीश्वर |
अपराध सहस्त्राणि क्रियन्तेऽहर्निशं मया |
दासोऽयमिति मां मत्वा क्षमस्व परमेश्वर |
पापोऽहं कर्माऽहं पापात्मा पाप संभवः |
त्राहिमां कृपया देव शरणागत वत्सल ||
गतं पापं गतं दुःखं गतं दारिद्रयमेवच |
आगता सुखसंपतीः | पुण्याच्च श्री दर्शनात् ||
Posted by linuxtechie at 9:34 AM 0 comments
Wednesday, January 13, 2010
Accessing X11 through VNC
Create following file /etc/xinet.d/x11vnc as following:
service x11vnc
{
port = 5900
type = UNLISTED
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/x11vnc
server_args = -inetd -o /var/log/x11vnc.log -display :0 -passwd yourpassword -many -bg
disable = no
}
Make sure it has permission set to 600 for security sake. Restart the xinetd daemon and you are good to go.
Posted by linuxtechie at 2:58 PM 0 comments