How to install SL7

I will start dumping my knowledge. More for having a quick reference myself than to illustrate you, of course. Probably you’re not even interested. But who knows.

So this is how we do it, step by step.

1. Partition layout. Keep this proportions

/boot 500MB
/     400GB
swap  20GB

2. Customisation. As root, change the home folder of the “admin” user. This is to keep /home/ free for later network mounting

#  vi /etc/hostname
# cd /home/; tar -cvf admin.tar admin
# cd / ; mkdir Users
# cd /Users/;  cp /home/admin.tar . ; tar -xvf admin.tar
# vi /etc/passwrd --> change /home/ for admin
# reboot

3. Internet. We disable selinux, and give the standard set of network settings. The network settings we can do with nm-connection-editor, once we are on the net. On the identity, we click connect automatically, and make available to others. Add the standard search domains, also. The code part is something like this:

# vi /etc/selinux/config --> disable
# service selinux disable --> disable service
# ifconfig eth0 10.XXX.XXX.XXX netmask 255.255.0.0
# route add default gw 10.XXX.0.1
# yum install net-tools
# nm-connection-editor

4. User access. We install sssd, add kerberos keytab, and change mounts. The code is:

# vi /etc/fstab --> add nfs home and shares
# cp /etc/sssd/sssd.conf --> change name on it
# cp /etc/krb5.keytab 
# service sssd start

You can do getent passwd to check if sssd works fine. We copy the ssh keys and pam.d from a remote machine:

# rsync -av /etc/ssh/ here:/etc/ssh/ --delete-before --progress
# rsync -av /etc/pam.d/ here:/etc/pam.d/ --delete-before --progress
# rsync -av /etc/nsswitch.conf here:/etc/nsswitch.conf
# systemctl enable sssd.service
# systemctl enable sshd.service

Now it’s time to reboot to check that all is fine.

5. Missing packages. We may need at least the next ones:

# yum install -y gcc gcc-c++ libX11* openmpi-*

That’s it! It’s not as clean and fast as with cobbler, but it works…

Advertisements

About bitsanddragons

A traveller, an IT professional and a casual writer
This entry was posted in bits. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s