Entries Tagged as ''

Linux IP Command Lines

Display Current Config for all NIC’s: ifconfig

Display Current Config for eth0: ifconfig eth0

Assign IP: ifconfig eth0 192.168.1.2

Assign IP/Subnet: ifconfig eth0 192.168.1.2 netmask 255.255.255.0

Assign Default Gateway: route add default gw 192.168.1.1

Assign multiple IP’s: ifconfig eth0:0 192.168.1.2

Assign second IP: ifconfig eth0:1 192.168.1.3

Disable network card: ifconfig eth0 down

Enable network card: ifconfig eth0 up

View current routing table: route “or” route -n

View arp cache: arp “or” arp -n

Ping: ping -c 3 192.168.1.1

Trace Route: traceroute www.google.com

Trace Path: tracepath www.google.com

DNS Test: host www.google.com

Advanced DNS Test: dig www.google.com

Reverse Lookup: host 66.11.119.69

Advanced Reverse Lookup: dig -x 66.11.119.69

Unix IP Command Lines

Display Current Config for all NIC’s: ifconfig

Display Current Config for dc0: ifconfig dc0

Assign IP/Subnet: ifconfig dc0 inet 192.168.1.2 netmask 255.255.255.0

Assign Gateway: route delete default && route add default 192.168.1.1

Assign multiple IP’s: ifconfig dc0:0 192.168.1.2

Assign second IP: ifconfig dc0:1 192.168.1.3

Disable network card: ifconfig dc0 down

Enable network card: ifconfig dc0 up

Windows IP Command lines

Display Connection Configuration: ipconfig /all

Display DNS Cache Info Configuration: ipconfig /displaydns

Clear DNS Cache: ipconfig /flushdns

Release All IP Address Connections: ipconfig /release

Renew All IP Address Connections: ipconfig /renew

Re-Register the DNS connections: ipconfig /registerdns

Change/Modify DHCP Class ID: ipconfig /setclassid

Network Connections: control netconnections

Network Setup Wizard: netsetup.cpl

Test Connectivity: ping www.fredpalma.com

Trace IP address Route: tracert

Displays the TCP/IP protocol sessions: netstat

Display Local Route: route

Display Resolved MAC Addresses: arp

Display Name of Computer Currently on: hostname

Display DHCP Class Information: ipconfig /showclassid

Study of Data Mining for Terrorists Is Urged

By ERIC LICHTBLAU
A federal panel of policy makers and scientific experts urged a government-wide evaluation Tuesday of programs that sift through databases looking for clues on terrorism, to determine whether the programs are effective and legal.

The federal government has made aggressive use of so-called data-mining tools since the attacks of Sept. 11, 2001, as counterterrorism officials in many intelligence agencies have sought to analyze records on travel habits, calling patterns, e-mail use, financial transactions and other data to pinpoint possible terrorist activity.

The National Security Agency’s program for wiretapping terror suspects without warrants, the screening of suspicious airline passengers and the Pentagon’s ill-fated Total Information Awareness program, shut down by Congress in 2003 because of privacy concerns, have all relied on aspects of data mining.

But in a 352-page government study released on Tuesday, a committee of the National Research Council warned that successfully using these tools to deter terrorism “will be extremely difficult to achieve” because of legal, technological and logistical problems. It said a haphazard approach to using such tools threatened both Americans’ privacy rights and the country’s legitimate national security needs.

Mining through data patterns has been shown to work in commercial settings to predict what kind of toothpaste people may buy and what kind of movie they are likely to rent, or to detect casino card-counters or those engaged in credit card fraud.

But there is little evidence to confirm that the techniques work to actually find terrorists, despite the growing use in the last seven years, committee members said. Part of the problem, they said, is that the sample of known terrorists and actual attacks is so small that it is difficult to establish patterns of suspicious behavior.

The push to accumulate enormous amounts of information has also produced the risk of “a huge number of false leads” that could implicate people with no actual connections to terrorism, the committee said.

“More data does not mean better data,” said William J. Perry, the former defense secretary who was co-chairman of the panel, with Charles M. Vest, president of the National Academy of Engineering.

The National Research Council, a government-chartered nonprofit group, set up the panel in 2005 to study data mining at the request of the Department of Homeland Security and the National Science Foundation.

Matt Blaze, a University of Pennsylvania computer science professor who has studied data mining but was not involved in the study, said one of the most important points made in the report — little understood by the public — was to underscore the “fundamental problems” in adapting commercial data-mining to the hunt for terrorists. The committee, Mr. Blaze said, “has performed a real public service.”

Timothy Edgar, the deputy for civil liberties in the Office of the Director of National Intelligence at the White House, said his office had begun reviewing data-mining programs “on an ad hoc basis,” partly at the direction of Congress. But he said the committee’s recommendations laying out a framework for legal and operational concerns in a data-mining program could help to guide that effort.

“This is something the government could do in a more systematic way,” Mr. Edgar said.

From: The New York Times

Php | Fatal error: Maximum execution time of x seconds exceeded

Fatal error: Maximum execution time of 30 seconds exceeded

It’s  max_execution_time    30    30 (phpinfo)

You need to change in php.ini max_execution_time value.

sudo vi  /etc/php5/apache2/php.ini

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 300     ; Maximum execution time of each script, in seconds

sudo /etc/init.d/apache2 restart

php5 + apache 2 on Ubuntu 8.04

sudo apt-get install apache2

sudo apt-get install php5

sudo apt-get install libapache2-mod-php5

sudo /etc/init.d/apache2 restart

if apache is already installed you can omit the first line. Your web files will now be found in /var/www/