|
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 significa "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 |
|
5 | Postgresql Graphic Intefaces | % pgaccess db |