Showing posts with label hardware. Show all posts
Showing posts with label hardware. Show all posts

Saturday, February 23, 2008

Use your phone as remote control for Ubuntu

If your phone supports Bluetooth you can use it as remote control for your Ubuntu system.

You can use program AnyRemote for this. First, download it from here:
http://sourceforge.net/project/showfiles.php?group_id=162923
You also can download files from here:
anyremote_3.6-2_i386.deb
anyremote-data_3.6-2_i386.deb
anyRemote.jar
ganyremote_2.2-2_i386.deb

Install packages by double clicks. Then upload jar-file to your phone.

You must install pyBluez too:
sudo apt-get install python-bluez

Now you can launch ganyremote and see the icon on the panel. If you click it you can see the window with the programs list. Double click on item which programs you want to control.



After that launch the program on your phone and select Connect. Now your can control selected program from your phone. This is screenshot from Nokia E50:



Any additional information about the project you can find here:
http://anyremote.sourceforge.net/docs.html

Ubuntu 7.10 and Nokia E50

Nokia E50 is based on SymbianOS 9.1 (s60 by third generation). It's an awsome compact smartphone.



Now I tell you how to connect it to Ubuntu for synchronizing contacts and working with files via Bluetooth.

You can copy files to smartphone and from it very easy. You need simply click right mouse button on Bluetooth icon on the panel and select Browse Device. After that you can copy your files with the help of Nautilus file manager. Before this you have install obex packages:

sudo apt-get install obexfs gnome-vfs-obexftp



Then we can configure synchronise contacts on E50 and Evolution.

Add repositories:

deb http://opensync.gforge.punktart.de/repo/opensync-0.21/ feisty main
deb-src http://opensync.gforge.punktart.de/repo/opensync-0.21/ feisty main


Install GPG-key:

gpg --keyserver hkp://subkeys.pgp.net/ --recv-keys CB210090B029CB84
gpg --export CB210090B029CB84 | sudo apt-key add -


Update packages database:
sudo apt-get update

Then install:
sudo aptitude install opensyncutils opensync-plugin-evolution opensync-plugin-syncml multisync-tools multisync0.90 multisync-gui

Useing Multisync-gui (Programs -> Standards) for configure multisync.
1. Add new group: nokia
2. Add plugins Evolution and SyncML over OBEX client



Then configure plugins. You have know the MAC-adress of your smartphone
hcitool scan

Now you can something like that
XX:XX:XX:XX:XX:XX Phone name

Use multisync-gui, go to syncml-obex-client plugin and insert this text in the window:

<config>
<bluetooth_address>XX:XX:XX:XX:XX:XX</bluetooth_address>
<bluetooth_channel>10</bluetooth_channel>
<interface>0</interface>
<identifier>PC Suite</identifier>
<version>1</version>
<wbxml>1</wbxml>
<username></username>
<password></password>
<type>2</type>
<usestringtable>1</usestringtable>
<onlyreplace>0</onlyreplace>
<recvLimit>10000</recvLimit>
<maxObjSize>0</maxObjSize>
<contact_db>Contacts</contact_db>
<calendar_db>Calendar</calendar_db>
<note_db>Notes</note_db>
</config>


Where XX:XX:XX:XX:XX:XX is the MAC-adress of your smartphone.

That's all. Now you can press Update for synchronise.

Canon PIXMA iP1800 and Ubuntu

PIXMA iP1800 is a good cheap inkjet printer. And it work in Ubuntu very well.

1. Connect printer to USB, switch it on, open it and insert cartridges.

2. Now you can see a message in top right coner on your screen. It tell that Canon iP1800 was connected but driver was not found. Press the button for add printer to system and use the standart text driver.

3. Download iP1800 driver
cnijfilter-common_2.70-2_i386.deb
cnijfilter-ip1800series_2.70-2_i386.deb

4. Install packages by double click.

5. Go to System -> Administration -> Printing, select iP1800 and press the Change button.

6. Select /usr/share/cups/model/custom/canonip1800.ppd



7. In the preferences window press Apply.

That's all. Your Canon iP1800 is ready for work.

Thursday, February 21, 2008

Using Canon LBP-810 (LBP-1120) in Ubuntu

Printing wint LBP-810/1120 in Linux is not very easy but you can do it.

1. Go to http://software.canon-europe.com/ and download driver for LBP-1120. After unpacking you will see two files: cndrvcups-capt-1.30-1.i386.rpm та cndrvcups-common-1.30-1.i386.rpm.
2. For converting rpm packages to deb you will need alien utility:
sudo apt-get install alien

3. Convert they to deb:
sudo alien *.rpm

4. Now you can install they by double click.
5. Restart CUPS:

sudo /etc/init.d/cupsys stop
sudo /etc/init.d/cupsys start


6. Create necessary directories for ccpd and captmon:

sudo mkdir /var/ccpd
sudo mkdir /var/captmon
sudo mkfifo /var/ccpd/fifo0
sudo chmod 777 /var/ccpd/fifo0


7. Select System -> Administration -> Printing and add the new printer, then select /usr/share/cups/model/CNCUPSLBP1120CAPTJ.ppd and write a model name LBP-1120 CAPT ver.1.3



8. Configure ccpd for work with printer:
sudo /usr/sbin/ccpdadmin -p LBP1120-CAPT-ver.1.3 -o /dev/usb/lp0

As result will be something like that:

CUPS_ConfigPath = /etc/cups/
LOG Path = None
UI Port = 39787

Entry Num : Spooler : Backend : FIFO path : Device Path : Status
----------------------------------------------------------------------------
[0] : LBP1120-CAPT-ver.1.3 : usb : //Canon/LBP-810 : /dev/usb/lp0 : New!!


9. Then you must edit /etc/init.d/ccpd script for Ubuntu/Debian compatibility.
sudo gedit /etc/init.d/ccpd
Replace that file by this text:

#!/bin/sh
#
# ccpdstartup script for Canon Printer Daemon for CUPS
#
#Modified for Debian GNU/Linux
#by Raphael Doursenaud .

DAEMON=/usr/sbin/ccpd
LOCKFILE=/var/lock/subsys/ccpd
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=ccpd
DESC="Canon Printer Daemon for CUPS"

test -f $DAEMON || exit 0

case $1 in
start)
echo -n "Starting $DESC: $NAME"
start-stop-daemon --start --quiet --exec $DAEMON
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
echo "."
;;
status)
echo "$DESC: $NAME:" `pidof $NAME`
;;
restart)
echo -n "Restarting $DESC: $NAME"
start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --exec $DAEMON
echo "."
;;
*)
echo "Usage: ccpd {start|stop|status}"
exit 1
;;
esac

exit 0


Test new script:
sudo /etc/init.d/ccpd start

Use this command for launch CAPT monitor
sudo captstatusui -P LBP1120-CAPT-ver.1.3
where LBP1120-CAPT-ver.1.3 is the printer name (you may use other name).



ccpd deamon must start averytime when Ubuntu start. Fot configuring this you csn use Boot-Up Manager (BUM).
sudo apt-get install bum

Then go to System -> Administration -> Boot-Up Manager, launch it and select Canon CAPT Printer Driver for Linux v1.30.



Then you must configure AppArmor (for Gutsy):
sudo aa-complain cupsd

That's all. Now you can use your LBP-810/1120 in Ubuntu.