LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-08-2004, 09:40 AM   #1
jerichods
LQ Newbie
 
Registered: May 2004
Distribution: all different kinds!
Posts: 1

Rep: Reputation: 0
Fixed - Enabling network profiles in Mandrake 10.0


I finally got the profile switching working on my laptop, using Mandrake 10.0 official. it was kind of non-obvious, so I thought I would post it here.

Be sure you have the package "netprofile" installed. The version I used was netprofile-0.6.3-1mdk.

First, using the mandrake control center configuration tool, set up two profiles, like 'office' and 'home'. You switch the profiles up on the top menu bar, not in the network section (seems a bit wierd, but it looks like the profiles are expanding beyond just network).

Set the network settings specific for each, say a static IP for the office profile, and DHCP for home. This seems to not work quite like i would expect, so to check the results I opened a command line session (as root) and looked at the results in /etc/netprofile/profiles. there should be a subdirectory for each profile, and the network settings, etc should reflect what you need in each case.

Here was the hard part - getting the system to change profiles at boot time. The profiles are managed by a tool called /sbin/set-netprofile, and I had to read the script to understand how to make it work.

In the Control Center, select the Boot icon, then the Boot loader tool, and setup the lilo boot loader. I used two separate stanzas, one for office and one for home. In each case the kernel, initrd, etc were the same. Here is the key - In the Append line, add the profile option using PROFILE=<profilename>. You must use CAPS for the word PROFILE, as that is what the set-netprofile tool will parse for. For instance if my office profile is named office, then append PROFILE=office in the bootloader for that event. probably need to increase the timeout so you can be sure and select the right one.

Then - at boot time you just select the option you want, office or home, and the profile will be switched automatically at boot time.

Hope this helps.

r.
 
Old 06-06-2004, 09:49 AM   #2
ahem
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
Thumbs up

Thanks a bunch for posting that. I was looking all over the place trying to figure out how to use themz profiles....
 
  


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
Creating different network profiles for a laptop basileus Debian 1 02-16-2005 03:06 PM
Multiple Network Profiles on a Laptop Bill Fox Linux - Laptop and Netbook 3 12-16-2004 07:22 PM
Network User profiles KHAAAN Linux - Networking 1 07-30-2004 04:34 PM
Multiple Network Profiles vrillusions Linux - Networking 4 09-01-2003 06:27 PM
Using multiple network profiles? thas Linux - Networking 2 03-31-2003 11:02 PM

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

All times are GMT -5. The time now is 04:39 PM.

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