[Q] Droid Razr xt910 - Only Half Webtop - Motorola Droid RAZR

Hi all,
I managed to successfully configure BT5, using the image, set up and managed to successfully use SSH and VNC (for ssh tunnel via adb).
But my need is a little different, I just need to open applications and export display over ssh (putty). Specifically Firefox you have installed Flash (FF's BT5 not have flash installed and when I execute the "dist upgrade" the FF stops working).
In summary:
I need to know if there is the possibility of running only Firefox's installed on my Webtop and export display over ssh.
What have a done:
I managed to solve the problem of xauth, copying what was already the "/ osh / usr / bin / xauth" to "/ usr/X11R6/bin/xauth."
FF running the command:
"export DISPLAY =: 0" after
"sudo-u adas dbus-launch / osh/usr/lib/firefox-6.0.2/firefox"
I'm getting this:
"
root @ (unknown) :/ # export DISPLAY =: 0
root @ (unknown) :/ # sudo-u adas dbus-launch / osh/usr/lib/firefox-6.0.2/firefox
No protocol specified
No protocol specified
No protocol specified
No protocol specified
Error: can not open display :: 0
root @ (unknown) :/ # uname-a
Linux localhost 2.6.35.7-g3798510 # 1 SMP PREEMPT Thu Oct 20 23:16:00 EDT 2011 armv7l unknown
"
I'm using a Razr GSM Droid
Android: 2.35
System Version: 651.73.240.xt910.Vivo.en.BR
Webtop: WT-2.0.0-82
Rooted and unblocked
Im good on network stuffs but just a newbie in linux.
Thanks in advance,
Storm

Did i post this question in wrong section?

stormclaws said:
Did i post this question in wrong section?
Click to expand...
Click to collapse
Will call someone that may help on this
See u
Sent from my XT910 using Tapatalk 2

I am a regulair Linux user but never used webtop.
The only reason I can get up with is that you try to run remote X as a non-authorised user, mostly after a sudo or su. So are you sure the autorisation (magic-cookie) is good?
Hope this points in the right direction.

That happens because you're using the wrong commands.
You're doing:
"export DISPLAY =: 0"
"sudo-u adas dbus-launch / osh/usr/lib/firefox-6.0.2/firefox"
You have to enter:
export DISPLAY= :0
sudo -u adas dbus-launch

Thank you for answering me, but apparently not working.
---
[email protected](unknown):/# export DISPLAY=:0
[email protected](unknown):/# sudo -u adas dbus-launch
No protocol specified
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xSUDt7Zo5x,guid=b3a4338d764e43e81d27d8b700007bc2
DBUS_SESSION_BUS_PID=7635
---
I could try something else?
Thanks in advance,
Storm
---------------------
kholk said:
That happens because you're using the wrong commands.
You're doing:
"export DISPLAY =: 0"
"sudo-u adas dbus-launch / osh/usr/lib/firefox-6.0.2/firefox"
You have to enter:
export DISPLAY= :0
sudo -u adas dbus-launch
Click to expand...
Click to collapse

Guys, anyone coult gimme a hint?

stormclaws said:
Guys, anyone coult gimme a hint?
Click to expand...
Click to collapse
I can. Try asking kholk in his thread in the dev section. He did a webtop mod and probably have a solution.
Cheers
Sent from my XT910 using Tapatalk 2

Related

[Q] Theme Installation Problem: "mount: Operation not permitted" (Fixed)

I apologise is a similiar issue has been posted on several occasions. I did try the search and couldn't get a solution for my trouble.
As the title saids I am trying to install the Dark10 Series theme but in the CMD box on my laptop I get the error
"mount: Operation not permitted"
Also:
"cannot open for write: Read-only file system"
I am guessing the above error has somthing to do with root. Although I am clueless to be brutally honest.
If someone can give me a simple helping hand I would appreciate it.
Not very knowledgable on the whole adb thing and commands etc.
Thanks in advance for any help!
Edit:
Model number: X10i
Firmware version: 1.6 (Duh! )
Baseband version: 1.1.31
Kernal Version: 2.6.29-rel
[email protected] #2
Build number: R2BA026
Fixed the problem, was somthing to do with the shell being locked or somthing. Got it working though!
Steps I took:
1. Add the java thing to Enviroment Variables (Computer>System properties>advanced settings>enviroment variables)
Path: )\QuickTime\QTSystem\;C:\android\tools\;
Then got a file that unlocks adb script (search forum)
And that was it sorry cant be of more help I zone out when i have a problem and concentrate on fixing it without really knowing what i am doing
U should post the solution and put fixed in the title to help others.
Z3X said:
I apologise is a similiar issue has been posted on several occasions. I did try the search and couldn't get a solution for my trouble.
As the title saids I am trying to install the Dark10 Series theme but in the CMD box on my laptop I get the error
"mount: Operation not permitted"
Also:
"cannot open for write: Read-only file system"
I am guessing the above error has somthing to do with root. Although I am clueless to be brutally honest.
If someone can give me a simple helping hand I would appreciate it.
Not very knowledgable on the whole adb thing and commands etc.
Thanks in advance for any help!
Edit:
Model number: X10i
Firmware version: 1.6 (Duh! )
Baseband version: 1.1.31
Kernal Version: 2.6.29-rel
[email protected] #2
Build number: R2BA026
Fixed the problem, was somthing to do with the shell being locked or somthing. Got it working though!
Click to expand...
Click to collapse
post detailed steps of solution
i always face the same problem
thx in advance
I had the same problem. What you need to do is open darker 10 launcher and go to option 7 from the list. Read the instructions carefully and at the prompts on the screen type in the code supplied.
From what I understand it adds Additional script to your phone that allows you to mount the image.
Make sure phone is in developer mode.
Sent from my X10i using XDA App
thx a lot it workd
Thanks for posting this topic,
I would've spent the whole night on this and probably still wouldn't be able to figure out anything!
I have similar problem with one of the themes.
UNSECURING THE SHELL
Type each of these at the given prompt and press enter after each line.
Dont type the prompt <$ or #> itself!
$ su <NOW CHECK HANDSET FOR A SU REQUEST>
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
# chmod 4755 /system/bin/sh
# exit
$ exit
What should i type in $ su ? also if smb can, type all the lines correct,im not a programmer :/
026/rooted/x10i

commandline tips ?

hi, i installed sshdroid on my galaxy s2 so i am wondering if there is any way to mess around with anything like start a fone call or send a text message from the terminal ?
i am looking for programs like netcat, sshfs, aplay, ... but none can be found.
i also notice this (not sure why):
Code:
/data/data/berserker.android.apps.sshdroid # ps auxw | grep tv
2594 system 0:59 /system/bin/tvoutserver
has anybody done anything cool from the android command line ?
is there someway i can run com.cooliris.media from the commandline ?
schneidz said:
hi, i installed sshdroid on my galaxy s2 so i am wondering if there is any way to mess around with anything like start a fone call or send a text message from the terminal ?
i am looking for programs like netcat, sshfs, aplay, ... but none can be found.
i also notice this (not sure why):
Code:
/data/data/berserker.android.apps.sshdroid # ps auxw | grep tv
2594 system 0:59 /system/bin/tvoutserver
has anybody done anything cool from the android command line ?
is there someway i can run com.cooliris.media from the commandline ?
Click to expand...
Click to collapse
I don't know what sshdroid does, but for sure you can use terminal emulator or adb shell to launch apps.
The "am" command can be used to launch applications.
The example below is to open Email app:
Code:
su
Code:
am start com.android.email
to dig in more:
http://forum.xda-developers.com/showpost.php?p=30175170&postcount=3
easy for sms less easy to make a direct call:
Code:
su
Code:
service call phone 2 s16 "123456789"
where 123456789 is the number you want to call
fyi, sshdroid turns your fone into an ssh server so i can log into my fone via wifi from my fedora machine and use an actual keyboard to issue commands instead of an on-screen keyboard.
its also useful for things like scp/sftp... i can mount the fones harddrive/sd-card with sshfs on my pc but i cant mount my pc's harddrive to the fone with sshfs. is there a solution for this yet (i think the problem is that there is no fuse module for android yet) ?
this is weird:
Code:
~ # am start com.cooliris.media
sh: am: not found
~ # which am
/system/bin/am
~ # /system/bin/am start com.cooliris.media
sh: /system/bin/am: not found
~ # whoami
root
~ # service call phone 2 s16 "0151234567"
Result: Parcel(
0x00000000: ffffffff 00000022 006e004f 0079006c '...."...O.n.l.y.'
0x00000010: 00530020 0061006d 00740072 00610063 ' .S.m.a.r.t.c.a.'
0x00000020: 00640072 00410020 00490050 006d0020 'r.d. .A.P.I. .m.'
0x00000030: 00790061 00610020 00630063 00730065 'a.y. .a.c.c.e.s.'
0x00000040: 00200073 00490055 00430043 00000000 's. .U.I.C.C.....')
made a little bit more progress:
Code:
/system/bin/am start com.cooliris.media
Starting: Intent { act=android.intent.action.VIEW dat=com.cooliris.media }
Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=com.cooliris.media flg=0x10000000 }
schneidz said:
fyi, sshdroid turns your fone into an ssh server so i can log into my fone via wifi from my fedora machine and use an actual keyboard to issue commands instead of an on-screen keyboard.
its also useful for things like scp/sftp... i can mount the fones harddrive/sd-card with sshfs on my pc but i cant mount my pc's harddrive to the fone with sshfs. is there a solution for this yet (i think the problem is that there is no fuse module for android yet) ?
this is weird:
Code:
~ # am start com.cooliris.media
sh: am: not found
~ # which am
/system/bin/am
~ # /system/bin/am start com.cooliris.media
sh: /system/bin/am: not found
~ # whoami
root
~ # service call phone 2 s16 "0151234567"
Result: Parcel(
0x00000000: ffffffff 00000022 006e004f 0079006c '...."...O.n.l.y.'
0x00000010: 00530020 0061006d 00740072 00610063 ' .S.m.a.r.t.c.a.'
0x00000020: 00640072 00410020 00490050 006d0020 'r.d. .A.P.I. .m.'
0x00000030: 00790061 00610020 00630063 00730065 'a.y. .a.c.c.e.s.'
0x00000040: 00200073 00490055 00430043 00000000 's. .U.I.C.C.....')
Click to expand...
Click to collapse
Informative.. thanks!!

HOWTO: Linux and MTP

This is a quick how to get MTP working on Linux, the guide is for distro's based on Debian (mint\debian\ubuntu) OpenSuse, Fedora AND Gentoo. If there's any missing for major distro's let me know, or add them to a separate post and i'll put them up here
***Debian based distros**
Code:
sudo apt-get install mtpfs
sudo mkdir /media/onex
sudo chmod 775 /media/onex
sudo mtpfs -o allow_other /media/onex
gedit /etc/udev/rules.d/51-android.rules
and add the following line:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
and then:
sudo service udev restart
***Arch Linux***
Code:
pacman -S libmtp
After installation, you have several mtp tools available. Upon connecting your MTP device, you use:
mtp-detect
and add the following line:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
and then reload udev rules:
udevadm control --reload
Arch Linux guide is from the ArchLinux wiki
**Redhat\Fedora16**
First of all, I using my computer with other people, who can come over the network, so the 0666 mode bits not a right choice for me. I make it all on a fedora 16, but the distro is really not important.
So the steps:
- add a user to the "disk" group (or whatever You want)
- make a mount point (the media doesn't work for me, across the init removes the content)
- add this mount point to the fstab, with some parameter
- create udevd rules
- restart udevd
- install fuse-mtpfs
- (re)login user
- try it
My common experience is that, the mtpfs is very very very very slow. Really slow, so I can use it only with CLI, any GUI has been coming back with time out
And the "code":
Code:
usermod -a -G disk $LOGINUSER
Code:
sudo mkdir /mnt/sgs2 ; sudo chgrp disk /mnt/sgs2; sudo chmod 0770 /mnt/sgs2
Code:
sudo echo "mtpfs /mnt/sgs2 fuse users,noauto 0 0" >> /etc/fstab
Code:
cat > /etc/udev/rules.d/51-android.rules <<EOF
SUBSYSTEM!="usb_device", GOTO="label_end"
ACTION!="add", GOTO="label_end"
# ATRRS{idVendor}== ertekei:
#Acer 0502
SUBSYSTEM=="usb",ATTRS{idVendor}=="0502",MODE="0660",GROUP="disk"
#ASUS 0b05
SUBSYSTEM=="usb",ATTRS{idVendor}=="0b05",MODE="0660",GROUP="disk"
#Dell 413c
SUBSYSTEM=="usb",ATTRS{idVendor}=="413c",MODE="0660",GROUP="disk"
#Foxconn 0489
SUBSYSTEM=="usb",ATTRS{idVendor}=="0489",MODE="0660",GROUP="disk"
#Fujitsu 04c5
SUBSYSTEM=="usb",ATTRS{idVendor}=="04c5",MODE="0660",GROUP="disk"
#Fujitsu Toshiba 04c5
SUBSYSTEM=="usb",ATTRS{idVendor}=="04c5",MODE="0660",GROUP="disk"
#Garmin-Asus 091e
SUBSYSTEM=="usb",ATTRS{idVendor}=="091e",MODE="0660",GROUP="disk"
#Google 18d1
SUBSYSTEM=="usb",ATTRS{idVendor}=="18d1",ATTRS{idProduct}=="4ee1",MODE="0660",GROUP="disk"
#Hisense 109b
SUBSYSTEM=="usb",ATTRS{idVendor}=="109b",MODE="0660",GROUP="disk"
#HTC 0bb4
SUBSYSTEM=="usb",ATTRS{idVendor}=="0bb4",MODE="0660",GROUP="disk"
#Huawei 12d1
SUBSYSTEM=="usb",ATTRS{idVendor}=="12d1",MODE="0660",GROUP="disk"
#K-Touch 24e3
SUBSYSTEM=="usb",ATTRS{idVendor}=="24e3",MODE="0660",GROUP="disk"
#KT Tech 2116
SUBSYSTEM=="usb",ATTRS{idVendor}=="2116",MODE="0660",GROUP="disk"
#Kyocera 0482
SUBSYSTEM=="usb",ATTRS{idVendor}=="0482",MODE="0660",GROUP="disk"
#Lenovo 17ef
SUBSYSTEM=="usb",ATTRS{idVendor}=="17ef",MODE="0660",GROUP="disk"
#LG 1004
SUBSYSTEM=="usb",ATTRS{idVendor}=="1004",MODE="0660",GROUP="disk"
#Motorola 22b8
SUBSYSTEM=="usb",ATTRS{idVendor}=="22b8",MODE="0660",GROUP="disk"
#NEC 0409
SUBSYSTEM=="usb",ATTRS{idVendor}=="0409",MODE="0660",GROUP="disk"
#Nook 2080
SUBSYSTEM=="usb",ATTRS{idVendor}=="2080",MODE="0660",GROUP="disk"
#Nvidia 0955
SUBSYSTEM=="usb",ATTRS{idVendor}=="0955",MODE="0660",GROUP="disk"
#OTGV 2257
SUBSYSTEM=="usb",ATTRS{idVendor}=="2257",MODE="0660",GROUP="disk"
#Pantech 10a9
SUBSYSTEM=="usb",ATTRS{idVendor}=="10a9",MODE="0660",GROUP="disk"
#Pegatron 1d4d
SUBSYSTEM=="usb",ATTRS{idVendor}=="1d4d",MODE="0660",GROUP="disk"
#Philips 0471
SUBSYSTEM=="usb",ATTRS{idVendor}=="0471",MODE="0660",GROUP="disk"
#PMC-Sierra 04da
SUBSYSTEM=="usb",ATTRS{idVendor}=="04da",MODE="0660",GROUP="disk"
#Qualcomm 05c6
SUBSYSTEM=="usb",ATTRS{idVendor}=="05c6",MODE="0660",GROUP="disk"
#SK Telesys 1f53
SUBSYSTEM=="usb",ATTRS{idVendor}=="1f53",MODE="0660",GROUP="disk"
#Samsung 04e8
SUBSYSTEM=="usb",ATTRS{idVendor}=="04e8",ATTRS{idProduct}=="6860",MODE="0660",GROUP="disk"
#Sharp 04dd
SUBSYSTEM=="usb",ATTRS{idVendor}=="04dd",MODE="0660",GROUP="disk"
#Sony 054c
SUBSYSTEM=="usb",ATTRS{idVendor}=="054c",MODE="0660",GROUP="disk"
#Sony Ericsson 0fce
SUBSYSTEM=="usb",ATTRS{idVendor}=="0fce",MODE="0660",GROUP="disk"
#Teleepoch 2340
SUBSYSTEM=="usb",ATTRS{idVendor}=="2340",MODE="0660",GROUP="disk"
#Toshiba 0930
SUBSYSTEM=="usb",ATTRS{idVendor}=="0930",MODE="0660",GROUP="disk"
#ZTE 19d2
SUBSYSTEM=="usb",ATTRS{idVendor}=="19d2",MODE="0660",GROUP="disk"
LABEL="label_end"
Code:
udevadm control --reload-rules
Code:
yum/apt-get/pacman/etc install mtpfs
Logout-login, for get in to the disk group, connect the device via usb, and try
Code:
mptfs
without any parameter, and it must write out some information:
Code:
[email protected]:~$ mtpfs
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
Found 1 device(s):
Samsung: Galaxy models (MTP) (04e8:6860) @ bus 2, dev 4
Attempting to connect device
Android device detected, assigning default bug flags
Listing File Information on Device with name: (NULL)
fuse: missing mountpoint parameter
And finally mount /it must be working now with user account/:
[CODE]mount /mnt/sgs2
or dismount:
Code:
umount /mnt/sgs2
**OpenSuse 12.2**
this method will work for music and photos access only,
Code:
sudo zypper addrepo -f http://packman.inode.at/suse/12.2/ packman
sudo zypper ref (type a to always accept the packman repo)
sudo zypper in mtpfs
sudo vim /lib/udev/rules.d/69-libmtp.rules and add the following line (replace vim with gedit if you want a gui editor)
# HTC One X+
ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0dfc", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
sudo cp /lib/udev/rules.d/69-libmtp.rules /etc/udev/rules.d/.
reboot
When you plug in the phone you will see android phone icon on the desktop click on it to browse your files.
*note
disable any media players from trying to read the device...
** Gentoo **
Code:
Prerequisites
If your device is not recognized by libmtp, try upgrading to latest (or even git) version.
User needs to be in group plugdev to mount device.
MTPFS
You need to add option: user_allow_other in /etc/fuse.conf
$ mkdir ~/AndroidDevice
$ mtpfs -o allow_other ~/AndroidDevice
NOTE: this can take really long time, up to several minutes. As an indication of successful mount the mtpfs will go to background.
To unmount:
$ /usr/bin/fusermount -u ~/AndroidDevice
If mtpfs doesn't work for you try updating to latest version first.
Go-MTPFS
Seems to be more stable
$ emerge -a go
$ mkdir ~/go
$ export GOPATH=/home/$USER/go
$ go get github.com/hanwen/go-mtpfs
To mount:
$ ~/go/bin/go-mtpfs ~/AndroidDevice
To unmount:
$ /usr/bin/fusermount -u ~/AndroidDevice
Troubleshooting
Sometimes (e.g. on HTC One X) USB debugging automatically turns on when device is connected to PC. You need to turn debugging off, otherwise libmtp can't recognise device.
Make sure your Android device is not going to sleep and the screen is not getting locked. Set screen timeout to very long values, or enable in Development section flag "Do not turn off the screen".
Thanks to ihavoc and Fonya1 for the opensuse and redhat\fedora tutorials
thank you a lot for your help.
when i try to acces to the /media/onex direcory i have this :
ls: cannot access onex: Transport endpoint is not connected
After making changes reboot your session or pc and it will probably mount correctly which you've probably done by now.
Sent from my HTC One X+ using xda premium
somemadcaaant said:
After making changes reboot your session or pc and it will probably mount correctly which you've probably done by now.
Sent from my HTC One X+ using xda premium
Click to expand...
Click to collapse
excuse me to ask many question but i am really noob. when all this done what would i see in /media/onex ? actualy after mounting the folder is empty
the only thing i need to do is copy files from/to my HOX+
Can anyone please confirm if this is exclusive to the HTC One X+, or would it work for other similar HTC devices such as One X, One S etc. as well?
It still dont work, i have tryed so many things these days to mount my HTC Ox+ as a USB Mass Storage and everything failed.
I tried tou manualy mount a MTP folder on my Ubuntu like Lloir explained here.
I tried to flash a TeamWorkRecovery and a ClockWorkRecovery to access the "Mount USB" option in the menu
my Device is seen by ubuntu but i am unable to read or write anything, for example if I copy a music album, the copy operation starts, takes a very long time an then end whith an error lik "error unable to copy xxxx.mp3 file does not exist"
actualy i am almost convicted that using an MTP device as an usb mass storage under Ubuntu is purely and simply IMPOSSIBLE !
HQRaja said:
Can anyone please confirm if this is exclusive to the HTC One X+, or would it work for other similar HTC devices such as One X, One S etc. as well?
Click to expand...
Click to collapse
works for ALL MTP devices
Thanks a bunch. This should come pretty handy. =)
Lloir said:
works for ALL MTP devices
Click to expand...
Click to collapse
does it works for you ?
how do you copy your files from/to your phone ?
Waiting for Ubuntu instructions (maybe)?
followed instructions to the letter and still cant mount my htc one xL running jellybean on ubuntu
Just a quick reply since this was linked on the front page. Tried with GNex and Ubuntu 12.10 and no dice.
spdrosin said:
Waiting for Ubuntu instructions (maybe)?
Click to expand...
Click to collapse
The instructions for Ubuntu are the first ones (Debian based distros), Lloir mentioned it at the start of the OP:
Lloir said:
This is a quick how to get MTP working on Linux, the guide is for distro's based on Debian (mint\debian\ubuntu) And Archlinux i will add others soon.
Click to expand...
Click to collapse
Linux really needs to add native support for MTP already. They also should add native support for adb as well while they are at it. Its annoying to have to add entrees to udev to even to be able to access the device.
One suggestion for anyone wanting to do this with a device other than an HTC:
You'll need to change the line you add to /etc/udev/rules.d/51-android.rules based on the vendor of your phone.
Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
Change the code to one of the following USB vendor ids:
Code:
Acer 0502
ASUS 0b05
Dell 413c
Foxconn 0489
Fujitsu 04c5
Fujitsu Toshiba 04c5
Garmin-Asus 091e
Google 18d1
Hisense 109b
HTC 0bb4
Huawei 12d1
K-Touch 24e3
KT Tech 2116
Kyocera 0482
Lenovo 17ef
LG 1004
Motorola 22b8
NEC 0409
Nook 2080
Nvidia 0955
OTGV 2257
Pantech 10a9
Pegatron 1d4d
Philips 0471
PMC-Sierra 04da
Qualcomm 05c6
SK Telesys 1f53
Samsung 04e8
Sharp 04dd
Sony 054c
Sony Ericsson 0fce
Teleepoch 2340
Toshiba 0930
ZTE 19d2
Most up-to-date list is here: http://developer.android.com/tools/device.html
You can also have multiple vendor lines in your /etc/udev/rules.d/51-android.rules file, just put one on each line. As someone who's testing on a bunch of different devices, I simply put a line in for all of the above
If your vendor code isn't listed, enter the command "lsusb" in a terminal, and you'll see something like this:
Code:
Bus 001 Device 119: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II]
Bus 001 Device 112: ID 18d1:4e42 Google Inc.
The first four hex values of the id is the vendor ID, e.g., for the Samsung it's 04e8.
cloverz7 said:
Just a quick reply since this was linked on the front page. Tried with GNex and Ubuntu 12.10 and no dice.
Click to expand...
Click to collapse
same here with GNex and ubuntu 12.04
Use Airdroid
Using Airdroid and wifi from Tethering hotspot, you can simply access your Android without USB Cable and you can use anything OS. Search on Google Play with keyword "Airdroid"
Hey I have to say first off thanks for taking the time to figure this out! My problem is I am very new to linux and ubuntu. So when I open the terminal and type all the commands after "sudo mtpfs -o allow_other /media/onex" I get the response: "Listing raw device(s) No raw devices found." So should I have the device attached when I do this? Secondly the following command opens a text window. Is this where i type "SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"? Because now I can't save the text file because I don't have root. Should I be typing literally everything in Terminal? or am I just too new and missing a step. Your help would be greatly appreciated because I would really like to learn a lot more about linux however I'm a bit cautious asking for root for things and ****ing up lol. I'm over windows and will never use a mac so I want to learn! Sorry to be an idiot and a pain just wanna learn.
Nschneider7 said:
Hey I have to say first off thanks for taking the time to figure this out! My problem is I am very new to linux and ubuntu. So when I open the terminal and type all the commands after "sudo mtpfs -o allow_other /media/onex" I get the response: "Listing raw device(s) No raw devices found." So should I have the device attached when I do this? Secondly the following command opens a text window. Is this where i type "SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"? Because now I can't save the text file because I don't have root. Should I be typing literally everything in Terminal? or am I just too new and missing a step. Your help would be greatly appreciated because I would really like to learn a lot more about linux however I'm a bit cautious asking for root for things and ****ing up lol. I'm over windows and will never use a mac so I want to learn! Sorry to be an idiot and a pain just wanna learn.
Click to expand...
Click to collapse
That "SUBSYSTEM..." line needs to be appended to the file opened in the text editor. It shouldn't be entered on the command line.
And add "sudo" to in front of that gedit line...i.e., "sudo gedit /etc/udev/rules.d/51-android.rules"
Good luck!
I prefer to use adb. If you want a GUI you can use QtADB:
http://qtadb.wordpress.com/

[HowTo]Root Your Razr XT910,Droid Bionic

As Promised Today djrbliss a.k.a Dan released Root Exploit for XT910 And Droid Bionic which running on Jellybean..
For now Technically not possible to root on windows but may be in future one click root tool will be available from Dan..
First to root you Have to use Linux. Preferably 32Bit if u have Ubuntu in Ur Computer proceed if not u can try LiveCd to root your Phone.
Once you Booted into Ubuntu..
Type
Code:
mkdir /tmp/share
Install Samba Package
Code:
sudo apt-get install samba
Edit the Config for file samba as mentioned Below
Code:
sudo gedit /etc/samba/smb.conf
add the following Lines as mentioned below
Code:
[share]
path = /tmp/share
available = yes
valid users = guest
read only = yes
browsable = yes
public = yes
save it then Create username through this command
Code:
sudo useradd guest -m -G users
then Set password
Code:
sudo passwd guest
Then restart Samba Server
Code:
sudo restart smbd
Download the Files
Code:
cd /tmp/share
wget http://vulnfactory.org/public/motoshare2.tgz
tar xvf motoshare2.tgz
sudo chmod 755 run.sh
you'll need to know the IP address of your Linux host, which you can get by running "ifconfig" from your terminal it should be 192.168.xx.xx not 127.5.xx.xx
Now take your Smartphone and Enable usb Debugging and the make sure that youare connected through WIFI
Open Stock "Files" r "Filemanger App"3rd party apps wont work
Open the "Files" app, and select "Remote storage". Click "Add storage", and fill in fields as follows:
Code:
Host IP address: [your Linux machine's IP address]
Domain name: WORKGROUP
Shared folder name: share
User: guest
Password: [the password you created above]
your phone will be mounted in Linux share to complete process plug in your Phone to Computer Via usb and then type following command
Code:
cd /tmp/share/
sudo ./run.sh
Congrats!u are rooted your RAZR XT910 And Droid Bionic..
Every Credit Goes to Dan Rosenberg i take no credits ....im just posting to help people...
Donate to Dan
http://goo.gl/zBGb0
Original Thread
I can't thank enought to Dan Rosenberg for this exploit!
Works great!!
forget to set a password on the share
sudo smbpasswd -a guest
Thank u so much :laugh:
ronni24 said:
forget to set a password on the share
sudo smbpasswd -a guest
Thank u so much :laugh:
Click to expand...
Click to collapse
Thanks mate, this is missing in op.
I'm using Ubuntu 64 bit and still can't root I followed steps then finally I receive this messages
[email protected]:/tmp/share$ sudo ./run.sh
[sudo] password for khaled:
./run.sh: line 30: ./adb.linux: No such file or directory
[+] Waiting for device...
./run.sh: line 33: ./adb.linux: No such file or directory
[+] Device found.
[+] Pushing exploit...
./run.sh: line 38: ./adb.linux: No such file or directory
./run.sh: line 39: ./adb.linux: No such file or directory
./run.sh: line 40: ./adb.linux: No such file or directory
./run.sh: line 42: ./adb.linux: No such file or directory
./run.sh: line 43: ./adb.linux: No such file or directory
[+] Rooting phone...
[+] Your phone may appear to reboot. Please ignore this and continue with the exploit.
./run.sh: line 49: ./adb.linux: No such file or directory
[+] Please press any hardware button on your phone.
[+] Don't worry if the phone is unresponsive at this time.
[+] Press enter to continue once you have pressed a hardware button.
Thanks Dan.
U can't root with Ubuntu 64Bit..u have to use 32Bit
For more Detailed Guide check this
http://forum.xda-developers.com/showthread.php?t=2190362
Sent from my Golden'd Atrix HD MAXX using xda app-developers app
Big thanks!!!
L7iharsha said:
U can't root with Ubuntu 64Bit..u have to use 32Bit
For more Detailed Guide check this
http://forum.xda-developers.com/showthread.php?t=2190362
Sent from my Golden'd Atrix HD MAXX using xda app-developers app
Click to expand...
Click to collapse
i rooted with zorin 64bit , and its fine Dan said any linux with term will work. window user have no chance atm
Where do I add the lines in the txt file?
EDIT:
Done,add the lines at the end of the txt file.
Seems like everything went correct and no errors,why my device isn't rooted ?
Thanks DAN.
JB?
Thanks!!
Muchas gracias ha funcionado a la perfección en mi Ubuntu 12.10 x64
Enviado desde mi XT910 usando Tapatalk 2
DigitalJosee said:
JB?
Click to expand...
Click to collapse
yes u can root your XT910 Running on JB
cant add storage
Hi I cant add any storage.Have message on phone"the information you entered is incorrect "
ip is 192.168.0.6
domain group WORKGROUP
shared folder name shared
username guest
password guest
Just change the password again and it should work
L7iharsha said:
As Promised Today djrbliss a.k.a Dan released Root Exploit for XT910 And Droid Bionic which running on Jellybean..
For now Technically not possible to root on windows but may be in future one click root tool will be available from Dan..
First to root you Have to use Linux. Preferably 32Bit if u have Ubuntu in Ur Computer proceed if not u can try LiveCd to root your Phone.
Once you Booted into Ubuntu..
Type
Code:
mkdir /tmp/share
Install Samba Package
Code:
sudo apt-get install samba
Edit the Config for file samba as mentioned Below
Code:
sudo gedit /etc/samba/smb.conf
add the following Lines as mentioned below
Code:
[share]
path = /tmp/share
available = yes
valid users = guest
read only = yes
browsable = yes
public = yes
save it then Create username through this command
Code:
sudo useradd guest -m -G users
then Set password
Code:
sudo passwd guest
Then restart Samba Server
Code:
sudo restart smbd
Download the Files
Code:
cd /tmp/share
wget http://vulnfactory.org/public/motoshare2.tgz
tar xvf motoshare2.tgz
sudo chmod 755 run.sh
you'll need to know the IP address of your Linux host, which you can get by running "ifconfig" from your terminal it should be 192.168.xx.xx not 127.5.xx.xx
Now take your Smartphone and Enable usb Debugging and the make sure that youare connected through WIFI
Open Stock "Files" r "Filemanger App"3rd party apps wont work
Open the "Files" app, and select "Remote storage". Click "Add storage", and fill in fields as follows:
Code:
Host IP address: [your Linux machine's IP address]
Domain name: WORKGROUP
Shared folder name: share
User: guest
Password: [the password you created above]
your phone will be mounted in Linux share to complete process plug in your Phone to Computer Via usb and then type following command
Code:
cd /tmp/share/
sudo ./run.sh
Congrats!u are rooted your RAZR XT910 And Droid Bionic..
Every Credit Goes to Dan Rosenberg i take no credits ....im just posting to help people...
Donate to Dan
http://goo.gl/zBGb0
Original Thread
Click to expand...
Click to collapse
pardon for my stupid request i had do all bat when i connect the phone at usb cable after i push file,after i push remote storage after i write my ip addres(of wify connection of phone or af connection of linux?????) afte wath i do????????workgroup is correct or i did write name of my workgroup ad after at user name i write the name of user of linux or user name of router Fastw...... and the password of mi utence of linux or password for connect to fastwwwwww?
i repeat pardon for mi stupid answer.tanks tanks
It's necessary quote full OP just to ask a question?
ulkika said:
pardon for my stupid request i had do all bat when i connect the phone at usb cable after i push file,after i push remote storage after i write my ip addres(of wify connection of phone or af connection of linux?????) afte wath i do????????workgroup is correct or i did write name of my workgroup ad after at user name i write the name of user of linux or user name of router Fastw...... and the password of mi utence of linux or password for connect to fastwwwwww?
i repeat pardon for mi stupid answer.tanks tanks
Click to expand...
Click to collapse
Host IP address: [your Linux machine's IP address] = something like 192.168.0.x obtained on Ubuntu typing ifconfig into a terminal
Domain name: WORKGROUP = just write WORKGROUP
Shared folder name: share = just write share
User: guest = just write guest
Password: [the password you created above] = write the password you created during the setup.
L7iharsha said:
Just change the password again and it should work
Click to expand...
Click to collapse
Changed password even set without and still no change
There's a missing line after you set the password
Type after you've set the guest password
sudo smbpasswd -a guest
Use the same password as before
And then follow the next steps with the first step being restart samba
It caught me out
goodvsbad said:
Changed password even set without and still no change
Click to expand...
Click to collapse
Follow this step:
ronni24 said:
forget to set a password on the share
sudo smbpasswd -a guest
Thank u so much :laugh:
Click to expand...
Click to collapse

[Q] openssh-server on Ubuntu Touch

Dear all,
I installed Unbuntu Touch on my Nexus 4 yesterday (18.09.2013, with the build 20130917.1). It is working more or less, as expected :silly:
One of the problem I am facing is that the ssh server is not working. I could install (and --reinstall) it without problem (apt-get install openssh-server ssh), but if I check with "ps -ef|grep ssh") I only see the ssh-agent and the connection from another computer is not working.
Any idea?
Best regards,
Pierre
[email protected]:/# apt-get install --reinstall openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/231 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 38659 files and directories currently installed.)
Preparing to replace openssh-server 1:6.2p2-6 (using .../openssh-server_1%3a6.2p2-6_armhf.deb) ...
Unpacking replacement openssh-server ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
WARN: / is world writable!
WARN: / is group writable!
Setting up openssh-server (1:6.2p2-6) ...
[email protected]:/#
[email protected]:~$ ssh [email protected]
ssh: connect to host 192.168.1.69 port 22: No route to host
[email protected]:/home/phablet/Downloads# ps -ef | grep ssh
phablet 739 711 0 09:11 ? 00:00:00 ssh-agent
I just noticed that I have the same problem...
If I had time I would look at it, too, but right now I have other things to do...
To98 said:
I just noticed that I have the same problem...
If I had time I would look at it, too, but right now I have other things to do...
Click to expand...
Click to collapse
Same problem here. ssh to another device is possible, but no acces to phablet.
Same In GNex
try
sudo service ssh start
(if you are root or not you must use sudo)
but it does not automatically start when reboot
Still not wokring
[email protected]:/# service ssh start
ssh start/running, process 5890
[email protected]:~$ ssh [email protected]
ssh: connect to host 192.168.1.69 port 22: No route to host
[email protected]:~$ ps -ef|grep 5890
vmalep 12613 12544 0 13:00 pts/4 00:00:00 grep --color=auto 5890
chaoskernel said:
try
sudo service ssh start
(if you are root or not you must use sudo)
but it does not automatically start when reboot
Click to expand...
Click to collapse
thank you! installed version 57 and used
sudo service ssh start
work fine!

Categories

Resources