Thermaltake NBcool T1000

July 23rd, 2008 by tripledes

Today Ginger and I have received our NBcool T1000 from Specialtech.co.uk. We’ve never bought @Specialtech before but I’d like to recommend it because they were responsive to my emails, the package was well boxed and delivery times were as expected.NBcool T1000 - Unboxing

The product has two USB ports, one is used to power the embedded fan and the one left is for you to use it so no lost for you ;), it also has a switch so the fan can be turned on or off depending on your needs.
NBcool T1000 - Unboxed

The 12cm fan is really quiet and big enough for our 12” laptops, the cooler is made from some sort of hard plastic but the at same time light to carry it around if you have enough room for it on your bag :)
NBcool T1000 - Working

Let’s see next days about temperature, I’ve been reinstalling Gentoo so I’m still emerging last applications.

Sabayon: Installing synce-svn

June 29th, 2008 by tripledes

Sabayon LinuxAs owner of three Windows Mobile devices (HTC Universal, Hermes and Kaiser) I needed a way to work with them under Linux so I decided to install SynCE following this wiki entry.

It was pretty straight ahead compilation, just encountered some minor problems which I could fix really easily. First we need to install subversion and gnet:

$ sudo equo install subversion gnet

Then create a build folder which will hold the sources of everything we need:

$ mkdir builds
$ cd builds
$ svn checkout http://synce.svn.sourceforge.net/svnroot/synce/trunk/libsynce
$ svn checkout http://synce.svn.sourceforge.net/svnroot/synce/trunk/librapi2
$ svn checkout http://synce.svn.sourceforge.net/svnroot/synce/trunk/odccm
$ svn checkout http://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite

Now the compilation begins!

$ cd libsynce
$ ./autogen.sh
$ make && sudo make install

Now we’d have libsynce installed under /usr/local so let’s start with librapi2.

$ cd ../librapi2
$ ./autogen.sh

And the first problem shows up:

checking for LIBSYNCE... configure: error: Package requirements (libsynce >= 0.11.1) were not met:

No package 'libsynce' found

Fix:

$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
$ ./autogen.sh
$ make

And the second problem comes to scene:

/bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/local/include -pthread -Wsign-compare -Wno-long-long -o pcp pcommon.o pcp.o ../src/librapi.la
gcc -I/usr/local/include -pthread -Wsign-compare -Wno-long-long -o .libs/pcp pcommon.o pcp.o ../src/.libs/librapi.so
pcommon.o: In function `adjust_remote_path':
pcommon.c:(.text+0xe0): undefined reference to `wstr_append'
pcommon.c:(.text+0xfa): undefined reference to `wstr_append'
pcommon.c:(.text+0x111): undefined reference to `wstr_free_string'
pcommon.c:(.text+0x131): undefined reference to `_synce_log_wstr'
pcommon.c:(.text+0x143): undefined reference to `wstrdup'
pcommon.o: In function `anyfile_remote_close':
....

Fix:

$ make LIBS=/usr/local/lib/libsynce.so

And here it comes again:

g++ -I/usr/local/include -Wall -pthread -g -O2 /usr/local/lib -o .libs/CeCreateDatabase CeCreateDatabase.o /usr/local/lib/libsynce.so ../../src/.libs/librapi.so
/usr/local/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status

Fix:

$ cd tests/rapi

Edit the Makefile and look for a line like:

AM_LDFLAGS = /usr/local/lib

and comment it. I’m sure there’s a proper fix for this but it worked for me, so let’s try to build librapi2 again:

$ cd ../../
$ make LIBS=/usr/local/lib/libsynce.so && sudo make install

Now it should compile without a problem and install everything again under /usr/local. Let’s start with odccm:

$ cd ../odccm
$ make LIBS=/usr/local/lib/libsynce.so

And the same last problem shows up again:

gcc -Wall -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gnet-2.0 -I/usr/lib/gnet-2.0/include/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -o odccm odccm-device-signals-marshal.o odccm-device-manager-signals-marshal.o util.o odccm-errors.o odccm-connection-broker.o odccm-device.o odccm-device-manager.o odccm.o odccm-device-legacy.o /usr/local/lib -lgobject-2.0 -lglib-2.0 -pthread -lgnet-2.0 -lgthread-2.0 -lrt -lglib-2.0 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -lhal -ldbus-1
/usr/local/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status

Fix:

$ cd src

Edit the Makefile and look for the line odccm_LDADD = /usr/local/lib … and add -L after the equal.

odccm_LDADD = -L /usr/local/lib ...

So let’s compile:

$ make LIBS=/usr/local/lib/libsynce.so && sudo make install

So all userland is installed, let’s compile the kernel modules:

$ cd ../usb-rndis-lite
$ make && sudo make install

Keep in mind the kernel modules will have to be built every time the kernel is updated. So…let’s test! Plug your device in:

$ sudo /usr/local/sbin/odccm
$ dmesg | grep rndis
...
[86530.903513] rndis0: register 'rndis_host' at usb-0000:00:1d.1-1, RNDIS device (SynCE patched), 80:00:60:0f:e8:00
[86541.176471] rndis0: no IPv6 routers present
...
$ /usr/local/bin/pls
Directory 2008-05-04 22:00:24 My Pictures/
Directory 2008-05-04 22:00:24 Templates/
Directory 2008-05-04 22:00:26 Personal/
Directory 2008-05-04 22:00:26 Business/
Directory 2008-05-04 22:00:26 My Music/
Directory 2008-05-04 22:00:26 My Ringtones/
Directory 2008-05-04 22:00:26 UAContents/
$

The device is detected and we can start working with it :)

Tags: , , ,

From Cisco VPN Client to vpnc

June 28th, 2008 by tripledes

I was looking for an easy way to take away the Cisco VPN client for an open source solution, vpnc. It’s a quite simple solution, which allows to convert Cisco profile files to its own configuration format and just works.

First take you .pcf file and convert it:

pcf2vpnc /path/to/file.pcf > /etc/vpnc/file.conf

The file.conf will look like the following:

## generated by pcf2vpnc
IPSec ID your_id
IPSec gateway xxx.xxx.xxx.xxx
IPSec secret the_secret

IKE Authmode psk

## To add your username and password,
## use the following lines:
Xauth username your_username
Xauth password your_password

Keep in mind my company is using a user:password pair, so if yours is issuing certificates the configuration for vpnc will be different from what I’m writing here.

Everything what’s left is to launch the vpnc with filename as argument:

vpnc file

And that’s all, if everything went well you should be connected to your work network! :)

Tags: , ,

OpenSolaris: What I’ve got…

May 26th, 2008 by tripledes

After being testing OpenSolaris in a virtual machine I decided to install it on my laptop. I have to admit it’s really easy to install even getting the wifi card working was a piece of cake…30s work!

The system seems fast, stable and usable…but for my laptop I found a couple of problems:

  • SpeedStep is not supported for Pentium-m, so my CPU is always @1730MHz and hot, really hot.
  • My sound card seems supported but I haven’t got any sound from it yet, I have seen in OpenSolaris forums I should install OSS for Solaris x86.
  • I’m still trying to figure out how to play mp3 files without having to mess up my system, I was hoping adding some repositories would help on this one but no luck for me yet…

For now I haven’t got too much time for playing with it, but seems promising…I’ve been even thinking about migrate my current Gentoo server to OpenSolaris but I will test it before doing it I don’t wanna spend much time for nothing…;)

Flashing DD-WRT from OpenWRT

March 23rd, 2008 by tripledes

After I started to use OpenWRT/Kamikaze my WRT54GS has experienced some freezes, really annoying ones, so I decided to try out DD-WRT.

I needed to flash DD-WRT from command line as I had my OpenWRT without any web interface so after some reading around I have finally deduced a way to do it:

OpenWRT# cd /tmp
OpenWRT# wget http://www.dd-wrt.com/dd-wrtv2/downloads/stable/dd-wrt.v23%20SP2/mini/dd-wrt.v23_mini_wrt54gs.bin
OpenWRT# mtd -r write dd-wrt.v23_mini_wrt54gs.bin linux

Once the router is rebooted, DD-WRT’s web interface can be accessed at http://192.168.1.1 … let’s the configuring begin! ;)

Tags: , , ,

Linux: MegaUpload manager on your Linux box

March 10th, 2008 by tripledes

Today I have figured out how to download from megaupload without a Windoze machine.

What’s needed? just Wine and RapGet, configure you’re megaupload premium account (or rapidshare, etc) and start downloading whatever you want :).

HowTo?

$ wine RapGet.exe

And you’re done!

Tags: , ,

Z-Push, ActiveSync on your Apache

March 3rd, 2008 by tripledes

Z-Push
Z-push is a web application which will allow you to synchronize your Windows Mobile device against your own web server.

How to install it?
That’s an easy answer…just go to its downloads section, get the latest tarball (at the moment of writing was version 1.0).

Untar it on your web server document root, modify the file config.php in order to meet your needs, I just changed the backend to IMAP cause by now it’s the only thing I can do, sync the mail.

Changes:

$BACKEND_PROVIDER = "BackendIMAP";
...
define('IMAP_PORT', 993);
...
define('IMAP_OPTIONS', '/ssl/novalidate-cert/norsh');
...

This changes are just cause I’m using IMAP over SSL so the port is not 143 and IMAP options for PHP module are ssl for using ciphered connection, novalidate-cert cause I use my own self-signed certificate and norsh to avoid authenticated rsh or ssh connections.

Once changes has been made, the last thing left is to add an alias to your Apache configuration, it should look like:

Alias /Microsoft-Server-ActiveSync /path/to/document_root/z-push/index.php

Now it’s time for you to configure your Windows Mobile device against your web server, check this document to see an example and for further references about z-push configuration.

Next thing will be to configure SSL in order to get my email through a secure channel.

Red Hat yum mirror

February 26th, 2008 by tripledes

Sabayon Linux
So…you’ve got a bunch of Red Hat servers and need to…save bandwidth? save licenses? or even don’t want your servers go to Internet? Then all you need is to create a yum mirror in order to keep them all up to date ;).

What do we need?

  • Apache.
  • mrepo.
  • Some management licenses from Red Hat (these are needed if the system where you will hold the repositories is a different release from what you want to mirror.).

Let’s get started…
First we need to locate some space in order to hold all the RPMs we’re going to download, I have created a new logical volume with ~30GiB I hope it’ll be enough to have all the three mirrors I need.

The configuration for mrepo is found at /etc/mrepo.conf and will look like:

[main]
srcdir = /mrepo
wwwdir = /mrepo/www
confdir = /etc/mrepo.conf.d
arch = x86_64
mailto = root@localhost
smtp-server = localhost
rhnlogin = username:password

[rhel5es]
name = Red Hat Enterprise Linux $release Server ($arch)
release = 5
arch = i386
iso = rhel-$release-server-$arch-disc?.iso rhel-5.1-server-$arch-dvd.iso
metadata = repomd
updates = rhns:///rhel-$arch-server-$release
rpmforge = http://apt.sw.be/redhat/el5/en/$arch/RPMS.dag/

[4ES]
name = Red Hat Enterprise Linux ES $release Update 6 ($arch)
release = 4
arch = x86_64
iso = RHEL$release-U6-$arch-AS-disc?.iso
metadata = yum repomd
updates = rhns:///rhel-$arch-es-$release
rpmforge = http://apt.sw.be/redhat/el4/en/$arch/RPMS.dag/

[3ES]
name = Red Hat Enterprise Linux ES $release Update 9 ($arch)
release = 3
arch = i386
iso = rhel-$release-u9-$arch-as-disc?.iso
metadata = yum repomd
updates = rhns:///rhel-$arch-es-$release
rpmforge = http://apt.sw.be/redhat/el3/en/$arch/RPMS.dag/

The main section configures the environment for the local machine which will hold the mirrors, each of the next sections define the parameters for each release we’ll mirror. (Remember by now you should have installed mrepo, rpm -ivh mrepo-blahblah.rpm).

Once here, we need to create all the system identifications required for Red Hat to access to its repositories:
# gensystemid -u RHN_user -p RHN_password --release=3ES --arch=i386 /mrepo/3ES-i386/
# gensystemid -u RHN_user -p RHN_password --release=4ES --arch=x86-64 /mrepo/4ES-x86-64/
# gensystemid -u RHN_user -p RHN_password --release=5Server --arch=i386 /mrepo/rhel5es/

Now let’s suck from Red Hat:
# mrepo -ugvv (For getting everything)
# mrepo -ugvv repo_name (For just one repository)

The isos aren’t really needed but if you provide them will save some time to set up the mirrors. At this time we should configure our web server to allow clients access to repositories, I have created a virtual host called yum.domain.tld and looks like:

<VirtualHost *:80>
ServerName yum.domain.tld
DocumentRoot /mrepo/www
ServerAdmin admin@domain.tld
<Directory "/mrepo/www">
Options Indexes FollowSymlinks SymLinksifOwnerMatch IncludesNOEXEC
IndexOptions NameWidth=* DescriptionWidth=*
HeaderName HEADER.shtml
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/httpd/error_yum.log
CustomLog /var/log/httpd/access_yum.log combined
</VirtualHost>

To finish this configuration we need to set up clients, we’ll install yum and its dependencies (python-elementtree, python-sqlite, python-urlgrabber and sqlite), all can be found at Dag’s repository and configuration for our repository will be found in /etc/yum.repos.d/, it has to be called something.repo and will look like this:

[name]
name = Red Hat Enterprise $releasever
baseurl = http://yum.domain.tld/4ES-x86_64/RPMS.updates
enabled = 1
protect = 0
gpgcheck = 0

Once saved, just updating is needed:
# yum update

Well, that’s all…hope this will be useful!

UPDATE: I was having problems with 3ES servers asking for header.info file, they couldn’t find it on the mirror, after some messing around I did notice I haven’t had installed yum on the server, installing it solved the issue and now everything is working flawlessly.

Tags: , , , ,

Sabayon: E17!

February 7th, 2008 by tripledes

Sabayon LinuxIt’s been some time since I tried previous versions of Enlightenment, since then I have heard lots of good things about its 0.17 version (E17), so yesterday I decided to check it out.

Getting it installed on my Sabayon was easy thanks to Gentoo’s overlays. The process starts as follows:

# layman -a enlightenment


# emerge -Dpv e entrance

Here you can personalize your USE to fit your preferences…

# emerge -Dv e entrance

Then you’ll have to change your graphical login manager in /etc/conf.d/xdm:

DISPLAYMANAGER="entrance"

Reboot it and you’re done! :)

# /etc/init.d/xdm restart

Next time you login remember to select Enlightenment from session chooser ;)

Tags: , , ,

Kaiser: Windows Mobile 6.1 available!

January 31st, 2008 by tripledes

HTC
So again from XDA-Devs we can now start testing Windows Mobile 6.1!

I have flashed this morning while having breakfast (:P) Schap’s WM6.1 Pro 4.40 Beta for Kaiser, it seems quite fast, dunno yet about stability :)

WM6.1 it’s also available for HTC Hermes and Universal (sure it has to be for more devices but we just have those three at home :P)

Let’s flash!

Tags: , , , ,