[SOLVED] Anyone have example of inet1.conf for slackware 12.0? Unexpected EOF..
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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).
: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.
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.
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.
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.
<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'.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.