Archive

Posts Tagged ‘yum’

Install phpMyFAQ from scratch

May 14th, 2009

There’s a few packages you might not have installed that you’ll need before php phpMyFAQ will install. On a basic, headless virtual machine, I don’t install a web server, php or databases by default. So I’ll start from there.

Install a database.

If you want mysql:

$ sudo yum install mysql-server php-mysql

$ sudo /etc/init.d/mysql start

$ sudo /usr/bin/mysql_secure_installation

If you want postgresql:

$ sudo yum install postgresql-server php-pgsql

$ sudo /etc/init.d/postgresql initdb

$ sudo /etc/init.d/postgresql start

Install the web server.

$ sudo yum install lighttpd lighttpd-fastcgi php

Unpack phpMyFAQ under your webroot. If you use the default webroot, that would be /var/www/lighttpd/ (if you use apache, it would probably be /var/www/html/ but some distributions put it under htdocs the way apache meant it to be)

tar zxvf phpmyfaq*.tar.gz -C /var/www/lighttpd/

Optional:

Rename the phpmyfaq directory to just “faq”

Load the page in a browser. Fill out the fields and click Install! If you’re using postgres and you didn’t modify the database user and password, it’s postgres postgres. If you ran the secure installation script for mysql, it asked you to supply the password to use.

Linux apache, lighttpd, lighty, mysql, php, phpMyFAQ, postgresql, yum

How to figure out RPM dependencies

April 20th, 2009

If you have access to YUM, YAST, APTITUDE, or other such package manager, you can generally rely on these tools to sort out dependencies for you. In a modern day linux system, you can just install a package and all the dependencies are figured out, downloaded, and installed for you.

But what if your system is disconnected from the world. What if your network is a stand-alone network with no access to repositories and external stores of packages. You might need to look at an RPM file and figure out what it needs, retrieve it by hand, and install the packages yourself.

$ rpm –query –package –requires xpad-2.14-2.fc8.ppc.rpm
or simply:

$ rpm -qpR xpad-2.14-2.fc8.ppc.rpm

/bin/sh
/bin/sh
hicolor-icon-theme
libICE.so.6
libSM.so.6
libatk-1.0.so.0
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3)
libc.so.6(GLIBC_2.2)
libc.so.6(GLIBC_2.3.4)
libc.so.6(GLIBC_2.4)
libcairo.so.2
libdl.so.2
libgdk-x11-2.0.so.0
libgdk_pixbuf-2.0.so.0
libglib-2.0.so.0
libgmodule-2.0.so.0
libgobject-2.0.so.0
libgtk-x11-2.0.so.0
libpango-1.0.so.0
libpangocairo-1.0.so.0
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)

You don’t need to be root to use the rpm query commands. But you do need root privileges to install rpms.

$ rpm -Uvh zvbi-fonts-0.2.30-1.fc8.ppc.rpm

error: can't create transaction lock on /var/lib/rpm/__db.000

Linux aptitude, dependencies, install, packages, query, rpm, xpad, yast, yum

Fedora bloat begone!

April 17th, 2009

I just spent the last 45 minutes trimming the fat from a default fedora install! Forty-five minutes!!! Well I think it’s a default installation… I didn’t install the image, but one thing is for sure — this image is full of desktop crap.

Apr 17 10:42:55 Erased: rss-glx
Apr 17 10:42:57 Erased: rss-glx-gnome-screensaver
Apr 17 10:43:03 Erased: lohit-fonts-oriya
Apr 17 10:43:06 Erased: lohit-fonts-telugu
Apr 17 10:43:08 Erased: lohit-fonts-gujarati
Apr 17 10:43:11 Erased: lohit-fonts-kannada
Apr 17 10:43:13 Erased: lohit-fonts-punjabi
Apr 17 10:43:15 Erased: lohit-fonts-tamil
Apr 17 10:43:18 Erased: lohit-fonts-bengali
Apr 17 10:43:20 Erased: lohit-fonts-hindi
Apr 17 10:44:07 Erased: neverball
Apr 17 10:44:26 Erased: reiserfs-utils
Apr 17 10:44:55 Erased: pirut
Apr 17 10:45:02 Erased: pykickstart
Apr 17 10:46:14 Erased: hpijs
Apr 17 10:46:14 Erased: sane-backends
Apr 17 10:46:16 Erased: lm_sensors
Apr 17 10:46:18 Erased: hplip
Apr 17 10:46:20 Erased: net-snmp-libs
Apr 17 10:46:21 Erased: gkrellm
Apr 17 10:46:23 Erased: sane-backends-libs
Apr 17 10:46:24 Erased: libsane-hpaio
Apr 17 10:46:48 Erased: bzflag
Apr 17 10:46:57 Erased: rhgb
Apr 17 10:47:23 Erased: nvidia-driver-installer
Apr 17 10:48:26 Erased: compiz
Apr 17 10:49:05 Erased: compiz-gnome
Apr 17 10:49:07 Erased: comps-extras
Apr 17 10:49:42 Erased: vino
Apr 17 10:49:47 Erased: nspluginwrapper
Apr 17 10:50:06 Erased: pulseaudio-esound-compat
Apr 17 10:50:34 Erased: libflashsupport
Apr 17 10:50:49 Erased: alsamixergui
Apr 17 10:51:04 Erased: libbtctl
Apr 17 10:51:04 Erased: gnome-bluetooth-libs
Apr 17 10:51:05 Erased: gnokii
Apr 17 10:51:06 Erased: gnome-vfs2-obexftp
Apr 17 10:51:06 Erased: bluez-utils-cups
Apr 17 10:51:09 Erased: bluez-gnome
Apr 17 10:51:15 Erased: gnome-phone-manager
Apr 17 10:51:17 Erased: bluez-libs
Apr 17 10:52:03 Erased: emacs-common
Apr 17 10:52:04 Erased: emacs-nox
Apr 17 10:52:26 Erased: f-spot
Apr 17 10:52:49 Erased: fedora-screensaver-theme
Apr 17 10:52:50 Erased: fedorainfinity-screensaver-theme
Apr 17 10:52:53 Erased: gnome-screensaver
Apr 17 10:53:33 Erased: gnome-session
Apr 17 10:53:38 Erased: gnome-media
Apr 17 10:53:43 Erased: nautilus-cd-burner
Apr 17 10:53:51 Erased: gnome-volume-manager
Apr 17 10:54:07 Erased: gnome-applets
Apr 17 10:54:10 Erased: pgadmin3
Apr 17 10:54:16 Erased: control-center
Apr 17 10:54:19 Erased: gstreamer-tools
Apr 17 10:54:22 Erased: gstreamer-plugins-good
Apr 17 10:54:27 Erased: gstreamer
Apr 17 10:54:28 Erased: wxGTK
Apr 17 10:54:32 Erased: gnome-power-manager
Apr 17 10:54:35 Erased: gstreamer-plugins-base
Apr 17 10:55:19 Erased: eog
Apr 17 10:56:11 Erased: tetex
Apr 17 10:56:15 Erased: tetex-latex
Apr 17 10:56:17 Erased: sazanami-fonts-gothic
Apr 17 10:56:19 Erased: jomolhari-fonts
Apr 17 10:56:21 Erased: paktype-fonts
Apr 17 10:56:25 Erased: tetex-fonts
Apr 17 10:56:26 Erased: baekmuk-ttf-fonts-gulim
Apr 17 10:56:28 Erased: baekmuk-ttf-fonts-common
Apr 17 10:56:29 Erased: tetex-dvips
Apr 17 10:56:30 Erased: texinfo-tex
Apr 17 10:56:30 Erased: a2ps
Apr 17 10:57:14 Erased: cjkunifonts-uming
Apr 17 10:57:16 Erased: kacst-fonts
Apr 17 10:57:49 Erased: galculator
Apr 17 10:58:05 Erased: opengl-games-utils
Apr 17 10:58:38 Erased: pulseaudio-module-x11
Apr 17 10:58:39 Erased: pulseaudio
Apr 17 10:58:40 Erased: pulseaudio-module-gconf
Apr 17 10:59:37 Erased: gnome-doc-utils
Apr 17 10:59:38 Erased: gnome-desktop-devel
Apr 17 10:59:49 Erased: yelp
Apr 17 10:59:51 Erased: gnome-doc-utils-stylesheets
Apr 17 11:00:49 Erased: gimp
Apr 17 11:00:50 Erased: gimp-libs
Apr 17 11:00:51 Erased: gnome-backgrounds
Apr 17 11:00:52 Erased: doxygen
Apr 17 11:00:56 Erased: gimp-help
Apr 17 11:01:02 Erased: gimp-help
Apr 17 11:01:32 Erased: bug-buddy
Apr 17 11:01:41 Erased: gnome-pilot
Apr 17 11:01:43 Erased: gnome-pilot-devel
Apr 17 11:02:25 Erased: gphoto2
Apr 17 11:02:29 Erased: gthumb
Apr 17 11:02:31 Erased: gnome-audio
Apr 17 11:03:01 Erased: httpd-tools
Apr 17 11:03:01 Erased: httpd
Apr 17 11:03:05 Erased: gnome-user-share
Apr 17 11:03:12 Erased: gutenprint
Apr 17 11:03:13 Erased: gutenprint-foomatic
Apr 17 11:04:17 Erased: gparted
Apr 17 11:04:18 Erased: openvpn
Apr 17 11:04:19 Erased: NetworkManager-openvpn
Apr 17 11:04:20 Erased: parted
Apr 17 11:04:21 Erased: nash
Apr 17 11:04:22 Erased: mkinitrd
Apr 17 11:07:59 Erased: gnome-sharp
Apr 17 11:08:37 Erased: gtweakui
Apr 17 11:09:05 Erased: libXScrnSaver
Apr 17 11:09:06 Erased: libXScrnSaver-devel
Apr 17 11:10:30 Erased: libgnomeprintui22
Apr 17 11:10:34 Erased: gnome-utils
Apr 17 11:10:39 Erased: libgnomeprintui22-devel
Apr 17 11:10:43 Erased: gedit
Apr 17 11:10:47 Erased: libgnomeprint22-devel
Apr 17 11:10:48 Erased: libgnomeprint22
Apr 17 11:11:00 Erased: libtheora
Apr 17 11:11:00 Erased: libvorbis-devel
Apr 17 11:11:01 Erased: libogg
Apr 17 11:11:02 Erased: libogg-devel
Apr 17 11:11:03 Erased: libvorbis
Apr 17 11:13:09 Erased: gpm-devel
Apr 17 11:13:28 Erased: pilot-link-devel
Apr 17 11:13:28 Erased: pilot-link
Apr 17 11:13:51 Erased: pcmciautils
Apr 17 11:14:26 Erased: vnc-server
Apr 17 11:14:32 Erased: vnc-libs
Apr 17 11:14:32 Erased: vnc
Apr 17 11:25:01 Erased: openobex
Apr 17 11:25:21 Erased: vsftpd
Apr 17 11:25:42 Erased: srecord
Apr 17 11:25:59 Erased: xorg-x11-drivers
Apr 17 11:26:00 Erased: synaptics
Apr 17 11:26:18 Erased: samba
Apr 17 11:26:24 Erased: samba-common
Apr 17 11:26:25 Erased: samba-client
Apr 17 11:27:05 Erased: redhat-lsb
Apr 17 11:27:07 Erased: cups
Apr 17 11:27:12 Erased: paps
Apr 17 11:27:12 Erased: libgnomecups
Apr 17 11:27:18 Erased: ntfs-3g
Apr 17 11:27:18 Erased: ntfsprogs
Apr 17 11:28:21 Erased: file-roller
Apr 17 11:28:30 Erased: policycoreutils-gui
Apr 17 11:29:54 Erased: alsa-utils
Apr 17 11:30:09 Erased: gnome-panel-devel
Apr 17 11:30:10 Erased: gnome-libs-devel
Apr 17 11:30:11 Erased: alsa-lib-devel
Apr 17 11:30:12 Erased: libgnomeuimm26-devel
Apr 17 11:30:13 Erased: libgnome-devel
Apr 17 11:30:14 Erased: libgnomemm26-devel
Apr 17 11:30:14 Erased: libbonoboui-devel
Apr 17 11:30:15 Erased: esound-devel
Apr 17 11:30:15 Erased: libgnomeui-devel
Apr 17 11:30:17 Erased: SDL-devel
Apr 17 11:30:27 Erased: curl-devel
Apr 17 11:30:44 Erased: iwl4965-firmware
Apr 17 11:31:00 Erased: paps-libs

Ok, it’s not all junk, but I didn’t need any of this stuff for this server.

Can anyone think of any other audio related packages I can get rid of? I don’t need audio, cd burning, flashy 3d graphics, printing, image or video playback/record capabilities on this machine at all.

Uncategorized bloat, desktop, fedora, junk, server, uninstall, yum

Reinstall customized RPMs with repackage and rollback

April 8th, 2009

Here’s one very specific way to temporarily remove an RPM package where I think I want it gone, but I want to test to see how the system reacts when the package is completely removed. I dont’ want to just remove it because i’ve made some changes to the config files and perhaps I’ve spliced in a few custom binaries here and there, so it’s really iffy.

I’ll just use preload.x86_64 as an example. Here’s the files installed by the preload package.

# rpm -ql preload

/etc/logrotate.d/preload
/etc/preload.conf
/etc/rc.d/init.d/preload
/etc/sysconfig/preload
/usr/sbin/preload
/usr/share/doc/preload-0.4
/usr/share/doc/preload-0.4/AUTHORS
/usr/share/doc/preload-0.4/COPYING
/usr/share/doc/preload-0.4/ChangeLog
/usr/share/doc/preload-0.4/NEWS
/usr/share/doc/preload-0.4/README
/usr/share/doc/preload-0.4/THANKS
/usr/share/doc/preload-0.4/TODO
/usr/share/man/man8/preload.8.gz
/var/lib/preload
/var/lib/preload/preload.state
/var/log/preload.log

Now i’ll repackage it so my modifications to /etc/preload.conf are saved. This will keep the changes to any files that are listed above in the package. If you’ve added some custom files but they’re not really part of the original list of files in the rpm, this won’t know what to do, but since the conf file is part of the package, it will work just fine.

# rpm -e –repackage preload.x86_64

Now it’s gone, and I can do some testing, install more packages, whatever…

# run stuff here

Ok, time to rollback and put my preload package back on the system. I don’t need the original rpm and I don’t need to worry about any files. Since I removed it with the –repackage option, it will pull it from spool or wherever it’s stored. The key here is that i’m just sitting in some directory, any directory, and I don’t need to supply the packaged file.

# rpm -Uvh –rollback ‘3:00am’

Rollback packages (+1/-0) to Wed Apr  8 06:09:14 2009 (0x47dd277a):
Preparing...                ############################# [100%]
   1:preload                #Cleaning up repackaged packages:########(104%)
        Removing /var/spool/repackage/preload-0.8-7.fc11.x86_64.rpm:

Poof, it’s back. And my /etc/preload.conf has my custom configuration.

# yum list installed | grep preload

preload.x86_64                         0.8-7.fc11               installed

Linux broken, fix, history, install, restore, rollback, rpm, upgrade, yum

How to remove yum packages without dependencies

April 8th, 2009

I can’t figure out how to make yum ignore dependencies and I can’t find it by googling either. The yum-allowdowngrade package doesn’t do what I expected it to do. So I’ll just have to ignore yum for now and force rpm to do the job. Yum will be fine with this, it will not break at all. Yum will reflect the new versions after the splice, so it doesn’t matter that you’re not calling yum to do this.

# rpm -qa | grep gtk2

pygtk2-codegen-2.12.0-2.fc11
pygtk2-libglade-2.12.0-2.fc11
pygtk2-devel-2.12.0-2.fc11
gtk2-devel-2.12.8-2.fc11
gtk2-2.12.8-2.fc11
gtk2-2.12.8-2.fc11
pygtk2-2.12.0-2.fc11
gtk2-engines-2.12.2-1.fc11
gtk2-engines-2.12.2-1.fc11
gtk2-devel-2.12.8-2.fc11

I need to downgrade gtk2 and gtk2-devel packages without touching anything else. If I were a doctor, downgrading through yum would be the equivalent of performing a heart transplant to fix heart burn.

Transaction Summary
==========================================
Install      0 Package(s)
Update       0 Package(s)
Remove     278 Package(s)         

Is this ok [y/N]: no!

So i’ll just remove the 32 bit and 64 bit gtk2 packages manually without processing dependencies. You should not get any standard output from these commands, just right back to your prompt. If you’re really worried, echo the $? variable to make sure you got a return value of zero right after each rpm command.

# rpm -e –nodeps gtk2.i386

# rpm -e –nodeps gtk2.x86_64

# rpm -ivh gtk2-2.12.3-3.fc11.i386.rpm

Preparing...                ########################### [100%]
   1:gtk2                   ############################ [100%]

# rpm -ivh gtk2-2.12.3-3.fc11.x86_64.rpm

Preparing...                ########################### [100%]
   1:gtk2                   ############################ [100%]

# rpm -e –nodeps gtk2-devel.i386

# rpm -e –nodeps gtk2-devel.x86_64

# rpm -ivh gtk2-devel-2.12.3-3.fc11.i386.rpm

Preparing...                ############################ [100%]
   1:gtk2-devel             ############################ [100%]

# rpm -ivh gtk2-devel-2.12.3-3.fc11.x86_64.rpm

Preparing...                ############################ [100%]
   1:gtk2-devel             ############################ [100%]

The new versions show up when I ask yum to list the packages. All is good.

# yum list installed | grep gtk2

gtk2.x86_64                              2.12.3-3.fc11          installed
gtk2.i386                                2.12.3-3.fc11          installed
gtk2-devel.i386                          2.12.3-3.fc11          installed
gtk2-devel.x86_64                        2.12.3-3.fc11          installed

Linux dependencies, downgrade, gtk2, packages, remove, repository, rpm, without, yum

Install the OLPC XO’s Sugar desktop environment on Fedora 10

March 1st, 2009

$ sudo yum search sugar


Loaded plugins: fedorakmod, refresh-packagekit
rpmfusion-nonfree-updates | 2.7 kB 00:00
fedora | 2.8 kB 00:00
rpmfusion-free-updates | 2.7 kB 00:00
rpmfusion-free | 2.7 kB 00:00
adobe-linux-i386 | 951 B 00:00
rpmfusion-free-updates-source | 2.1 kB 00:00
rpmfusion-nonfree | 2.7 kB 00:00
rpmfusion-free-source | 2.1 kB 00:00
updates | 2.3 kB 00:00
updates/primary_db | 3.2 MB 00:03

======= Matched: sugar =======

automoc.x86_64 : Automatic moc for Qt 4
git-cola.noarch : A highly caffeinated git gui
ocaml-cil.x86_64 : CIL - Infrastructure for C Program Analysis and
: Transformation
ocaml-pa-monad.x86_64 : OCaml syntax extension for monads
sugar.x86_64 : OLPC desktop environment
sugar-analyze.noarch : Analysing tool for Sugar
sugar-artwork.i386 : Artwork for Sugar look-and-feel
sugar-artwork.x86_64 : Artwork for Sugar look-and-feel
sugar-base.x86_64 : Base Sugar library
sugar-browse.noarch : Browse activity for Sugar
sugar-calculator.noarch : Calculator for Sugar
sugar-chat.noarch : Chat client for Sugar
sugar-datastore.noarch : Sugar Datastore
sugar-emulator.x86_64 : The emulator for the Desktop Environment sugar
sugar-finance.noarch : Financial planning for Sugar
sugar-help.noarch : Help and Dokumentation for Sugar
sugar-imageviewer.noarch : Simple Image viewer for Sugar
sugar-journal.noarch : Journal for Sugar
sugar-jukebox.noarch : Media player activity for Sugar
sugar-log.noarch : Log activity for Sugar
sugar-memorize.noarch : Memorize for Sugar
sugar-moon.noarch : Moon phases activity for sugar
sugar-playgo.noarch : Go for Sugar
sugar-presence-service.noarch : The Sugar presence service
sugar-speak.noarch : Speak for Sugar
sugar-terminal.noarch : Terminal for Sugar
sugar-toolkit.x86_64 : Sugar toolkit
sugar-turtleart.noarch : Turtle Art activity for sugar
sugar-write.noarch : Word processor for Sugar
sugar-xoirc.noarch : IRC client for Sugar
sugar-xomail.noarch : Xomail for Sugar

Oooo an irc client… i hate the state that most of the sugar software is in. I just feel like it’s all forced, I mean what’s the big deal anyway? Is it just my XO that’s slow and boring? I’m about to put Linux on the XO, and sugar on a regular Intel desktop. How backwards is that?! Maybe sugar will be usable on a real machine.

ooo! Shiny... desktop, fedora 10, irc, olpc, sugar, xo, yum

Install bugzilla on Fedora 10 without using perl CPAN

February 26th, 2009

This howto will get bugzilla with ALL of the optional modules installed on Fedora 10. If you just want a barebones bugzilla up and running, you might want to read the whole thing and then just look for the required parts. Otherwise, you can follow me through the install and end up with all the bells and whistles.

The checksetup.pl script will tell you what you’re missing and what you need to install to get bugzilla up and running. But the problem is it pushes you to use perl’s package management to build the perl modules which may or may not work. I think it’s best to use YUM to install and manage all of your packages and not to mix and match both. This will help to avoid conflicting packages and seemingly random complaints of a package missing when it’s not.

# /usr/bin/perl -MCPAN -e ‘install Email::Send’

Can’t locate CPAN.pm in @INC (@INC contains: /usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/local/lib/perl5/site_perl /usr/local/lib64/perl5/site_perl /usr/lib/perl5/site_perl .).
BEGIN failed–compilation aborted.

It’s not working right out of the box for me anyway, so lets see if the default yum repos have everything I need… Except, I’m not using the YUM installed bugzilla. Since everything you need pretty much runs from one place, I went for the latest stable release from the bugzilla website. But first, set up localconfig. Here’s mine, yours may be in /usr/share/bugzilla/, or wherever you install bugzilla, but I moved mine out into /etc/bugzilla.

# grep “^[^#]” /etc/bugzilla/localconfig

$create_htaccess = 1;
$webservergroup = ‘apache’;
$db_driver = ‘Pg’;
$db_host = ’super_dooper_ninja_server’;
$db_name = ‘bug_ninja_database_name’;
$db_user = ‘ninja_user’;
$db_pass = ‘ninja_throwing_stars’;
$db_port = 0;
$db_sock = ”;
$db_check = 1;
$index_html = 0;
$cvsbin = ‘/usr/bin/cvs’;
$interdiffbin = ‘/usr/bin/interdiff’;
$diffpath = ‘/usr/bin’;

Run the checksetup.pl script to see what’s missing, just don’t follow its instructions.

# cd /usr/share/bugzilla/
# ./checksetup.pl

This is Bugzilla 3.2.2 on perl 5.10.0
Running on Linux 2.6.27.5-117.fc10.x86_64 #1 SMP Tue Nov 18 11:58:53 EST 2008

Checking perl modules…
Checking for CGI (v2.93) ok: found v3.38
Checking for TimeDate (v2.21) not found
Checking for DBI (v1.41) not found
Checking for PathTools (v0.84) ok: found v3.2501
Checking for Template-Toolkit (v2.12) not found
Checking for Email-Send (v2.00) not found
Checking for Email-MIME-Modifier (any) not found

Checking available perl DBD modules…
Checking for DBD-Pg (v1.45) not found
Checking for DBD-mysql (v2.9003) not found

The following Perl modules are optional:
Checking for GD (v1.20) not found
Checking for Template-GD (any) not found
Checking for Chart (v1.0) not found
Checking for GDGraph (any) not found
Checking for GDTextUtil (any) not found
Checking for XML-Twig (any) not found
Checking for MIME-tools (v5.406) not found
Checking for libwww-perl (any) not found
Checking for PatchReader (v0.9.4) not found
Checking for PerlMagick (any) not found
Checking for perl-ldap (any) not found
Checking for SOAP-Lite (any) not found
Checking for HTML-Parser (v3.40) not found
Checking for HTML-Scrubber (any) not found
Checking for Email-MIME-Attachment-Stripper (any) not found
Checking for Email-Reply (any) not found
Checking for mod_perl (v1.999022) not found
Checking for CGI (v3.11) ok: found v3.38
Checking for Apache-DBI (v0.96) not found

/usr/bin/perl -MCPAN -e ‘install Email::Send’
/usr/bin/perl -MCPAN -e ‘install Template’
/usr/bin/perl -MCPAN -e ‘install Email::MIME::Modifier’
/usr/bin/perl -MCPAN -e ‘install DBI’
/usr/bin/perl -MCPAN -e ‘install Date::Format’

PostgreSQL: /usr/bin/perl -MCPAN -e ‘install DBD::Pg’
Minimum version required: 1.45
MySQL: /usr/bin/perl -MCPAN -e ‘install DBD::mysql’
Minimum version required: 2.9003

libwww-perl: /usr/bin/perl -MCPAN -e ‘install LWP::UserAgent’
GDGraph: /usr/bin/perl -MCPAN -e ‘install GD::Graph’
GDTextUtil: /usr/bin/perl -MCPAN -e ‘install GD::Text’
Template-GD: /usr/bin/perl -MCPAN -e ‘install Template::Plugin::GD::Image’
GD: /usr/bin/perl -MCPAN -e ‘install GD’
Email-Reply: /usr/bin/perl -MCPAN -e ‘install Email::Reply’
Email-MIME-Attachment-Stripper: /usr/bin/perl -MCPAN -e ‘install Email::MIME::Attachment::Stripper’
perl-ldap: /usr/bin/perl -MCPAN -e ‘install Net::LDAP’
HTML-Scrubber: /usr/bin/perl -MCPAN -e ‘install HTML::Scrubber’
HTML-Parser: /usr/bin/perl -MCPAN -e ‘install HTML::Parser’
XML-Twig: /usr/bin/perl -MCPAN -e ‘install XML::Twig’
MIME-tools: /usr/bin/perl -MCPAN -e ‘install MIME::Parser’
Chart: /usr/bin/perl -MCPAN -e ‘install Chart::Base’
PerlMagick: /usr/bin/perl -MCPAN -e ‘install Image::Magick’
PatchReader: /usr/bin/perl -MCPAN -e ‘install PatchReader’
SOAP-Lite: /usr/bin/perl -MCPAN -e ‘install SOAP::Lite’
mod_perl: /usr/bin/perl -MCPAN -e ‘install mod_perl2′
Apache-DBI: /usr/bin/perl -MCPAN -e ‘install Apache::DBI’

I started with the postgresql dbd module and the first optional module on the list, LWP User Agent. After you install these, you’ll end up with a bunch of dependencies installed, satisfying some more requirements.

# yum install perl-LWP-UserAgent-Determined

Dependencies Resolved

========================

Package Arch Version Repository Size

========================

Installing:
perl-LWP-UserAgent-Determined noarch 1.03-3.fc9 fedora 12 k
Installing for dependencies:
perl-Compress-Raw-Zlib x86_64 2.008-56.fc10 updates 77 k
perl-Compress-Zlib x86_64 2.008-56.fc10 updates 34 k
perl-HTML-Parser x86_64 3.59-1.fc10 updates 119 k
perl-HTML-Tagset noarch 3.10-8.fc9 fedora 15 k
perl-IO-Compress-Base x86_64 2.008-56.fc10 updates 58 k
perl-IO-Compress-Zlib x86_64 2.008-56.fc10 updates 139 k
perl-libwww-perl noarch 5.823-1.fc10 updates 392 k

# yum install perl-DBD-Pg
This will install perl-DBI and perl-DBD-Pg

# yum install perl-Graph perl-GDTextUtil perl-GD perl-Email-Reply perl-LDAP perl-Chart ImageMagick-perl perl-PatchReader perl-XML-Twig perl-Apache2-SOAP perl-Apache-DBI perl-Email-MIME-Attachment-Stripper mod_perl perl-HTML-Template perl-Mail-Sendmail

This will install a lot of dependencies… (here’s just a few)

Dependencies Resolved

========================

Package Arch Version Repository Size

========================

Installing:
perl-Chart noarch 2.4.1-6.fc9 fedora 321 k
perl-Email-Reply noarch 1.202-2.fc9 fedora 19 k
perl-GD x86_64 2.39-1.fc10 fedora 231 k
perl-GDTextUtil noarch 0.86-11.fc9 fedora 77 k
perl-Graph noarch 0.84-3.fc10 fedora 137 k
perl-LDAP noarch 1:0.34-4.fc9 fedora 328 k
Installing for dependencies:
perl-Convert-ASN1 noarch 0.21-3.fc9 fedora 42 k
perl-Email-Abstract noarch 2.134-3.fc9 fedora 31 k
perl-Email-Address noarch 1.888-3.fc9 fedora 36 k
perl-Email-MIME noarch 1.861-3.fc9 fedora 20 k
perl-Email-MIME-ContentType noarch 1.014-3.fc9 fedora 17 k
perl-Email-MIME-Creator noarch 1.454-2.fc9 fedora 18 k
perl-Email-MIME-Encodings noarch 1.311-3.fc9 fedora 7.9 k
perl-Email-MIME-Modifier noarch 1.442-3.fc9 fedora 12 k
perl-Email-MessageID noarch 1.351-3.fc9 fedora 8.1 k
perl-Email-Simple noarch 2.003-3.fc9 fedora 30 k
perl-Email-Simple-Creator noarch 1.424-2.fc9 fedora 16 k
perl-IO-Socket-SSL noarch 1.18-1.fc10 updates 65 k
perl-MIME-Types noarch 1.23-3.fc9 fedora 31 k
perl-Net-LibIDN x86_64 0.11-1.fc10 updates 39 k
perl-Net-SSLeay x86_64 1.35-1.fc10 fedora 241 k
perl-XML-LibXML x86_64 1:1.66-2.fc10 fedora 413 k
perl-XML-LibXML-Common x86_64 0.13-13.fc9 fedora 19 k
perl-XML-NamespaceSupport noarch 1.09-4.fc9 fedora 16 k
perl-XML-SAX noarch 0.16-5.fc9 fedora 78 k

Now you should just be missing 2 required modules:

/usr/bin/perl -MCPAN -e ‘install Email::Send’
/usr/bin/perl -MCPAN -e ‘install Template’

and 4 optional features:

GDGraph: /usr/bin/perl -MCPAN -e ‘install GD::Graph’
Template-GD: /usr/bin/perl -MCPAN -e ‘install Template::Plugin::GD::Image’
HTML-Scrubber: /usr/bin/perl -MCPAN -e ‘install HTML::Scrubber’
MIME-tools: /usr/bin/perl -MCPAN -e ‘install MIME::Parser’

Finish them up with one last batch of installations:
# yum install perl-Email-Send perl-Template-GD perl-MIME-tools perl-Email-MIME perl-HTML-Scrubber

Now when you run checksetup, there should be no missing modules, required or optional.
# ./checksetup.pl

This is Bugzilla 3.2.2 on perl 5.10.0
Running on Linux 2.6.27.5-117.fc10.x86_64 #1 SMP Tue Nov 18 11:58:53 EST 2008

Checking perl modules…
Checking for CGI (v2.93) ok: found v3.38
Checking for TimeDate (v2.21) ok: found v2.22
Checking for DBI (v1.41) ok: found v1.607
Checking for PathTools (v0.84) ok: found v3.2501
Checking for Template-Toolkit (v2.12) ok: found v2.19
Checking for Email-Send (v2.00) ok: found v2.192
Checking for Email-MIME-Modifier (any) ok: found v1.442

Checking available perl DBD modules…
Checking for DBD-Pg (v1.45) ok: found v2.11.6
Checking for DBD-mysql (v2.9003) not found

The following Perl modules are optional:
Checking for GD (v1.20) ok: found v2.39
Checking for Template-GD (any) ok: found v1.56
Checking for Chart (v1.0) ok: found v2.4.1
Checking for GDGraph (any) ok: found v1.44
Checking for GDTextUtil (any) ok: found v0.86
Checking for XML-Twig (any) ok: found v3.32
Checking for MIME-tools (v5.406) ok: found v5.427
Checking for libwww-perl (any) ok: found v5.823
Checking for PatchReader (v0.9.4) ok: found v0.9.5
Checking for PerlMagick (any) ok: found v6.4.0
Checking for perl-ldap (any) ok: found v0.34
Checking for SOAP-Lite (any) ok: found v0.710.07
Checking for HTML-Parser (v3.40) ok: found v3.59
Checking for HTML-Scrubber (any) ok: found v0.08
Checking for Email-MIME-Attachment-Stripper (any) ok: found v1.314
Checking for Email-Reply (any) ok: found v1.202
Checking for mod_perl (v1.999022) ok: found v2.000004
Checking for CGI (v3.11) ok: found v3.38
Checking for Apache-DBI (v0.96) ok: found v1.07
Reading /etc/bugzilla/localconfig…
Checking for DBD-Pg (v1.45) ok: found v2.11.6
There was an error connecting to PostgreSQL:

FATAL: role “bugzilla” does not exist

This might have several reasons:

PostgreSQL is not running.
PostgreSQL is running, but there is a problem either in the
server configuration or the database access rights. Read the Bugzilla
Guide in the doc directory. The section about database configuration
should help.
Your password for the ‘bugzilla’ user, specified in $db_pass, is
incorrect, in ‘/etc/bugzilla/localconfig’.
There is a subtle problem with Perl, DBI, or PostgreSQL. Make
sure all settings in ‘/etc/bugzilla/localconfig’ are correct. If all else fails, set
‘$db_check’ to 0.

Time to move on to the database setup. If you’re using MySQL it will be a little different.

Install postgresql and get it up and running using /etc/init.d/postgresql initdb.

Here’s what I already have installed and running.

postgresql.x86_64 8.3.6-1.fc10 installed
postgresql-devel.x86_64 8.3.6-1.fc10 installed
postgresql-libs.x86_64 8.3.6-1.fc10 installed
postgresql-python.x86_64 8.3.6-1.fc10 installed
postgresql-server.x86_64 8.3.6-1.fc10 installed

This should let you connect without a password on a vanilla installation:
# psql -U postgres

Welcome to psql 8.3.6, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

postgres=#

Create the user, then create the database. If you already have them setup, just make sure you go back and make sure the localconfig.pm matches.

User:

postgres=# create user ninja_user with password ‘ninja_throwing_stars’;
CREATE ROLE

Database:

postgres=# create database bug_ninja_database_name with owner=ninja_user;
CREATE DATABASE

Now when you run checksetup.pl, you should get a bunch of messages as it makes a new home in your freshly installed database.

Adding foreign key: watch.watched -> profiles.userid…
Adding foreign key: whine_events.owner_userid -> profiles.userid…
Adding foreign key: whine_queries.eventid -> whine_events.id…
Adding foreign key: whine_schedules.eventid -> whine_events.id…
Creating group admin…
Creating group tweakparams…
Creating group editusers…
Creating group creategroups…
Creating group editclassifications…
Creating group editcomponents…
Creating group editkeywords…
Creating group editbugs…
Creating group canconfirm…
Creating group bz_canusewhines…
Creating group bz_sudoers…
Creating group bz_canusewhineatothers…
Creating group bz_sudo_protect…
Adding a new user setting called ’skin’
Adding a new user setting called ‘quote_replies’
Adding a new user setting called ‘lang’
Adding a new user setting called ‘post_bug_submit_action’
Adding a new user setting called ‘per_bug_queries’
Adding a new user setting called ‘zoom_textareas’
Adding a new user setting called ‘csv_colsepchar’
Adding a new user setting called ’state_addselfcc’
Adding a new user setting called ‘comment_sort_order’
Adding a new user setting called ‘display_quips’

Looks like we don’t have an administrator set up yet.
Either this is your first time using Bugzilla, or your
administrator’s privileges might have accidentally been deleted.

Enter the e-mail address of the administrator: ninjas
Enter the real name of the administrator: ninja ninja
Enter a password for the administrator account:
Please retype the password to verify: abcdefg
ninja@ninjasninjasninjas.com is now set up as an administrator.
Creating default classification ‘Unclassified’…
Creating initial dummy product ‘TestProduct’…

Now that you have installed Bugzilla, you should visit the
‘Parameters’ page (linked in the footer of the Administrator
account) to ensure it is set up as you wish - this includes
setting the ‘urlbase’ option to the correct URL.

Done!

Linux, howto bugzilla, cpan, fedora, fedora 10, howto, mcpan, perl, yum

Yum Upgrade from Fedora 8 to Fedora 10

January 18th, 2009

Fedora 8 has just reached the end of support. If you insist on doing a yum upgrade instead of just saving your home partition and reinstalling the rest, here’s how to do the upgrade. It might help if you keep your fingers crossed while doing all the typing.

I just successfully upgraded my Fedora 8 text-only firewall and samba server using yum. Here are my notes from the process.

mkdir -p /root/upgrade/f8-f10
cd /root/upgrade/f8-f10
# gather info for potential recovery later
tar -C / -czf etc.tgz etc
rpm -qa –qf ‘%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n’ | sort > rpm.ls.f8
chkconfig –list > chkconfig.ls.f8
ifconfig > ifconfig
route -n > route-n
df -h > df-h
cp -p /boot/grub/grub.conf grub.conf.f8

# start the upgrade process
rpm -Uvh ftp://download.fedora.redhat.com/pub/fedora/linux/releases/10/Fedora/i38…
mv /etc/yum.repos.d/fedora-updates.repo.rpmnew /etc/yum.repos.d/fedora-updates.repo
mv /etc/yum.repos.d/fedora.repo.rpmnew /etc/yum.repos.d/fedora.repo

yum clean all

# tried toupgrade some core packages first.
# i hit a conflict, so had to resolve that…
yum update rpm\* yum\*
# file /usr/share/man/man5/dhcp-eval.5.gz from install of
# dhcp-4.0.0-33.fc10.i386 conflicts with file from package
# dhclient-3.0.6-12.fc8.i386
# file /usr/share/man/man5/dhcp-options.5.gz from install of
# dhcp-4.0.0-33.fc10.i386 conflicts with file from package
# dhclient-3.0.6-12.fc8.i386
rpm -e dhclient

yum update rpm\* yum\*
# Install 26 Package(s)
# Update 136 Package(s)
# Remove 0 Package(s)
# Total download size: 175 M

# WARNING: At this point
# named is off, fix named.conf error and start named so yum works
# vi is broken, so use nano

# replace packages removed for conflicts
yum install dhclient

yum upgrade
# Install 56 Package(s)
# Update 338 Package(s)
# Remove 0 Package(s)
# Total download size: 257 M

yum groupupdate Base
# Install 59 Package(s)
# Update 0 Package(s)
# Remove 0 Package(s)
# Total download size: 49 M

yum clean all

# make sure grub is installed on my boot device
grub-install /dev/sda

# gather some post upgrade data
rpm -qa –qf ‘%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n’ | sort > rpm.ls.f10

wc -l rpm.ls.f*
# 638 rpm.ls.f10
# 512 rpm.ls.f8

chkconfig –list > chkconfig.ls.f10
diff chkconfig.ls.f8 chkconfig.ls.f10|grep ‘:on’
# < ConsoleKit 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# > NetworkManager 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# > bluetooth 0:off 1:off 2:off 3:on 4:on 5:on 6:off
# < kudzu 0:off 1:off 2:off 3:on 4:on 5:on 6:off
# > pcscd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# > portreserve 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# < readahead_early 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# < readahead_later 0:off 1:off 2:off 3:off 4:off 5:on 6:off
# > stinit 0:off 1:off 2:on 3:on 4:on 5:on 6:off

# turn off new stuff that i don’t need or want
chkconfig NetworkManager off
chkconfig bluetooth off
chkconfig pcscd off

# adjust any changes in start order for daemons
pushd /etc/rc.d/init.d
for f in *; do /sbin/chkconfig $f resetpriorities; done
popd

# remove old pkgs no longer found in an active yum repository
for pkg in `package-cleanup –orphans|egrep -v ‘^Setting up yum’`; do
echo “Removing $pkg”;
rpm -e $pkg;
done

It would also be good to look through rpm.ls.f10 and remove any packages you don’t want or need.

Reboot. I recommend booting into single user the first time, just to reduce the variables for the trial run. Once things look ok, press ^D to logout and allow the system to finish booting to its default run level.

http://tofu.org/drupal/node/73“>From tofu.org

Linux fedora 10, fedora 8, howto, upgrade, yum

Install video drivers and Compiz 3-D desktop effects on Fedora 10 in just 3 commands!

December 1st, 2008

This is how-to-Install 3D desktop effects on a vanilla Fedora 10 installation (I tried this on a freshly installed Fedora 10, installed from DVD).  Basically all you need to do is get 3d hardware acceleration enabled for your video card and then install the fusion-icon package and reboot. In the past this was easier said than done.

rotating compiz desktop cube in fedora 10rotating compiz desktop cube in fedora 10

rotating compiz desktop cube in fedora 10rotating compiz desktop cube in fedora 10

First Install the new rpmfusion non-free repositories.  Rpmfusion is a new set of repositories that’s putting all the free and non-free repos like livna and freshrpms together in one place.  Install your video driver kernel module, install fusion-icon, and reboot.  YUM will handle all the compiz dependencies for you.  Here’s the three steps along with their output.

rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
Retrieving http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
warning: /var/tmp/rpm-tmp.PIcyrO: Header V3 DSA signature: NOKEY, key ID b1981b68
Preparing…                ########################################### [100%]
1:rpmfusion-nonfree-relea########################################### [100%]

[admica@myhost ~]$ sudo yum install kmod-nvidia

yum install kmod-nvidia
Loaded plugins: fedorakmod, refresh-packagekit
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
–> Running transaction check
—> Package kmod-nvidia.x86_64 0:177.82-1.fc10.4 set to be updated
–> Processing Dependency: kmod-nvidia-2.6.27.5-117.fc10.x86_64 = 177.82-1.fc10.4 for package: kmod-nvidia
–> Running transaction check
—> Package kmod-nvidia-2.6.27.5-117.fc10.x86_64.x86_64 0:177.82-1.fc10.4 set to be updated
–> Processing Dependency: nvidia-kmod-common >= 177.82 for package: kmod-nvidia-2.6.27.5-117.fc10.x86_64
–> Running transaction check
—> Package xorg-x11-drv-nvidia.x86_64 0:177.82-1.fc10 set to be updated
–> Processing Dependency: xorg-x11-drv-nvidia-libs-x86_64 = 177.82-1.fc10 for package: xorg-x11-drv-nvidia
–> Processing Dependency: livna-config-display >= 0.0.21 for package: xorg-x11-drv-nvidia
–> Processing Dependency: livna-config-display for package: xorg-x11-drv-nvidia
–> Running transaction check
—> Package xorg-x11-drv-nvidia-libs.x86_64 0:177.82-1.fc10 set to be updated
—> Package livna-config-display.noarch 0:0.0.22-1.fc10 set to be updated
–> Processing Dependency: system-config-display for package: livna-config-display
–> Running transaction check
—> Package system-config-display.noarch 0:1.1.1-1.fc10 set to be updated
–> Processing Dependency: rhpxl >= 0.34-1 for package: system-config-display
–> Running transaction check
—> Package rhpxl.x86_64 0:1.9-3.fc10 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================

Package                                                Arch                     Version                           Repository                           Size

=================================================================================================================================================

Installing:
kmod-nvidia                                            x86_64                   177.82-1.fc10.4                   rpmfusion-nonfree                    23 k
Installing for dependencies:

kmod-nvidia-2.6.27.5-117.fc10.x86_64                   x86_64                   177.82-1.fc10.4                   rpmfusion-nonfree                   2.5 M
livna-config-display                                   noarch                   0.0.22-1.fc10                     rpmfusion-nonfree                    65 k
rhpxl                                                  x86_64                   1.9-3.fc10                        fedora                               98 k
system-config-display                                  noarch                   1.1.1-1.fc10                      fedora                              193 k
xorg-x11-drv-nvidia                                    x86_64                   177.82-1.fc10                     rpmfusion-nonfree                   3.5 M
xorg-x11-drv-nvidia-libs                               x86_64                   177.82-1.fc10                     rpmfusion-nonfree                   6.2 M

Transaction Summary

=================================================================================================================================================

Install      7 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 13 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): kmod-nvidia-177.82-1.fc10.4.x86_64.rpm                                                                                         |  23 kB     00:00
(2/7): livna-config-display-0.0.22-1.fc10.noarch.rpm                                                                                  |  65 kB     00:01
(3/7): rhpxl-1.9-3.fc10.x86_64.rpm                                                                                                    |  98 kB     00:00
(4/7): system-config-display-1.1.1-1.fc10.noarch.rpm                                                                                  | 193 kB     00:00
(5/7): kmod-nvidia-2.6.27.5-117.fc10.x86_64-177.82-1.fc10.4.x86_64.rpm                                                                | 2.5 MB     00:52
(6/7): xorg-x11-drv-nvidia-177.82-1.fc10.x86_64.rpm                                                                                   | 3.5 MB     01:07
(7/7): xorg-x11-drv-nvidia-libs-177.82-1.fc10.x86_64.rpm                                                                              | 6.2 MB     02:01
————————————————————————————————————————————————————-
Total                                                                                                                         53 kB/s |  13 MB     04:04
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID b1981b68
rpmfusion-nonfree/gpgkey                                                                                                              | 1.7 kB     00:00
Importing GPG key 0xB1981B68 “RPM Fusion repository (Fedora - nonfree) <rpmfusion-buildsys@lists.rpmfusion.org>” from /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : rhpxl                                                                                                                                 1/7
Installing     : system-config-display                                                                                                                 2/7
Installing     : livna-config-display                                                                                                                  3/7
Installing     : kmod-nvidia                                                                                                                           4/7
Installing     : kmod-nvidia-2.6.27.5-117.fc10.x86_64                                                                                                  5/7
Installing     : xorg-x11-drv-nvidia                                                                                                                   6/7
Installing     : xorg-x11-drv-nvidia-libs                                                                                                              7/7

Installed:
kmod-nvidia.x86_64 0:177.82-1.fc10.4

Dependency Installed:
kmod-nvidia-2.6.27.5-117.fc10.x86_64.x86_64 0:177.82-1.fc10.4 livna-config-display.noarch 0:0.0.22-1.fc10 rhpxl.x86_64 0:1.9-3.fc10
system-config-display.noarch 0:1.1.1-1.fc10                   xorg-x11-drv-nvidia.x86_64 0:177.82-1.fc10  xorg-x11-drv-nvidia-libs.x86_64 0:177.82-1.fc10

Complete!

[admica@myhost ~]$ sudo yum install fusion-icon

Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
–> Running transaction check
—> Package fusion-icon.noarch 0:0.1.0-0.3.5e2dc9git.fc10 set to be updated
–> Processing Dependency: fusion-icon-ui=0.1.0-0.3.5e2dc9git.fc10 for package: fusion-icon
–> Processing Dependency: ccsm for package: fusion-icon
–> Running transaction check
—> Package fusion-icon-qt.noarch 0:0.1.0-0.3.5e2dc9git.fc10 set to be updated
–> Processing Dependency: PyQt4 for package: fusion-icon-qt
—> Package ccsm.noarch 0:0.7.6-2.fc10 set to be updated
–> Processing Dependency: compizconfig-python >= 0.7.6 for package: ccsm
–> Processing Dependency: libcompizconfig >= 0.7.6 for package: ccsm
–> Processing Dependency: python-sexy for package: ccsm
–> Running transaction check
—> Package PyQt4.x86_64 0:4.4.3-1.fc10 set to be updated
–> Processing Dependency: sip >= 4.7.7 for package: PyQt4
—> Package compizconfig-python.x86_64 0:0.7.6-1.fc10 set to be updated
—> Package libcompizconfig.x86_64 0:0.7.6-2.fc10 set to be updated
—> Package python-sexy.x86_64 0:0.1.9-6.fc10 set to be updated
–> Running transaction check
—> Package sip.x86_64 0:4.7.7-3.fc10 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================

Package                         Arch               Version                                 Repository          Size

=========================================================================================================

Installing:
fusion-icon                     noarch             0.1.0-0.3.5e2dc9git.fc10                fedora              43 k
Installing for dependencies:
PyQt4                           x86_64             4.4.3-1.fc10                            fedora             3.1 M
ccsm                            noarch             0.7.6-2.fc10                            fedora             679 k
compizconfig-python             x86_64             0.7.6-1.fc10                            fedora              43 k
fusion-icon-qt                  noarch             0.1.0-0.3.5e2dc9git.fc10                fedora             6.7 k
libcompizconfig                 x86_64             0.7.6-2.fc10                            fedora              63 k
python-sexy                     x86_64             0.1.9-6.fc10                            fedora              24 k
sip                             x86_64             4.7.7-3.fc10                            fedora             237 k

Transaction Summary

=========================================================================================================

Install      8 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 4.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/8): fusion-icon-qt-0.1.0-0.3.5e2dc9git.fc10.noarch.rpm                                     | 6.7 kB     00:00
(2/8): python-sexy-0.1.9-6.fc10.x86_64.rpm                                                    |  24 kB     00:00
(3/8): fusion-icon-0.1.0-0.3.5e2dc9git.fc10.noarch.rpm                                        |  43 kB     00:00
(4/8): compizconfig-python-0.7.6-1.fc10.x86_64.rpm                                            |  43 kB     00:00
(5/8): libcompizconfig-0.7.6-2.fc10.x86_64.rpm                                                |  63 kB     00:00
(6/8): sip-4.7.7-3.fc10.x86_64.rpm                                                            | 237 kB     00:00
(7/8): ccsm-0.7.6-2.fc10.noarch.rpm                                                           | 679 kB     00:01
(8/8): PyQt4-4.4.3-1.fc10.x86_64.rpm                                                          | 3.1 MB     00:05
———————————————————————————————————————
Total                                                                                475 kB/s | 4.2 MB     00:09
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : libcompizconfig                                                                               1/8
Installing     : compizconfig-python                                                                           2/8
Installing     : python-sexy                                                                                   3/8
Installing     : sip                                                                                           4/8
Installing     : PyQt4                                                                                         5/8
Installing     : ccsm                                                                                          6/8
Installing     : fusion-icon                                                                                   7/8
Installing     : fusion-icon-qt                                                                                8/8

Installed:
fusion-icon.noarch 0:0.1.0-0.3.5e2dc9git.fc10

Dependency Installed:
PyQt4.x86_64 0:4.4.3-1.fc10                           ccsm.noarch 0:0.7.6-2.fc10
compizconfig-python.x86_64 0:0.7.6-1.fc10             fusion-icon-qt.noarch 0:0.1.0-0.3.5e2dc9git.fc10
libcompizconfig.x86_64 0:0.7.6-2.fc10                 python-sexy.x86_64 0:0.1.9-6.fc10
sip.x86_64 0:4.7.7-3.fc10

Complete!

Now reboot and the next time gnome/kde/xfce/whatever runs, you can open a terminal and run fusion-icon and it will handle loading the 3d environment for you.

[admica@myhost ~]$ fusion-icon &

* Detected Session: unknown
* Searching for installed applications…
* NVIDIA on Xorg detected, exporting: __GL_YIELD=NOTHING
* Using the GTK Interface
* Interface not installed
… Trying another interface

blah blah blah, and it works…  To get better looking themes, try installing emerald and emerald-themes.

Linux, ooo! Shiny... compiz, fusion-icon, howto, install, kmod-nvidia, nvidia, rpmfusion, x11, yum

How to install a specific version of some rpm with YUM

November 23rd, 2008

You want to install a special version of openssl that’s not the latest release, but some other app requires that specific one — how do you do it?

Lets assume you don’t have the right repository installed, and you need to set that up first.  If you’re looking for some package that you know is in freshrpms or livna, then right out of the box, the default fedora installation won’t look in those repositories.  So import the GPG key and add the repo file.

The –import lets the gpg check pass, and will fail if someone tries to stick a bad package in their repo, unless they’ve gotten ahold of their key a-la the fedora fiasco a few months ago.  But don’t worry about any of that right now.  Just import the key or else yum will complain when you try to install anything.  The 2nd line “rpm -ivh”, that’s going to install a package.  The package will have the .repo file, and it will put it in /etc/yum.repos.d/  that’s what really enables you to search in freshrpms.

Here’s another one, installing livna this time (livna is great for nvidia and ati drivers.  They compile the video drivers for specific kernels and package them for you.)

Now onto installing a specific version of something.  If you know what you’re looking for, say openssl for example, put the version after the package name when you install it from the command line.  You can also specify the architecture and distribution release version too.  But when that doesn’t work, try this:

Find a mirror somewhat geographically close to you, or one that you know will serve your requests fast, and click on “http”.  I’ll choose mirrors.kernel.org.  At this point you’ll be in a basic directory browsing mode.
<a href="http://mirrors.kernel.org/fedora/?C=N;O=D">Name</a>                    <a href="http://mirrors.kernel.org/fedora/?C=M;O=A">Last modified</a>      <a href="http://mirrors.kernel.org/fedora/?C=S;O=A">Size</a>
<hr /><a href="http://mirrors.kernel.org/">Parent Directory</a>                             -
<a href="http://mirrors.kernel.org/fedora/core/">core/</a>                   17-Oct-2006 12:46    -
<a href="http://mirrors.kernel.org/fedora/development/">development/</a>            23-Nov-2008 06:30    -
<a href="http://mirrors.kernel.org/fedora/extras/">extras/</a>                 18-Jun-2007 21:00    -
<a href="http://mirrors.kernel.org/fedora/releases/">releases/</a>               18-Nov-2008 22:12    -
<a href="http://mirrors.kernel.org/fedora/updates/">updates/</a>                21-Nov-2008 19:16
From here I clicked updates, then 9, then x86_64.newkey and ended up here: http://mirrors.kernel.org/fedora/updates/9/x86_64.newkey/  with a huge list of packages.
Find the package you want, http://mirrors.kernel.org/fedora/updates/9/x86_64.newkey/openssl-0.9.8g-9.fc9.i686.rpm“>openssl-0.9.8g-9.fc9.i686.rpm for example, and download it.
Find this file in a terminal.  It’s probably going to download to your home directory, or ~/Desktop but that all depends on how your browser is set up.  Once you’re there, here’s the line to install it properly.

$ sudo yum localinstall openssl-0.9.8g-9.fc9.i686.rpm

The end result is exactly the same as if you installed from the repository.

Linux fedora, howto, install, repo, yum


You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser
Mobilytics