{"id":170,"date":"2007-10-17T14:09:05","date_gmt":"2007-10-17T13:09:05","guid":{"rendered":"http:\/\/lackovic.wordpress.com\/?p=170"},"modified":"2007-10-17T14:09:05","modified_gmt":"2007-10-17T13:09:05","slug":"useful-centos-howtos","status":"publish","type":"post","link":"https:\/\/scalab.dimes.unical.it\/lackovic\/useful-centos-howtos\/","title":{"rendered":"Useful CentOS howtos"},"content":{"rendered":"<p style=\"text-align:center\"><img class=\"aligncenter\" src=\"http:\/\/weka4ws.files.wordpress.com\/2007\/10\/centos3.png\" alt=\"CentOS logo\" \/><\/p>\n<p>Community ENTerprise Operating System\u00a0(CentOS), is a GNU\/Linux enterprise distribution, based on the freely available sources of Red Hat Enterprise Linux (RHEL) and, just as RHEL or Debian stable, CentOS is focused on stability and security.<\/p>\n<p>CentOS delivers a long-term support, stable APIs and ABIs for your own software, integration of modern security technologies, backported security fixes so that updating doesn&#8217;t break anything. A new release comes out every 18 to 24 months, and each release is supported for around 7 years. With these characteristics, CentOS is an excellent desktop and server operating system for people who want a robust system that just works. Due to its heritage, CentOS is also an excellent migration path for former Fedora legacy users.<\/p>\n<p>All these characteristics make CentOS the perfect operating system for University computer labs and for setting up a test Grid for educational and\/or development purposes.<\/p>\n<p><strong>How to<\/strong><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>disable the system beep edit \/etc\/inputrc and uncomment following line:\n<pre># do not bell on tab-completion\nset bell-style none<\/pre>\n<p>Then run:<\/p>\n<pre>root:# rmmod pcspkr<\/pre>\n<\/li>\n<p>&nbsp;<br \/>&nbsp;<\/p>\n<li>install\u00a0Flash Player:\n<ul>\n<li>visit\u00a0<a href=\"http:\/\/get.adobe.com\/it\/flashplayer\/\" target=\"_blank\">http:\/\/get.adobe.com\/it\/flashplayer\/<\/a><\/li>\n<li>choose &#8220;YUM for Linux&#8221;;<\/li>\n<li>click on &#8220;Accept and install now&#8221;;<\/li>\n<li>choose to open with &#8220;Software installer&#8221;;<\/li>\n<li>after installation go to Applications \/ Add\/Remove Software;<\/li>\n<li>search for &#8220;flash&#8221;;<\/li>\n<li>check on &#8220;flash-plugin-etc&#8230;&#8221; and press &#8220;Apply&#8221;.<\/li>\n<\/ul>\n<\/li>\n<p>&nbsp;<br \/>&nbsp;<\/p>\n<li>disable all the not necessary\u00a0services\u00a0(such as bluetooth, isdn, etc) run:\n<pre>root:# ntsysv<\/pre>\n<\/li>\n<p>&nbsp;<br \/>&nbsp;<\/p>\n<li>make your machine\u00a0not boot in graphical mode\u00a0(highly recommended if you are planning to use the machine as server only):\n<pre>root:# vim \/etc\/inittab<\/pre>\n<p>and change the id:5:initdefault: line with id:3:initdefault:<br \/>\nTo start the windows manager simply run &#8220;startx&#8221; once logged in;<\/p>\n<\/li>\n<p>&nbsp;<br \/>&nbsp;<\/p>\n<li>configure name server lookups edit your \/etc\/resolv.conf and add to the right of the &#8220;search&#8221; option the list of domain names to be tried separated by spaces or tabs;<\/li>\n<p>&nbsp;<br \/>&nbsp;<\/p>\n<li>to make your machine\u00a0automatically\u00a0install security updates\u00a0with a daily basis:\n<pre>root:# vim \/etc\/cron.daily\/yumupdate<\/pre>\n<p>and paste into it<\/p>\n<pre>yum update -y<\/pre>\n<p>save and change its permission to:<\/p>\n<pre>root:# chmod +x \/etc\/cron.daily\/yumupdate<\/pre>\n<p>this will make your machine do the update every day at 4:02am, provided it&#8217;s turned on at that time;<\/li>\n<p>&nbsp;<br \/>&nbsp;<\/p>\n<li>keep your machine\u00a0system clock\u00a0accurate by synchronizing it over the Internet with a daily basis:\n<pre>root:# vim \/etc\/cron.daily\/ntpdate<\/pre>\n<p>and paste into it<\/p>\n<pre>ntpdate -u ntp1.inrim.it ntp2.inrim.it<\/pre>\n<p>replace &#8220;ntp1.ien.it&#8221; and &#8220;ntp2.ien.it&#8221; with other NTP public servers geographically near to your machine: you can choose them\u00a0<a href=\"http:\/\/support.ntp.org\/bin\/view\/Servers\/NTPPoolServers\" target=\"_blank\">here<\/a>. Save and change its permission to:<\/p>\n<pre>root:# chmod +x \/etc\/cron.daily\/ntpdate<\/pre>\n<p>this will make your machine do the update every day at 4:02am, provided it&#8217;s turned on at that time;<\/li>\n<p>&nbsp;<br \/>&nbsp;<\/p>\n<li>install\u00a0RPMForge\u00a0following\u00a0<a href=\"http:\/\/wiki.centos.org\/Repositories\/RPMForge\" target=\"_blank\">these instructions<\/a>;<\/li>\n<p>&nbsp;<br \/>&nbsp;<\/p>\n<li>install\u00a0RAR you need to install RPMForge first, then\u00a0run:\n<pre>root:# yum install -y rar<\/pre>\n<\/li>\n<p>&nbsp;<br \/>&nbsp;<\/p>\n<li>install a good LaTeX\u00a0editor:\n<pre>root:# yum install tetex tetex-latex kdegraphics kile<\/pre>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Community ENTerprise Operating System\u00a0(CentOS), is a GNU\/Linux enterprise distribution, based on the freely available sources of Red Hat Enterprise Linux (RHEL) and, just as RHEL or Debian stable, CentOS is focused on stability and security. CentOS delivers a long-term support, stable APIs and ABIs for your own software, integration of modern security technologies, backported security &hellip; <a href=\"https:\/\/scalab.dimes.unical.it\/lackovic\/useful-centos-howtos\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Useful CentOS howtos<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/posts\/170"}],"collection":[{"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/comments?post=170"}],"version-history":[{"count":0,"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/posts\/170\/revisions"}],"wp:attachment":[{"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/media?parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/categories?post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scalab.dimes.unical.it\/lackovic\/wp-json\/wp\/v2\/tags?post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}