Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: nic needs to be forced!!

  1. #1
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93

    nic needs to be forced!!

    I can't get on the internet without being su.

    Have to type in : mii-tool -F 10baseT-HD eth0 (as su) to force my nic to work!

    Then again as su I have to pon.

    (It is configured with pppoeconfig)

    Once the nic is forced it goes great.

    I am using a COM 21 Cable Modem with with www.wanadoo.nl as my provider. I connect with an ethernet card.

    What I would love to happen is for:

    1. All my users to be able to pon (without being su)

    2. I would like to set it up so I (or my users) don't have to type manually "mii-tool -F 10baseT-HD eth0" (as su) to force my nic to work every time!!!

    I've been trying to work this out for months I am going nuts

    Thanks

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: nic needs to be forced!!

    Quote Originally Posted by FelixDzerzhinsky
    2. I would like to set it up so I (or my users) don't have to type manually "mii-tool -F 10baseT-HD eth0" (as su) to force my nic to work every time!!!


    Thanks
    Have you tried putting the line in /etc/init.d/bootmisc.sh so the command is run every time you boot.

  3. #3
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93
    This is what my file looks like. Where do I put the "mii-tool -F 10baseT-HD eth0 " ???


    # bootmisc.sh Miscellaneous things to be done during bootup.
    #
    # Version: @(#)bootmisc.sh 2.78 13-Nov-1999 miquels@cistron.nl
    #

    . /etc/default/rcS
    #
    # Put a nologin file in /etc to prevent people from logging in before
    # system startup is complete.
    #
    if [ "$DELAYLOGIN" = yes ]
    then
    echo "System bootup in progress - please wait" > /etc/nologin
    cp /etc/nologin /etc/nologin.boot
    fi

    #
    # Wipe /tmp (and don't erase `lost+found', `quota.user' or `quota.group')!
    # Note that files _in_ lost+found _are_ deleted.
    #
    [ "$VERBOSE" != no ] && echo -n "Cleaning: /tmp "
    #
    # If $TMPTIME is set to 0, we do not use any ctime expression
    # at all, so we can also delete files with timestamps
    # in the future!
    #
    if [ "$TMPTIME" = 0 ]
    then
    TEXPR=""
    else
    TEXPR="! -ctime -$TMPTIME"
    fi
    ( cd /tmp && \
    find . -xdev \
    $TEXPR \
    ! -name . \
    ! \( -name lost+found -uid 0 \) \
    ! \( -name quota.user -uid 0 \) \
    ! \( -name quota.group -uid 0 \) \
    -depth -exec rm -rf -- {} \; )
    rm -f /tmp/.X*-lock
    #
    # Clean up any stale locks.
    #
    [ "$VERBOSE" != no ] && echo -n "/var/lock "
    ( cd /var/lock && find . -type f ! -newer /etc/mtab -exec rm -f -- {} \; )
    #
    # Clean up /var/run and create /var/run/utmp so that we can login.
    #
    [ "$VERBOSE" != no ] && echo -n "/var/run"
    ( cd /var/run && \
    find . ! -type d ! -name utmp ! -name innd.pid ! -name random-seed \
    ! -newer /etc/mtab -exec rm -f -- {} \; )
    : > /var/run/utmp
    if grep -q ^utmp: /etc/group
    then
    chmod 664 /var/run/utmp
    chgrp utmp /var/run/utmp
    fi
    [ "$VERBOSE" != no ] && echo "."

    #
    # Set pseudo-terminal access permissions.
    #
    if [ -c /dev/ttyp0 ]
    then
    chmod 666 /dev/tty[p-za-e][0-9a-f]
    chown root:tty /dev/tty[p-za-e][0-9a-f]
    fi

    #
    # Update /etc/motd.
    #
    if [ "$EDITMOTD" != no ]
    then
    uname -a > /etc/motd.tmp
    sed 1d /etc/motd >> /etc/motd.tmp
    mv /etc/motd.tmp /etc/motd
    fi

    #
    # Save kernel messages in /var/log/dmesg
    #
    dmesg > /var/log/dmesg

    # remove comment(s) to enable DMA
    #/sbin/hdparm -qd1 /dev/hda

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    AT the bottom of the file right after the disabled DMA line. note: you may want to enable the DMA by uncommenting the line for it.

  5. #5
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93

    Finally worked!!!

    Thanks Stephen. It worked!!!

    I still have the permission problem. What do I need to do so my users have pppoe access. At the moment they have to be su.

    Thanks :P

  6. #6
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: Finally worked!!!

    Quote Originally Posted by FelixDzerzhinsky
    Thanks Stephen. It worked!!!

    I still have the permission problem. What do I need to do so my users have pppoe access. At the moment they have to be su.

    Thanks :P
    Have you added them to the dailout group? If not use the command as root adduser user_name dailout and see if that helps.

  7. #7
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93

    Added users to dialout but still no luck.

    Tried adding users to group dialout (as su). No luck got this message:

    please configure /etc/peers/ppp/provider or use a command line argument to use another file in /etc/ppp/peers directory.

    ????

  8. #8
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93

    MY current file

    # Configuration file for PPP, using PPP over Ethernet
    # to connect to a DSL provider.
    #
    # See the manual page pppd( for information on all the options.

    ##
    # Section 1
    #
    # Stuff to configure...

    # MUST CHANGE: Uncomment the following line, replacing the user@provider.net
    # by the DSL user name given to your by your DSL provider.
    # (There should be a matching entry in /etc/ppp/pap-secrets with the password.)
    #user myusername@myprovider.net

    # Use the pppoe program to send the ppp packets over the Ethernet link
    # This line should work fine if this computer is the only one accessing
    # the Internet through this DSL connection. This is the right line to use
    # for most people.
    pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1452"

    # If the computer connected to the Internet using pppoe is not being used
    # by other computers as a gateway to the Internet, you can try the following
    # line instead, for a small gain in speed:
    #pty "/usr/sbin/pppoe -I eth0 -T 80"

    # An even more conservative version of the previous line, if things
    # don't work using -m 1452...
    #pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1412"


    # The following two options should work fine for most DSL users.

    # Assumes that your IP address is allocated dynamically
    # by your DSL provider...
    noipdefault
    # Comment out if you already have the correct default route installed
    defaultroute

    ##
    # Section 2
    #
    # Uncomment if your DSL provider charges by minute connected
    # and you want to use demand-dialing.
    #
    # Disconnect after 300 seconds (5 minutes) of idle time.

    #demand
    #idle 300

    ##
    # Section 3
    #
    # You shouldn't need to change these options...

    hide-password
    lcp-echo-interval 60
    lcp-echo-failure 3
    # Override any connect script that may have been set in /etc/ppp/options.
    connect /bin/true
    noauth
    persist
    mtu 1492
    user "c7353047@wanadoo"
    usepeerdns

  9. #9
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: MY current file

    I've never used ppp before but from what the file is saying here you should uncomment this line and put your user name in.


    Quote Originally Posted by FelixDzerzhinsky
    # Configuration file for PPP, using PPP over Ethernet
    # to connect to a DSL provider.
    #
    # See the manual page pppd( for information on all the options.

    ##
    # Section 1
    #
    # Stuff to configure...

    # MUST CHANGE: Uncomment the following line, replacing the user@provider.net
    # by the DSL user name given to your by your DSL provider.
    # (There should be a matching entry in /etc/ppp/pap-secrets with the password.)
    #user myusername@myprovider.net
    I think should be changed to user c7353047@wanadoo if this is your correct username but that's pretty much the only idea I have looking at the file except you should check in the file /etc/ppp/pap-secrets as it tells you for the correct line there also.

  10. #10
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93

    Permission Denied!

    knoppix@hal9000:~$ pon
    SIOCSIFFLAGS: Permission denied
    /usr/sbin/pppd: Can't open options file /etc/ppp/peers/dsl-provider: Permission denied


    That is what happens when I pon as a normal user.

    My users are already in dialout.

    What should I do?

Page 1 of 2 12 LastLast

Similar Threads

  1. filesystem mounted read-only after check forced
    By scramble in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 02-06-2005, 05:46 PM
  2. Knoppix is very nice, but I forced to switch back to win xp
    By wilson001 in forum Hardware & Booting
    Replies: 14
    Last Post: 01-25-2005, 05:25 AM
  3. Can not login as a regular user....forced to use ROOT
    By Orion Pax in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 08-02-2004, 01:50 PM
  4. hdd check forced, not repairable
    By pi-sics in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 03-21-2004, 10:57 AM
  5. Password protection and forced graphical login
    By jmrizz in forum Customising & Remastering
    Replies: 5
    Last Post: 01-31-2003, 05:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


14 five and a quarter inch floppy disks Commodore format NIB picture

14 five and a quarter inch floppy disks Commodore format NIB

$22.49



Vintage Commodore 64 C64 Personal Computer w/power supply - Works Tested picture

Vintage Commodore 64 C64 Personal Computer w/power supply - Works Tested

$149.00



Commodore 1702 13

Commodore 1702 13" CRT Video Monitor Computer Display - TESTED

$250.00



Sight Sound Music Software Lot For Commodore 64/128 picture

Sight Sound Music Software Lot For Commodore 64/128

$200.00



Vtg Commodore C64  Personal Computer System Game ( Untested or Complete ) picture

Vtg Commodore C64 Personal Computer System Game ( Untested or Complete )

$100.00



Commodore 64 Huge Lot with 154I Disk Drive Untested Power Supply And More picture

Commodore 64 Huge Lot with 154I Disk Drive Untested Power Supply And More

$570.00



Commodore Amiga 4000 Video toaster boxed picture

Commodore Amiga 4000 Video toaster boxed

$600.00



Computer Only ~ Commodore Plus 4 Home Computer ~ Built In Productivity Software picture

Computer Only ~ Commodore Plus 4 Home Computer ~ Built In Productivity Software

$79.95



1984 Commodore home Computer Video Color Monitor Model 1702 picture

1984 Commodore home Computer Video Color Monitor Model 1702

$200.00



TeensyROM Cartridge for Commodore 64/128: MIDI, Fastload, Emulation, and Network picture

TeensyROM Cartridge for Commodore 64/128: MIDI, Fastload, Emulation, and Network

$65.00