Sunday, December 26, 2010

SSH login without password

Your aim

You want to use Linux and OpenSSH to automize your tasks. Therefore you need an automatic login from host A / user a to Host B / user b. You don't want to enter any passwords, because you want to call ssh from a within a shell script.

How to do it

First log in on A as user a and generate a pair of authentication keys. Do not enter a passphrase:

a@A:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A

Now use ssh to create a directory ~/.ssh as user b on B. (The directory may already exist, which is fine):

a@A:~> ssh b@B mkdir -p .ssh
b@B's password:

Finally append a's new public key to b@B:.ssh/authorized_keys and enter b's password one last time:

a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
b@B's password:

From now on you can log into B as b from A as a without password:

a@A:~> ssh b@B hostname
B

A note from one of our readers: Depending on your version of SSH you might also have to do the following changes:

  • Put the public key in .ssh/authorized_keys2
  • Change the permissions of .ssh to 700
  • Change the permissions of .ssh/authorized_keys2 to 640

Saturday, October 23, 2010

SHAREPOINT



Capabilities & Benefits What is SharePoint?
​ Microsoft SharePoint 2010 makes it easier for people to work together. Using SharePoint 2010, your people can set up Web sites to share information with others, manage documents from start to finish, and publish reports to help everyone make better decisions. Learn more about SharePoint Capabilities
Why Use SharePoint?
The capabilities of SharePoint 2010 work together to help your company quickly respond to changing business needs. Using SharePoint 2010, your people can share ideas and expertise, create custom solutions for specific needs, and find the right business information to make better decisions. For IT, SharePoint 2010 helps you cut training and maintenance costs, save time and effort, and focus on higher business priorities.​
Benefits for: IT Professionals l Developers l End Users
Microsoft Solutions for Internet Sites
​ Discover how to expand your reach, increase customer retention, and drive revenue. Use solutions powered by Microsoft SharePoint Server for Internet Sites and Microsoft FAST Search Server for Internet Sites. Learn more about SharePoint Solutions for Internet Sites




Wednesday, May 19, 2010

Oracle

What is Oracle Database 10g Express Edition?



Oracle Database 10g Express Edition (Oracle Database XE) is a free, downloadable version of the world's most capable relational database.

Oracle Database XE is easy to install and easy to manage. With Oracle Database XE, you use the Database Home Page, an intuitive browser-based interface, to administer the database; create tables, views, and other schema objects; import, export, and view table data; run queries and SQL scripts; and generate reports.

Oracle Database XE includes Oracle HTML DB 2.1, a declarative, graphical development environment for creating database-centric Web applications. In addition to HTML DB 2.1, you can use popular Oracle and third-party languages and tools to develop your Oracle Database XE applications.

Thursday, January 21, 2010

Advantages of Using Oracle

Oracle has many advantages and features that makes it popular and thereby makes it as the world's largest enterprise software company. Oracle comes with new versions with new features implemented in new version while the features of earlier versions still being maintained. One important aspect is Oracle databases tend to be backwards compatible. Also when Oracle releases a new version, their documentation contains a list of all the features new to that version thus makes it user friendly for one to learn thenew features.

Oracle takes a lead role because of some of the following reasons:

Oracle is used for almost all large application and one of the main applications in which oracle takes its major presence is banking. In fact ten of the world’s top 10 banks run Oracle applications this is because oracle offers a powerful combination of technology and comprehensive, pre-integrated business applications, including key functionality built specifically for banks.

Some similar databases like Sybase, SQL-Server one have facilities for using loops, conditions, arrays and so on in a program and also facilities like cursors and temp tables but all this would be used in a convoluted fashion which are very slow and resource consuming operations. The operations are not implemented as inOracle which is efficient enough.

Also with the features available in oracle with the earlier versions in market the oracle company keeps upgrading and releasing new products into market, new versions releases which serves better than the earlier versions and thus the performance is improved much in later versions and thereby retaining the market growth and thus proves greater satisfaction to the customers using this technology. Thus the advantage of a higher version is that one would have more features and better capabilities.

For instance oracle 8i version has many new features which helped users namely like with oracle 8i one could run Java in the database, had features like new features on partitioning to support large database and so on. With the next version 9i oracle had these facilities maintained and had more new facilities added to it namely like new features added to help the DBA to handle change database configuration and so on.

Oracle is a database that responds very well with excellent performance in demanding environments. Oracle is a major database which along with its added features passes the ACID test, which is important in insuring the integrity of data. This is very important because data is the heart of any system in organization. A reliable and adequate database system has the following properties:


Atomicity:
That is Results of a transaction's execution are either all committed or all rolled back.


Consistency:
The database is transformed from one valid state to another valid state. Illegal transactions aren't allowed and, if an integrity constraint can't be satisfied then the transaction is rolled back.


Isolation:
The results of a transaction are invisible to other transactions until the transaction is complete thus increasing the security on data.

Durability:
Once committed (completed), the results of a transaction are permanent and survive future system and media failures and thus ensuring maintenance and protection of data.


All the above are well maintained by Oracle database.

The latest version oracle 10g has many features and one new feature is the introduction of recycle bin. This option when enabled could be used by users just like Windows recycle bin or Mac Trash. Dropped tables go "into" the recycle bin, and can be restored from the recycle bin.

One of the main advantage of oracle over other databases is in its recent version oracle has the concept of Flashback technology. That is we all know that data is the heart of any application or organization and thus this requires careful maintenance. But sometimes application outage can occur and mostly DBA claim the reasons for this as hardware failure and apart from this the reason would be human errors like accidental deletion of valuable data, deleting the wrong data, or dropping the wrong table. So it is very essential to take care of such situation and this is done in oracle's latest technology called flash introduced in its latest version. By Flash technology it helps in recovery by working just on the changed data. Thus Flashback provides an


  • Efficient recovery from human errors
  • Faster database recovery
  • Helps in simplifying the management and administration processes

and so on.



යුනිකෝඩ් වනාහි …


යුනිකෝඩ්

පරිගණක පද්ධතියෙන් ස්වායක්තව,
පරිගණක වැඩසටහනෙන් ස්වායක්තව,
හා භාෂාවෙන් ස්වායක්තව
සෑම අක්‍ෂරයකටම ඊටම අනන්‍ය වූ අංකයක් ලබා දේ.

පරිගණක මූලිකව අංක මගින් එහි කටයුතු සිදු කරයි. ඒවා වචන හා අක්‍ෂරවලට නොයෙකුත් අංක නියම කොට ඒ අංක ගබඩා කිරීම මගින් වචන හා අකුරුද ගබඩා කර ගනී. යුනිකෝඩ් ක්‍රමය සොයා ගැනීමට පෙර මෙසේ අකුරුවලට අංක නියම කිරීමට කේතන පද්ධති ඉතා විශාල ගණනක් පැවතුනි. උදාහරණයක් ලෙස යුරෝපීය සංගමයට පමණක් ඔවුන්ගේ භාෂා කේතන ක්‍රම රාශියක් අවශ්‍ය විය. එසේම එක් භාෂාවක් වන ඉංග්‍රීසි භාෂාව සඳහා එහි සියලු අක්‍ෂර, විරාම ලකුණු සහ තාක්‍ෂණික සංකේත සඳහා එක් කේතන ක්‍රමයක් නොසෑහුනි. තවද මෙම කේනත ක්‍රම එකිනෙක හා ගැටුනි. එනම් වෙනස් කේතන ක්‍රම 2කට එකම අංකය වෙනස් අක්‍ෂර දෙකකට හෝ වෙනස් අංක දෙකක් එකම අක්‍ෂරයකට යෙදිය හැක. වෙනස් කේතන ක්‍රම භාවිතයේදී ඕනෑම පරිගණකයක් (විශේෂයෙන්ම සර්වර් පරිගණක) වෙනස් කේතන ක්‍රම කීපයක් සමග ක්‍රියා කළ යුතු වේ; එහෙයින් දත්ත වෙනස් කේතන ක්‍රම හෝ පරිගණක පද්ධති හරහා ගමන් ගැනීමේදී කේතන ක්‍රමවල වෙනස හේතුවෙන් එමදත්ත විනාශ වීමට හෝ අපවිත්‍ර වීමට ඉඩ ඇත.

යුනිකෝඩ් ක්‍රමය මේ සියල්ල දැන් වෙනස් ‍කරමින් පවතී!


යුනිකෝඩ් ක්‍රමය පරිගණක පද්ධතියෙන් ස්වායක්තව, පරිගණක වැඩසටහනෙන් ස්වායක්තව හා භාෂාවෙන් ස්වායක්තව සෑම අක්‍ෂරකයකටම ඊටම අනන්‍ය වූ අංකයක් ලබා දේ. තොරතුරු හා සන්නිවේදන තාක්‍ෂණ කර්මාන්තයේ පතාක යෝදයින් වන Apple, HP, IBM , Just System, Microsoft, Oracle, SAP, Sun, Sybase, Unisys සහ තවත් බොහෝ අය විසින් යුනිකෝඩ් ප්‍රමිතිය යොදා ගෙන ඇත. තවද නවීන ප්‍රමිතීන් වන XML, Java, ECMAScript (Java Script), LDAP, CORBA 3.0, WML ආදිය ක්‍රියාත්මක කිරීම සඳහා යුනිකෝඩ් අවශ්‍ය වේ. එසේම ISO/IEC 10646 ප්‍රමිතිය හෙවත් විශ්ව අක්‍ෂර පද්ධතිය සඳහා වූ ප්‍රමිතිය ක්‍රියාත්මක කිරීමට යුනිකෝඩ් ක්‍රමය නිල ක්‍රමවේදය ලෙස යොදා ගැනේ බොහෝ පරිගණක මෙහෙයුම් පද්ධතිවල සියලුම නවීන වෙබ් බ්‍රවුසර සහ වෙනත් පරිගණක නිපැයුම් රාශියක් යුනිකෝඩ් ක්‍රමය හා අනුකූල වේ. යුනිකෝඩ් ප්‍රමිතිය භාවිතය සහ එයට සහාය වන මෙවලම් ඇතිවීම මෑතකදී ඇති වූ ගෝලීය මෘදුකාංග තාක්‍ෂණ ප්‍රවණතා අතුරින් වඩාත්ම කැපී පෙනෙන විකාශනයකි. පැරණි පද්ධතිවලින් උරුම වූ සම්ප්‍රදායික අක්‍ෂර පද්ධති වෙනුවට සේවාදායක - සේවාලාභී (client – server) පරිගණක පද්ධති සඳහා හෝ බහු-ස්ථර (multi-tiered) යෙදුම් හෝ වෙබ් අඩවි සඳහා යුනිකෝඩ් අක්‍ෂර ක්‍රමය යොදා ගැනීම සැලකිය යුතු මුල්‍ය ඉතිරි කිරීමක් උදා කරයි. තනි මෘදුකාංග නිපැයුමක් හෝ තනි වෙබ් අඩවියක් ප්‍රතිනිර්මාණයෙන් තොරව බහු පරිගණක පද්ධති (වේදිකා) බහු භාෂා සහ රටවල් හරහා ඉලක්ක කොට ගලා යාමේ හැකියාව යුනිකෝඩ් විසින් ලබා දේ. එය එකිනෙකට වෙනස් වූ බොහෝ පරිගණක පද්ධති හරහා දත්ත විනාශ වීමකින් හෝ අපවිත්‍ර වීමකින් තොර ව දත්ත ප්‍රවාහනය කිරීමේ හැකියාව සපයයි. මෙය http://www.unicode.org/standard/WhatIsUnicode.html වෙබ් පිටුවේ දැක්වෙන අන්තර්ගතයෙහි පරිවර්තනයකි