Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-16-2005, 02:02 AM   #1
Registered: May 2005
Distribution: Mandriva 2006 Free
Posts: 67

Rep: Reputation: 15
Storing and selecting multiple configurations


I would like to be able to store several sets of configuration settings and select one each time I log in. More specifically, I use a notebook computer both on and off a network. When connected to the network, I need to use a proxy server to access the Internet, but when not connected to the network I use my modem and no proxy server. Although it doesn't take long to enable/disable the proxy in Konqueror's config dialog, it is a nuisance. I would prefer to be able to select a set of configuration settings when I log in, but without having to create multiple users.

I'm using Mandriva 2005LE with KDE.

Does anybody know how to do this?

- QS Computing.
Old 09-16-2005, 09:00 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I have a similar situation with three Linux distros and one micfsoft. At times I want all four available for mounting; at times, only one. To solve my problem, I wrote a simple bash script with selection menu, and four versions of /etc/fstab, plus the default /etc/fstab. The script offers me the choice of 1, 2, 3, or all four system partitions in fstab. The simplest version is the default fstab; the most complex is all four systems in fstab.

I run the script and select which version of fstab I want to be active. Then I reboot. One of these days, I'll include the scipt call in one of the /etc/init.d boot scripts so that I can interactively make the selection.

Perhaps I should note that the script copies the fstab-of-choice to /etc/fstab (overwriting the current fstab); it doesn't switch from one to another. On reflection, I suppose rebooting isn't necessary, I could just 'source /etc/fstab' and keep on working.

Last edited by bigrigdriver; 09-16-2005 at 09:04 PM.
Old 09-17-2005, 03:00 AM   #3
Registered: May 2005
Distribution: Mandriva 2006 Free
Posts: 67

Original Poster
Rep: Reputation: 15
Yes, that sounds like the idea I need. Could you send me the script you're using?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I Managing multiple X configurations using GDM AntWarrior Linux - Software 2 04-22-2005 06:41 PM
Storing Strings ToothlessRebel Programming 4 09-05-2004 03:16 AM
Multiple networking configurations with RedHat 9? pelakh Linux - Networking 0 05-19-2004 09:22 AM
Multiple network configurations at boot time. HOW? FairyFighter Linux - General 14 03-10-2004 05:04 AM
storing multiple values within one field in mysql antken Programming 8 12-15-2002 10:08 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:42 PM.

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