Category Archives: RootBSD

Plan Upgrades

Date published: January 16th, 2008
Posted in Announcements, RootBSD | No Comments »

We have made disk space upgrades on the two lowest (and most popular) VPS Plans:

  • Iota VPS ($19.97/mo) is upgraded from 5GB disk to 10GB disk
  • Lambda VPS ($29.97/mo) is upgraded from 15GB to 20GB disk

All customers that are currently on either of these plans will see the upgrade immediately.   Enjoy!

 

Streaming Music with Icecast and Musicpd

Date published: January 3rd, 2008
Posted in Apps, RootBSD | No Comments »

Streaming music on FreeBSD can be very easy with the right applications. I will be outlining how to stream music using the Music Player Daemon and Icecast.

Unfortunately for some reason the Music Player Daemon (mpd henceforth) is set up to not compile with support for libshout which is needed for it to play with Icecast. Luckily as long as you have libshout (/usr/ports/audio/libshout) installed getting mpd to install with support for it is fairly simple. Navigate to /usr/ports/audio/musicpd and open up the Makefile in your favorite editor. Somewhere around line 40 should be a line that reads ‘CONFIGURE_ARGS= –disable-shout’, change this to read ‘CONFIGURE_ARGS= –enable-shout’ and it should compile just fine. Why this option is explicately disabled I do not know but hopefully it will be fixed in the near future. If you go poking around in the Makefile and aren’t able to fine the line to change they may have already fixed it.

Anyway, install musicpd now followed by Icecast (/usr/ports/audio/icecast2). I also installed phpMp, a web interface for mpd to manage the stream and playlists. It can be found in /usr/ports/www/phpmp. After everything is installed go to /usr/local/etc/ to do the configuring. Along with this post are two example configuration files, mpd.cond and icecast.xml for their respective applications. In my mpd.conf I have created a user to place all the required files under. If you use the web interface this users home directory will really only have a database file used by mpd in it along with a log. If you wanted you could create a public_html for the user and run phpMp out of it. In the configuration file for mpd you will need to update the paths if they are different, the stream name if you so desire, and connection information for Icecast (host, port, password). The password and other connection details you choose should be specified the same in icecast.conf. Working from the top down in icecast.xml you should first change/specify the source and relay passwords under authentication (the one used for mpd should also be used here), the administrative username and password, the hostname for the server, and the port to run on. Unless you need to change logging information the rest should be alright.

Edit /etc/rc.conf and add the lines ‘icecast_enable=”YES”‘ and ‘musicpd_enable=”YES”‘. Then do ‘/usr/local/etc/rc.d/icecast start’ followed by ‘/usr/local/etc/rc.d/musicpd start’. If Icecast started correctly you should be able to load the status page at http://hostname:portnumber. Once you have verified that Icecast is running correctly test mpd by executing ‘mpc add <some>’ and then loading /stream.ogg from Icecast. If you can hear the music playing then congratulations, you have properly set up Icecast and musicpd.Musicpd Configuration
Icecast Configuration

FreeBSD Mirror

Date published: September 28th, 2007
Posted in FreeBSD Jails, RootBSD | No Comments »

A few weeks ago we set up a local cvsup mirror for FreeBSD at mirror.rootbsd.net that is updated every 12 hours and can be accessed by any RootBSD customers. As part of our set up process we install the most recent version of the ports tree to the new systems but you will most likely wish to update your ports tree and installed ports from time to time. To you can easily do this from the command line by executing the command,

csup /usr/share/examples/cvsup/ports-supfile

Our servers are now preconfigured to automatically use our local mirror but, if you received your server/VPS before the mirror was established you will have to add the option “-h mirror.rootbsd.net” to the above command. This will generate a lot of output which you can supress with a -L 0 to the command. It should take only a minute or so and once it returns your ports tree is fully updated.

Welcome to RootBSD Blog

Date published: September 12th, 2007
Posted in RootBSD | No Comments »

You have found the blog of RootBSD – a BSD-centric hosting service. We will be bringing you valuable insight into our top-secret hosting operations.

telco2

So anyway, stay tuned to important cool stuff.