Passwordless login remote with SSH

Written by Asbjorn on March 31st, 2009

generate the public keys

user1@server1> ssh-keygen –t rsa

Generating public/private rsa key pair.
Enter file in which to save the key (/home/user1/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/user1/.ssh/id_rsa.
Your public key has been saved in /home/user1/.ssh/id_rsa.pub.
The key fingerprint is:
31:a1:c2:d7:a6:9f:27:cd:84:1f:f2:7a:e8:7c:34:80

user1@server1> cd /home/user1/.ssh
user1@server1> cp id_rsa.pub authorized_keys

Copy the file authorized_keys to server2 and it is now possible to login without password.

user1@server1> cd /home/user1/.ssh
user1@server1> scp authorized_keys server2:/home/user1/.ssh

Changing Existing Wordpress Blogs Into Silo Structures

Written by Asbjorn on March 6th, 2009

The advantage of a blog is surely that it is easy to add content.

You can optimise the blog a bit, using categories and titles in the url, but the linking inside a standard wordpress blog is, to say the least, a bit chaotic.

The best way would be is postings were linked together on the categories (topics) rather than on the date of publication.

To achieve this I wrote a wordpress plugin that will reorganise the linking between the posts dynamically. This means when I add a new post like the present it will automatically be inserted in the row of links for the categories.

silo structure of blog

So now it is only to see how the search engines will react to this.

FlexLM License Server for ClearCase

Written by Asbjorn on January 17th, 2009

With more and more users and applications with licenses, the use of a centralized license server is becoming important.

But what happens if the license server goes down.

With FlexLM it is possible to implement a redundant license server solution.

The configuration is as follows: 

1 Master License Server
2 Redundant License Servers
3 Machines in Different locations
Automatic Failover Implemented by FlexLM

hardware configuration

 

License Server allocation:

  • Master server
  • Secondary server
  • Quorum server, will never be master

Benefits:

  • High Availability
  • No single point of failure
  • Master Server down, Secondary Server takes over as Master and communicates with Quorum server
  • Secondary Server down, Master Server communicates with Quorum server
  • Quorum Server down, no change

In case of 2 servers down, Windows users with a valid license will still be able to work.
License is cached for 3 days or until the license servers come back.

The License File is generated on the IBM Rational Site

All floating licenses are added to one file (default)

In case of other products (Non IBM) the product must be added manually to this license file after generation

Copies of the license file must be on all servers (simple scp command to do this)

Automatic startup (Solaris 10)

  • smf (Service Management Facility) startup
  • All servers start at boot time
  • License available when 2 servers started
  • Dedicated user for all 3 servers created
  • Script for restart of servers from master server

FlexLM service definition in smf is named svc:/network/flexlm:flexlm

Import of the flexlm configuration file

  • svccfg import /opt/rational/config/flexlm.xml

 

cat  /opt/rational/config/flexlm.xml
<?xml version=”1.0″?>
<!DOCTYPE service_bundle SYSTEM “/usr/share/lib/xml/dtd/service_bundle.dtd.1″>

<service_bundle type=’manifest’ name=’LNFflexlm:flexlm’>

<service
        name=’network/flexlm’
        type=’service’
        version=’1′>
        <single_instance />

        <instance name=’flexlm’ enabled=’false’>
                <!–
                  Wait for network interfaces to be initialized.
                –>
                <dependency name=’network’
                    grouping=’require_all’
                    restart_on=’error’
                    type=’service’>
                    <service_fmri value=’svc:/milestone/network:default’/>
                </dependency>

                <!–
                  Wait for all local filesystems to be mounted.
                –>
                <dependency name=’filesystem-local’
                    grouping=’require_all’
                    restart_on=’none’
                    type=’service’>
                    <service_fmri
                        value=’svc:/system/filesystem/local:default’/>
                </dependency>

                <exec_method
                        type=’method’
                        name=’start’
                        exec=’/lib/svc/method/flexlm start’
                        timeout_seconds=’60′>
                        <method_context>
                                <method_credential user=’nobody’ group=’noaccess’/>
                        </method_context>
                </exec_method>
                <exec_method
                        type=’method’
                        name=’stop’
                        exec=’/lib/svc/method/flexlm stop’
                        timeout_seconds=’60′>
                        <method_context>
                                <method_credential user=’nobody’ group=’noaccess’/>
                        </method_context>
                </exec_method>
                <exec_method
                        type=’method’
                        name=’refresh’
                        exec=’/lib/svc/method/flexlm refresh’
                        timeout_seconds=’60′>
                        <method_context>
                                <method_credential user=’nobody’ group=’noaccess’/>
                        </method_context>
                </exec_method>
        </instance>

        <stability value=’Evolving’ />

        <template>
                <common_name>
                        <loctext xml:lang=’C'>
                                FLEXlm License Manager
                        </loctext>
                </common_name>
                <documentation>
                        <doc_link name=’flexlm’
                                uri=’file://@CLIENT_BASEDIR@/share/doc/flexlm/’ />
                </documentation>
        </template>
</service>
</service_bundle>

What Can We Learn From The Infomillionaire Launch

Written by Asbjorn on December 18th, 2008

Frank and Trey launched the Infomillionaire course Thursday 18th

They started out with a dry run in the morning (here in Switzerland) and had some errors with the order cart.  Mainly international orders were causing problems so they had a few hours to get that fixed.

But it was really Jason Moffatt that kept the news flowing on his TV show

Screen Shot www.profitmoffatt.tv
Screen Shot www.profitmoffatt.tv

And when Franks servers overheated, it was Jason that could keep customers informed and after the infomillionaire had been on sale for 30 minutes, Jason had sold over 100 products with 8 upsells.

Part of the show was Jason playing lil jon - dave chapelle (Yeah!) when he made a sale.

Then Jason started teaching marketing, giving critique on Corey’s magic trick website. Really good.

Jason really knows his stuff and he is looking well after his affiliate sales, I mean the hour or two that Jason have invested this afternoon is probably going to pay his rent for all next year. (114 sales with 11 upsells right now)

Even Santa Has An Second JOB. Christmas In Zurich

Written by Asbjorn on December 10th, 2008

I guess if you only have one day where you really have show up for work, it is only resonable to take a part time job the rest of the time.

Christmas Tram, Zurich Switzerland

Christmas Tram, Zurich Switzerland

Pictures From Birthday In Luxembourg

Written by Asbjorn on December 9th, 2008

Working in one country and living in another sometimes upsets the plans.

With my Birthday in the middle of the week and an 400 Km journey in each direction there was no chance of celebrating on the day.

Still, we moved the celebration a couple of days and combined it with a “support the French economy” trip to Metz.

Morning started with cake (only 1 candle)

Birthday Cake (1 candle)

 
Philip

Philip

After an extented brunch we went to Metz where we did some serious shopping.

We also came across just the right chair …

What more can you want?

What more can you want?

It turned out the seat was reserved, only the occupant had some ploblems finding parking space
for the rendeer.

Santa Have Arrived
Santa Arrived.

In all a very good day.

The Difference Between Women and Men’s brain.

Written by Asbjorn on December 8th, 2008

Funny video on the difference between Women and Men’s brain.

Latest report on #allisonbday

Written by Asbjorn on December 1st, 2008

The tweets just kept coming. The whole story is found on search.twitter.com, look for #allisonbday

Here are links from two other tweet from LisaHartwell

This isn’t the final surprise - just a little extra for you to enjoy: http://wwork.com/music/hb_allison.mp3 #allisonbday

Darn, wish could type properly - should have been #allisonbday - anyway not sure she’s ready for next surprise after http://snurl.com/6zjqi

Well, nothing like birthday surprises …

SWBN: Doh! @AllisonR Hope you’ve enjoyed your birthday surprises. Here’s one more - and this ones for keeps http://twurl.nl/dgbfr2

And then ….

Allison gets the last word.

Happy Birthday   Allison!!!!!!

Barb Strikes On Allisons Birthday #allisonbday

Written by Asbjorn on December 1st, 2008

Do we have contact with the evil twin?

“@harmonicbarbie: No Girl Geek’s birthday celebration should go by without a truly “dream-worthy” IM Guru http://is.gd/9FXI #allisonbday”

Oh, yeah, and a new clue … where will it take us ?

The Internet Never Sleeps (But I Did)

Written by Asbjorn on December 1st, 2008

Well, some hours ago I did have a look at Lisa Hartwell’s blog. I mean, the clue …

But I did not find anything and then went to bed!

A short night later and the Google reader is full of #allisonbday and the next link was there as well:

retweet: @Susan_Smith @AllisonR Happy Birthday. Keep following the clues: http://audiblemarketing.net/allisonreynolds/ #allisonbday

And the next clue points to Canada, wonder who that could be :-)

But wait there is more …

Another clue from Shannon Cole

Birthday Wishes from Newfoundland to the only girl I know with a bald pussy…. cat.. that is… #allisonbday http://is.gd/9EDK

From Vegas …

And it is spreading, here is a tweet from Ed Dale

“I hope #allisonbday watchers read my last email carefully…”

Always read the PPS!

Oh and here is the link from Susan_Smith

@allisonr Happy, happy, happy birthday #allisonbday from the Mushroom Capital of the World (Kennett Square, PA)…really! http://is.gd/9EXz

And a tweet from

@allisonr Keep your tongue in your mouth & your jaw off the floor! Happy Treasure Hunting! Muuhwaaa #allisonbday

Vince and Nathan what more can a woman wish for on her birthday

And now we present … the one and only

http://media.thirtydaychallenge.com/arbirthday.m4a #allisonbday (and if your asking they do have photos)
To be contined …