maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Unable to get internet in maemo 5 sdk in Xephyr under scratchbox (https://talk.maemo.org/showthread.php?t=58360)

aathava 2010-07-13 11:42

Unable to get internet in maemo 5 sdk in Xephyr under scratchbox
 
Installed Maemo SDK Virtual Image ., every thing works fine expect the internet connectivity in maemo 5 under Xephyr

configured as follow:

configured network adapter as Nat under virtual machine and ubuntu host is preconfigured with two network connections

ifupdown(bnep0)
ifupdown(usb0)

gets internet connectivity under ubuntu if ifupdown(bnep0) is made active and it doesn't works with the other way around

Output of these two commands:

Code:

cat /etc/resolv.conf
ifconfig

Quote:

maemo@maemo-desktop:~$ ifconfig
eth6 Link encap:Ethernet HWaddr 00:0c:29:03:ce:4d
inet addr:192.168.194.135 Bcast:192.168.194.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe03:ce4d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:187 errors:0 dropped:0 overruns:0 frame:0
TX packets:434 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37396 (37.3 KB) TX bytes:48152 (48.1 KB)
Interrupt:18 Base address:0x1424

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:265 errors:0 dropped:0 overruns:0 frame:0
TX packets:265 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22180 (22.1 KB) TX bytes:22180 (22.1 KB)

maemo@maemo-desktop:~$ cat /etc/resolv.conf
# Generated by NetworkManager
domain localdomain
search localdomain
nameserver 192.168.194.2


Tried these commands:

Code:

sudo /scratchbox/sbin/sbox_ctl restart

cp /etc/resolv.conf /scratchbox/etc/resolv.conf

hope some configuration needed in scratchbox,
For some reason, Maemo doesn't properly set up networking, so help me to manually configure networking in scratchbox,

so i could test the various applications in it before installing it to the actual device

ek-zwo 2010-07-14 20:01

Re: Unable to get internet in maemo 5 sdk in Xephyr under scratchbox
 
Quote:

Originally Posted by aathava (Post 750197)
Code:

sudo /scratchbox/sbin/sbox_ctl restart

cp /etc/resolv.conf /scratchbox/etc/resolv.conf


Hi aathava,

please ensure that you copy the /etc/resolv.conf as root (sudo) as well.
Your actual command does not overwrite /scratchbox/etc/resolv.conf

Code:

sudo cp /etc/resolv.conf /scratchbox/etc/resolv.conf
Afterwards Internet access from inside scratchbox was working for me.

sampppa 2010-07-15 12:27

Re: Unable to get internet in maemo 5 sdk in Xephyr under scratchbox
 
Hello

If you are using the latest vm ware image notice that it is a known issue in the image that it doesn't have eth0 interface by default.
Read more on this thread: http://talk.maemo.org/showthread.php...=vmware&page=2 from the post #17 forward.

aathava 2010-07-15 15:01

Re: Unable to get internet in maemo 5 sdk in Xephyr under scratchbox
 
wow! its working now .,


All times are GMT. The time now is 14:02.

vBulletin® Version 3.8.8