[Q] how to setup pppoe over UsbToEthernet adapter? - Android Q&A, Help & Troubleshooting

hi friends,
Following is my setup.
1. Nexus 7(old one) tablet with usb-to-ethernet adapter. I am able to access internet through this.
2. I have one ubuntu 12.04 LTS linux machine where I am running pppoe server by installing package rp-pppoe package. The server works fine, I tested from another computer with mac os.
I want to make my Nexus 7 as pppoe-client and linux pc as server and try to connect these two. But don't know how to proceed. What are things I need on my Nexus to run pppoe-client.
Do I need to enable kernel module or any app is available? Everywhere I found only the pppoe over wifi only. But could not find for pppoe over usb-to-ethernet adapter.
Please advice.

Related

Use PC internet connection on phone through USB!

USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Tried it and it's not working for me...
Or maybe i didn't setup squid right.
I'm not so good on ubuntu OS
I tried making a bridge connection on windows...the networks
The network seems to be connected but no internet connection...
Is it necessary to have Ubuntu OS?
Maybe some another how-to will help:
http://forum.xda-developers.com/showthread.php?t=793102
To setup squid to work:
type in:
sudo gedit /etc/squid/squid.conf
In that file find the section called
# ACCESS CONTROLS
Under the section find the line
#Recommended minimum configuration:
and add this line next to it
acl all src all
then find the section
# TAG: http_access
Under this section find the line
#Default:
and add the following line to look like
#Default:
http_access allow all
Close the file and restart squid as:
sudo start squid
That should setup squid to share your internet on all clients.
If required, reboot.
You can try out a similar approach on any other distro other than ubuntu.
i tried several searches about this topic, but none of them succeeded,
any update on this?
can i install ubuntu in my Win7?
syruz said:
can i install ubuntu in my Win7?
Click to expand...
Click to collapse
Well, you can virtualize it in Virtual box. It's free for personal use.
by the way what is the squid your talking about?
@ TS
maybe you can provide us with the link for ubuntu and squid?
Come on.. if you don't already know what ubuntu and squid are there's no point in trying this.
Ubuntu = Linux, that's another operating system. Squid is a proxy.
You ashould at least have the decency of Googling those for yourself..
Sent from my LG-P500 using XDA App
harshaxdadevelopers said:
USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Click to expand...
Click to collapse
Hi guys,
Do you know why I wouldn't be able to see "USB tethering" option? No matter what I did so far, all I can see is the "Portable Wi-Fi hotspot" option and that works fine. But I need to use the USB Tethering!!!
Thanks for the help!
If someone is having the same problem as me (ie usb tethering mode not visible) just use a program called togglesettings lite. It can turn on the usb tethering for you. Now the reverse usb tethering works for me like a charm. Peace!
Sent from my LG-P500 using XDA App
harshaxdadevelopers said:
USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Click to expand...
Click to collapse
Thank you for sharing this trick. But i dont have netcfg utility, since i use ubuntu maverick 10.10, it is not in source list. is ther any other way to do "netcfg usb0 dhcp"?
This is by far the easiest solution I've found to reverse tether. Thanks!
jadeiceman said:
This is by far the easiest solution I've found to reverse tether. Thanks!
Click to expand...
Click to collapse
Sorry and wich is the solution ????
syruz said:
@ TS
maybe you can provide us with the link for ubuntu and squid?
Click to expand...
Click to collapse
sudo apt-get install squid
This should install squid.
netcfg is not there on recent ubuntu versions not even software list but you can configure via app indicator at right but still i can't use reverse tethering although i followed you pretty well.
netcfg is a utlility on the phone... u need to run that command at the terminal of the phone not on your computer. (get a terminal emulator from the market)
Wow I'm feeling stupid.Will give it a go now.

Ethernet connection Android 4.0 Virtualbox + SDCARD

Hi guys.
I've tried to run a android 4.0 on Virtualbox.
It does work good on my PC.
But I have a problem. As I'm unable to have internet on it. I have tried everything like bridging and nat and still no work.
Did any one know how able internet in Virtualbox ?
And to make SD CARD that I would be able to access from windows ?
I'm runing Virtualbox version 4.2.6 r82870.

port forwarding to RasPI

Hi,
I have Raspberry PI (there simply runs ARM linux - Raspbian) and need to access it via ssh and http in my local network. I have tried some tether application, but it does not help since there is NAT.
I have tried some port forward apps, I have set ports but still not able to connect to this port. Do I need to change anything on my RasPI?
I have thought that I need some interface on RasPI, but there is no (sth like usb0). I have tried to connect firstly with easytether and then portforward, but still no success.
Any advice?
Thank you.

Can't see USB devices, linux deploy

Hi All, I've got a Samsung Galaxy Grand Prime (SM-G530W) running Cyanogenmod 12. I put linux deploy on, with a debian arm64 stable release. Everything seems to be working, I can ssh and VNC in, but I can't seem to see any USB devices.
In both an ADB shell session, and through ssh into the debian install, lsusb doesn't return any devices. When I run ls /dev | grep usb from either place I get:
android_ssusbcon
mtp_usb
usb-ffs
usb_accessory
usb_ext_chg
usb_ncm
My ultimate goal is to be able to connect a 3d printer through debian, but I need to be able to see USB devices first. Any help would be greatly appreciated, perhaps there is a better forum to post this in?
Thanks, Ivan
Was a resolution found to this problem? I am seeking to connect a standard printer to my Samsung Galaxy s5 with a CUPS server and am seeing the same issue
Are you trying to connect the printer using an OTG adapter and USB host mode on your device?
Usually the permissions are the biggest problem to seeing things.
You could try my UsbMode.apk (in the sig) to see if you can see anything.
You might just use a print server on your WiFi network.

Can I get the AOSP on Windows 10?

I got recently a book about Android System Programming because I have interests in it. Now this could be a noob question (I just hope I don't get banned or kicked), but is there any way to get the source code directly on Windows 10 than Ubuntu? I mean, I don't want to ruin the Wi-Fi Adapter for Windows 10 again because it requires custom drivers that I already hate (need LAN instead of dumb Wi-Fi Adapters). Those custom drivers cannot be installed on Ubuntu so if I need Internet on Ubuntu, I need to connect my phone to tether connection through USB.
Currently, I am dual-booting Ubuntu 20.10 with Windows 10 and I don't want to boot into Ubuntu unless I get a Wi-Fi Repeater that I can connect with LAN so that I don't ruin the connection on Windows 10 or connect the LAN directly with the router that I require at least 18 meters long LAN cable. Don't ask why...
There could be a way to download the AOSP on the Windows 10, but I really doubt that it won't work. But if there is a way then let me know the possibilities to download the AOSP on Windows 10.

Categories

Resources