Sie sind auf Seite 1von 3

Zusammenfassung und Vorbereitung RHCE-FastTrack-Kurs Paketinstallation

Einzelnes Paket installieren


$ yum install <pkg> $ rpm ivh <pkg>

Diskmanagement
Disk formatieren
Eintrge in Parttitionstabelle machen. $ fdisk /dev/sda Partitionstyp fr LVM, Swap usw. nicht vergessen. Vierte Partition /dev/sda4 ist meistens fr Extended Partition reserviert. Alle weiteren Partitionen haben Typ 0x83 und liegen auf Ext. Partition. Bei Verlassen von fdisk Disklabel schreiben. Dem Kernel bekannte Partitionen betrachten. $ cat /proc/partitions Partitionen im Kernel aktualisieren. $ partprobe $ mkfs.ext3 [-L <label>] /dev/sda FS formatieren $ blkid | grep <label> FS-Label anzeigen $ mdadm C /dev/md0 a yes l 0n1 /dev/sda7 RAID 0 erstellen $ mkfs.ext3 /dev/md0 $ mkdir <mntpt> $ mount /dev/md0 <mntpt> $ pvcreate /dev/md0 $ vgcreate volgroup /dev/md0 $ vgdisplay volgroup # free extents herausfinden $ lvcreate n data l <free extents> volgroup Volume + logical Volume erstellen. $ fdisk /dev/sda Part.typ 0x8e erstellen $ partprobe $ pvcreate /dev/sd8 $ vgextend volgourp /dev/sda8 $ lvextend L +50M /dev/volgroup/data $ resize2fs p /dev/volgroup/data $ df h Bestehendes Logical Volume erweitern.
Autor: D. Wrth Zusammenfassung RHCE-Kurs V 1.0

User administieren
$ $ $ $ $ useradd <name> -G <sec.group> useradd <name> -a G <sec.group> groupadd <grp> echo password | passwd stdin <user> chage [options] <user>

Verwaltet PW Ablaufstrategie $ visudo Administration von sudoers-File $ setfacl getfacl Setzen/Anschauen von ACLs tune2fs l <fs> Mount.Option eines FS auf usrquota ndern $ mount o remount <fs> $ init 1 $ quotacheck cu <fs> $ quotaon <fs> $ init 5 setquota u <user> <soft limit> <hard limit> <soft inode> <hard inode> <fs>

Drucker administieren
$ system-config-printers # graph. Fronted fr CUPS # http://localhost:631 lpadmin Files in /etc/cups/cupsd.conf und /etc/cups/printers.conf Kernelmanagement $ cd /boot $ mkinitrd with-<optional module> initrd-<optional>-$(uname r).img $(uname r) Neuen Kernel erstellen mit optionalen Elementen $ vim /boot/grub/grub.conf Kernel-Eintrag mit title einleiten und Keyword initrd + root SSH administrieren $ ssh-copy-id i <local public key> <remote account> SSH-Key an fernen User verteilen. DNS administrieren Zonentransfer testen $ dig t axfr <domain> @<dns server>

Autor: D. Wrth

Zusammenfassung RHCE-Kurs

V 1.0

Apache Files /etc/httpd/conf/httpd.conf und /etc/httpd/conf.d Auf SE fr diese Objekte achten mit chcon. Virtuelle Host mit Sektion <Virtual hosts> in httpd.conf einrichten. Wichtige Keywords : DocumentRoot, ServerName, ServerAlias. Passwrter liegen in .htaccess, mit htpasswd wird verwaltet. Zertifikate erstellen mit $ /etc/pki/tls/certs/Makefile FTP vsftpd verwenden. Auf SELinux, iptables und libwrapper achten. NFS In /etc/sysconfig/nfs kann z.B. statisches Portmapping eingerichtet werden. Samba Sinnvolles Tool zum Prfen ist smbclient.

Autor: D. Wrth

Zusammenfassung RHCE-Kurs

V 1.0

Das könnte Ihnen auch gefallen