Today morning when I tried to connect one of clients server through filezilla i got error message as
"could not connect to server
Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server".
So I tried to find out what is wrong with its settings.I made ftp proxy as none then general proxy as none its setting was as socks5 and ip set to 192.168.0.13 and port 1080.When I changed that to none server connected and directory listed.Thank god saved my day................
A space to share and discuss my technical knowledge and expertise with similar minds...
Friday, October 12, 2012
Friday, October 5, 2012
Dnode -node.js
refer http://getcomposer.org/doc/00-intro.md
Let's say you are creating a project, and you need a library that does logging. You decide to use monolog. In order to add it to your project, all you need to do is create a
Let's say you are creating a project, and you need a library that does logging. You decide to use monolog. In order to add it to your project, all you need to do is create a
composer.json file
which describes the project's dependencies.{
"require": {
"monolog/monolog": "1.0.*"
}
}
We are simply stating that our project requires some monolog/monolog package,
any version beginning with 1.0.$ sudo wget http://getcomposer.org/composer.phar
$ sudo php composer.phar install
check for curl if not then
sudo apt-get install php5-curl
sudo service php5-fpm restart
java installations-ubuntu
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6-jdk
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-jdk
Installation:
for 10.10:
sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner"
for 11.04
sudo add-apt-repository "deb http://archive.canonical.com/ natty partner"
Continue with:
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
Use as default:
sudo update-alternatives --config java
Installing JDK:
sudo apt-get install sun-java6-jdk
Source code (to be used in development):
sudo apt-get install sun-java6-source
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6-jdk
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-jdk
Installation:
for 10.10:
sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner"
for 11.04
sudo add-apt-repository "deb http://archive.canonical.com/ natty partner"
Continue with:
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
Use as default:
sudo update-alternatives --config java
Installing JDK:
sudo apt-get install sun-java6-jdk
Source code (to be used in development):
sudo apt-get install sun-java6-source
nginx with php5 -ubuntu
when tried to install nginx with php5 I faced some issues .php files was not able to display using nginx.I got stuck there but sorted it out soon see below,
sudo apt-get update sudo apt-get -u upgrade
sudo apt-get install mysql-server mysql-client php5-mysql
sudo apt-get install nginx
sudo service nginx start
sudo apt-get install php5 php5-fpm
sudo nano /etc/php5/fpm/php.ini
Find the line, cgi.fix_pathinfo=1, and change the 1 to 0. sudo service php5-fpm restart
sudo nano /etc/nginx/sites-available/default
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts
server {
listen 80; ## listen for ipv4
listen [::]:80 default ipv6only=on; ## listen for ipv6
server_name 192.168.0.37;
access_log /var/log/nginx/localhost.access.log;
location / {
root /var/www;
index index.html index.htm index.php;
}
location /doc {
root /usr/share;
autoindex on;
allow all;
deny all;
}
location /images {
root /usr/share;
autoindex on;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
#error_page 500 502 503 504 /50x.html;
#location = /50x.html {
# root /var/www/nginx-default;
#}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
#deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#listen 8000;
#listen somename:8080;
#server_name somename alias another.alias;
#location / {
#root html;
#index index.html index.htm;
#}
#}
# HTTPS server
#
#server {
#listen 443;
#server_name localhost;
#ssl on;
#ssl_certificate cert.pem;
#ssl_certificate_key cert.key;
#ssl_session_timeout 5m;
#ssl_protocols SSLv3 TLSv1;
#ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
#ssl_prefer_server_ciphers on;
#location / {
#root html;
#index index.html index.htm;
#}
#}
Add index.php to the index line.
Change the server_name from local host to your domain name or IP address (replace the example.com in the configuration)
Uncomment the correct lines in “location ~ \.php$ {“ section
here you can edit the fast cgi path abd its values and uncomment them to execute the php files then,
sudo nano /usr/share/nginx/www/info.php
<?php phpinfo(); ?>
sudo service nginx restart
Saved my day thanx for google and my friend saurabh...............lol
http://www.farinspace.com/install-and-configure-nginx-server/ for future reference
Thursday, October 4, 2012
eclipse - ubuntu
How to install eclipse in ubuntu
sudo add-apt-repository ppa:yogarine/eclipse/ubuntu
sudo apt-get update
sudo apt-get install eclipse
sudo add-apt-repository ppa:yogarine/eclipse/ubuntu
sudo apt-get update
sudo apt-get install eclipse
npm-ubuntu for node and dnode
After node.js install need dnode for functioning properly so tried to install dnode here it goes
sudo apt-get install npm
sudo npm install dnode
sudo apt-get install npm
sudo npm install dnode
Node.js-Ubuntu
There are several ways to install nodejs in Ubuntu some of them are below
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
php5 -Ubuntu
How to install php5 in ubuntu
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get install php5
the processes are as below,
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
icatrz@ubuntu:~$
icatrz@ubuntu:~$ sudo apt-get update
Hit http://ppa.launchpad.net maverick Release.gpg
Hit http://archive.ubuntu.com maverick Release.gpg
Ign http://ppa.launchpad.net/chromium-daily/stable/ubuntu/ maverick/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://ppa.launchpad.net/chromium-daily/stable/ubuntu/ maverick/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Get:1 http://ppa.launchpad.net maverick Release.gpg [316B]
Ign http://archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
Ign http://ppa.launchpad.net/nginx/stable/ubuntu/ maverick/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_US
Ign http://ppa.launchpad.net/nginx/stable/ubuntu/ maverick/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_US
Hit http://archive.ubuntu.com maverick-updates Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en
Err http://archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en_US
Error reading from server - read (104: Connection reset by peer)
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en_US
Get:2 http://ppa.launchpad.net maverick Release.gpg [316B]
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Ign http://ppa.launchpad.net/ondrej/php5/ubuntu/ maverick/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en_US
Ign http://ppa.launchpad.net/ondrej/php5/ubuntu/ maverick/main Translation-en_US
Get:3 http://archive.ubuntu.com maverick-proposed Release.gpg [198B]
Hit http://ppa.launchpad.net maverick Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/main Translation-en
Ign http://ppa.launchpad.net/yogarine/eclipse/ubuntu/ maverick/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/main Translation-en_US
Ign http://ppa.launchpad.net/yogarine/eclipse/ubuntu/ maverick/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/multiverse Translation-en
Hit http://ppa.launchpad.net maverick Release
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/multiverse Translation-en_US
Get:4 http://ppa.launchpad.net maverick Release [9,736B]
Ign http://ppa.launchpad.net maverick Release
Get:5 http://ppa.launchpad.net maverick Release [9,741B]
Get:6 http://ppa.launchpad.net maverick Release [9,741B]
Hit http://ppa.launchpad.net maverick Release
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main i386 Packages
Ign http://ppa.launchpad.net maverick/main Sources/DiffIndex
Ign http://ppa.launchpad.net maverick/main i386 Packages/DiffIndex
Get:7 http://ppa.launchpad.net maverick/main Sources [14B]
Err http://ppa.launchpad.net maverick/main Sources
Undetermined Error
Get:8 http://ppa.launchpad.net maverick/main i386 Packages [14B]
Err http://ppa.launchpad.net maverick/main i386 Packages
Undetermined Error
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main i386 Packages
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main i386 Packages
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/restricted Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/universe Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/universe Translation-en_US
Hit http://archive.ubuntu.com maverick Release
Hit http://archive.ubuntu.com maverick-updates Release
Get:9 http://archive.ubuntu.com maverick-proposed Release [40.8kB]
Ign http://archive.ubuntu.com maverick-proposed Release
Hit http://archive.ubuntu.com maverick/main i386 Packages
Hit http://archive.ubuntu.com maverick/universe i386 Packages
Hit http://archive.ubuntu.com maverick/restricted i386 Packages
Hit http://archive.ubuntu.com maverick/multiverse i386 Packages
Hit http://archive.ubuntu.com maverick-updates/universe i386 Packages
Hit http://archive.ubuntu.com maverick-updates/main i386 Packages
Hit http://archive.ubuntu.com maverick-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com maverick-updates/restricted i386 Packages
Ign http://archive.ubuntu.com maverick-proposed/universe i386 Packages/DiffIndex
Ign http://archive.ubuntu.com maverick-proposed/main i386 Packages/DiffIndex
Ign http://archive.ubuntu.com maverick-proposed/multiverse i386 Packages/DiffIndex
Ign http://archive.ubuntu.com maverick-proposed/restricted i386 Packages/DiffIndex
Hit http://archive.ubuntu.com maverick-proposed/universe i386 Packages
Hit http://archive.ubuntu.com maverick-proposed/main i386 Packages
Hit http://archive.ubuntu.com maverick-proposed/multiverse i386 Packages
Hit http://archive.ubuntu.com maverick-proposed/restricted i386 Packages
Fetched 2,200B in 36s (60B/s)
W: GPG error: http://ppa.launchpad.net maverick Release: The following signatures were invalid: NODATA 2
W: GPG error: http://archive.ubuntu.com maverick-proposed Release: The following signatures were invalid: NODATA 2
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/i18n/Translation-en_US.bz2 Error reading from server - read (104: Connection reset by peer)
W: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/dists/maverick/main/source/Sources.bz2 Undetermined Error
W: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/dists/maverick/main/binary-i386/Packages.bz2 Undetermined Error
E: Some index files failed to download, they have been ignored, or old ones used instead.
icatrz@ubuntu:~$ sudo apt-get install php 5
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php
E: Unable to locate package 5
icatrz@ubuntu:~$ sudo apt-get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap php5-cli
Suggested packages:
apache2-doc apache2-suexec apache2-suexec-custom php-pear
The following NEW packages will be installed:
apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap php5 php5-cli
0 upgraded, 11 newly installed, 0 to remove and 387 not upgraded.
Need to get 5,985kB/9,169kB of archives.
After this operation, 25.8MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ maverick-updates/main libapr1 i386 1.4.2-3ubuntu1.1 [84.2kB]
Get:2 http://archive.ubuntu.com/ubuntu/ maverick-updates/main libaprutil1-dbd-sqlite3 i386 1.3.9+dfsg-3ubuntu0.10.10.1 [27.2kB]
Get:3 http://archive.ubuntu.com/ubuntu/ maverick-updates/main apache2-mpm-prefork i386 2.2.16-1ubuntu3.5 [2,378B]
Get:4 http://archive.ubuntu.com/ubuntu/ maverick-updates/main libapache2-mod-php5 i386 5.3.3-1ubuntu9.10 [2,946kB]
Get:5 http://archive.ubuntu.com/ubuntu/ maverick-updates/main php5 all 5.3.3-1ubuntu9.10 [1,122B]
Get:6 http://archive.ubuntu.com/ubuntu/ maverick-updates/main php5-cli i386 5.3.3-1ubuntu9.10 [2,924kB]
Fetched 5,985kB in 1min 17s (77.5kB/s)
Selecting previously deselected package libapr1.
(Reading database ... 127833 files and directories currently installed.)
Unpacking libapr1 (from .../libapr1_1.4.2-3ubuntu1.1_i386.deb) ...
Selecting previously deselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.3.9+dfsg-3ubuntu0.10.10.1_i386.deb) ...
Selecting previously deselected package libaprutil1-dbd-sqlite3.
Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.9+dfsg-3ubuntu0.10.10.1_i386.deb) ...
Selecting previously deselected package libaprutil1-ldap.
Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.9+dfsg-3ubuntu0.10.10.1_i386.deb) ...
Selecting previously deselected package apache2.2-bin.
Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.16-1ubuntu3.5_i386.deb) ...
Selecting previously deselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.16-1ubuntu3.5_i386.deb) ...
Selecting previously deselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.16-1ubuntu3.5_i386.deb) ...
Selecting previously deselected package apache2-mpm-prefork.
Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.16-1ubuntu3.5_i386.deb) ...
Selecting previously deselected package libapache2-mod-php5.
Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.3.3-1ubuntu9.10_i386.deb) ...
Selecting previously deselected package php5.
Unpacking php5 (from .../php5_5.3.3-1ubuntu9.10_all.deb) ...
Selecting previously deselected package php5-cli.
Unpacking php5-cli (from .../php5-cli_5.3.3-1ubuntu9.10_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ufw ...
Processing triggers for ureadahead ...
Setting up libapr1 (1.4.2-3ubuntu1.1) ...
Setting up libaprutil1 (1.3.9+dfsg-3ubuntu0.10.10.1) ...
Setting up libaprutil1-dbd-sqlite3 (1.3.9+dfsg-3ubuntu0.10.10.1) ...
Setting up libaprutil1-ldap (1.3.9+dfsg-3ubuntu0.10.10.1) ...
Setting up apache2.2-bin (2.2.16-1ubuntu3.5) ...
Setting up apache2-utils (2.2.16-1ubuntu3.5) ...
Setting up apache2.2-common (2.2.16-1ubuntu3.5) ...
Enabling site default.
Enabling module alias.
Enabling module autoindex.
Enabling module dir.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module status.
Enabling module auth_basic.
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
Enabling module reqtimeout.
Setting up apache2-mpm-prefork (2.2.16-1ubuntu3.5) ...
* Starting web server apache2 [ OK ]
Setting up libapache2-mod-php5 (5.3.3-1ubuntu9.10) ...
Creating config file /etc/php5/apache2/php.ini with new version
* Reloading web server config apache2 [ OK ]
Setting up php5 (5.3.3-1ubuntu9.10) ...
Setting up php5-cli (5.3.3-1ubuntu9.10) ...
Creating config file /etc/php5/cli/php.ini with new version
update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get install php5
the processes are as below,
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
icatrz@ubuntu:~$
icatrz@ubuntu:~$ sudo apt-get update
Hit http://ppa.launchpad.net maverick Release.gpg
Hit http://archive.ubuntu.com maverick Release.gpg
Ign http://ppa.launchpad.net/chromium-daily/stable/ubuntu/ maverick/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://ppa.launchpad.net/chromium-daily/stable/ubuntu/ maverick/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Get:1 http://ppa.launchpad.net maverick Release.gpg [316B]
Ign http://archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
Ign http://ppa.launchpad.net/nginx/stable/ubuntu/ maverick/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_US
Ign http://ppa.launchpad.net/nginx/stable/ubuntu/ maverick/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_US
Hit http://archive.ubuntu.com maverick-updates Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en
Err http://archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en_US
Error reading from server - read (104: Connection reset by peer)
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en_US
Get:2 http://ppa.launchpad.net maverick Release.gpg [316B]
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Ign http://ppa.launchpad.net/ondrej/php5/ubuntu/ maverick/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en_US
Ign http://ppa.launchpad.net/ondrej/php5/ubuntu/ maverick/main Translation-en_US
Get:3 http://archive.ubuntu.com maverick-proposed Release.gpg [198B]
Hit http://ppa.launchpad.net maverick Release.gpg
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/main Translation-en
Ign http://ppa.launchpad.net/yogarine/eclipse/ubuntu/ maverick/main Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/main Translation-en_US
Ign http://ppa.launchpad.net/yogarine/eclipse/ubuntu/ maverick/main Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/multiverse Translation-en
Hit http://ppa.launchpad.net maverick Release
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/multiverse Translation-en_US
Get:4 http://ppa.launchpad.net maverick Release [9,736B]
Ign http://ppa.launchpad.net maverick Release
Get:5 http://ppa.launchpad.net maverick Release [9,741B]
Get:6 http://ppa.launchpad.net maverick Release [9,741B]
Hit http://ppa.launchpad.net maverick Release
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main i386 Packages
Ign http://ppa.launchpad.net maverick/main Sources/DiffIndex
Ign http://ppa.launchpad.net maverick/main i386 Packages/DiffIndex
Get:7 http://ppa.launchpad.net maverick/main Sources [14B]
Err http://ppa.launchpad.net maverick/main Sources
Undetermined Error
Get:8 http://ppa.launchpad.net maverick/main i386 Packages [14B]
Err http://ppa.launchpad.net maverick/main i386 Packages
Undetermined Error
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main i386 Packages
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main i386 Packages
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/restricted Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/restricted Translation-en_US
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/universe Translation-en
Ign http://archive.ubuntu.com/ubuntu/ maverick-proposed/universe Translation-en_US
Hit http://archive.ubuntu.com maverick Release
Hit http://archive.ubuntu.com maverick-updates Release
Get:9 http://archive.ubuntu.com maverick-proposed Release [40.8kB]
Ign http://archive.ubuntu.com maverick-proposed Release
Hit http://archive.ubuntu.com maverick/main i386 Packages
Hit http://archive.ubuntu.com maverick/universe i386 Packages
Hit http://archive.ubuntu.com maverick/restricted i386 Packages
Hit http://archive.ubuntu.com maverick/multiverse i386 Packages
Hit http://archive.ubuntu.com maverick-updates/universe i386 Packages
Hit http://archive.ubuntu.com maverick-updates/main i386 Packages
Hit http://archive.ubuntu.com maverick-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com maverick-updates/restricted i386 Packages
Ign http://archive.ubuntu.com maverick-proposed/universe i386 Packages/DiffIndex
Ign http://archive.ubuntu.com maverick-proposed/main i386 Packages/DiffIndex
Ign http://archive.ubuntu.com maverick-proposed/multiverse i386 Packages/DiffIndex
Ign http://archive.ubuntu.com maverick-proposed/restricted i386 Packages/DiffIndex
Hit http://archive.ubuntu.com maverick-proposed/universe i386 Packages
Hit http://archive.ubuntu.com maverick-proposed/main i386 Packages
Hit http://archive.ubuntu.com maverick-proposed/multiverse i386 Packages
Hit http://archive.ubuntu.com maverick-proposed/restricted i386 Packages
Fetched 2,200B in 36s (60B/s)
W: GPG error: http://ppa.launchpad.net maverick Release: The following signatures were invalid: NODATA 2
W: GPG error: http://archive.ubuntu.com maverick-proposed Release: The following signatures were invalid: NODATA 2
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/i18n/Translation-en_US.bz2 Error reading from server - read (104: Connection reset by peer)
W: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/dists/maverick/main/source/Sources.bz2 Undetermined Error
W: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/dists/maverick/main/binary-i386/Packages.bz2 Undetermined Error
E: Some index files failed to download, they have been ignored, or old ones used instead.
icatrz@ubuntu:~$ sudo apt-get install php 5
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php
E: Unable to locate package 5
icatrz@ubuntu:~$ sudo apt-get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap php5-cli
Suggested packages:
apache2-doc apache2-suexec apache2-suexec-custom php-pear
The following NEW packages will be installed:
apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap php5 php5-cli
0 upgraded, 11 newly installed, 0 to remove and 387 not upgraded.
Need to get 5,985kB/9,169kB of archives.
After this operation, 25.8MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ maverick-updates/main libapr1 i386 1.4.2-3ubuntu1.1 [84.2kB]
Get:2 http://archive.ubuntu.com/ubuntu/ maverick-updates/main libaprutil1-dbd-sqlite3 i386 1.3.9+dfsg-3ubuntu0.10.10.1 [27.2kB]
Get:3 http://archive.ubuntu.com/ubuntu/ maverick-updates/main apache2-mpm-prefork i386 2.2.16-1ubuntu3.5 [2,378B]
Get:4 http://archive.ubuntu.com/ubuntu/ maverick-updates/main libapache2-mod-php5 i386 5.3.3-1ubuntu9.10 [2,946kB]
Get:5 http://archive.ubuntu.com/ubuntu/ maverick-updates/main php5 all 5.3.3-1ubuntu9.10 [1,122B]
Get:6 http://archive.ubuntu.com/ubuntu/ maverick-updates/main php5-cli i386 5.3.3-1ubuntu9.10 [2,924kB]
Fetched 5,985kB in 1min 17s (77.5kB/s)
Selecting previously deselected package libapr1.
(Reading database ... 127833 files and directories currently installed.)
Unpacking libapr1 (from .../libapr1_1.4.2-3ubuntu1.1_i386.deb) ...
Selecting previously deselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.3.9+dfsg-3ubuntu0.10.10.1_i386.deb) ...
Selecting previously deselected package libaprutil1-dbd-sqlite3.
Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.9+dfsg-3ubuntu0.10.10.1_i386.deb) ...
Selecting previously deselected package libaprutil1-ldap.
Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.9+dfsg-3ubuntu0.10.10.1_i386.deb) ...
Selecting previously deselected package apache2.2-bin.
Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.16-1ubuntu3.5_i386.deb) ...
Selecting previously deselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.16-1ubuntu3.5_i386.deb) ...
Selecting previously deselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.16-1ubuntu3.5_i386.deb) ...
Selecting previously deselected package apache2-mpm-prefork.
Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.16-1ubuntu3.5_i386.deb) ...
Selecting previously deselected package libapache2-mod-php5.
Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.3.3-1ubuntu9.10_i386.deb) ...
Selecting previously deselected package php5.
Unpacking php5 (from .../php5_5.3.3-1ubuntu9.10_all.deb) ...
Selecting previously deselected package php5-cli.
Unpacking php5-cli (from .../php5-cli_5.3.3-1ubuntu9.10_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ufw ...
Processing triggers for ureadahead ...
Setting up libapr1 (1.4.2-3ubuntu1.1) ...
Setting up libaprutil1 (1.3.9+dfsg-3ubuntu0.10.10.1) ...
Setting up libaprutil1-dbd-sqlite3 (1.3.9+dfsg-3ubuntu0.10.10.1) ...
Setting up libaprutil1-ldap (1.3.9+dfsg-3ubuntu0.10.10.1) ...
Setting up apache2.2-bin (2.2.16-1ubuntu3.5) ...
Setting up apache2-utils (2.2.16-1ubuntu3.5) ...
Setting up apache2.2-common (2.2.16-1ubuntu3.5) ...
Enabling site default.
Enabling module alias.
Enabling module autoindex.
Enabling module dir.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module status.
Enabling module auth_basic.
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
Enabling module reqtimeout.
Setting up apache2-mpm-prefork (2.2.16-1ubuntu3.5) ...
* Starting web server apache2 [ OK ]
Setting up libapache2-mod-php5 (5.3.3-1ubuntu9.10) ...
Creating config file /etc/php5/apache2/php.ini with new version
* Reloading web server config apache2 [ OK ]
Setting up php5 (5.3.3-1ubuntu9.10) ...
Setting up php5-cli (5.3.3-1ubuntu9.10) ...
Creating config file /etc/php5/cli/php.ini with new version
update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Wednesday, October 3, 2012
php/mysql/nginx-Ubuntu
sudo apt-get install mysql-server mysql-client sudo apt-get install php-cgi sudo apt-get update sudo apt-get install nginx sudo /etc/init.d/nginx start here nginx is a webserver so dont try to install nginx with apache it will clash
Ubuntu-apt update failure
When tried to update apt daemon it failed due to some unknown characters in a file
/etc/apt/sources.list.d/ nginx-stable-maverick.list
edited that and saved errors cleared everything working fine
/etc/apt/sources.list.d/ nginx-stable-maverick.list
edited that and saved errors cleared everything working fine
Ubuntu-system proxy
When trying to install any soft wares in Ubuntu from software center or by apt-get install <package name>
if you face an error like repository failed to add or some index files failed to install,
then please check the system proxy settings may be it will be the source of error.
if you face an error like repository failed to add or some index files failed to install,
then please check the system proxy settings may be it will be the source of error.
Monday, October 1, 2012
Permission issue-SSH
I faced an issue in my server .Its OS is rhel 5.On one morning when I turned on it its ssh terminal was unable to log in.I tried all known ways but when I typed mu user name and pass word for root its shown that 'login incorrect'.I checked for a solution online and found that a file
/etc/ssh/sshd_config
has a line commented as #PermitRootaccess Yes
Uncommented that one.
Then restarted sshd service
#service sshd restart
but again an error came as
ssh_host_dsa_key and ssh_host_rsa_key
/etc/ssh/sshd_config
has a line commented as #PermitRootaccess Yes
Uncommented that one.
Then restarted sshd service
#service sshd restart
but again an error came as
ssh_host_dsa_key and ssh_host_rsa_key
have permission as 0777 so they are too open .I changed it as
#chmod 600 ssh_host_dsa_key
#chmod 600 ssh_host_rsa_key
and then
#service sshd restart
#sshd stoping OK
#sshd starting OK
How is that,saved my day............................................
Subscribe to:
Posts (Atom)