Taking SF.net out for a stroll

SourceForge.net (part of Geeknet, Inc.) is a web-based source code repository. It acts as a centralized location for software developers to control and manage open source software development. (source: Wikipedia)

(I plan to share my views and learning each day)

Day 0:

I am a member since 2008-06-19 01:05:49 PDT

(back in our college days our Wifi’d campus never allowed us to move past the registration page)

Thanks to this habit of mine, to register everywhere I see a signup page (not really!), all I had to do was to recover my account. Feels nice to have a userid without random or less-random and more unnecessary numbers attached to it. Tip: Register Early. I fear the day when parents would first check the availability of a decent GMail Id before giving their baby a name. [CREEPY] Ah! off track already.

Day 1:

My first (SUCCESSFUL attempt at creating an) opensource project. I named it FileRefresh (pretty lame. I know! But it looks good. Works Well)!

While checking the services tab in account link, I saw my favorite word – SSH (of course after Java).

SF.net lets you temporarily create a SHELL on their server to manage the data remotely using Putty or OpenSSH.

So I tried to connect using a terminal on my Ubuntu.

You may create a Public/Private key pair and save your Public Key in the SSH link.

SSH Public Key Upload

SSH Public Key Upload

// After one time passphrase authentication SSH wouldn’t ask me for my password now.

$ ssh mrdigerati@shell.sourceforge.net
Logging in to your interactive shell…
You don’t have an active shell at this time.
// no interactive shell was found.

// Lets create one

$ ssh -t mrdigerati,FileRefresh@shell.sourceforge.net create

Requesting a new shell for “mrdigerati” and exiting when it is ready.
queued… creating… starting…

// Login again

$ ssh mrdigerati@shell.sourceforge.net
Logging in to your interactive shell…
This is an interactive shell created for user mrdigerati,filerefresh.
Use the “timeleft” command to see how much time remains before shutdown.
Use the “shutdown” command to destroy the shell before the time limit.
For path information and login help, type “sf-help”.

// Logged in

[mrdigerati@shell-22005 ~]$ timeleft
Time remaining before shutdown: 239 minutes.

The Interactive Shell supports the following features:

  • SSH shell access to project content; access to data for other users and projects not provided
  • Comprehensive set to command line tools
  • 4 hour shell life – shells are automatically terminated after 4 hours. [True Story]
  • Password or SSH keys authentication
  • CVS repository administration

System info:

$ cat /etc/issue
CentOS release 5.6 (Final)
Kernel \r on an \m

$ uname -a
Linux shell-22005 2.6.18-238.19.1.el5.028stab092.2 #1 SMP Thu Jul 21 19:23:22 MSD 2011 x86_64 x86_64 x86_64 GNU/Linux

$ free
total       used       free     shared    buffers     cached
Mem:       1048576      41392    1007184          0          0          0

$ cat /proc/cpuinfo


Intel(R) Xeon(R) CPU           E5345  @ 2.33GHz

commands which work:

links (console based browser)

zip unzip




Tinkering around:

>> Send Real Emails (Do not SPAM).

$ mail -v -s “This is the subject” nikunjlahoti@email.com
This is a message.
Cc: nikunjlahoti@server.com

// -v : verbose and you get to see how the mails are delivered.

>> Ubuntu One Files >> Files.rename


// Download on the file Server First. Zip/Change extension. FTP to your machine.

// This can let you store/download almost every file type (even those filtered by the proxy)

>> Setting up a Static Website

SFTP to /home/user-web/mrdigerati/htdocs/

CentOS 5.x Linux, running Apache 2.2.x

set your own pages. HTML/Perl/Python/Ruby/TCL/CGI/PHP

URL = http://mrdigerati.users.sourceforge.net/

(JSP (programming language) isn’t supported)

>> installing Java

// Java wasn’t installed by default

// Luckily we could download it from http://java.com/en/download/linux_manual.jsp on the server itself.

$ links http://java.com/en/download/linux_manual.jsp

// press enter on the download x64 button

$ unzip to <directory>

Set Environment Variables or use relative paths.

export PATH=$PATH:/bin

export JAVA_HOME=<directory>

>> Setting up Tomcat

// Downloaded from http://tomcat.apache.org/download-70.cgi

$ links http://tomcat.apache.org/download-70.cgi

// Download the Core Zip.

// Unzip and go inside. inside bin, do

$ chmod u+x *

$ ./startup.sh

$ ps -ef

(to check if Java Process is running)



>> Putty Export Display on Cygwin

// Couldn’t find any app of which display would be created. (absence of Firefox, Nautilus, Konqueror etc)

// I tried to download XClock but that needed ROOT permissions to be installed using `yum`.

>> So I tried a JAVA Swing program.

// Didn’t work either.

$ ./programs/jre1.6.0_29/bin/java HelloWorldFrame
Exception in thread “main” java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.

// Setting display

$ export DISPLAY=localhost:10.0

$ ./programs/jre1.6.0_29/bin/java HelloWorldFrame

lib/amd64/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory

// not finding xorg-x11-libs packages

>> Configuring Tomcat to work with Apache HTTP Server.

// Root access would again be required.

// TODO next day.

I must get some sleep now.


SF.net can be used by beginners to enthusiasts to polish their Linux Skills (all they need is a Windows Computer + Putty + Internet)



Using repositories & Apps.

GIT, CVS, Mercurial, SVN.

2 thoughts on “Taking SF.net out for a stroll

  1. You really worked hard last night dude ….. this is what kept you awake the whole night . Good work and a dedicated one too :).
    I liked the ‘find the name compatibility thing at gmail’ ;-).

    And i came up with doubt too, okie we can send the mail from commant promt but can we attach a file too ?? and hpw about chatting ??

    Keep up the good work 🙂

    • 🙂 Thanks Vartika. I have this OCD that everyone knows about. Well I started the blog sometime around 1 and in an hour I realized that if I leave it in drafts, then it is going to stay there forever (yes! I am telling from my experience). Hehe.. now I even can associate reasons with my compulsion… another feather in my cap.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s