Access internet - Android Q&A, Help & Troubleshooting

Hello,
I have rooted OnePlus One device (Android 5.1.1 custom ROM Sultanxda) and an old PC which have installed ubuntu 10.04. That PC don't have internet connection so I can't perform sudo apt get comand. Kindly teach me how do I connect to the internet by using my OnePlus One device and above ubuntu version OS.
Thank you.

If you have wireless option on PC its as easy as setting up a mobile hotspot, otherwise you can use a USB cable as well
A quick Google (or xda) search will give lots of guides on this

Thanks for reply. I only have USB cable option. Can you please help me how do I proceed. When I searched on internet all of them saying to have some apt get, but here qestion is when (i don't have internet connection on the PC; my only tool is my device to access the internet) starts to solve the problem, solution starts itself with head of problem. Even if I downloads some file in the device, I am not able to copy them in PC because it is neither mounting the device nor any MTP/ADB functionality available. Is there any way to copy / access the device through twrp?

Bump...

See if you can get MTP to work in Ubuntu with this:
edit -
/lib/udev/rules.d/69-libmtp.rules
Add:
ATTR{idVendor}=="05c6", ATTR{idProduct}=="6764", SYMLINK+="libmtp-%k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1", TAG+="uaccess"
ATTR{idVendor}=="05c6", ATTR{idProduct}=="6765", SYMLINK+="libmtp-%k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1", TAG+="uaccess"
Restart udev:
sudo service udev restart
As far as an internet connection, if your carrier (or rom) supports wifi tethering, then you can get a USB wifi adapter. If you are able to tether, then you can also transfer files wireless by using an app like WiFi File Explorer Pro.

There is no /lib/udev/rules.d/69-libmtp.rules in my PC. Do I have to create one new?
I tried to create one new and paste above two lines and restarted udev, but no luck. When i says lsusb it says :
Bus 001 Device 015: ID 05c6:6775 ualcomm, Inc.
@other:
Kindly don't post your answer(s) for just sake of posting because its frustrating me, why I am fighting with ubuntu, while same is running fine in windows...duh. Before posting your answer please please please check whether its is checked by you or you are just pasting **** answer at all over the internet.

None tested answer yet?

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.

[Q] wifi file transfer from windows xp to android

Yes, I did search. I didn't find what I was looking for.
I have a Samsung Galaxy 5 player running gingerbread. I'm trying to access files on it from my WinXP box via wifi. This seems like it should be a very common thing to do, but I simply can't find it. If I plug it into a usb port, I can access the drives. Can this be done via wifi?
Again, I want to access the android from the PC. Not the other way around.
Thanks for any help.
Three possible solutions pop into my mind (I guess there are many more):
1) Use a ftp server on the phone and access the files using that.
2) Use AirDroid or a similar app. It will give you wireless access to your phone's file.
3) This includes something that you said you didn't necessarily want to do but should also work: Use an app such as ES File Explorer and connect to your Windows XP PC via network. You can share a folder over the network (with write access) and then you can copy files from your android to your pc. But I guess that is the least ideal solution of the above.
I hope that the apps mentioned above are available for your device and that a method works.
Thanks, Fabur. I'm sure one of them will work.
The reason that "android -> pc" isn't an option is that much of the time, I'm using it as a wifi camera to monitor what my dogs are doing elsewhere in the house. But it would be nice to be able to access the files on the player from my pc.

View/Control Android device from PC (without ROOT)

Hi all. What I need is a way to control Android device (s) from PC via Wi-Fi. I found a lot of apps (and Desktop programs) to do it, but I didn't found a way to View OR control the Android device WITHOUT ROOT. I work on the company which asked me to find a way to do this without root with their Android devices. After googling a lot I started to think that where is no way to do this, because either way I need to root them . Is it true or maybe there is somewhere an app which could do this? It doesn't care if it's paid or not.
I have downloaded and tester these apps:
MyMobiler - Doesn't work because when I restart Android device, app doesn't start WiFi, just keyboard mode only. I need that when the app starts it should run itself and start WiFi automatically.
VMLite VNC Server - Don't know why but it didn't worked for me. Just cannot start server from the browser.
Thank you for any responses and appreciate any help.
What error messages do you get from vmlite vnc server? Make sure you enable USB debugging. We have tens of thousands of users using our app, and your device should work.
Well, actually now I tried to launch VMLite VNC one more time and IT WORKED (don't know how, because earlier I tried it and I was unable to enter to VNC Viewer in the Browser). So yeah, in this case it works perfectly now, but I just realized, that I have no way of connected more Android devices. Because what I need to do is to connect multiple Android devices to computer with USB (as I understand it's required for the first time) and when use it with WiFi. For now I see that I only capable of connecting single Android device with desktop program and everytime I want to connect to Android deice from computer, I need to connect it via USB (where is no way to save Android devices to use it any time I want to via WiFi). Or am I wrong? And it is a problem because in my company all Android devices are far away from each other. Anyway, thank your for such an awesome app, I really don't know how it is capable of connecting to my Android device WITHOUT ROOT (because I found like 10 apps, read a lot of forums, and every solution was with ROOTED devices, I am very interseting of the actual app functionality), but thank you.
You can connect to multiple devices using multiple USB cables. There is a drop down list to display devices, and you choose one by one to start the server. Alternatively, you can write some scripts to auto start the vnc servers.
There are quite some testing companies using our app this way to automate regression tests.
Alternatively, you can write some scripts to auto start the vnc servers.
Click to expand...
Click to collapse
Can I get more information about it? Thank you.
Basically you can automate the starting process using adb command:
adb shell "am start -a android.intent.action.MAIN -n com.vmlite.vncserver/.MainActivity"
adb shell /data/data/com.vmlite.vncserver/files/vmlitevncserver
Deimantas007 said:
Can I get more information about it? Thank you.
Click to expand...
Click to collapse
Thank you for this script (it's very cool, I didn't know this kind of stuff before), but it requires USB connection as well.
I googled a few things and found this app - ADB Wireless (no-root) on Google Play Store. Basically it connects ADB via WiFi and I don't need no USB cable and connection with it. But VMLite Android App Controller program on my Desktop doesn't recognize it (it requires USB connection). Can I actually connect Android device with PC with this method or I am missing something and there is no way of doing it with this method? Thank you (I promise, this is the last question from me, no more dumb questions).
I don't think it will work for you. You mentioned your android device will reboot, right?
If your device gets rebooted, you will have to use a USB connection to a PC. the ADB wireless app has same requirement.
Steps to get it working: (from ADB Wireless app page)
1. Enable USB Debugging on your phone.
2. Connect your phone via usb cable to your PC.
3. Run adb tcpip 5555.
4. Run ADB Wireless (no root).
5. Connect to the IP address.
Deimantas007 said:
Thank you for this script (it's very cool, I didn't know this kind of stuff before), but it requires USB connection as well.
I googled a few things and found this app - ADB Wireless (no-root) on Google Play Store. Basically it connects ADB via WiFi and I don't need no USB cable and connection with it. But VMLite Android App Controller program on my Desktop doesn't recognize it (it requires USB connection). Can I actually connect Android device with PC with this method or I am missing something and there is no way of doing it with this method? Thank you (I promise, this is the last question from me, no more dumb questions).
Click to expand...
Click to collapse
huisinro said:
I don't think it will work for you. You mentioned your android device will reboot, right?
If your device gets rebooted, you will have to use a USB connection to a PC. the ADB wireless app has same requirement.
Steps to get it working: (from ADB Wireless app page)
1. Enable USB Debugging on your phone.
2. Connect your phone via usb cable to your PC.
3. Run adb tcpip 5555.
4. Run ADB Wireless (no root).
5. Connect to the IP address.
Click to expand...
Click to collapse
What's right. It needs to connect my phone via USB. But I thought that maybe there is a way to automate this process, I mean maybe there is a solution to TURN DEBUGGING MODE between phone and pc programs via WiFi connection (not USB) and communicate with VMLite VNC Server program on startup. Either way, again, thank you for your software (app). I will say to my boss that we need to stay where we are at the moment. It's just awesome to have an app which doesn't require ROOT.

SSHFS for Android Help setting up

Hi,
So I am trying to setup the below SSHFS app for Android on my phone:
https://play.google.com/store/apps/details?id=com.chaos9k.sshfsandroid
The dev has not responded to my emails and provides next to no instructions...
Here is what I have done on my own:
On my Pc:
1. Setup Cygwin SSH modules
2. Am able to connect via putty to my home PC through both my internal and external IPs (basically yes SSH server is working as a service on my PC and I can connect from my own network and off of it on another windows PC)
3. Port 22 is forwarded in my router
So prereq one to one this app of needing SSH server setup on home computer is met
Next up on my phone:
1. I am rooted on a Samsung Galaxy S4
2. Have Busy Box
3. Phone is 4.2 which the app experimentally supports
4. I have FUSE module support on my phone
So I believe from the above my phone meets the prereqs to mount SSHFS shares.
On to the app itself:
To setup a share I have specified the following:
1.Name : has no bearing just for user ease
2.Host: using my external IP
3.Remote Path: Have tried all sorts of paths to files on my PC (including just basic /\ and blanks)
4.Mount Point:\mnt\SSH (have confirmed this works as previously it would not accept my mount point. This folder is mounted and the app can see it)
5. Automount (checked)
7. User name and Passwords...used the same ones I used in putty to connect to my server
So with all of the above I keep getting the below error:
/SH:<stdin>[1]:readlink:not found:No such file or directory.
I believe the above error is because I am not properly inputting my remote path I would like to mount....I ideally would like to mount my entire D drive....but for the sake of getting this started I would like to be able to mount anything just to prove it works.
Like I mentioned I can use a laptop on a different WIFI network to connect to my SSH server and browse files...so in theory this should work...If anyone can help me sort out the proper remote path syntax I would really appreciate the help.

No Wifi Conncetion to PC Via SMB

HI
I have a new Galaxy S5e tablet.
I have successfully made a connection via wifi to my PC using the microsoft shared app using my pc fixed ip address 192.168.1.100.
I have two other apps that both give the following error message when attempting to access my pc shared folders:
‘Connection failed with ‘Failed to connect: 0.0.0.0<00>/192.168.1.100’.Trying again.’
I have followed the instructions at:
"https://appuals"com/how-to-fix-the-windows-10-file-sharing-not-working-problem//how-to-fix-the-windows-10-file-sharing-not-working-problem/"
(remove the quotes change "com)
regarding my pc access, but I still get the error.
Does anyone know how what I need to do to connect to my pc shared folders via SMB?
Regards and thanks
I think that smb is off by default in win 10. Ensure it is on. You can check it via windows features in Progtams. Google smb windows 10 hot switch on and you will find plenty guides.
Both devices needs to be connected to the same wifi network.
Sent from my SM-G965F using Tapatalk
SMB is definitely on.
Both devices are on the same wifi.
My pc does not have wifi but uses the router to connect.
I don't believe this is a problem with my wifi or pc or else Windows remote on my tablet wouldn't connect and work with my pc.
As it would appear no one has a clue where this code error comes from nor how to rectify it I have to assume Oreo is not fit for purpose.

Categories

Resources