You are not logged in.

#1 2007-08-26 05:50:37

Free Thinker
Member
Registered: 2007-07-11
Posts: 40

network profile

Hello.
well, stupid problem... i wanted to create network profile and it seems my /etc/network-profiles/default is empty... because i never used profiles before, i need it's content. so, can anyone post here the example profile?

Thanks.


chown -R us /home/your/.base

Offline

#2 2007-08-26 06:08:37

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: network profile

Hi Free Thinker,
this is the default profile:

#
# Network Profile
#

DESCRIPTION="Default Network Profile"

# Network Settings
INTERFACE=eth0
HOSTNAME=myhost

# Interface Settings (use IFOPTS="dhcp" for DHCP)
IFOPTS="192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
GATEWAY=192.168.0.1

# DNS Settings (optional)
DOMAIN=localdomain
DNS1=192.168.0.1
DNS2=

# Wireless Settings (optional)
#ESSID=default
#KEY=
#IWOPTS="mode managed essid $ESSID channel 6 key restricted $KEY"

#WIFI_INTERFACE=wlan0   # use this if you have a special wireless interface
                        # that is linked to the real $INTERFACE

#WIFI_WAIT=5            # seconds to wait for the wireless card to
                        # associate before bringing the interface up
#USEWPA="yes"           # start wpa_supplicant with the profile
#WPAOPTS=""             # use "" for normal operation or specify additional
                        # options (eg, "-D ipw")
                        # see /etc/wpa_supplicant.conf for configuration
#AUTOWPA="yes"          # automatically configure WPA
#PASSKEY=""             # wpa passkey/phrase. for use with AUTOWPA

Offline

#3 2007-08-26 06:17:49

Free Thinker
Member
Registered: 2007-07-11
Posts: 40

Re: network profile

Thank you!


chown -R us /home/your/.base

Offline

#4 2007-08-26 10:14:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: network profile

FYI, the file you're looking for is called /etc/network-profiles/template, and it is provided by the initscripts package.

Offline

#5 2007-08-27 16:43:45

Athlux
Member
Registered: 2007-08-26
Posts: 1

Re: network profile

Hi,

i have a also a question to this topic

Is it possible to give a certain network profile a program to start with upon activation. Like openvpn for example or can i only use the predefined variables in that file?

I'm looking for a way to start a certain vpn connection for each network profile.

Offline

#6 2007-08-27 17:21:56

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: network profile

Athlux wrote:

Hi,

i have a also a question to this topic

Is it possible to give a certain network profile a program to start with upon activation. Like openvpn for example or can i only use the predefined variables in that file?

I'm looking for a way to start a certain vpn connection for each network profile.

I'm not 100% sure, but I think brain0's autowifi scripts have the option of running a specific command after connecting to/disconnecting from a particular network.  This might be what you're looking for.... More info here:  http://bbs.archlinux.org/viewtopic.php?id=33679

Offline

#7 2007-08-30 14:52:57

Free Thinker
Member
Registered: 2007-07-11
Posts: 40

Re: network profile

tomk wrote:

FYI, the file you're looking for is called /etc/network-profiles/template, and it is provided by the initscripts package.

thats the problem. i do have this package installed and still the file was empty (even if i reinstalled the pkg).

Last edited by Free Thinker (2007-08-30 14:54:12)


chown -R us /home/your/.base

Offline

Board footer

Powered by FluxBB