View Single Post
Old 01-17-2014, 04:57 AM   #639
akikara
Enthusiast
akikara began at the beginning.
 
Posts: 31
Karma: 10
Join Date: May 2013
Device: Kindle Touch
Quote:
Originally Posted by Arrest View Post
@akikara: You should probably read the file conveniently named README_FIRST.txt - it's located next to the bin file in the zip archive of usbnetwork. Please don't do anything until you've read it.

You should carefully read at least this excerpt:
Spoiler:
* Now, to actually connect to the device, we'll need to bring the shiny usb network interface the kernel prepared for us. I'm assuming it's the only USB network interface in the system, so, usb0 on Linux. I'm also assuming the default usbnet config, ie. KINDLE_IP=192.168.15.244
Note to OS X users: You'll probably have to configure the network interface manually via OS X's GUI.

Also, if your distribution is using a recent udev version, it might be using the new predictable network interface names (cf. http://www.freedesktop.org/wiki/Soft...InterfaceNames), so be wary of that. You can get a hint of the correct name by piping the dmesg output to grep usb0: for example, on my box, the current USB slot causes it to be named a very poetic enp0s26f7u5 (systemd-udevd[26718]: renamed network interface usb0 to enp0s26f7u5).

I'm using 192.168.15.201 here, because the default settings match the ones used in diags, and some diags scripts expect the host to be on this specific address.
If you use a custom KINDLE_IP, and/or don't care about diags, you're free to use any (free) address in the correct subnet .

# ifconfig usb0 192.168.15.201

In a similar vein, if you plan to use more than one Kindle concurrently, you'll have to tweak the MAC addresses of the USB network interface. For more detaisl about this kind of setup, you might want to check these two posts out:
https://www.mobileread.com/forums/sho...postcount=2122 & https://www.mobileread.com/forums/sho...3&postcount=29

* Depending on how your system set USB permissions up, you may still need to be root to connect to the device over USB. I'm assuming you have a proper udev setup, so, I'll switch to a user shell now.

$ ssh root@192.168.15.244

or

$ telnet 192.168.15.244

Note that, when WiFi mode is enabled, telnetd won't be started, and the SSH daemon *WILL* require a proper password! When WiFi mode is disabled, telnet will log you right in without password, and SSH will log you in with anything as the password (even a blank one, so you can just type return).

* Like I said at the beginning, if you don't understand half of what you're doing here, go away before you brick your Kindle. It's for your own good.

* When you're done, exit your shell on the Kindle, and bring the network interface down before ejecting/unplugging your Kindle.

# ifconfig usb0 down


If you've already changed the usbnet configuration, bring usbnetwork down, copy config.default over config in kindle/usbnet/etc directory (using mass storage), bring usbnetwork up again, set ifconfig usb0 inet 192.168.15.201 and try to SSH into Kindle to 192.168.15.244. If your computer is (unlikely, but still a possibility) connected to a network that already claims the 192.168.15.0/24 network, disconnect the computer (the easiest way to make it forget settings), reboot and try again.

Do you use any virtual machines? What do you actually run on your computer?
Linux da6930p 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Ubuntu 13.10 on HP 6930p not a Virtual Machine.

again i could not connect. something is wrong but i could not find.

thanks for your time and help.
akikara is offline   Reply With Quote