Author Topic: network connectivity through usb?  (Read 5135 times)

fadlouni

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • http://cce2000.homelinux.com
network connectivity through usb?
« on: February 18, 2004, 03:18:50 pm »
hi folks.

just got the zaurus today. i\'ve set it up with my linux laptop with usb.
i can ping my zaurus now.
i changed the zaurus ip address to be 192.168.0.2 in the pc-link settings, usb0 on my laptop is 192.168.0.1. i configured NATing (masquarading) on my linux box.

problem is that i don\'t have a CF/SD card, neither a CF wireless/ethernet card. Since i don\'t have any of those then i can\'t install any ipk yet, so i don\'t have telnet/ssh servers yet on my Z. but i want to be able to browse the net over my usb0 and ftp/scp files over to my z to install them.

is there a way i can access my Z now over usb so i can setup networking in it?

Regards,
Fadi

jchung

  • Full Member
  • ***
  • Posts: 137
    • View Profile
network connectivity through usb?
« Reply #1 on: February 18, 2004, 03:57:29 pm »
There is a FAQ about it but I think the site is down now.. http://www.zauruszone.com/howtos/linux_eth...usb-howto.shtml
C700 w/ Cacko 1.21b | 5500 w/ tkcROM
C760 w/ Cacko 1.21b
Lexar 256MB SD | Viking 1GB CF
Netgear MA701 WiFi | Ambicom WL1100C WiFi
Sharp CE-AG06 Camera | PDAir Leather Case | PDAir 3 in 1 stylus | G2 PDA Screen Protector

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
network connectivity through usb?
« Reply #2 on: February 19, 2004, 02:24:40 am »
Which ROM do you have? Assuming you can ping then - if you have OZ you can use sftp or ftp to transfer stuff (and ssh for a terminal), if it\'s a Sharp 2.xx ROM you can use ftp (transfer the terminal app and enable remote root telnet, etc.), if it\'s a Sharp 3.xx ROM then you can use samba (transfer the terminal app and enable remote root telnet, etc.). Take your pick.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

raybert

  • Full Member
  • ***
  • Posts: 233
    • View Profile
network connectivity through usb?
« Reply #3 on: February 19, 2004, 10:38:15 am »
lardman, how do you \"enable root telnet\"?

I have telnet working but when I try to become root it says that busybox doesn\'t have sufficient rights.  I\'ve been trying to solve this problem and it sounds like your statement may be a clue.

Thanks,

~ray

raybert

  • Full Member
  • ***
  • Posts: 233
    • View Profile
network connectivity through usb?
« Reply #4 on: February 19, 2004, 10:47:21 am »
Quote
just got the zaurus today. i\'ve set it up with my linux laptop with usb.

Fadi, which Z do you have?  And, if it\'s a clamshell, can you tell me how you got usb networking to work?

I\'ve got usb networking working with my C860 on windoze but I can\'t seem to get it working on linux (RH9).  My 5500 has been working well on RH9 for many months.  All of the FAQs that I\'ve read talk about patching the kernel, etc., but I don\'t think I need to do that with RH9 and would rather not if I can avoid it.  I did look at usbnet.c and I can see where the table entries are for the 5500 and A300 and there\'s a comment saying that the A300 config should work for the clamshells.  But the product ID is different so it doesn\'t recognize the C860.  Is there a config file that I can modify to add the new product ID for the C860?  If all else fails, it looks like it would be easy enough to modify usbnet.c to add support for the C860 and I think that\'s what I\'m going to have to do.  (Although I might just update my kernel & distro instead.)

Thanks,

~ray

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
network connectivity through usb?
« Reply #5 on: February 19, 2004, 11:06:30 am »
That\'s strange, assuming you know the root password you should be able to telnet in then su to root. I suppose this may not work if you haven\'t got a root password set. Actually perhaps it doesn\'t work at all, I always use SSH so have never had to put my belief to the test.

With the old 2.xx ROMs (where root was the default user) you needed to add some extra entries to the /etc/securetty file (ttya0 through to ttya9 or so depending on how many simutaneous connections you plan to make) to allow telnet connections as the superuser.

Are you talking about your C860? I this case I presume you\'re using Windows to connect?

I\'d also be interested to hear more about (or even see) the busybox not having sufficient rights error.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

raybert

  • Full Member
  • ***
  • Posts: 233
    • View Profile
network connectivity through usb?
« Reply #6 on: February 19, 2004, 12:58:24 pm »
I don\'t have a root password (and don\'t want one, if I can help it).  And yes, this is my C860; and I\'m running tkcrom 2.5.1.  This happens no matter how I connect (from windows via usb; from linux via wireless net).

Here\'s what the busybox error looks like:

Code: [Select]
Lineo Embedix Linux(TM)

Copyright 1999-2000 Lineo, Inc.



BusyBox on bivalve login: zaurus

[bivalve]$ su

su: BusyBox binary has insufficient rights to set proper UID for applet!

[bivalve]$


(Note: \"bivalve\" is my C860\'s name.

I had forgotten about securetty.  I never had to change it with the tkcrom (on the 5500) so I guess I forgot it existed.  I just compared my 5500\'s copy to my C860\'s and they\'re identical.  I have no problem telnet\'ing to the 5500 and then su\'ing (and I have no password there either).

As an experiment, I was going to try to set the sticky bit on busybox (or su), but it seems that all copies and links (that I could find) are in the RO FS.  I guess I could copy it to somewhere else and muck with the path?  I don\'t even know if this will do anything at all.

If any of this means anything to you it would be really helpful.

Thanks,

~ray

Codefire

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • http://
network connectivity through usb?
« Reply #7 on: February 19, 2004, 03:11:38 pm »
Raybert: Have you tried setting the root password and then trying the shell again? Some shells require that the user account have a valid password.

Also, did you mean you tried to set the suid not the sticky bit, right? Normally this is a big security no-no but since you\'re not using a root password I guess this isn\'t a big deal for you.
--------------------------------------------
Codefire
SL-6000L (Stock, for now)
San Disk 512(sd) + 1G (cf)
MMF-GPS
--------------------------------------------

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
network connectivity through usb?
« Reply #8 on: February 19, 2004, 04:28:41 pm »
It may be a problem with su in your version of busybox, I really don\'t know.

If you need to be root then the easiest way is to do the securetty thing and just telnet in directly, but try setting a password first just in case.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

raybert

  • Full Member
  • ***
  • Posts: 233
    • View Profile
network connectivity through usb?
« Reply #9 on: February 20, 2004, 11:07:48 am »
Quote
Raybert: Have you tried setting the root password and then trying the shell again? Some shells require that the user account have a valid password.

No, I haven\'t tried that yet.  I\'d rather not have a password.  I never had to have one with my 5500.  It seems that the tkcrom (and, I presume, the sharp rom, although I didn\'t notice during the short time I had it running) are now using a traditional linux ftp/telnet (wu-ftp, not sure about the telnet) and I can\'t seem to get the damn things configured to allow me to use them!  I found the docs online yesterday for wu-ftp, with descriptions of the ftpaccess and ftpusers files and I set them up in a manner that I *thought* was going to allow the access that I want, but it didn\'t work -- I still can\'t login.  I\'m getting very frustrated with it.  It seems to be leading up to the ftp requiring a password no matter what I do. :|

How well does the newer roms (sharp, tkc 2.5.1) handle having a root password?  Are things going to break when I set one?

As for this telnet thing though, I don\'t think that a password is the problem because it\'s not even getting to a prompt (see the output I posted above).

Quote
Also, did you mean you tried to set the suid not the sticky bit, right? Normally this is a big security no-no but since you\'re not using a root password I guess this isn\'t a big deal for you.

Yes, that\'s what I meant.  I thought they were the same on the Z, no?  In any case, I can\'t do either because every link and/or binary that I found that I might do this to are in the RO FS.

~ray

Anonymous

  • Guest
network connectivity through usb?
« Reply #10 on: February 21, 2004, 02:31:18 am »
You can only login as root on a terminal listed in /etc/securetty.  I think one of the howtos in the devnet files area mentioned this,  and said which device names you need to add to securetty to login via usbnet.

If I haven\'t installed ssh on a headless Linux box,  I just telnet in as a normal user,  then use \"su -\" to become root.

Ran

raybert

  • Full Member
  • ***
  • Posts: 233
    • View Profile
network connectivity through usb?
« Reply #11 on: February 22, 2004, 05:31:00 pm »
Thanks Ran.  That worked, partially at least.  I can login now as root but I still cannot su.  I guess that\'ll do.

Now if I can only get ftp and usb nwtworking to linux working...

~ray

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
network connectivity through usb?
« Reply #12 on: February 23, 2004, 05:24:39 am »
Add \"ttya0\" to /etc/securetty to be able to telnet as root into zaurus.
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

Caesium

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • http://
network connectivity through usb?
« Reply #13 on: March 20, 2004, 06:47:48 pm »
Quote
I\'ve got usb networking working with my C860 on windoze but I can\'t seem to get it working on linux (RH9).  

~ray

Ray, could you point me at a link detailing how to set up the Windows half of this?
SL-C860/pdaXrom 1.1.0rc1
Socket Rev.G Bluetooth, Origo/Senao CF WiFi
1GB Sandisk SD + 1GB CF