Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 29 Jul 2016, 06:21
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Frubee: program for Internet connection - OLD
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
tone

Joined: 25 Jul 2010
Posts: 28

PostPosted: Fri 12 Jun 2015, 08:21    Post subject:  Frubee: program for Internet connection - OLD
Subject description: Via router: without the use of DHCP server, DHCP client. Via USB modem sticks: with pppd.
 

OLD TOPIC
THE DIRECTIONS OF THIS TOPIC ARE VALID UP TO VERSION 1.0.0
In the version 2.0.0 the management of Command-line arguments has changed.
To be more clear, I created a new topic.

FOR DIRECTIONS FROM VERSION 2.0.0, SEE THE NEW TOPIC AT http://murga-linux.com/puppy/viewtopic.php?t=100924



I designed and developed a program that connects the client to the router and assign IP address dynamically (to the client on which it's executed), without the use of the DHCP (no DHCP client, no DHCP server).
The program (via pppd) also allows connection to the Internet with USB modem sticks or mobile phone plug to the PC with USB (not tested with smartphones).
This is the URL:
https://github.com/tone77/frubee

I wrote the instructions to try it on Precise Puppy 5.7.1 (kernel 3.9.11).
If you don't want build Frubee, to install it run frubee-0.0.1.pet.
For build Frubee you must install "devx_precise_5.7.1.sfs"
(http://distro.ibiblio.org/quirky/precise-5.7.1/devx_precise_5.7.1.sfs)
and run from shell the script "install.sh".

Once installed, run from shell:
Code:

frubee "0" "0" 0

and follow the onscreen instructions.

Light test
You can try Frubee even if the PC has already an IP address and it's connected to the router via DHCP.
Run Frubee.
To restore the original configuration restart PC (PC could have another IP address).

Full test
To avoid the risk of no longer be able to connect, before running the full test, it's advisable to check if Frubee connects to Internet with the mode aforementioned, that is not by manually editing the original configuration.
For details read below.
1. Disable DHCP server in the router
2. Disable DHCP client in Precise Puppy 5.7.1: run "mv /usr/sbin/dhcpcd /usr/sbin/dhcpcd_"
3. Restart PC
4. Run Frubee
5. Re-enable DHCP server in the router
6. Re-enable DHCP client in Precise Puppy 5.7.1: run "mv /usr/sbin/dhcpcd_ /usr/sbin/dhcpcd"
7. Restart PC

The package:
frubee-0.0.1.pet
Description 
pet

 Download 
Filename  frubee-0.0.1.pet 
Filesize  23.44 KB 
Downloaded  127 Time(s) 

Last edited by tone on Thu 10 Sep 2015, 09:14; edited 2 times in total
Back to top
View user's profile Send private message 
tone

Joined: 25 Jul 2010
Posts: 28

PostPosted: Wed 17 Jun 2015, 03:44    Post subject:  

Directions for use during the operating system boot.
1. Disable DHCP server in the router
2. Disable DHCP client in Precise Puppy 5.7.1: run "mv /usr/sbin/dhcpcd /usr/sbin/dhcpcd_"
3. In the file "/etc/rc.d/rc.local" insert:
Code:

   frubee "0" "0" 1 > /dev/console

or
If you want to connect automatically, pass the correct "Nation" and "Operator":
Code:

   frubee "Nation" "Operator" 1 > /dev/console

To assign a value to the parameters "Nation" and "Operator" read https://github.com/tone77/frubee/blob/master/README-from-ver-0.0.1.
In this URL you can also read the directions to add a mobile phone operator, a router or custom router of an ISP.
4. Restart PC

If frubee doesn't connects to Internet, read the file "/tmp/NOCONNECT.err" to see the error.

Restore the original configuration
1. Comment in the file "/etc/rc.d/rc.local" the command for run frubee
2. Re-enable DHCP server in the router
3. Re-enable DHCP client in Precise Puppy 5.7.1: run "mv /usr/sbin/dhcpcd_ /usr/sbin/dhcpcd"
4. Restart PC

Last edited by tone on Wed 24 Jun 2015, 08:41; edited 2 times in total
Back to top
View user's profile Send private message 
tone

Joined: 25 Jul 2010
Posts: 28

PostPosted: Sat 20 Jun 2015, 03:43    Post subject:  

I released version 0.2.1 of Frubee

For details read:
https://github.com/tone77/frubee/commit/6a11039dba618df9d88a6a308677023d6f6d991c
https://github.com/tone77/frubee/commit/2d437a68d565f5d507a25884990a824a3a8fec6a
https://github.com/tone77/frubee/commit/c9e97a6ea8177912f027128d31be85fc7d646b12

pet for Precise Puppy 5.7.1
frubee-0.2.1-precise571.pet
Description 
pet

 Download 
Filename  frubee-0.2.1-precise571.pet 
Filesize  23.53 KB 
Downloaded  112 Time(s) 
Back to top
View user's profile Send private message 
tone

Joined: 25 Jul 2010
Posts: 28

PostPosted: Thu 25 Jun 2015, 04:07    Post subject:  

I released version 0.3.0 of Frubee

Has been added the possibility to set the range of the IP addresses to be assigned with Frubee.
The change allows to reserve some IP addresses to be assigned exclusively to Frubee that in this way can coexist peacefully with DHCP on the same router.

Examples
Router 192.168.1.1
DHCP - Start IP address 192.168.1.2
DHCP - End IP address 192.168.1.199
Frubee - Start IP address 192.168.1.200
Frubee - End IP address 192.168.1.254
Code:
frubee "0" "0" 200 254 0

or
Router 192.168.1.1
Frubee - Start IP address 192.168.1.2
Frubee - End IP address 192.168.1.49
DHCP - Start IP address 192.168.1.50
DHCP - End IP address 192.168.1.254
Code:
frubee "0" "0" 2 49 0


For details and changes made in the source code, read https://github.com/tone77/frubee/commit/d7fa3fb0a5fefbe7e139526e4a003a3f36b8f926

pet for Precise Puppy 5.7.1
frubee-0.3.0-precise571.pet
Description 
pet

 Download 
Filename  frubee-0.3.0-precise571.pet 
Filesize  23.89 KB 
Downloaded  98 Time(s) 
Back to top
View user's profile Send private message 
tone

Joined: 25 Jul 2010
Posts: 28

PostPosted: Tue 07 Jul 2015, 09:11    Post subject:  

I released version 1.0.0 of Frubee
Has been added the possibility to connect multiple 3G USB modem (multiple pppd).
For details and changes made in the source code, read https://github.com/tone77/frubee/commit/1c331878c0c86f46dad8f67d1f8e3a14ed64e9b5

To manage the multiple connection I also created the scripts:
frubee_dm (frubee detect modem). This script creates the list of device to pass to frubee for the connection of multiple 3G USB modem: detects only USB modem sticks, not detects mobile phone
frubee_tc (frubee test connection). This script shows connection status of ppp0, ppp1, ppp2, ppp3, ppp4


To explain the operating directions, I write an example. I tried with two modems, but Frubee can connect more.

STEP 0
In order to have a correct detection of modems, restart your PC.

STEP 1
Run in the shell
Code:
 
frubee_tc [URL on which run the ping test] [Interval of seconds between a control and the other]

it appears:
Code:
 
Bytes received in connection ppp0: NOT CONNECTED
Bytes received in connection ppp1: NOT CONNECTED
Bytes received in connection ppp2: NOT CONNECTED
Bytes received in connection ppp3: NOT CONNECTED
Bytes received in connection ppp4: NOT CONNECTED
        TO STOP THE SCRIPT PRESS CTRL+C
------------------------------------------------

If unplug and plug the modem, "frubee_dm" doesn't work correctly: in this case you have to restart the PC.


STEP 2
Plug the first 3G USB modem (I have "Huawei E1820") and run frubee_dm in the shell
It appears:
Code:

-------------------------------------------------
Parameter to be passed to frubee for the modem 1:
ttyUSB0
if not working, try:
ttyUSB1
if not working, try:
ttyUSB2



STEP 3
Plug the second 3G USB modem (I have "Huawei E220") and run frubee_dm in the shell
It appears:
Code:

-------------------------------------------------
Parameter to be passed to frubee for the modem 1:
ttyUSB0
if not working, try:
ttyUSB1
if not working, try:
ttyUSB2
-------------------------------------------------
Parameter to be passed to frubee for the modem 2:
ttyUSB3
if not working, try:
ttyUSB4



STEP 4
To connect the modem 1, run
Code:

frubee "0" "0" 0 0 "ttyUSB0" 0


situation in frubee_tc once connected the modem 1
Code:

Bytes received in connection ppp0: 102
Bytes received in connection ppp1: NOT CONNECTED
Bytes received in connection ppp2: NOT CONNECTED
Bytes received in connection ppp3: NOT CONNECTED
Bytes received in connection ppp4: NOT CONNECTED
        TO STOP THE SCRIPT PRESS CTRL+C
------------------------------------------------
Bytes received in connection ppp0: 432
Bytes received in connection ppp1: NOT CONNECTED
Bytes received in connection ppp2: NOT CONNECTED
Bytes received in connection ppp3: NOT CONNECTED
Bytes received in connection ppp4: NOT CONNECTED
        TO STOP THE SCRIPT PRESS CTRL+C
------------------------------------------------



STEP 5
Once connected the modem 1, to connect the modem 2, run
Code:

frubee "0" "0" 0 0 "ttyUSB3" 0   


situation in frubee_tc once connected the modem 1 and modem 2
Code:

Bytes received in connection ppp0: 4810
Bytes received in connection ppp1: 158
Bytes received in connection ppp2: NOT CONNECTED
Bytes received in connection ppp3: NOT CONNECTED
Bytes received in connection ppp4: NOT CONNECTED
        TO STOP THE SCRIPT PRESS CTRL+C
------------------------------------------------
Bytes received in connection ppp0: 4810
Bytes received in connection ppp1: 242
Bytes received in connection ppp2: NOT CONNECTED
Bytes received in connection ppp3: NOT CONNECTED
Bytes received in connection ppp4: NOT CONNECTED
        TO STOP THE SCRIPT PRESS CTRL+C
------------------------------------------------



If, however, there is something not clear, ask as well, I'm at your disposal.


my desktop with the shell: desktop.png
pet for Precise Puppy 5.7.1: frubee-1.0.0-precise571.pet
desktop.png
Description 
png

 Download 
Filename  desktop.png 
Filesize  174.92 KB 
Downloaded  168 Time(s) 
frubee-1.0.0-precise571.pet
Description 
pet

 Download 
Filename  frubee-1.0.0-precise571.pet 
Filesize  27.26 KB 
Downloaded  114 Time(s) 
Back to top
View user's profile Send private message 
tone

Joined: 25 Jul 2010
Posts: 28

PostPosted: Sat 01 Aug 2015, 08:14    Post subject:  

I created the package of Frubee 1.0.0 for Slacko 5.7.0
The operating directions are the same as those of Precise Puppy 5.7.1
frubee-1.0.0-slacko570.pet
Description 
pet

 Download 
Filename  frubee-1.0.0-slacko570.pet 
Filesize  25.34 KB 
Downloaded  101 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0530s ][ Queries: 12 (0.0046s) ][ GZIP on ]