Command Line


Convert scanned images into text online

 

 

    Convert scanned images into text online

Convert any scanned image into text using the free OCR online service Free OCR. The service supports any PDF, JPG, GIF, TIFF, or BMP file that is no larger than 2MB and once uploaded will convert and display the file results on the web page.

                                             Free online OCR

Locate your computer

if your laptop was stolen ... This trick can be useful. It will help you locate your computer to see who is using it and to take photos of the latter if you device comes with an integrated web cam ....

This software must be installed on your computer, so once the computer is stolen it will not be possible to use them!

Some software are still active if the computer has been formatted, others not.

PreyThis open source software is compatible: Mac, Linux, Windows, Android
http://preyproject.com/
Tutorial: http://www.papygeek.com/ ...

ComputraceOnehttp://www.practeo.ch/documents/absolute/French.zip
http://www.skppsc.ch/ ...

Locate PChttp://www.ligattsecurity.com/?option=com_content&task=view&id=2211&Itemid=234
http://fred-informatique.blogspot.com/ ...

UndercoverThis software works on Mac and iPhone
http://www.orbicule.com/undercover/

A website for stolen Macshttp://www.macbook-fr.com/annonces/machines_volees_article79.html

Make linux machine as a router

Steps To Make Linux Machine as Router : -
Assumptions: eth0 is internet interface (connected to router for example) and eth1 connected to your internal lan (connected to your HUB/Switch for example).

My Linux   eth0  --> Internet
box        eth1  --> Lan

Step1. Turn on ip forwarding in kernel
open the file  /etc/sysctl.conf  and add/modify following line:
net.ipv4.ip_forward = 1

Step2. Save this configuration using below command
# sysctl -p

Step3.Step:3 Setup IP forwarding and Masquerading (to act as router), you need to use NAT option of iptables as follows (add following rules to your iptables shell script) :

#  iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
#  iptables    --append   FORWARD   –in-interface  eth1  -j   ACCEPT

Step4. We  are done with configuration part , Test it with ping or dig:

# ping   ISPdomain.com
# dig    yahoo.com

How To Set the static Route in Linux : -
 
Scenario :-  We have two lan cards and assigned below mentioned ips
eth0 LAN network 172.0.0.0/8 - gateway IP – 172.8.2.65
eth1 ISP assigned network 202.54.22.128/28 - gateway IP – 202.54.22.129

So we can only ping /access to public server but not the another servers inside LAN , for the solution of this problem we will set the route with route command and static-route file.
Set route using route command
Type the following command:
# route add -net 172.0.0.0 netmask 255.0.0.0 gw 172.8.2.65 eth0
# route -n

The problem with the above 'route' command is that, when linux machine  reboots it will forget static routes. So store them in configuration file: 


# echo '10.0.0.0/8 via 10.8.2.65' >> /etc/sysconfig/network-scripts/route-eth0
Restart the network service

# service network restart

Verify new changes:

# route -n

# ping 172.8.2.65

# ping 172.8.2.10

# ping google.com

# traceroute google.com

# traceroute 172.8.2.10
Understanding Routing Table
What is Routing Table ?
Almost all computers and network devices connected to Internet use routing tables to compute the next hop for a packet. It is electronic table that is stored in a router or a networked computer. The routing table stores the routes (and in some cases, metrics associated with those routes) to particular network destinations. This information contains the topology of the network immediately around it. The construction of routing table is the primary goal of routing protocols and static routes.
Each Linux / UNIX / Windows or any computer that uses TCP/IP need to make routing decision. Routing table is used to control these decisions. To display routing table type the following command at UNIX / Linux shell prompt:

# netstat -r -n
OR
#  route -n

Sample output:
Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 ra0
169.254.0.0 0.0.0.0 255.255.255.0 U 1000 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 UG 100 0 0 ra0
Flag G indicates path to route packets via a gateway. If you would like to visit yahoo.com from your computer you need to go via 192.168.1.1 gateway. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. metric field used by routing daemons. This is required on large LAN and wan setups. The output of the kernel routing table is organized in the following columns:

Make A Bootable USB Without Any software for Win7

Open  Command Prompt

Click Start -> All Programs -> Accessories and right-click on Command Prompt. Select Run As Administrator

                   




usb installation disk windows 7

 

Type:

DISKPART
 
LIST DISK
 
usb installation disk

 

SELECT DISK 1
CLEAN
CREATE PARTITION PRIMARY
SELECT PARTITION 1
ACTIVE
FORMAT FS=NTFS
 
usb installation disk
ASSIGN
EXIT
 
 
 
Go back to your command prompt and type
your DVD drive with the install DVD, and U: is your USB drive:


       D:/BOOT/BOOTSECT.EXE /NT60 U: 
 
 

Copy Everything

The final step can be done from My Computer. Just open up the installation DVD, highlight everything, and drag it over to your USB drive.