Friday, 22 August 2014

HTTRack Tool in Ubuntu

We can download text, pdf, video from online. We can use those thinks without internet connection. But i want to use website in offline how i use website in online. I found one tool in google search.
     This tool is very useful to me. So I want to share you to get benefit by this tool.

1. Open Terminal
2. Type sudo apt-get install httrack
3. After getting installed, just type httrack in the terminal. it will ask some question to which site and which path will it be saved.
4. You will give answer for those question.
5. After few minutes it will be downloaded fully.
6. You can use website in offline.



Note: You must have internet connection, when you download website



ERROR: File must be owned by the database user or root, must have no write permission for "group", and must have no permissions for "other".


You may get following error,  when you install any software in ubuntu. By this problem I was struggling very much. After long time i got solution from stack overflow sites for this problem. I want to share what I got solution for this problem. It may help you.

 Starting PostgreSQL 8.4 database server
 * The PostgreSQL server failed to start. Please check the log output:
2010-01-21 22:10:00 PST FATAL: private key file "server.key" has group or world access
2010-01-21 22:10:00 PST DETAIL: File must be owned by the database user or root, must have no write permission for "group", and must have no permissions for "other".

could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Solution:

1) Enter the relevant directory (use> locate server.key)

2) Back up old server.key link.

3) Copy ssl-cert-snakeoil.key to server.key

4-5) Change its owner & group to postgres

6) Ensure the permissions are 700 or 740 (as requested by error message)

Recipe for my Ubuntu 12.04 & postgresql-8.3:

sudo cd /var/lib/postgresql/8.3/main/
sudo mv server.key server.key-0
sudo cp /etc/ssl/private/ssl-cert-snakeoil.key server.key
sudo chown postgres server.key
sudo chgrp postgres server.key
sudo chmod 740 server.key
sudo /etc/init.d/postgres-8.3 start

Saturday, 16 August 2014

GParted tool in Ubuntu

          
     GParted is partitioning tools  for Linux. We can partition hard disk with out re install of Operation system. This tool is available in Ubuntu Software center.  Which part you want to partition (such as main memory, Swap memory), first you should unmount that portion,than you can change size of memory.