At times, for people like me who use a heterogeneous set of packages, it becomes necessary to put certain packages on “hold” so that nothing breaks.
The plain dpkg way of putting packages on hold is very very simple.
I’ll be taking a package named “foo” as an example. Here are the steps:
**pre >1) dpkg –get-selections foo > selections.txt
**
This will give you the package and its state on your system.
[Read More]
New SSH Session in Konsole
Some quick steps to create an Option for “New SSH Session” under Konsole which includes keychain and ssh-agent for password-less ssh logins.
I’m using a Debian system but majority of the steps should be common across all distributions.
Install keychain and openssl-client programs (ssh-agent is part of openssl- client package under Debian)
rrs@laptop:~ $ apt-get install keychain openssl-client
Add the following lines to your .bashrc file
For SSH For now I’m gambling the linux session for ssh-agent.
[Read More]
POP3 SSL && Fetchmail
Small HOWTO on configuring POP3 SSL with Fetchmail.
Here I assume that the server’s SSL certificate is a Self Signed Certificate
openssl s_client -connect mail.logicalwebhost.com:995 -showcerts
Execute this command to fetch the details of the server and also the certificate.
The output will be something like below: rrs@laptop:~ $ openssl s_client -connect mail.someserver.com:995 -showcerts
CONNECTED
depth=0 /C=US/ST=CA/L=San Jose/O=Some Internet Hosting Services/OU =Automatically-generated POP3 SSL key/CN=mail.somehost.com/emailAddress=postmaster@researchut.com
verify error:num=18:self signed certificate
verify return:1
[Read More]
Python Fun
Just think what all this small piece of code can do
while x <= 100:
… temp = urllib2.urlopen(address+prefix+str(x)+suffix)
… data = open(prefix+str(x)+suffix, ‘wb’ )
… data.write(temp.read())
… data.close()
… temp.close()
… x +=1
An Eyeful a Day Keeps the Doctor Away
Now I understand, why even though staring carelessly for the past 5 years, my health has not gone bad.
Staring at women ’s breasts is good for men’s health and makes them live longer, a new survey reveals.
Staring at women’s breasts is good for men’s health and makes them live longer, a new survey reveals. Researchers have discovered that a 10-minute ogle at women’s breasts is as healthy as half-an-hour in the gym.
[Read More]
*nix fun
#!/bin/sh
if ! [test -f /dev/chick] echo “Forgetting something?” exit 1;
fi
mv /dev/chick ~/bedroom
touch chick/breasts
unzip chick/dress
rm -f chick/bra chick/panties
clamscan chick/*
rm ~/pants
cat ~/penis » chick/mouth
cat chick/mouth | grep -v cat ~/penis > chick/mouth # To take it out…
cat ~/bedroom/nightstand/condom » ~/penis
mount ~/bedroom/chick
fsck && fsck && fsck
umount ~/bedroom/chick
while [ -f ~/bedroom/chick ]; do sleep 5
done
… but this is from the guy who has /dev/acd0 symlinked to /dev/chick so he can giggle every time he uses his cdrom
[Read More]
A general weekly life
How has your life been going ?
Ever asked this question to yourself. Do you ever feel yourself lonely;
missing ?
Two days of the weekend “silenced” being ended up with Sci-Fi movies and Mugs
of Beer at a dark cosy Peecos.
Does it mean life ? Oh! Yes. No dependencies, no nothing. Just bindaas
Kernel Prayer
Our kernel who art in the protected memory areas hallowed
be thy interfaces (syscalls). thy init(8)/init(1M) come.
thy will (memory protection and processes scheduling) be
done on the userspace as it is done where thou reside.
and give us our regular time quanta and forgive us our
memory trespasses (violations) as we forgive to the
meatware (and the software developers). and lead us
not into a fault but deliver us from the SIGSEGV.
[Read More]
Who says GUI Programming in shell is difficult ?
Today, I wanted a quick utility to help me enter passwords for encfs during mount.
I was looking for something plain, simple and userfriendly.
At the end I ended up to use the shell for it.
Yes, using dialog/Xdialog you can be a GUI programmer in minutes.
If the text is scrambled, you can download the script here.
Cheers!
#!/bin/bash 1. encfsmount - A simple frontend for encfs 2. (C) Ritesh Raj Sarraf July 2005 1.
[Read More]
Duniya Maange US, US maange us
This is one good article I always like to read and recommend. It’s about “Why really do the Americans want Indians so desperately” detailed by an American.