Easy as pie:
-
ifconfig eth0 192.168.5.120 netmask 255.255.255.0 up
-
route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.5.1
April 10th, 2012 — Uncategorized
Easy as pie:
April 9th, 2012 — Uncategorized
Ik wilde een paar foto's afdrukken op een groot formaat en het was eerste paasdag. Dus toen ben ik maar gaan zoeken naar fotosites die Linux ondersteunen. 1 van de weinige die Linux (een beetje) ondersteunt is Kruidvat.
Zij bieden losse software aan die op Linux draait. Dat klopte maar ik moest wel eerst nog wat (aparte) dingen installeren voordat de fotosoftware van Kruidvat werkte op Linux:
Vervolgens de software zelf nog even:
Daarna kwam ik erachter dat Pixnum ook Linux ondersteunt met verschillende uploaders (Flash, FTP & Java) en goedkoper is dan Kruidvat. Toen waren de foto's echter al besteld. Misschien voor de volgende keer dus.
March 16th, 2012 — development, python
Ik heb de eerste versie van motorrijweer.nl live gezet! 't Is nog vrij basis maar je kunt wel al voor een paar regio's het motorweer/motorrijweer opvragen. Op naar de volgende versies!
March 11th, 2012 — Linux
The workflow: make two new images out of 4: combining 2x2 to make hdr's. Then aligning them
Then I put them next to eachother in GIMP :p
Everytime I install a new version of Ubuntu / Linux I'm hoping Zend Studio (the old/good one) will still be working. This time with Ubuntu 12.04 I again had to do this but it didn't take longer than a couple of minutes.
First I had to install the java executable (otherwise I got a "java: not found" error message. Because the Sun JRE isn't available anymore for Ubuntu (12.04) I installed the default one (icedtea I believe). To my amazing that worked perfectly!
Then I had to install some (i386) libs and it worked! libxcursor is need or else you'll get a really ugly cursor in Zend Studio 5.
March 4th, 2012 — Linux
Since version 1.4.25 msmtp has support for a aliases file. I edited my ~/.msmtprc and added:
~/.aliases:
Only ~/.aliases didn't get expanded to the full path:
Other than that, it worked perfectly! Now I can send e-mails to root and have them delivered to my personal e-mailaddress.
February 22nd, 2012 — development, Linux
February 19th, 2012 — Linux
I wanted to make chromium (chrome) more secure. Just to be safe. I found out that the package apparmor-profiles on Ubuntu contained an apparmor profile for chromium-browser. I installed it and tried to enforce it without using the aa-enforce binary (which required the apparmor-utils package) but I couln't get that to work. So I installed apparmor-utils anyway.
When all is done, quit the chromium browser and restart it. Then, when you run aa-status it should list chromium-browser as 'enforced'.
I tried to do the same thing for /usr/sbin/dovecot but that didn't quite work. Dovecot threw errors like:
I tried fixing it but I didn't get it to work so I gave up.
February 13th, 2012 — development, PHP
A more complete example:
February 4th, 2012 — Linux, PHP
I got Apache- (mpm-itk), sickbeard, sabnzbd, couchpotato and spotweb running on my pandaboard. But apache really used up a lot of resources. So I decided to replace it with nginx. Nginx would be a reverse proxy and communicate via fastcgi with php.
This post describes how to set up Nginx. Not how to install sabnzbd, sickbeard, couchpotato or spotweb on your machine. I assume you know how to do that.
Add all the important proxy stuff in one file so it can be included later on.
leon@panda:~$ cat /etc/nginx/conf.d/proxy.conf
Set up alle the locations (subdirectories on you http server) for sabnzbdplus, sickbeard, couchpotato and spotweb.
The important part from /etc/nginx/sites-enabled/default:
Sorry about the indentation... Anyone recomend a good code plugin for wordpress?
Now we're going to set up php for nginx with php5-fpm. This is a new module and isn't available on older versions of ubuntu. I think it's only available from ubuntu 10.10 and onwards.
Then edit /etc/php5/fpm/pool.d/leon.conf (in my case). I created another pool for my user ('leon') because I don't want it to run under the user www-data or similar.
cat /etc/php5/fpm/pool.d/leon.conf
Footnotes:
I also tried to get it working with chroot = /home/leon in /etc/php5/fpm/pool.d/leon.conf but I couldn't get spotweb working with mysql on port 3306. When chrooted you can't access /var/run/mysqld/mysqld.sock. I'll have to investigate that a bit more.
Also, you could remove /etc/php5/fpm/pool.d/www.conf if you don't use it (like in my case):