Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to edit configuration files

  1. #1
    Lars Jensen
    Guest

    How to edit configuration files

    Thanks for this great forum for this great distro. I just discovered it, and I am wondering how I can change the configuration files. Most seems to be read-only.

    How do I edit files like xdm-config, hosts.allow, hostname, etc?

    Thanks,
    Lars.

  2. #2
    mag
    Guest
    Login as root and use your favorite text editor (gvim ,emacs, etc.) to edit config files. Config files are plain text files.

    Hope this helps.

    mag

  3. #3
    Lars Jensen
    Guest
    No, that was a pretty useless comment, try to be a little more constructive next time. Thanks.

    But what I did find out is that the configuration files are typically symbolic links. Thus:

    1) Delete the symbolic link
    2) Copy the actual configuration file of interest from the CD
    3) Now edit the configuration file.

    Example:

    cd /etc/kde3/kdm
    rm /etc/kde3/kdm/kdmrc (delete symbolic link)
    cp /KNOPPIX/etc/kde3/kdm/kdmrc . (copyfile back from CD)
    vi /etc/kde3/kdm/kdmrc (edit file)

    Lars.

  4. #4
    mag
    Guest

    Config files

    First of all config files are not symbolic links at all. In your example, you gave a kdmrc as config file. It's not a config file but and rc(run command) file. Config files are just plain text files and do not have symlinks at all. Maybe you should learn the nomenclature. My intention was to only help you. Comments like "That was a pretty useless comment" will not get you anywhere. Please be more considerate toward other people. It doesn't sound nice and polite.

  5. #5
    simple
    Guest

    getting access as root

    It says that the root login is "locked"(this on the cd use)(this means?)
    If installing to the hard drive one source says that you cannot use the same "word" for both the username and the password. (with Linux) I did this and now it seems that I am unable to su to root privileges.
    Do I have to re-install?
    Thanks

  6. #6
    Junior Member
    Join Date
    Dec 2002
    Location
    Michigan
    Posts
    7

    How I got my scanner configed

    I don't know squat, but this is how I edit config text files.

    I have Epson stylus 2500 pro printer/scanner on USB.

    To get scanner working I had to edit epson.conf file for the SANE module.
    I opened file from Knoppix CD (read only) in editor (Kedit) and then saved it to the ram drive in knoppix home directory. That made the owner the Knoppix User. Then I edited it and ran Ximagescan scanner service (GUIsane mod) and then Kooka to make scans. Ximagescan found the file and my Epson scanner thereafter. Kooka program makes scans and allows setting scanner options. I was surprised that the Sane library, or whatever it is, even allowed me to use my Automatic Document Feeder.

    WOW! I wish for every program I use, I could use Linux and dump Windows forever.

    If I just copy and paste the file, or drag file it remains as the Root for owner and can't be edited.

    I have read every post about Root and Passwords (here and LinuxTAG and stuff on the net) and still don't understand what I'm supposed to be doing, but the above worked for me. I've done SU PASSWD and SUDO PASSWD and just PASSWD in root shell, done LOGIN and SU Login and just get frustrated because it's not obvious what I'm actually accomplishing.

    Maybe somebody will explain Root Passwords and Linux use better in a post for dumb new users like me sometime.

  7. #7
    simple
    Guest

    root login

    Thanks Demon Worship.
    I also got advice from the post about "Knoppix as Webserver".
    I agree with you about needing a "simple" explanation about Root etc. (and about life, Linux and everything)

  8. #8
    Member registered user
    Join Date
    Jan 2003
    Location
    UK
    Posts
    47
    Could do worse than check out the Rute users guide to Linux at http://rute.2038bug.com/index.html.gz

    Its reasonably "simple" ;>

  9. #9
    Guest
    To set the root password, open a root shell (from KNOPPIX Menu), and issue

    passwd root

    -Lars.

  10. #10
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: Config files

    --FYI, when running from the CD - many/most config files *are* symlinks. If you want to edit them, you have to rm the symlink 1st and cp the file from /cdrom or /KNOPPIX to ' / '(ramdisk) or another writable Linux filesystem (not msdos or vfat.)

    Quote Originally Posted by mag
    First of all config files are not symbolic links at all. In your example, you gave a kdmrc as config file. It's not a config file but and rc(run command) file. Config files are just plain text files and do not have symlinks at all. Maybe you should learn the nomenclature. My intention was to only help you. Comments like "That was a pretty useless comment" will not get you anywhere. Please be more considerate toward other people. It doesn't sound nice and polite.

Page 1 of 2 12 LastLast

Similar Threads

  1. Configuration files on USB key
    By dafne in forum Customising & Remastering
    Replies: 1
    Last Post: 02-18-2004, 06:00 PM
  2. what files do i edit to change desktop settings?
    By reecegeorge in forum Customising & Remastering
    Replies: 0
    Last Post: 11-03-2003, 01:24 PM
  3. Location of configuration files
    By prawira in forum Customising & Remastering
    Replies: 2
    Last Post: 10-28-2003, 09:40 AM
  4. How to Edit .conf files then have them saved.
    By -=NTL=- in forum Networking
    Replies: 1
    Last Post: 06-25-2003, 10:28 PM
  5. how do I log in as root? (to enable me to edit system files)
    By purplehaze in forum General Support
    Replies: 4
    Last Post: 06-25-2003, 06:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Intel Xeon E3-1270 v6 3.80GHz 4 Cores SR326 LGA1151 CPU Processor picture

Intel Xeon E3-1270 v6 3.80GHz 4 Cores SR326 LGA1151 CPU Processor

$46.00



Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1 picture

Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1

$39.99



Intel Core i7-12700K Processor (5 GHz, 12 Cores, FCLGA1700) cpu #00698 picture

Intel Core i7-12700K Processor (5 GHz, 12 Cores, FCLGA1700) cpu #00698

$195.00



Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc... picture

Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...

$619.99



Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture

Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...

$419.99



Intel Core i9-13900KF Unlocked Desktop Processor - 24 Cores (8P+16E) & 32 Thread picture

Intel Core i9-13900KF Unlocked Desktop Processor - 24 Cores (8P+16E) & 32 Thread

$539.99



AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor picture

AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor

$77.77



Intel Core i7-3770 3.40GHz 8MB Quad Core Socket LGA1155 CPU Processor SR0PK picture

Intel Core i7-3770 3.40GHz 8MB Quad Core Socket LGA1155 CPU Processor SR0PK

$35.00



Intel Core i7-6700 @ 3.40GHz - LGA 1151  Desktop CPU Processor picture

Intel Core i7-6700 @ 3.40GHz - LGA 1151 Desktop CPU Processor

$64.99



Intel Core i7-7700 3.60GHz Quad-Core CPU picture

Intel Core i7-7700 3.60GHz Quad-Core CPU

$41.75