Tag Archives: ubuntu

Ubuntu: AD authentication after system upgrade

After a System upgrade from Ubuntu Precise Pangolin to Trusty Tahr I wasn’t able to connect to the server using SMB. The server is part of a active directory. Reading the documentation through, I figured out that wbinfo worked flawless, but the user was not found when using id.

$ wbinfo -u
my.user
guest
...

$ id my.user
id: my.user: no such user

/etc/nsswitch.conf need be configured right (winbind must be configured), but it was in my case:

passwd: compat winbind
group: compat winbind
shadow: compat
...

Using strace, I figured out that libnss_winbind.so.2 wasn’t found by id. In the end, the solution was easy as that:

$ sudo apt-get install libnss-winbind
...
$ sudo service winbind restart
winbind stop/waiting
winbind start/running, process 3399
$ id my.user
uid=10006(my.user) gid=10002(domain user) groups=...

Adaptec 6805H single in a Linux server

In order to extend the amount of SATA disk in my server I decided to use the Adaptec 6805H single Host Bus Adapter (which converts from PCI-E bus to SAS/SATA bus :-)). The device uses a PMC PM80xx chipset. SAS is backward compatible to SATA, one can connect up to 4 devices on a SAS port on this device. The BIOS is not very fast, however my four SATA disks were recognized without any problem. Also, the Ubuntu 13.04 Linux Kernel detected the card with the PCI-ID 9005:8081 using the module pm80xx. Rebuilding of a RAID5 consisting of 4 WD Red 3TB disks went reasonable fast with approximately 130MB/sec. So far, I can recommend that controller for Linux users! Read more »

Setting up schroot for Python multiprocessing

When using Arch Linux, its sometimes required to run something in a older/stable releaes of a Linux distribution. For this purpose I have a Ubuntu 12.04 LTS installation in a schroot environment. However, using Bitbake (a heavily multithreded and Python based build utility) The build aborted with the error:

  File "/usr/lib/python2.7/multiprocessing/queues.py", line 63, in __init__
    self._rlock = Lock()
  File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 147, in __init__
    SemLock.__init__(self, SEMAPHORE, 1, 1)
OSError: [Errno 13] Permission denied

Read more »

Graphical boot splash screen with Nvidia binary drivers

Recently I had a hard time to bring graphical boot splash screen (Plymouth) to work on a Ubuntu 13.10 Saucy Salamander installation. I use the Nvidia binary driver and activated uvesafb therefor (see this blog post how to do this). However, it didn’t work. In the end two pieces were missing: Read more »

Ubuntu: HP Smart Array Controller Status

The HP Smart Array Controller series which can be found in most HP Servers today is supported by the Linux Kernel driver hpsa. The utility hpacucli helps to communicate with the Controller. But this utility flaws native 3.x Kernel support in Ubuntu 12.04 (Precise Penguin). The command ctrl all show doesn’t show any controllers:

=> ctrl all show

Error: No controllers detected.

The command setarch helps to work around this by causing the programm to see a kernel version number beginning with 2.6:

sudo setarch x86_64 --uname-2.6 hpacucli
=> ctrl all show

Smart Array P410i in Slot 0 (Embedded) (sn: 500xxxxxx)

See also Ubuntu Bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/890768.

Flash BeagleBone Black using Linux

BeagleBone Black

BeagleBone Black

Today I received my BeagleBone Black! For 45$ you get more power and even HDMI. There is also a serial debug port now on a distinct header connected to UART0 of the CPU. The user can connect to this serial port with a TTL converter (like the FTDI-USB-Cables) and a terminal emulator. Set the baudrate of 115200 and you should be able to see U-Boot, the boot process and a login prompt in the end. Everything worked fine, except when I tried to connect using SSH it failed with an error:

$ ssh 192.168.7.2
ssh_exchange_identification: Connection closed by remote host

I could no figure out how to resolve this on the currently running firmware so I followed a tip on the mailing list to just upgrade the firmware. On linux this is normally a fairly easy process, one has just to decompress the image and pipe it to a SD-Card.

unxz --stdout BBB-eMMC-flasher-2013.04.13-DDR3-400MHz.img.xz | dd of=/dev/mmcblk0

Read more »

Deploy ownCloud from Source using Git

ownCloud Logo

ownCloud Logo

ownCloud is a great piece of open source software. It allows you to share files easily like Dropbox or Google Drive (including fancy drag and drop upload on newer browsers), but gives you the control of your data, since you can host an instance yourself!

My goal was to test the latest ownCloud 5 snapshot from Github. I do have SSH access on destination server, so my goal was to deploy it directly using Git. Be warned: The master branch from Github can (and will) contain bugs! But you get bleeding edge and you can help testing the software.  Read more »

Build DKMS modules for specific kernel

After upgrading my kernel, somehow DKMS missed to build the NVidia stub modules for the NVidia-binary driver. A oneliner can solve this:

$ sudo /usr/lib/dkms/dkms_autoinstaller start 3.5.0-23-generic

Linaro embedded toolchain on Ubuntu 64-Bit

Linaro provides a specialized toolchain for embedded (bare metal) development. But after installing, I could not execute the binary:

$ gcc-arm-none-eabi-4_7-2012q4/bin/arm-none-eabi-gcc
-bash: gcc-arm-none-eabi-4_7-2012q4/bin/arm-none-eabi-gcc: No such file or directory

Also ldd claims its not dynamically linked:

$ ldd gcc-arm-none-eabi-4_7-2012q4/bin/arm-none-eabi-gcc
 not a dynamic executable

The truth is: it is dynamically linked, but against 32-Bit libraries. And since I have not yet installed any 32-Bit library, ldd doesn’t work properly. According to the readme, you should install the 32-Bit variant of libc and libncurses. Since Ubuntu is Multi-Arch, you can easily install those libs:

sudo apt-get install libc6:i386 libncurses5:i386

Now you should be able to run the Linaro toolchain on 64-Bit variants of Ubuntu.

Ubuntu: Flash Galaxy Nexus with Google Firmware

Jelly Bean Logo

Android Jelly Bean logo

Some days ago I realized that Galaxy Nexus was shipped with different Firmware’s from Samsung and Google (see this post on xda). And because my Phone has Samsung’s Firmware, my Android Version is still on Jelly Bean 4.1.2. This how-to shows how to do this on Ubuntu. This procedure will clean your phone, you need to backup all data before you start! (photos, videos, music, sms…)

Install the Android utility fastboot

This utility usually comes with Android Developer Tools. But in this package only a 32-Bit version is available. Since Ubuntu 12.10 you can get fastboot directly from the repository (there are PPA’s for other Ubuntu versions, see this blog post):

$ sudo apt-get install android-tools-fastboot

Read more »