FooBox Test (Image Gallery)

The old dreamer

Bootstrap DS414 on DSM 5.0

Install ipkg on a ds414 DSM 5

Actually there is no xsh bootstrap for the ds414 (Marvell Armada XP armv7l) although the existing Marvell Kirkwood mv6281 binaries “are ~ compatible” ( So this is a small guide to setup manually the optware environment, which based partly on trepmag’s guide – many thanks.

Create optware root directory

$ mkdir /volume1/@optware
$ mkdir /opt
$ mount -o bind /volume1/@optware /opt

chmod 700 syno-mvkw-bootstrap_1.2-7_arm.xsh
sh syno-mvkw-bootstrap_1.2-7_arm.xsh

Edit the file


disable these lines by adding the # as line prefix

#if [ -e "$REAL_OPT_DIR" ] ; then
#    echo "Backup your configuration settings, then type:"
#    echo "  rm -rf $REAL_OPT_DIR"
#    echo "  rm -rf /usr/lib/ipkg"
#    echo "This will remove all existing optware packages."
#    echo
#    echo "You must *reboot* and then restart the bootstrap script."
#    exit 1

#if ! grep Feroceon-KW /proc/cpuinfo >/dev/null 2>&1; then
#    echo "Error: CPU not Marvell Kirkwood, probably wrong bootstrap.xsh"
#    exit 3

Run bootstrap


Reboot your diskstation

/opt/bin/ipkg update

/opt/bin/ipkg list

/opt/bin/ipkg install pkg


Add the following line to /etc/profile:


Create init scripts

The following steps will allow to automatically bind the /volume1/@optware directory to /opt and trigger the /opt/etc/init.d/* scripts.

Create the /etc/rc.local file (chmod 755) and insert:


# Optware setup
[ -x /etc/rc.optware ] && /etc/rc.optware start

Create the /etc/rc.optware file (chmod 755) and insert:

#! /bin/sh

if test -z "${REAL_OPT_DIR}"; then
# next line to be replaced according to OPTWARE_TARGET

case "$1" in
        echo "Starting Optware."
        if test -n "${REAL_OPT_DIR}"; then
            if ! grep ' /opt ' /proc/mounts >/dev/null 2>&1 ; then
                mkdir -p /opt
                mount -o bind ${REAL_OPT_DIR} /opt
    [ -x /opt/etc/rc.optware ] && /opt/etc/rc.optware
        echo "Shutting down Optware."
        echo "Usage: $0 {start|stop|reconfig}"
        exit 1

exit 0

(source: a working optware env)

Nvidia GTX 970 and HDMI Audio

Just bought my self a Asus GTX 970 and happily installed it.

Everything worked fine but I couldn’t get audio from the HDMI port to my receiver.
The only option I had was stereo and no sound from my speakers.

My previous card was an Asus 650 Ti Boost and it had no problems with 5.1 surround audio to my receiver. Actually there where the option of either sending it to the Display port or the HDMI port.

I also was using the latest 346.22 Nvidia driver from “xorg crack pushers” team.

So I was scratching my head for half a day until I remembered that there were some updates for Nvidia in the latest Linux kernels.

I checked the kernel version on my system and it was 3.13 on Ubuntu 14.04 LTS.

At I found the latest kernel to be 18.1 and packages could be downloaded from

The new kernel was easy to install just follow the instructions at

After a reboot was I able to set-up audio to use the HDMI port again.

It works!!!

For some time have I had problems running Kububtu and 3 monitors at the same time on a Nvidia card.

I solved by having each monitor running on each own xserver. That worked fine but certain things where not optimal.

I could only change display configuration by using Nvidia setting and I couldn’t disable the screen saver. Not a big problem but when I was watching TV suddenly I would miss a coal because of the screen saver.

I also have a Wacom tablet. It isn’t very often I use it but the other day there were a question at Ask Ububtu about pressure sensibility and I wanted to the answer question.
I just wanted to test if everything was working fine and to my surprise it was not.

Again I did the BIG investigation and hours went by. I could not the get pressure sensibility to work.

Even Krita wouldn’t work at all with the tablet.

So in the end I tried to remove (rename) the /etc/X11/xorg.conf file and reboot.

As the computer was rebooting I was getting grumpy because I suspected the X configuration was the problem and I could not get the 3 monitors to work at the same time.

But Kubuntu booted up, X started and everything looked normal, YES! It works now.
I Just had to goto the Diaplay and Monitor settings and configure the display order to my needs.

Was I one happy little boy and the grumpiness was gone :)

I suspect the problem is solved in KDE ver. 4.13.2

To install on Kubuntu add to the repository search:


Or, from a command line:

sudo add-apt-repository ppa:kubuntu-ppa/backports


sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade

Hope you will enjoy!

Upgradeing XBMCbuntu

I use XBMC as my entertainment center and had XBMCbuntu install on a ZBOX ID41.

The XBMCbuntu was based on an 12.10 version of ubuntu (maybe lubuntu).

As 12.10 was going out of support I couldn’t install XBMC 13.1 from the XBMC’s PPA. I had to compile it my self. I tried to compile but forgot some setting related to the ION chip set. Not at big success and I decided it was not worth the hassle to compile every time I need to update XBMC.

I decided to try lubuntu as it is a small distrio of Ubuntu.

I made an USB key and booted lubuntu from the USB key to see if everything looked fine and it didn’t seem to be problem to install lubuntu on the ID41.

From the desktop I installed lubuntu and to my big surprise it asked me if I wanted to upgrade from XBMCbuntu 12.10 to lubuntu 14.04.
What! That can’t be possible??? But let’s give it a try…

During the install everything was left at default except I enabled auto login to prevent having to login when I started the computer.

The only problem was when I typed in the computer name. Lubuntu notified that there was another computer with the same name. But as my DHCP server register all my devices so they get the same IP address when they start I knew it was just finding it self. After a reboot there wouldn’t be any problems.

I rebooted and lubuntu started up and to my big surprise everything worked fine.

I just had to add the XBMC repository ( and then install XBMC.

The remote didn’t work and after installing LIRC everything was back to normal.

A logout and login to the XBMC desktop and my entertainment center was back to normal. You can select the XBMC desktop in top right corner at the login screen.

Well there was problems that need to be solved but it was the same problems I had with XBMCbuntu. One was the computer would not suspend but I will write about that in another post.

A little wireless trick

My media center PC has a wireless network adapter and of cause a BIG blue light on the front of the PC.

As wireless network connection and a media center (with slow CPU) streaming movies is not a good combination I wanted to disable the wireless card.

To do that I used the command ifconfig.

First type:

$> ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:01:02:03:04:05:06 
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::201:2eff:fe3b:c50f/64 Scope:Link
          RX packets:154476 errors:0 dropped:0 overruns:0 frame:0
          TX packets:77817 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:168840925 (168.8 MB)  TX bytes:5938729 (5.9 MB)

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:376 errors:0 dropped:0 overruns:0 frame:0
          TX packets:376 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:45071 (45.0 KB)  TX bytes:45071 (45.0 KB)

wlan0     Link encap:Wireless  HWaddr 00:01:02:03:04:05:07
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::201:2eff:fe3b:c60f/64 Scope:Link
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

As you can see from the output I have 3 network adapters: eth0, lo, wlan0.
You might get other output, like eth1, lo, wlan0 etc.

I want to disable the wireless adapter: wlan0

At the command line I type:

$> sudo ifconfig wlan0 down
[sudo] password for gopher:

Then the wireless adapter is disabled and the stupid blue light is gone!

To enable the wireless adapter again type:

$> sudo ifconfig wlan0 up
[sudo] password for gopher:

Then the wireless adapter is enabled and the stupid blue light is on again!

To have the wireless adapter disabled every time the media center start add the command to the end of the file /etc/rc.local (before the exit 0).
Use a editor like nano or kate etc. to change the file.

$> sudo nano /etc/rc.local
!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.

ifconfig wlan0 down

exit 0

Now I just found that out after a suspend the wireless network adapter was enabled again.

To solve it I have to disable the wlan0 adapter during the resume. Create a file called /etc/pm/sleep.d/20_custom_wlan0

$> sudo nano /etc/pm/sleep.d/20_custom_wlan0

Add the following to the file:

# Script to disable wlan0 before suspend and restart after wake.
case "${1}" in
                echo suspending 20_custom-wlan0
               echo Resumeing 20_custom-wlan0 - shutting down wlan0
               ifconfig wlan0 down

Save the files and make sure is executable:

$> sudo chmod 755 /etc/pm/sleep.d/20_custom-wlan0

The file is named 20<something> because I want the file to called a relative late in resume process. On my system there is a file called 60<something> which enable the wireless network adapter and I want to disable it again.

To see the scripts called during the suspend process go through the log file:


Thats it, good luck :)


First time for everything

My Kubuntu crashed, not seriously, but enough so Mysql would not start and KDE could not start properly. I had no desktop and all the widgets couldn’t be found.

I tried everything but I couldn’t find anything wrong except syslog and other log files were empty (zero bytes).

How could this happen I didn’t change anything, OK, I did a apt-get update/upgrade, but that could not crash the system? I did the update/upgrade at work without problems.

I messed with the system for a couple of hours and even reset the Bios. This gave me big problems as well, after the Bios reset the system would not start. Tried to reset a 1000 times. When I pressed the power button only a little buzz and then quiet again. Almost the hole computer was ripped apart, no help.
But there was a little shiny object on the motherboard, the battery!
I removed the battery and reset the plus/minus poles inserted the battery again and the system would start again.

I messed with log files again until the hammer hit me: Why would files be zero byte? Because there is no more space left on the partition…

I remembered the old command from SUN days: df.

someone@elena:/var/log$ df .
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sdc5       30628800 30628800  0  100% /var

The next was the devil using all my disk space and the devil was Mythtv.
All the recordings is put in /var/lib/mythtv/<sub folders> in my case /var/lib/mythtv/livetv.

After moving the files to another partition and a reboot almost everything worked as normal. Had to reconfigure my Display setup and add a new default panel to the desktop.

Thunderbird and LDAP problems

If you have Thunderbird installed and is using LDAP to authorize user on Linux/Ubuntu you might get the same problem as I used to have.

The symptom could be Thunderbird crash after a minute or two.
You might see this is your /var/log/auth.log:

Jun  1 10:26:50 <host> thunderbird: nss_ldap: failed to bind to LDAP
server ldap:// Can't connect to the LDAP server
Jun  1 10:26:50 <host> thunderbird: nss_ldap: could not search LDAP 
server - DSA is unavailable

I solved the problem by installeing LDAP connection daemon – nslcd

sudo apt-get install nslcd

Configure nlscd to connect to your LDAP server.

You still have to configure Thunderbird if you want to use LDAP to lookup users.

Do I want big changes???

Just read a post at arctehnica (Ubuntu 14.04 review: Missing the boat on big changes) reviewing Ubuntu 14.04.

A good a review but it made me think about what I really want my OS to be when it get updated and what made me make the big step to Linux and KDE.

This first think that made me change OS was Adobe changing there license policy.
After years of saving and a lucky email from amazon I decided to bye Photoshop.
I was happy but didn’t really needed Photoshop but I had some pictures over time that need Photoshop and I was in the upgrade “path”. Getting a new version of Photoshop would be cheaper. Shortly after Adobe change is license policy so to get Photoshop I have to pay a monthly fee. That made me so mad that I decided never to use Adobe software again.

This also made me think about my OS. Was I happy with my OS?
Not really, It worked but missed all the good thing from my time working with Sun OS/Solaris.
Yes, I had Cygwin but so many things was not functioning well.

And then Microsoft came out with Windows 8 and I had to take a short look at it and I haded it. I would NEVER pay money to for that OS.

So I decided to go for Linux/GNU and tried Ubuntu first. But the Desktop was simply to much of a change and I didn’t like the look and feel of it.

In the end I found KDE was just what I wanted and I started out with Kubuntu 13.04.
Soon I could upgrade to 13.10 and I was so excited. What would be all the new stuff?

To my surprise not much was changed and everything was as before. I was a bit disappointed but I was a “new” user to Linux/GNU so that was all right.

Now at the latest upgrade (14.04) the chill was a little more exciting when installing the upgrade. I have made lots of small changes and enhancement to the standard installation.

Would everything work? or would I have hours to spend fiddling problems?

To my surprise, No, everything worked and even tings I couldn’t get to work in 13.10 now worked in 14.04.

So I’m happy with the small changes and improvement. I even got a better working system now.

I have always felt the OS/Desktop was a simple platform where I use my advanced applications. It must be rock solid and not tip over when a application screw up.

So to the Arc post I can only say: Thank you Ubuntu and KDE for not introducing many new features and by then many new bugs.