Tuesday, December 21, 2010

RedHat SATELLITE SERVER Installation and configuration


Satellite server IP:10.0.0.11
Hostname:(rajat.yeswedeal.com)
OS:RHEL5.3
Satellte client IP:10.0.0.100
Hostname:(client.yeswedeal.com)
OS:RHEL5.3
Minimum Requirements for server:
Intel core processor,2.4GHz,512k cache
Recommended- intel Multi core processor,2.4GHz dual processor,512k cache
Required-2GB RAM
Recommended-8GB RAM
5 GB-Base Install RHEL 5
30 GB storage for software channel including base and child channels /var/satellite
12 GB for database repository /rhnsat
Raid 5
IMPORTENT:
selinux-permissive
firewall-disabled
Valid Subscriptions:a3c5b675a24e93b6
:22b0edc1233bcaed
Download software redhat-rhn-satellite-5.3-server-x86_64-5-embedded-
oracle.iso
RHN Entitlement Certificate
Server:
Log into the machine as root.
Insert the RHN Satellite Server CD containing the installation files or download
the ISO image from the RHN website.
[root@satellite ~]#rhn_register
[root@satellite ~]#yum update
(OR)
Create Repository:
#vi /etc/yum.repos.d/rhel-debuginfo.repo
[Server]
name=Server
baseurl=file:///var/ftp/pub/Server
enabled=1
gpgcheck=0
[EmbeddedDB]
name=EmbeddedDB
baseurl=file:///var/ftp/pub/EmbeddedDB
enabled=1
gpgcheck=0
[Satellite]
name=Satellite
baseurl=file:///var/ftp/pub/Satellite
enabled=1
gpgcheck=0
[root@satellite ~]# mount /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@satellite ~]# cd /mnt
You have mail in /var/spool/mail/root
[root@satellite mnt]# ls
EmbeddedDB install install.pl README Satellite TRANS.TBL updates
[root@satellite mnt]# ./install.pl
* Starting the Red Hat Network Satellite installer.
* Performing pre-install checks.
* Pre-install checks complete. Beginning installation.
* RHN Registration.
** Registration: System is already registered with RHN. Not re-registering.
* Checking for uninstalled prerequisites.
** Checking if yum is available ...
There are some packages from Red Hat Enterprise Linux that are not part
of the @base group that Satellite will require to be installed on this
system. The installer will try resolve the dependencies automatically.
However, you may want to install these prerequisites manually.
Do you want the installer to resolve dependencies [y/N]? y
* Applying updates.
* Installing RHN packages.
* Now running setup.
* Setting up Oracle environment.
* Setting up database.
** Database: Installing the database:
** Database: This is a long process that is logged in:
** Database: /var/log/rhn/install_db.log
*** Progress: ##############################################################
** Database: Installation complete.
** Database: Setting up database connection.
** Database: Testing database connection.
** Database: Populating database.
*** Progress: ############################################################
* Setting up users and groups.
** GPG: Initializing GPG and importing key.
** GPG: Creating /root/.gnupg directory
You must enter an email address.
Admin Email Address? rajat@yeswedeal.com
* Performing initial configuration.
* Activating RHN Satellite.
Where is your satellite certificate file? /root/yeswedeal.cert
** Loading RHN Satellite Certificate.
** Verifying certificate locally.
** Activating RHN Satellite.
* Enabling Monitoring.
* Configuring apache SSL virtual host.
Should setup configure apache's default ssl server for you (saves original
ssl.conf) y/n? y
** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave
* Creating SSL certificates.
CA certificate password?
Re-enter CA certificate password?
Organization? yeswedeal
Organization Unit [satellite.server.com]?
Email Address [rajat@yeswedeal.com]?
City? hyderabad
State? ap
Country code (Examples: "US", "JP", "IN", or type "?" to see a list)? IN
** SSL: Generating CA certificate.
** SSL: Deploying CA certificate.
** SSL: Generating server certificate.
** SSL: Storing SSL certificates.
* Deploying configuration files.
* Update configuration in database.
* Setting up Cobbler..
Cobbler requires tftp and xinetd services be turned on for PXE provisioning
functionality. Enable these services (y/n, default = 'y')?
* Restarting services.
Installation complete.
Visit https://satellite.server.com to create the RHN Satellite administrator
account.
You have new mail in /var/spool/mail/root
[root@satellite mnt]# https://satellite.server.com
[root@satellite ~]# /usr/sbin/rhn-satellite restart
(if need)
For Redhat Channel Importing:
[root@satellite ~]# satellite-sync –list-channels
11:32:55 Red Hat Network Satellite - live synchronization
11:32:55 url: https://satellite.rhn.redhat.com
11:32:55 debug/output level: 1
11:32:58 db: rhnsat/@rhnsat
11:32:58
11:32:58 Retrieving / parsing channel-families data
11:33:04 channel-families data complete
11:33:08
11:33:08 Retrieving / parsing channel data
11:34:31 p = previously imported/synced channel
11:34:31 . = channel not yet imported/synced
11:34:31 base-channels:
11:34:31 . redhat-linux-alpha-6.2 1184
11:34:31 . redhat-linux-alpha-7.0 1412
11:34:31 . redhat-linux-alpha-7.1 1487
11:34:31 . redhat-linux-ee-i386-6.2 13
11:34:31 . redhat-linux-i386-6.2 1357
11:34:31 . redhat-linux-i386-7.0 1615
11:34:31 . redhat-linux-i386-7.1 2046
11:34:31 . redhat-linux-i386-7.2 2338
11:34:31 . redhat-linux-i386-7.3 2481
11:34:31 . redhat-linux-i386-8.0 2316
11:34:31 . redhat-linux-i386-9 1864
11:34:31 . redhat-linux-iSeries-7.1 1135
11:34:31 . redhat-linux-ia64-7.1 1392
11:34:31 . redhat-linux-ia64-7.2 1886
11:34:31 . redhat-linux-pSeries-7.1 1135
11:34:31 . redhat-linux-s390-7.2 1447
11:34:31 . redhat-linux-s390x-7.1 977
11:34:31 . redhat-linux-severn-i386-9.0.93 1455
11:34:31 . redhat-linux-sparc-6.2 1201
11:34:31 . rh-i386-desktop-4 7062
11:34:31 . rh-x86_64-desktop-4 8092
11:34:31 . rhel-i386-as-3 5447
11:34:31 . rhel-i386-as-4 7112
11:34:31 . rhel-i386-client-5 5276
11:34:31 . rhel-i386-desktop-3 4790
11:34:31 . rhel-i386-es-3 5466
11:34:31 . rhel-i386-es-4 7112
11:34:31 . rhel-i386-server-5 6330
11:34:31 . rhel-i386-ws-3 5391
11:34:31 . rhel-i386-ws-4 7062
11:34:31 . rhel-ia64-as-3 5715
11:34:32 . rhel-ia64-as-4 7330
11:34:32 . rhel-ia64-es-3 5251
11:34:32 . rhel-ia64-es-4 7329
11:34:32 . rhel-ia64-server-5 6482
11:34:32 . rhel-ia64-ws-3 5663
11:34:32 . rhel-ia64-ws-4 7285
11:34:32 . rhel-ppc-as-3 5792
11:34:32 . rhel-ppc-as-4 8000
11:34:32 . rhel-ppc-server-5 8222
11:34:32 . rhel-x86_64-as-3 6024
11:34:32 . rhel-x86_64-as-4 8142
11:34:32 . rhel-x86_64-client-5 6188
11:34:32 . rhel-x86_64-desktop-3 5389
11:34:32 . rhel-x86_64-es-3 5529
11:34:32 . rhel-x86_64-es-4 8142
11:34:32 . rhel-x86_64-server-5 8313
11:34:32 . rhel-x86_64-ws-3 5967
11:34:33 . rhel-x86_64-ws-4 8092
11:34:33 . rhemrg-nonlinux-grid-1 0
11:34:33 . rhemrg-nonlinux-messaging-1 0
11:34:33 . severn-beta2-i386 1466
11:34:33 . solaris-sparc-9 0
11:34:33 redhat-linux-alpha-6.2:
11:34:33 . redhat-powertools-alpha-6.2 532
11:34:33 redhat-linux-alpha-7.0:
11:34:33 . redhat-powertools-alpha-7.0 461
11:34:33 redhat-linux-alpha-7.1:
11:34:33 . redhat-powertools-alpha-7.1 459
11:34:33 redhat-linux-i386-6.2:
11:34:33 . redhat-powertools-i386-6.2 584
11:34:33 redhat-linux-i386-7.0:
11:34:33 . redhat-powertools-i386-7.0 520
11:34:33 redhat-linux-i386-7.1:
11:34:33 . redhat-powertools-i386-7.1 541
11:34:33 redhat-linux-i386-7.2:
11:34:33 . k12ltsp-i386-7.2 63
11:34:33 redhat-linux-i386-7.3:
11:34:33 . education-general-i386-7.3 7
11:34:33 . redhat-gcc3.1-i386-7.3 12
11:34:33 . education-k12ltsp-i386-7.3 82
11:34:33 redhat-linux-i386-8.0:
11:34:33 . education-k12ltsp-i386-8.0 122
11:34:33 redhat-linux-i386-9:
11:34:33 . rhn-tools-redhat-linux-i386-9 1536
11:34:33 . education-k12ltsp-i386-9 123
11:34:33 redhat-linux-severn-i386-9.0.93:
11:34:33 . redhat-linux-severn-i386-9.0.93-updates 2388
11:34:33 redhat-linux-sparc-6.2:
11:34:33 . redhat-powertools-sparc-6.2 480
11:34:33 rh-i386-desktop-4:
11:34:33 . rh-i386-desktop-4-fastrack 273
11:34:33 . rhn-tools-rhel-4-desktop-i386 1318
11:34:33 . rh-i386-desktop-4-extras 481
11:34:33 . rh-i386-desktop-4-sdk 1
11:34:33 rh-x86_64-desktop-4:
11:34:33 . rh-x86_64-desktop-4-extras 371
11:34:33 . rhn-tools-rhel-4-desktop-x86_64 1318
11:34:33 . rh-x86_64-desktop-4-fastrack 307
11:34:33 . rh-x86_64-desktop-4-sdk 1
11:34:33 rhel-i386-as-3:
11:34:33 . rhel-i386-as-3-fastrack 56
11:34:33 . rhel-i386-as-3-hwcert 9
11:34:33 . redhat-rhn-proxy-4.0-as-i386-3 118
11:34:33 . redhat-rhn-proxy-4.2-as-i386-3 135
11:34:33 . rhel-3-as-i386-rhds-2 27
11:34:33 . rhel-i386-as-3-cluster 34
11:34:33 . rhn-tools-rhel-3-as-i386 1571
11:34:33 . rhel-i386-as-3-rhcmsys-7.1 1
11:34:33 . redhat-rhn-proxy-4.1-as-i386-3 95
11:34:33 . rhel-i386-as-3-gfs-6 178
11:34:33 . rhis-i386-as-3-rhdirserv 0
11:34:33 . rhel-i386-as-3-devsuite 6
11:34:33 . rhel-i386-as-3-rhdirserv-7.1 8
11:34:33 . rhel-i386-as-3-extras 202
11:34:33 rhel-i386-as-4:
11:34:33 . rhel-i386-as-4-extras 481
11:34:33 . rhel-i386-as-4-mrg-messaging-1 151
11:34:33 . rhel-i386-as-4-hwcert 25
11:34:33 . redhat-rhn-proxy-4.0-as-i386-4 116
11:34:33 . rhel-i386-as-4-appstk-1 517
11:34:33 . rhn-tools-rhel-4-as-i386 1321
11:34:33 . rhel-i386-as-4-rhdirserv-7.1 8
11:34:33 . rhel-i386-as-4-mrg-grid-1 52
11:34:33 . redhat-rhn-proxy-4.2-as-i386-4 124
11:34:33 . rhel-i386-as-4-mrg-management-1 0
11:34:33 . rhel-i386-as-4-fastrack 278
11:34:33 . rhel-i386-as-4-mrg-messaging-base-1 68
11:34:33 . rhel-4-as-i386-rhds-3 163
11:34:33 . redhat-rhn-proxy-5.0-as-i386-4 121
11:34:33 . redhat-rhn-proxy-5.2-as-i386-4 94
11:34:33 . redhat-rhn-proxy-5.3-as-i386-4 78
11:34:33 . rhel-i386-as-4-rhdirserv-8 58
11:34:33 . rhel-i386-as-4-sdk 1
11:34:33 . rhel-i386-as-4-cluster 548
11:34:33 . redhat-rhn-proxy-5.1-as-i386-4 110
11:34:33 . redhat-rhn-proxy-4.1-as-i386-4 93
11:34:33 . rhel-4-as-i386-rhds-2.1 15
11:34:33 . rhel-i386-as-4-rhcmsys-7.1 1
11:34:33 . rhel-i386-as-4-rhcmsys-7.2 100
11:34:33 . rhel-i386-as-4-rhcmsys-7.3 109
11:34:33 . rhel-i386-as-4-gfs-6.1 523
11:34:33 rhel-i386-client-5:
11:34:33 . rhel-i386-client-workstation-fastrack-5 42
11:34:33 . rhel-i386-client-supplementary-5 440
11:34:33 . rhel-i386-client-fastrack-5 127
11:34:33 . rhel-i386-client-workstation-5 2323
11:34:33 . rhel-i386-client-vt-5 170
11:34:33 . rhn-tools-rhel-i386-client-5 422
11:34:33 rhel-i386-desktop-3:
11:34:33 . rhel-i386-desktop-3-extras 179
11:34:33 . rhn-tools-rhel-3-desktop-i386 1474
11:34:33 . rhel-i386-desktop-3-devsuite 6
11:34:33 . rhel-i386-desktop-3-fastrack 55
11:34:33 rhel-i386-es-3:
11:34:33 . rhel-i386-es-3-rhdirserv-7.1 8
11:34:33 . rhel-i386-es-3-cluster 34
11:34:33 . rhel-3-es-i386-rhds-2 27
11:34:33 . rhel-i386-es-3-rhcmsys-7.1 1
11:34:33 . rhn-tools-rhel-3-es-i386 1571
11:34:33 . rhel-i386-es-3-devsuite 6
11:34:33 . rhis-i386-es-3-rhdirserv 0
11:34:33 . rhel-i386-es-3-extras 202
11:34:33 . rhel-i386-es-3-gfs-6 178
11:34:33 . rhel-i386-es-3-fastrack 56
11:34:33 rhel-i386-es-4:
11:34:33 . rhel-i386-es-4-fastrack 278
11:34:33 . rhel-i386-es-4-appstk-1 517
11:34:33 . rhel-i386-es-4-cluster 548
11:34:33 . rhel-4-es-i386-rhds-3 145
11:34:33 . rhel-i386-es-4-sdk 1
11:34:33 . rhel-i386-es-4-gfs-6.1 523
11:34:33 . rhn-tools-rhel-4-es-i386 1318
11:34:33 . rhel-i386-es-4-mrg-management-1 0
11:34:33 . rhel-i386-es-4-rhcmsys-7.1 1
11:34:33 . rhel-i386-es-4-rhcmsys-7.2 100
11:34:33 . rhel-i386-es-4-rhcmsys-7.3 109
11:34:33 . rhel-i386-es-4-mrg-messaging-base-1 68
11:34:33 . rhel-i386-es-4-rhdirserv-8 58
11:34:33 . rhel-i386-es-4-extras 481
11:34:33 . rhel-i386-es-4-rhdirserv-7.1 8
11:34:33 . rhel-i386-es-4-mrg-messaging-1 151
11:34:33 . rhel-i386-es-4-mrg-grid-1 52
11:34:33 . rhel-4-es-i386-rhds-2.1 15
11:34:33 rhel-i386-server-5:
11:34:33 . rhel-i386-server-supplementary-5 485
11:34:33 . rhel-i386-server-productivity-5 1107
11:34:33 . rhn-tools-rhel-i386-server-5 425
11:34:33 . rhel-i386-server-hts-5 14
11:34:33 . rhel-i386-server-5-mrg-management-1 9
11:34:33 . rhel-i386-server-5-mrg-grid-1 72
11:34:33 . rhel-i386-server-vt-5 170
11:34:33 . rhel-i386-server-5-mrg-messaging-1 132
11:34:33 . rhel-i386-server-cluster-5 129
11:34:33 . rhel-i386-server-5-rhcmsys-7.3 0
11:34:33 . rhel-i386-server-cluster-storage-5 186
11:34:33 . rhel-i386-server-fastrack-5 178
11:34:33 . redhat-rhn-proxy-5.2-server-i386-5 89
11:34:33 . rhel-i386-server-5-mrg-realtime-1 155
11:34:33 . rhel-i386-server-5-mrg-messaging-base-1 72
11:34:33 . rhel-i386-server-5-rhcmsys-8 72
11:34:33 . rhel-i386-server-5-appstk-2 400
11:34:33 . redhat-rhn-proxy-5.3-server-i386-5 77
11:34:33 . rhel-i386-server-5-rhdirserv-8 35
11:34:33 rhel-i386-ws-3:
11:34:33 . rhel-i386-ws-3-devsuite 6
11:34:33 . rhel-i386-ws-3-cluster 29
11:34:33 . rhel-3-ws-i386-rhds-2 27
11:34:33 . rhel-i386-ws-3-extras 202
11:34:33 . rhel-i386-ws-3-gfs-6 178
11:34:33 . rhn-tools-rhel-3-ws-i386 1571
11:34:33 . rhel-i386-ws-3-fastrack 55
11:34:33 rhel-i386-ws-4:
11:34:33 . rhel-i386-ws-4-fastrack 273
11:34:33 . rhel-i386-ws-4-cluster 548
11:34:33 . rhel-i386-ws-4-sdk 1
11:34:33 . rhel-i386-ws-4-extras 481
11:34:33 . rhel-i386-ws-4-gfs-6.1 523
11:34:33 . rhel-4-ws-i386-rhds-3 145
11:34:33 . rhn-tools-rhel-4-ws-i386 1318
11:34:33 . rhel-4-ws-i386-rhds-2.1 15
11:34:33 rhel-ia64-as-3:
11:34:33 . rhel-3-as-ia64-rhds-2 27
11:34:33 . rhel-ia64-as-3-devsuite 3
11:34:33 . rhel-ia64-as-3-gfs-6 77
11:34:33 . rhel-ia64-as-3-fastrack 61
11:34:33 . rhel-ia64-as-3-cluster 29
11:34:33 . rhn-tools-rhel-3-as-ia64 1239
11:34:33 . rhel-ia64-as-3-extras 116
11:34:33 . rhel-ia64-as-3-hwcert 9
11:34:33 rhel-ia64-as-4:
11:34:33 . rhn-tools-rhel-4-as-ia64 1257
11:34:33 . rhel-ia64-as-4-cluster 327
11:34:33 . rhel-ia64-as-4-hwcert 25
11:34:33 . rhel-4-as-ia64-rhds-2.1 15
11:34:33 . rhel-ia64-as-4-extras 126
11:34:33 . rhel-ia64-as-4-fastrack 304
11:34:33 . rhel-4-as-ia64-rhds-3 163
11:34:33 . rhel-ia64-as-4-gfs-6.1 255
11:34:33 rhel-ia64-es-3:
11:34:33 . rhel-ia64-es-3-gfs-6 77
11:34:33 . rhel-ia64-es-3-fastrack 61
11:34:33 . rhel-ia64-es-3-devsuite 4
11:34:33 . rhel-3-es-ia64-rhds-2 27
11:34:33 . rhn-tools-rhel-3-es-ia64 1239
11:34:33 . rhel-ia64-es-3-extras 116
11:34:33 . rhel-ia64-es-3-cluster 29
11:34:33 rhel-ia64-es-4:
11:34:33 . rhel-ia64-es-4-extras 126
11:34:33 . rhn-tools-rhel-4-es-ia64 1256
11:34:33 . rhel-4-es-ia64-rhds-3 145
11:34:33 . rhel-4-es-ia64-rhds-2.1 15
11:34:33 . rhel-ia64-es-4-cluster 327
11:34:33 . rhel-ia64-es-4-fastrack 304
11:34:33 . rhel-ia64-es-4-gfs-6.1 255
11:34:33 rhel-ia64-server-5:
11:34:33 . rhel-ia64-server-hts-5 14
11:34:33 . rhel-ia64-server-vt-5 169
11:34:33 . rhel-ia64-server-cluster-5 129
11:34:33 . rhn-tools-rhel-ia64-server-5 421
11:34:33 . rhel-ia64-server-cluster-storage-5 154
11:34:33 . rhel-ia64-server-supplementary-5 102
11:34:33 . rhel-ia64-server-fastrack-5 183
11:34:33 rhel-ia64-ws-3:
11:34:33 . rhel-ia64-ws-3-devsuite 3
11:34:33 . rhel-ia64-ws-3-extras 116
11:34:33 . rhn-tools-rhel-3-ws-ia64 1239
11:34:33 . rhel-ia64-ws-3-cluster 29
11:34:33 . rhel-ia64-ws-3-fastrack 60
11:34:33 . rhel-ia64-ws-3-gfs-6 77
11:34:33 . rhel-3-ws-ia64-rhds-2 27
11:34:33 rhel-ia64-ws-4:
11:34:33 . rhel-4-ws-ia64-rhds-2.1 15
11:34:33 . rhel-ia64-ws-4-fastrack 300
11:34:33 . rhel-4-ws-ia64-rhds-3 145
11:34:33 . rhn-tools-rhel-4-ws-ia64 1256
11:34:33 . rhel-ia64-ws-4-gfs-6.1 255
11:34:33 . rhel-ia64-ws-4-cluster 327
11:34:33 . rhel-ia64-ws-4-extras 126
11:34:33 rhel-ppc-as-3:
11:34:33 . rhel-3-as-ppc-rhds-2 25
11:34:33 . rhel-ppc-as-3-extras 100
11:34:33 . rhel-ppc-as-3-hwcert 16
11:34:33 . rhel-ppc-as-3-fastrack 61
11:34:33 . rhn-tools-rhel-3-as-ppc 15
11:34:33 rhel-ppc-as-4:
11:34:33 . rhel-ppc-as-4-hwcert 33
11:34:33 . rhel-4-as-ppc-rhds-3 169
11:34:33 . rhel-ppc-as-4-extras 308
11:34:33 . rhel-4-as-ppc-rhds-2.1 15
11:34:33 . rhel-ppc-as-4-fastrack 302
11:34:33 . rhel-ppc-as-4-gfs-6.1 186
11:34:33 . rhn-tools-rhel-4-as-ppc 31
11:34:33 . rhel-ppc-as-4-cluster 201
11:34:33 rhel-ppc-server-5:
11:34:33 . rhel-ppc-server-supplementary-5 381
11:34:33 . rhel-ppc-server-cluster-storage-5 73
11:34:33 . rhn-tools-rhel-ppc-server-5 32
11:34:33 . rhel-ppc-server-cluster-5 80
11:34:33 . rhel-ppc-server-hts-5 14
11:34:33 . rhel-ppc-server-fastrack-5 231
11:34:33 rhel-x86_64-as-3:
11:34:33 . rhel-x86_64-as-3-gfs-6 165
11:34:33 . rhel-x86_64-as-3-fastrack 60
11:34:33 . rhel-x86_64-as-3-hwcert 9
11:34:33 . rhel-x86_64-as-3-cluster 29
11:34:33 . rhel-x86_64-as-3-extras 112
11:34:33 . rhel-x86_64-as-3-devsuite 2
11:34:33 . rhn-tools-rhel-3-as-x86_64 1450
11:34:33 rhel-x86_64-as-4:
11:34:33 . rhel-x86_64-as-4-appstk-1 546
11:34:33 . rhel-x86_64-as-4-fastrack 312
11:34:33 . rhel-x86_64-as-4-hwcert 25
11:34:33 . rhel-x86_64-as-4-mrg-management-1 0
11:34:33 . rhel-x86_64-as-4-mrg-messaging-base-1 68
11:34:33 . rhel-x86_64-as-4-extras 370
11:34:33 . rhel-x86_64-as-4-rhcmsys-7.3 109
11:34:33 . rhel-x86_64-as-4-rhcmsys-7.2 100
11:34:33 . rhel-x86_64-as-4-gfs-6.1 535
11:34:33 . rhel-x86_64-as-4-mrg-messaging-1 151
11:34:33 . rhel-x86_64-as-4-rhdirserv-8 58
11:34:33 . rhel-x86_64-as-4-sdk 1
11:34:33 . redhat-rhn-proxy-5.2-as-x86_64-4 94
11:34:33 . rhel-x86_64-as-4-cluster 532
11:34:33 . rhel-4-as-x86_64-rhds-3 163
11:34:33 . redhat-rhn-proxy-5.3-as-x86_64-4 78
11:34:33 . rhn-tools-rhel-4-as-x86_64 1321
11:34:33 . redhat-rhn-proxy-5.1-as-x86_64-4 110
11:34:33 . rhel-x86_64-as-4-mrg-grid-1 52
11:34:33 . rhel-4-as-x86_64-rhds-2.1 15
11:34:33 rhel-x86_64-client-5:
11:34:33 . rhel-x86_64-client-workstation-5 3517
11:34:33 . rhel-x86_64-client-workstation-fastrack-5 77
11:34:33 . rhel-x86_64-client-fastrack-5 157
11:34:33 . rhn-tools-rhel-x86_64-client-5 422
11:34:33 . rhel-x86_64-client-vt-5 254
11:34:33 . rhel-x86_64-client-supplementary-5 634
11:34:33 rhel-x86_64-desktop-3:
11:34:33 . rhn-tools-rhel-3-desktop-x86_64 1427
11:34:33 . rhel-x86_64-desktop-3-extras 89
11:34:33 . rhel-x86_64-desktop-3-fastrack 59
11:34:33 . rhel-x86_64-desktop-3-devsuite 4
11:34:33 rhel-x86_64-es-3:
11:34:33 . rhel-x86_64-es-3-gfs-6 165
11:34:33 . rhel-x86_64-es-3-extras 112
11:34:33 . rhel-x86_64-es-3-cluster 29
11:34:33 . rhel-x86_64-es-3-fastrack 60
11:34:33 . rhel-x86_64-es-3-devsuite 4
11:34:33 . rhn-tools-rhel-3-es-x86_64 1450
11:34:33 rhel-x86_64-es-4:
11:34:33 . rhel-4-es-x86_64-rhds-2.1 15
11:34:33 . rhel-x86_64-es-4-cluster 532
11:34:33 . rhel-x86_64-es-4-mrg-messaging-base-1 68
11:34:33 . rhel-x86_64-es-4-mrg-management-1 0
11:34:33 . rhel-x86_64-es-4-rhcmsys-7.3 109
11:34:33 . rhel-x86_64-es-4-rhcmsys-7.2 100
11:34:33 . rhel-x86_64-es-4-rhdirserv-8 58
11:34:33 . rhel-x86_64-es-4-appstk-1 546
11:34:33 . rhel-x86_64-es-4-fastrack 312
11:34:33 . rhel-x86_64-es-4-mrg-messaging-1 151
11:34:33 . rhel-x86_64-es-4-extras 370
11:34:33 . rhel-x86_64-es-4-mrg-grid-1 52
11:34:33 . rhel-x86_64-es-4-gfs-6.1 535
11:34:33 . rhel-4-es-x86_64-rhds-3 145
11:34:33 . rhn-tools-rhel-4-es-x86_64 1318
11:34:33 . rhel-x86_64-es-4-sdk 1
11:34:33 rhel-x86_64-server-5:
11:34:33 . rhel-x86_64-server-fastrack-5 230
11:34:33 . rhel-x86_64-server-5-mrg-management-1 9
11:34:33 . rhel-x86_64-server-5-appstk-2 439
11:34:33 . rhel-x86_64-server-5-mrg-messaging-base-1 72
11:34:33 . redhat-rhn-proxy-5.2-server-x86_64-5 89
11:34:33 . rhel-x86_64-server-5-rhcmsys-8 72
11:34:33 . rhel-x86_64-server-vt-5 254
11:34:33 . rhel-x86_64-server-cluster-5 129
11:34:33 . rhel-x86_64-server-5-mrg-grid-1 72
11:34:33 . redhat-rhn-proxy-5.3-server-x86_64-5 77
11:34:33 . rhn-tools-rhel-x86_64-server-5 425
11:34:33 . rhel-x86_64-server-5-mrg-messaging-1 132
11:34:33 . rhel-x86_64-server-supplementary-5 689
11:34:33 . rhel-x86_64-server-5-mrg-realtime-1 155
11:34:33 . rhel-x86_64-server-cluster-storage-5 154
11:34:33 . rhel-x86_64-server-5-rhdirserv-8 35
11:34:33 . rhel-x86_64-server-productivity-5 1213
11:34:33 . rhel-x86_64-server-hts-5 14
11:34:33 . rhel-x86_64-server-5-rhcmsys-7.3 0
11:34:33 rhel-x86_64-ws-3:
11:34:33 . rhel-x86_64-ws-3-devsuite 2
11:34:33 . rhel-x86_64-ws-3-extras 112
11:34:33 . rhel-x86_64-ws-3-cluster 29
11:34:33 . rhel-x86_64-ws-3-fastrack 59
11:34:33 . rhn-tools-rhel-3-ws-x86_64 1450
11:34:33 . rhel-x86_64-ws-3-gfs-6 165
11:34:33 rhel-x86_64-ws-4:
11:34:33 . rhel-x86_64-ws-4-gfs-6.1 535
11:34:33 . rhel-x86_64-ws-4-cluster 532
11:34:33 . rhel-4-ws-x86_64-rhds-2.1 15
11:34:33 . rhn-tools-rhel-4-ws-x86_64 1318
11:34:33 . rhel-x86_64-ws-4-sdk 1
11:34:33 . rhel-x86_64-ws-4-fastrack 307
11:34:33 . rhel-4-ws-x86_64-rhds-3 145
11:34:33 . rhel-x86_64-ws-4-extras 370
11:34:33 severn-beta2-i386:
11:34:33 . severn-beta2-i386-updates 1878
11:34:33 solaris-sparc-9:
11:34:33 . solaris-sparc-9-rhdirserv-7.1 0
11:34:33 . solaris-sparc-9-rhcmsys-7.2 0
11:34:33 . solaris-sparc-9-rhdirserv-8 0
11:34:33 . solaris-sparc-9-rhcmsys-7.3 0
11:34:33 . solaris-sparc-9-rhcmsys-7.1 0
11:34:33
Import complete:
Begin time: Sat Dec 26 11:32:55 2009
End time: Sat Dec 26 11:34:33 2009
Elapsed: 0 hours, 1 minutes, 38 seconds
[root@satellite ~]#satellite-sync -c rhel-x86_64-server-5
[root@satellite ~]# satellite-sync -c rhel-x86_64-server-vt-5
[root@satellite ~]# satellite-sync -c rhn-tools-rhel-x86_64-server-5
[root@satellite ~]# satellite-sync
[root@satellite ~]# yum install rhncfg*
[root@satellite ~]# rhn_check
[root@satellite ~]# rhn-actions-control –enable-all
Client Side:
Download the SSL cert to the client:
#cd /usr/share/rhn/
#wget http://rajat.yeswedeal.com/pub/RHN-ORG-TRUSTED-SSL-CERT
Edit the /etc/sysconfig/rhn/up2date file
#vi /etc/sysconfig/rhn/up2date
serverURL=https://rajat.yeswedeal.com/XMLRPC
noSSLServerURL=http://rajat.yeswedeal/XMLRPC
sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
Server Side:Activate Key
Log in to your RHN account or Satellite server as a user with administrative
privileges
Go to systems -> activation keys -> + Create New Key
select universal
Client Side:
#rhn_register
Before resistering the system rename systemID
#mv /etc/sysconfig/rhn/systemID /etc/sysconfig/rhn/systemID.orig
#yum update
# yum install rhncfg*
# rhn_check
# rhn-actions-control --enable-all
For Custom Channel Importing
Server Side:
#useradd rajat
#passwd rajat
Creating the GPG Key and Signing the Package:
#gpg –gen-key
select RSA
#gpg –fingerprint
#gpg --export --armor > /var/www/html/pub/CUSTOM-GPG-KEY
Then edit/create the ~/.rpmmacros file to have:
#vi ~/.rpmmacros
%_signature gpg
%_gpg_name rajat (good) < rajat@yeswedeal.com >
Client Side:
#rpm --import http://rajat.yeswedeal.com/pub/CUSTOM-GPG-KEY
Server Side:
Create the Channel
1.Goto channel tab
2.Manage Software channels
3.Create new channel
4. Use http://rajat.yeswedeal.com/pub/CUSTOM-GPG-KEY for the Key Location
5.Save channel
Popluating the Channel:
To populate the channel, run the following command from the satellite
#rpm --resign vsftpd-2.0.5-12.el5.x86_64.rpm
#rhnpush --channel repository --server rajat.yeswedeal.com vsftpd-2.0.5-
12.el5.x86_64.rpm
Client Side:
#yum clean all
#yum update
#yum install vsftpd-2.0.5-12.el5.x86_64.rpm

Monday, December 20, 2010

How to configure kickstart with remote installation RedHat /CentOs

###KickStart [Unattended Installation]###
Kickstart helps to install system unattended. It uses kickstart configuration file and dhcp service for this.
In windows systems kickstart file is known as answer file.

###These are the steps happening.###
Server[dhcp+ks] client
1. asks IP and location of kickstart file
2.gives the info
3. Takes the ks.cfg file and mounts share of OS

###dhcp [nfs/ftp/http] + ks.cfg [nfs]###
The dhcp is using for getting IP for the client machine at first for instation and to get the location of Ks.cfg file. The remote installation image can be of NFS,HTTP or FTP. The kickstar file will be shared using NFS.

###KickStart Configuration###
package = system-config-kickstart
#yum -y install system-config-kickstart
#system-config-kickstart


Basic configuration
Default Language = English USA
Keyboard = U S English
Time Zone = Asia/Culcutta
Root Password = redhat
Confirm Password = redhat
check the encryption box
Target Architecture = x86,AMD64 or Intel EM64T
Check the reboot checkbox

Installation Method
Installaton method = Perform new installation
Choose the Installation Method = NFS //You can use HTTP or FTP if you want
NFS server = IP of the machine which contains NFS image of DVD
NFS directory = Path of NFS share

Boot Loader options
Install New Boot Loader
Use GRUB password if required
Install boot loader on MBR

Partition Information
Do not clear MBR
Remove all exisiting partitions //Removing linux partitions only wont work all time. Windows partitions will be deleted.
click add button and configure as required

Network Configuration
Click Add Network Devices button
Select the network device which is connected to ur machine
network type = DHCP or STATIC [manual]

Authentication
Authentication Configuration
check use shadow passwords
check use MD5

Firewall Configuration
Firewall Configuration
Security level = Disable firewall
SELinux = Disabled

Display Configuration
Check Configure the x-window system
In General Tab
Color Depth Resolution
8 1024*768 //Default 640*480 will give a blurred image
Default Desktop
Check Gnome
Check Start X window system on Boot

package selection
Nothing to do //We will add package lines

Pre-Installation Script
Add if wanted

Post-Installation Script
Add if wanted

Configuration over. Save the file. Open the file for further editing.
#vi ks.cfg

Add these lines - Otherwise it wont work.
key --skip
%packages

And these lines for Graphics

@admin-tools
@base
@base-x
@core
@dialup
@editors
@games
@gnome-desktop
@graphical-internet
@graphics
@java
@office
@printing
@sound-and-video
@text-internet

###Make it as NFS share###
copy the ks.cfg file to some dir and share it via NFS

#mkdir /kick
#cp ks.cfg /kick/


#vi /etc/exports
/kick *()

#exportfs -a

###DHCP Configuration###
Add these lines to DHCP Configuration file
#vi /etc/dhcpd.conf

filename "/kick/ks.cfg";
next-server 192.168.1.11; // [ip of the machine which contains kickstart file(ks.cfg)]

#service dhcpd restart
#service nfs restart

###Installation###

#Boot: linux ks
Have a break. The system will be ready when you get back!

Samba PDC domain controller on RedHat /Cent OS

Samba PDC is used for centralized authentication and domain control of Windows
operating systems.

Here we will set a samba PDC machine with domain name lap.work and create some
users. And we will check whether these users are able to login to this domain from different
machines.

In this example we are working on rhel5. It will also work on other distributions like RedHat, Centos, Fedora, etc.

Samba PDC Machine:
rhel 5.4
IP : 192.168.0.1

Windows Client:
Windows  XP Professional SP2
Computer Name : lap-xp
Domain Name : lap.work
IP : 192.168.0.2

Installation:

Install samba packages:
[root@sambapdc ~]# yum install samba*

Configuration:

open the samba configuration file and make the following edits.
[root@sambapdc ~]# vim /etc/samba/smb.conf

Uncomment or edit the lines as shown below.

In global settings:

workgroup = lap.work #domain name
server string = Samba PDC Server #as host name. just to identify
netbios name = samba #netbios name for communication
local master = yes
preferred master = yes
domain master = yes
domain logons = yes
logon path = \\%L\Profiles\%U #profile entry
security = user
passdb backend = tdbsam

In share definishions:

[homes]
browseable = yes
writable = yes

[netlogon]
path = /home/netlogon
writable = no

[Profiles]
path = /home/profiles
create mask = 0755
directory mask = 0755
writable = yes #should give. Else you will get ACCESS DENIED errors

Now create the following directories:

[root@sambapdc ~]# mkdir -m 1777 /home/profiles
[root@sambapdc ~]# mkdir -m 1777 /home/netlogon

Attaching a windows machine:

Now create a group named machine and add a user with the name of windows client
[root@sambapdc ~]# groupadd -g 200 machine
[root@sambapdc ~]# useradd -d /dev/null -g 200 -s /sbin/nologin lap-xp$
Where lap-xp is the name of the machine we are attaching to samba PDC
[root@sambapdc ~]# smbpasswd -m -a lap-xp

Start the samba service:

[root@sambapdc ~]# service smb start
[root@sambapdc ~]# chkconfig smb on
Run testparm and test your configuration settings:
[root@sambapdc ~]# testparm
[root@sambapdc ~]# smbpasswd -a root
[root@sambapdc ~]# smbpasswd -e root

Add two more users for testing:

#useradd user1
#smbpasswd -a user1
#smbpasswd -e user
#useradd user2
#smbpasswd -a user2
#smbpasswd -e user2
[root@sambapdc ~]# service smb restart

On windows machine:

Right click the My Computer icon
Take properties
Take Computer name tab
Add the system to lap.work domain
you will be prompted for a username and password. Give root and its password.
System may need to restart

you can see that when we are logged as user1 a directory user1 will be created in /home/profiles
in samba PDC machine. This will be the home directory of that user. He will he able to login
from all machines in this domain and will be getting to this same directory.

:)