Sunday, October 23, 2011

How to generate an SSH key with Linux?


You can generate a SSH key in Linux using the ssh-keygen command. You should run it in the command line. You will be asked for a file in which the key should be saved to and for a passphrase (password) for the key:

user@localhost: ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in id_dsa.
Your public key has been saved in id_dsa.pub.
The key fingerprint is:
16:8e:e8:f2:1d:c9:b9:cf:43:9a:b3:3c:c1:1f:95:93 user@localhost

This will create a private key written to /home/user/.ssh/id_dsa and a public key written to/home/user/.ssh/id_dsa.pub. The passphrase is used to protect your key. You will be asked for it when you connect via SSH.

Tuesday, October 18, 2011

Alfresco 4 on amazon AWS


1. catch your ubuntu at:

http://alestic.com/



2. get alfresco quckstart package at:

http://code.google.com/p/alfresco-ubuntu-qs/


or 1 click installation when following this post:

http://blogs.alfresco.com/wp/wabson/2011/10/16/alfresco-4-0-in-amazon-ec2/



Thursday, October 6, 2011

No - the pagerank did not die today.

There are numberless complaints in the forums that the Google PageRank went missing in action and is no longer working.
The issue is not with Toolbar PageRank. Google appears to have disabled the display of PageRank on browser toolbars and online ranking checkers. It  is causd by Google's lookup URL for the Pagerank. Toolbar plugins, such as SEOQuake and SEOBook, which had been displaying the Google PageRank for the site being viewed are now showing as either N/A or 0.

Sunday, October 2, 2011

Move Typo3 to a new host.


To move your TYPO3 site from one host to another, you will need an FTP Client and access to an online database tool (such as phpMyAdmin). Begin the process by logging into your online account with your FTP Client. For this How To, we'll demo Firefox's FireFTP extension (which is free).
  1. First, using an FTP Client, such as FireFTP (shown), Connect to your current hosting account.
  2. Download to your local computer all the directories and files in the following directories:

    /fileadmin
    /t3lib
    /typo3
    /typo3conf
    /typo3temp
    /uploads
    index.php

    This download may take a good bit of time, even with a fast connection.
  3. When the download is complete, open the /typo3conf on your local computer and delete all the files that begin with temp_
  4. Next, log in to the original hosting account and access your online database tool (generally, login to phpMyAdmin).
  5. When you've logged in,select your TYPO3 database from the dropdown menu on the left and then click the Export tab.
  6. Leave all the options at their default settings. Scroll to the bottom of the page and check the "Save as file" box and then click the Go button.
  7. Save the file to your local computer.
  8. If the File name field is blank, enter the name of your database here. Then press Go.
  9. When the database export is complete, log in to your new host's server with your FTP Client and upload all the TYPO3 directories and files (do not upload the .sql file that you exported in the previous step).

    Again, this process will likely take some time, even with a fast connection.
  10. When the files are all uploaded, you will need to change the permissions recursively for /fileadmin, /typo3conf, /typo3temp, /uploads, and index.php to chmod 777. (FlashFXP, Filezilla, and Firefox's FireFTP extension all include recursive features).

    Click Read, Write, and Execute for Owner, Group, and Public groups. Then ensure All Contained Files and All Contained Folders are checked as well.
  11. Click Okay and wait. Again, this isn't always a speedy process.
  12. Next, you will need to do some detective work to find out how to create a database, database user, and connect the two on your new server. Typically, the information can be found on your host's support pages.

    Once a new database has been created and set up, use your online databae tool (phpMyAdmin) to import the database you've saved on your local computer.  (Save the User Login and Password for later.)
  13. Click the Import tab.
  14. Click Browse to find your saved .sql database file on your local computer. Select it and then scroll to the bottom of this page and click the Go button.
  15. With these steps done, it's time to log in to the Install Tool. Open your browswer and type the following in the address bar:
  16. www.YOUR_SITE_URL.org/typo3/install.
  17. When the Install Tool login appears, type in your Install Tool Password and press the Log in Button.
  18. Next, click the Basic Configuration link.
  19. Scroll down the page to the Directories List to ensure all the TYPO3 directories are writable.
  20. If any of the directories are unwritable, return to your FTP Client and set the permission to 777.
  21. Next, scroll down to the Update localconf.php fields.
  22. Next, connect your TYPO3 installation to your database. Enter the database Username and Password. The host should be set at localhost and select the TYPO3 database in the drop down menu.
  23. Enter your Site name in the appropriate field, and then scroll down the page to the Update localconf.php button.
  24. At this point, your TYPO3 transfer is nearly complete. The only thing left to do is to reset any of the site's Constants if they've changed (such as the site's URL or other details).

    Go ahead and navigate to your site's TYPO3 backend (www.Your_Site_URL.org/typo3) and login.
  25. To change your site's Constants, click on the WEC Config Module.
  26. Change any of the fields necessary and click the Update button.
  27. With this step complete, your site shoud be fully transferred to your new host. However, you will want to view it in the Frontend to ensure it is satisfactory.