Free Tutorials

Free Java, C#, C++, PHP, VB.net, ASP.net, HTML, CSS, Java Script, Joomla, Word Press, MySQL, Flash, Photoshop, Web Designing, and Networking Tutorials.

All Free Downloads

Free Windows,Linux and Mobile Phone Downloads. All are free.

Most Use Full Tips and Tricks

Free Most Use Full Windows, Linux, Internet & Web, Hacking Tips and Tricks..

All Mobile Secrets

Free Nokia, Samsung, LG, Sony Ericsson, Motorolla, Anroid Secret Codes, Tips and Tricks

Visitor Comments

Write your comments, suggesstions, request here..

Friday, March 23, 2012

How to Enable Secure Facebook Browsing

I know many of you like to use your Facebook on public access areas like cafe, library and etc, because enabling secure browsing for an account ensures that data cannot be monitored by other users of the network or the ISP. This feature is not enables by default, but you can change it in your Facebook setting easily.

Just go to Account Setting > Security > Secure Browing, tick the checkbox “Choose Browse Facebook on a secure connection (https) whenever possible” and then save it.

Next time when you login to your Facebook, you will see https url instead of http url on the browser location bar. Anyway, perhaps you will ask, why doesn’t Facebook enable Secure browsing by default for all users? Hmmm…there are 2 reasons as below:-
1. Page loading speed is much slower over a secure connection.
2. Some Facebook apps will not support secure https connections.

How to set video as desktop wallpaper background using VLC

This is an easy way to set any video as desktop background using vlc media player for free without using any paid software to achieve the same result. Just follow this step to set video as desktop wallpaper and enjoy..

1. First of all you need a VLC player installed in your OS to perform this task on windows. If not then download the VLC player and install it.

2. Run VLC media player,go to Settings->preferences->Interface->Main interfaces,then click on wxWidgets. Remove the tick on “Taskbar” and put a tick on “Systray icon”.

3. Now go to Video ->Output Modules->DirectX. On the bottom right put a tick on advanced options check box.You will now see some options.Put a tick on “Enable Wallpaper Mode “.

4. Now,select playlist and put a check or tick on “Repeat current item “.

5. Press the Save button.Now close the Vlc player and run it again(to save the settings permanently).

6. Now play any video you would like to set as Wallpaper. Right click on the video and click on “Wallpaper”. The video would be set as your wallpaper

Generic Host process win 32 error solution

Have you come acrossed a dialog box on your windows system titled “Generic Host process for win32 services” – Such dialog box comes when windows encounters error..

There are several fixed based on the nature of errors.. Here is a simple tool which automatically does the necessary fixes:

Download it to fix generic host process for win 32 services error..

Download tool to fix generic host process for win32 services error

How to Add Facebook Account into Google Plus


Google has launched a new product named Google Plus recent and it is became popular nowadays. Have you try Google Plus yet? Do you think it has the potential to cut into your use of Facebook? I personally think that Google Plus is not a “facebook killer”. What do you think?

Anyway, for those people who have both Google Plus and Facebook accounts, and you don’t want to waste your time manage both of these accounts in different places, then you can add your Facebook account into Google Plus by using Google Chrome Extension or IE/Firefox plugin.

Google Chrome User Download Link : https://chrome.google.com/webstore, go to Extensions -> Social & Communication -> Facebook for Google+

IE or Firefox User Download Link : http://crossrider.com/install/519-google-facebook

Record Skype calls incoming and outgoing


There are lot of software available for you to record calls and other features available with it. Depending upon those below are the listed few free programs by which we can record calls easily. These are chosen among the best ratings.

Call Graph

Application which I am referring to you is called as Call Graph Skype Recorder. This tool is specially designed to record Skype Calls only. With this you can record any Skype calls.

1. Visit Call Graph and click on Download. It contains file size of just over 7 MB.

2. Launch call Graph Recorder after installation is completed and start using it.

Call Graph will automatically record every call you make as MP3 file and there are options for customization of Call Graph so that you have your own choice. There are options like switching from stereo to mono voice is also possible.

When a call ends you have a list of recent calls, you can play, rename, delete files from the window.

Call Graph is completely 100 % free program which only costs if you want to use their website to host your recording. Call Graph is right now available for Windows users only.

Download Call Graph Skype Call Recorder

iFree Skype Recorder

iFree Skype Recoder is a Free Skype call recorder which is powerful and easy to use tool during conversations. You can use it to record Skype2Skype/ SkypeOut/ SkypeIn/ Skype Conference calls.

The following are the noticeable features of Ifree Skype Recorder-

Automatic and manual recording capabilities
Choice to record Skype calls different side (Local/Remote)
Save Skype calls to MP3 format
Tracking of recorded calls history is easy
Built in Mp3 Player
iFree Skype Recorder covers the feature feasible at that cost. Its only available for Windows users.

Skype Call Recorder

Does the same work, just the Skype Call recording and store recorded calls in space efficient, widely used, convenient mp3 format. It automatically records calls incoming and outgoing.

It has a beautiful and simple design to record the calls with options like recording mode to be choosed from- mono, stereo and joint stereo, Recording Bit Rate options of- 32 bit, 64 bit and 128 bits. This program is available for Windows 2000/ XP/ 2003/ Vista and Windows Server 2008.

Pamela Basic Free Version

With so many software available its necessary to choose good programs among the mentioned. Pamela allows you to record Skype calls from anywhere. In addition to this Pamela can play audio files during a call, take notes during or after the call. Pamela Basic version is completely free use but there advanced version is a paid one.

Pamela basic version supports Windows operating systems.

BEST SSH COMMANDS / TRICKS


1) COPY SSH KEYS TO USER@HOST TO ENABLE PASSWORD-LESS SSH LOGINS.
ssh-copy-id user@host

To generate the keys use the command ssh-keygen

2) START A TUNNEL FROM SOME MACHINE’S PORT 80 TO YOUR LOCAL POST 2001
ssh -N -L2001:localhost:80 somemachine

Now you can acces the website by going to http://localhost:2001/

3) OUTPUT YOUR MICROPHONE TO A REMOTE COMPUTER’S SPEAKER
dd if=/dev/dsp | ssh -c arcfour -C username@host dd of=/dev/dsp

This will output the sound from your microphone port to the ssh target computer’s speaker port. The sound quality is very bad, so you will hear a lot of hissing.

4) COMPARE A REMOTE FILE WITH A LOCAL FILE
ssh user@host cat /path/to/remotefile | diff /path/to/localfile -

Useful for checking if there are differences between local and remote files.

5) MOUNT FOLDER/FILESYSTEM THROUGH SSH
sshfs name@server:/path/to/folder /path/to/mount/point

Install SSHFS from http://fuse.sourceforge.net/sshfs.html
Will allow you to mount a folder security over a network.

6) SSH CONNECTION THROUGH HOST IN THE MIDDLE
ssh -t reachable_host ssh unreachable_host

Unreachable_host is unavailable from local network, but it’s available from reachable_host’s network. This command creates a connection to unreachable_host through “hidden” connection to reachable_host.

7) COPY FROM HOST1 TO HOST2, THROUGH YOUR HOST
ssh root@host1 “cd /somedir/tocopy/ && tar -cf – .” | ssh root@host2 “cd /samedir/tocopyto/ && tar -xf -”

Good if only you have access to host1 and host2, but they have no access to your host (so ncat won’t work) and they have no direct access to each other.


8)RUN ANY GUI PROGRAM REMOTELY

ssh -fX @

The SSH server configuration requires:

X11Forwarding yes # this is default in Debian

And it’s convenient too:

Compression delayed

9) CREATE A PERSISTENT CONNECTION TO A MACHINE
ssh -MNf @

Create a persistent SSH connection to the host in the background. Combine this with settings in your ~/.ssh/config:
Host host
ControlPath ~/.ssh/master-%r@%h:%p
ControlMaster no
All the SSH connections to the machine will then go through the persisten SSH socket. This is very useful if you are using SSH to synchronize files (using rsync/sftp/cvs/svn) on a regular basis because it won’t create a new socket each time to open an ssh connection.

10) ATTACH SCREEN OVER SSH
ssh -t remote_host screen -r

Directly attach a remote screen session (saves a useless parent bash process)

11) PORT KNOCKING!
knock 3000 4000 5000 && ssh -p user@host && knock 5000 4000 3000

Knock on ports to open a port to a service (ssh for example) and knock again to close the port. You have to install knockd.
See example config file below.
[options]
logfile = /var/log/knockd.log
[openSSH]
sequence = 3000,4000,5000
seq_timeout = 5
command = /sbin/iptables -A INPUT -i eth0 -s %IP% -p tcp –dport 22 -j ACCEPT
tcpflags = syn
[closeSSH]
sequence = 5000,4000,3000
seq_timeout = 5
command = /sbin/iptables -D INPUT -i eth0 -s %IP% -p tcp –dport 22 -j ACCEPT
tcpflags = syn

12) REMOVE A LINE IN A TEXT FILE. USEFUL TO FIX
ssh-keygen -R

In this case it’s better do to use the dedicated tool

13) RUN COMPLEX REMOTE SHELL CMDS OVER SSH, WITHOUT ESCAPING QUOTES
ssh host -l user $(<cmd.txt)

Much simpler method. More portable version: ssh host -l user “`cat cmd.txt`”

14) COPY A MYSQL DATABASE TO A NEW SERVER VIA SSH WITH ONE COMMAND
mysqldump –add-drop-table –extended-insert –force –log-error=error.log -uUSER -pPASS OLD_DB_NAME | ssh -C user@newhost “mysql -uUSER -pPASS NEW_DB_NAME”

Dumps a MySQL database over a compressed SSH tunnel and uses it as input to mysql – i think that is the fastest and best way to migrate a DB to a new server!

15) REMOVE A LINE IN A TEXT FILE. USEFUL TO FIX “SSH HOST KEY CHANGE” WARNINGS
sed -i 8d ~/.ssh/known_hosts

16) COPY YOUR SSH PUBLIC KEY TO A SERVER FROM A MACHINE THAT DOESN’T HAVE SSH-COPY-ID
cat ~/.ssh/id_rsa.pub | ssh user@machine “mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys”

If you use Mac OS X or some other *nix variant that doesn’t come with ssh-copy-id, this one-liner will allow you to add your public key to a remote machine so you can subsequently ssh to that machine without a password.

17) LIVE SSH NETWORK THROUGHPUT TEST
yes | pv | ssh $host “cat > /dev/null”

connects to host via ssh and displays the live transfer speed, directing all transferred data to /dev/null
needs pv installed
Debian: ‘apt-get install pv’
Fedora: ‘yum install pv’ (may need the ‘extras’ repository enabled)

18) HOW TO ESTABLISH A REMOTE GNU SCREEN SESSION THAT YOU CAN RE-CONNECT TO
ssh -t user@some.domain.com /usr/bin/screen -xRR

Long before tabbed terminals existed, people have been using Gnu screen to open many shells in a single text terminal. Combined with ssh, it gives you the ability to have many open shells with a single remote connection using the above options. If you detach with “Ctrl-a d” or if the ssh session is accidentally terminated, all processes running in your remote shells remain undisturbed, ready for you to reconnect. Other useful screen commands are “Ctrl-a c” (open new shell) and “Ctrl-a a” (alternate between shells). Read this quick reference for more screen commands: http://aperiodic.net/screen/quick_reference

19) RESUME SCP OF A BIG FILE
rsync –partial –progress –rsh=ssh $file_source $user@$host:$destination_file

It can resume a failed secure copy ( usefull when you transfer big files like db dumps through vpn ) using rsync.
It requires rsync installed in both hosts.
rsync –partial –progress –rsh=ssh $file_source $user@$host:$destination_file local -> remote
or
rsync –partial –progress –rsh=ssh $user@$host:$remote_file $destination_file remote -> local

20) ANALYZE TRAFFIC REMOTELY OVER SSH W/ WIRESHARK
ssh root@server.com ‘tshark -f “port !22″ -w -’ | wireshark -k -i -

This captures traffic on a remote machine with tshark, sends the raw pcap data over the ssh link, and displays it in wireshark. Hitting ctrl+C will stop the capture and unfortunately close your wireshark window. This can be worked-around by passing -c # to tshark to only capture a certain # of packets, or redirecting the data through a named pipe rather than piping directly from ssh to wireshark. I recommend filtering as much as you can in the tshark command to conserve bandwidth. tshark can be replaced with tcpdump thusly:
ssh root@example.com tcpdump -w – ‘port !22′ | wireshark -k -i –

21) HAVE AN SSH SESSION OPEN FOREVER
autossh -M50000 -t server.example.com ‘screen -raAd mysession’

Open a ssh session opened forever, great on laptops losing Internet connectivity when switching WIFI spots.

22) HARDER, FASTER, STRONGER SSH CLIENTS
ssh -4 -C -c blowfish-cbc

We force IPv4, compress the stream, specify the cypher stream to be Blowfish. I suppose you could use aes256-ctr as well for cypher spec. I’m of course leaving out things like master control sessions and such as that may not be available on your shell although that would speed things up as well.

23) THROTTLE BANDWIDTH WITH CSTREAM
tar -cj /backup | cstream -t 777k | ssh host ‘tar -xj -C /backup’

this bzips a folder and transfers it over the network to “host” at 777k bit/s.
cstream can do a lot more, have a look http://www.cons.org/cracauer/cstream.html#usage
for example:
echo w00t, i’m 733+ | cstream -b1 -t2

24) TRANSFER SSH PUBLIC KEY TO ANOTHER MACHINE IN ONE STEP
ssh-keygen; ssh-copy-id user@host; ssh user@host

This command sequence allows simple setup of (gasp!) password-less SSH logins. Be careful, as if you already have an SSH keypair in your ~/.ssh directory on the local machine, there is a possibility ssh-keygen may overwrite them. ssh-copy-id copies the public key to the remote host and appends it to the remote account’s ~/.ssh/authorized_keys file. When trying ssh, if you used no passphrase for your key, the remote shell appears soon after invoking ssh user@host.

25) COPY STDIN TO YOUR X11 BUFFER
ssh user@host cat /path/to/some/file | xclip

Have you ever had to scp a file to your work machine in order to copy its contents to a mail? xclip can help you with that. It copies its stdin to the X11 buffer, so all you have to do is middle-click to paste the content of that looong file

Some use full Linux Commands to get Complex Things Done Easily



To Serve Current Directory on Web without Installing a Web Server – Use it Share your Files to your friend over the Web

$ python -m SimpleHTTPServer 8080

This Command will serve the current directory tree at http://$HOSTNAME:8080/
So if you wished to share some files with your friend over the Internet streaming them right from your pc then just run this script, check your IP using whatismyip.com and then ask your friend to open,
http://Your IP:8080/ for example http://123.34.56.12:8080/ and he/she can copy your files immediately


To Run a Linux Command at a Given Time

echo “ls -l” | at midnight
OR
echo “ls -l” | at 10am Jul 21
Now , the first command will do a “ls -l” at midnight , and to run any other command at a specific time just type in the command then the pipe operator(|) follwed by “at time”
Like the second command will do a “ls -l” at 10 am on july 21st


Update Twitter From the Linux Command Line

curl -u user:pass -d status=”I am Tweeting from the shell” http://twitter.com/statuses/update.xml
Now all you have to do is replace user by your twitter username , pass by your password and the text inside status to whatever you wish to set your status too .
It uses cUrl library to post your messsage


To Display Programs/Process consuming Maximum Memory
ps aux | sort -nk +4 | tail

The above command displays the 10 most resource hogging process consuming big share of your memory.


An Impressive One – List of Commands you use Often at Shell

history | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head


See What is Stored inside your RAM

This command will display all strings currently stored in your RAM , will sure make you feel Good if you love to play with your PC
sudo dd if=/dev/mem | cat | strings


Download An Entire Website

wget –random-wait -r -p -e robots=off -U mozilla http://www.example.com

-p parameter tells wget to include all files, including images.

-e robots=off you don’t want wget to obey by the robots.txt file

-U mozilla as your browsers identity.

–random-wait to let wget chose a random number of seconds to wait, avoid get into black list.

Other Useful wget Parameters:

–limit-rate=20k limits the rate at which it downloads files.

-b continues wget after logging out.

-o $HOME/wget_log.txt logs the output


Lst The Size (In Human Readable Form) Of All Sub Folder From The Current Location

du -h –max-depth=1


A Very Simple And Useful Stop Stop Watch

time read (ctrl-d to stop)

time read -sn1 (s:silent, n:number of characters. Press any character to stop)


Shutdown a Windows Machine From Linux

net rpc shutdown -I ipAddressOfWindowsPC -U username%password

This will issue a shutdown command to the Windows machine. username must be an administrator on the Windows machine. Requires samba-common package installed. Other relevant commands are:

net rpc shutdown -r : reboot the Windows machine

net rpc abortshutdown : abort shutdown of the Windows machine

Type:

net rpc

to show all relevant commands


Jump to a Directory, Execute a Command and Jump Back to Current DIR

(cd /tmp && ls)


Set Audiable Alarm When An IP Address Comes Online

ping -i 60 -a IP_address

Waiting for your server to finish rebooting? Issue the command above and you will hear a beep when it comes online. The -i 60 flag tells ping to wait for 60 seconds between ping, putting less strain on your system. Vary it to your need. The -a flag tells ping to include an audible bell in the output when a package is received (that is, when your server comes online).


Watch Network Service Activity in Real-Time

lsof -i


RIP Audio From a Video File

mplayer -ao pcm -vo null -vc dummy -dumpaudio -dumpfile

replace accordingly