Results 1 to 9 of 9

Thread: Another question(s) from a linux n00b

  1. #1
    Registered User El Salsero Gringo's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,881
    Rep Power
    12

    Another question(s) from a linux n00b

    All hail the great *n1x exp3rts of the f0rum. I stand before you stripped of my cloak of experience in this strange yet powerful land of 2>&3 and #!/bin/bash.

    I would like to be able to divert both stdin and stdout to /dev/rfcomm0 (a bluetooth-connected device) so I can use the keyboard as a terminal for it. What shell command will achieve that? (Then I'm going to use netpipes to connect /dev/rfcomm0 to a tcp port, but one step at a time.)

    Secondly, I have been trying to setup vncserver (also vnc4server) so I can use a windows vnc client as vi is driving me a little bit nutty. I am using Debian 3.1r1 (sarge) but the logfile for vncserver indicates that no font files are being found, not even the default font 'fixed'. If anyone has experience of vnc and can give me some help by pm I will be forever in their debt.

  2. #2
    Lovely Moderator ducasi's Avatar
    Join Date
    Feb 2005
    Location
    Glasgow
    Posts
    10,015
    Rep Power
    14

    Re: Another question(s) from a linux n00b

    Not sure I completely understand what you're trying to do...

    A bluetooth keyboard as an output device?

    Are you wanting to interact with Debian through the bluetooth connection, or interact with another device?

    As for vnc, I'm not sure how that will save you from vi, but most vnc servers on Unix that i've seen, work by pretending to be a X server, and so will need a set of fonts, or a font server...
    Let your mind go and your body will follow. – Steve Martin, LA Story

  3. #3
    Registered User El Salsero Gringo's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,881
    Rep Power
    12

    Re: Another question(s) from a linux n00b

    Quote Originally Posted by ducasi
    Not sure I completely understand what you're trying to do...

    A bluetooth keyboard as an output device?

    Are you wanting to interact with Debian through the bluetooth connection, or interact with another device?

    As for vnc, I'm not sure how that will save you from vi, but most vnc servers on Unix that i've seen, work by pretending to be a X server, and so will need a set of fonts, or a font server...
    Got my () central heating controller built, installed, and working. It's configured via a bluetooth interface - using the rfcomm protocol. That means I can talk to it by BT browsing for it, pairing, binding its rfcomm service and accessing it via a "virtual" COM13 and Hyperterm on my PC, and /dev/rfcomm0 from my (new) linux install.

    The idea is then to pipe the input/output of a TCP socket to rfcomm0 so I can 'telnet' to the controller from anywhere I please using the Linux box as a middleman. (This is a temporary solution, until I can write or modify a TCP stack for a microcontroller and build the hardware to run it.)

    Back in Linux-world, netpipes will (using 'faucet') open a socket, as a daemon, and wait for incoming connections. Faucet's other argument is a expression to execute when the remote client connects to which input and output is directed in lieu of stdin and stdout.

    So I need the shell command that will take stdin and send it to /dev/rfcomm0 and take output from /dev/rfcomm0 and direct it to stdout. Faucet will do the rest. Currently I can do it one way, or the other (cat < /dev/rfcomm0 for instance) but I don't know how to do both.

    A nice option would be to parse for, say, the string 'done' and exit.

    I hope vnc will save me from vi because I may be able to find an X editor to run over it. The debian package manager installs loads of stuff with vnc, including X bit'n'bobs, but it doesn't seem to get round to any fonts. Or at least, if it does, I can't get vnc to look at them.
    Last edited by El Salsero Gringo; 24th-March-2006 at 06:22 PM.

  4. #4
    Lovely Moderator ducasi's Avatar
    Join Date
    Feb 2005
    Location
    Glasgow
    Posts
    10,015
    Rep Power
    14

    Re: Another question(s) from a linux n00b

    OK... What you really want then is a simple terminal emulator for the linux box to talk to the remote host... Maybe ckermit, or minicom...

    Or perhaps ser2net is what you need...

    As for vnc, I dunno... Could you run an X server on your PC? Or use Samba to edit the files on Windows?
    Let your mind go and your body will follow. – Steve Martin, LA Story

  5. #5
    Registered User El Salsero Gringo's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,881
    Rep Power
    12

    Re: Another question(s) from a linux n00b

    Quote Originally Posted by ducasi
    OK... What you really want then is a simple terminal emulator for the linux box to talk to the remote host... Maybe ckermit, or minicom...
    Been trying minicom, can't get it to open the rfcomm device. I think, on your suggestion that ser2net is the way to go. Thanks for the idea.
    Quote Originally Posted by Ducasi
    As for vnc, I dunno...
    Got it sorted now - had to install the right fonts as well.

  6. #6
    Registered User El Salsero Gringo's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,881
    Rep Power
    12

    Re: Another question(s) from a linux n00b

    And as for the anonymous repper who wonders how I can possibly not be single: if you have to ask...

  7. #7
    Papa Smurf
    Join Date
    Jan 2002
    Location
    Planet Scathe
    Posts
    12,528
    Blog Entries
    6
    Rep Power
    18

    Re: Another question(s) from a linux n00b

    Quote Originally Posted by El Salsero Gringo
    Got my () central heating controller built,
    g33k central What have you got computer controlled now then ?

    Im considering the lights myself but my current projects are a full arcade emulator cabinet for a friend and remote controled helicopter with on board camera for the garden in better weather (got all the bits, just need the time )

  8. #8
    Registered User El Salsero Gringo's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    4,881
    Rep Power
    12

    Re: Another question(s) from a linux n00b

    Quote Originally Posted by Dreadful Scathe
    g33k central What have you got computer controlled now then ?

    Im considering the lights myself but my current projects are a full arcade emulator cabinet for a friend and remote controled helicopter with on board camera for the garden in better weather (got all the bits, just need the time )
    Lights and heating - but they're controlled by embedded systems, not computer. Otherwise this place would be dark and cold every time a computer crashed.

  9. #9
    Registered User Clive Long's Avatar
    Join Date
    Jan 2005
    Location
    London-innit
    Posts
    1,467
    Rep Power
    11

    Re: Another question(s) from a linux n00b

    Quote Originally Posted by El Salsero Gringo
    Lights and heating - but they're controlled by embedded systems, not computer. Otherwise this place would be dark and cold every time a computer crashed.
    I've seen it.

    Very clever, but more than a little disturbing when he can dim the lights from his mobile phone.

    Tin foil hat ...... on!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Linux DVD to avi converter
    By Clive Long in forum Geeks' Corner
    Replies: 2
    Last Post: 24th-September-2006, 09:46 PM
  2. Another rep question
    By Jazz_Shoes (Ash) in forum Forum technical problems / Questions / Suggestions..
    Replies: 8
    Last Post: 16th-April-2006, 05:28 PM
  3. Linux: automatic modem configuration
    By El Salsero Gringo in forum Geeks' Corner
    Replies: 14
    Last Post: 16th-March-2006, 08:50 AM
  4. question
    By foksie in forum Beginners corner
    Replies: 8
    Last Post: 30th-January-2006, 11:35 AM
  5. Open Source / Linux CD backup that spans CD-R
    By Clive Long in forum Geeks' Corner
    Replies: 0
    Last Post: 21st-December-2005, 08:29 AM

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •