Table: cnotas, rows: 170

Página 7 de 9
           


Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/http/docs/santaclara5/libraries/src/HTML/Helpers/Grid.php on line 48

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/http/docs/santaclara5/libraries/src/HTML/Helpers/Grid.php on line 48

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/http/docs/santaclara5/libraries/src/HTML/Helpers/Grid.php on line 48
id titulo contenido
59ssh ohne password von localen zum entfernten RechnerAuf dem localen Rechner:

% ssh-keygen -t rsa

Es fragt nach dem passphrase. Man less es blank
Das generiert die dateien ~/.ssh/id_rsa und ~/.ssh/id_rsa.pub

auf dem entfernten Rechner �ftet man mit einem editor
~/.ssh/authorized_keys und kopiert man die zeile von id_rsa.pub des Servers.
Achtung, diese zeile ist sehr lang
58man pages with extension$ man -S3 getopt
57Suse Release$ cat /etc/SuSE-release
56vmware 4.5.2 any-any-any patchhttp://knihovny.cvut.cz/ftp/pub/vmware/
55vmware nach der kernel patch#reboot
#cd /usr/src/linux
#make cloneconfig
#make prepare-all
#vmwar-config.pl
54Duplicate Linuxcp -a /bin /boot /dev /etc /home /lib
/lost+found /mnt /root /sbin /tmp /usr /var
in to new-disk
53PRINTER: Laserwriter 16/600 PS IPAdress zuweissenarp -s lhepsp9 08:00:07:04:a3:62
52Router SuseMit yast Network services/routing starten

dann

$> modprobe ipt_MASQUERADE # If this fails, try continuing anyway
$> iptables -F; iptables -t nat -F; iptables -t mangle -F
$> iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 123.12.23.43
$> echo 1 > /proc/sys/net/ipv4/ip_forward
51Redireccion to stdout and stderr$ command >junk 2>&1
to redirect both stdout and stderr to junk
50DHCP server SuSE 8.2datei /etc/dhcpd.conf

subnet 192.168.139.0 netmask 255.255.255.224 {
range 192.168.139.10 192.168.139.20;
option routers 192.168.139.1;
option domain-name "unibe.ch";
option domain-name-servers 130.92.4.41, 130.92.9.50;
}

Example von Internet:

Führen Sie als root folgendes Kommando aus:

route add -host 255.255.255.255 dev eth0

Sollte die Fehlermeldung

255.255.255.255: Unknown host


auftreten, dann tragen Sie folgenden Eintrag in Ihre /etc/hosts ein:


255.255.255.255 dhcp


Ist dieser eingefügt setzen Sie folgendes Kommando ab:

route add -host dhcp dev eth0


Optionen des DHCPD
------------------------------
# Sample /etc/dhcpd.conf
# (add your comments here)
default-lease-time 1200;
max-lease-time 9200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.org";
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}



Dieses Beispiel erlaubt dem DHCP Server einem Client IP Adressen im Bereich von 192.168.1.10-192.168.1.100 oder 192.168.1.150-192.168.1.200 zuzuweisen.


Wenn der Client keine größeres Zeitfenster anfordert vergibt der DHCP Server eine IP Adresse für 1200 Sekunden. Das maximal erlaubte Zeitfenster für die Adreßzuordnung durch den Server beträgt 9200 Sekunden. Auf Anfrage sendet der Server dem Client die folgenden Parameter:


Benutze 255.255.255.0 als Subnetzmaske
Benutze 192.168.1.255 als Broadcastadresse
Benutze 192.168.1.254 als default Gateway
Benutze 192.168.1.1 und 192.168.1.2 als DNS Server.



Um Windows Clients einen WINS Server zuzuordnen ist in der dhcpd.conf folgende Option notwendig:


option netbios-name-servers 192.168.1.1;


49Masquerading Suse8.2Assuming external internet card is eth0, and external IP is 123.12.23.43
and the internal network card is eth1, then:


$> modprobe ipt_MASQUERADE # If this fails, try continuing anyway
$> iptables -F; iptables -t nat -F; iptables -t mangle -F
$> iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 123.12.23.43
$> echo 1 > /proc/sys/net/ipv4/ip_forward
48floppy duplicate# dd if=/dev/fd0 of=.img bs=512
# dd if=.img of=/dev/fd0 bs=512
or
# cp /dev/fd0 .img
# cp .img /dev/fd0



47mysql Dump database definitionsmysqldump -h"host" -u"user" -p"passwd" -d --add-drop-table "myDatabase" > Mytmp.sql
46Printer CommandsView printer queue: lpq
View printer status: lpc
enable printer with CUPS: /usr/bin/enable
45Mac: Sharing files with Windows usersYou can share the files on your computer with Windows computer users using SMB/CIFS.

Open System Preferences, click Sharing, and turn on Windows File Sharing in the
Services tab.

Then, still in System Preferences, open Accounts preferences and create a new user
account for each Windows user you want to share with. In the user's settings, be sure to
select "Allow user to log in from Windows."

If you can't log in to your Macintosh from a Windows computer, reenter your user account
name on the Windows computer using all lowercase characters, reenter the password for
the account exactly as you entered it in Mac OS X, then log out and log back in to the
Windows computer using the new name and password.
44nfs neu starten (Sambabuch)rcnfs restart
rcportmaper restart
42Mac: how to change the workgroup used by Windows File Sharing.The default workgroup is "WORKGROUP".
To learn what a workgroup is, see technical document 106138, Windows File Sharing: What is a 'Workgroup'?
To change the workgroup, follow these steps:

1. Open Directory Access (/Applications/Utilities/).
2. Click the padlock to authenticate as an Admin user.
3. Select SMB from the Services list.
4. Click Configure.
5. Select the name of the workgroup from the list, or type the name of the workgroup you wish to create.
6. Click OK.
7. Click Apply.
8. Quit Directory Access.
41Apache21)
In file /etc/php.ini die variable register_globals auf On setzen
zb.
register_globals = On

2)
In /etc/apache2/httpd.conf die zeile einfügen:
Include /etc/apache2/lhep.conf

Diese Datei enthält:

LoadModule php4_module /usr/lib/apache2-prefork/libphp4.so

SetOutputFilter PHP
SetInputFilter PHP

##-----------------------------------------------------------------------
NameVirtualHost *


ServerName www.lhep.unibe.ch
DocumentRoot "/home/lhep/www"

# ------------------------------------------------------------------

AuthUserFile /home/lhep/www/.htpasswd
AuthName "INTERNAL LHEP PAGE"
AuthType Basic

Require user lhep


# ------------------------------------------------------------------

AuthUserFile /home/lhep/www/.htpasswd
AuthName "NEWMASS PRIVATE"
AuthType Basic

Require user newmass


# ------------------------------------------------------------------

AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script


# ------------------------------------------------------------------


AuthUserFile /home/lhep/www/.htpasswd
AuthName "ORPHEUS PRIVATE"
AuthType Basic

Require user orpheus


# ------------------------------------------------------------------
#

AllowOverride None
Options FollowSymLinks +ExecCGI +Indexes

#
# ------------------------------------------------------------------


40find exampleschange owner:
find / -uid 500 -exec chown 510 {}\;

delete files:
find Peliculas/English -type f -name "*.nfo" -exec rm {} \;
39mysql MySQL server version 3.22.32
Port 3306
Data directory: /var/lib/mysql

Change password:
# mysqladmin password newpassword
or:
mysql> update user set password=passwor('new_password') where user='username';
mysql>flush privileges;
Example:
mysql> update user set password=password('gu') where user='root';
mysql> update user set password=password('penta') where user='mart';
or:
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP
ON lm_db.*
TO mart@localhost
IDENTIFIED BY 'penta';
Example:
mysql> grant select,insert,update,delete,create,drop on lm_db.* to mart@"%" identified by 'penta';
mysql> flush privileges;

mysql commands:
mysql> select version();courrentdate();
+-----------+
| version() |
+-----------+
| 3.22.32 |
+-----------+

mysql> select now();
+---------------------+
| now() |
+---------------------+
| 2001-01-24 11:15:41 |
+---------------------+

pc12:~% mysql -u root -pgu

mysql> use mysql;
Database changed
mysql> show tables;
+-----------------+
| Tables in mysql |
+-----------------+
| columns_priv |
| db |
| func |
| host |
| tables_priv |
| user |
+-----------------+
mysql> create database m_db;
mysql> exit;

lheppc12:~% mysqlshow -u root -pgu mysql user
Database: mysql Table: user Rows: 5
+-----------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+---------------+------+-----+---------+-------+
| Host | char(60) | | PRI | | |
| User | char(16) | | PRI | | |
| Password | char(16) | | | | |
| Select_priv | enum('N','Y') | | | N | |
| Insert_priv | enum('N','Y') | | | N | |
| Update_priv | enum('N','Y') | | | N | |
| Delete_priv | enum('N','Y') | | | N | |
| Create_priv | enum('N','Y') | | | N | |
| Drop_priv | enum('N','Y') | | | N | |
| Reload_priv | enum('N','Y') | | | N | |
| Shutdown_priv | enum('N','Y') | | | N | |
| Process_priv | enum('N','Y') | | | N | |
| File_priv | enum('N','Y') | | | N | |
| Grant_priv | enum('N','Y') | | | N | |
| References_priv | enum('N','Y') | | | N | |
| Index_priv | enum('N','Y') | | | N | |
| Alter_priv | enum('N','Y') | | | N | |
+-----------------+---------------+------+-----+---------+-------+

mysql> select host,user,password from user;
+-------------------+----------+------------------+
| host | user | password |
+-------------------+----------+------------------+
| localhost | root | 6db8a3ad1c53bcbe |
| pc12.unibe.ch | root | 6db8a3ad1c53bcbe |
| localhost | | |
| pc12.unibe.ch | | |
| % | mart | 2ae2f8a422678189 |
+-------------------+----------+------------------+
--------------------------------------------------------------------------------------------------------------
Database accessable from other computer:



mysql> grant all privileges on *.* to myadmin@"%" identified by 'penta' with grant option;

mysql> grant all privileges on *.* to myadmin@localhost identified by 'penta' with grant option;

En MySQL 5.0 o superior hay que comentar la frase en
/etc/mysql/my.cnf
que dice:
#bind-address = 127.0.0.1


-----------------------------------------------------------------------------------------------------------