Start your own music personal server with Sockso on Ubuntu Gutsy 7.10 Linux

October 28, 2007

Run a server to share your music with friends is possible with Sockso. Sockso is a little software opensource written in java. It is multi platform and only requirement is java installed and enabled in your Linux or Ubuntu Desktop.
Sockso management is very simple because it provides GUI (Graphical User Interface), so is possible to setting up which music folder you want share.
Also, to make possible sharing with your friend, Sockso give you its web interface that starts on TCP 4444 port, so every friend can browse your files.

Sockso


In Sockso there is a support for MP3, OGG Vorbis and WMA formats. Trough its web interface you can play selected music with integrated flash music player. You can see songs stats as listened top songs and other many stats features.

Last released version 0.8.3, include the possibility to disable downloads of songs and its new feature is GZIP compression of the content, so we have a web interface fastest.

Sockso Download: http://sockso.pu-gh.com/downloads/

After you download Sockso, you can start it by shell using: sh linux.sh
If you want start is on a server without Graphical User Interface: sh linux.sh -nogui

Is possible that when you try to start sockso in your Ubuntu Gutsy 7.10 you have this problem:

Main: Initializing Resources (jar,en)
Exception in thread “main” java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.81)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(libgcj.so.81)
at java.awt.Window.<init>(libgcj.so.81)
at java.awt.Frame.<init>(libgcj.so.81)
at java.awt.Frame.<init>(libgcj.so.81)
at javax.swing.SwingUtilities$OwnerFrame.<init>(libgcj.so.81)
at javax.swing.SwingUtilities$OwnerFrame.<init>(libgcj.so.81)
at javax.swing.SwingUtilities.getOwnerFrame(libgcj.so.81)
at javax.swing.JWindow.<init>(libgcj.so.81)
at com.pugh.sockso.gui.Splash.<init>(Splash.java:23)
at com.pugh.sockso.gui.Splash.start(Splash.java:42)
at com.pugh.sockso.Main.main(Main.java:96)
Caused by: java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so: impossibile aprire il file oggetto condiviso: Nessun file o directory
at java.lang.Runtime._load(libgcj.so.81)
at java.lang.Runtime.loadLibrary(libgcj.so.81)
at java.lang.System.loadLibrary(libgcj.so.81)
at gnu.java.awt.peer.gtk.GtkToolkit.<clinit>(libgcj.so.81)
at java.lang.Class.initializeClass(libgcj.so.81)
at java.lang.Class.forName(libgcj.so.81)
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.81)

Java runtime installed in many Linux Distribution as Ubuntu Gutsy 7.10 not is the SUN Java Runtime because this last runtime is “non-free” software. In fact if you try by shell: java –version , you can see…

java version “1.5.0”
gij (GNU libgcj) version 4.2.1 (Ubuntu 4.2.1-5ubuntu5)

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

To solve this problem in Ubuntu Gutsy 7.10 you need to install SUN Java Runtime: apt-get install sun-java6-jre

To show if you have the correct Runtime installed you need to run: java -version :

java version “1.6.0_03”
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

Ok! Now you can start your Sockso Music Personal Server. Enjoy with Linux and Sockso!

Related Post