LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index -> Operating Systems » OS - Unix
Author Message
badcrow
Cat Chaser
Cat Chaser


Joined: 13 Sep 2001
Posts: 655
Location: Canary Islands

Post Posted: Thu Apr 21, 2005 3:47 pm   Post subject: Finally got my DSL working on FreeBSD Reply with quote Back to top  

Just got the DSL working on FreeBSD, and thought I would visit LWD with Lynx to see how different it looks than a graphic Browser.

Now to get the rest of the stuff I have been putting off Smile
View user's profile Send private message Visit poster's website
Mahmoud
Cat Chaser
Cat Chaser


Joined: 24 Nov 2003
Posts: 896
Location: AE, Shj

Post Posted: Fri Apr 22, 2005 9:19 am   Post subject: Reply with quote Back to top  

Cool.. Could you share with us the process you folowed in order to run your ADSL on a FreeBSD box?

_________________
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
badcrow
Cat Chaser
Cat Chaser


Joined: 13 Sep 2001
Posts: 655
Location: Canary Islands

Post Posted: Fri Apr 22, 2005 2:32 pm   Post subject: Reply with quote Back to top  

This is the ppp.conf located in /etc/ppp , see below

Then as Root type:

ppp -ddial name_of_the_provider #name of the provider gotten from below

Then I logged into another Virtual Terminal, any user will do, but mine had SuperUser privileges. Didnt need to use them but they were there. Then surfed away....

The next step is to set it so it will login at startup, and redial when it's lost. Got to love FreeBSD Docs, and I also bought a book, The Complete FreeBSD. All of which helped..

Some useful links

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pppoe.html
http://renaud.waldura.com/doc/freebsd/pppoe/

Code: Select all

#################################################################
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.8 2001/06/21 15:42:26 brian Exp $
#################################################################

default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)

 # Ensure that "device" references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #
# set device /dev/cuaa1

#added by wade 4-7-2005
name_of_the_provider:
 set device PPPoE:vr0       #vr0 was the address of my ethernet card, see below
 set authname XXXXXXX  #get this from your ISP
 set authkey XXXXXXXX   #get this from your ISP
 set dial
 set login
 enable dns
 add default HISADDR

# set speed 115200
# set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
#           \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
# set timeout 180         # 3 minute idle timer (the default)
# enable dns            # request DNS info (for resolv.conf)

papchap:
 #
 # edit the next three lines and replace the items in caps with
 # the values which have been assigned by your ISP.
 #

# set phone PHONE_NUM
# set authname XXXXXXX
# set authkey XXXXXXX

 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
# add default HISADDR         # Add a (sticky) default route




to get the address of the ethernet card type this:

dmesg | grep address
View user's profile Send private message Visit poster's website
Mahmoud
Cat Chaser
Cat Chaser


Joined: 24 Nov 2003
Posts: 896
Location: AE, Shj

Post Posted: Sun Apr 24, 2005 3:07 am   Post subject: Reply with quote Back to top  

ethernet for ADSL? ... how is this?

what if i have an ADSL modem using USB.. i think i need a driver for this.. am i right?

_________________
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
badcrow
Cat Chaser
Cat Chaser


Joined: 13 Sep 2001
Posts: 655
Location: Canary Islands

Post Posted: Sun Apr 24, 2005 6:43 am   Post subject: Reply with quote Back to top  

Your tapping the limit of my knowledge here, but Ill give it a try. I looked through some DOC's and through the book I have. THis is what I have come up with so far.

You do this at install or later by typing /stand/sysinstall
Quote:
If you have USB peripherals, select usbd to enable the usb daemon, which recognizes when USB devices are added or removed


Now as far as the ADSL Modem, it may have a driver already there for it, if not you will have to check the FreeBSD web site to see if it is supported. I know all of my stuff has been so far. But then again I dont have any out of the ordinary stuff running here.

I would say just give it a try and see what happens. Do you have FreeBSD installed now?
View user's profile Send private message Visit poster's website
badcrow
Cat Chaser
Cat Chaser


Joined: 13 Sep 2001
Posts: 655
Location: Canary Islands

Post Posted: Sun Apr 24, 2005 7:20 am   Post subject: Reply with quote Back to top  

I was thinking about this alittle more and came to the conclusion that PPPoe isnt what you want. You PROBIBLY want just straight up PPP with the device name in the ppp.conf file named for your usb device. I hope Im making sense here..

Anyway, this might work. Im not really sure, never tryed it.

Code: Select all

name_of_the_provider:
 set device /dev/ugen0     # first generic usb device
                           # you may have to get rid of the /dev/ but Im not sure.
                           # For some reason I think that you need it. Thats why I put it there.
 set authname XXXXXXX  #get this from your ISP
 set authkey XXXXXXXX   #get this from your ISP
 set dial
 set login
 enable dns
 add default HISADDR


Device names and usage:
ugen0 = first generic usb device
ukbd0 = first usb keyboard
ulpt0 = first usb printer
umass0 = first usb mass storage device
ums0 = first usb mouse
uscanner0 = first usb scanner
View user's profile Send private message Visit poster's website
skildude
Moderator
Moderator


Joined: 02 Feb 2003
Posts: 8019
Location: Texas: Land o' Religions

Post Posted: Sun Apr 24, 2005 11:05 am   Post subject: Reply with quote Back to top  

heh you're using lynx we use lynx to run out abbott cell-dynn 4000 hematology instrument at work. I did notice that many to most laboratory insturments use unix/linux for the operating systems

_________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I decided to say something witty but am at a loss for words...

My clouds silver lining has been tarnished black . It still follows me around but makes outcomes a whole lot more grim.
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger
Mahmoud
Cat Chaser
Cat Chaser


Joined: 24 Nov 2003
Posts: 896
Location: AE, Shj

Post Posted: Sun Apr 24, 2005 11:05 am   Post subject: Reply with quote Back to top  

and the device name can not appear unless i install its driver?.


i hope your ADSL works fine

_________________
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
badcrow
Cat Chaser
Cat Chaser


Joined: 13 Sep 2001
Posts: 655
Location: Canary Islands

Post Posted: Sun Apr 24, 2005 5:37 pm   Post subject: Reply with quote Back to top  

eech55 wrote:
and the device name can not appear unless i install its driver?.


i hope your ADSL works fine



It should appear if you have the USB daemon running. The system should see the device and assign it an address, well really more of a device name. The driver may already be there, if that is the case, the system will load it for you. Of course you could compile it into the kernal later if you wanted to gain alittle performance edge.
View user's profile Send private message Visit poster's website
badcrow
Cat Chaser
Cat Chaser


Joined: 13 Sep 2001
Posts: 655
Location: Canary Islands

Post Posted: Sun Apr 24, 2005 5:42 pm   Post subject: Reply with quote Back to top  

skildude wrote:
heh you're using lynx we use lynx to run out abbott cell-dynn 4000 hematology instrument at work. I did notice that many to most laboratory insturments use unix/linux for the operating systems


Cool. I should ask a bead friend of mine if they use Linux/unix in the lab she works in down in the cities. She is some kind of lab tech, not really sure what, you would think I would know since I have known her for a couple of years now.
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic     Reply to topic

View next topic
View previous topic
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


Powered by phpBB © 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours

Help us keep advertisements off this site. Donate today!