Powered By Blogger

Samstag, 7. November 2015

NetBSD 7 and XFCE in VirtualBox; lighttpd in NetBSD

As I found out in my last post about NetBSD 7 RC 3, there have been some problems with it and I wanted to try it out in VirtualBox. Finally, I have done that yesterday and I saw that NetBSD 7 performs quite well in VirtualBox. However, at first it was also not possible to set another background picture. The reason for that was that "xfdesktop" - which manages the desktop in XFCE - wasn't installed (which I have expected it to do when issued "pkgin install xfce"). The package's name in NetBSD is " xfce4-desktop". I tried to let it install by pkgin, but that failed, which showed me some lines in /var/db/pkgin/pkg_install-err.log:

---Nov 06 20:40:55: installing xfce4-desktop-4.12.3...
pkg_add: no pkg found for 'tdb>=1.2.10', sorry.
pkg_add: Can't install dependency tdb>=1.2.10


I installed that package "tdb" and afterwards, xfce4-desktop could be installed.  Since that moment it's possible to set another background picture in XFCE.

Other IMHO useful packages I installed:

firefox icedtea-web xpdf nmap iftop libreoffice-5* xfce4-screenshooter xfce4-weather* xfce4-cpugraph* xfce4-battery* xfce4-systemload-plugin gnome-screensaver gnome-audio gnome-backgrounds gnome-system-monitor gnome-system-tools xfce4-thunar sysupgrade sudo

For some experiments I also installed: lighttpd tuxpaint

Most of these packages worked, except gnome-system-monitor. gnome-about worked after I installed "py27-gtk". It's wise to start gnome-screensaver-settings once to setup the screen saver.

lighttpd didn't work after installing it. Unfortunately, pkgin doesn't copy any files necessary to actually run lighttpd (like apt-get does on Debian). This can be done with these commands:
cp -v /usr/pkg/share/examples/rc.d/lighttpd /etc/rc.d/
cp -v /usr/pkg/share/examples/lighttpd/lighttpd.conf /etc/lighttpd/

/etc/lighttpd/lighttpd.conf should be reviewed. Using

service lighttpd start

lighttpd can be started. Using

mkdir -p /srv/www/htdocs

it is possible to create the directory where files are being searched, unless this setting has not been changed in lighttpd.conf (see variable "server.document-root"). In my case, lighttpd now only serves files via IPv6, which can be seen if "netstat -f inet6 -a" is executed:

Active Internet6 connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp6       0      0  *.http                 *.*                    LISTEN
tcp6       0      0  *.x11                  *.*                    LISTEN
tcp6       0      0  *.ssh                  *.*                    LISTEN
tcp6       0      0  *.sunrpc               *.*                    LISTEN
udp6       0      0  fe80::1%lo0.ntp        *.*                  
udp6       0      0  localhost.ntp          *.*                  
udp6       0      0  2001:470:1f0b:2e.ntp   *.*                  
udp6       0      0  fe80::a00:27ff:f.ntp   *.*                  
udp6       0      0  *.ntp                  *.*                  
udp6       0      0  *.*                    *.*                  
udp6       0      0  *.1023                 *.*                  
udp6       0      0  *.sunrpc               *.*                  


If "inet" is used instead of "inet6", no "http" is listed.