Arun’s Weblog

Feel power of linux Ubuntu

Install Apache, php 5 and mysql

Posted by arun161087 on January 14, 2009

Installing Apache

sudo apt-get install apache2

Testing Apache

Once that’s finished installing, we can start up Apache to test it by typing…

sudo /etc/init.d/apache2 start

Now open up your browser (or if you’re a time saver,) and point it to…

http://localhost

If you’re cleanly installing Apache, you’ll see the default installed folder index, or you’ll see your normal server pages if you’ve updated.

Installing PHP

Now that Apache is installed, PHP is next…

sudo apt-get install php5

Once PHP has finished installing, if we restart Apache…

sudo /etc/init.d/apache2 restart

Testing PHP

To test PHP, we’ll make a new PHP document with any editor you want…

sudo gedit /var/www/phpinfo.php

And paste the following code into the file to run PHP’s phpinfo() function, which will show us a myriad of information about PHP…

<?php phpinfo(); ?>

Now we can save the file, and browse to…

http://localhost/phpinfo.php

To see all of the information about your PHP installation. For security reasons, you should remove this page when you’re done with it. If you want to do that quickly…

sudo rm -rf /var/www/phpinfo.php

Assuming you named the file phpinfo.php.

Installing MySQL

To install MySQL, in our terminal window…

sudo apt-get install mysql-server

If this is a clean installation of MySQL, it will prompt you to set your root password. Make sure that you type it correctly, as it will only ask you once. If you’ve upgraded, or installed MySQL before, it may not prompt you for a password.

Testing MySQL

Once MySQL is finished installing, we can test MySQL by connecting to it, using…

mysql -uroot -pyourpassword

After filling in your own password after -p, you’ll see a MySQL prompt.
That’s it, you’re done! You can type ‘exit’ to get out of MySQL.

Posted in Ubuntu Linux | Tagged: | Leave a Comment »

Find live computers in a network

Posted by arun161087 on September 13, 2008

In case of linux to find live computers in a network we use NMAP network scanner tool.

so in this case first you have to install the nmap .

# sudo apt-get install nmap

if your network is having ip like this 192.168.0.254 – 255

then use this command

# nmap -sP 192.168.0.1-255

nmap will look whether any of the hosts between 192.168.0.1 and 192.168.0.254 is online…..

and you will see the output like this..

output—

arun@arun-laptop:~$ nmap -sP 192.168.31.0-255

Starting Nmap 4.53 ( http://insecure.org ) at 2008-09-13 22:06 IST
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using –system-dns or specify valid servers with –dns_servers
Host 192.168.31.39 appears to be up.
Host 192.168.31.45 appears to be up.
Host 192.168.31.48 appears to be up.
Host 192.168.31.49 appears to be up.
Host 192.168.31.50 appears to be up.
Host 192.168.31.58 appears to be up.
Host 192.168.31.65 appears to be up.
Host 192.168.31.97 appears to be up.
Host 192.168.31.165 appears to be up.
Host 192.168.31.236 appears to be up.
Host 192.168.31.237 appears to be up.
Host 192.168.31.238 appears to be up.
Host 192.168.31.239 appears to be up.
Host 192.168.31.240 appears to be up.
Host 192.168.31.241 appears to be up.
Host 192.168.31.254 appears to be up.
Nmap done: 256 IP addresses (16 hosts up) scanned in 12.288 seconds

Posted in Hack, Troubleshoot, Ubuntu Linux | Tagged: | Leave a Comment »

Disable or drop all ping packats all together

Posted by arun161087 on September 4, 2008

Generally you can use iptables to block or allow ping requests.

You can setup kernel variable to drop all ping packets. Type the following command at shell prompt:
# echo “1″ > /proc/sys/net/ipv4/icmp_echo_ignore_all

This instructs the kernel to simply ignore all ping requests (ICMP type 0 messages). To enable ping request type the command:
#echo “0″ > /proc/sys/net/ipv4/icmp_echo_ignore_all

You can add following line to /etc/sysctl.conf file:
# vi /etc/sysctl.conf
Append following line:
net.ipv4.icmp_echo_ignore_all = 1

Save and close the file.

Posted in Linux(others), Troubleshoot | Tagged: | Leave a Comment »

How to setup as DNS client / name server IP addres in LINUX

Posted by arun161087 on September 2, 2008

Many new Linux user finds it difficult to setup / modify new name server address (NS1 / NS2).

Local name resolution is done via /etc/hosts file. If you have small network then use /etc/hosts file. DNS (domain name service is accountable for associating domain names with ip address, for example domain yahoo.com is easy to remember than IP address 202.66.66.12) provides better name resolution. To configure Linux as DNS client you need to edit or modify /etc/resolv.conf file. This file defines which name servers to use. You want to setup linux to browse net or run network services like www or smtp; then you need to point out to correct ISP DNS servers:

Setup DNS Name resolution

Steps to configure Linux as DNS client, first login as a root user (use su command):

Step # 1: Open /etc/resolv.conf file:

# vi /etc/resolv.conf

Step #2: Add your ISP nameserver as follows:

search isp.com
nameserver 202.54.1.110
nameserver 202.54.1.112
nameserver 202.54.1.115Note Max. three nameserver can be used/defined at a time.

Step # 3:Test setup nslookup or dig command:

$ dig www.ubuntucrack.wordpress.com
$ nslookup www.ubuntucrack.wordpress.com

Posted in Troubleshoot | Tagged: | Leave a Comment »

Disable ipv6 address in ubuntu 7.10

Posted by arun161087 on September 1, 2008

I found a really quick fix today for disabling ipv6 completely on Ubuntu 7.10. We’ll simply need to change a line in one of the configuration files that loads the ipv6 module to the kernel. As of yet I have not figured out a way to update this change outside of restarting the machine.

Change the line is /etc/modprobe.d/aliases from:

alias net-pf-10 ipv6

to

alias net-pf-10 off

Again, at this point you’ll need to restart your machine for the change to take place. If anyone knows of a way to avoid the reboot I would appreciate it.

Posted in Troubleshoot | Leave a Comment »

Linux Interest

Posted by arun161087 on August 31, 2008

see this then u know the reality

http://royal.pingdom.com/?p=340

Posted in Uncategorized | 2 Comments »

How to start telnet in vista

Posted by arun161087 on August 31, 2008

1. Click on Start button, then go to Control Panel -> Programs.

2. Under the Programs and Features section, click Turn Windows features on or off. If User Account Control permission confirmation request warning pops up, click on Continue. If you are prompted for an administrator password, type the password.

3. In the Windows Features dialog box, select (tick) the Telnet Server check box.

4. Click OK. Wait for the installation to finish.

5.Go back to Control Panel, then go to System -> Administrator Tools.

6. Click on Services applet (services.msc if you prefer to use Run command or Start Search).

7 .Locate the “Telnet” service, right-click on it and select Properties.

8. In the Startup Type drop down menu, select “Automatic” instead of “Disabled”.

Posted in Troubleshoot | Tagged: | Comments Off

Download Ebooks

Posted by arun161087 on August 27, 2008

Here is text file i am going to give you for download. Download it as soon as possible because after sometime the links will destroy.

There are a lot of ebooks like :

The.Hacker.Quarterly.vol19.no3-EEn.pdf

A-List_Publishing.Hacker_Linux_Uncovered.chm

Addison_Wesley_-_Hackers_Delight.chm

Anti-Hacker_ToolKit_-_McGraw_Hill_2E_2004.chm

CRC_Press_-_Cyber_Crime_Investigator_s_Field_Guide.pdf

e-book_-_Java_2_Network_Security.pdf

ebook.oreilly.-.windows.xp.hacks.sharereactor.chm

For.Dummies.Hacking.for.Dummies.Apr.2004.eBook-DDU.pdf

McGraw.Hill.HackNotes.Linux.and.Unix.Security.Portable.Reference.eBook-DDU.pdf

Wiley_-_0470852852_-_Internet_Security_-_fly.pdf

Syngress__Hack_Proofing_Your_E-Commerce_Site.pdf

and lots of more your link is   EBOOKS.

Posted in Ebook | Tagged: | Leave a Comment »

Install ubuntu studio theme

Posted by arun161087 on August 26, 2008

Ubuntu Studio is a multimedia editing/creation flavour of Ubuntu. It’s built for the GNU/Linux audio, video, and graphic enthusiast or professional.

1. Edit /etc/apt/sources.list and put this line:

deb http://archive.ubuntustudio.org/ubuntustudio feisty main

2. Get the gpg for that repo

$ wget http://archive.ubuntustudio.org/ubuntustudio.gpg -O- | sudo apt-key add -

3. Run

$ sudo apt-get update

4. If you want to install all the themes that is used in Ubuntu Studio, including gdm theme, wallpapers, icon theme, session splashes and gtk theme use this

$ sudo apt-get install ubuntustudio-look

I didn’t installed gdm theme and session splashes so i did this:

sudo apt-get install ubuntustudio-theme ubuntustudio-icon-theme ubuntustudio-wallpapers

Posted in Ubuntu Linux | Tagged: | Leave a Comment »

Deny All Access in One Second or Less

Posted by arun161087 on August 25, 2008

The first method is by far the quickest. Just run the following command (as root):

# touch /etc/nologin

This will deny access to anyone trying to log in to the machine. You’ll want to be sure to keep an active login session on the machine after you create this file or make sure that root is allowed to log in on the local console or via SSH, since a root login will bypass this mechanism. You’ll know it’s working because the logs for some services will tell you that access was denied because of the presence of the nologin file. Others will just say “failed password.”

This method can be improved through the use of a nologin.txt file, where you can put some text that users will see when they try to log in. If you have a scheduled downtime, for instance, you can put the details into this file so that users will get a friendly reminder that the machine is unavailable during the downtime window.

Create a file called /etc/hosts.deny.ALL, which should consist of only one line:

##### /etc/hosts.deny.ALL
ALL:ALL@ALL

Posted in Troubleshoot | Tagged: | Leave a Comment »