Friday, June 28, 2013

How to Restrict a website in Ubuntu Os

How to block or restrict a website in Ubuntu opensource Operating system, without any other third party software, with simple and easy way:

Press Alt+Ctrl+T for open the Terminal and

Take super user access with command 

01- desktop@desktop:$ sudo su

asking password so type password of your desktop computer

02-desktop@desktop:# sudo gedit /etc/hosts

there will pop a text file, in the end of the file type 

127.0.0.1      www.websitename.com (www.google.com or www.facebook.com)

www.websitename.com is name of a site which one you want to block... 
Look like this...
or
edit file in terminal  
desktop@desktop:~# nano /etc/hosts
once restart the networking service or connection. like plz...

50% of Hosting for your Website at GoDaddy.com!

Monday, June 24, 2013

Install Easy Hosting Control Panel (EHCP) for Server


This is ( EHCP) Free, GPL, full open-source, full php which is use for web server control.

On ubuntu server 12.04 ehcp is very easy to install.
01.Login as root (#) in your Server Terminal.
And type in Terminal

server@server:~$ sudo -i

02.Download EHCP latest version from http://www.ehcp.net/download/ 
OR
server@server:~# wget -O ehcp.tgz http://www.ehcp.net/ehcp_latest.tgz

03.And extract the tar.gz file where you want to install
server@server:~# tar -zxvf ehcp.tgz

04.Change to the directory ehcp
server@server:~# cd ehcp

05.Then run install.sh script
server@server:~# ./install.sh

The install script will install all required packages including Apache, MySql and Postfix. You will need to provide information to configure SERVICE and set ADMIN passwords.
NOTE: Do not install any other software related to web application install only updates system files.
When the installer is finished. you will be provided with the ehcp login page in your Web browser window, if you are on your local machine, otherwise, you need to connect to your new webserver by entering the static IP address of you server.
http://your.server.ip.address/  Example: 192.168.1.2

Default admin username:''admin'' and default admin pass:''1234

After install your web browser look like this


Configure openfire open chat server in ubuntu

















Thursday, June 13, 2013

Install openfire open chat server in ubuntu


Install openfire open chat server in ubuntu

1-first install all updates ::
server@server:~#sudo apt-get update
2-first install java or check java version by
server@server:~#sudo java -version
3-if java not install then install java
server@server:~#sudo apt-get install sun-java6-bin
4-if java is installed you should get something like:

java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) Client VM (build 14.1-b02, mixed mode, sharing)

5- Create one user and one database for OpenFire in sql database
server@server:~#cd /opt
6- Download the archive from OpenFire Official Website
server@server:~#sudo wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_8_0.tar.gz
7- Unpack file downloaded file here
server@server:~#sudo tar zxvf openfire_3_8_0.tar.gz
OR
sudo dpkg -i openfire.deb
8- Create a symlink
server@server:~#sudo ln -s /opt/openfire/bin/openfire /etc/init.d/
9- Make your symlink executable
server@server:~#sudo chmod +x /etc/init.d/openfire
10- Change Directory
server@server:~#cd /opt/openfire
11- Add openfire to our startup
server@server:~#sudo update-rc.d openfire defaults
server@server:~#sudo nohup ls >ls.log 2>&1 &
Must Restart Your Computer
12-Now go to your browser and type "http://localhost:9090" 
OR 
http://your.server.ip.address:9090"

configure continue...