The importance of staying with linux built-in package management…

I just upgraded my Fedora server from 20 to 22.  (I know that I have procrastinated..)  A couple issues were encountered.  The first of which was fairly catastrophic.  After the usual fedup (FEDora UPgrade, which by the way was rather short-lived, from FC18 until FC21, being replaced along with yum by ‘dnc’) stuff, upon reboot, the server hung when it was trying to load the Gnome Desktop Manager.  I really think that was probably a problem with Gnome 3 and my hardware (since I could log in fine using ssh), so I got around this by the following:

# sudo dnf install lightdm lightdm-gtk

# sudo sustemctl disable gdm

# sudo systemctl enable lightdm

(If you haven’t set up sudo, you really should)  After those steps, a simple reboot, and presto!  Finished booting just fine.

The next problem encountered was one that fully illustrates the importance of staying within a modern Linux distribution’s built-in package management system….

Modern Linux Distributions use package managers, a partial list follows:

RPM: Used by RHEL, Fedora, CentOS, Yellow Dog, OpenSUSE….

DEB: Used by Debian and Ubuntu, Mint, SteamOS, Trisquel….

(Those were the ‘big two’, encompassing many different distributions, but there are many more….

Most people know that my server handles an icecast/ices streaming server.  However, ices 0.4 refused to start, giving the following error:

/usr/local/icecast/bin/ices: error while loading shared libraries: libperl.so.5.18: cannot open shared object file: No such file or directory

As part of the upgrade, perl was upgraded from perl 5.18 to 5.20, and libperl.so now points to libperl.so.5.20.  The problem arose from the fact that ices 2 is the version in the package repository.  However, it has no mp3 support, instead streams ogg.  So, for that reason, I had compiled by hand ices 0.4.

So, the only way to fix this libperl issue was to re-compile ices. (A good reason to keep the src of programs that you compile in your /home dir).

So, I jumped to the ices0.4 subdirectory and did the following:

# ./configure    (so that ices would pick up the new perl library)

# make

# sudo make install

After that, everything is fine, but, as I’ve always said, in a modern Linux distribution, try to minimize hand compiled programs.  Not always possible, but definitely preferred.

😎

prune (shear) command

Well, I successfully managed to get the one line command I wrote to successfully delete all security camera entries older than 100 days.  The directory had grown to about 300GB, encompassing 14 months, so it was time to weed things out a bit.

The command I wrote into an executable file in my personal path was:  find $1 -mtime +100 -exec rm -R {} \;

I saved it in my path and called it prune.  The syntax it was to expect was:  prune <directory to prune with trailing />  I was then to remove all files and directories older than 100 days.

However, it didn’t work.  I scratched my head for awhile, discovered it worked if I manually typed in the find string.  Sometimes I can be such a dumb ass.  I didn’t realize that there already was a prune command in /usr/bin/ for some kind of graphing functions.  So, I renamed MY prune command to shear, and everything works as expected.

Oh, the 300GB of security camera video was reduced to 60GB.  My next step will be to put it in a cron, so that it’s automatic….  Too  bad that I’ll never get that 45 minutes back, LOL.

CCR additions

Just to let y’all know, I sent a huge CCR upload to the server.  Besides the following albums, there are also quite a few remasters and SACD’s.  Enjoy…

CCR – 1968 – Creedence Clearwater Revival

CCR – 1969 – Bayou Country

CCR – 1969 – Creedence Country

CCR – 1969 – Green River

CCR – 1969 – Willy And The Poor Boys

CCR – 1970 – Cosmo’s Factory

CCR – 1970 – Pendulum

CCR – 1972 – Mardi Grass

CCR – 1973 – Live In Europe (Original)

CCR – 1976 – Chronicle Vol. I – The 20 Greatest Hits (24Kt Gold Disc, 1995)

CCR – 1980 – The Concert (Hybrid SACD)

CCR – 1982 – Chooglin’

CCR – 1986 – Chronicle, Vol. II – The 20 Greatest Hits (24Kt Gold Disc, 1995)

CCR – 1993 – The Legends Collection

CCR – 2000 – At The Movies

CCR – 2001 – C.C R. BOX, 20Bit K2 Super Coding Rem., 6CD

CCR – 2001 – Platinum, 2CD

CCR – 2002 – 24 Carat, 3CD

CCR – 2008 – Greatest Hits, 2CD

CCR – 2009 – Covers The Classics

CCR – 2009 – The Singles Collection, 2CD

 

Tech, music, and general ramblings…..