Tuesday, 23 June 2015

How to Browse From the Linux Terminal



We can use terminal as a browser in linux. For that We need to install w3m tool in you system.

To install:

sudo apt-get install w3m w3m-img

To use:

  • to open a webpage simply type in a terminal window: w3m <url_of_the_webpage>
  • to open a new page: type Shift-U
  • to go back one page: Shift-B
  • open a new tab: Shift-T
  • Friday, 22 August 2014

    HTTRack Tool in Ubuntu

    We can download text, pdf, video from online. We can use those thinks without internet connection. But i want to use website in offline how i use website in online. I found one tool in google search.
         This tool is very useful to me. So I want to share you to get benefit by this tool.

    1. Open Terminal
    2. Type sudo apt-get install httrack
    3. After getting installed, just type httrack in the terminal. it will ask some question to which site and which path will it be saved.
    4. You will give answer for those question.
    5. After few minutes it will be downloaded fully.
    6. You can use website in offline.



    Note: You must have internet connection, when you download website



    ERROR: File must be owned by the database user or root, must have no write permission for "group", and must have no permissions for "other".


    You may get following error,  when you install any software in ubuntu. By this problem I was struggling very much. After long time i got solution from stack overflow sites for this problem. I want to share what I got solution for this problem. It may help you.

     Starting PostgreSQL 8.4 database server
     * The PostgreSQL server failed to start. Please check the log output:
    2010-01-21 22:10:00 PST FATAL: private key file "server.key" has group or world access
    2010-01-21 22:10:00 PST DETAIL: File must be owned by the database user or root, must have no write permission for "group", and must have no permissions for "other".

    could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

    Solution:

    1) Enter the relevant directory (use> locate server.key)

    2) Back up old server.key link.

    3) Copy ssl-cert-snakeoil.key to server.key

    4-5) Change its owner & group to postgres

    6) Ensure the permissions are 700 or 740 (as requested by error message)

    Recipe for my Ubuntu 12.04 & postgresql-8.3:

    sudo cd /var/lib/postgresql/8.3/main/
    sudo mv server.key server.key-0
    sudo cp /etc/ssl/private/ssl-cert-snakeoil.key server.key
    sudo chown postgres server.key
    sudo chgrp postgres server.key
    sudo chmod 740 server.key
    sudo /etc/init.d/postgres-8.3 start

    Saturday, 16 August 2014

    GParted tool in Ubuntu

              
         GParted is partitioning tools  for Linux. We can partition hard disk with out re install of Operation system. This tool is available in Ubuntu Software center.  Which part you want to partition (such as main memory, Swap memory), first you should unmount that portion,than you can change size of memory.



    Saturday, 19 July 2014

    Tips for New Web Developer

    Work Locally:
        
          Working locally means that you have an instance of your web app running on your machine. You edit files directly on your machine, rather than uploading every change to the server.
         It is tempting to edit files directly on your shared server, but don't do it! It is a very bad practice and will bite you over and over again if you let it become habit. You may start out thinking of a website as one chunk of information and logic intertwined, but working locally and pushing your completed changes up to the server helps you to understand the difference between the data/logic that lives in the database and the data/logic that lives in the code. Understanding this difference will allow you to create more modular systems by putting all data in the database and all logic in the code.
         Also, by editing a live site, you must always be afraid of breaking it and will have to be more careful. Phooey, download your site locally and break it over and over again! Only by breaking it will you learn how to fix it and make it better!

    Use Version Control
    Version control is a way to keep track of all the changes you have made to your code. It allows you to save working states of your code and easily revert back, and see differences between states. It also allows multiple people to work on the same code base without overwriting each other's changes
    Version control is one of the first things you should learn as a developer! There are people graduating with computer science degrees from universities who have never used any form of version control. This is a travesty! It is such a simple thing, and so important - not only is it essential for working with others, but as a way to provide a safety net and allow you to freely experiment with code and always be able to get back to a safe spot. Learn how to use git!

    Get Good at Computering

    Learn how to use your computer! Learn keyboard shortcuts for the programs you use. Develop workflows that work for you and allow you to be more productive. Learn how to use your editor, and find some great debugging tools. Go to local meetups and mingle with other developers and ask questions - people will gladly help! Ask to pair with an advanced developer and pick up on some of their tricks. This includes learning the command line! Start by learning how to navigate your file system, make folders and delete files. As you become a more advanced developer being comfortable on the command will save you a bunch of time.

    Believe in Yourself

    So many people think "I could never do that with web development, I am not smart enough, I could only ever tinker with Wordpress". This is a load of bullshit. Web development is hard, this is true, but an awesome thing about web development is that all the information is out there just waiting for you to find it! You absolutely do not need a formal education to be a great developer.
    With great open source software like Wordpress and Drupal, you don't need to know a lot to be able to get started creating real software that gets work done. I started in web development by hacking together some open source PHP. I lurked in forums, followed tutorials, and installed modules and for a long time. I didn't really embrace learning to code, because I thought I wouldn't be good at it. I learned some CSS and some Drupal and went to town making websites for people that had a surprising amount of functionality. Go ahead and start there, but use it as a platform to learn more!

    [Content From]
    www.mutuallyhuman.com

    Thursday, 3 July 2014

    Linux command is used to find and Convert all *.wmv extension to *.mp4 file format

    Basics :
                 Note: the file name should not contain any space please replace space with _ underscore ;       
           
            1) Finding File

                    root@ubuntu:$ find . -name "*.wmv" used to list all the files
          
            2) Executing command with find result

                    -exec <linux command to execute > \; is used to execute the command ;
          
            3) FFmpeg Conversion:
                 
    ffmpeg -i <input_file_name.wmv> -strict experimental -acodec aac -vcodec libx264 <output_file_name.mp4>
          
            4)
    For Renaming files
                    rename 's/.abc$/.edefg/' *.abc
           
               So Lets Start converting Files :

              your command Should be like this :
               
            Step 1: For Video Conversion (wmv to mp4) :
           
                find . -name "*.wmv" -exec ffmpeg -i {} -strict experimental -acodec aac -vcodec libx264 {}.mp4 \;

            Note:
                   The above command start converting and saving file in same location
                    eg:  original file : test.wmv   converted file : test.wmv.mp4

            Step 2: Renaming Files
           
                find . -name "*.wmv.mp4" -print0 | xargs -0 rename 's/.wmv.mp4$/.mp4/'

           Note:
                    The above command used to rename files from test.wmv.mp4 to test.mp4

    Author,
    Kanth Anand

    Saturday, 21 June 2014

    Volume Trouble shooting in Ubuntu 12.04

    In ubuntu 12.04 when you can not increase sound of system sound, Even you set correct in sound settings.

    So try following steps:

    steps 1: open terminal  
    steps 2: run "sudo alsa force-reload"
    steps 3: restart your system.

    It will be work.