LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-13-2009, 01:54 AM   #1
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Rep: Reputation: 55
Anyone have example of inet1.conf for slackware 12.0? Unexpected EOF..


Line 96: unexpected EOF while looking for matching`"'

#WLAN_WPADRIVER[4]="ndiswrapper"# Tell wpa_supplicant to specifically use the ndiswrapper driver (if you leave this empty the 'wext' driver is used by default)

Last Line is 100:
#WLAN_WPAWAIT[4]=30 #In case it takes long for the WPA association to finish,
#you can increase the wait time (defaults to 10 seconds).

Line 101: syntax error: unexpected end of file

There is no line 101, if i vi :101 I get bad line

Last edited by NightSky; 01-13-2009 at 01:56 AM.
 
Old 01-13-2009, 02:05 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Please post the whole file, as it is (copy and paste).
 
Old 01-13-2009, 02:08 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can get the original from here
 
Old 01-13-2009, 02:09 AM   #4
junpa
Member
 
Registered: Aug 2008
Location: Northern Hemisphere
Distribution: Slackware, OpenVMS, fbsd
Posts: 51

Rep: Reputation: 16
:101 sends you to the line based on the cursor position.

so make sure you are at the first line in the file (gg).

anyway plenty of ways to help your self with getting the 12.0 inet1.conf

go to any mirror and download:

network-scripts-12.0-noarch-4.tgz in slackware/n


tar -zxvf network-scripts-12.0-noarch-4.tgz

=======
Code:
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY=""

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0.  Uncomment the lines you need and fill
## in your data.  (You may not need all of these for your wireless network)
#IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
#USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=DARKSTAR
#WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]="auto"
#WLAN_KEY[4]="D5A31F54ACF0487C2D0B1C10D2"
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="wext"
#WLAN_WPAWAIT[4]=30

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0"              # Use a different interface name instead of
                                # the default 'eth4'
#IFNAME[4]="eth0:1"             # Set up an IP alias.
#HWADDR[4]="00:01:23:45:67:89"  # Overrule the card's hardware MAC address
#MTU[4]=""                      # The default MTU is 1500, but you might need
                                # 1360 when you use NAT'ed IPSec traffic.
#DHCP_TIMEOUT[4]=15             # The default timeout for the DHCP client to
                                # wait for server resonse is 30 seconds, but
                                # you might want a shorter wait.
#DHCP_KEEPRESOLV[4]="yes"       # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes"          # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes"           # If you don't want the DHCP server to change
                                # your default gateway
#DHCP_IPADDR[4]=""              # Request a specific IP address from the DHCP
                                # server
#WLAN_ESSID[4]=DARKSTAR         # An example of how you can override _any_
                                # parameter defined in rc.wireless.conf, by
                                # prepending 'WLAN_' to the parameter's name.
                                # Useful with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
                                # Some drivers require a private ioctl to be
                                # set through the iwpriv command. If more than
                                # one is required, you can place them in the
                                # IWPRIV parameter (separated with the pipe (|)
                                # character, see the example).
#WLAN_WPA[4]="wpa_supplicant"   # Run wpa_supplicant for WPA support
#WLAN_WPADRIVER[4]="ndiswrapper"# Tell wpa_supplicant to specifically use the
                                # ndiswrapper driver (if you leave this empty
                                # the 'wext' driver is used by default)
#WLAN_WPAWAIT[4]=30             # In case it takes long for the WPA association
                                # to finish, you can increase the wait time
                                # (defaults to 10 seconds)
from the first error it looks like there's a missing quotation mark.

usually secondary errors are a result of the first.
 
Old 01-13-2009, 02:42 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You can find copies of the rc.inet1* and rc.wireless* scripts for Slackware 10.0 and onwards, here: http://www.slackware.com/~alien/rc_s...er_rc_scripts/ so that you do not have to get them from the inside of packages.

Eric
 
Old 01-13-2009, 03:56 AM   #6
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
Thanks, for the quick response everyone.. I did use your inet1.conf script Alien but still getting the same eof @ line 96 and syntax and unexpected end of file for line 101.

Didier, I didn't post the whole thing because, I am learning to just use tools in icewm and fluxbox and I am not familiar with all functions thereof. Copy and paste is not an option with terminals.

I did find the location of 'network' scripts using software browser on packages.slackware.

Junpa, thanks for the sample... mine looks the same, thought maybe Alien's was from slackware 10 and it made a difference but apparently not... must be that 101 line.

More importantly is that i want to upgrade libraries and whatever i find I can use for servers, Question is I don't know how to runlevel 1 and telenet per 'Upgrade Howto'. And I can't get into my homeportal to forward ports for Utorrent. I want to update as little as I need
I have a second lrg. hd in this box but everything is a huge learning project for me. lol thanks for your support.
 
Old 01-13-2009, 04:42 AM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello together,

I got a similar errormessage last week, the problem was a not matching parentesis in the /etc/wpa-supplicant.conf file.

Markus
 
Old 01-13-2009, 05:36 AM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by NightSky View Post
thought maybe Alien's was from slackware 10 and it made a difference but apparently not... must be that 101 line.
I said "Slackware 10.0 and onwards".. meaning all versions of Slackware starting with 10.0.

Eric
 
Old 01-13-2009, 05:51 AM   #9
junpa
Member
 
Registered: Aug 2008
Location: Northern Hemisphere
Distribution: Slackware, OpenVMS, fbsd
Posts: 51

Rep: Reputation: 16
uhh should be pretty obvious when you click the link what's offered :\
 
Old 01-13-2009, 07:52 AM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Hi NightSky,

In my humble opinion, as you have been a Slacker since end of 2001 time has come for you to learn the basics of command line interface, such as copy from the mouse doing a middle click, use the "diff" command to check the differences between two files or issue a "telinit" -- "not telenet" -- command.

Fist of all use the manual. For instance you can type "man telinit" in a terminal to know how-to use the "telinit" command.

You will learn a lot reading the documentation available at The Linux Documentation Project. I recommend you begin with "Introduction to Linux - A Hands on Guide" by Machtelt Garrels. On this page you will find several links which allow you either to read it online or to download it.

Sorry if you feel I'm rude -- I only try to help you -- and please excuse my bad English -- it is not my mother tongue.

Cheers,
 
Old 01-13-2009, 07:55 AM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by NightSky View Post
<snip>
Didier, I didn't post the whole thing because, I am learning to just use tools in icewm and fluxbox and I am not familiar with all functions thereof. Copy and paste is not an option with terminals.

<snip>
Copy & Paste is available to you in the terminal if the '/etc/rc.d/rc.gpm' is configured for your system and executable.

Code:
excerpt from 'man gpm';
NAME
       gpm - a cut and paste utility and mouse server for virtual consoles

SYNOPSIS
       gpm [ options ]

DESCRIPTION
       This package tries to be a useful mouse server for applications running
       on the Linux console.  It is based on the "selection" package, and some
       of  its code comes from selection itself. This package is intended as a
       replacement for "selection" as a cut-and-paste mechanism; it also  pro-
       vides  additional facilities. The "selection" package offered the first
       cut-and-paste implementation for Linux using two mouse buttons, and the
       cut  buffer  is  still  called  "selection  buffer" or just "selection"
       throughout this document.  The information below is extracted from  the
       texinfo file, which is the preferred source of information.

       The gpm executable is meant to act like a daemon (thus, gpmd would be a
       better name for it). This section is meant to describe the command-line
       options  for gpm, while its internals are outlined in the next section.
I use 'gpm' on my systems an find that it is very useful when using the 'cli'.
 
Old 01-14-2009, 12:22 AM   #12
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Original Poster
Rep: Reputation: 55
Alien, my eyes must of glazed over "and onwards" w/ tears after seeing "Slackware10"...LOL used script anyway. Can't find missing quotes.
Used netconf to generate a new inet1.conf it only has 90lines. Error messages have stopped.
The following is not included in my inet1.conf:
Code:
#WLAN_WPA[4]="wpa_supplicant"   # Run wpa_supplicant for WPA support
#WLAN_WPADRIVER[4]="ndiswrapper"# Tell wpa_supplicant to specifically use the
                                # ndiswrapper driver (if you leave this empty
                                # the 'wext' driver is used by default)
#WLAN_WPAWAIT[4]=30             # In case it takes long for the WPA association
                                # to finish, you can increase the wait time
                                # (defaults to 10 seconds)
No offense taken Didier, The link to books is awsome, just take 3yrs off for driving & living in 18 wheeler? lol...

onebuck,thanks for mouse support -read about gpm but did not understand functional references to X system, thanks for clarifying that now, since i'm not running xfce its really useful.

Have to back track & abort upgrade attempt, I thought I would just be able to upgrade libraries and a few programs...too many variables. Skill level too demanding at this time.

Few more questions: Is XDM being replaced by something else? Are there application functions in slackware12.0 depent on XDM? Does xfce 4.4.3 and latest Thunderbird Slackware ver work in Slackware 12.0?

Last edited by NightSky; 01-15-2009 at 05:15 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 12.2: Wireless interface predefined instead of taken from rc.inet1.conf? gargamel Slackware 21 12-29-2008 07:20 AM
Unexpected EOF in archive Drone1 Linux - Newbie 5 11-09-2006 05:31 AM
[crontab] unexpected EOF G00fy Programming 7 11-01-2006 03:09 AM
Unexpected EOF Error??? ITJedi Programming 2 07-09-2003 02:01 PM
tar: Unexpected EOF saavik Linux - Newbie 1 04-13-2002 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration