The usual IT babble
Posts tagged Ubuntu
Converting TIVSM RPMs to deb
Feb 15th
We received a preinstalled customer server the other day, for which we had declared “as-is” support only, since it is running Lucid Lynx. Now today, I started getting the TSM client to work. Was kinda weird, since at first dsmc was reporting something like this:
# ./dsmc: no such file or directory
After fiddling with it a bit more, here are the control files, as well as the prerm and postinst-scripts for TIVSM-API, TIVSM-API64 and TIVSM-BA:
tivsm-api/debian/control:
Source: tivsm-api
Section: non-free
Priority: extra
Maintainer: root <root@localhost>
Package: tivsm-api
Architecture: all
Depends: ${shlibs:Depends}
Description: IBM Tivoli Storage Manager APItivsm-api/debian/tivsm-api.postinst:
for library in /opt/tivoli/tsm/client/api/bin/*.so; do ln -s $library /usr/lib/${library##*/} done # Automatically added by dh_makeshlibs if [ "$1" = "configure" ]; then ldconfig fi # End automatically added section
tivsm-api/debian/tivsm-api.prerm:
for library in /opt/tivoli/tsm/client/api/bin/*.so; do rm -f /usr/lib/${library##*/} done
tivsm-api64/debian/control:
Source: tivsm-api64
Section: non-free
Priority: extra
Maintainer: root <root@localhost>
Package: tivsm-api64
Architecture: amd64
Depends: ${shlibs:Depends}
Description: IBM Tivoli Storage Manager APItivsm-api64/debian/postinst:
for library in /opt/tivoli/tsm/client/api/bin64/*.so; do ln -s $library /usr/lib64/${library##*/} done # Automatically added by dh_makeshlibs if [ "$1" = "configure" ]; then ldconfig fi # End automatically added section
tivsm-api64/debian/prerm:
for library in /opt/tivoli/tsm/client/api/bin64/*.so; do rm -f /usr/lib64/${library##*/} done # Automatically added by dh_makeshlibs if [ "$1" = "configure" ]; then ldconfig fi # End automatically added section
tivsm-ba/debian/control:
Source: tivsm-ba
Section: non-free
Priority: extra
Maintainer: root <root@localhost>
Package: tivsm-ba
Architecture: any
Depends: ${shlibs:Depends}, lib32stdc++6 [amd64], libc6-i386 [amd64], lib32gcc1 [amd64]
Description: IBM Tivoli Storage Manager Clienttivsm-ba/debian/tivsm-ba.postinst:
ln -s /opt/tivoli/tsm/client/lang/EN_US /opt/tivoli/tsm/client/ba/bin/EN_US for binary in dsmadmc dsmagent dsmc dsmcad dsmj dsmswitch dsmtca dsmtrace; do ln -s /opt/tivoli/tsm/client/ba/bin/$binary /usr/bin/$binary done
tivsm-ba/debian/tivsm-ba.prerm:
rm -f /opt/tivoli/tsm/client/ba/bin/EN_US for binary in dsmadmc dsmagent dsmc dsmcad dsmj dsmswitch dsmtca dsmtrace; do rm -f /usr/bin/$binary done
All that was left to do, was simply adding a -n to the dh_makeshlibs call in each packages debian/rules file, otherwise dh_makeshlibs would overwrite my shiny postinst/prerm actions!
Samsung NC10 Anynet (HAT2DE), Ubuntu Karmic Koala and UMTS
Jan 7th
My little brother bought himself this fancy netbook (it’s okay I guess, only the keyboard takes getting used to). A few days after he bought it, he told me he wanted something different on it than the shipped Windows XP.
At first, I favored a normal Ubuntu 9.10 Desktop. While thats okay, it simply isn’t the right thing for a netbook. Why ? For example, if the programs bar is larger than the vertical desktop resolution, it gets kinda tiring to work with this thing.
Took me (and him) a while to notice that, but in the end I put the Netbook Remix of Karmic on this sweet little thing. Only trouble he had, was that while everything worked out of the box (even the Digital Motion Camera at the top end of the screen), his UMTS didn’t. That’s kinda shitty, since he bought this thing, in order to get online, even if he is at a hotel without actual internet connection (that is no DSL or LAN connectivity).
He already bothered the guys at his local T-Mobile shop, which told him he had to send it in to Samsung for repairs, since they don’t do warranty claims (which iirc they have to do, according to the HGB). Anyway, he sent the box my way, for me to take a look at it first, to avoid paying 70€ for a damn quotation for the repair of the defect UMTS modem.
Turns out (as so often), it was just a simple software bug. The guy over at aptgetupdate, was kind enough to document the steps necessary to install a nightly build of NetworkManager (which Karmic uses to connect to any kind of network), which fixes this issue. As a proof, I’m writing this here blog post via the UMTS connection of the netbook!
For myself, here are the exact steps, in case I ever need to repeat them:
cat << EOF | sudo tee /etc/apt/sources.list.d/nm-nightly.list deb http://ppa.launchpad.net/network-manager/trunk/ubuntu karmic main EOF sudo apt-key adv --keyserver=wwwkeys.de.pgp.net \ --recv-key 248DD1EEBC8EBFE8 sudo aptitude update; sudo aptitude full-upgrade sudo service network-manager restart
That’s it, that enables UMTS connections again.