|
27 | mail konfigurieren und mit einen Command schicken |
1- Im /etc/mail/linux.mc die Zeilen mit SMART_HOST und MAIL_HUB unkomentieren
und ubecx.unibe.ch als smtp server angeben.
define(`SMART_HOST', `smtp:ubecx.unibe.ch')dnl
dnl define(`SMART_HOST', `uucp-dom:otheruucphost')dnl
define(`MAIL_HUB', `smtp:ubecx.unibe.ch')dnl
dnl define(`LOCAL_RELAY', `smtp:host.your.domain')dnl
2- Mit m4 compileren
# m4 linux.mc > /etc/sendmail.cf
Oder (Urs Methode) in sendmail.cf den Befehl eintragen:
DSsmtp.unibe.ch
und in /root die Datei .forward editieren
marteinez@lhep.unibe.ch
3- Mail schicken
$ echo "Das ist ein test" | mail -s test martinez@lhep.unibe.ch |
|
26 | Schnitt der Apachekonfiguration von Linuxkurs 18.1.01 |
AuthUserFile /etc/httpd/passwd
AuthGroupFile /etc/httpd/group
Options -FollowSymLinks
# Options FollowSymLinks
AllowOverride None
Options +Indexes
order allow,deny
allow from 130.92.119.65
AuthName "kurs"
AuthUserFile /etc/httpd/users
AuthType Basic
Require valid-user
Satisfy any
Alias /test "/home/kurs/html" |
|
25 | Mount directories mit samba von m_computer | the kernel-module smbfs have to be istalled!!!
# mount -t smbfs -o username=m_name,password=m_passwd //m_computer/m_dir /home/m_dir |
|
24 | microsoft explorer configuracion del SMTP | Herramientas
Cuentas
correo
Propiedades
Avanzada
Mantener una copia de los mensajes en el servidor |
|
23 | microsoft explorer configuracion del servidor Proxy | Herramientas
opciones de internet
conexiones
configuracion LAN |
|
22 | Recognice 128 MB mermory in Athlon | n /etc/lilo.conf
append="mem=128M" |
|
21 | Hard disk in ULTRA DMA MODE | In /sbin/init.d/boot.local
hdparm -c1 -m16 -d1 -X68 /dev/hda |
|
20 | Error messages | % dmesg |
|
19 | An alarm clock application | An alarm clock application that allows playing of mp3s to wake you up. xx
xx Enthält: vigmeup-1.0.1 |
|
17 | Computer als X terminal | # X :1 -indirect |
|
16 | MO 640 Mb format | # fdisk /dev/sda
alle partitionen l�schen und eine Fat16 definieren (type 6).
# mkdosfs -S 2048 /dev/sda1
# |
|
15 | Msdos Floppy disk format (linux) |
a) Grosse 720 KB:
% fdformat -n /dev/fd0h720
% mformat -t 80 -h 2 -s 9 a:
b) Grosse 1.44 MB
% fdformat -n /dev/fd0h1440
% mformat -t 80 -h 2 -s 18 a:
-n heisst "no verify" |
|
14 | Booten mit Sicherheitmodus | bott: linux -b
Nach der Anmeldung:
#mount -n -o remount,rw / |
|
13 | Printer verwaltung |
#lpq -P
#lpc (printer control, interative) |
|
12 | Print Ascii to ps | % a2ps -1 -nL -P -ns |
|
11 | Apache (Linux) | Start apache:
# /usr/sbin/httpd -f /etc/httpd/httpd.conf
Directory wo die cgi-files und giff-files sich befinden sind definiert in
/etc/httpd/httpd.conf
Entry:
ServerRoot "/usr/local/httpd"
Apache configuration:
in /etc/httpd/srm.conf
Entry:
DocumentRoot
----
Example:
# Geändert (L.M)
#DocumentRoot "/usr/local/httpd/htdocs"
NameVirtualHost lheppc12
ServerName lheppc12.unibe.ch
DocumentRoot "/home/pc12/www"
ServerName www.schacher.lhep.unibe.ch
DocumentRoot "/home/pc12/schacher/3w_lib/www"
ServerName www.martinez.lhep.unibe.ch
DocumentRoot "/home/pc12/martinez/wwwserver"
----
Jeder Virtualhost directory muss eine Datei enthalten deren Name ist
"index.html" |
|
10 | cups printer in Macintosh | Browser in server:
http://localhost:631
Tab administration
Share published printers connected to this system
Browser in Mac:
http://localhost:631
Tab administration
Add printer
Name: Hp_Laserjet2200
Device: Internet Printing Protocol (ipp)
Device Uri: ipp://lheppc24.unibe.ch/printers/Hp_Laserjet2200
Model Driver: HP
Model: Hp Laserjet Series CUPS
Mit dem Mac Print-utility
-------------------------
Protocol: ipp
Adresse: lheppc24.unibe.ch:631
Warteslange: /printers/HpLaserjet_2200
Model Driver: HP
Model: Hp Laserjet Series CUPS
Cups Device Uri
ipp://lheppc24:631/printers/HpLaserjet_2200
|
|
9 | adept (aptg-get) add proxy and kill pending process | # cd /etc/apt/apt.conf.d
# vi 80aptproxy
add line:
Acquire::http::Proxy "http://proxy.unibe.ch:80";
# dpkg --configure -a
|
|
8 | rpm query für Packages | # rpm -q -i
Example:
# rpm -q -i aps
Query für alle Packages
# rpm -q -l -a |
|
7 | Update Packages | a) nur testen
# rpm -U --test
b) endgültig
# rpm -U
kubuntu:
--------
$ sudo aptitude update
$ sudo aptitude full-upgrade
ubuntu:
------
# cd /etc/apt/apt.conf.d
# vi 80aptproxy
add line:
Acquire::http::Proxy "http://proxy.unibe.ch:80";
# dpkg --configure -a
# apt-get update |