Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Thursday, December 6, 2012

Some Basic Networking Commands : Linux/Windows

I this post i am gonna write about some basic Networking commands used in Windows/Linux that i found important.
  • Display Network configuration and interfaces
    1. windows : "ipconfig" or "ipconfig /all"
    2. Linux: "ifconfig" or "ifconfig interface-name"
  • Show all running Tasks/Applications
    1. windows : "tasklist
    2. Linux: "ps aux" or "top" (Top is used to show memory and CPU used by running process)
  • Kill a task
    1. windows : "taskkill -pid 4000" or "taskkill -im iexplore.exe" ( Here -im is for image name)
    2. Linux: "kill -9 pid"
  • Displays the active TCP connections and ports on which the computer is listening
    1. windows : "netstat -a"
    2. Linux: "netstat -an"
  • Diagnose the Domain Name System (DNS) : Resolves a hostname to IP address
    1. windows : "nslookup google.com
    2. Linux: "dig google.com"
  • Ping : tool used to test whether a particular host is reachable or not.
    1. windows/Linux IPv4 : "ping 74.125.236.73"
    2. Windows/Linux IPv6: "ping6 9901::1"
  • Path Ping : To see all the routers present in path to Destination
    1. windows : "pathping google.com
    2. Linux: "tracepath google.com"
  • Assign IP/Subnet to Linux interfaces
    1. Linux - IPv4 : "ifconfig eth0 192.168.1.2 netmask 255.255.255.0"
    2. or Linux - IPv4 : "ifconfig eth0 2.2.2.2/24"
    3. Linux - IPv6 : "ifconfig eth1 inet6 add 9901::2/64 "
  • Delete IP from Linux interfaces
    1. Linux - IPv4 : "ifconfig eth1 del 2.2.2.3 netmask 255.255.255.0"
    2. Linux - IPv6 : "ifconfig eth1 inet6 del 9901::2/64"
  • Change MTU(Maximum Transmit Unit through an Interface) of Linux interfaces
    1. Linux : "ifconfig interface_name mtu value"
    2. Linux : "ifconfig eth1 mtu 1300"
  • Print routing tables
    1. windows : "netstat -r" or "route print"
    2. Linux- IPv4: "route -A inet" or "route -4" or "ip route"
    3. Linux -IPv6: "route -A inet6" or "route -6" or "ip -6 route"
    • Add/Delete static routes
      1. windows- IPv4 : "route add 10.10.10.0 mask 255.255.255.0 192.168.1.12"
      2. Windows - IPv6 : "netsh interface ipv6 add route 9901::/64 "Local Area Connection" 2001::1"
      3. Linux-IP4: "route add -net 3.3.3.0 netmask 255.255.255.0 gw 1.1.1.1"
      4. Linux-IP4: "ip route add 3.3.3.0/24 via 1.1.1.1"
      5. Linux-IP6: "route -A inet6 add 9901::/64 gw 2001:0db8:0:f101::1"
      6. Linux-IP6: "ip -6 route add 9901::/64 via 2001:0db8:0:f101::1"
    • Trace route : to diagnostic tool for displaying the route
      1. windows : "tracert google.com"
      2. Linux: "traceroute google.com"
    • Secure Shell :SSH is a network protocol for secure data communication and remote command execution
      1. SSH-IPv4 : "ssh username@IPv4_address" Ex: ssh root@74.125.236.73 then it will ask you for password.
      2. SSH-IPv6: "ssh username@IPv6_address"  Ex : ssh username@9901::1.
    • Secure FTP : SFTP is a network protocol that provides file access, file transfer, and file management functionalities over any reliable data stream.
      1. SFTP-IPv4 : "sftp username@IPv4_address". Ex: sftp root@74.125.236.73
      2. Linux: "sftp username@[IPv6_address]". Ex:  sftp username@[9901::15]
    • Secure Copy or SCP : Secure copy or SCP is a means of securely transferring computer files between a local host and a remote host or between two remote hosts. It is based on the Secure Shell (SSH) protocol.
      1. SCP Linux : scp  username@IP:/Dir/File_name /local_dir
      2. Ex:     scp  root@10.217.208.40:/root/roy.txt .
      3. SCP windows : For windows you can use, WinSCP. Its a GUI based tool.

      Wednesday, August 1, 2012

      Useful Indicators for Ubuntu

      Hey Guys, Welcome back after a long period of time.
      In this post, I am going to talk about various system monitor and other useful indicator for Ubuntu.


      System Monitor Indicator

      1. System Load Monitor indicate the usage of CPU, Memory(RAM), Network Upload and Download speed, Disk read and Write speed and available SWAP space.
      2. Follow these command to install it.
      • " sudo add-apt-repository ppa:indicator-multiload/stable-daily "
      • " sudo apt-get update "
      • " sudo apt-get install indicator-multiload "

      Weather Indicator

      Install using Command Line
      • " sudo apt-get install indicator-weather "



      Thursday, June 14, 2012

      Encrypt and Decrypt files in ubuntu

      ccrypt is a utility for encrypting and decrypting files. It is based on the Rijndael cipher, which is the U.S. government's chosen candidate for the Advanced Encryption Standard . This cipher is believed to provide very strong security.
      To install it run the following command:
      • " sudo apt-get install ccrypt "
      To Encrypt the file run following command:
      • " ccrypt filename "
      You will be prompted to submit desired password to encrypt file which will be required to decrypt the file.

      To Decrypt run following command:
      • " ccrypt -d filename "
      Enjoy !!!

      Friday, June 8, 2012

      Record Skype Voice Calls On Ubuntu

      In this blog post i am going to show you, how can you record Skype Voice Calls on Ubuntu.
      There is a utility called Skype Call Recorder which is available on Ubuntu Repository .Follow these steps to install it.
      Open Your Terminal and Type :
      • " sudo apt-add-repository ppa:dajhorn/skype-call-recorder "
      • " sudo apt-get update "
      • " sudo apt-get install skype-call-recorder "
      Now launch the Skype then start Skype Call Recorder to record your calls.
      By default all recorded calls will be saved in a folder Skype Calls in your Home directory.

      These are the some features of Skype Call Recorder.
      - Record calls to MP3, Ogg Vorbis or WAV files
      - Automatic and manual recording
      - Configure automatic recording on per-caller basis
      - Split stereo recording
      - Completely free

      Enjoy !!!

      Monday, May 21, 2012

      How To Set Proxy in Ubuntu terminal

      If you are under a proxy server, and want to access net using http or ftp through Terminal,you will need to export http_proxy/ftp_proxy variables. 
       For a HTTP proxy, simply run the following command in a terminal
      •  export http_proxy='http://proxy_username:password@proxy_ip:port " 
      For a HTTPs and FTP 
      •  export https_proxy=https://proxy_username:password@proxy_ip:port 
      •  export ftp_proxy=ftp://proxy_username:password@proxy_ip:port   
      If there is no username and password required for your proxy then simply remove the username and password section. 

      • " export https_proxy=https://proxy_ip:port "
      These settings are saved into  /etc/apt/apt.conf file .So you can directly add these variables using text editor .First open the apt.conf file
      • " sudo gedit /etc/apt/apt.conf "
      then enter the username,password,proxy_ip and port in given format
      •  Acquire::http::proxy "http://proxy_username:password@proxy_ip:port ";
      •  Acquire::https::proxy "https://proxy_username:password@proxy_ip:port" ;
      •  Acquire::ftp::proxy "ftp://proxy_username:password@proxy_ip:port ";

      Enjoy !!!!

      Wednesday, May 16, 2012

      How to solve Google sign in issue in Picasa (Ubuntu)

      In a earlier blog post i talked about how to use Picasa software to store unlimited imaged and videos on PicasaWeb . Many of you may have installed  Picasa on Ubuntu(Linux) .But when you try to log in into your google account to upload images on Picasaweb or Google+ , it gives error check your internet connection (atleast with me it always happened).
      In this blog i am going to show you how to install picasa and solve the login issue .
      The "trick" is simply to install Internet Explorer 6 using Winetricks, which is required because Picasa 3.9 uses Google OAuth.

      Step# 1. Install Wine and Winetricks using following commands
      • "sudo apt-get install wine winetrick"
      Step# 2. Install Picasa 3.9
      • "cd && wget http://dl.google.com/picasa/picasa39-setup.exe" or "manually download it to your home directory using this link"
      • "wine picasa39-setup.exe" (it will prompt for path where you want to install Picasa , I chose my document folder)
      Step# 3. To login to google account you must install IE6 via winetricks using following command
      • "winetricks ie6
      (If IE setup doesn't start and you get an error then you can manually download IE6 from this link in ~/.cache/winetricks/ie6/ folder  then run "winetricks ie6" )

      Step# 4. when the installation of IE6  is successful , run Picasa .Now click the login link on the Picasa the Google/Picasa login should now work. :)


      Enjoy !!!!

      Saturday, May 12, 2012

      Install TV-Maxe (SopCast Player) in Ubuntu and watch online TV


      TV-MAXE is an application that you can use to watch TV stations online, through a P2P technology called SopCast.


      To install the latest TV-Maxe in Ubuntu, use the commands below:
      • "sudo add-apt-repository ppa:venerix/blug"
      • "sudo apt-get update"
      • "sudo apt-get install tv-maxe"
      enjoy !!!


      watching HBO :)

      Available TV-Channels on TV-MAXE
      1. AXN
      2. AXN Crime
      3. AXN Sci-Fi
      4. BBC News
      5. BBC World
      6. CNBC
      7. Cartoon Network
      8. CNN
      9. Comedy Central
      10. Discovery Channel
      11. Disney Channel
      12. ESPN
      13. HBO
      14. HBO Comedy
      15. HBO HD
      16. Hit Music TV
      17. MGM
      18. MOOZ HD
      19. MOOZ Hits
      20. History Channel
      21. National Geographic
      22. Sony Entertainment ........and many more ( Total 123 channel Romania and International channels )

      Add Subscription :

      If You have any subscription of channels then you can also add this subscription to TV-maxe .
      • Go to : "TV-maxe > Preferences > subscriptions " and Click on add.
      Here i am giving you a international channel subscription .it contains 24 channels. You can add this to your subscription.

      Add Channels :
      You can also add your favorite  channels as follow :
      • Click on : "TV-maxe > list > add a new channel"  (a new window will be prompted)

      • Add New channel name and  its URL .You can also add icon to this channel .
      Here i am giving you some of my favorite indian channels name with their Streaming URL. You can add these channels to TV-maxe :)

      Friday, April 20, 2012

      Install libgraph library in GCC

      Step #1.Install the following in Synaptic Package Manager
      • libsdl-image1.2
      • libsdl-image1.2-dev
      • guile-1.8-dev
      • guile-1.8 
      Step #2. Download and install libgraph then
      • ./configure
      • sudo make
      • sudo make install
      Step #3  Include graphics.h in your C program . Initialize the graphics system by
      • int gd=DETECT, gm=VGAMAX;
      • initgraph(&gd, &gm, NULL);

      Step #4 you need to copy all the libgraph shared files from /usr/local/lib to /usr/lib
      •  sudo cp /usr/local/lib/libgraph.* /usr/lib

      Now Compile the program  using following command : gcc filename.c -lgraph



      Enjoy !!!!