WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Mobile Broadband  (Read 8121 times)

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Mobile Broadband
« Reply #15 on: December 04, 2011, 04:29:59 AM »
I have now got it started.

I added libxcb.tcz to OnBoot.

This probably needs to be included as a dependency. (I have not checked the dep file)


Now to see if I can get connected to the internet.
Many people see what is. Some people see what can be, and make a difference.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Mobile Broadband
« Reply #16 on: December 04, 2011, 05:32:36 AM »
After adding libxcb.tcz to OnBoot, I got the graphical interface - the same as in Linux Mint, and I can set it up the same.

However, I previously explored the files and directories where the settings are saved (in /etc), and these are not being created in Tinycore. So the graphical interface appears to work correctly, but the settings are not saved (unless they are in a different place). There seems to be something fundamental missing.

It would be good to get this working, so we can have an easy method for users to connect to mobile broadband.

I think, in the future, more people will use mobile broadband than other types of internet connections.
Many people see what is. Some people see what can be, and make a difference.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11283
Re: Mobile Broadband
« Reply #17 on: December 04, 2011, 05:40:47 AM »
Hi Guy
/usr/local/etc is one possibility.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Mobile Broadband
« Reply #18 on: December 04, 2011, 06:10:34 AM »
There is something in /usr/local/etc, but it looks like blank files before the settings are put in.

Some things are also saved in the home directory.
Many people see what is. Some people see what can be, and make a difference.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11283
Re: Mobile Broadband
« Reply #19 on: December 04, 2011, 06:19:52 AM »
Hi Guy
If you want to find which files are being changed:
Open a terminal and type
touch Now
Then change some settings.
At the terminal enter
sudo find / -newer Now
That should list any files that were modified since you executed the touch command and hopefully
provide enough clues of which files/directories to add to your backup.

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: Mobile Broadband
« Reply #20 on: December 04, 2011, 06:26:29 AM »
hi guy,

my files in
/etc/ppp
total 4
-rw-------    1 tc       staff           78 Mar 12  2011 chap-secrets
-rwxr--r--    1 tc       staff          458 Oct 21 21:04 ip-down
-rwxr--r--    1 tc       staff          405 Oct 21 21:04 ip-up
-rw-r--r--    1 tc       staff          152 Apr  7  2011 options
-rw-r--r--    1 tc       staff          219 Apr  7  2011 options.demand
-rw-------    1 tc       staff           77 Mar 12  2011 pap-secrets
-rw-r--r--    1 tc       staff          212 Apr  7  2011 pppscript



my  pppscript:

TIMEOUT 10
ABORT "ERROR"
ABORT "BUSY"
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
"" "ATZ"
OK "ATE1V1&D2&C1S0=0+IFC=2,2"
#OK "ATE1V1&D2&C1S0=0"
OK "ATE1"
TIMEOUT 60
OK AT+CGDCONT=1,"myprovider","apn_of_myprovider"
OK ATD*99***1#
CONNECT



my options:

lock
defaultroute
noipdefault
usepeerdns
modem
/dev/ttyUSB0
460800
nocrtscts
ipxcp-accept-local
ipxcp-accept-remote
debug
passive
asyncmap 0
name "user"



my options.demand:

lock
defaultroute
noipdefault
usepeerdns
modem
/dev/ttyUSB0
460800
nocrtscts
debug
passive
asyncmap 0
name "user"
ipcp-accept-local
ipcp-accept-remote
#0.0.0.0:10.10.10.10
#demand
connect "chat -v -f /etc/ppp/pppscript"



these are all my files in my meta-package for /usr/local

/usr/local$ ls -lR
.:
total 0
drwxr-xr-x    2 tc       staff           79 Nov  9 16:29 bin/
drwxr-xr-x    3 tc       staff           27 Oct 22 00:35 include/
drwxr-xr-x    3 tc       staff           27 Oct 22 00:35 lib/
drwxr-xr-x    2 tc       staff           93 Oct 22 00:35 sbin/
drwxr-sr-x    3 tc       staff           30 Nov  6 14:10 share/
drwxrwxr-x    2 tc       staff           30 Nov  6 23:22 tce.installed/

./bin:
total 5
-rwxr--r--    1 tc       staff           76 Apr  7  2011 connect
-rwxr--r--    1 tc       staff           54 Oct 21 22:53 pin
-rwx------    1 tc       staff          289 Nov  9 12:07 poff
-rwxr--r--    1 tc       staff          743 Nov  9 16:29 pon
-rwsr-xr-x    1 tc       staff         1859 Jan  1  1970 ppp-off

./include:
total 0
drwxr-xr-x    2 tc       staff          315 Oct 22 00:35 pppd/

./include/pppd:
total 97
-rw-r--r--    1 tc       staff         2098 Jan  1  1970 ccp.h
-rw-r--r--    1 tc       staff         4412 Jan  1  1970 chap-new.h
-rw-r--r--    1 tc       staff         3928 Jan  1  1970 chap_ms.h
-rw-r--r--    1 tc       staff         5218 Jan  1  1970 eap.h
-rw-r--r--    1 tc       staff         1711 Jan  1  1970 ecp.h
-rw-r--r--    1 tc       staff         6137 Jan  1  1970 fsm.h
-rw-r--r--    1 tc       staff         4028 Jan  1  1970 ipcp.h
-rw-r--r--    1 tc       staff         3581 Jan  1  1970 ipxcp.h
-rw-r--r--    1 tc       staff         5611 Jan  1  1970 lcp.h
-rw-r--r--    1 tc       staff         2118 Jan  1  1970 magic.h
-rw-r--r--    1 tc       staff         2167 Jan  1  1970 md4.h
-rw-r--r--    1 tc       staff         3120 Jan  1  1970 md5.h
-rw-r--r--    1 tc       staff          119 Jan  1  1970 patchlevel.h
-rw-r--r--    1 tc       staff         1813 Jan  1  1970 pathnames.h
-rw-r--r--    1 tc       staff         1657 Jan  1  1970 pppcrypt.h
-rw-r--r--    1 tc       staff        35083 Jan  1  1970 pppd.h
-rw-r--r--    1 tc       staff          653 Jan  1  1970 sha1.h
-rw-r--r--    1 tc       staff         1490 Jan  1  1970 spinlock.h
-rw-r--r--    1 tc       staff         5489 Jan  1  1970 tdb.h
-rw-r--r--    1 tc       staff         3875 Jan  1  1970 upap.h

./lib:
total 0
drwxr-xr-x    3 tc       staff           28 Oct 22 00:35 pppd/

./lib/pppd:
total 0
drwxr-xr-x    2 tc       staff          148 Oct 22 00:35 2.4.4/

./lib/pppd/2.4.4:
total 92
-rwxr-xr-x    1 tc       staff         4857 Jan  1  1970 minconn.so
-rwxr-xr-x    1 tc       staff         7284 Jan  1  1970 passprompt.so
-rwxr-xr-x    1 tc       staff         5627 Jan  1  1970 passwordfd.so
-rwxr-xr-x    1 tc       staff         4340 Jan  1  1970 radattr.so
-rwxr-xr-x    1 tc       staff        45996 Jan  1  1970 radius.so
-rwxr-xr-x    1 tc       staff         9884 Jan  1  1970 radrealms.so
-rwxr-xr-x    1 tc       staff        14402 Jan  1  1970 winbind.so

./sbin:
total 325
-rwxr-xr-x    1 tc       staff        19044 Jan  1  1970 chat
-r-xr-xr-x    1 tc       staff       239868 Jan  1  1970 pppd
-rwxr-xr-x    1 tc       staff        43768 Jan  1  1970 pppdump
-r-xr-xr-x    1 tc       staff        18252 Jan  1  1970 pppoe-discovery
-rwxr-xr-x    1 tc       staff         9964 Jan  1  1970 pppstats

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Mobile Broadband
« Reply #21 on: December 04, 2011, 06:53:53 AM »
Thanks all

Rich - it seems like the settings are not actually being saved, but will investigate more later. I will be working long hours this week. I may or may not have time before next weekend.

Just to clarify - the settings in home are being saved. It seems the settings in (/etc or) /usr/local/etc are not being saved.

There may be some other app or dependency which needs to be run to make this work.


netnomad - I hope to look into this when I have time.


Anyone with more ideas, please share them.
Many people see what is. Some people see what can be, and make a difference.

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: Mobile Broadband
« Reply #22 on: December 04, 2011, 07:25:21 AM »
you should be able to start NetworkManager from base but for nm-applet (network-manager-gnome) you need at least a panel, you can setup lxde or xfce

just make sure NetworkManager daemon is running and execute nm-applet as root, then an icon should apper in your panel

also you may need mobile-broadband-provider-info extension
« Last Edit: December 04, 2011, 07:28:58 AM by Arslan S. »

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Mobile Broadband
« Reply #23 on: December 07, 2011, 03:07:25 AM »
I am now running with xfce.

I can start the "Network Connections" graphical interface from the terminal, using "nm-connection-editor". It does not appear in the menu, or as an icon.

The graphical interface works correctly, and saves settings in /home.

However, nothing is saved in (/etc or) /usr/local/etc, the same as before using xfce. So it is not possible to get a connection.

Is there anyone who has this working. If so what did you do?

I suspect there are one or more dependencies missing. Any help in getting this to work would be appreciated, and beneficial for other Tinycore users with mobile broadband.
« Last Edit: December 07, 2011, 03:31:35 AM by Guy »
Many people see what is. Some people see what can be, and make a difference.

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: Mobile Broadband
« Reply #24 on: December 07, 2011, 08:24:55 AM »
did you install ModemManager and mobile-broadband-provider-info ?

assuming NetworkManager daemon is running when you run nm-applet as root an icon should appear in your panel and you should be able to manage network connections

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Mobile Broadband
« Reply #25 on: December 08, 2011, 03:57:31 AM »
Yes, I installed ModemManager and mobile-broadband-provider-info.

I don't get an icon.

In xfce I can only start it with the terminal.

In Tinycore without xfce, I can start it from the menu.


Have you had this running correctly and used it to connect mobile broadband?


It seems the front end is running correctly, but something else is missing. It probably needs more dependencies. But which ones?
Many people see what is. Some people see what can be, and make a difference.

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: Mobile Broadband
« Reply #26 on: December 08, 2011, 08:13:01 AM »
no i have never connected to a mobile broadband before

do you see your device in the nm-applet's menu when you connect it to your computer ?

if not that may be because of udev rules (see modemmanager files list)

to monitor udev events
Code: [Select]
udevadm monitor
« Last Edit: December 08, 2011, 08:16:39 AM by Arslan S. »

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Mobile Broadband
« Reply #27 on: December 09, 2011, 02:36:50 AM »
When I connect to mobile broadband in Linux Mint, I have Network Connections, which I think is the same as network-manager-gnome, set up, and when I turn on the computer, it automatically connects to the internet.

-------

Back to Tinycore.

If I open the terminal, and type

udevadm monitor

then connect the modem, I get many lines. The first line is

KERNEL [83.924960] add     /devices/pci0000:00/0000:00:03.3/usb1/1-1 (usb)

There are many other similar lines.

---------

To start Network Connections with xfce, I open the terminal and type

nm-connection-editor

I get 4 paragraphs. This starts

** (nm-connection-editor:4727): WARNING **: nm_connection_list_new: failed to load VPN plugins: Couldn't read VPN .name files directory /usr/local/etc/NetworkManager/VPN.

** (nm-connection-editor:4727): WARNING **: get_all_cb: couldn't retrieve system settings properties: (2) The name org.freedesktop.NetworkManagerSystemSettings was not provided by any .service files.

and files such as /usr/local/etc/NetworkManager/VPN don't exist.

I hope this provides some clues.
Many people see what is. Some people see what can be, and make a difference.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Mobile Broadband
« Reply #28 on: December 09, 2011, 03:41:07 AM »
Arslan S

I don't know where you live, how busy you are, or anything else about your situation, but

are you in a situation where you could purchase a prepaid mobile broadband modem and use it to get this working. You can often get prepaid modems with one month worth of data quite inexpensively. I don't want you to feel pressured, but if you can it would be greatly appreciated. It would be a big benefit for many people using Tinycore.


Anyone else

Is there anyone else who could purchase a prepaid mobile broadband modem and use it to get this working. Many Tinycore users would appreciate someone doing this.

If more than one person contributes, and you help each other, that would be great.
Many people see what is. Some people see what can be, and make a difference.

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: Mobile Broadband
« Reply #29 on: December 09, 2011, 05:38:30 AM »
Arslan S

I don't know where you live, how busy you are, or anything else about your situation, but

are you in a situation where you could purchase a prepaid mobile broadband modem and use it to get this working. You can often get prepaid modems with one month worth of data quite inexpensively. I don't want you to feel pressured, but if you can it would be greatly appreciated. It would be a big benefit for many people using Tinycore.


Anyone else

Is there anyone else who could purchase a prepaid mobile broadband modem and use it to get this working. Many Tinycore users would appreciate someone doing this.

If more than one person contributes, and you help each other, that would be great.

unfortunately i don't have much time left before i leave for 5-6 months due to military obligations in my country (Rep. of Turkey)