Установка RDS
Материал из EniseyName.
Версия 16:13, 21 декабря 2012 (править) Admin (Обсуждение | вклад) ← К предыдущему изменению |
Версия 16:15, 21 декабря 2012 (править) (отменить) Admin (Обсуждение | вклад) (→Подключение рабочих станций Windows XP) К следующему изменению → |
||
Строка 152: | Строка 152: | ||
[global] | [global] | ||
+ | |||
workgroup = srds | workgroup = srds | ||
+ | |||
netbios name = srrds | netbios name = srrds | ||
+ | |||
server string = Server - SAMBA %v | server string = Server - SAMBA %v | ||
+ | |||
null passwords = yes | null passwords = yes | ||
+ | |||
name resolve order = bcast host | name resolve order = bcast host | ||
+ | |||
domain logons = yes | domain logons = yes | ||
+ | |||
domain master = yes | domain master = yes | ||
+ | |||
time server = yes | time server = yes | ||
+ | |||
wins support = yes | wins support = yes | ||
printing = cups | printing = cups | ||
+ | |||
printcap name = cups | printcap name = cups | ||
# profiles # | # profiles # | ||
- | logon path = \\%N\profiles\%U | + | |
+ | '''logon path = \\%N\profiles\%U''' | ||
+ | |||
#logon path = "" | #logon path = "" | ||
+ | |||
logon script = logon.bat | logon script = logon.bat | ||
map acl inherit = yes | map acl inherit = yes | ||
+ | |||
+ | |||
inherit acls = yes | inherit acls = yes | ||
+ | |||
inherit permissions = yes | inherit permissions = yes | ||
+ | |||
nt acl support = yes | nt acl support = yes | ||
+ | |||
force unknown acl user = yes | force unknown acl user = yes | ||
passdb backend = ldapsam:ldap://127.0.0.1/ | passdb backend = ldapsam:ldap://127.0.0.1/ | ||
+ | |||
ldap admin dn = uid=LDAP Admin,ou=System Accounts,dc=ist,dc=kgau,dc=ru | ldap admin dn = uid=LDAP Admin,ou=System Accounts,dc=ist,dc=kgau,dc=ru | ||
+ | |||
ldap suffix = dc=ist,dc=kgau,dc=ru | ldap suffix = dc=ist,dc=kgau,dc=ru | ||
+ | |||
ldap group suffix = ou=Group | ldap group suffix = ou=Group | ||
+ | |||
ldap user suffix = ou=People | ldap user suffix = ou=People | ||
+ | |||
ldap machine suffix = ou=Hosts | ldap machine suffix = ou=Hosts | ||
+ | |||
ldap idmap suffix = ou=Idmap | ldap idmap suffix = ou=Idmap | ||
+ | |||
ldap passwd sync = no | ldap passwd sync = no | ||
idmap backend = ldap:ldap://127.0.0.1/ | idmap backend = ldap:ldap://127.0.0.1/ | ||
+ | |||
idmap uid = 20000-30000 | idmap uid = 20000-30000 | ||
+ | |||
idmap gid = 20000-30000 | idmap gid = 20000-30000 | ||
enable privileges = yes | enable privileges = yes | ||
+ | |||
add machine script = /usr/lib/mmc/add_machine_script '%u' | add machine script = /usr/lib/mmc/add_machine_script '%u' | ||
+ | |||
add share command = /usr/lib/mmc/add_change_share_script | add share command = /usr/lib/mmc/add_change_share_script | ||
+ | |||
delete share command = /usr/lib/mmc/delete_share_script | delete share command = /usr/lib/mmc/delete_share_script | ||
+ | |||
add printer command = /usr/lib/mmc/add_printer_script | add printer command = /usr/lib/mmc/add_printer_script | ||
+ | |||
deleteprinter command = /usr/lib/mmc/delete_printer_script | deleteprinter command = /usr/lib/mmc/delete_printer_script | ||
+ | |||
os level = 255 | os level = 255 | ||
[homes] | [homes] | ||
+ | |||
comment = Home directories | comment = Home directories | ||
browseable = no | browseable = no | ||
Строка 206: | Строка 240: | ||
[public] | [public] | ||
+ | |||
comment = Public share | comment = Public share | ||
path = /home/samba/shares/public | path = /home/samba/shares/public | ||
Строка 213: | Строка 248: | ||
[archives] | [archives] | ||
+ | |||
comment = Backup share | comment = Backup share | ||
path = /home/archives | path = /home/archives | ||
Строка 220: | Строка 256: | ||
[printers] | [printers] | ||
+ | |||
comment = All printers | comment = All printers | ||
path = /var/spool/samba | path = /var/spool/samba | ||
Строка 229: | Строка 266: | ||
[print$] | [print$] | ||
+ | |||
comment = Printer Driver Download Area | comment = Printer Driver Download Area | ||
path = /var/lib/samba/printers | path = /var/lib/samba/printers | ||
Строка 240: | Строка 278: | ||
[netlogon] | [netlogon] | ||
+ | |||
comment = Network Logon Service | comment = Network Logon Service | ||
path = /home/samba/netlogon | path = /home/samba/netlogon | ||
Строка 246: | Строка 285: | ||
# profiles # | # profiles # | ||
+ | |||
[profiles] | [profiles] | ||
+ | |||
path = /home/samba/profiles | path = /home/samba/profiles | ||
+ | |||
writeable = yes | writeable = yes | ||
+ | |||
create mask = 0700 | create mask = 0700 | ||
+ | |||
directory mask = 0700 | directory mask = 0700 | ||
+ | |||
browseable = no | browseable = no | ||
Версия 16:15, 21 декабря 2012
Содержание |
Установка ROSA Enterprise Linux Server "Helium" 2012
1. Скачать ROSA Enterprise Linux Server "Helium" 2012 можно с сайта компании «РОСА»:
http://mirror.rosalab.ru/rosa-server2012/iso/ROSA-Server-2012-i386-DVD.iso
2.Как и в RHEL6, с флешки грузится только образ для сетевой установки (netinst).
http://mirror.rosalab.ru/rosa-server2012/iso/ROSA-Server-2012-i386-netinst.iso
3. Для запись образа на Flash используем комнаду dd
dd if=ROSA-Server-2012-i386-netinst.iso of=/dev/sdb bs=1MB
4. Записанный DVD скопировал на внешний жеский диск на 192.168.100.252
5. Устанавливаем систему c flash (netinst)
Настройка ROSA Enterprise Linux Server "Helium" 2012
6. Не получается с помощью NetworkManager настроить сетевую карту. Поэтому редактируем файл /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.100.250
TYPE=Ethernet
PREFIX=24
GATEWAY=192.168.100.200
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
HWADDR=00:80:48:39:0C:09
DNS1=192.168.101.226
LAST_CONNECT=1355639825
Настройка сети в Red Hat Enterprise Linux 4.0
7. Редактируем файл /etc/yum.conf для доступа к репозиториям через прокси-сервер
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
proxy=http://192.168.100.200:3128/
proxy_username=55
proxy_password=wfhbwfFyfcnfcbz
8. Настраиваем hostname /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.100.250 ist.kgau.ru
9. Редактируем файл /boot/grub/grub.conf для загрузки нескольких операционных систем
10. Обновляем систему
ROSA Server Setup
11. Запускаем установку ROSA Server Setup
12. настройка DHCP в файле dhcpd.conf
ddns-update-style ad-hoc;
ldap-server "localhost";
ldap-port 389;
ldap-username "uid=LDAP Admin,ou=System Accounts,dc=ist,dc=kgau,dc=ru";
ldap-password "ltymvjhjpf";
ldap-base-dn "dc=ist,dc=kgau,dc=ru";
ldap-dhcp-server-cn "ist.kgau.ru";
ldap-method dynamic;
ldap-debug-file "/var/log/dhcp-ldap-startup.log";
subnet 192.168.100.0 netmask 255.255.255.0 { # default gateway option routers 192.168.100.200; option subnet-mask 255.255.255.0;
option domain-name "srds";
# Seting up an ip address is better here option domain-name-servers ns.domain.org; option nis-domain "domain.org";
range 192.168.100.1 192.168.100.40; default-lease-time 21600; max-lease-time 43200;
option netbios-name-servers 192.168.100.250; option netbios-dd-server 192.168.100.250; option netbios-node-type 8;
# we want the nameserver to appear at a fixed address #host ns { # next-server fixed.mandrakesoft.com; # hardware ethernet 12:34:56:78:AB:CD; # fixed-address 192.168.0.10; #} }
Подключение рабочих станций Windows XP
13. Редактируем файл /etc/samba/smb.conf
[global]
workgroup = srds
netbios name = srrds
server string = Server - SAMBA %v
null passwords = yes
name resolve order = bcast host
domain logons = yes
domain master = yes
time server = yes
wins support = yes
printing = cups
printcap name = cups
- profiles #
logon path = \\%N\profiles\%U
- logon path = ""
logon script = logon.bat
map acl inherit = yes
inherit acls = yes
inherit permissions = yes
nt acl support = yes
force unknown acl user = yes
passdb backend = ldapsam:ldap://127.0.0.1/
ldap admin dn = uid=LDAP Admin,ou=System Accounts,dc=ist,dc=kgau,dc=ru
ldap suffix = dc=ist,dc=kgau,dc=ru
ldap group suffix = ou=Group
ldap user suffix = ou=People
ldap machine suffix = ou=Hosts
ldap idmap suffix = ou=Idmap
ldap passwd sync = no
idmap backend = ldap:ldap://127.0.0.1/
idmap uid = 20000-30000
idmap gid = 20000-30000
enable privileges = yes
add machine script = /usr/lib/mmc/add_machine_script '%u'
add share command = /usr/lib/mmc/add_change_share_script
delete share command = /usr/lib/mmc/delete_share_script
add printer command = /usr/lib/mmc/add_printer_script
deleteprinter command = /usr/lib/mmc/delete_printer_script
os level = 255
[homes]
comment = Home directories browseable = no writeable = yes create mask = 0700 directory mask = 0700
[public]
comment = Public share path = /home/samba/shares/public browseable = yes public = yes writeable = yes
[archives]
comment = Backup share path = /home/archives browseable = yes public = no writeable = no
[printers]
comment = All printers path = /var/spool/samba public = yes guest ok = yes browseable = no writeable = no printable = yes
[print$]
comment = Printer Driver Download Area path = /var/lib/samba/printers browseable = no guest ok = yes read only = yes write list = +"Print Operators" force group = "Print Operators" create mask = 0775 directory mask = 0775
[netlogon]
comment = Network Logon Service path = /home/samba/netlogon guest ok = yes browseable = no
- profiles #
[profiles]
path = /home/samba/profiles
writeable = yes
create mask = 0700
directory mask = 0700
browseable = no
13. Редактируем файд /etc/lmhosts
127.0.0.1 localhost
127.0.0.1 srrds
192.168.100.250 srrds