From 9305d0fab5e486ec806867c7ff88e2a90168e73e Mon Sep 17 00:00:00 2001 From: "jm9632@student.uni-lj.si" Date: Tue, 15 Sep 2015 16:20:07 +0000 Subject: izbris HOWTO-en.txt in HOWTO-slo-txt, navodila v index.html, manjka smb git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@328 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-en.txt | 35 ----- kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-slo.txt | 33 ----- kpov_judge/tasks/smb_nfs/howtos/si/index.html | 175 +++++++++++++++++------ 3 files changed, 133 insertions(+), 110 deletions(-) delete mode 100644 kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-en.txt delete mode 100644 kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-slo.txt (limited to 'kpov_judge') diff --git a/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-en.txt b/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-en.txt deleted file mode 100644 index 4803d13..0000000 --- a/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-en.txt +++ /dev/null @@ -1,35 +0,0 @@ -VirtualBox - Network Adapter Settings -SimpleArbiterDhcp ..... adapter (1) - internal network -FileServer ............ adapter 1 - NAT - ............ adapter 2 - internal network - -FileServer -1. Set up a DHCP server - 1.1 apt-get update - 1.2 apt-get install isc-dhcp-server - 1.3 There is an error. No worries: - - in file/etc/default/isc-dhcp-server set on which interface your DHCP server shoud run - - in file /etc/dhcp/dhcpd.conf set your subnet (address, mask, rang etc.) - - set static ip for SimpleArbiterDhcp's MAC - -2. Set up a NFS server - 2.1 apt-get install nfs-kernel-server - 2.2 Define export rules in file /etc/exports - () - E.g.: /srv/nfs/ERLbbBrT 192.168.0.0/24(ro,sync) - For IP from step 1.3 define a rule with rw permission - -SimpleArbiterDhcp -3.) Run mount command as root: mount -t nfs : <"dest"> - -In directoriy <"dest"> that you specified earlier you should be able to access shared files. - -Samba - FileServer -4. Set up a SMB server - 4.1 apt-get install samba - 4.2 Somewhere on the server create dir urania-03. - 4.3 In file /etc/samba/smb.conf under [global] mark define netbios name value as zarptica-32 - under [home] mark set path to dir urania-03 path = - - - diff --git a/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-slo.txt b/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-slo.txt deleted file mode 100644 index 5ab1367..0000000 --- a/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-slo.txt +++ /dev/null @@ -1,33 +0,0 @@ -VirtualBox - Nastavitve Mrežnih Vmesnikov -SimpleArbiterDhcp ..... adapter (1) - internal network -FileServer ............ adapter 1 - NAT - ............ adapter 2 - internal network - -FileServer - -1. Postavi DHCP strežnik - 1.1 apt-get update - 1.2 apt-get install isc-dhcp-server - 1.3 Pojavi se napaka. Brez skrbi: - - v /etc/default/isc-dhcp-server je potrebno določiti, - na katerem vmesniku bo tekel DHCP strežnik, - - v /etc/dhcp/dhcpd.conf določi lastnosti podomrežja (naslov, maska, rang ipd.) - - določi fiksen ip za MAC SimpleArbiterDhcp navideznega računalnika - -2. Postavi NFS strežnik - 2.1 apt-get install nfs-kernel-server - 2.2 Določi pravila exporta v /etc/exports - ( (). - Primer: /srv/nfs/ERLbbBrT 192.168.0.0/24(ro,sync) - Za ip, določen koraku 1.3, zapiši pravilo s pravicami rw. - -SimpleArbiterDhcp -3. Kot root poženi ukaz mount: mount -t nfs : <"destinacija"> - -V imeniku <"destinacij">, ki si ga določi, se sedaj nahajajo deljene datoteke. - -Samba na FileServer -4. apt-get install samba - 4.1 Nekje na strežniku ustvari direktorij urania-03. - 4.2 V /etc/samba/smb.conf pod [global] določi netbios name vrednost zarptica-32 - pod [home] nato popravi pot do svoje mape urania-03 path = diff --git a/kpov_judge/tasks/smb_nfs/howtos/si/index.html b/kpov_judge/tasks/smb_nfs/howtos/si/index.html index 8cf9b8e..44c5e97 100644 --- a/kpov_judge/tasks/smb_nfs/howtos/si/index.html +++ b/kpov_judge/tasks/smb_nfs/howtos/si/index.html @@ -1,48 +1,139 @@ + - -snm + +smb_nfs + -

smb_nfs

-

-

-

Hitra navodila

-

-Postavi dva navidezna racunalnika (simpleArbiterDhcp and FileServer). - -Na SimpleArbiterDhcp poišči imenik Mapa in preberi pot NFS_POT ter ime imenika v skupni rabi SAMBA_SHARE. - -Skopiraj datoteke iz imenika Mapa, na FileServer. - -Poskrbi, da bo imenik z datotekami dostopen prek NFS v imeniku NFS_POT in prek SMB na imeniku v skupni rabi SAMBA_SHARE. - -

-

-Poskrbi, da bo SNMP streznik prek NET-SNMP-EXTEND-MIB::nsExtendOutput2Table -sporočal, koliko časa je vklopljen v sekundah. -

-

- -

-

Navodila

-
    -
  1. Prenesi sledeče slike virtualk (*.vid) iz -datoteke -z virtualnimi slikami računalnikov: -
      -
    1. -simpleArbeiterDhcp.vdi -
    2. -
    3. -base-student-console-2014.vdi for fileserver -
    4. -
    -
  2. - -
- - - +

smb_nfs

+ +

Hitra navodila

+

+ Postavi dva navidezna računalnika - simpleArbiterDhcp in FileServer. +

+

+ Poskrbi, da bo imenik /srv/nfs/ERLbbBrT na FileServer dostopen prek NFS in + prek SMB kot imenik v skupni rabi urania-03. + Ime SMB strežnika nastavite na zarptica-32. +

+

+ SimpleArbiterDhcp naj ima prek NFS pravico pisati po imeniku. +

+ +

Navodila

+ +
    +
  • Prenesi sledeče slike virtualk: + +
  • + +
  • Nastavitve v VirtualBox: +
      +
    • za obe VM potrebno omogočiti PAE/NX: Settings⇒System⇒Processor
    • +
    • za FileServer +
        +
      • vmesnik 1 - NAT
      • +
      • vmesnik 2 - Internal network
      • +
      +
    • +
    • za SimpleArbiterDhcp +
        +
      • vmesnik 1 - Internal network
      • +
      +
    • +
    +
  • + +
    + +
  • Strežnik FileServer +
      +
    1. Postavi DHCP strežnik +
        +
      1. apt-get update
      2. +
      3. apt-get install isc-dhcp-server
      4. +
      5. Strežnik se ne bo zagnal (javi Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!), potrebno je popraviti 3 datoteke: +
          +
        • v /etc/network/interfaces določi statičen IP vmesnika eth1, na tem bo tekel DHCP strežnik, + npr.: +

          + auto eth1
          + iface eth1 inet static
          + address 192.168.1.10
          + netmask 255.255.255.0
          + network 192.168.1.0
          + broadcast 192.168.1.255
          +

          +
        • + +
        • v /etc/default/isc-dhcp-server: +

          + INTERFACES="eth1" +

          +
        • + +
        • v /etc/dhcp/dhcpd.conf določi lastnosti podomrežja, + npr.: +

          + authoritative;
          + default-lease-time 600;
          + max-lease-time 7200;
          +
          + subnet 192.168.1.0 netmask 255.255.255.0 {
          + range 192.168.1.100 192.168.1.200;
          + option routers 192.168.1.10; #IP vmesnika, kjer bo tekel DHCP strežnik
          + option domain-name-servers 193.2.1.66, 8.8.4.4;
          +
          + host SimpleArbiter { #določitev fiksnega IP-ja za SimpleArbiter
          + hardware ethernet 08:00:27:A2:FB:B4;
          + fixed-address 192.168.1.180;
          + }
          + }
          +

          +
        • + +
        +
      6. + +
      +
    2. + +
    3. Postavi NFS strežnik +
        +
      1. apt-get install nfs-kernel-server
      2. +
      3. Določi pravila v /etc/exports,npt.: +

        + /srv/nfs/ERLbbBrT 192.168.1.0/24(ro,sync,no_subtree_check)
        + #pravice za SimpleArbiterDhcp
        + /srv/nfs/ERLbbBrT 192.168.1.180/24(rw,sync,no_subtree_check)
        +

        +
      4. +
      +
    4. + +
    +
  • + +
  • Odjemalec SimpleArbiterDhcp +
      +
    • kot root: poženi ukaz mount -t nfs ip_nfs_strežnika:deljena_mapa destinacija, npr.: +

      + mount -t -nfs 192.168.1.10:/srv/nfs/ERLbbBrT shared +

      +
    • +
    +
  • + +
+ -- cgit v1.2.1