dennis henry

ramblings of an IT professional

Follow me on TwitterRSS Feeds

  • Home
  • About
  • Linux Tutorials
  • Code
  • Docs
  • Gallery

Install Yum on minimal CentOS

Jul 5th

Posted by dennis in CentOS

No comments

Hello all!

I ran into an interesting issue with a “minimal” CentOS installation and had to help a colleague install Yum on a server where only rpm existed. Here’s the final RPM line I used:

rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.22-37.el5.centos.noarch.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-python-4.4.2.3-22.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-4.4.2.3-22.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-libs-4.4.2.3-22.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/popt-1.10.2.3-22.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/m2crypto-0.16-8.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-2.6.26-2.1.12.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/logrotate-3.7.4-12.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/expat-1.95.8-8.3.el5_5.3.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/nss-3.12.8-4.el5_6.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/nspr-4.8.6-1.el5_5.x86_64.rpm

This should install Yum and all the required depedancies for CentOS 5 x86_64 (at the time of this writing). Once this is ran, yum should be available to install any other software needed.

centos, centos5, rpm, yum

OpenSSH won’t start

Jun 18th

Posted by dennis in CentOS

No comments

I ran into an issue with OpenSSH Server would not start after fresh installation of it on a minimal CentOS 5 x86_64 VPS:

[root@vps ~]# /etc/init.d/sshd restart
Stopping sshd:                                             [FAILED]
Generating SSH1 RSA host key:                              [FAILED]

I delved a little further and discovered that ssh-keygen was failing:

[root@vps ~]# ssh-keygen
cannot read from /dev/urandom, No such file or directory

And finally, from there, I generated the urandom file:

/sbin/MAKEDEV urandom

Also, to ensure on restarts the urandom file (as well as pty and tty) are created, I added the following to /etc/rc.d/rc.local:

/sbin/MAKEDEV pty
/sbin/MAKEDEV tty
/sbin/MAKEDEV urandom

Hopefully this helps if you run into a similar issue down the line!

centos, MAKEDEV, missing, openssh, urandom, vps
12345»...Last »
    • Recent comments
    • Popular posts
    • Archives
    • Tags
    • Categories
    • Common Issues (7)
    • Linux (18)
      • Apache (1)
      • CentOS (4)
      • cPanel (9)
        • Easyapache (1)
      • Drives (1)
      • Exim (1)
      • IPTables (1)
      • MySQL (1)
      • Networking (2)
      • OpenSSH (1)
      • OpenVZ (4)
      • Subversion (1)
      • Xen (2)
    • PHP (2)
      • CakePHP (1)
      • GeSHI (1)
      • suPHP (1)
    3.4.3 5.x Apache assign ip addresses CakePHP centos Common Issues configuration connections cPanel cpuwatch demo Drives Easyapache exim ftp ftp accounts full GeSHI highlighting interface iptables ip usage libperl Linux memory usage mode MySQL network networking OpenVZ overwriting defaults password pcre perl preg_replace pure-ftpd resolv.conf subversion suPHP syntax upgrade venet0 xen yum
    • July 2011 (1)
    • June 2011 (1)
    • May 2011 (1)
    • March 2011 (1)
    • December 2010 (1)
    • November 2010 (2)
    • September 2010 (1)
    • August 2010 (2)
    • July 2010 (1)
    • April 2010 (2)
    • October 2009 (1)
    • June 2009 (1)
    • April 2009 (2)
    • March 2009 (3)
    • Install Xen 3.4.3 on CentOS 5.x (4)
    • CPUwatch (3)
    • Common Issues – Easyapache failing (2)
    • Total Memory on a Xen Node (2)
    • Common Issues – MySQL Connectivity Issues (1)
    • Simple IPTables OpenVZ Setup (1)
    • Common Issues – Hostname A Record (0)
    • Common Issues – Main Drive Full (Mounting Issues) (0)
    • Allocate x IPs to OpenVZ VEs (0)
    • Common Issues – Maxed out Apache Connections (0)
    • dennis: I'm glad to hear my script could help you! Xen's memory management is indeed odd but, overall, I...
    • Sam: I too was caught out by the Xen hypervisor's method of memory management. The Dom-0 machine is...
    • dennis: CPUWatch completely pauses processes until the load decreases, so its not ideal for services like...
    • victor: I've read several sites that talk about cpuwatch where they use the word Pause or throttled. ...
    • dennis: Hey Ben! Thanks for the comment. That's odd it didn't work for you. I've used this same method...
    • Ben: This did not work as per below: cpan> install Acme::Spork CPAN: Storable loaded ok...
    • dennis: Thanks Jimmy! Glad you enjoyed it.
    • jimmy: finally an upgrade guide that just "works" thanks
  • My latest tweets

    Loading tweets...
    Follow me on Twitter!
  • User Login






    • Lost your password?
RSS Feeds XHTML 1.1 Top