Encrypt IM's
Posted by Sharar Ravitz in Encryption, im, instant messaging, twitter on Tuesday, June 16, 2009
Users of Debian based systems can apt-get install pidgin pidgin-otr libpurple-dev
First a good multi-protocol client. Pidgin is a chat client that can connect to Google Talk, MSN, Yahoo, Aol, facebook, myspace, and even now - twitter.
http://www.pidgin.im/
Using the off-the-record messaging add on, we can encrypt instant messages
http://www.cypherpunks.ca/otr/
and now with the new libpurple-twitter-protocol - we can chat with twitter friends
http://code.google.com/p/libpurple-twitter-protocol/
The OTR encryption plugin works with included protocols - but not with the facebook and twitter ad-ons. The Twitter ad-on does offer SSL, and the ability to direct through a standard proxy. Facebook im's can be directed through a standard proxy also.
Encrypt and sign your emails
Posted by Sharar Ravitz in Email, Encryption on Tuesday, May 12, 2009
using gpnupg public key cryptography to encrypt and sign email
The way public key cryptography works is you generate a key and upload it to a public key server. Someone wishing to send you an encrypted email or verify your email signature downloads your public key from the key server. To send someone an encrypted email, you'll need their public key.
This example uses my public key, replace with your own after generating it in step one. On Debian based systems:
Generate a gpg key:
gpg --gen-key
Enter your email address, and a password. System defaults will work for other options.
To list all keys:
gpg --list-keys
Add your key to bashrc by opening ~/.bashrc in a text editor and adding the line:
export GPGKEY=7890D0B4
Upload your public key to public keyservers:
gpg --send-keys --keyserver keyserver.ubuntu.com 7890D0B4
gpg --send-keys --keyserver wwwkeys.eu.pgp.net 7890D0B4
Another user can retrieve your key with the command:
gpg --keyserver keyserver.ubuntu.com --recv 7890D0B4
For browser webmail based encryption try the firegpg firefox extension. For Thunderbird/Iceweasel - apt-get install enigmail. A more detailed gnupg guide is here.
Quick and dirty postqresql commands
Posted by Sharar Ravitz in Postqresql
Want to make use of a postqresql database, say for speeding up Amarok? Here's a few quick and dirty commands.
Set the password for the postgres user (replace password with your password):
Add a system user (replace user with your system user name):
sudo -u postgres createuser -D -A -P user
Create a database (replace user with your user name and database with your desired database name):
sudo -u postgres createdb -O user database
Remove a database (replace database with the name of the database you wish to remove):
sudo -u postgres dropdb database
SSH server
Posted by Sharar Ravitz in SSH, SSH proxy, SSH server
Want an SSH server running on your machine for remote access or proxy? (like breaking out of your corporate firewall to listen to net radio).
Setting up an SSH server for remote access or proxy is easy. Install the server:
apt-get install openssh-server
edit the conf file - /etc/ssh/sshd_config - if you want to change any default options, such as port settings.
Restart the SSH server after editing:
/etc/init.d/ssh restart
log in via: ssh username@domain - to use as a proxy log in via dynamic port: ssh -D 9999 username@domain then point your browser/app to socks 5 proxy, localhost port 9999
If you do not have a static IP on your home machine, you'll need dynamic dns - a service which providers you a domain, for example: mydomain.twilightparadox.com and then using your router software or a software client for your machine updates your ip address as it changes. One such free service can be found here.
Security can be added via the hosts files, and using denyhosts. Denyhosts adds an entry to /etc/hosts.deny after a variable number of failed login attempts. You'll first want to add localhost and any other ips which frequently log in via SSH to /etc/hosts.allow with an entry like so:
sshd: 127.0.0.1
You can add ranges also:
sshd: 192.168.0.1/24
Ninvaders - Linux terminal space invaders clone
Posted by Sharar Ravitz in Linux, Terminal Based Games on Saturday, May 9, 2009
ncurses based spaced invaders clone for your linux terminal. Fun! Debian users can apt-get install ninvaders. Others see here: http://ninvaders.sourceforge.net/
The cray-cyber.org Computer Museum
Posted by Sharar Ravitz in Cray, Supercomputers on Saturday, March 21, 2009
"Occasionally I feel nostalgic and want to log into an old supercomputer. The guys at cray-cyber.org have a great collection of older machines that they keep powered up for the general public to explore. Not all machines are kept powered up 24/7 but its a rare chance to get access to very uncommon machines.
Among their collection is a Cray Y-MP EL, a SGI Origin 2000, a Sun Enterprise 10,000 and a number of other Control Data Cyber, NEC and Cray supercomputers. In addition to their extensive collection of working older machines connected directly to the internet is a wealth of documentation and photographs of these historic machines..."
Taken from: robertbchase.blogspot.com
Network proxy using privoxy and tor
Network proxies can be useful. Maybe you want private browsing or proxied IM connections. Maybe you'd like to filter ads for your entire LAN including browsers without adblock support. All this and more can be accomplished using privoxy and
tor.
On Debian based systems: apt-get install privoxy tor
Take a look at /etc/privoxy/config - you need to set a listen address for you LAN and/or your ip in place of domain.org for remote access. You may want to adjust email address and hostname also. Here's a sample config file.
For additional privacy, we can forward connections from privoxy to tor. Add this line to the privoxy config file (be sure to include the trailing . ):
forward-socks4a / 127.0.0.1:9050 .
It's already been added at bottom in the sample privoxy file. This assumes you set tor to run on localhost port 9050 - which is the default. Restart privoxy after making any changes:
/etc/init.d/privoxy restart
Point any program on the LAN (or outside network if enabled) to the ip/domain and port privoxy runs on, http proxy. In the provided example this is:
192.168.0.1:8118 or for remote access domain.org:8118 (obviously you'll need to adjust domain.org to your ip)