Sockso is a cross platform music server and requires no installation. It runs on a standalone PC or Server. This guide is for running Sockso on a Server platform, to install and run with a GUI on a PC refer to the Sockso Web site.
Sockso gives you the ability to stream all your music – Supports MP3, OGG Vorbis, Flac and WMA, anytime, anywhere via a web interface through your browser. All that you require is Flash on your client end and a decent internet connection minimum should have at least IEEE 802.11g (54M) Wifi connection for smooth operation.
Sockso requires Sun Java only, no Apache or other web server is require to run.
So, lets start:
1 )
Sockso requires Sun Java to work. You should install the following packages.
sudo apt-get install sun-java6-bin sun-java6-fonts sun-java6-jre unzip
2 )
Download the latest version of Sockso. The current version is 1.2 at the time of this writing.
wget http://sockso.googlecode.com/files/sockso-1.2.zip
unzip sockso-1.2.zip
sudo mkdir /usr/share/sockso
sudo cp -R /home/user/sockso-1.2/* /usr/share/sockso/
sudo mkdir /var/sockso
sudo chmod -R 0755 /var/sockso
Step )
Run the Sockso at command prompt.
sudo sh /usr/share/sockso/linux.sh --nogui --datadir /var/sockso
To add your music collection, enter the directory path for all you music. You can enter multiple paths eg. If you had to different directories with music, /home/user/music and /home/user2/mp3, just run the following command to populate your collection:
#SockSo#>coladd /home/samiux/music
#SockSo#>coladd /home/mary/mp3
To list all collection directory paths, use the following command.
collist
To delete a directory from the collection, use the following command.
coldel
Adding users to Sockso.
#SockSo#>useradd samiux <your_password_here> samiux@gmail.com
To exit the #SockSo#> command prompt.
exit
4)
Copy the init.d script to /etc/init.d/
sudo cp /usr/share/sockso/scripts/init.d/sockso /etc/init.d/sockso.pl
Create a sockso script file.
sudo nano /etc/init.d/sockso
-------- CUT HERE ---------
#!/bin/bash
perl /etc/init.d/sockso.pl $1
exit 0
-------- CUT HERE ---------
Edit the sockso.pl as the following.
sudo nano /etc/init.d/sockso.pl
system( 'sh linux.sh --nogui --datadir /var/sockso > /dev/null 2>&1 &' );
use constant SOCKSO_DIR => "/usr/share/sockso/";
5)
Make the scripts executable:
sudo chmod +x /etc/init.d/sockso
sudo chmod +x /etc/init.d/sockso.pl
Now, you can start the sockso with the following command
sudo /etc/init.d/sockso start
You can also stop the sockso with the following command.
sudo /etc/init.d/sockso stop
To connect to your Sockso Web Interface enter the IP or FQDN of your server.
http://192.168.0.1:4444
6)
To run the script automatically after reboot update the rc.d with.
sudo update-rc.d sockso defaults
Using MySQL as a backend
By default Sockso uses the Java database engine HSQLDB. This provides a nice fast easy way to get a database up and running in an application and works excellently for most uses of Sockso.
With a very large collection you may run into some performance problems and possibly “out of memory” errors when accessing some of the pages. In these cases you have the option of changing the database engine Sockso uses, and for this MySQL support is available.
NB: Sockso requires MySQL 5+
1) Download Sockso’s Optional Components
You will need to install the optional components first to use MySQL.
2) Create the database
You will need to create a MySQL database for Sockso to use. It doesn’t need to have any tables in it, Sockso will create all of these when it starts up, but the database does need to exist.
3) Start Sockso with MySQL
When the database is created, start Sockso with the following command line switches (changing the values to match your set up obviously) which tell it to use MySQL, and the connection information for the database.
$> java -jar sockso.jar --dbtype=mysql \
--dbhost=localhost \
--dbuser=myuser \
--dbpass=secret \
--dbname=socksodb
Sockso will now be running with MySQL.
NB: This will be a completely blank database.
NOTEs :
- Make sure you have stopped the Sockso before reboot or shutdown; otherwise, the mp3 databases would be corrupted. If so, you should delete everything inside
/var/sockso and redo the Step 3.
- · Broadcasting copyrighted music can lead to heavy fines or even lawsuits.
- For more detailed information and questions refer to the Sockso Website http://sockso.pu-gh.com/ or forums http://forums.pu-gh.com/
This is the quick and easy way, compared to going to the Java website downloading then installing etc etc etc.
sudo apt-get install openjdk-6-jre
sudo update-alternatives –config java
java -version
All done
After years of using SME server – I really like SME for its simple but effective package, and Clarkconnect – never again, I decided to take a big step and build a custom server from scratch built on Ubuntu Server 8.10, which turned out to be alot easier than expected. I had all services – File Sharing, SSL, Web server, mysql, FTP and torrent engine (see my torrentflux tutorial) up and running smoothly in about an hour. The only thing that stopped my in my tracks was setting up an email server…..
I searched the net for days reading a number a tutorials all saying something slightly different. I made several attemps to get the all the required applications working together with no success, and eventually gave up. I found that all the tutorials have some niggling problem that none of the forums could workout completel or made dodgy work arounds. Or they just plain didnt work.
So I have devised my own setup, which admittedly is a little more bulky but a hell of a lot easier to get up and running. For all the people that have given up try this.
Firstly, I am running Ubuntu 8.10 server Ed, so I cannot vouch for this elsewhere although it should work on all distros without hitch.
So the quick and simple solution I put together was to create a Virtual machine with VMware2 -a better version for server as it has a web interface ( see my VMware tutorial). With that in place I installed an SME server setup to be only an email server.
This will give up a functioning email with webmail with only a small and easy configuration on installation.
The Next step is to link the two with LDAP…
To be continued.
VMware Server is a proprietary virtualization software package made available for no cost from the VMware website. VMware Server allows you to run entire operating systems in a virtual machine, which run on top of Ubuntu. This guide provides instructions on installing, configuring and running VMware Server and VMware Server Console on Ubuntu. VMware server may be used on Desktop and Server editions of Ubuntu.
Installation and Quick Start
Ubuntu 8.10 (VMWare Server 2.0.0 Build 122956)
There is no package yet available. You can download it athttp://www.vmware.com/go/getserver
- Get a serial number (displayed at the download page link received by email as part of the registration process)
- Download the tar.gz file to your home directory
- Install required packages
sudo apt-get install build-essential linux-headers-`uname -r`
-
Download the required patch athttp://ubuntuforums.org/attachment.php?attachmentid=94477&d=1227872015 and save in your home directory
- Unpack, apply patch and run vmware-install.pl
cd ~
tar zxvf VMware-server-2.0.0-122956.i386.tar.gz
cd vmware-server-distrib
sudo patch ./bin/vmware-config.pl ~/vmware-config.pl.patch
sudo ./vmware-install.pl
-
Follow the settings displayed at your screen and don’t change default values if not necessary. Be sure to add your normal username as VMware Server administrator
- Enter the serial number when prompted
-
Vmware2 has a web interface. Browse with Firefox to http://localhost:8222.
- Log in with your normal username and password
Note: You can also access the web interface via SSL at https://localhost:8333. You will probably need to add this site to your SSL Exception sites on your browser.
Installing VMware Tools inside your virtual machines can improve their performance. For information about speeding up your Ubuntu virtual machines see VMware/Tools
I had issues with my adsl router so I installed the DynDNS update client “ddclient” on my CC server. I have my CC server set up in standalone mode, not gateway mode, and it still works fine.
Obviously you will need a DynDNS account and a Linux server. I can also say that this method works on an Ubuntu and SME server install.
So lets start:
ssh into you server using your favourite ssh client and enter the following:
Code:
$ wget http://downloads.sourceforge.net/ddclient/ddclient-3.7.3.tar.gz
$ tar zxvf ddclient-3.7.3.tar.gz
$ cd ddclient*
$ cp ddclient /usr/sbin
$ mkdir /etc/ddclient
The config to ddclient is straight forward and simple,
but why not get DynDNS to do it for you:
Log into DynDNS.com > Support > DNS Tools > Update Client Configurator>
Have it create the config text for ddclient.
Copy this text onto clipboard. Then, in the Putty window, do:
Code:
$ nano /etc/ddclient/ddclient.conf
Paste the clipboard, (shift + insert) find the DynDNS account password replace the ##password##,
Save with crtl+o then <enter>
Exit with crtl+x.
Then type:
Code:
$ ddclient -daemon=0 -query
$ cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
$ /sbin/chkconfig --add ddclient
Now use winscp and create the folder: /var/cache/ddclient
and test with:
Code:
ddclient -daemon=0 -debug -verbose -noquiet
The output from this will tell you all you need to know
There you go your regular updater for a Dynamic IP address