{"id":524,"date":"2015-04-28T17:52:25","date_gmt":"2015-04-28T22:52:25","guid":{"rendered":"http:\/\/bitc.bme.emory.edu\/~lzhou\/blogs\/?p=524"},"modified":"2015-04-28T17:52:25","modified_gmt":"2015-04-28T22:52:25","slug":"installing-centos-7","status":"publish","type":"post","link":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/?p=524","title":{"rendered":"Installing CentOS 7"},"content":{"rendered":"<p>Estimated partition size\/usage (off 223.5GB HD)<br \/>\n  \/                  63GB              18GB               28%<br \/>\n  swap               16GB<br \/>\n  \/usr\/local         127.75GB          33GB               26%<br \/>\n  \/boot              765MB             201MB              21%<br \/>\n  \/data\/home0        16GB              34MB               1%<\/p>\n<p>Step 1: setup nfs to export CentOS7 full package and ks.cfg file, start the NFS server, do not forget to lift the firewall so that it will be seen by the target computer.<br \/>\nStep 2: kickstart install base packages:<br \/>\n  Boot into CentOS7 netinstall DVD, press tab and add option: ks=nfs:10.224.105.222:\/media\/1\/ks.cfg<br \/>\nStep 3: Mount \/data1<br \/>\n  Enable node in server iptable and exportfs<br \/>\n  Restart iptable and exportfs in server<br \/>\n  Establish mounting line in client \/etc\/fstab<br \/>\n  # mkdir \/data1<br \/>\n  # mount \/data1<br \/>\nStep 4: Install third party repos:<br \/>\n  adobe-linux-x86_64.repo         adobe-release-x86_64-1.0-1.noarch<br \/>\n    yum install http:\/\/linuxdownload.adobe.com\/adobe-release\/adobe-release-x86_64-1.0-1.noarch.rpm<br \/>\n  atrpms.repo                     atrpms-repo-7-7.el7.x86_64<br \/>\n    yum install http:\/\/dl.atrpms.net\/all\/atrpms-repo-7-7.el7.x86_64.rpm<br \/>\n  epel.repo                       epel-release-7-5.noarch<br \/>\n    yum install http:\/\/dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/e\/epel-release-7-5.noarch.rpm<br \/>\n  nux-desktop.repo                nux-dextop-release-0-5.el7.nux.noarch<br \/>\n    yum install http:\/\/li.nux.ro\/download\/nux\/dextop\/el7\/x86_64\/nux-dextop-release-0-5.el7.nux.noarch.rp<br \/>\n  rpmforge.repo                   rpmforge-release-0.5.3-1.el7.rf.x86_64<br \/>\n    yum install http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm<br \/>\nStep 5: Install extra packages:<br \/>\n  yum install &#8211;exclude=x264-libs &#8211;exclude=mplayer-1.2 &#8211;exclude=faad2 $(cat elsepackages.txt)<br \/>\n    The following keys will be imported:<br \/>\n      &#8220;Fedora EPEL (7) &#8221;                \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-7<br \/>\n      &#8220;Nux.Ro (rpm builder) &#8221;                    \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-nux.ro<br \/>\n      &#8220;ATrpms.net (rpm signing key) &#8221;    \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-atrpms<br \/>\n      &#8220;CentOS-7 Key (CentOS 7 Official Signing Key) &#8221;    \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-7<br \/>\n      &#8220;Adobe Systems Incorporated (Linux RPM Signing Key) &#8221; \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-adobe-linux<br \/>\nTest 1: Check Packages:<br \/>\n  sh rpms<br \/>\nStep 6: Disable atrpms.repo and nux-dextop.repo to reduce conflicts:<br \/>\n  Disable atrpms.repo<br \/>\n  yum erase libva-x11_1 libva-drm1 libva1 libva libdvbpsi7 libdvbpsi9 libdvdcss2 libx264_142 libxvidcore4<br \/>\n  yum install ffmpeg ffmpeg-libs gstreamer-plugins-ugly gstreamer1-plugins-ugly libdvdcss mplayer smplayer vlc vlc-core xvidcore x264-libs<br \/>\n  Disable nux-dextop.repo<br \/>\nStep 7: yum update<br \/>\nStep 8: House keeping:<br \/>\n  sync user\/group from \/data1,<br \/>\n  add in &#8220;Domain = cluster&#8221; in \/etc\/idmapd.conf<br \/>\n  rsync debug&#8217;s folder<br \/>\n  then reboot<br \/>\nStep 9: Enable rsh<br \/>\n  set .rhosts for master node, privilege 644<br \/>\n  systemctl enable rsh.socket<br \/>\n  systemctl enable rlogin.socket<br \/>\n  systemctl start rlogin.socket<br \/>\n  systemctl start rsh.socket<br \/>\n  append rsh and rlogin in \/etc\/securetty<br \/>\nStep 10: Add sync for cluster files<br \/>\nStep 11: Set up NFS maps, becareful checking for nobody:nobody and do nfsidmap -c if needed<br \/>\nStep 12: Disable biosdevname, to restore ethx<br \/>\n  nano \/etc\/sysconfig\/grub<br \/>\n  append &#8220;net.ifnames=0 biosdevname=0&#8221; behind GRUB_CMDLINE_LINUX line inside the &#8220;&#8221;<br \/>\n  grub2-mkconfig  -o \/boot\/grub2\/grub.cfg<br \/>\n  rename and edit \/etc\/sysconfig\/network-scripts\/ifcfg-??? to ifcfg-eth0 and change the names inside the file<br \/>\n  reboot<br \/>\nStep 13: Assign matlab license<br \/>\n  su &#8211;<br \/>\n  mkdir matlab.licenses<br \/>\n  matlab<br \/>\n  exit<br \/>\nStep 14: Disable root log in<br \/>\n  edit \/etc\/ssh\/ssh_config and \/etc\/ssh\/sshd_config according to template<br \/>\n  systemctl restart sshd<br \/>\nStep 15: Hide log in screen user list<br \/>\n  Create a gdm database for machine-wide settings in \/etc\/dconf\/db\/gdm.d\/00-login-screen<br \/>\n  put in<br \/>\n    [org\/gnome\/login-screen]<br \/>\n    # Do not show the user list<br \/>\n    disable-user-list=true<br \/>\n  dconf update<br \/>\n  reboot<br \/>\nStep 16: Establish \/etc\/host file<br \/>\nStep 17: Set up SGE<br \/>\n  copy over sge folder from \/data1<br \/>\n  establish \/etc\/profile.d\/sge.csh and \/etc\/profile.d\/sge.sh accordingly<br \/>\n  edit \/etc\/services about sge<br \/>\n  run install_execd<br \/>\nStep 18: Set up openvpn (optional)<br \/>\n  Generate key pairs on server<br \/>\n  Copy ca.crt key pairs and client.conf to client<br \/>\n  cd \/etc\/systemd\/system<br \/>\n  ln -s \/lib\/systemd\/system\/openvpn\\@.service .\/openvpn\\@client.service<br \/>\n  systemctl enable openvpn\\@client.service<br \/>\n  systemctl start openvpn\\@client.service<br \/>\n  Here the &#8220;client&#8221; can be the name of the server<br \/>\nStep 19: Establish nfs that needs to go through openvpn (optional)<br \/>\nStep 20: Duplicate R packages<br \/>\n  On old master:<br \/>\n    tmp = installed.packages()<br \/>\n    installedpackages = as.vector(tmp[is.na(tmp[,&#8221;Priority&#8221;]), 1])<br \/>\n    save(installedpackages, file=&#8221;\/data1\/installed_packages.rda&#8221;)<br \/>\n  On new nodes:<br \/>\n    load(&#8220;\/data1\/installed_packages.rda&#8221;)<br \/>\n    for (count in 1:length(installedpackages)) install.packages(installedpackages[count])<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Estimated partition size\/usage (off 223.5GB HD) \/ 63GB 18GB 28% swap 16GB \/usr\/local 127.75GB 33GB 26% \/boot 765MB 201MB 21% \/data\/home0 16GB 34MB 1% Step 1: setup nfs to export CentOS7 full package and ks.cfg file, start the NFS server, do not forget to lift the firewall so that it will be seen by the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,3],"tags":[],"class_list":["post-524","post","type-post","status-publish","format-standard","hentry","category-computer-tips","category-mri-technical-support","post-blog"],"_links":{"self":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=524"}],"version-history":[{"count":32,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/524\/revisions"}],"predecessor-version":[{"id":557,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/524\/revisions\/557"}],"wp:attachment":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}