Feed on
Posts
Comments

Archive for the 'Webserver' Category

to setup my server to use a static ip address i edited the file /etc/network/interfaces to include the lines:
iface eth0 inet static
name Ethernet LAN card
address 192.168.2.100
netmask 255.255.255.0
broadcast 192.168.2.255
network 192.168.2.0
gateway 192.168.2.1
of course, whomever provides you with your static IP address should also be giving you the appropriate information to fill in here.

if you’re controlling squeezecenter on a linux machine, it’s slightly non-obvious how to start, stop, or restart the squeezecenter.  here’s how it works (at least on my debian box):
>> sudo /etc/init.d/squeezecenter [start | stop | restart]

i came across this idea on the internets and thought it was quite clever. it uses wget to send an http stream to madplay, a command-line mp3 playing program that lacks built-in support for playing network streams. here goes:
wget -q -O - http://localhost:8000/stream.mp3 | madplay -Q –no-tty-control -o /dev/audio2 -

if you’re finding that your lightbox images are opening up behind your wordpress posts, try finding your theme’s css file and setting the content:overflow parameter from “auto” to “hidden.”

how to upgrade wordpress

upgrading wordpress can be a pain, especially given how vague the official upgrade instructions are.
here’re some actually useful instructions i found on the wordpress forums, courtesy of “nolageek”; of course, they assume you have ssh access to your server.
1. Download backup of database.
2. Upload unzipped Wordpress to /wordpress-new via FTP.
3. Rename current /wordpress to /wordpress-old.
4. […]

it took a little while to get my lightbox effects working with my wordpress blog [example] and my gallery2 setup [example].
here’s what i had to do:

to get the lightbox loading before the page finishes loading … i didn’t use lightbox, i used slimbox.
to get slimbox resizing images to fit the user window, i turned to […]

to integrate the digg button onto your wordpress blog and have text wrap around it, insert this piece of code inside of your blog themes’s index.php file, right before the line that says “php the_content(’Continue Reading …”.

if you’re self-hosting your wordpress blog, wordpress notification e-mails won’t work out of the box.  instead, you’ll need to install postfix first:
$ sudo apt-get install postfix

1)  figure out how to get lame & faad2 installed on your machine.
2)  add the following line to your slimserver.conf file: [may have to comment out or delete the line already in place that refers to “mov mp3″.]
mov mp3 * *
[faad] -w -f 2 $FILE$ | [lame] –resample 44100 –silent -x -q $QUALITY$ -b $BITRATE$ […]

install alsactl

to install alsactl, do the following in debian:
$ sudo apt-get install alsa-utils

Next »

More blogs about http://desk.stinkpot.org:8080/tricks.