{"id":689,"date":"2010-04-27T07:20:59","date_gmt":"2010-04-27T07:20:59","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=689"},"modified":"2024-11-07T13:58:22","modified_gmt":"2024-11-07T13:58:22","slug":"centos-5-3","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/centos-5-3\/","title":{"rendered":"Centos 5.3"},"content":{"rendered":"<p>I installed this on the Mac. I also have Centos 5.9 on the HP Probook. Here are my notes; it&#8217;s much easier these days. This was created in Apr 2010.<!--more--><\/p>\n<h3>Installing in Virtual Box<\/h3>\n<p>Remember to use the DVD copy, not Live CD<\/p>\n<p>My first copy on the Mac has Desktop Gnome, Server &amp; Server GUI packages installed. This might not be what I need.<\/p>\n<p>I need to configure the admin user to be a sudoer. See Centos 4.7. In order to remake the kernel, on the Mac, or with 5.3 you need to force the shell interpreter i.e. <i>sh .\/VBLinuxAdditions-x86.run<\/i>.<\/p>\n<p>There is\/was a kernel version mismatch; probably caused by the age of my .ISO image. I used the following commands.<\/p>\n<div>\n<pre># yum install binutils gcc make patch libgomp glibc-headers glibc-devel \r\n# yum install kernel-headers kernel-devel\r\n# yum install kernel*<\/pre>\n<\/div>\n<p>The advice was to install the first two lines, but it still didn&#8217;t work and so I ran the last line. Not sure what was used and what wasn&#8217;t.<\/p>\n<p>I ran the Guest Editions (VB 3.1.6) install script on <i>Centos 5.4<\/i> today. I used all the yum commands above and still got a failure to compile the guest additons module. I checked the log which stated it couldn&#8217;t find the kernel source, and recommended setting KERN_DIR, so,<\/p>\n<div>\n<pre>export KERN_DIR=\/usr\/src\/kernel\/2.6.18-164.15.1.el5-i686\/\r\nsh .\/VBoxLinuxAdditions-x86.run<\/pre>\n<\/div>\n<p>which works I suggest you use bash&#8217;s autocomplete to do this, and I assume your current directory is \/media\/VBOXADDITIONS_*. This is also documented on the <a href=\"http:\/\/forums.virtualbox.org\/viewtopic.php?f=3&amp;t=27788&amp;p=133801&amp;hilit=Centos+5.4#p133801\">Virtual Box forum thread,Installing Guest Additions into CentOS\/RHEL 5.4<\/a> <i>27 April 2010<\/i><\/p>\n<ul>\n<li>How to install Guest Additions&#8230; at <a href=\"http:\/\/forums.virtualbox.org\">http:\/\/forums.virtualbox.org<\/a><\/li>\n<li><a href=\"http:\/\/forums.virtualbox.org\/viewtopic.php?f=3&amp;t=21622&amp;p=93992&amp;hilit=centos+yum#p93992\">Problem Installing GuestAddition for CentOS<\/a> also at <a href=\"http:\/\/forums.virtualbox.org.\">http:\/\/forums.virtualbox.org.<\/a> This contains the advice on the rpms required.<\/li>\n<li><a href=\"http:\/\/linux.die.net\/man\/8\/yum\">man yum<\/a><a href=\"https:\/\/web.archive.org\/web\/20241004100732\/https:\/\/linux.die.net\/man\/8\/yum\">,<\/a> which should be useful when installing the other packages I need.<\/li>\n<\/ul>\n<p>I am having problems with full screen mode. It installs with only 800&#215;600 &amp; 640&#215;480. I have used Adminstration -&gt; Display to change the Display device but at the moment, it&#8217;ll only support an 1152&#215;864, despite using system-config-display to define a screen of 1440&#215;900, which I though was the Mac Screen size. Shit! <del>See <\/del><del>http:\/\/www.virtualbox.org\/ticket\/4830<\/del>. Why is this pile of shit so popular? (I mean Centos not VB, of which I am still a fan.)The <b>keyboard<\/b> isn&#8217;t right either. See also <a href=\"http:\/\/rpm.pbone.net\/index.php3\/stat\/3\/srodzaj\/2\/search\/epel-release-5-2.src.rpm\">this thread<\/a> at the <b>VB forums<\/b>. Lets see if that&#8217;s fatal.<\/p>\n<h3>Bazaar<\/h3>\n<p>I need planet on this distro, so I need Bazaar. Not supported by the standard repositories, so get it from its home page. The repository rpm advised there doesn&#8217;t work for me so I used,<\/p>\n<div>\n<pre>rpm -Uvh <a href=\"ftp:\/\/ftp.univie.ac.at\/systems\/linux\/fedora\/epel\/5\/i386\/epel&amp;#45;release&amp;#45;5&amp;#45;2.noarch.rpm\">ftp:\/\/ftp.univie.ac.at\/systems\/linux\/fedora\/epel\/5\/i386\/epel-release-5-2.noarch.rpm<\/a><\/pre>\n<\/div>\n<p>This site is advised at <a href=\"http:\/\/rpm.pbone.net\/index.php3\/stat\/4\/idpl\/4851368\/com\/epel-release-5-2.noarch.rpm.html\">rpm.pbone.net&#8217;s EPEL release<\/a> page.<\/p>\n<p>After which<\/p>\n<div>\n<pre>yum install bzr<\/pre>\n<\/div>\n<p>this works, AFIAK, I have downloaded <i>planet venus<\/i> using bzr.<\/p>\n<h3>Redland RDF<\/h3>\n<p>I decided to install Redland RDF first. i.e before testing planet. You would think I have the choice of,<\/p>\n<ol>\n<li>installing from source<\/li>\n<li>installing the RPM<\/li>\n<li>installing a remote REPO based on the librdf.org directory and use yum?<\/li>\n<li>installing a local REPO and rsync it using the librdf.org directory and use yum.<\/li>\n<\/ol>\n<p>I decided to try and create a local mirror for the rpms with a local repository. I have written up how to make a local repository on my <a href=\"https:\/\/davelevy.info\/wiki\/making-a-yum-repo\/\">making a yum repo<\/a> page. It has some links to pages that helped\/inspired me.However I am stuck at the moment and plan to install from the librdf.org source rpms. I will need the following resources,<\/p>\n<ul>\n<li><a href=\"http:\/\/wiki.centos.org\/HowTos\/RebuildSRPM\">http:\/\/wiki.centos.org\/HowTos\/RebuildSRPM<\/a><\/li>\n<li><a href=\"http:\/\/wiki.centos.org\/HowTos\/SetupRpmBuildEnvironment\">http:\/\/wiki.centos.org\/HowTos\/SetupRpmBuildEnvironment<\/a><\/li>\n<li><a href=\"http:\/\/download.librdf.org\/source\/\">http:\/\/download.librdf.org\/source\/<\/a><\/li>\n<\/ul>\n<p>In the <i>SetupRpmBuildEnvironment<\/i> page, above, there are instructions to set up a .rpmmacros file. The required syntax is<\/p>\n<div>\n<pre>%_topdir \/home\/$user\/$dirname<\/pre>\n<\/div>\n<p>I am pretty clear that the syntax requires the variables to be expanded. The centos page recommends an echo &gt; but I couldn&#8217;t get their syntax to work. I was helped by this script from http:\/\/www.oldrpm.org\u00a0I wrote a script that downloaded the sources from librdf.org.<\/p>\n<p>I used rpmbuild &#8211;rebuild to create the RPMs then used sudo yum install to discover the missing dependencies and install them, one at a time. This worked fine until I tried to rebuild the bindings. The rebuild fails with the following errors.<\/p>\n<div>\n<pre>Installed (but unpackaged) file(s) found\r\n\/usr\/lib\/python2.4\/site-packages\/RDF.pyc\r\n\/usr\/lib\/python2.4\/site-pacages\/RDF.pyo<\/pre>\n<\/div>\n<p>I have found <del>the Koders search<\/del> for RDF.py, and google points me at the SPEC file in the rpmbuild tree. The %files section on redland-python has lines referenceing RDF.py and Redland.so. <i>locate<\/i> can&#8217;t find these, and its getting a bit beyond me. <a href=\"http:\/\/python.org\">http:\/\/python.org<\/a> has an SPRM for python-rdflib, but this won&#8217;t rebuild because of an error in setup.py.<\/p>\n<h3>Oops<\/h3>\n<p>Notes as to how I got here follow.<\/p>\n<p>The binary packages are hosted at <a href=\"http:\/\/librdf.org\/\">http:\/\/librdf.org\/.<\/a> They have a <a href=\"http:\/\/download.librdf.org\/binaries\/redhat\/\">redhat downloads directory<\/a> which is based on <b>Fedora Release Versions<\/b>. Using <b>rpmfind<\/b>, [<a href=\"http:\/\/www.rpmfind.net\/linux\/rpm2html\/search.php?query=redland+rdf&amp;submit=Search+...\">rpmfind results html<\/a>] suggests, Redland 1.0.7 i686 html, with <a href=\"ftp:\/\/194.199.20.114\/linux\/fedora\/development\/x86_64\/os\/Packages\/redland-1.0.7-10.fc12.1.i686.rpm\">this ftp .rpm download<\/a>.<\/p>\n<p>I used wget to download the .rpms from http:\/\/download.librdf.org\/binaries\/redhat\/fc7\/, which may be my mistake. Is fc7 == Centos 5.3? It seems that CENTOS 5.3 is RHEL 5.3 which is based on Fedora Core 6.<\/p>\n<p>So just had another go, Dave Beckett suggests I source the rpms from <a href=\"http:\/\/koji.fedoraproject.org\/koji\/packageinfo?packageID=4774\">koji.fedoraproject.org<\/a>. I am still guessing as to which vesion of the package is required, but I found that the Centos 5.3 distro has rasqal in its repo, so when installing it, from a koji .rpm, it installs from the Centos repo and installs its dependent raptor package. This now leaves just the redland library itself. The versions I have tried all require to modern a version of libdb, libpq and libcurl. I am now trying to get old versions of librdf. Back to librdf.org and .\/fc6.<\/p>\n<p>This also works without the repos.d\/*.repo file. I used redland-1.0.6. It seems the rpm is in the distro.<\/p>\n<h3>Apropos<\/h3>\n<p>In order to make apropos work, one must run <em>makewhatis<\/em> with root privilege.<\/p>\n<p>See also http:\/\/superuser.com\/questions\/346703\/linux-apropos-command-always-returns-nothing-appropriate<\/p>\n<h3>sudo<\/h3>\n<p>Sudo holds its permissions in sudoers file. Centos uses the wheel group to aquire permissions. i.e. the chief user needs to be members of the wheel group.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I installed this on the Mac. I also have Centos 5.9 on the HP Probook. Here are my notes; it&#8217;s much easier these days. This was created in Apr 2010.<\/p>\n","protected":false},"author":1,"featured_media":9871,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[8,3],"tags":[552,200,184,1184,201,203,553,911,11,202],"class_list":["post-689","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-technology","tag-apropos","tag-bazaar","tag-centos","tag-deprecated","tag-redland-rdf","tag-rpm","tag-sudo","tag-technology","tag-virtual-box","tag-yum"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2010\/04\/centos-via-wikipedia-1.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=689"}],"version-history":[{"count":25,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/689\/revisions"}],"predecessor-version":[{"id":11703,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/689\/revisions\/11703"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/9871"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}