The Manual Way:
based on mails from chrisandMatt:
EITHER – from a base install ofubuntu studio (8.04) (which has all the low latency and realtime stuff by default, and also contains loads of other good audio/visual software)
- install the initial packages needed :
sudo apt-get install build-essential scons libsndfile1-dev libasound2-dev subversion libjack0.100.0-dev libxt-dev fftw3 libfftw3-dev
OR – from a base install ofubuntu hardy (8.04)
- install the initial packages needed :
sudo apt-get install build-essential scons libsndfile1-dev libasound2-dev jackd libjack0.100.0-0 libjack0.100.0-dev qjackctl subversion fftw3 libfftw3-dev
- (optional but highly recommended) install the package linux-lowlatency and add real-time capabilities to the audio group (will require a reboot)
sudo apt-get install linux-lowlatency sudo su -c 'echo@audio - rtprio 99 >> /etc/security/limits.conf' sudo su -c 'echo @audio - memlock 250000 >> /etc/security/limits.conf' sudo su -c 'echo @audio - nice -10 >> /etc/security/limits.conf'
BOTH INSTALLS, CONTINUE HERE –
- check out and install supercollider from subversion (don't bother installing from ubuntu packages at all)
svn co https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk supercollider cd supercollider scons PREFIX=/usr/local X11=yes SCEL=no LID=yes sudo scons install
- install sced from http://artfwo.googlepages.com/sced by following the instructions (it really is FAR better than using emacs) :)
- run qjackctl (which shows up in your sound & video menu, click setup, and choose realtime. then boot jack up. you should get no errors...
- setup a nice directory for supercollider to use as a working folder
cd mkdir scwork cd scwork mkdir synthdefs
- run gedit, enable the sced plugin, configure the plugin to your scwork folder, then click tools - supercollider mode, and off you go! (hint: control-E is evaluate and escape is abort)
- if you get an error about primitive filePut not allowed, re-configure sced, as it has usually forgotten that you chose scwork instead of your home dir, then try again.
- Note: " the interpreter expects the "synthdef"-folder in /home/$USER but i placed it somewhere else"
based on amail by Matt>http://www.nabble.com/ubuntu-feisty-and-supercollider-tf3617888.html#a10102013:
I believe it's not necesary to install realtime-lsm, because Ubuntu has
pam_rlimits for assigning resource limits to users. I've never used
realtime-lsm with ubuntu.
After updating from Edgy to Feisty, I installed the linux-lowlatency
metapackage, and then ran the 3 commands above (I think my old limits.conf
was overwritten on upgrade) and rebooted. After that I got no complaints
about realtime from either Jack or Supercollider. My pre-fiesty-upgrade
build of supercollider worked just as before.
Hope that saves some people a bit of time,