I was just wondering if this is possible.As it is, i use hp IPAQ h6340 everyday.A very nifty device: GSM, integrated wifi and bluetooth(gives you a possibility to run eg. WiFiFoFum with additional bluetooth GPS), to say nothing about that you actually have an office while you're on the road.Now, as a long time MSWin user, and a recent Linux(read: BT2) convertite, i had to have some software to sync my IPAQ while in BackTrack2.After googling a while, i've discovered a SynCE sourceforge site, which is less than frequently updated, and of course lacks BT2 packages, and decided to try to get SynCE to work under BT2, and this is the way(after a lengthy thread of trial and error):
Not every kind of hpIPAQ is supported by SynCE.Put your IPAQ into a cradle,plug it in the first available USB port and make sure that IPAQ is recognized at all:
on my machine, i get the following output:
Code:
Bus 2 Device 4: ID 03f0:1016 Hewlett-Packard Jornada 548 / iPAQ HW6515 Pocket PC
Bus 2 Device 3: ID 047d:102f Kensington
...and so on
...which means you're ok to continue.Then, make sure that your kernel supports your IPAQ.BT2 original 2.6.20 kernel supports it by default:
Code:
grep -i ipaq /usr/src/linux/.config
this is what you should get:
Code:
CONFIG_USB_SERIAL_IPAQ=m
If all went well,switch off your IPAQ, and get the following files:
dynamite-0.1.tar.gz
libmimedir-0.4.tar.gz
synce-dccm-0.9.1.tar.gz
orange-0.3.tar.gz
synce-kde-0.9.1.tar.gz
synce-libsynce-0.9.1.tar.gz
synce-rra-0.9.1.tar.gz
synce-serial-0.9.1.tar.gz
synce-librapi2-0.9.1.tar.gz
Make a new dir under /root, and get the required files.
Code:
mkdir synce
cd synce
wget hxxp://surfnet.dl.sourceforge.net/sourceforge/synce/dynamite-0.1.tar.gz
wget hxxp://surfnet.dl.sourceforge.net/sourceforge/synce/libmimedir-0.4.tar.gz
wget hxxp://surfnet.dl.sourceforge.net/sourceforge/synce/synce-dccm-0.9.1.tar.gz
wget hxxp://surfnet.dl.sourceforge.net/sourceforge/synce/orange-0.3.tar.gz
wget hxxp://surfnet.dl.sourceforge.net/sourceforge/synce/synce-kde-0.9.1.tar.gz
wget hxxp://surfnet.dl.sourceforge.net/sourceforge/synce/synce-libsynce-0.9.1.tar.gz
wget hxxp://surfnet.dl.sourceforge.net/sourceforge/synce/synce-rra-0.9.1.tar.gz
wget hxxp://surfnet.dl.sourceforge.net/sourceforge/synce/synce-serial-0.9.1.tar.gz
wget hxxp://surfnet.dl.sourceforge.net/sourceforge/synce/synce-librapi2-0.9.1.tar.gz
Or you can go to SynCE sourceforge site, and download these files yourself.
Now, you'll have to configure and install all of these files, in exact order, otherwise errors will happen en-mass:
Code:
tar xf synce-libsynce-0.9.1.tar.gz
cd synce-libsynce-0.9.1
sh ./bootstrap
sh ./configure
make && make install
cd ..
tar xf synce-librapi2-0.9.1.tar.gz
cd synce-librapi2-0.9.1
sh ./bootstrap
sh ./configure
make && make install
cd ..
tar xf libmimedir-0.4.tar.gz
cd libmimedir-0.4
sh ./configure
make && make install
cd ..
tar xf synce-rra-0.9.1.tar.gz
cd synce-rra-0.9.1
sh ./bootstrap
sh ./configure
make && make install
cd ..
tar xf synce-serial-0.9.1.tar.gz
cd synce-serial-0.9.1
sh ./bootstrap
sh ./configure
make && make install
cd ..
tar xf synce-dccm-0.9.1.tar.gz
cd synce-dccm-0.9.1
sh ./bootstrap
sh ./configure
make && make install
cd ..
tar xf orange-0.3.tar.gz
cd orange-0.3
sh ./bootstrap
sh ./configure
make && make install
cd ..
tar xf dynamite-0.1.tar.gz
cd dynamite-0.1
sh ./bootstrap
sh ./configure
make && make install
OK, this should do it.Now try if it works.First, do the ldconfig:
Now run these commands to reload the ipaq module:
Code:
/sbin/rmmod ipaq
/sbin/modprobe ipaq
Make sure you do the following.BT2 just doesn't have this folder:
Code:
mkdir /etc/ppp/peers
Connect(switch on if it is still in cradle and/or connected to USB) your IPAQ again.
Now run freshly installed synce-serial-config.The command below is working on my machine, on the original BT2 system.It may not work on yours.If it doesn't work or if you get the message "message synce-serial-config was unable to find a character device named...", try ttyUSB0, usb/tts/0, usb/ttyUSB0 instead of tts/USB0.
Code:
/usr/local/bin/synce-serial-config tts/USB0
If all this succeeded so far, run dccm.If you run dccm without the "-r" switch, you'll get an error telling you that you're not supposed to run dccm as a root.Well, i just ignored this and started the connection:
Code:
/usr/local/bin/dccm -r
If dccm doesn't complain, just run this and you're ready to go:
Code:
/usr/local/bin/synce-serial-start
Now you'll should see this message in console:
Code:
synce-serial-start is now waiting for your device to connect
Just look at your IPAQ and ActiveSync should start.
If you get the familiar sync-in-progress icon on IPAQ, then all went perfect, and just type this to check if this really works.This command display stats about your IPAQ :
Code:
/usr/local/bin/pstatus
If you get the following (or similar) output then open a nice bottle of wine:
Code:
Version
=======
Version: 4.20.0 (Unknown)
Platform: 3 (Windows CE)
Details: ""
System
======
Processor architecture: 5 (ARM)
Processor type: 2577 (StrongARM)
Page size: 0x10000
...blabla
Cheeeers!
Now you can run the following commands at /usr/local/bin/:
Code:
pls # lists IPAQ directory contents
pmkdir # makes a directory on IPAQ
prmdir # removes an empty directory from IPAQ
pcp # copies files on IPAQ
pmv # moves (renames) files on IPAQ
prm # remove file on IPAQ
prun # runs a program on IPAQ
synce-install-cab # installs a .cab file on an IPAQ
To disconnect (as stated at SynCE Wiki):
"Disconnect with the appropriate action on your PDA"
"Run killall -HUP dccm from the command line"
"Run synce-serial-abort. Please note that this command is only to be used when everything else fails. It also seems like it only works for USB connections while the USB cable is connected."
End.
But wait...
If you're a GUI person, there's more for you:
SynCE has a wrapper for KDE.Very convenient indeed.It is called "Raki".In my native language it means a very strong spirit(a liquor- as an alcoholic beverage).It even has the same icon as MS ActiveSync
If you were wondering why the .rpm packages, it is just because there aren't any SynCE distro packages for BT2.You just have to convert .rpm to .tgz.
First you have to get File Alteration Monitor (see hxxp://oss.sgi.com/projects/fam/index.html).BT2 unfortunately doesn't have it:
Code:
wget hxxp://gd.tuwien.ac.at/kde/contrib/fam-2.6.4-2kde.i386.rpm
or get the source and compile it yourself
Code:
wget hxxp://mirrors.ibiblio.org/pub/mirrors/kde/contrib/fam-2.6.4-2kde.src.rpm
now, do the install:
Code:
rpm2tgz fam-2.6.4-2kde.i386.rpm
installpkg fam-2.6.4-2kde.i386.tgz
make a ldconfig again.
Now get to the real deal.Get the GUI:
Code:
wget hxxp://surfnet.dl.sourceforge.net/sourceforge/synce/synce-kde-pack-0.9.1-6.i586.rpm#
rpm2tgz synce-kde-pack-0.9.1-6.i586.rpm
installpkg synce-kde-pack-0.9.1-6.i586.tgz
All done!
Now if the dccm is still running, do the:
Switch off you IPAQ and switch it on again (i'd say reset, but then it would mean soft or hard reset)
Start dccm as root again:
Start Raki
The Rakis' splash should appear on the screen, along with the grayed taskbar icon-which tells you IPAQ is not connected.Just select a "dccm" option button whan asked, and ignore any errors.
Start synce-serial-start:
Now Rakis' tray icon should colour itself, and thats it!
Yes, and change hxxp to http...