15/4/10

GNU-LINUX-CENTOS.5















un click en las imagenes te redireccionara al respectivo curso


preferentemente abrir en otra pestaña





385 cat > informe1
386 cat > informe2
387 mkdir /centos4
388 tar -cvf backup1.tar informe1 informe2
389 tar -tvf backup1.tar
390 cd /centos4
391 cat > ejemplo1
392 cd
393 tar -cvf backup2.tar /centos4 informe1
394 ls
395 backup2.tar /home
396 cp backup2.tar /home
397 cd home
398 cd /home
399 ls
400 tar -xvf backup.tar
401 tar -xvf backup2.tar
402 ls
403 ls
404 cat > informe2
405 ls
406 gzip informe1
407 ls
408 zcat informe1.gz
409 gzip -d informe1.gz
410 ls
411 bzip2 informe2
412 ls
413 bz2 -d informe2
414 bzp2 -d informe2
415 bzip2 -d informe2
416 bzip2 informe2
417 bzip2 informe2.bz2
418 bzip2 -d informe2.bz2
419 ls
420 cd
421 gzip backup1.tar
422 ls
423 gzip2 backup2.tar
424 bzip2 backup2.tar
425 cp backup1.tar gz /centos4
426 cp backup1.tar.gz /centos4
427 cd /centos4
428 tar -zxvf backup1.tar.gz
429 cd
430 cp backup2.tar.bz2 /home
431 cd /home
432 ls
433 tar -jxvf backup2.tar.bz2
434 tar -czvf backup3.tgz informe1 informe2
435 tar -czvf backup3.tgz informe1 informe2
436 cd
437 history > tartall
438 cd /media
439 ls
440 cp tartall /media/ELACH-NAMM
441 cp tartall media/ELACH-NAMM
442 cd
443 cp tartall media/ELACH-NAMM
444 cp tartall /media/ELACH-NAMM
445 cd /media
446 ls
447 cd /ELACH-NAMM
448 cd /media/ELACH-NAMM
449 LS

































PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP



19 comentarios:

  1. 385 cat > informe1
    386 cat > informe2
    387 mkdir /centos4
    388 tar -cvf backup1.tar informe1 informe2
    389 tar -tvf backup1.tar
    390 cd /centos4
    391 cat > ejemplo1
    392 cd
    393 tar -cvf backup2.tar /centos4 informe1
    394 ls
    395 backup2.tar /home
    396 cp backup2.tar /home
    397 cd home
    398 cd /home
    399 ls
    400 tar -xvf backup.tar
    401 tar -xvf backup2.tar
    402 ls
    403 ls
    404 cat > informe2
    405 ls
    406 gzip informe1
    407 ls
    408 zcat informe1.gz
    409 gzip -d informe1.gz
    410 ls
    411 bzip2 informe2
    412 ls
    413 bz2 -d informe2
    414 bzp2 -d informe2
    415 bzip2 -d informe2
    416 bzip2 informe2
    417 bzip2 informe2.bz2
    418 bzip2 -d informe2.bz2
    419 ls
    420 cd
    421 gzip backup1.tar
    422 ls
    423 gzip2 backup2.tar
    424 bzip2 backup2.tar
    425 cp backup1.tar gz /centos4
    426 cp backup1.tar.gz /centos4
    427 cd /centos4
    428 tar -zxvf backup1.tar.gz
    429 cd
    430 cp backup2.tar.bz2 /home
    431 cd /home
    432 ls
    433 tar -jxvf backup2.tar.bz2
    434 tar -czvf backup3.tgz informe1 informe2
    435 tar -czvf backup3.tgz informe1 informe2
    436 cd
    437 history > tartall
    438 cd /media
    439 ls
    440 cp tartall /media/ELACH-NAMM
    441 cp tartall media/ELACH-NAMM
    442 cd
    443 cp tartall media/ELACH-NAMM
    444 cp tartall /media/ELACH-NAMM
    445 cd /media
    446 ls
    447 cd /ELACH-NAMM
    448 cd /media/ELACH-NAMM
    449 LS

    ResponderEliminar
  2. [root@dhcppc1 mis archivos]# tar -cvf /root/mis\ archivos/bakkk.tar /root/mis\ archivos/archivo archivo1 archivo2

    ResponderEliminar
  3. [root@a211 ~]# vim /etc/samba/smb.conf


    Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
    # specifiy it as a per share option as well
    #
    workgroup = LAB_02
    server string = DANIEL-DAVAN
    netbios name = a211

    ; netbios name = MYSERVER

    ; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
    ; hosts allow = 127. 192.168.12. 192.168.13.

    # --------------------------- Logging Options -----------------------------
    #
    # Log File let you specify where to put logs and how to split them up.
    #
    # Max Log Size let you specify the max size log files should reach



    [root@a211 ~]# testparm
    Load smb config files from /etc/samba/smb.conf
    Processing section "[homes]"
    Processing section "[printers]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions

    [global]
    workgroup = LAB_02
    server string = DANIEL-DAVAN
    passdb backend = tdbsam
    cups options = raw

    [homes]
    comment = Home Directories
    read only = No
    browseable = No

    [printers]
    comment = All Printers
    path = /var/spool/samba
    printable = Yes
    browseable = No







    [root@a211 ~]# service smb restart
    Apagando los servicios SMB: [FALLÓ]
    Apagando los servicios NMB: [FALLÓ]
    Iniciando servicios SMB: [ OK ]
    Iniciando servicios NMB: [ OK ]
    [root@a211 ~]#



    [root@a211 ~]# smbclient //10.10.12.24/prueba1 -U administrator
    Password:
    Domain=[A2_15] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
    smb: \> ls







    #============================ Share Definitions ==============================

    [homes]
    comment = Home Directories
    browseable = no --> si le pones no se podra kistar ... y si le pones si se podra modificar
    writable = yes --> es para escrivir
    path = /home/samba1 ---> carpeta k estamos compartinedo
    public = yes -- es para k se vea para todos
    create mode =0771 -- > para tener permisos en la carpeta
    ; valid users = %S
    ; valid users = MYDOMAIN\%S


    [otra carpeta compartida] --->
    comment = Home Directories
    browseable = no --> si le pones no se podra kistar ... y si le pones si se podra modificar
    writable = yes --> es para escrivir
    path = /home/samba1 ---> carpeta k estamos compartinedo
    public = yes -- es para k se vea para todos
    create mode =0771 -- > para tener permisos en la carpeta



    [printers] ............. hacer todo estos pasos para compartir carpetas
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    guest ok = no
    writable = no
    printable = yes

    # Un-comment the following and create the netlogon directory for Domain Logons

    ResponderEliminar
  4. service iptables stop

    detener el cortafuegos del linux

    ResponderEliminar
  5. ====================================================

    [root@A6-11 ~]# vim /etc/samba/smb.conf

    para configurar el archibo del servicio samba

    =========================================================

    ResponderEliminar
  6. *******************************dhcpd********************

    ddns-update-style interim;
    ignore client-updates;

    subnet 192.168.60.0 netmask 255.255.255.0 {

    # --- default gateway
    option routers 192.168.60.1;
    option subnet-mask 255.255.255.0;

    option nis-domain "domain.org"; --------> nombrse de dominio dns
    option domain-name "domain.org";
    option domain-name-servers 192.168.1.1; -- ------> ip del servico dns cunatdo esta fincionando

    option time-offset -18000; # Eastern Standard Time
    # option ntp-servers 192.168.1.1; ----------> servidor horafio de los paises
    # option netbios-name-servers 192.168.1.1;
    # --- Selects point-to-point node (default is hybrid). Don't change this unless
    # -- you understand Netbios very well
    # option netbios-node-type 2;

    range dynamic-bootp 192.168.60.61 192.168.60.63; -----------> rango dinamico de los ip a entregar
    default-lease-time 21600; ----------_--> tiempo x defecto k ba a demosra el servidor a< enviarlo
    max-lease-time 43200; -------------------> tiempo maximo de espera para entregar el ip

    # we want the nameserver to appear at a fixed address
    host ns { ---------> computadoras excluidas k sus ip no vana cambiar excluir )
    next-server marvin.redhat.com;
    hardware ethernet 12:34:56:78:AB:CD;
    fixed-address 207.175.42.254;
    }
    }

    host ns sintaxis
    host --> comando
    ns --> nombre de la pc k sera exc.luida
    hardware ethernet --> la mac de la pc a ser configurada


    61 62 63

    una ves k as configurado tiense k reemplasar al archivo dhcpd.conf que esta en el /etc/dhcpd.conf




















    ================================clinete==================================0
    [root@a211 ~]# setup
    [root@a211 ~]# sercice network restart
    bash: sercice: command not found
    [root@a211 ~]# service network restart
    Interrupción de la interfaz eth0: [ OK ]
    Interrupción de la interfaz de loopback: [ OK ]
    Activación de la interfaz de loopback: [ OK ]
    Activando interfaz eth0:
    Determinando la información IP para eth0...
    [1]+ Stopped service network restart
    [root@a211 ~]# sercice dhcp stop
    bash: sercice: command not found
    [root@a211 ~]# sercice dhcpd stop
    bash: sercice: command not found
    [root@a211 ~]# service dhcpd stop
    Apagando dhcpd: [ OK ]
    [root@a211 ~]# service network restart
    Interrupción de la interfaz eth0: [ OK ]
    Interrupción de la interfaz de loopback: [ OK ]
    Activación de la interfaz de loopback: [ OK ]
    Activando interfaz eth0:
    Determinando la información IP para eth0...


    ___________________________________________________________________________
    ___________________________________________________________________________
    [root@a211 ~]# ifconfig
    eth0 Link encap:Ethernet HWaddr 00:22:64:A8:2C:B1
    inet addr:192.168.60.60 Bcast:192.168.60.255 Mask:255.255.255.0
    inet6 addr: fe80::222:64ff:fea8:2cb1/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:75459 errors:0 dropped:0 overruns:0 frame:0
    TX packets:47380 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:100
    RX bytes:104504192 (99.6 MiB) TX bytes:3711317 (3.5 MiB)
    Memory:f0180000-f01a0000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:2243 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2243 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:3226116 (3.0 MiB) TX bytes:3226116 (3.0 MiB)

    [root@a211 ~]#

    ResponderEliminar
  7. _________________ archivo 1 __________________
    14.10.10.in-addr-arpa.zone
    _____________________________________________
    $TTL 86400
    @ IN SOA @ root (
    42; Numero de Serie
    28800; Tiempo de Refresco
    7200; Tiempo de Reintentos
    604800; Expiracion
    86400; Tiempo Total de Vida
    )
    IN NS @
    190 IN PTR mail.idatlinux1.com.


    ==================================================

    _____- archivo 2 _________________-
    idatlinux1.com.zone
    _____________________________________
    $TTL 86400
    @ IN SOA @ root (
    42; Numero de Serie #
    2880; Tiempo de Refresco
    7200; Tiempo de Reintentos
    604800; Expiracion
    86400; Tiempo Total de Vida
    )
    IN NS @
    idatlinux1.com. IN MX 10 mail.idatlinux1.com.
    idatlinux1.com. IN A 10.10.14.19
    mail IN A 10.10.14.19


    ==================================================

    _____________-- archivo 3 _____________________

    ________________named.conf_________________________-

    options {
    directory "/var/named/";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    allow-recursion {
    127.0.0.1;
    10.10.14.19;
    };
    forwarders {
    200.33.146.209;
    200.33.146.217;
    };
    forward first;
    };
    zone "." {
    type hint;
    file "named.ca";
    };
    zone "localhost" {
    type master;
    file "localhost.zone";
    allow-update { none; } ;
    };
    zone "idatlinux1.com" {
    type master;
    file "idatlinux1.com.zone";
    allow-update { none; };
    };
    zone "14.10.10.in-addr-arpa.zone" {
    type master;
    file "14.10.10.in-addr-arpa.zone";
    allow-update { none; };
    };

    ResponderEliminar
  8. creacion de users paraq samba
    ==============================

    [root@a211 ~]# useradd davan
    [root@a211 ~]# passwd davan
    Changing password for user davan.
    New UNIX password:
    BAD PASSWORD: it is WAY too short
    Retype new UNIX password:
    passwd: all authentication tokens updated successfully.
    [root@a211 ~]# smbpasswd -a davan
    New SMB password:
    Retype new SMB password:
    Added user davan.
    [root@a211 ~]#

    ResponderEliminar
  9. [root@a211 ~]# rpm -qa | grep bind*
    bind-chroot-9.3.6-4.P1.el5_4.2
    bind-libs-9.3.6-4.P1.el5_4.2
    ypbind-1.19-12.el5
    bind-9.3.6-4.P1.el5_4.2
    binutils-2.17.50.0.6-12.el5
    bind-utils-9.3.6-4.P1.el5_4.2
    [root@a211 ~]#

    ResponderEliminar
  10. 1 adduser daniel
    2 ifconfig
    3 setup
    4 ifconfig
    5 setaup
    6 setup
    7 ifconfig
    8 service network restart
    9 ifconfig
    10 ping 192.168.50.25
    11 ping 192.168.50.25
    12 ping 192.168.50.15
    13 ping -n 2 192.168.50.15
    14 man ping
    15 ping -n 2 192.168.50.15 2
    16 ping -n 192.168.50.15 2
    17 ping
    18 ping 192.168.50.15
    19 ping 192.168.50.15
    20 ping 192.168.50.15 256
    21 ping -n 2 192.168.50.15
    22 ping -n 1 192.168.50.15
    23 ping 192.168.50.15 -n 2
    24 setup
    25 service network restart
    26 setup
    27 service network restart
    28 ping 192.168.50.30
    29 ping 192.168.50.25 -l 2
    30 ping -t 192.168.50.25 -l 2
    31 ping -t 192.168.50.25 -l 2
    32 ls /root/Desktop/
    33 less /root/Desktop/archivo\ nuevo
    34 ping -t 192.168.50.25 -l 65.596
    35 ping 192.168.50.25
    36 cd /etc/sysconfig/network-scripts/
    37 pwd
    38 ls

    ResponderEliminar
  11. 39 vin ifcfg-eth0
    40 vim ifcfg-eth
    41 service network restart
    42 ifconfig | less
    43 ifconfig eth0:1 192.168.50.20 netmask 255.255.255.0|
    44 ifconfig | less
    45 ping 192.168.50.20
    46 ifconfig eth0:2 10.10.12.100 netmask 255.255.255.0
    47 ifconfig
    48 ifconfig eth0:3 10.10.12.102 netmask 255.255.255.0
    49 ifconfig | less
    50 route -n
    51 ifconfig del eth0:3 10.10.12.102 netmask 255.255.255.0
    52 del eth0:3 10.10.12.102 netmask 255.255.255.0
    53 ifconfig
    54 ifconfig
    55 ifconfig del eth0:1 10.10.12.102 netmask 255.255.255.0
    56 ifconfig eth0:1 10.10.12.102 netmask 255.255.255.0
    57 ifconfig
    58 ps ax | grep sshd
    59 rpm -qv telnrt-server
    60 rpm -qv telnet-server
    61 rpm -q telnet-server
    62 rpm -q telnet
    63 rpm -q telnet-server
    64 rpm -q xinetd
    65 yum install xinetd
    66 yum install xinetd
    67 vim /etc/yum.conf
    68 vim /etc/yum.conf
    69 yum install xinetd
    70 rpm -q xinetd
    71 rpm -qv telnrt-server
    72 rpm -qv telnet-server
    73 yum install telnet-server
    74 rpm -q telnet-server
    75 ifconfig
    76 setup
    77 service network restar
    78 service network restart
    79 ifconfig
    80 setup
    81 cd /etc/sysconfig/network-scripts/
    82 ls
    83 vim ifcfg-eth0
    84 ifconfig
    85 service network restar
    86 service network restart
    87 ifconfig
    88 mkdir /davan-casapia
    89 cd /davan-casapia/
    90 cat > davan-casapia-file
    91 setup
    92 service network restart
    93 service network restart
    94 ifconfig
    95 setup
    96 service network restart
    97 ifconfig
    98 cd

    ResponderEliminar
  12. 99 ls -a
    100 scp -r roo3
    101 scp -r root1@10.10.12.25:/root/ecos/ /root
    102 scp -r root1@10.10.12.25:/root/ecos/ /root
    103 scp -r root@10.10.12.25:/root/ecos/ /root
    104 scp -r root@10.10.12.25:/root/ecos/ /root
    105 scp -r root@10.10.12.25:/ecos/ /root
    106 ls
    107 cd /
    108 ls
    109 ls -a
    110 cd
    111 ls -a
    112 cd -ssh
    113 cd .ssh
    114 ls
    115 less known_hosts
    116 scp -r root@10.10.12.25:/ecos/ /root
    117 less known_hosts
    118 less known_hosts
    119 vim known_hosts
    120 scp -r root@10.10.12.25:/ecos/ /root
    121 rsync
    122 less
    123 reset
    124 rpm -q telnet
    125 rpm -q telnet-server
    126 cd /etc/xinetd.d
    127 ls
    128 less telnet
    129 more telnet
    130 ls
    131 vim krb5-telnet
    132 ls
    133 vim telnet
    134 vim krb5-telnet
    135 service xinetg restart
    136 service xinetd restart
    137 telnet 10.10.12.10
    138 telnet 10.10.12.10
    139 yum install teamviwer
    140 scp -r root@10.10.12.30:/root/separata_sesion11/ /root
    141 scp -r root@10.10.12.30:/root/separata_sesion11 /root
    142 scp -r root@10.10.12.30:/root/separata_sesion11 /root
    143 scp -r root@10.10.12.30:/root/separata_sesion11_ /root
    144 scp -r root@10.10.12.30:/root/separata_sesion11_Comunicacionremota_SistemaoperativosIII.pdf /root
    145 cd
    146 ls
    147 less separata_sesion11_Comunicacionremota_SistemaoperativosIII.pdf
    148 more separata_sesion11_Comunicacionremota_SistemaoperativosIII.pdf
    149 ls
    150 rpm -ivh teamviewer_linux.rpm
    151 lsusb
    152 fdisk -l
    153 history
    154 history > archivo
    155 ls
    156 vim /ect/samba/smb.conf
    157 rpm -ivh flash-plugin-10.0.45.2-release.i386.rpm
    158 vim /etc/samba/smb.conf
    159 testparm
    160 service smb restart
    161 smbclient //10.10.12.24/prueba1 -U administrator
    162 smbclient //10.10.12.24/prueba1 -U administrator
    163 ls /etc/fstab
    164 cd /etc
    165 ls

    ResponderEliminar
  13. more fstab
    167 vim /etc/samba/smb.conf
    168 vim /etc/samba/smb.conf
    169 testpar
    170 testparm
    171 cd
    172 useradd samba1
    173 useradd samba2
    174 useradd samba3
    175 passwd samba1
    176 passwd samba2
    177 passwd samba3
    178 smbpasswd -a samba1
    179 smbpasswd -a samba1
    180 smbpasswd -a samba2
    181 smbpasswd -a samba3
    182 service restart smb
    183 service smb restar
    184 service smb restar
    185 service smb restart
    186 scp -r root@ 10.10.12.30:/root/ /ficheros
    187 scp -r root@ 10.10.12.30:/ficheros/ /root
    188 scp -r /root/ficheros/ root@ 10.10.12.6: /root
    189 scp -r /root/ficheros/ root@ 10.10.12.06: /root
    190 scp -r /root/ficheros/ root@ 10.10.12.06:/root
    191 scp -r /root/ficheros root@ 10.10.12.6:/root
    192 scp -r /root/ficheros/ root@10.10.12.06:/root
    193 ping 10.10.12.06
    194 ping 10.10.12.6
    195 ls /media/DANIEL\ \(16\)/
    196 cd /media/DANIEL\ \(16\)
    197 ls
    198 cd "6 CICLO"/
    199 ls
    200 cd LINUX/
    201 ls
    202 more archivo
    203 adduser daniel
    204 56351adduser daniel
    205 more archivo
    206 setup
    207 cd
    208 yum install flash
    209 yum install flash player
    210 ifconfig
    211 yum install adobe
    212 yum install adobe flash player
    213 yum install flash
    214 yum install plugins
    215 yum install plugins
    216 ls media
    217 cd media
    218 cd /media
    219 ls
    220 cd
    221 umount /media/DANIEL\ \(16\)/
    222 fdisk
    223 fdisk -ls
    224 umount /dev/sda1
    225 umount /dev/sda
    226 umount /media/DANIEL\ \(16\)/
    227 cd /media/
    228 umount Daniel
    229 reset
    230 cd ..
    231 rpm -pa | grep samba*
    232 rpm -qa | grep samba*
    233 yum installer samba*
    234 yum install samba*
    235 yum install samba
    236 rpm -qa | grep samba*
    237 yum install php-common
    238 rpm -qa php-common
    239 yum install php-mysql mysql
    240 yum install httpd
    241 yum install joomla
    242 WGET www.davancasapia.com
    243 wget www.davancasapia.con
    244 cd /var/www/html
    245 ls
    246 cd web1
    247 ls
    248 cd ..
    249 chmod 771 web1
    250 chown apache.apache web1
    251 service httpd restart
    252 cd
    253 chown apache.apache /var/www/html
    254 cd /var/www/html
    255 ls
    256 rm a*
    257 rm in*
    258 ls
    259 cd web1
    260 ls
    261 rm ind*
    262 vim index1.html
    263 service httpd restart
    264 scp -r root@10.10.12.30:/root/ /root
    265 vim /etc/dhcp.conf
    266 cd /etc/sysconfig/network-scripts/
    267 ls
    268 less ifcfg-eth0
    269 cd /etc/sysconfig/network-scripts/
    270 ls
    271 ifconfig
    272 ifconfig
    273 ifconfig
    274 ifconfig
    275 ifconfig
    276 ifconfig
    277 ifconfig
    278 ifconfig
    279 ifconfig
    280 ifconfig
    281 setup
    282 IFCONFIG
    283 ifconfig
    284 setup
    285 sercice network restart
    286 service network restart
    287 sercice dhcp stop
    288 sercice dhcpd stop
    289 service dhcpd stop
    290 service network restart
    291 service dhcpd stop
    292 service network restart
    293 service network restart
    294 service network restart
    295 service network restart
    296 service network restart
    297 scp -r root@10.10.12.30:/dns1 /root
    298 setup
    299 service network restart
    300 ifconfig
    301 rpm -q
    302 rpm -q bind
    303 rpm -q bind*
    304 rpm -q bind
    305 yum install bind bind-chroot bind
    306 yum install bind bind-chroot bind-libs bind-utils caching-nameserver
    307 yum install bind bind-chroot bind-libs bind-utils caching-nameserver
    308 yum install bind
    309 rpm -q bind
    310 yum install caching-nameserver
    311 exit
    312 exit
    313 yum install caching-nameserver
    314 yum install bind bind-chroot bind-libs bind-utils caching-nameserver
    315 yum install caching-nameserver
    316 yum install bind-chroot
    317 exit}
    318 exit
    319 yum install bind-chroot
    320 exit
    321 exit

    ResponderEliminar
  14. 322 service named restart
    323 service named restart
    324 ifconfig
    325 service named restart
    326 service named restart
    327 yum install bind bind-chroot bind-libs bind-utils caching-nameserver
    328 scp -r root@10.10.12.30:/dns1 /root
    329 scp -r root@10.10.12.30:/dns1 /root
    330 scp -r root@10.10.12.30:/dns1 /root
    331 rpm -qa dhcp
    332 rpm -q dhcp
    333 rpm -q | grep dhcp
    334 rpm -q | greep dhcp
    335 rpm -q | grep dhcp
    336 rpm -q dhcp
    337 yum install dhcp
    338 vim /etc/dhcp.conf
    339 vim /etc/dhcp.conf
    340 vim /etc/dhcpd.conf
    341 cd /usr/share/doc
    342 ls
    343 ls dhcp*
    344 cd dhcp-3.0.5
    345 ls
    346 vim dhcpd.conf.sample
    347 vim dhcpd.conf.sample
    348 cp dhcpd.conf.sample /etc
    349 cd /etc
    350 ls
    351 ls dhc*
    352 mv dhcpd.conf.sample dhcpd.conf
    353 less dhcpd.conf
    354 service dhcpd restart
    355 vim dhcpd.conf.sample
    356 ls /root/dns1/
    357 cp /root/dns1/14.10.10.in-addr-arpa.zone /var/named/chroot/var/named
    358 cp /root/dns1/14.10.10.in-addr-arpa.zone /var/named/chroot/var/named
    359 ls
    360 reset
    361 cp idmapd.conf /var/named/chroot/var/named
    362 cp idatlinux.conf /var/named/chroot/var/named
    363 ls
    364 cd /var/named/chroot/var/named
    365 ls
    366 chmod 644 14.10.10.in-addr-arpa.zone
    367 ls
    368 chmod 644 idatlinux1.com.zone
    369 ls
    370 vin idatlinux1.com.zone
    371 vim idatlinux1.com.zone
    372 vim idatlinux1.com.zone
    373 vim 14.10.10.in-addr-arpa.zone
    374 ls
    375 ls
    376 mv 14.10.10.in-addr-arpa.zone 12.10.10.in-addr-arpa.zone
    377 ls
    378 cd ..
    379 cd ..
    380 ls
    381 cd etc
    382 ls
    383 chmod 644 named.conf
    384 ls
    385 vim named.conf
    386 service named restart
    387 vim named.conf
    388 service named restart
    389 vim named.conf
    390 service named restart
    391 cd /
    392 history >/media/DANIEL\ \(16\)/SERVICOSLINUXHISTORI
    393 setup
    394 reset networwk
    395 service network restart
    396 ifconfig
    397 setup
    398 service network restart
    399 vim /etc/dhcpd.conf
    400 service dhcpd restart
    401 cd usr/share/doc
    402 cd /usr/share/doc
    403 ls

    ResponderEliminar
  15. 404 ls dhcp*
    405 cd dhcp-3.0.5
    406 ls dhcp*
    407 vim dhcpd.conf.sample
    408 service dhcp restart
    409 service dhcp drestart
    410 service dhcpd drestart
    411 service dhcpd restart
    412 cd
    413 vim /usr/shared/doc
    414 cd /usr/shared/doc
    415 cd /usr/share/doc
    416 ls
    417 ls dhcp*
    418 cd dhcp-3.0.5
    419 ls
    420 cp dhcpd.conf.sample /etc
    421 ls
    422 cd /etc
    423 ls
    424 ls dhcp*
    425 mv dhcpd.conf.sample dhcpd.conf
    426 ls
    427 ls dhcp*
    428 vim dhcpd.conf
    429 service dhcpd restart
    430 service network restart
    431 rpm -q dhcp
    432 service dhcp status
    433 service dhcpd status
    434 service dhcpd start
    435 service dhcp start
    436 service dhcpd start
    437 service dhcpd restart
    438 vim /etc/dhcpd.conf
    439 ifconfig
    440 ifconfig
    441 setup
    442 service network restart
    443 ifconfig
    444 rpm -q httpd
    445 vim /etc/httpd/conf/httpd.conf
    446 vim /etc/httpd/conf/httpd.conf
    447 vim /etc/hosts
    448 cd /var/www/html
    449 mkdir idat1
    450 mkdir idat2
    451 mkdir idat3
    452 cd idat1
    453 vim index.html
    454 cd ..
    455 cd idat2
    456 vim index.html
    457 cd ..
    458 cd idat3
    459 vim index.html
    460 service httpd restart
    461 service httpd restart
    462 wget
    463 wget www.practicalinux2.com
    464 scp -r root@10.10.12.30:/dns1 /root
    465 scp -r root@10.10.12.30:/examen1/joo* /var/www/html/idat3
    466 scp -r root@10.10.12.30:/examen1/joomla* /var/www/html/idat3
    467 scp -r root@10.10.12.30:/examen1/joomla /var/www/html/idat3
    468 scp -r root@10.10.12.30:/examen1 /var/www/html/idat3
    469 scp -r root@10.10.12.30:/examen1/Joomla /var/www/html/idat3
    470 scp -r root@10.10.12.30:/examen1/Joomla* /var/www/html/idat3
    471 cd
    472 cd /var/www/html/idat3
    473 ls
    474 tar -xzvf Joomla_1.5.18-Spanish-pack_completo.tar.gz
    475 ls
    476 ls
    477 cleat
    478 clear
    479 ifconfig
    480 ifconfig eth0:170.50.30.20 netmask 255.255.255.0
    481 ifconfig eth0:1 170.50.30.20 netmask 255.255.255.0
    482 ifconfig eth0:2 200.40.80.20 netmask 255.255.255.0
    483 ifconfig
    484 rpm -qa | grep
    485 rpm -qa | grep samba*
    486 cd
    487 vim /etc/samba/smb.conf
    488 vim /etc/samba/smb.conf
    489 service smb restart
    490 service smb restart
    491 useradd admin1
    492 passwd admin1
    493 smbpasswd -a admin1
    494 service iptables stop
    495 vim /etc/samba/smb.conf
    496 mkdir /home/ADMIN1
    497 rpm -q dhcp
    498 vim /usr/share/doc
    499 cd /usr/share/doc
    500 ls dhcp*
    501 cd dhcp-3.0.5
    502 ls
    503 vim dhcpd.conf.sample
    504 cd dhcp-3.0.5
    505 ls
    506 cp dhcpd.conf.sample /etc
    507 cd /etc
    508 ls
    509 ls dhcp*
    510 mv dhcpd.conf.sample dhcpd.conf
    511 ls dhcpd.conf
    512 vim dhcpd.conf
    513 cd
    514 service dhcpd restart
    515 service network restart
    516 service network restart
    517 history | less
    518 vim /etc/samba/smb.conf
    519 history > practica

    ResponderEliminar
  16. pra configurar los servicion en GNU-LINUX-CENTOS
    __________________________________________________
    servicio apache

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

    1. #rpm -q httpd 

    2. #yum install httpd

    3. #service httpd status

    4. #vim /etc/httpd/conf/httpd.conf

    5. #vim /etc/hosts

    6. #cd /var/www/html --> #vim index.html

    7. #service httpd restart



    servicio samba

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

    1. #yum ­-y install samba samba-­client 

    samba-­common

    2. #vim /etc/samba/smb.conf

    workgroup = LAB_02

    server string = DANIEL-DAVAN

    netbios name = a211

    3. #testparm

    4. #service smb restart

    5. #smbclient //10.10.12.24/prueba1 -U administrator

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

    6. #vim /etc/samba/smb.conf

    comment = Home Directories

    browseable = no

    writable = yes

    path = /home/samba1

    public = yes

    create mode =0771

    7. #useradd userwin1

    8. #passwd userwin1

    9. #smbpasswd -a userwin1

    10.#service iptables stop

    10.#service smb restart





    SERVICIO DHCP

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

    1. # yum -y install dhcp

    2. #vim /usr/share/doc/dhcp-/dhcpd.conf.sample

    3. #cp dhcpd.conf.sample /etc/dhcpd.conf

    4. #mv dhcpd.conf.sample dhcpd.conf

    5. #service dhcpd start



    creacion de tarjetas

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

    ifconfig eth0:1 192.168.1.100 netmask 255.255.255.0

    ifconfigu eth0 down



    scp -r root@ip_linux:/root/xxx /root

    tar -zxvf nombrearchivo.tar.gz

    chown usu.usu /home/usu3

    chmod 771 /home/usu

    ResponderEliminar
  17. yum install sendmail sendmail.cf dovecot cyrus-sasl cyrus-saslplain cyrus-sasl-md5 make m4

    1)--> vim /etc/mail/access
    _______________________________________________
    Connect:localhost.localdomain RELAY
    Connect:localhost RELAY
    Connect:127.0.0.1 RELAY
    Connect:10.10.12.41 RELKY
    _______________________________________________


    2)--> vim /etc/mail/local-host-names
    _______________________________________________
    idat.com
    correo.idat.com
    _______________________________________________


    3)--> vim /etc/mail/sendmail.mc

    ______________________________________
    linea 116
    DAEMON_OPTIONS(`Port=smtp,Addr=10.10.12.41, Name=MTA')dnl

    linea 149
    dnl FEATURE(`accept_unresolvable_domains')dnl

    linea 164
    FEATURE(masquerade_envelope)dnl

    linea 168
    FEATURE(masquerade_entire_domain)dnl

    linea 39
    dnl(`confAUTH_OPTIONS', `A')dnl
    linae 44
    define(`confAUTH_OPTIONS', `A p')dnl

    linea 52
    TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
    define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
    ______________________________________


    4) -->vim /etc/dovecot.conf
    ______________________________________
    protocols = imap pop3
    ______________________________________

    5)--> usuarios
    ______________________________________
    useradd -s /sbin/login idat1
    useradd -s /sbin/login idat2
    passwd idat1
    passwd idat2
    saslpasswd2 idat1 (pass smb metodo plain)
    saslpasswd2 idat2
    ________________________________________

    6)--> ressetear
    __________________________________________
    service sendmail restart
    service dovecot restart
    service saslauthd restart
    __________________________________________

    7) --> isntalacion de
    ___________________________________________
    yum install squirrelmail httpd
    __________________________________________

    8) --> cd /usr/share/squirrelmail/config/

    8.1) --> ./conf.pl

    ResponderEliminar
  18. yum install sendmail sendmail.cf dovecot cyrus-sasl cyrus-saslplain cyrus-sasl-md5 make m4

    1)--> vim /etc/mail/access
    _______________________________________________
    Connect:localhost.localdomain RELAY
    Connect:localhost RELAY
    Connect:127.0.0.1 RELAY
    Connect:10.10.12.41 RELKY
    _______________________________________________


    2)--> vim /etc/mail/local-host-names
    _______________________________________________
    idat.com
    correo.idat.com
    _______________________________________________


    3)--> vim /etc/mail/sendmail.mc

    ______________________________________
    linea 116
    DAEMON_OPTIONS(`Port=smtp,Addr=10.10.12.41, Name=MTA')dnl

    linea 149
    dnl FEATURE(`accept_unresolvable_domains')dnl

    linea 164
    FEATURE(masquerade_envelope)dnl

    linea 168
    FEATURE(masquerade_entire_domain)dnl

    linea 39
    dnl(`confAUTH_OPTIONS', `A')dnl
    linae 44
    define(`confAUTH_OPTIONS', `A p')dnl

    linea 52
    TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
    define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
    ______________________________________


    4) -->vim /etc/dovecot.conf
    ______________________________________
    protocols = imap pop3
    ______________________________________

    5)--> usuarios
    ______________________________________
    useradd -s /sbin/login idat1
    useradd -s /sbin/login idat2
    passwd idat1
    passwd idat2
    saslpasswd2 idat1 (pass smb metodo plain)
    saslpasswd2 idat2
    ________________________________________

    6)--> ressetear
    __________________________________________
    service sendmail restart
    service dovecot restart
    service saslauthd restart
    __________________________________________

    7) --> isntalacion de
    ___________________________________________
    yum install squirrelmail httpd
    __________________________________________

    8) --> cd /usr/share/squirrelmail/config/

    8.1) --> ./conf.pl

    ResponderEliminar
  19. # yum install sendmail sendmail.cf dovecot cyrus-sasl cyrus-saslplain cyrus-sasl-md5 make m4
    # vim /etc/mail/access
    # vim /etc/mail/local-host-names
    # cd /etc/mail
    # vim relay-domains
    # vim /etc/mail/sendmail.mc
    # vim /etc/mail/access
    # vim /etc/mail/local-host-names
    # cd /etc/mail
    # vim relay-domains
    # vim /etc/mail/sendmail.mc
    # vim /etc/dovecot.conf
    # yum install squirrelmail httpd
    # cd /usr/share/squirrelmail/config/
    # ./conf.pl

    # rpm -q httpd
    # yum install httpd
    # service httpd status
    # vim /etc/httpd/conf/httpd.conf
    # vim /etc/hosts
    # cd /var/www/html --> #vim index.html
    # service httpd restart

    # seradd -s /sbin/login idat1
    # passwd idat1
    # saslpasswd2 idat1

    ResponderEliminar

HOLA AMIGOS, LES DEJAMOS ESTA INFORMACIÓN CON EL ÚNICO PROPÓSITO DE QUE LE UTILICEN PARA APRENDER, NO LO USEN PARA FINES DE NEGOCIO:


*=============================================*

SI LA INFORMACIÓN LES A GUSTADO NO SE OLVIDEN DE AGRADECER

*=============================================*

ATE:

_____________
Davan Palma Eli