Ph: 23123495

Archive

Posts Tagged ‘howto’

How to put a picture link in your Outlook signature

March 18th, 2009

How do you put pictures in your Outlook email signature so that everyone you send email to gets a little picture, and when they click on it, it sends them to a special website of your choosing?

Well mom, that’s easy! Here’s how. But keep in mind, your screens may look a little different than mine, but it’s the same general get-r-dun process even if you’re using an older version of Outlook or Windows. I’m on 2008 server, so your mileage may vary.

Open up Outlook and go to “Tools” -> “Options”

Click on the “Mail Format” tab and then the “Signatures” button

(as shown below)

outlook signature picture link 1

Type in a name, then click the picture button

This name has nothing to do with what is shown in your signature. It’s only for you to distinguish between multiple signatures if you choose to have multiple signatures (for example: one signature for internal recipients, another for anyone outside the company). Then click OK.
outlook signature picture link 1

Next, click the little picture button.

It’s on the right side and if you hover over it, it should say something along the lines of “Insert Picture”. Find the picture file you want to use in your signature and click OK.
outlook signature picture link 1

You should see the picture in the lower window.

(The picture should be highlighted, with the little black squares on each corner as shown below.)
outlook signature picture link 1

Click on the chain button.

(make sure this is the very next thing you do.) It’s right next to the picture button that you just used to insert an image.
outlook signature picture link 1

Type in the URL in the “Address:” area.

This is the web site that you want people to go when they click on your image. You can see in the image above that I used “http://www.blog.rootninja.com/“. Type in (or cut/paste whatever URL it is you want to link to). In my example, you’ll probably want to link to a Facebook group, and not my website.

Once you’re back to the Signatures and Stationary window, (where you ended up after clicking on the Signatures button) — In the upper right area, you can choose what messages include this signature and if it should be included in replies too.

howto, microsoft howto, image, link, outlook, picture, signature, url

LDAP + Lighttpd :: Easy setup

March 5th, 2009

Enabling LDAP authentication should take you about 2 minutes, unless you type with just 2 fingers. Then maybe 3 or 4.

Uncomment “mod_auth” in /etc/lighttpd/lighttpd.conf

Enable debugging info so you can figure out whats wrong if things don’t go smoothly right off the bat.

debug.log-request-header = “enable”
debug.log-response-header = “enable”
debug.log-request-handling = “enable”
debug.log-file-not-found = “enable”

Here’s the minimal part you’ll need to get going. Add these lines to your lighttpd.conf and customize as needed.

auth.backend = “ldap”
auth.backend.ldap.hostname = “ldap1.domain.com”
auth.backend.ldap.base-dn = “dc=your.ldap.base.here”

If you don’t allow anonymous connections to your ldap, give it a user/password combination that has enough privs to do the lookups, or just use your master account if you’re just testing or don’t really care.

auth.backend.ldap.bind-dn = “cn=Manager,dc=your.ldap.base.here”
auth.backend.ldap.bind-pw = “put your plain text password here or in another file and include it!”

Now tell it what parts of your webserver you want to protect and how. You can specify any string you’d like for the realm. Here I require an LDAP user account name and password just to get to the wiki main page, and only admin can see the server-config page.

auth.require = (
“/wiki” =>
(
“method” => “basic”,
“realm” => “LDAP Guarded Entrance to the Wiki”,
“require” => “valid-user”
),
“/server-config” =>
(
“method” => “basic”,
“realm” => “Login to view the current server configuration”,
“require” => “user=admin”
) )

Restart lighttpd and you’re done. I require encrypted connections for my ldap and this works right out of the box. If you run ldapsearch -xZZ it will force encryption or die. So if you’re not seeing a bunch of entries… well there could be a ton of reasons, like no anonymous binds allowed, or perhaps there’s a firewall issue, etc. If it does work, then your ldap is probably set up right :) But you’ve already set up ldap properly before you stumbled this far, right?

Linux, howto, security howto, ldap, ldaps, lighttpd, mediawiki, mod_auth, server-config, ssl, wiki

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

Install OpenNMS network monitoring on Fedora 10

February 19th, 2009

I can’t find any installation procedures or prebuilt rpm’s for Fedora 10, so i’m going to make my own, so here goes. You may have a number of java installations. but first you’ll notice that the snapshots from the OpenNMS subversion repositories have spec files that require Sun’s JRE or JDK. I have read that you shouldn’t install Sun’s java because it will interfere with the GCJ that comes with Fedora, so you’ll break Sun’s java when you upgrade gcj next time through YUM. But I didn’t dig into that too much because the server i’m working on won’t be getting any java upgrades for awhile, or without much testing first… So either install that and be done with it or try to get openjdk to work like I did. No really, don’t continue from here. Just skip ahead and get it working, but if you really want, read on from here and you’ll see what I tried without success.

$ ./makerpm.sh

Building OpenNMS RPMs

Version: 1.7.0
Release: 0.11896.snapshot

Clean Up

[INFO] Scanning for projects…
[INFO] Reactor build order:
[INFO] OpenNMS
[INFO] OpenNMS Complex Dependencies

[INFO] OpenNMS Documentation
Downloading: http://repo.opennms.org/maven2/org/opennms/maven/plugins/tgz-maven-plugin/1.0/tgz-maven-plugin-1.0.pom
Downloading: http://repository.codehaus.org/org/opennms/maven/plugins/tgz-maven-plugin/1.0/tgz-maven-plugin-1.0.pom

Some time later it will finish… Like an hour later.

All was good at this point right? No. It didn’t create all the rpm’s for various reasons and then I just gave up on building out of their subversion tree. So I tried downloading the rpms from sourceforge and installing the sun java dependencies and jicmp to make it happy. That worked out much better.

Don’t forget to ‘install’ it so you can select it as the default java. (I really hate this “alternatives” step and I think they need to fix it. It’s awkward like trying to shoehorn some hidden gentoo package that you’re not supposed to be installing but you do anyway just to find out that its kaboom’d something else a few weeks later.)

$ sudo chmod +x jre-6u12-linux-x64-rpm.bin
$ sudo ./jre-6u12-linux-x64-rpm.bin
$ sudo alternatives –install /usr/bin/java java /opt/jre1.6.0_12/bin/java 3
$ sudo alternatives –config java
There are 3 programs which provide ‘java’.
Selection Command
———————————————–
1 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
*+ 2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
3 /opt/jre1.6.0_12/bin/java
Enter to keep the current selection[+], or type selection number: 3

Verify you’re really using the right one at this point.

$ java -version
java version “1.6.0_12″
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)

I then realized I needed to install the JDK when running ./configure for jicmp and it started complaining by saying java good, javac bad.

$ sudo ./jdk-6u12-linux-amd64.rpm

Installing JavaDB
Preparing… ########################################### [100%]
1:sun-javadb-common ########################################### [ 17%]
2:sun-javadb-core ########################################### [ 33%]
3:sun-javadb-client ########################################### [ 50%]
4:sun-javadb-demo ########################################### [ 67%]
5:sun-javadb-docs ########################################### [ 83%]
6:sun-javadb-javadoc ########################################### [100%]

Java(TM) SE Development Kit 6 successfully installed.

Now go build your jicmp rpm, and then install it. If you haven’t set up custom rpmbuild macros, I think it will look for the jicmp-1.0.9.tar.gz file in ~/rpm/SOURCES. So put it there and then when you build it, the RPMS will be in that tree under ~/rpm/RPMS

$ rpmbuild -ba jicmp.spec
$ sudo yum localinstall ~/rpm/RPMS/x86_64/jicmp-1.0.9-1.x86_64.rpm –nogpgcheck

Resolving Dependencies
–> Running transaction check
—> Package jicmp.x86_64 0:1.0.9-1 set to be updated
–> Finished Dependency Resolution

$ sudo rpm -Uvh opennms-webapp-jetty-1.6.2-1.noarch.rpm
$ sudo opennms-core-1.6.2-1.noarch.rpm
$ sudo opennms-1.6.2-1.noarch.rpm
$ sudo opennms-plugin-ticketer-centric-1.6.2-1.noarch.rpm
$ sudo opennms-remote-poller-1.6.2-1.noarch.rpm
$ sudo opennms-docs-1.6.2-1.noarch.rpm

Set up your database. If you’re using a fresh yum installed postgresql, the quickest way to get up and running is to change the security for incoming connections to “trust” in /var/lib/pgsql/data/pg_hba.conf. (I did not say safest way, smartest way, or the way YOU should do it, I just said quickest!!) But it’s not all that bad, no remote connections, just localhost stuff.

There’s really only 3 lines in this file and they look like this:

local all all ident sameuser
host all all 127.0.0.1/32 ident sameuser
host all all ::1/128 ident sameuser

Change them to this:

local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 ident sameuser

Initialize postgresql and start the database service.

$ sudo /etc/init.d/postgresql initdb
$ sudo /etc/init.d/postgresql start
Starting postgresql service: [ OK ]

Now run the OpenNMS installer and set up the database. You’ll see lots of checking and granting, a couple of done’s and maybe a WARNING or two.

$ sudo ./install -disU

And finally… start opennms.

$ sudo /opt/opennms/bin/opennms start
Starting OpenNMS: [ OK ]

This server that i’m on is headless and its name is “watchmen”, so I have to forward my X session in order to get to the login page. I’ll probably leave it this way because then I don’t have to mess with remote connection security and I already have a little hole in my iptables for ssh. But otherwise, you’re done.

ssh -Y user@watchmen firefox http://localhost:8980/opennms

Linux fedora 10, howto, Java, jdk, jre, network monitoring, openjdk, opennms, source

How to install Qingy on Fedora 8, 9, or 10

January 26th, 2009

How to install Qingy on Fedora. This will work on Fedora 8, Fedora 9, or Fedora 10. It’s all the same, so this will apply to all Fedora versions with directfb and directfb-devel in the repository. If you don’t find them in the repos, just build them from source too.

If you try to configure the Qingy source without directfb AND directfb-devel installed, it will bail. It doesn’t need anywhere the latest version of directfb, so just grab it from the standard fedora repositories.

This is the message you’ll see if you’re missing directfb-devel (or missing both directfb and directfb-devel)

checking for X11/extensions/scrnsaver.h… yes
checking for XOpenDisplay in -lX11… yes
checking for XCloseDisplay in -lX11… yes
checking for XScreenSaverQueryExtension in -lXss… yes
checking for XScreenSaverAllocInfo in -lXss… yes
checking for XScreenSaverQueryInfo in -lXss… yes
checking for pkg-config… /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0… yes
checking for DIRECTFB… no
configure: error: No package ‘directfb’ found
*** DirectFB 0.9.24 or newer is required. The latest version
*** of DirectFB is available from http://www.directfb.org/.

So start by installing Directfb and the development package with YUM
$ sudo yum search directfb

========== Matched: directfb ==========
directfb.i386 : Graphics abstraction library for the Linux Framebuffer Device
directfb.x86_64 : Graphics abstraction library for the Linux Framebuffer Device
directfb-devel.i386 : Development files for DirectFB
directfb-devel.x86_64 : Development files for DirectFB
mplayer.x86_64 : Movie player playing most video formats and DVDs
xine-lib.i386 : Xine library
xine-lib.x86_64 : Xine library
xine-lib-extras.x86_64 : Additional plugins for xine-lib

$ sudo yum install directfb


Resolving Dependencies
–> Running transaction check
—> Package directfb.x86_64 0:1.0.0-3.fc8 set to be updated
—> Package directfb.i386 0:1.0.0-3.fc8 set to be updated

–> Finished Dependency Resolution

Total download size: 2.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): directfb-1.0.0-3.fc8.i386.rpm
(2/2): directfb-1.0.0-3.fc8.x86_64.rpm

Installed:
directfb.x86_64 0:1.0.0-3.fc8
directfb.i386 0:1.0.0-3.fc8
Complete!

$ sudo yum install directfb


Resolving Dependencies
–> Running transaction check
—> Package directfb-devel.x86_64 0:1.0.0-3.fc8 set to be updated
–> Processing Dependency: libsysfs-devel for package: directfb-devel
—> Package directfb-devel.i386 0:1.0.0-3.fc8 set to be updated
–> Running transaction check
—> Package libsysfs-devel.x86_64 0:2.1.0-4.fc8 set to be updated
–> Finished Dependency Resolution

Installed:
directfb-devel.i386 0:1.0.0-3.fc8
directfb-devel.x86_64 0:1.0.0-3.fc8
Dependency Installed:
libsysfs-devel.x86_64 0:2.1.0-4.fc8
Complete!

Download the Qingy source and unpack it
$ tar -xjvf qingy-0.9.7.tar.bz2

qingy-0.9.7/
qingy-0.9.7/doc/
qingy-0.9.7/doc/version.texi

qingy-0.9.7/qingy.spec
qingy-0.9.7/ChangeLog
qingy-0.9.7/COPYING

cd into qingy and run the configuration script

$ cd qingy-0.9.7
$ ./configure
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes

config.status: creating doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands

Configuration:

Source code location: .
Target distribution: fedora
Compiler: gcc
Compiler flags: -pipe -W -Wall -Os -fomit-frame-pointer

Password library: pam
Screen savers support: yes
gpm locking support: yes
Crypto support: openssl
X support: yes
DirectFB support: yes
Libs: -lpthread -ldl -lcrypt

Install qingy as root…
$ sudo make install

Making install in src
make[1]: Entering directory `/home/ninja/Download/qingy-0.9.7/src’
Making install in libraries
make[2]: Entering directory `/home/ninja/Download/qingy-0.9.7/src/libraries’
make install-am

make[2]: Nothing to be done for `install-data-am’.
make[2]: Leaving directory `/home/ninja/Download/qingy-0.9.7′
make[1]: Leaving directory `/home/ninja/Download/qingy-0.9.7′

Now edit the /etc/inittab file. and change the terminals from mingetty to qingy. Change:

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

to

1:12345:respawn:/usr/local/sbin/qingy tty1
2:12345:respawn:/usr/local/sbin/qingy tty2
3:12345:respawn:/usr/local/sbin/qingy tty3
4:12345:respawn:/usr/local/sbin/qingy tty4
5:12345:respawn:/usr/local/sbin/qingy tty5
6:12345:respawn:/sbin/mingetty tty6

Fedora starts the gdm login manager in run level 5 by default. You can’t run them both, so if you want qingy, edit /etc/inittab and change the line:

id:5:initdefault:

to

id:3:initdefault:

If you want qingy to pop up automatically at boot you will have to configure it to run in tty1.

Here’s the options for the qingy binary:

$ ./qingy

qingy version 0.9.7

usage: qinqy [options]
Options:
-t, –text-mode
Perform a text-mode login prompt (no graphics).

-f , –fb-device
Use as framebuffer device.

-p, –hide-password
Do not show password asterisks.

-l, –hide-lastuser
Do not display last user name.

-d, –disable-lastuser
Do not remember last user name.

-n, –no-shutdown-screen
Close DirectFB mode before shutting down.
This way you will see system shutdown messages.

-r x, –resolution x
Do not detect framebuffer resolution, use this one instead.

-h, –help
Print this help message.

Linux, ooo! Shiny... fedora, howto, install, login manager, qingy, x

How to Encrypt a device using dm-crypt

January 23rd, 2009

For basic dm-crypt mappings, there’s four operations: create, remove, status, resize. But create and remove are the old way of doing things. LUKS (Linux Unified Key Setup) is a a disk encryption specification for a method that facilitates compatibility and interoperability.

You’ll need to use a device that’s empty, or one you don’t mind wiping out, because this will not encrypt the existing data. You will use an encrypted mapping to transparently read and write encrypted data so that you and your applications don’t even need to worry about handling any encryption at all; it will just work, trust me. If you need to save data that’s already on the device, then copy it somewhere else, encrypt the storage device, and copy it all back after encrypting.

To figure out which devices are already encrypted:

# cat /etc/crypttab
luks-23123495-2609-1212-9f88-bba0084aa75b UUID=23123495-2609-1212-9f88-bba0084aa75b none luks

Now create a new device:
I’m using UUIDs because I think they’re the best way to make sure you’re identifying the correct drive, especially when it’s a networked device. I mean how can you go wrong when the acronym even means “Universally Unique Identifier”. You can just use a regular old device name or label like “/dev/sda3″ or “/HOME” if you want.

# cryptsetup luksFormat blog.rootninja.com UUID=23aa4291-2609-5303-9f88-a0a0084aa757
Enter passphrase:

If you didn’t add “–verbose –verify-passphrase” when you created it, like I just did, then you better get the passphrase right the first time, because it’s not going to hold your hand and ask twice. If you mess up, don’t just delete the mapping in /dev/mapper and start over because “cryptsetup status blog.rootninja.com” will still show it as active. If you need to start over, just use cryptsetup to remove the mapping and it will handle it for you. Then use the switches when you start over so you don’t mess it up again.

How to remove an encrypted mapping:

# cryptsetup luksClose blog.rootninja.com

At this point you’ll have a new block device named “/dev/mapper/blog.rootninja.com”. You can check the status like this:

# cryptsetup status blog.rootninja.com
/dev/mapper/blog.rootninja.com is active:
cipher: aes-cbc-plain
keysize: 256 bits
device: /dev/sdb3
offset: 0 sectors
size: 208782 sectors
mode: read/write

Now create a file system on your device using the encrypted mapping:

# mkfs.ext4 -m 2 -O dir_index,uninit_bg,sparse_super /dev/mapper/blog.rootninja.com

Don’t use -m 2 if you’re encrypting something heavily used such as /usr as it’s going to reserve only %2 of the blocks for special use super-user stuff, the default is 5%. dir_index makes it use hashed b-trees to sped up lookups in large directories. uninit_bg skips initialization of the block groups. (you’re going to write through the whole thing in a minute anyway, and this is for ext4 only, so if you’re not using ext4, leave this one out). sparse_super saves space by creating fewer superblock backup copies.

Since you’re operating on the encrypted blog.rootninja.com mapping, everything gets written out encrypted. Easy stuff huh… Now that the file system is on there, you should fill it out with garbage data. But instead of using urandom or random as a data stream, just write out zero’s to the encrypted name and let the encryption do its job!

# dd if=/dev/zero of=/dev/mapper/blog.rootninja.com

And that’s it… You’re done. Here’s all the options to cryptsetup when you just run it from the command line with no arguments for the heck of it:

Usage: cryptsetup [-?vyrq] [-?|--help] [--usage] [-v|--verbose] [-c|--cipher STRING] [-h|--hash STRING] [-y|--verify-passphrase]
[-d|--key-file STRING] [-s|--key-size BITS] [-S|--key-slot INT] [-b|--size SECTORS] [-o|--offset SECTORS] [-p|--skip SECTORS]
[-r|--readonly] [-i|--iter-time msecs] [-q|--batch-mode] [--version] [-t|--timeout secs] [-T|--tries INT] [--align-payload=SECTORS]
[OPTION...] ]

If your system was mounting /dev/sda3 (or /HOME, or whatever it was), in /etc/fstab, then change that to /dev/mapper/blog.rootninja.com and make your rc.local prompt you for the password to mount that home partition, or better yet, have it look for a key file on an external drive!. Think of it like one of those little RSA tokens you need on government laptops. If you keep it on your keychain, no one can even boot your machine unless they have your keys, literally.

Linux, security device, diy, encryption, howto, LUKS

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

Howto install Fedora 10 on ReiserFS or JFS

December 30th, 2008

When you get to the first prompt when installing, instead of just letting the default continue by itself, type:

linux selinux=0 reiserfs

Replace the ‘reiserfs’ with ‘jfs’ if you want that file system.  You’ll have to include the selinux=0 because you can’t use SELinux with ReiserFS or JFS.

All too easy…[image]http://www.rootninja.com/images/darth-vader-helmet2.jpg” />

Linux fc10, fedora, howto, jfs, reiserfs, selinux

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