¿Start webTop without connect to HDMI...? - Atrix 4G General

I have working tightvnc server in Webtop for remote conection from my PC, i'd like to be able of connect to my phone without having it connected to tv, for do it webtop should be powered on but...how?
I had looked at android services (in /etc/init.d) and i don't see any able of do it.
Perhaps with a script...?
If we get it working we would have a portable Ubuntu machine and we should access it with only a pc and wifi connection.

proalius said:
I have working tightvnc server in Webtop for remote conection from my PC, i'd like to be able of connect to my phone without having it connected to tv, for do it webtop should be powered on but...how?
I had looked at android services (in /etc/init.d) and i don't see any able of do it.
Perhaps with a script...?
If we get it working we would have a portable Ubuntu machine and we should access it with only a pc and wifi connection.
Click to expand...
Click to collapse
You could try using the "am" command to interact with dockprovider.apk/dockservice.apk Just throwing a random thought out there. If you get it working post up some instructions in the dev forum as I'm sure people would be interested.

I will take a look...

Hello,
for trying the webtopmod ubuntu natty from the Eternity team i'm also interested in starting webtop without connected HDMI-peripherals on a razr xt910 (gsm). Link: http://forum.xda-developers.com/showthread.php?t=1370176
A search with the standard Linux search-enginge "find" gives the following results.
Code:
[email protected]_spyder:/$ su
[email protected]_spyder:/# find / -name webtop -print
/osh/usr/lib/xscreensaver/webtop
/dev/webtop
/dev/block/webtop
As we see, webtop is a kind of device, not an APK !?
(Because it has been found in /dev/).
Now we wanna see more about /dev/webtop:
Code:
[email protected]_spyder:/dev# ls -l | grep webtop
drwxr-xr-x root root 2012-02-09 10:25 webtop
So it's owned by root an executable!
But although we are root, we are not allowed to execute it with /bin/bash by the command ./webtop - permission denied. Trying to execute with /bin/sh shows no response: "sh webtop".
Now there are 2 possibilities: either webtop is now runing with its output on another tty, or webtop is not runnig.
To check it out i use "top", the Linux console processmonitor to see anything that is running and somehow affected by webtop:
Code:
[email protected]_spyder:/dev/block# top | grep webtop
523 0% S 1 4896K 2144K fg mot_osh webtop-restart
965 0% S 1 3204K 1036K fg root hald-addon-input: Listening on /dev/webtop/input/event2 /dev/we
As we see there's a user "mot_osh" running "webtop-restart" and root probably waiting for hardware that is necessary for webtop.
But some "webtop" is also in the linux service's directory:
Code:
[email protected]_spyder:/osh/etc/init.d$ ls -l | grep webtop
-rwxr-xr-x root root 1047 2011-09-24 03:35 webtop-restart.sh
-rwxr-xr-x root root 729 2011-09-24 03:35 webtop-shutdown.sh
Don't know why find didn't search there, usually it does.
When we try to execute webtop-restart as "normal user" lot's of errors occur, the same as execution as root.
.... to be continued....
Code:
[email protected]_spyder:/osh/etc/init.d$ sh webtop-restart.sh
kill: Operation not permitted
kill: Operation not permitted
kill: Operation not permitted
kill: Operation not permitted
kill: Operation not permitted
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
kill: Operation not permitted
kill: Operation not permitted
* Starting OSH X Server: startX
rm: cannot remove '/tmp/serverauth.XXXXf8QzBt': Operation not permitted
rm: cannot remove '/tmp/.X0-lock': Operation not permitted
rm: cannot remove '/tmp/.X11-unix/X0': Operation not permitted
rm: cannot remove '/tmp/.X11-unix': Operation not permitted
The language setting is same as before, don't update
/etc/init.d/startXServer.sh: line 30: /home/adas/.tag_master_reset_ls: Permission denied
Execution by root:
Code:
[email protected]_spyder:/osh/etc/init.d$ su
[email protected]_spyder:/osh/etc/init.d# sh webtop-restart.sh
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
Usage:
kill pid ... Send SIGTERM to every process listed.
kill signal pid ... Send a signal to every process listed.
kill -s signal pid ... Send a signal to every process listed.
kill -l List all signal names.
kill -L List all signal names in a nice table.
kill -l signal Convert between signal numbers and names.
* Starting OSH X Server: startX
[email protected]_spyder:/osh/etc/init.d# /etc/profile: line 4: getprop: command not found
[ 0.000000] TOMOYO Linux initialized
[ 42.515045] TOMOYO: 2.2.0 2009/04/01
X.Org X Server 1.9.0
Release Date: 2010-08-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.31-608-imx51 armv7l Ubuntu
Current Operating System: Linux localhost 2.6.35.7-ge439ab5 #1 SMP PREEMPT Sun Nov 6 21:29:41 CST 2011 armv7l
Kernel command line: console=/dev/null rw [email protected] vram=20M omapgpu.vram=0:4M,1:16M,2:16MT init=/init ip=off mmcparts=mmcblk1:p7(pds),p8(utags),p14(boot),p15(recovery),p16(cdrom),p17(misc),p18(cid),p19(kpanic),p20(system),p21(cache),p22(preinstall),p23(webtop),p24(userdata),p25(emstorage) mot_sst=1
Build Date: 17 September 2010 08:54:03PM
xorg-server 2:1.9.0-0ubuntu7 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.18.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Feb 9 02:01:19 2012
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
PVRPreInit: done
PVRScreenInit
PVRScreenInit: done
(EE) AIGLX error: dlopen of /usr/lib/dri/pvr_dri.so failed (/usr/lib/dri/pvr_dri.so: cannot open shared object file: No such file or directory)
(EE) AIGLX: reverting to software rendering
(EE) AIGLX error: dlopen of /usr/lib/dri/swrast_dri.so failed (libtalloc.so.2: cannot open shared object file: No such file or directory)
(EE) GLX: could not load software renderer

Related

bluetooth gprs in Linux

Hi,
Is anybody able to use Wizard as bluetooth gprs modem under Linux?
l2ping works, but /dev/rfcomm0 refusing connections.
sonyericsson T610 works just fine in the same environment.
poorotis said:
Is anybody able to use Wizard as bluetooth gprs modem under Linux?
Click to expand...
Click to collapse
i've succeeded this. try to establish rfcomm connection with channel number strictly defined:
Code:
[[email protected] ~]$ rfcomm connect 0 xx:xx:xx:xx:xx 4
in my case it works with channel=4.
eva_d said:
i've succeeded this. try to establish rfcomm connection with channel number strictly defined:
Code:
[[email protected] ~]$ rfcomm connect 0 xx:xx:xx:xx:xx 4
in my case it works with channel=4.
Click to expand...
Click to collapse
Can you post the full output of
Code:
$ sdptool records xx:xx:xx:xx:xx
cr2 said:
Can you post the full output of
Code:
$ sdptool records xx:xx:xx:xx:xx
Click to expand...
Click to collapse
it does not output anything. looks even like it does not have such command at all:
Code:
[[email protected] ~]# sdptool records 00:12:37:7B:AE:EE
[[email protected] ~]# sdptool
sdptool - SDP tool v2.15
Usage:
sdptool [options] <command> [command parameters]
Options:
--help Display help
--source Specify source interface
Commands:
search Search for a service
browse Browse all available services
add Add local service
del Delete local service
get Get local service
setattr Set/Add attribute to a SDP record
setseq Set/Add attribute sequence to a SDP record
Services:
DID SP DUN LAN FAX OPUSH FTRN HS HF SAP NAP GN HID CIP CTP A2SRC A2SNK
eva_d said:
sdptool - SDP tool v2.15
Click to expand...
Click to collapse
Mine is v2.19
I was able to establish a bluetooth connection on channel 4 after qtek firmware upgrade to 2.x.x.x with /etc/bluetooth/rfcomm.conf:
rfcomm2 {
bind yes;
# Bluetooth address of the device
device xx:xx:xx:xx:xx:xx;
# RFCOMM channel for the connection
channel 4;
# Description of the connection
comment "gprs-qtek";}
But pppd can not start, seems I using incorrect AT commands. this is from log:
pppd 2.4.4b1 started by root, uid 0
send (AT^M)
timeout set to 240 seconds
expect (OK)
^M
OK
-- got it
send (AT+CGDCONT=1,"IP","internet.mts.ru"^M)
expect (OK)
^M
^M
OK
-- got it
send (ATDT*99***1#^M)
timeout set to 22 seconds
expect (CONNECT)
^M
^M
OK^M
^M
ERROR^M
alarm
Failed
Exit.
eva_d, could you please show us your pppd/chat scripts?
cr2 said:
eva_d said:
sdptool - SDP tool v2.15
Click to expand...
Click to collapse
Mine is v2.19
Click to expand...
Click to collapse
this is on my system (SDP tool v2.24):
# sdptool records xx:xx:xx:xx:xx:xx
Service Name: Audio Video Remote Control Profile
Service RecHandle: 0x10000
Service Class ID List:
"AV Remote Target" (0x110c)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 23
"AVCTP" (0x0017)
uint16: 0x100
Profile Descriptor List:
"AV Remote" (0x110e)
Version: 0x0100
Service Name: A2DP
Service RecHandle: 0x10001
Service Class ID List:
"Audio Source" (0x110a)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 25
"AVDTP" (0x0019)
uint16: 0x100
Profile Descriptor List:
"Advanced Audio" (0x110d)
Version: 0x0100
Service Name: Voice Gateway
Service RecHandle: 0x10002
Service Class ID List:
"Headset Audio Gateway" (0x1112)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Profile Descriptor List:
"Headset" (0x1108)
Version: 0x0100
Service Name: Voice Gateway
Service RecHandle: 0x10003
Service Class ID List:
"Handfree Audio Gateway" (0x111f)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 2
Profile Descriptor List:
"Handsfree" (0x111e)
Version: 0x0101
Service Name: OBEX Object Push
Service RecHandle: 0x10004
Service Class ID List:
"OBEX Object Push" (0x1105)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 3
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"OBEX Object Push" (0x1105)
Version: 0x0100
Service Name: Dial-up Networking
Service RecHandle: 0x10005
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 4
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
poorotis said:
send (ATDT*99***1#^M)
Click to expand...
Click to collapse
try to dial *99#. i couldn't succeed with *99***1#
poorotis said:
eva_d, could you please show us your pppd/chat scripts?
Click to expand...
Click to collapse
i'm using GNOME PPP to make dial-up connections, no scripts. click, click & ready to go
Thank you eva_d !
You have turned me into the right direction!
I have finally solved my problem.
I am attaching a tarball with all files needed to get HTC Wizard work as bluetooth gprs modem under Linux for whom it may be interesting.
P.S.
# pppd call gprs-bt-qtek
pppd[12798]: pppd 2.4.4b1 started by poorotis, uid 0
chat[12800]: send (ATX3^M)
chat[12800]: expect (OK)
chat[12800]: ^M
chat[12800]: OK
chat[12800]: -- got it
chat[12800]: send (ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M)
chat[12800]: expect (OK)
chat[12800]: ^M
chat[12800]: ATX3^M^M
chat[12800]: OK
chat[12800]: -- got it
chat[12800]: send (ATM1L3DT*99#^M)
chat[12800]: timeout set to 10 seconds
chat[12800]: expect (CONNECT)
chat[12800]: ^M
chat[12800]: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M^M
chat[12800]: OK^M
chat[12800]: ATM1L3DT*99#^M^M
chat[12800]: CONNECT
chat[12800]: -- got it
chat[12800]: send (^M)
pppd[12798]: Serial connection established.
pppd[12798]: Using interface ppp0
pppd[12798]: Connect: ppp0 <--> /dev/rfcomm2
pppd[12798]: CHAP authentication succeeded
pppd[12798]: CHAP authentication succeeded
pppd[12798]: local IP address ZZZ.ZZ.5.47
pppd[12798]: remote IP address ZZZ.Z.235.34
pppd[12798]: primary DNS address ZZZ.Z.224.194
pppd[12798]: secondary DNS address ZZZ.Z.224.130
P.P.S. eva_d, I owe you a beer!
poorotis said:
P.P.S. eva_d, I owe you a beer!
Click to expand...
Click to collapse
heh, no problem with that btw, i'm planning to launch personal homepage with various advices about solving problems with linux, i mean problems which i personally managed to solve. connecting linux with internet via bluetooth&gprs could be one of first topics there... but as usual, i don't have much time for such projects. :/
btw, instead of running scripts from shell i'd recommend to use GNOME PPP. however you need to run it as root to make it work properly, but personally i have it integrated with gnome quite well (when i click GNOME PPP icon, system asks for root password and it's ready to go . ah, and before that just one doubleclick on icon to open bluetooth rfcomm connection.
eva_d said:
btw, instead of running scripts from shell i'd recommend to use GNOME PPP.
Click to expand...
Click to collapse
It is not suitable for me because I want to have an ability to connect/disconnect from scripts/remotely/when X not started/etc.
I can do that all with pppd and commandline interface
eva_d said:
ah, and before that just one doubleclick on icon to open bluetooth rfcomm connection.
Click to expand...
Click to collapse
My rfcomm connection is always open when my device is in accessible range. I am using bluez-utils with rfcomm.conf which can be found in my previous post and connection always initializing at my pc startup.
hy,
i am not able to get a bt-connection to my wizard.
i used the deviceadress i found when i connect the device via bt to a windows box but if i make
sdptool records 00:12:37:a5:61:48
i got:
Failed to connect to SDP server on 00:12:37:A5:61:48: Host is down
and with:
rfcomm connect 0 00:12:37:a5:61:48 4
i got:
Can't connect RFCOMM socket: Resource temporarily unavailable
can anybody help me please?
BPM said:
hy,
i am not able to get a bt-connection to my wizard.
i used the deviceadress i found when i connect the device via bt to a windows box but if i make
sdptool records 00:12:37:a5:61:48
i got:
Failed to connect to SDP server on 00:12:37:A5:61:48: Host is down
and with:
rfcomm connect 0 00:12:37:a5:61:48 4
i got:
Can't connect RFCOMM socket: Resource temporarily unavailable
can anybody help me please?
Click to expand...
Click to collapse
i never had such errors. are you sure that bluetooth is on and discoverable?
yes, i am able to bind it to the windows machine.
how can i search for devices?
BPM said:
yes, i am able to bind it to the windows machine.
how can i search for devices?
Click to expand...
Click to collapse
Code:
[[email protected] ~]# hcitool scan
Scanning ...
00:E0:03:37:AB:25 evad.6230
00:12:37:7B:AE:EE Dawid Lorenz
ok in my kbluetoothutils there is button "Additional search Options for non-discoverable devices".
with this i found my device. but how can i pair it?
BPM said:
ok in my kbluetoothutils there is button "Additional search Options for non-discoverable devices".
with this i found my device. but how can i pair it?
Click to expand...
Click to collapse
hard to say, i don't use kbluetoothutils in first place. also, i use command line to pair devices and in my case everything works fine. these messages could suggest there's problem with mobile. maybe you should try to soft-reset your wizard? hard to say, i never had such errors, so i'm not sure how can i help you with that. maybe someone else could...
can you give me a step-by-step commandlinesolution?
[email protected]:~$ hcitool scan
Scanning ...
[email protected]:~$ sdptool records 00:12:37:a5:61:48
Failed to connect to SDP server on 00:12:37:A5:61:48: Host is down
[email protected]:~$
i think the problem is that hcitool gives no results.
but if i enter the device id in my utils i can see the name of the device. so bt runs correct i think
if i make a connection with rfcomm the bluetoothsymbol in my systembar gets blue. if i move the mouse to the symbol i can read "connected to devicename".
but after a few seconds the symbol gets grey again and i get a timeout.
any hint?

Connecting Linux to the Internet by a HTC P3600 - Compressed Tutorial

Of course that it will work on any Linux ! Of course that with any WM5 AKU 3 device ! Certainly that it works on 3G, EDGE, GPRS, because the PC doesn't see the WAN itself (the GSM network).
The stages are as simple as 1, 2, 3 !
1. Go (on the WM5 AKU 3.x device) to Internet Sharing, select your network, select BT-PAN profice and click Connect.
2. Open a console on Linux (root) and start writing:
root# pand -s -r PANU
root# pand -Q10
(optional, to test) root# pand -l
root# ifconfig bnep0 192.168.0.2
root# route add default gw 192.168.0.1
root# echo "nameserver 194.102.255.2" > /tmp/resolv.conf.bnep0
3. READY !
Notes upon the implied commands:
a) pand -s -r PANU // starts the PAN daemon (server) in the PANU mode and puts it to listening mode
b) pand -Q10 // performs a 10sec search for the HCI address of a PANU and connects to it
c) pand -l // view if you have connection : bnep0 00:17:83:01:38:6B PANU - in my case
d) ifconfig bnep0 192.168.0.2 // sets the IP of the virtual network interface. Please do veryfy on your PDA that the PAN interface has 192.168.0.1 already seted up. Of course that you can use other IPs, but stay in the same network !
e) route add default gw 192.168.0.1 // sets the WM5 device as the gateway for IP packets. Certainly that you can change the address for originality, but remember that it must be the IP of the PAN interface on the WM5 device !
f) echo "nameserver 194.102.255.2" > /tmp/resolv.conf.bnep0 // assigns a DNS server to be queried. Of course that you can use any DNS IP that you want.
g) REMEMBER: On Fedora, IP forward is already activated. On Debian it is not. Thus, before command number e, you must activate it by typing "echo 1 > /proc/sys/net/ipv4/ip_forward" (without the quotes).
Cheers !

some app is sending packets to TCP port 13 to some MSN host

hi all,
My firewall logs are showing me that something on my Hero is regularly trying to send TCP packets to port 13 at 131.107.13.100. That IP isn't in the DNS directly, but is administered by MSN:
;; AUTHORITY SECTION:
13.107.131.in-addr.arpa. 3600 IN SOA ns1.msft.net. msnhst.microsoft.com. 2007082301 1800 900 7200000 3600
13/tcp is normally used by the "daytime" protocol, but since my phone should be getting its time from the phone network, I'm not entirely convinced.
Anyone know what this might be, please?
thanks much...
same here, only just spotted this. Any word on this?
I notice that my Hero's clock is often out, by a good few seconds, so clearly it isn't working as it should. I'd rather be able to specify a NTP server of my choosing, but last time I checked, NTP client required root access.
More on this: curiously, looking in DDMS I find that IP against time-nw.nist.gov in the log. The log tells us what pid used that InetAddress - 163 in my case, which I looked up in Device/Show process status as:
app_7 163 36 106208 18924 ffffffff afe0d3e4 S com.htc.provider (u:260, s:121)
so I'm thinking to poke around something like
sqlite3 /data/data/com.htc.provider.***
maybe swap to NTP server of my choice. I'll report how I get on.
dig time-nw.nist.gov leads me to
tf.nist.gov
which sounds like a pukka time server hosted by MS.
Of more concern to me is that I see lots of TMTTime=0 in my logs; no wonder my clock's all over the place.
I couldn't find any setting for time service in weather.db, CustomizationSettings.db or settings.db.
My HTC Desire also has persistent connections to this server:
Code:
~/data $ netstat -antp | grep :13
netstat: showing only processes with your user ID
tcp 0 0 ::ffff:192.168.1.104:39616 ::ffff:131.107.13.100:13 ESTABLISHED -
tcp 0 0 ::ffff:192.168.1.104:38180 ::ffff:131.107.13.100:13 ESTABLISHED -
tcp 0 0 ::ffff:192.168.1.104:40715 ::ffff:131.107.13.100:13 ESTABLISHED -
I wonder why to keep those connections persistent and so numerous?

[Q] Microsoft virtual network adapter not working properly!

Hello i am 19 years old so i don't exactly have lots of experience with all this. (iv gone down the route of programming in c++. only started looking into Batch seriously for the last few weeks) I am having a problem which i could use help with. Lately i have been using the Microsoft virtual network adapter (im sure heard of it!)
I wrote a small batch file for the purpose of starting the network. (ill copy and paste it in at the bottom) now this program worked perfectly for about a month but now i cant get a device to connect to the network as nothing can obtain an ip address.
What i did to troubleshoot..
1. I changed the ip settings from dhcp to static.
this allowed me to connect to the network but i couldn't access the internet.
2. I checked the properties of the network from the control panel and it
shows that my network is sending packets but is not receiving any. I tried
running windows troubleshooting on the network and it tells me that the
network does not have a valid ip configuration. even though it is set
dhcp.
3. I tried typing the following into cmd "netsh interface ip reset"
in return i get;
"C:\Windows\system32>netsh interface ip reset
Resetting Global, OK!
Resetting Interface, OK!
Resetting Unicast Address, OK!
Resetting Neighbor, OK!
Resetting Path, OK!
Resetting Route, OK!
Resetting , failed.
Access is denied.
Resetting , OK!
Restart the computer to complete this action."
why does it say resetting failed followed by access denied?
i think this is the cause of "failed to obtain ip address problem but why then does it not allow internet connectivity through the static ip settings? is there something i have missed or is something corrupt maybe?
I also tried going to device manager and uninstalling the network adapter from their then allowing windows to find it and re-install the driver.
Thank you for having the patients to read this far. As i said at the beginning i would copy paste my program here so you can see exactly what im trying to do here.
Thanks again.
@ECHO off
color a
:beginning
echo To Create a Hotspot with the name "hotspot" and
echo a password of "12345678" just press ENTER to the first two
echo options
echo ............................................................................... ################################################################################
set /p ssid=Enter name for your network: || set ssid=hotspot
set /p key=Enter password for network(must be 8 characters or longer!): || set key=12345678
netsh wlan set hostednetwork mode=allow ssid=%ssid% key=%key%
netsh wlan start hosted network
:refresh
netsh wlan show hostednetwork
echo Press ENTER to Refresh information!
echo ............................................................................... ################################################################################
echo Enter "RR" to Restart!
echo ............................................................................... ################################################################################
echo Enter "E" to Exit!
echo ............................................................................... ################################################################################
set /p option= || set option=r
if %option%==R goto :refresh
if %option%==r goto :refresh
if %option%==RR goto :beginning
if %option%==rr goto :beginning
if %option%==E goto :end
if %option%==e goto :end
:end
netsh wlan stop hostednetwork
Feel free to use this code for doing anything you want to do with it. (but im sure there are better versions of this that do the same thing online too)
apologies if this thread should not be here. just running out of options for getting this fixed. I believe a forum full of people who hack and mod win 8 probably have the best understanding of it!
feherneoh said:
I could only notice, that where there are 3 lines of netsh wlan next to each other, the middle one has a space in 'hostednetwork', the other 2 don't.
Sent from my Htc Hd2 using xda app-developers app
Click to expand...
Click to collapse
yeah the commands can be either "netsh wlan start hostednetwork" or "netsh wlan start hosted network" it makes no difference.
but yeah that is bad coding on my part never the less.
I know the program works fine its something else causing it not to work properly.

Easy Way of Setting Up PIA on DD-WRT

I see alot of questions about VPN's so I've decided to post an easy way to setup PIA VPN on a router running DD-WRT. I'm currently using a Netgear R8000 as a VPN router. Please note that running a VPN on your router will slow your speeds way down. I'm currently hitting 15-30mbps which is ok to run the firestick. The settings I am posting is what seems to be the fastest and most reliable for me. You can alway change the server you want to use but do not change anything else. Once your done rebooting you can test to make sure you are completely secure on the PIA webpage then go and run your DNS Leak Tests. If you are going to run a double router setup (which I am running) let me know and I'll post the setup for that also.
First you need to login to your router. Normally you would type 192.168.1.1 into the search bar. Default username for Netgear is "admin", password is "password".
In the DD-WRT Control Panel page, navigate to Setup > Basic Setup.
Under Network Address Server Settings (DHCP), set:
Static DNS 1 = 4.2.2.1
Static DNS 2 = 4.2.2.2
Static DNS 3 = 4.2.2.3
Use DNSMasq for DHCP = Checked
Use DNSMasq for DNS = Checked
DHCP-Authoritative = Checked
Save and Apply Settings.
Next navigate to Administration > Commands.
Cut and paste this insert your username and password USERNAME="user-name-here" and PASSWORD="password-here" , click the Save Startup button, then Reboot Router. :
#!/bin/sh
USERNAME="user-name-here"
PASSWORD="password-here"
PROTOCOL="udp"
# Add - delete - edit servers between ##BB## and ##EE##
REMOTE_SERVERS="
##BB##
# US - MIDWEST
remote us-midwest.privateinternetaccess.com 8080
##EE##
"
#### DO NOT CHANGE below this line unless you know exactly what you're doing ####
CA_CRT='-----BEGIN CERTIFICATE-----
MIID2jCCA0OgAwIBAgIJAOtqMkR2JSXrMA0GCSqGSIb3DQEBBQUAMIGlMQswCQYD
VQQGEwJVUzELMAkGA1UECBMCT0gxETAPBgNVBAcTCENvbHVtYnVzMSAwHgYDVQQK
ExdQcml2YXRlIEludGVybmV0IEFjY2VzczEjMCEGA1UEAxMaUHJpdmF0ZSBJbnRl
cm5ldCBBY2Nlc3MgQ0ExLzAtBgkqhkiG9w0BCQEWIHNlY3VyZUBwcml2YXRlaW50
ZXJuZXRhY2Nlc3MuY29tMB4XDTEwMDgyMTE4MjU1NFoXDTIwMDgxODE4MjU1NFow
gaUxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJPSDERMA8GA1UEBxMIQ29sdW1idXMx
IDAeBgNVBAoTF1ByaXZhdGUgSW50ZXJuZXQgQWNjZXNzMSMwIQYDVQQDExpQcml2
YXRlIEludGVybmV0IEFjY2VzcyBDQTEvMC0GCSqGSIb3DQEJARYgc2VjdXJlQHBy
aXZhdGVpbnRlcm5ldGFjY2Vzcy5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJ
AoGBAOlVlkHcxfN5HAswpryG7AN9CvcvVzcXvSEo91qAl/IE8H0knKZkIAhe/z3m
hz0t91dBHh5yfqwrXlGiyilplVB9tfZohvcikGF3G6FFC9j40GKP0/d22JfR2vJt
4/5JKRBlQc9wllswHZGmPVidQbU0YgoZl00bAySvkX/u1005AgMBAAGjggEOMIIB
CjAdBgNVHQ4EFgQUl8qwY2t+GN0pa/wfq+YODsxgVQkwgdoGA1UdIwSB0jCBz4AU
l8qwY2t+GN0pa/wfq+YODsxgVQmhgaukgagwgaUxCzAJBgNVBAYTAlVTMQswCQYD
VQQIEwJPSDERMA8GA1UEBxMIQ29sdW1idXMxIDAeBgNVBAoTF1ByaXZhdGUgSW50
ZXJuZXQgQWNjZXNzMSMwIQYDVQQDExpQcml2YXRlIEludGVybmV0IEFjY2VzcyBD
QTEvMC0GCSqGSIb3DQEJARYgc2VjdXJlQHByaXZhdGVpbnRlcm5ldGFjY2Vzcy5j
b22CCQDrajJEdiUl6zAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBAByH
atXgZzjFO6qctQWwV31P4qLelZzYndoZ7olY8ANPxl7jlP3YmbE1RzSnWtID9Gge
fsKHi1jAS9tNP2E+DCZiWcM/5Y7/XKS/6KvrPQT90nM5klK9LfNvS+kFabMmMBe2
llQlzAzFiIfabACTQn84QLeLOActKhK8hFJy2Gy6
-----END CERTIFICATE-----'
OPVPNENABLE=`nvram get openvpncl_enable | awk '$1 == "0" {print $1}'`
if [ "$OPVPNENABLE" != 0 ]; then
nvram set openvpncl_enable=0
nvram commit
fi
sleep 10
mkdir /tmp/pia; cd /tmp/pia
echo -e "$USERNAME\n$PASSWORD" > userpass.conf
echo "$CA_CRT" > ca.crt
echo "#!/bin/sh
iptables -t nat -I POSTROUTING -o tun0 -j MASQUERADE" > route-up.sh
echo "#!/bin/sh
iptables -t nat -D POSTROUTING -o tun0 -j MASQUERADE" > route-down.sh
chmod 644 ca.crt; chmod 600 userpass.conf; chmod 700 route-up.sh route-down.sh
sleep 10
echo "client
auth-user-pass /tmp/pia/userpass.conf
management 127.0.0.1 5001
management-log-cache 50
dev tun0
proto $PROTOCOL
comp-lzo adaptive
fast-io
script-security 2
mtu-disc yes
verb 4
mute 5
cipher bf-cbc
auth sha1
tun-mtu 1500
resolv-retry infinite
nobind
persist-key
persist-tun
tls-client
remote-cert-tls server
log-append piavpn.log
ca ca.crt
status-version 3
status status
daemon
$REMOTE_SERVERS" > pia.conf
ln -s /tmp/pia/piavpn.log /tmp/piavpn.log
ln -s /tmp/pia/status /tmp/status
(killall openvpn; openvpn --config /tmp/pia/pia.conf --route-up /tmp/pia/route-up.sh --down /tmp/pia/route-down.sh) &
exit 0
This is a really helpful post because not too many people out there are trying to do this exact thing.
I've tried like heck with my Linksys WRT3200ACM running DD-WRT build 2/17/2018. I have a Fire TV that I use mostly for running sideloaded Android apps and playing local network media from my NAS. I wanted to get the Fire TV to go through PIA on my router and allow the rest of my home network traffic to avoid the VPN.
With the easy GUI, I was able to get PIA to show a stable connection on the DD-WRT Status/VPN page, so I think it's working. The problem arose when I reserved an IP for the Fire TV on my router outside the DHCP range and named that IP as the single one to go through the VPN. I'm told, policy based routing switches the router application of the VPN to white listing only named addresses to use the service. That seemed to work, because as soon as I named an IP for policy based routing, all other traffic jumped to full (non-VPN) speed and showed as unprotected at the PIA website.
The problem was, when the Fire connected to the reserved IP, it immediately showed a loss of internet connectivity. No amount of fiddling with settings has brought joy. I suspect that something in my setup is wrong. Is it okay to set the reserved IP on the router via the MAC/host address? Is it okay to leave the wired Fire TV network setting at default, assuming it just joins the IP reserved for it? (I think so, because the reserved IP setup worked as long as I had the OpenVPN settings disabled) Also, since I've had constant trouble with UDP in my PIA settings, is it okay to switch to TCP as I have done?
Anyway, I finally hit the wall and I'm posting to the collective brain of the internet about this. I guess it's all too vague to solve as there are about a hundred moving parts, but I thought I'd give it a shot.
Thanks!

Categories

Resources