Now rebuilding fink in 64-bit only mode.
Will probably take a while to redownload all packages. Sigh.
This mix of 64 bit and 32 bit libraries is really frustrating. I imagine some will be 32 bit, others 64 bit. What is the best strategy? Force everything to be 32 bits? 64 bits?Erland-Lewins-Mac-mini:src erl$ makear rc ../lib/libfeat.a imgfeatures.o utils.o sift.o kdtree.o minpq.o xform.oranlib ../lib/libfeat.agcc -O3 -I../include `pkg-config --cflags opencv` `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gsl` siftfeat.c -o ../bin/siftfeat -L../lib -lfeat `pkg-config --libs opencv` `pkg-config --libs gtk+-2.0` `pkg-config --libs gsl`ld: warning: in /sw/lib/libgtk-x11-2.0.dylib, file is not of required architectureld: warning: in /sw/lib/libgdk-x11-2.0.dylib, file is not of required architectureld: warning: in /sw/lib/libatk-1.0.dylib, file is not of required architectureld: warning: in /sw/lib/libgio-2.0.dylib, file is not of required architectureld: warning: in /sw/lib/libpangoft2-1.0.dylib, file is not of required architectureld: warning: in /sw/lib/libgdk_pixbuf-2.0.dylib, file is not of required architectureld: warning: in /sw/lib/libpangocairo-1.0.dylib, file is not of required architectureld: warning: in /sw/lib/libcairo.dylib, file is not of required architectureld: warning: in /sw/lib/libpango-1.0.dylib, file is not of required architectureld: warning: in /sw/lib/libfreetype.dylib, file is not of required architectureld: warning: in /sw/lib/libgobject-2.0.dylib, file is not of required architectureld: warning: in /sw/lib/libgmodule-2.0.dylib, file is not of required architectureld: warning: in /sw/lib/libglib-2.0.dylib, file is not of required architectureld: warning: in /sw/lib/libintl.dylib, file is not of required architectureld: warning: in /sw/lib/libgsl.dylib, file is not of required architectureld: warning: in /sw/lib/libgslcblas.dylib, file is not of required architectureUndefined symbols:"_gdk_screen_get_default", referenced from:_display_big_img in libfeat.a(utils.o)"_gdk_screen_get_height", referenced from:_display_big_img in libfeat.a(utils.o)"_gdk_init", referenced from:_display_big_img in libfeat.a(utils.o)"_gdk_screen_get_width", referenced from:_display_big_img in libfeat.a(utils.o)ld: symbol(s) not foundcollect2: ld returned 1 exit statusmake: *** [siftfeat] Error 1
g++ -O3 -c `pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0` -I./ann_1.1.1/include/ cv_extensions.cppcv_extensions.cpp: In function ‘void cvComputeRQDecomposition(CvMat*, CvMat*, CvMat*, CvMat*, CvMat*, CvMat*, CvPoint3D64f*)’:cv_extensions.cpp:18: error: ‘__BEGIN__’ was not declared in this scopecv_extensions.cpp:197: error: ‘__END__’ was not declared in this scopecv_extensions.cpp:22: error: label ‘exit’ used but not defined
Erland-Lewins-Mac-mini:sift erl$ makemake -C ./src siftfeatar rc ../lib/libfeat.a imgfeatures.o utils.o sift.o kdtree.o minpq.o xform.oranlib ../lib/libfeat.aranlib: warning for library: ../lib/libfeat.a the table of contents is empty (no object file members in the library define global symbols)gcc -O3 -I../include `pkg-config --cflags opencv` `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gsl` siftfeat.c -o ../bin/siftfeat -L../lib -lfeat `pkg-config --libs opencv` `pkg-config --libs gtk+-2.0` `pkg-config --libs gsl`ld: warning: in ../lib/libfeat.a, file is not of required architectureld: warning: in /usr/local/lib/libcxcore.dylib, file is not of required architectureld: warning: in /usr/local/lib/libcv.dylib, file is not of required architectureld: warning: in /usr/local/lib/libhighgui.dylib, file is not of required architecture
sudo apt-get build-dep netatalksudo apt-get install cracklib2-dev fakeroot libssl-devsudo apt-get source netatalk
cd netatalk-2*sudo DEB_BUILD_OPTIONS=ssl dpkg-buildpackage -rfakerootsudo dpkg -i ~/netatalk_2*.deb
Hm, got errors at this point. Hope it won't be a problem.echo "netatalk hold" | sudo dpkg --set-selectionsFollowed the instructions modifying settings file. Left the printer service and old appletalk in, since it seems like the printer daemon was dependent on the old appletalk stuff.
sudo ufw allow proto tcp from any to 172.16.1.21 port 548After a bit of 'fippling' by following the article's instructions for creating a disk image etc, it works!
sudo ufw allow proto udp from any to 172.16.1.21 port 5353
perl -d -w /usr/sbin/squeezeboxserver --prefsdir /var/lib/squeezeboxserver/prefs --logdir /var/log/squeezeboxserver/ --cachedir /var/lib/squeezeboxserver/cache --charset utf8 --playeraddr 172.16.1.21 --logfile debuglog --logging debugwhich invokes the perl debugger.
sudo nagios3 -v /etc/nagios3/nagios.cfg
apt-get install nagios3There are instructions here: http://www.sucka.net/2009/07/nagios-ubuntu-9-04-part-1/
ufw logging offBecause too much junk was ending up in the logs about blocket packets.
apt-get install exim4-daemon-heavyDid the above for cirrus as well.
sudo exim4 -C /etc/exim4/exim4.conf.template-db -bv -dActually, the above didn't quite work, I think some other config file must also be included.
flush tables with read lock;cirrus:
mysqldump --all-databases --master-data --host=www.lewin.nu --port=3306 --ssl --ssl-ca=mysql-ca-cert.pem -p >dbdump.dbcumlus:
unlock tables;
mysql1 -pWrote a backup script for the common mysql database, script & backups in /var/backup/mysql, hourly crontab action installed.
iface eth0 inet staticAfter ifup eth0:1, I can ping the intranetaddress, but it does not show up in the routing table.
address 192.168.6.205
gateway 192.168.6.1
netmask 255.255.255.0
#iface eth0 inet dhcp
# Have a second IP address on eth0, to give the intraweb DNS a separate
# IP from the internet DNS server.
iface eth0:1 inet static
address 192.168.6.206
netmask 255.255.255.255
root@cumulus:/etc/exim4/virtualhosts# ufw allow proto udp from any to any port 6112
Rule added
root@cumulus:/etc/exim4/virtualhosts# ufw allow proto udp from any to any port 30260
Rule added
sudo apt-get install dhcp3-servergot error:
Setting up dhcp3-server (3.1.1-5ubuntu8.1) ...I think the only problem is that I have not created configuration files yet for it.
Generating /etc/default/dhcp3-server...
* Reloading AppArmor profiles ... [ OK ]
* Starting DHCP server dhcpd3 * check syslog for diagnostics.
[fail]
invoke-rc.d: initscript dhcp3-server, action "start" failed.
Oct 20 18:09:24 cumulus dhcpd: No subnet declaration for eth0 (172.16.1.21).Which is strange, because /etc/dhcpd.conf has:
Oct 20 18:09:24 cumulus dhcpd: ** Ignoring requests on eth0. If this is not wh\
at
Oct 20 18:09:24 cumulus dhcpd: you want, please write a subnet declaration
Oct 20 18:09:24 cumulus dhcpd: in your dhcpd.conf file for the network segme\
nt
Oct 20 18:09:24 cumulus dhcpd: to which interface eth0 is attached. **
subnet 172.16.1.0 netmask 255.255.255.0Ok, figured it out, I had put the conf file in /etc/dhcpd.conf, but under Ubuntu it is supposed to be under /etc/dhcp3/dhcpd.conf
sudo ufw allow proto tcp from any to any port 22Then:
sudo ufw enableThen (ports 3306-3309 are the mysql database servers, the ip number is MÃ¥rten's):
sudo ufw allow httpUsed "netstat -lp" to see what programs were listening on what ports on the new server. Noticed that I had an e-mail program called dovecot listening on imap and pop ports, so I did:
sudo ufw allow smtp
sudo ufw allow domain
sudo ufw allow proto tcp from 81.26.246.2 to any port 3306
sudo ufw allow proto tcp from 81.26.246.2 to any port 3307
sudo ufw allow proto tcp from 81.26.246.2 to any port 3308
sudo ufw allow proto tcp from 81.26.246.2 to any port 3309
erl@cumulus:/etc/apache2$ sudo ufw statusAs though the 'from' restriction didn't work for port 9090.
Status: active
To Action From
-- ------ ----
22/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
25/tcp ALLOW Anywhere
53 ALLOW Anywhere
3306/tcp ALLOW 81.26.246.2
3307/tcp ALLOW 81.26.246.2
3308/tcp ALLOW 81.26.246.2
3309/tcp ALLOW 81.26.246.2
9090/tcp ALLOW Anywhere
sudo ufw allow proto tcp from 127.0.0.1 to 127.0.0.1 port 9092Port 9000 is the SlimBoxServer's web interface. I will try to set up a proxy to forward web accesses from the regular web server to the SlimServer. Couldn't get it to work, will try more later.
sudo ufw allow proto tcp from 127.0.0.1 to 127.0.0.1 port 9000
sudo ufw allow https
sudo ufw allow from 172.16.0.0/16 to 172.16.0.0/16 port 3483
sudo ufw allow from 172.16.0.0/16 to any app Samba
sudo ufw allow from any to any proto udp port afs3-callback
sudo apt-get install libapache2-mod-jkCopied SSL certificates from sol to /etc/apache2/ssl.key and /etc/apache2/ssl.crt.
sudo a2enmod ssl
sudo a2enmod rewrite
sudo a2enmod dav dav_fs
sudo apt-get install subversion libapache2-svnCopied my svn repository from sol:/usr/local/src/svn to same dir on cumulus.