USB tether app or script development - Acer Iconia A500

Hi all devs, me and pradobly not only me need a simple app or script todo 3 line commends
Su
Dhcpcd Usb1
Setprop net.dns1 8.8.8.8
I was make script with script manager but is not work for some reason. When i type in terminal works fine every time.
If it will be easier to write app Maybe on settings button add dns witch we can change and usb port aslo
Other case can u give me source code for script so i will know what am doing wrong
Thx Greetings and happy new year
Sent from my A500 using xda premium

Related

Samsung Vibrant drivers for ubuntu / linux

I am on Ubuntu 10.10 and connected to internet via wifi on a TrendNet usb wifi adapter.
Whenever I connect my Samsung Vibrant in debugging mode, my internet connection drops and I have to restart to get internet back. But I dont know if anyone would be able to help me with that.
But I think that even though the internet goes out, my phone is connected in debugging, and maybe I'll have to do without internet.
What I really need though is any info on how to install Samsung Vibrant Drivers for ubuntu to be recognized in adb?
By the way... I used this tutorial to install adb
http://forum.xda-developers.com/showthread.php?t=537508
I think I got most of it done but adb does not see my vibrant... please help...
Thank You very much
There are no drivers. You just plug it in with USB debugging turned on, change directory to your AndroidSDK/tools folder and use "./adb" (without the quotes) to do commands.
If you get ???????? Permision Denied, unplug your phone and enter:
sudo ./adb kill-server
ahorriblemess said:
There are no drivers. You just plug it in with USB debugging turned on, change directory to your AndroidSDK/tools folder and use "./adb" (without the quotes) to do commands.
If you get ???????? Permision Denied, unplug your phone and enter:
sudo ./adb kill-server
Click to expand...
Click to collapse
Ok followed your directions. Now adb devices gives me
??????????? no permissions.
Sent from my GT-I9000 using XDA App
So unplug the phone, type in "sudo ./adb kill-server" plug it in again, then do "sudo ./adb devices"
Yea did that like 4 times. "List of devices attached"shows nothing... ?
I may try restarting the computer now...
Edit: do I always have to use ./
I think just adb works. Both works. What does ./ do ?
Sent from my GT-I9000 using XDA App
Unfortunately, I cannot be of any further help. That's always worked for me so I never had to take any other steps. I never had to create or edit any configuration files; I usually just kill the server and start it again when I run into that problem. Sorry.
I went through it when I got my phone, except the internet connection drop
http://forum.xda-developers.com/showthread.php?t=731670&highlight=adb+linux
So no need of driver right... its supposed to work right away...
Sent from my GT-I9000 using XDA App
lqaddict said:
I went through it when I got my phone, except the internet connection drop
http://forum.xda-developers.com/showthread.php?t=731670&highlight=adb+linux
Click to expand...
Click to collapse
ok I may see if this works
There are no drivers.
It worked out of the box for me. I don't know why it doesn't for some other people.
BTW,
./command means execute the commend in the current directory if it is not in your $PATH or before $PATH is looked up
I added
Code:
export PATH=$PATH:/home/myhome/android/tools
to my .bashrc file so I do not have to go into ~/android/tools directory to execute adb
lqaddict said:
I went through it when I got my phone, except the internet connection drop
http://forum.xda-developers.com/showthread.php?t=731670&highlight=adb+linux
Click to expand...
Click to collapse
I'm trying this but I can't find my vibrant in "lsusb"
Sent from my GT-I9000 using XDA App
USB debugging enabled?
Try different USB port if available.
Before you plug in the phone run
Code:
tail -f /var/log/messages
and plug in the phone, anything comes up in terminal window?
lqaddict said:
BTW,
./command means execute the commend in the current directory if it is not in your $PATH or before $PATH is looked up
I added
Code:
export PATH=$PATH:/home/myhome/android/tools
to my .bashrc file so I do not have to go into ~/android/tools directory to execute adb
Click to expand...
Click to collapse
Yea mine is also set up to run w/o going to the directory. So I guess, I don't have to use ./
Sent from my GT-I9000 using XDA App
lqaddict said:
USB debugging enabled?
Try different USB port if available.
Before you plug in the phone run
Code:
tail -f /var/log/messages
and plug in the phone, anything comes up in terminal window?
Click to expand...
Click to collapse
What do I look for in lsusb? Something that says vibrant or Samsung ?
Sent from my GT-I9000 using XDA App
I didn't use lsusb, I was tailing the /var/log/messages when I was setting it up.
In lsusb you should be able to see the vendor ID, 04e8 should be Samsung
lqaddict said:
USB debugging enabled?
Try different USB port if available.
Before you plug in the phone run
Code:
tail -f /var/log/messages
and plug in the phone, anything comes up in terminal window?
Click to expand...
Click to collapse
Yesss. It worked... tried a different usb port and it worked. I used that code to see if it came up 1 of them worked. I see my device in lsusb now. Let me do the rest and will update.
Internet problem still remains. Maybe its the usb port. Weird though. I'll restart and see if the different usb port fixes the internet issue.
Sent from my GT-I9000 using XDA App
You may need to create a udev rule for your phone to get usb debugging working correctly.
Create a rule /etc/udev/rules.d/50-android.rules
Put this in it:
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
Or if you're lazy download and run this script I wrote to do it.
Edit: nvm looks like you got it working.
Ashex1 said:
You may need to create a udev rule for your phone to get usb debugging working correctly.
Create a rule /etc/udev/rules.d/50-android.rules
Put this in it:
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
Or if you're lazy download and run this script I wrote to do it.
Edit: nvm looks like you got it working.
Click to expand...
Click to collapse
Thanks though. I got the tip from another forum. Looks like yours says 50-android.rules ... I made a file that said 51-android.rules.
Works though.
Sent from my GT-I9000 using XDA App
jmatic said:
Thanks though. I got the tip from another forum. Looks like yours says 50-android.rules ... I made a file that said 51-android.rules.
Works though.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Good to know. The number bit is rather arbitrary, it just specifies priority.

tun.ko needed

Hello, anyone compiled a tun.ko module for the arc kernel yet? This is needed in order to use openVPN. I got my bootloader unlocked, phone rooted, busybox installed, and now am just waiting on a tun.ko file to get things rolling
Once I get toolchain environment setup on my Mac this should be easily done. Will see if I can find time tomorrow.
Sent from my R800i using XDA Premium App
I have one for Japanese version of arc, which was built against so-01c_gingerbread_3.0.D.2.79.tar.gz, working fine though, I guess the kernel version is different for you?
moperi said:
I have one for Japanese version of arc, which was built against so-01c_gingerbread_3.0.D.2.79.tar.gz, working fine though, I guess the kernel version is different for you?
Click to expand...
Click to collapse
May be easy modified to work, if you can upload it?
Sent from my R800i using XDA Premium App
http://www.megaupload.com/?d=94XITOV3
HTH,
http://www.megaupload.com/?d=94XITOV3
HTH,
Ok I will have a look at it
Sent from my R800i using XDA Premium App
OK, tested this tun.ko. You should be good to go, and use it.
To use:
adb push tun.ko /sdcard/
adb shell
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
# cp /sdcard/tun.ko /system/lib/modules/
# chmod 644 /system/lib/modules/tun.ko
# rm/sdcard/tun.ko
# sync
# exit
$ exit
Thanks for all your help, got everything installed right (I think) but still can't get a tunnel working... Does the xperia arc kernel support tun? Either that or I have still got something wrong here...
paxophile said:
Thanks for all your help, got everything installed right (I think) but still can't get a tunnel working... Does the xperia arc kernel support tun? Either that or I have still got something wrong here...
Click to expand...
Click to collapse
It works. But openvpn has some issues. You need the static version. Google for openvpn-static.
You also need busybox in system/xbin and a symlink from system/xbin/bb to system/xbin.
Google again will help you.
Sent from my R800i using XDA Premium App
I have installed OpenVPN Installer and OpenVPN Settings from the market and created symlinks of ifconfig and route from busybox at /system/xbin/bb. it works except DNS settings. need to go to the preference by long-pressing the configuration and check on "Use VPN DNS Server" and add an IP address at "VPN DNS Server" explicitly.

My dhcpcd file is missing

I was using usb_wwan and would run the following code.
dhcpcd usb1
setprop net.dns1 8.8.8.8
I used to be able to run this with no erorrs but now I get permission denied.
So the file is supposed to be located in the following /data/misc/dhcp/dhcpcd.pid but the data folder is empty.
I did delete the lease file at one point cause of the wifi issue, I am not sure if that would have any effect on it.
So how can I fix this or is there a why to get the files back?
Thanks in advance for the help.
I just whack a su before it, and it works fine.
As I've noted in this walkthrough for USB tether.

[Q] Mac changer

Hi, is there any script or utility for Mac changing.
And why would you even do that?
Sent from my GT-N7000 using xda app-developers app
You need to have root.
1. Install busybox and any terminal app
2. Open terminal and put this code in:
Code:
:su :busybox iplink show eth0
You should get your address shown on the screen. If so, go ahead:
Code:
:busybox ifconfig eth0 hw ether [your desired MAC address]
Use the first command again if you want to check if everything went right.
Akiainavas said:
Code:
:su :busybox iplink show eth0
You should get your address shown on the screen. If so, go ahead:
Click to expand...
Click to collapse
iplink: applet not found
praetorius said:
And why would you even do that?
Click to expand...
Click to collapse
And why would you even don't do that?

[Q] Can anyone explain me the name of kernels?

I just made up a kernel from source and its name is:
2.6.35.7
[email protected]
What is "adminuser"?
Whats this thing "se-virtualboximagescom-"?
How to change them?
I dont know abt this but want to know the answer....
admin user is ur username of os...
and
se-vbox****** is ur hostname
_______________________________________________
How To Change Hostname
Type Command in Terminal. (Ctrl+Alt+T)
sudo gedit /etc/hostname
Click to expand...
Click to collapse
The hostname file will open, displaying the current computer name. Replace the current computer name with the desired new name.
Click Save.
Close all open windows and restart your system.After your system has restarted, it will have the new computer name.
_________________________________________________
How To Change Ur Username
Method 1 make/create new 1 and remove old one
Method 2
1 .Open Terminal
2.Unlock account root and enable login as root using below command
sudo passwd root
sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'
Click to expand...
Click to collapse
3.Reboot your computer and login as root
4.Open a terminal and Use blow command to change your username
usermod -l newname oldname
Click to expand...
Click to collapse
5.(Optional)Now you already changed your username,but your home folder name still are “/home/oldname”,if you also want to change /home/oldname to /home/newname just run below command
usermod -m -d /home/newname newname
Click to expand...
Click to collapse
Notef course you can combine step 4 and step 5 using below command
usermod -m -d /home/newname -l newname oldname
Click to expand...
Click to collapse
6.All done,use below command to lock your root again,then you can reboot and login as your new username(in my way i always use root.. for time of build kernel user other user name iduos)
passwd -l root
Click to expand...
Click to collapse
i Hope Its Help U :laugh::laugh::laugh::good::good::good:
wow...using vbox consume a lot of rams and tend to be (a lot) slower compared when we use a real installed linux. you have a good computer out there mate.
manoranjan2050 said:
admin user is ur username of os...
and
se-vbox****** is ur hostname
_______________________________________________
How To Change Hostname
Type Command in Terminal. (Ctrl+Alt+T)
The hostname file will open, displaying the current computer name. Replace the current computer name with the desired new name.
Click Save.
Close all open windows and restart your system.After your system has restarted, it will have the new computer name.
_________________________________________________
How To Change Ur Username
Method 1 make/create new 1 and remove old one
Method 2
1 .Open Terminal
2.Unlock account root and enable login as root using below command
3.Reboot your computer and login as root
4.Open a terminal and Use blow command to change your username
5.(Optional)Now you already changed your username,but your home folder name still are “/home/oldname”,if you also want to change /home/oldname to /home/newname just run below command
Notef course you can combine step 4 and step 5 using below command
6.All done,use below command to lock your root again,then you can reboot and login as your new username(in my way i always use root.. for time of build kernel user other user name iduos)
i Hope Its Help U :laugh::laugh::laugh::good::good::good:
Click to expand...
Click to collapse
Tried to change that se-virtual**** to 'hell_lock' and then compiled it. Not working
after change hostname restart ......then check its changed or not
type hostname to chack ur host
and save ur .config file and make clean then compile
Sent from my GT-S6102 using Tapatalk 2
manoranjan2050 said:
after change hostname restart ......then check its changed or not
type hostname to chack ur host
and save ur .config file and make clean then compile
Sent from my GT-S6102 using Tapatalk 2
Click to expand...
Click to collapse
The name has changed inn terminal but no name change in kernel..
Sent from my GT-S5360 using XDA
make clean and re compile it :thumbup:
Sent from my GT-S6102 using Tapatalk 2
manoranjan2050 said:
make clean and re compile it :thumbup:
Sent from my GT-S6102 using Tapatalk 2
Click to expand...
Click to collapse
Cleaned the common folder and recompiled.. NO CHANGES!! seems like I gotta live with it
hell_lock said:
Cleaned the common folder and recompiled.. NO CHANGES!! seems like I gotta live with it
Click to expand...
Click to collapse
also check This file
sudo gedit /etc/hosts
Click to expand...
Click to collapse
127.0.0.1 old hostname (change it to ur new name)
127.0.1.1 old hostname (change it to ur new name)

Categories

Resources