DebianDesktopHowTo: Difference between revisions
mok0>1129650288.68.5573 (ChristianGatzemeier) use hotplug script for fstab or autofs instead of usbmount |
mok0>1129650288.68.5573 (ChristianGatzemeier) No edit summary |
||
| Line 19: | Line 19: | ||
<pre> login;*;*;Al0000-2400;users,cdrom,floppy,plugdev,audio,dip kdm;*;*;Al0000-2400;users,cdrom,floppy,plugdev,audio,dip,video gdm;*;*;Al0000-2400;users,cdrom,floppy,plugdev,audio,dip,video </pre> | <pre> login;*;*;Al0000-2400;users,cdrom,floppy,plugdev,audio,dip kdm;*;*;Al0000-2400;users,cdrom,floppy,plugdev,audio,dip,video gdm;*;*;Al0000-2400;users,cdrom,floppy,plugdev,audio,dip,video </pre> | ||
In GNOME, devices will | In GNOME, devices will pop up automatically for plugdev users. | ||
KDE 3.3 shipped with Sarge unfortunately does not yet listen to hal-events or support pmount. The devices won't show up automatically, however plugdev users will be able to handle them manualy with pmount/pumount if installed. Alternatively you you can install the updfstab or hotplug-mount.pl (dynamicly reconfigures autofs) script from [http://ccomb.free.fr/wiki/wakka.php?wiki=UsbMassStorageEnglish] . | KDE 3.3 shipped with Sarge unfortunately does not yet listen to hal-events or support pmount. The devices won't show up automatically, however plugdev users will be able to handle them manualy with pmount/pumount if installed. Alternatively you you can install the updfstab or hotplug-mount.pl (dynamicly reconfigures autofs) script from [http://ccomb.free.fr/wiki/wakka.php?wiki=UsbMassStorageEnglish] . | ||
Revision as of 20:42, 21 October 2005
This page is to keep a lists of things you need to do in order to install a basic debian-desktop until things are integrated into debian. For more details see the subpages of ["DebianDesktop"].
Booting from a Sarge install CD, provide "linux26" at the bootprompt to get a 2.6 kernel and udev installed. Install the base-system to your needs. When prompted by "tasksel" choose following task:
* desktop-environment
(adduser #240855) Add additional user accounts you may need (with "adduser <NAME>").
You can statically add the users you want into appropriate groups by iterating "adduser <NAME> <GROUP>".
A more appropriate way to add many/all users by default is to use pam_group that dynamically adds users to groups during authentification (see below).
You probably want some users to be members of some of the following groups: audio, camera, scanner, video (nvidia drivers?), floppy, cdrom, tape and maybe fax, dip ("dial-ip", connect to Internet with pon/poff as set up by pppconfig) or dialout (serial ports/modems). There are some other groups where you don't want to add users to! (i.e. like games or disk, see /usr/share/doc/base-passwd/users-and-groups).
Users that should be allowed to use (pmount'ed) usb sticks etc. need to be a member of the plugdev group.
To enable pam_group you can add it to /etc/pam.d/common-auth like this echo "auth optinal pam_group.so" >> /etc/pam.d/common-auth
then configure /etc/security/group.conf like to this:
login;*;*;Al0000-2400;users,cdrom,floppy,plugdev,audio,dip kdm;*;*;Al0000-2400;users,cdrom,floppy,plugdev,audio,dip,video gdm;*;*;Al0000-2400;users,cdrom,floppy,plugdev,audio,dip,video
In GNOME, devices will pop up automatically for plugdev users. KDE 3.3 shipped with Sarge unfortunately does not yet listen to hal-events or support pmount. The devices won't show up automatically, however plugdev users will be able to handle them manualy with pmount/pumount if installed. Alternatively you you can install the updfstab or hotplug-mount.pl (dynamicly reconfigures autofs) script from [1] .
To create new groups use "addgroup <GROUPNAME>". For example on your home PC you could create a group "family" and add the appropriate users to it. You can then make a family group directory: Do "mkdir /home/family" as root, give it to the group with "chown :family /home/family" and change its permissions "chmod 2770 /home/family" to make it a shared set-group-id directory. Finally, change the default umask to 002 (unless libpam-umask is installed, this has to be set in /etc/profile and /etc/login.defs). This way group members can work with each other's files in the group directory.
(default package selection) Install and configure the CUPS printing system packages as described on ["DebianCUPS"]. Start /usr/lib/openoffice/spadmin as root "add printer" and import your printers setup from /etc/foomatic/cups. (default package selection (synaptic only recommending)) "apt-get install libgnome2-perl" if you want the Gnome debconf frontend to actually work when you install packages. You may need to configure debconf to use "GNOME" frontend with "dpkg-reconfigure debconf" (Does Synaptic let debconf start in GNOME or appropriate mode?). (default package selection) Then start up Synaptic and find, select and install the following packages:
- anacron or fcron? (desktops/laptops don't usualy run all the time (at night, weekends, etc.) * If you need localized fonts: xfonts-base-transcoded and xfonts-*dpi-transcoded * zip and unzip * mc (midnight commander console filemanager) * ssh-askpass (lets ssh use a graphical password prompt window when run under X) Are the following actually needed? For what benefit? They are non-free anyway: * x-ttcidfont-conf (needed for the next) * msttcorefonts (to display some webpages and documents correctly) -----
Now some configuring:
To actually make use of the private user groups in debian set "umask 002" in /etc/login.defs, /etc/profile and other shell config files, or better: install libpam-umask and you can centrally set a real system wide default umask with a line like this in /etc/pam.d/common-session:
session optional pam_umask.so umask=002
(Additionaly remove all umask lines from /etc/login.defs, /etc/profile etc.)
The central settings for KDE in /etc/kde3 could also need some tweaking:
- set CUPS as default printing system (Put the following into /etc/kde3/kdeprintrc)
["General"] PrintSystem=cups
- If you like make $HOME to your Desktop for consistency. (Put the following into /etc/kde3/kdeglobals)
["Paths"] Desktop=$HOME Trash=$HOME/Trash/
- If you need particular proxy, javascript and cookie policy etc. KDE system defaults, set them in the same way, too. [2] has more info about the configuration files, including making settings immutable to users. ...have fun! And if you encounter bugs search the net, if the bug is not already filed, find the appropriate package and the file a bug against it, if it concerns Debian simply use the "reportbug" utility for that.
Troubleshooting
For manual setup of the graphic you can use dpkg-reconfigure xserver-xfree86. An alternative automatic configuration of the x-server is to install xdebconfigurator, run it, and then dexconf to generate a valid ["XF86config"].
Things that have already been integrated
- autoconfiguration of the xserver