Sign up to Submit Content

Sign Up / Login
debiantutorials.org accepts no advertising. Quit asking me.
feed image
Guests 28
If you can walk and chew gum at the same time, you can run Linux

debian tutorials | debian support forum
I invite anyone familiar with Linux or Debian to register here at debiantutorials.org and write tutorials or related articles in order that everyone in the community can benefit. I'm talking to you. You say it better than I do. Your ideas just flow like water. There's so much more that needs to be written in ways that your cousin or an office manager can benefit from. Consider it.
debiantutorials.org is built on and runs on Debian.
Creative Commons License
Some Debian Etch System Files
Debian Etch System Files PDF Print E-mail
Written by machiner   
Monday, 19 February 2007 12:17

Hey there. I often save a copy or 5 or 6 important system files after installing a Debian desktop. In the interest of perpetuating this wonderful Linux operating system I thought I would post the contents of my laptop specific system files. Being that installing Debian is so quick and simple, I only really save a good copy of these files in the even that somehow one or all of them become corrupted on a daily-use machine and a simple mv -f /backup/directory/good-copy /etc/location/good-copy can fix that up right-quick.

/etc/modules  This is on my laptop, of course.

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

loop
cpufreq-userspace
powernow-k7

/etc/apt/sources.list

Now, I am in New England, USA -- you should find a mirror closest to you for all of your apt sources.

deb http://ftp.us.debian.org/debian/ etch main non-free contrib
deb-src http://ftp.us.debian.org/debian/ etch main contrib non-free
#E-17
# deb http://debian.uchicago.edu/debian/ etch main contrib non-free
# deb-src http://debian.uchicago.edu/debian/ etch main contrib non-free
deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib
deb http://deb.opera.com/opera/ etch non-free
deb http://mirror.home-dn.net/debian-multimedia/ etch main
deb-src http://mirror.home-dn.net/debian-multimedia/ etch main
# deb http://www.debian-multimedia.org/ etch main
# deb http://ftp.debian.org/debian/ etch main non-free contrib
# deb-src http://edevelop.org/debian/ sid main
# deb http://edevelop.org/debian/ sid main

/etc/X11/xorg.conf

My laptop is an Acer Aspire 5003 wmli with no glx. This system uses the sis760/761 display and for Linux there is no 3D accelleration, no dri

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
        FontPath        "/usr/share/fonts/X11/misc"
        FontPath        "/usr/X11R6/lib/X11/fonts/misc"
        FontPath        "/usr/share/fonts/X11/cyrillic"
        FontPath        "/usr/X11R6/lib/X11/fonts/cyrillic"
        FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/Type1"
        FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
        FontPath        "/usr/share/fonts/X11/100dpi"
        FontPath        "/usr/X11R6/lib/X11/fonts/100dpi"
        FontPath        "/usr/share/fonts/X11/75dpi"
        FontPath        "/usr/X11R6/lib/X11/fonts/75dpi"
        # path to defoma fonts
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
        Load    "i2c"
        Load    "bitmap"
      Load       "dbe"
        Load    "ddc"
#       Load    "dri"
        Load    "extmod"
        Load    "freetype"
#       Load    "glx"
        Load    "int10"
        Load    "vbe"
EndSection

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
EndSection

Section "InputDevice"
        Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
        Option          "HorizScrollDelta"      "0"
EndSection

Section "Device"
        Identifier      "Generic Video Card"
        Driver          "sis"
        BusID           "PCI:1:0:0"
EndSection

#Section "Monitor"
#       Identifier      "Generic Monitor"
#       Option          "DPMS"
#       HorizSync       28-64
#       VertRefresh     43-60
#EndSection

Section "Monitor"
        Identifier      "Generic Monitor"
        Option          "DPMS"
        HorizSync       30-81
        VertRefresh     56-75
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "Generic Video Card"
        Monitor         "Generic Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           1
                Modes           "1280x800"
        EndSubSection
        SubSection "Display"
                Depth           4
                Modes           "1280x800"
        EndSubSection
        SubSection "Display"
                Depth           8
                Modes           "1280x800"
        EndSubSection
        SubSection "Display"
                Depth           15
                Modes           "1280x800"
        EndSubSection
        SubSection "Display"
                Depth           16
                Modes           "1280x800"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1280x800"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "Synaptics Touchpad"
EndSection

#Section "DRI"
#       Mode    0666
#EndSection

/etc/fstab

This is specific to me -- on my laptop, however, you may get something out of it

# /etc/fstab: static file system information.
#
#                
proc            /proc           proc    defaults        0       0
/dev/hda2       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda4       /home           ext3    defaults        0       2
/dev/hda3       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
#/dev/hda1       /mnt/windows    ntfs    user,ro,exec,umask=0222 0 0
my.domain.org:/music /mnt/tunage nfs rw,hard,intr,sync,users,noatime 0 0
my.domain.org:/home/uname /mnt/uname nfs rw,hard,intr,sync,users,noatime 0 0

/etc/resolv.conf

I use openDNS

nameserver 208.67.222.222
nameserver 208.67.220.220
nameserver 24.151.8.210
nameserver 24.151.8.211
nameserver 66.189.130.5

/etc/hosts

127.0.0.1 localhost hostname
127.0.1.1 lapbox.domain.org hostname
192.168.0.100 my.domain.org
64.14.68.29 www.debiantutorials.org

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

In reality backing up good copies of these files is a waste of time on a desktop. Unless you really need the reference; For instance, x won't start for whatever reason. It's simple enough to ctrl+alt+F3 for another tty enabling you to correct your xorg.conf file. See Linux conventions.

--machiner 19Feb2007  See the forum entry



Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Free Joomla PHP extensions, software, information and tutorials.
Comments
Add New RSS
+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly:
:dry::lol::kiss::D:pinch::(:shock:
:X:side::):P:unsure::woohoo::huh:
:whistle:;):s:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.
'Guest'  - Here is a summary of what I have learned   |72.74.127.xxx |2007-06-28 04:27:37
-------------------------------------------------- -----------
CAPTURE: Installed apt-get installed programs
to a file called
packagelist; note packagelist is a name I made up.

dpkg --get-selections >>
backup/packagelist

RESTORE:
dpkg --set-selections

[edit]dpkg --set-selections <<
backup/packagelist

But listen, dselect is necessary and I didn't give you all the information....I'm cool
like that and you need to learn to fish.

Rock on
'Guest'  - DNS Servers   |71.162.76.xxx |2007-05-27 01:55:24
What do you want with more than three servers in resolv.conf???
Your maschine only handles a maximum of three
servers. the rest is ignored ...

you can remove 2 of them ...

[EDIT -- ya, pfft. OpenDNS adds them. I
can, and do, safely ignore this.
'Guest'  - Thanks   |72.74.127.xxx |2007-05-26 16:45:36
This was great info I needed this. I noticed that if you mess up the /etc/X11/xorg.conf and thing won't
login. You can try this go to the folder and look for the xorg.cong.1231213324 something with number attached
to the end like that. These are backup the O.S. made because the configuration you changed to did not work.
If you remember the time you changed the file you might be able to fix the problem by doing the
following.

1. Login in as root or change to root.
2. ls -al /etc/X11/xorg.conf
Look and see which of
those files match the time when you edited it for the 1st time. Then restore that file with this command.
3.
cp /etc/X11/xorg.conf.299930022 /etc/X11/xorg.conf
The types the following command to test if it worked.
4.
startx

Reboot and check that it is fine going threw a regular bootup.

Good Debian is my favorite distro
so far!

Lex
'Guest'  - GreySpace   |72.74.126.xxx |2007-06-20 04:35:48
Now I have a copy for reference.
My system is working great, and I don't want to loose it.

Question:
I
like apt-get install

Question is:
How can I create that list for over 900 programs.

greyspace2 at
rogers dot com

Many thanks in advance

Greyspace

[EDIT: post this to the forum. dpkg is a handy
tool]
'Guest'  - My Backup list can wait until I learn ho   |74.110.185.xxx |2007-08-29 17:48:35
greyspace# su
greyspace# mkdir backup
greyspace# cp -f /etc/modules backup/
greyspace# cp -f
/etc/apt/sources.list backup/
greyspace# cp -f /etc/X11/xorg.conf backup/
greyspace# cp -f
/etc/X11/xorg.conf.* backup/
greyspace# cp -f /etc/fstab backup/
greyspace# cp -f
/etc/resolv.conf backup/
greyspace# cp -f /etc/hosts backup/
greyspace# cp -f
/boot/grub/menu.lst backup/
greyspace# dpkg --get-selections >> backup/packagelist
greyspace# ls backup
Kishore Chalakkal  - The whole job as a script   |87.17.176.xxx |2009-02-15 12:00:27
#!/bin/bash
cp -f /etc/modules /home/kishore/Backup/
cp -f /etc/apt/sources.list /home/kishore/Backup/
cp -f
/etc/X11/xorg.conf /home/kishore/Backup/
cp -f /etc/X11/xorg.conf /home/kishore/Backup/
cp -f /etc/fstab
/home/kishore/Backup/
cp -f /etc/resolv.conf /home/kishore/Backup/
cp -f /etc/hosts /home/kishore/Backup/
cp
-f /boot/grub/menu.lst /home/kishore/Backup/
dpkg --get-selections >> /home/kishore/Backup/packagelist

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated on Sunday, 09 March 2008 05:19