Table: cnotas, rows: 158

Page 7 of 8
           
titulocontenido
Mac: Sharing files with Windows users You 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.
nfs neu starten (Sambabuch) rcnfs restart
rcportmaper restart
Mac: 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.
Apache2 1)
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

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


find examples change owner:
find / -uid 500 -exec chown 510 {}\;

delete files:
find Peliculas/English -type f -name "*.nfo" -exec rm {} \;
mysql 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


-----------------------------------------------------------------------------------------------------------
xcdroast unter root /usr/sbin/groupadd xcdwrite
/bin/chown root /usr/X11R6/lib/xcdroast-0.98/bin/xcdrwrap
/bin/chgrp xcdwrite /usr/X11R6/lib/xcdroast-0.98/bin/xcdrwrap
/bin/chmod 2755 /usr/X11R6/lib/xcdroast-0.98/bin/xcdrwrap
/bin/chown root /usr/X11R6/lib/xcdroast-0.98/bin/cdrecord
/bin/chgrp xcdwrite /usr/X11R6/lib/xcdroast-0.98/bin/cdrecord
/bin/chmod 4710 /usr/X11R6/lib/xcdroast-0.98/bin/cdrecord
/bin/chown root /usr/X11R6/lib/xcdroast-0.98/bin/mkisofs
/bin/chgrp xcdwrite /usr/X11R6/lib/xcdroast-0.98/bin/mkisofs
/bin/chmod 4710 /usr/X11R6/lib/xcdroast-0.98/bin/mkisofs
/bin/chown root /usr/X11R6/lib/xcdroast-0.98/bin/readcd
/bin/chgrp xcdwrite /usr/X11R6/lib/xcdroast-0.98/bin/readcd
/bin/chmod 4710 /usr/X11R6/lib/xcdroast-0.98/bin/readcd
/bin/chown root /usr/X11R6/lib/xcdroast-0.98/bin/cdda2wav
/bin/chgrp xcdwrite /usr/X11R6/lib/xcdroast-0.98/bin/cdda2wav
/bin/chmod 4710 /usr/X11R6/lib/xcdroast-0.98/bin/cdda2wav

In /boot/grub/menu.lst
Kernel hdd=ide-scsi

In /etc/lilo.conf
append = "hdd=ide-scsi"

wenn nicht geladen:
insmod ide-scsi
Netzwerkkarte Volition unter linux In /etc/modules.conf

alias eth0 tulip
post-install tulip mii-tool -v -F 100baseTx-FD eth0
Optische Netzwerkkarte Dec chip 21143 unter SuSE 8.0 und 8.1 in /etc/modules.conf

alias eth0 de4x5
options eth0 args='eth0:fdx autosense=100Mb'
Harddisk benchmark hdparm -t -T /dev/hde
(only under root)
multiple move Ex: name.1 name.2 .... name.n
mmv name* file#1
results: file.1 file.2 .... file.n

conversion from *.jpeg to *.jpg
mmv '*.jpeg' '#1.jpg'
RAID
raid controller Racket64x
--------------------------
# cd /idisk/luis/Origins/LINUX/RocketRAID/rr64x-linux-src-v1.0/product/rr64x/linux
# make
# cd /lib/modules/`uname -r`/kernel/drivers
# mkdir raid
# cd raid
# cp /idisk/luis/Origins/LINUX/RocketRAID/rr64x-linux-src-v1.0/product/rr64x/linux/rr64x.ko .
# cat rr64x >> /etc/modules

softwareraid with package mdadm
-------------------------------------------
1 partition) Disks müssen mit fdisk von typ "fd" sein in a primary partition

2) /sbin/mdadm --auto-detect

or

/sbin/mdadm --create --verbose /dev/md0 --level=5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1

more /proc/mdstat

/sbin/mdadm --detail /dev/md0



stoping the raid
--------------------
mdadm --stop /dev/md0

package for raid Promise FastTrack: dmraid mus be installed
---------------------------------------------

From programm parted
-------------------------

udisks-helper-mkfs ext4 /dev/md0 0
mkfs.ext4 -F -L raid -F -F /dev/md0




Konqueror Default web-side settings in ~/.kde2/share/apps/konqueror/profiles/webbrowsing
KRABBER You need some permission settings, to be able to read from your CD device: the best way is
chmod 0777 /dev/CD_DEVICE

chmod 0777/dev/scd1

(das ist die cdrom sccsi emulation. Ersetzt /dev/hdc)

CD_DEVICE is the node file for your CD device, for example hdc(IDE device which
is MASTER on the SECOND IDE channel), scd0(the first SCSI CD-ROM). NOTE:
/dev/cdrom is mostly only a link to the real node file.

An easy way to enable the permissions for each device is:
chown root.root PATH_TO_CDPARANOIA/cdparanoia
chmod 6777 PATH_TO_CDPARANOIA/cdparanoia
DE writer example for lilo image=/boot/zImage-2.2.14
label=Linux
read-only
append="hdb=ide-scsi"
Mount image cd # mount enzoprogs.raw -r -t iso9660 -o loop /mnt
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
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"
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
microsoft explorer configuracion del SMTP Herramientas
Cuentas
correo
Propiedades
Avanzada
Mantener una copia de los mensajes en el servidor