Strony: [1]
Drukuj
Autor Wątek: Irda w linuxie  (Przeczytany 833 razy)
lukasz
Administrator Portalu
Miętowa sadzonka
*******
Offline Offline

Płeć: Mężczyzna
Distro: Linux Mint
Wiadomości: 63


Zobacz profil
« : Wrzesień 20, 2008, 02:51:58 »

Artykuł przeniesiony z portalu linuxmint.pl Autor: Tomek P.

Jak na razie aby wysłać coć przez irdę pod linuxem (np fotki z telefonu) trzeba w to włożyć trochę pracy. Ale tylko za pierwszym razem, pomęczymy się trochę, a potem przesyłanie staje się równie proste co pod winda.

 

Na początku instalujemy obexftp i wszystko co zwiazane z irdą a w szczególności pakiet ircp i obexftp.

Uruchamiamy menadżer pakietów (install software) i tam wpisujemy irda, zaznaczamy wszystkie pozycje z nią związane, a następnie to samo dla hasła "obex".

Następnie nadajemy sobie prawa roota w terminalu i

uruchamiamy nasza przeglądarkę plików (np wpisując "nautilus") i do pliku /etc/modules wklejamy


# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with “#” are ignored.

fuse
lp
sbp2

# IrDA over a normal serial port, or a serial port compatible IrDA port (SIR)
alias tty-ldisc-11 irtty
# IrCOMM (for printing, PPP, Minicom etc)
alias char-major-161 ircomm-tty # if you want IrCOMM support
# IRLAN
# But currently the IrLAN protocol is no longer maintained
# by the Linux/IrDA core team.
alias irlan0 irlan
# To be able to attach some serial dongles
# These values are hard-coded in irattach (not instance order)
alias irda-dongle-0 tekram # Tekram IrMate IR-210B
alias irda-dongle-1 esi # ESI JetEye
alias irda-dongle-2 actisys # Actisys IR-220L
alias irda-dongle-3 actisys # Actisys IR-220L+
alias irda-dongle-4 girbil # Greenwich GIrBIL
alias irda-dongle-5 litelink # Parallax LiteLink/ESI JetEye
alias irda-dongle-6 airport # Adaptec Airport 1000 and 2000
alias irda-dongle-7 old_belkin # Belkin (old) SmartBeam dongle
alias irda-dongle-8 ep7211_ir # Cirrus Logic EP7211 Processor (ARM)
alias irda-dongle-9 mcp2120 # MCP2120 (Microchip) based
alias irda-dongle-10 act200l # ACTiSYS Ir-200L
alias irda-dongle-11 ma600 # Mobile Action ma600
# To use the FIR driver. This applies only to the specific device!
#options nsc-ircc dongle_id=0×09 # NSC driver on a IBM Thinkpad laptop
# options nsc-ircc dongle_id=0×08 # HP Omnibook 6000
# alias irda0 nsc-ircc
# options smc-ircc ircc_irq= ircc_dma=
# alias irda0 smc-ircc
# options toshoboe max_baud=
# alias irda0 toshoboe
# options w83977af_ir io= io2= irq= qos_mtt_bits=
# alias irda0 w83977af_ir
# IrNET module…
alias char-major-10-187 irnet # Official allocation of IrNET
modules .conf

#

# IrDA stuff…
alias tty-ldisc-11 irtty
alias char-major-161 ircomm-tty # if you want IrCOMM support
# These values are hard-coded in irattach (not instance order)
alias irda-dongle-0 tekram # Tekram IrMate IR-210B
alias irda-dongle-1 esi # ESI JetEye
alias irda-dongle-2 actisys # ACTiSYS IR-220L
alias irda-dongle-3 actisys # ACTiSYS IR-220L+
alias irda-dongle-4 girbil # Greenwich GIrBIL
alias irda-dongle-5 litelink # Parallax LiteLink/ESI JetEye
alias irda-dongle-6 airport # Adaptec Airport 1000 and 2000
alias irda-dongle-7 old_belkin # Belkin (old) SmartBeam dongle
alias irda-dongle-8 ep7211_ir # Cirrus Logic EP7211 Processor (ARM)
alias irda-dongle-9 mcp2120 # MCP2120 (Microchip) based
alias irda-dongle-10 act200l # ACTiSYS Ir-200L
alias irda-dongle-11 ma600 # Mobile Action ma600
# IrNET module…
alias char-major-10-187 irnet # Official allocation of IrNET

alias tty-ldisc-11 irtty-sir
alias char-major-161 ircomm-tty
alias irda-dongle-0 tekram-sir
alias irda-dongle-1 esi-sir
alias irda-dongle-2 actisys-sir
alias irda-dongle-3 actisys-sir
alias char-major-10-187 irnet

potem wklejamy do konsoli

irattach /dev/ttyUSB0 -d ma600 -s

a następnie odpalamy irde przez wklejenie w terminalu
(każdą linijkę osobno zatwierdzając enterem) :

sudo su
irattach /dev/ttyUSB0 -d ma600 -s
cd /dev
MAKEDEV irda
echo 9600 > /proc/sys/net/irda/max_baud_rate

ircp-tray

 

Niestety tę ostatnią czynność trzeba powtarzać za każdym razem gdy po ponownym uruchomieniu komputera chcemy odpalić irdę. Teraz na telefonie wybieramy obrazek, który chcemy wysłać i w opcjach wybieramy "wyślij przez irdę". Na pulpicie pojawi się okienko gdzie i pod jaka nazwa zapisać plik i jazda!
http://img509.imageshack.us/img509/1791/zrzutekranujt7.png
Zapisane

Strony: [1]
Drukuj
Skocz do: