Bluetooth Wireless PC card 3COM 3CRWB6096

After the ugly-cheap-o-dongle-microtune I bought on Ebay for 20€ inc P&P a PCMCIA 3Com bluetooth card:

bt3como.jpgbt3comc.jpg
The main advantage is the retractable antenna and the PCMCIA small size doesn’t protrude from the laptop ( very interesting, compared to the usb stick)
I assume you already install all the previous software needed in the previous topic.

You should install all this packages:

sudo apt-get install gnome-bluetooth obexserver bluez-utils bluez-passkey-gnome

And add bt-applet in start up session, to allow pairing.
Start the blutooth service.

sudo sh /etc/init.d/bluetooth start

Insert the PC card, and type:

tail /var/log/syslog

You will probably get that:

pccard: PCMCIA card inserted into slot 0
pcmcia: registering new device pcmcia0.0
bt3c_open: Firmware request failed

You need to download the 3Com firmware as detailed to the bluez website:

3com pcmcia driver

The driver for the 3Com and HP Bluetooth PCMCIA card is called bt3c_cs and to make this device working a firmware download is needed. Due the licence issue the firmware is not distributed with any of the BlueZ packages. The firmware file can be found at the Windows driver distribution or on the driver CD-ROM. The following command will extract the BT3CPCC.bin file into the right place on the local file system:

sudo sh
unzip -p btp1_1en.exe \
Drivers.W2k/BT3CPCC.bin > /lib/firmware/BT3CPCC.bin

The 3Com Bluetooth card 3.0 (3CRWB6096B) will not work with this driver. This card is a simple serial port based Bluetooth PCMCIA card and must be used together with the hci_uart driver.

And it works straight , that means, you can scann the service available.

hcitool scan
Scanning …
00:16:BC:D7:FC:18 Timothee-Nokia

sudo l2ping 00:16:BC:D7:FC:18
Ping: 00:16:BC:D7:FC:18 from 00:04:76:E1:4C:5D (data size 44) …
0 bytes from 00:16:BC:D7:FC:18 id 0 time 30.42ms
0 bytes from 00:16:BC:D7:FC:18 id 1 time 32.10ms
0 bytes from 00:16:BC:D7:FC:18 id 2 time 30.33ms
3 sent, 3 received, 0% loss

sudo sdptool browse 00:16:BC:D7:FC:18
Browsing 00:16:BC:D7:FC:18 …

Then you can install Phone Manager to send SMS from your PC.

Or also Wammu is a very good phone manager, compatible with nokia to manage sms, contact , sms, todos and also calendar.

Select in device settings, the mac address and bluephonet as connection.
Here appear a problem, the need of pairing the device, when you try either from the phone or from the computer, it fails after asked you for the PIN.

To solve it, edit the file to enable and set a new pin:

sudo gedit /etc/bluetooth/hcid.conf

And in the file, be sure to have:

# Automatically initialize new devices
autoinit yes;
# Pairing mode
pairing multi;

# Default PIN code for incoming connections
passkey “1234”; # or the pin you wish

References:

http://www.bluez.org/

http://www.teaparty.net/technotes/blue-gprs.html

http://www.symbianos.org/cgi-bin/viewcvs.cgi/vaio_vx71p/index.html?rev=1.5

ENE CB-712/4 card reader issue : Hibernate mode interrupted

Still running with a Toshiba Satellite M60-103 embbeding a ENE CB-712/4 card reader who doesn’t work with Ubuntu

To check the model of your reader:

lspci -v | grep ENE
06:04.0 CardBus bridge: ENE Technology Inc CB-712/4 Cardbus Controller (rev 10)
06:04.1 FLASH memory: ENE Technology Inc ENE PCI Memory Stick Card Reader Controller (rev 01)
06:04.2 Class 0805: ENE Technology Inc ENE PCI Secure Digital Card Reader Controller (rev 01) (prog-if 01)
06:04.3 FLASH memory: ENE Technology Inc FLASH memory: ENE Technology Inc: (rev 01)
06:04.4 FLASH memory: ENE Technology Inc Unknown device 0551 (rev 01)

And If you get this error while hibernating:

[17233006.828000] mmc0: Got command interrupt even though no command operation was in progress.
[17233006.828000] mmc0: Please report this to .
[17233006.828000] mmc0: Card is consuming too much power!
[17233006.828000] mmc0: Unexpected interrupt 0x00800000. Please report this to .

So needed to disable the  mmc_core: sdhci module

sudo rmmod sdhci
sudo sh -c ‘echo blacklist sdhci >> /etc/modprobe.d/blacklist’

Constant Hard Drive activity every 3sec / Ubuntu

I’m running with a laptop and Ubuntu 6.10, and during the night a very small access to the HD every 3-5 sec is annoying, plus can maybe shorten the hdd life time.

This is a bug is oppened:

https://launchpad.net/ubuntu/+source/dbus/+bug/17878

You can check if your are involved, type:

sudo hdparm -y /dev/hda

or (for sata)

sudo hdparm -y /dev/sda

to stop then hard drive wich should spin down and up just after a while.

A temporary solution is to enable the laptop_mode, but the hdd stop after 5sec, a bit annoying.

sudo laptop_mode start

http://samwel.tk/laptop_mode/

and then edit this file:

/etc/laptop-mode/laptop-mode.conf

To makes it start on boot and set the halt drive time at 10 min

Apt get without internet ?

This tool seems great to achieve this issue : how to apt-get without internet (with all dependencies problems of course) ?

http://aptoncd.sourceforge.net/

Have you ever felt that there is no life without APT? Well, if you’d suddenly lost conection to the internet, how would you install new packages? What about dependencies? You’ve just finished installing Ubuntu and configured it to a rad look, with all your favorite applications? For some reason you now have to re-install it? Feel like you have to download all of your favorite programs again?

Free remote desktop solutions

A very good article about free / open source solutions to manage a remote desktop in a graphical way. Overall, it’s oriented to linux computers, where there is a lack of uniformed or massively adopted solution.

There are a wide range of remote desktop applications that are available that can be used to connect to Windows environment but there aren’t too many that can be used to remote desktop from Linux to Linux or Windows to Linux. With this I mean, getting entire desktop of remote Linux environment on your local workstation.

Most people who are used to a Unix-style environment know that a machine can be reached over the network at the shell level using utilities like telnet or ssh. And some people realize that X Windows output can be redirected back to the client workstation. But many people don’t realize that it is easy to use an entire desktop over the network. There are a couple of open source applications that can easily do this for you.

Here is a short list of applications that can be used.

1) VNC (Virtual Network Computing) is a remote display system which allows the user to view the desktop of a remote machine anywhere on the internet. It can also be directed through SSH for security.

Basically you install VNC server on the server and install client on your local PC. Setup is extremely easy and server is very stable. On client side, you can set the resolution and connect to IP of VNC server. It can be a bit slow compared to Windows remote desktop and also has the tendency to take more time refreshing over low-bandwidth links. All in all VNC is an amazing piece of free software that gets the job done.

There is RealVNC , TightVNC and UltraVNC. Each has it’s advantages and disadvantages. Most popular one is RealVNC but if you’re upto it, experiment with all three and choose the one that works for you best. By default, communication between client and server is in clear text on port 5900. However, you can easily route all traffic via SSH tunnel. Here is a quick way of setting it up if you have access to command line shell:

ssh -ND 5900 @remote.server.com

When you get prompted, enter your password. Pop open VNC client and connect to ‘localhost’. This’ll route your connection to VNC server on remote machine.

You can download VNC from:

  1. http://www.realvnc.com/download.html
  2. http://www.tightvnc.com/download.html
  3. http://www.uvnc.com/

2) Then there is FreeNX. FreeNX is a system that allows you to access your desktop from another machine over the internet. You can use this to login graphically to your desktop from a remote location. One example of its use would be to have a FreeNX server set up on your home computer, and graphically logging in to the home computer from your work computer, using a FreeNX client. It provides near local speed application responsiveness over high latency, low bandwidth links.

FreeNX can be configured to run via SSH without any tunneling. It binds to your existing SSH install. Instead of guiding you through the installation of FreeNX in this article, you can visit the following URLs that’ll guide you through the installation on Ubuntu:

  1. https://help.ubuntu.com/community/FreeNX
  2. http://ubuntuforums.org/showthread.php?t=97277&highlight=freenx
  3. http://freenx.berlios.de/ (FreeNX homepage)

3) The third free application is 2X Terminal Server for Linux. 2X TerminalServer for Linux is an Open Source project, licensed under the GPL and is free of charge. As far as performance goes, NoMachine’s technology is on par with Windows’ own Remote Desktop Protocol (RDP) suite, better than VNC. Both X2 and FreeNX is based on NoMachine technology.

Here are some quick links if you’re interested in using this software:

  1. Download at http://www.2x.com/terminalserver/download.htm
  2. Forum is at http://www.2x.com/forums

4) The last but not least at all is XDMCP. The X Display Manager Control Protocol uses UDP port 177. Compared to the list above, it’s not as easy to setup for remote desktop but it’s the original way of doing this on Linux. You can get setup instructions and other tips in the following URL:

  1. http://www.tldp.org/HOWTO/XDMCP-HOWTO/intro.html

In conclusion, there are many commercial products that are available as well. But this article is only based on open source products that can be freely used with no strings attached.

source

Editer/modifier ses PDF sous Ubuntu

Comment éditer ses PDF :

pdfedit vous permettra de modifier vos fichiers PDF, soit directement via une interface graphique, soit à l’aide de scripts pour automatiser les modifications, par exemple.

Grâce au forum anglophone, on peut récupérer un paquet compilé pour Ubuntu Edgy.

Il est possible de rajouter du texte, des pages d’autres documents, supprimer des textes,…

Je vous laisse découvrir le logiciel par vous même. Après l’avoir installé en double cliquant sur le fichier installé, lancez la commande pdfedit

Personnellement, l’option “Save copy” pour ne pas modifier le fichier original n’a pas fonctionné chez moi. Si vous voulez gardez l’original, je vous conseille de faire préalablement une copie de sauvegarde.

source