Recent Updates Toggle Comment Threads | Keyboard Shortcuts

  • Tushar Neupaney 8:34 am on February 10, 2011 Permalink | Reply  

    10 ways to finding things in linux 

    Basically i am talking about Linux terminal and without installing any new programs. I will also not use any programming languages. I am not digging into regexp details, please refer to their documentations. Many programs have their own regexp and syntax so I usually pipe the output to the input of egrep or such to satisfy my needs. This document is for reference and only states how i use them. These are obviously not the only ways.

    1. ls (dir also does things similar) : List the contents. Ls is the first command I use to search in Linux. Obviously the very basic but also, very useful if you know in which directory your file is. This command was written partly by Richard stallman himself. To do a simple search just type ls followed by the file name. Other examples:

        # To search file names with a fixed file-type (Using Wildcard)
        # Here I am searching for mp3 files in my current directory
        ls -C *.mp3
       
        * this matches everything that has a ‘.mp3′ anywhere in the filename and puts it in a column (-C).
       
        # To search for file whose filetype and first starting character I remember
        # I am searching for mp3 files whose first character is y
        ls | egrep ‘^[Yy].*.mp3$’
       
        * this matches everything starting(‘^’ for starting character) with a ‘Y or y’ and any number (here ‘*’ for any number of times) of character (here ‘.’ for any character) following it which ends in “.mp3″ (here $ as end of line).
       
    2. locate : Locate is a command line file search utility which finds file by it’s name until regexp is used. Unlike ls, locate searches for files in all directories. But it has a major drawback. It uses a database(‘/var/lib/mlocate/mlocate.db’) to search from, which might not be updated all the time.

        # To update the database use
        updatedb

    3. who (also, finger and w) : While a little different, it searches for users who are logged into the computer right now. Finger provides a little more detail
        # To find out who logged into the system after the computer booted type:
        who -a -H
       
    4. whatis (apropos and man) : These commands searches for discription about some binaries, files whose manual pages are available. It is very useful to find out if an application is installed which additionally displays descriptions (short description in whatis and broader and long description in apropos and a complete manual with man) of the application. whatis and apropos supports regex and wildcards.

        # To find out if ls is installed in your system with whatis type:
        whatis ls
       
        # To do the same with apropos
        apropos -e ls
    (More …)

     
    • Javin @ FIX Protocol Tutorial 1:48 pm on February 22, 2011 Permalink | Reply

      Thanks for this nice article. here is my list of top 10 basic networking command in unix I would rather say very useful and practical unix linux networking commands :)

      Thanks
      Javin Paul
      FIX Protocol tutorial

    • warcraft 2 9:59 pm on February 22, 2011 Permalink | Reply

      It was something of great contentment discovering your site the other day. I arrived here now hoping to come across interesting things. And I was not let down. Your ideas in new techniques on this subject material were topical and an excellent help to me personally. Thank you for creating time to create these things and then for sharing your thoughts.

    • linuxhospital 3:09 am on May 12, 2013 Permalink | Reply

      Good one :) Very helpfull

  • Tushar Neupaney 9:26 am on December 23, 2010 Permalink | Reply  

    Ubuntu 10.10. What I did to my computer. 

    After installing Ubuntu 10.10 into my computer the following are the list of software and tweaks i did to my computer. If you like it you can use it.

    1. Installed Firefox addons:
    a. Adblock Plus
    b. DownloadHelper
    c. Download Statusbar
    d. FaviconizeTab
    e. Fission
    f. Greasemonkey
    g. Omnibar
    h. Smart Stop/Reload
    i.  SmoothWheel
    j.  Stylish (installed the style: Highlight Input&Textarea)
    k. Firebug
    l. FireFTP
    m. Chromifox Basic

    And Did the following Tweaks

    (More …)

     
    • Mat 3:46 pm on January 17, 2011 Permalink | Reply

      Good job… glad to see someone so thorough. I thought I was the only fastidious person out there. Recommending this to fellowship of Linux users.

    • nethermann 11:45 pm on August 1, 2011 Permalink | Reply

      To create a cheap-o Artha dockley with Docky, create a 1×1 pixel transparent artha.png, then move it to /usr/share/pixmaps/artha.png. This eliminates the tray icon, but artha will still be running in the tray. Then add your artha launcher to the docky panel. You will get your hotkey definition notifications, and can use the docky icon to open artha. Viola – a docky handler for artha!

    • rishidev 4:34 am on March 23, 2012 Permalink | Reply

      the best and most useful info at one stop!!……………………
      excellent site.

  • Tushar Neupaney 6:04 am on July 1, 2010 Permalink | Reply
    Tags: , , service, stop,   

    stop mysql from running at startup 

    My Linux box was running mysql from the start and I did have no clue. It was not in my startup applications list, neither in my init.d folders.

    But whenever i did nmap of localhost, i could see the mysql port open. I could kill mysql service, need to kill it multiple times, only then it used to die.

    I even installed “sysv-rc-conf” so that i could stop it at run levels, but it was not running at any runlevels. I then did “update-rc.d mysql disable”. Which didn’t work either.

    Later I found that there was a file called “mysql.conf” in /etc/init/ folder. I renamed the file to mysql.conf.disabled and it worked out. Hope this will help others who have the same problem.

     
  • Tushar Neupaney 8:33 am on May 26, 2010 Permalink | Reply  

    Lookup details of an IP or Domain (whois lookup) graphically 

    By using the following script you can easily lookup for an ip or domain using zenity and shell script. (sorry Windows folks, i just hate you).

     

    #!/bin/bash
    # Get the domain name
    Z=”/usr/bin/zenity”
    O=”/tmp/whois.o.$$”
    domain=$(${Z} –title  “Domain Information” \
                    –entry –text “Domain name who’s information you seek!” )

    if [ $? -eq 0 ]
    then
        whois $domain  | tee >${O}
     
      # Display back output
      ${Z} –width=800 –height=600  \
                   –title “Whois info for $domain” \
                   –text-info –filename=”${O}”
    else
      ${Z} –error \
                   –text=”No input provided”
    fi

     

    Enjoy. :D

    Posted via web from Linux fanatic

     
  • Tushar Neupaney 11:18 am on April 8, 2010 Permalink | Reply  

    oh i am back in ruby! 

    After a long time, I am back and am back in ruby too.
    doing new things in ruby.

    class linuxfanatic 
      def says(message)  
        puts message  
      end  
    end  
      
    tushar = linuxfanatic.new  
    tushar.says “oh i am back in ruby!” 

     

    Posted via web from Linux fanatic

     
  • Tushar Neupaney 11:09 am on March 30, 2010 Permalink | Reply  

    Find latitute and longitute in google maps. 

    To make this script work the map must have some point to the center. Else, click on the center of the map of whose you want longitute and latitute and then paste the following in your browser. You will get your result.

    javascript:void(prompt(”,gApplication.getMap().getCenter()));

    Posted via web from Tutorial Universe

     
  • Tushar Neupaney 6:18 am on March 22, 2010 Permalink | Reply  

    Make Your Linux Box Blazing fast! 

    This list is compiled for my personal use, should work for anyone. Try the followings:

    1. Use lighter applications (Replace your default applications with them)

    Gedit >> Mousepad
    Picture viewer (EOG …) >> Gpicview
    Network Manager >> Wicd
    Evince >> epdfview

    2. Increase Swappiness

    $ sudo vim /etc/sysctl.conf
    Edit: vm.swappiness=10

    3.  For dual cores (Use Concurrency)

    $ sudo vim /etc/init.d/rc
    Edit: CONCURRENCY=shell

    4. Clean up apt cache at /var/cache/apt/archives and unneccessary apt-sources list in /etc/apt/sources.list

    $ sudo apt-get autoclean

    5. Install BUM (Boot Up manager)

    $ sudo apt-get install bum

    Remove unneccessary applications and services from startup

    6. Remove some unneccessary TTY’s

    $ sudo vim /etc/default/console-setup
    Edit: ACTIVE_CONSOLES=”/dev/tty[1-3]“

    Note: goto /etc/event.d/ and change the tty’s files that you DONOT want. Edit them and comment lines starting with “start on runlevel”. So, in this case, you’ll comment the start line in tty4..tty6 files.

    7. Install Prelink

    $ sudo apt-get install prelink
    $ sudo vim /etc/default/prelink
    Edit
    : PRELINKING=Yes
    $ sudo /etc/cron.daily/prelink

     8. Install Preload

    $ sudo apt-get install preload

    9. Get rid of kinit if you don’t use hibernate and sleep functions.

    $ sudo vim /etc/initramfs-tools/conf.d/resume
    Edit: Comment (Put # in front of) RESUME=XXXX…………………….

    [Disclaimer] Administer the following at your own risk.

    Posted via web from Linux fanatic

     
  • Tushar Neupaney 6:30 am on January 14, 2010 Permalink | Reply
    Tags: .vimrc, Configuration, Editor, , , , Vim   

    My .vimrc file 

    Vim is the editor of my choice for my linux box. I have configured my .vimrc file in my ubuntu.

    ————————————————————————————————————-

    ” Tushar Neupaney’s VIMRC File
    ” Followme twitter.com/tneupaney
    ” linuxfanatic.posterous.com

    ” (sw)shiftwidth: how many columns text is indented with reindent operations
    ” (sts)softtabstop: how many columns vim uses when you hit tab
    ” (ts)tabstop: how many columns a tab counts for
    set ts=4 sw=4 sts=2

    expandtab: appropriate number of spaces in insert mode
    set expandtab

    ” Make gvim colorscheme as evening
    if v:progname =~? “gvim”
    colorscheme evening
    endif

    ” Prevents keeping of backup after overwriting the file
    set nobk

    ” To see line numbers on the left
    set number

    autocomplete parenthesis, brackets and braces
    inoremap ( ()<Left>
    inoremap [ []<Left>
    inoremap { {}<Left>

    Syntax highlighting on
    syntax on

    share windows clipboard
    set clipboard+=unnamed

    Hightlight the curent column
    set cursorcolumn

    Hightlight the current line
    set cursorline

    ——————————————————————————————-

    Here is the Screenshot!

     
  • Tushar Neupaney 12:23 pm on January 13, 2010 Permalink | Reply  

    [Solved] Wireless Driver for Compaq CQ40 (bcm4312) 

    Trying out ubuntu in our new office laptops the Compaq CQ40, I found out that the wireless driver was not working. To find out the actual wirelss device installed in the system I tried the following commands:

    1. lshw -C network

    This gave me the product result as BCM4312 802.11b/g from Broadcom Corporation. Tried a lot of googling and found that you could download a file from broadcom here. And do the following! While this works for me.

    # Removing previous instances of wireless drivers if any
    1. lsmod | grep “b43\|ssb\|wl”
    2. rmmod b43
    3. rmmod ssb
    4. rmmod wl

    # Prepare the device driver from the file that you’ve downloaded
    5. cd to the downloaded file
    6. make clean
    7. make

    # Blacklist previous drivers
    8. echo “blacklist ssb” >> /etc/modprobe.d/blacklist.conf
    9. echo “blacklist b43″ >> /etc/modprobe.d/blacklist.conf
    10. echo “blacklist wl” >> /etc/modprobe.d/blacklist.conf

    # Install the driver
    11. insmod wl.ko

    :-)

     

    Posted via web from Linux fanatic

     
  • Tushar Neupaney 3:16 am on December 4, 2009 Permalink | Reply  

    10 finest Gifts for the geeks (Under $10) 

    So what does a geek want? Don’t know in certain than try out the new Under $10 Gifts from thinkgeek. If you have already been to thinkgeek.com you might have realized the wonderful and exciting things they collect which are humorously creative. Obviously, the gifts that I am talking about are also salient yet pleasing to any geek or nerd around. Some of my personal favourite are:-

     

    1. Albert Einstein action figure: Dressed for intense classroom action, this Albert Einstein Action Figure stands with a piece of chalk in his hand, poised to explain relativity or do battle with the forces of entropy

    2. 3-D Paper Notepad: Now you can practice origami in the office and make use of all the old sticky notes you have plastered to your desk. Each pad has printed instructions on each sheet for 10 different origami shapes. From UK-based design company Suck UK.

    3. Control-A-Cat-Remote: Simply point at your cat, press buttons on the remote and hope for the best. With buttons for “Stop Scratching”, “Show Affection”, “Remain Aloof” and others, you’ll be in control in no time. It’s finally your turn to make your cat do what you want.

    4. Paper E-mail: Paper E-mail is perhaps the funniest way to pass messages in your office. Why? Because it will confuse the person you send it to. ‘Why didn’t they just e-mail this to me?’ they’ll wonder, ‘is their computer down?’

    5. Star Wars dolls: Each one is officially licensed by Lucasfilm and crafted by only the finest plush-clone engineers Kamino has to offer. They are huggable and throwable and small enough to hide in a back pack or on your desk.

    6. Infectious Cute Microbes: Most folks never realize how cute microbes can be when expanded 1,000,000 times and then fashioned into cuddly plush. Until now, that is. Keep one on your desktop to remind yourself that there is an “invisible” universe out there filled with very small things that can do incredible damage to much bigger things.

    7. Tiny Remote: The Micro Spy Remote’s powers will work on a wide variety of televisions (Sony, Panasonic, Samsung, Toshiba, Sanyo, Aiwa, Mitsubishi, Philips, JVC, Sharp, etc) and its small size will safeguard you against discovery. Remember, Agent 002, if you are caught, the Department will not save you. You are on your own. Good luck, Mr. Blond.

    8. Usb SnowBot: Powered by a simple USB port, the Snowbot has a scanning light just like the robots from the future. You can change the speed of the scan, turn on/off the scanning noise, and (for future protection) change the scan color (red or blue). So no matter which robot army storms your home or office, a quick flick of a switch and you are rooting for the invader’s color.

    9. Utili-Key 6-in-1 Tool: The lightest, most compact multiple tool ever developed! If you feel lost without your trusty knife at your side, this tiny multi-tool can give you some great company. Easily closes to attach to any key ring, making it super easy to carry.

    10. Cool Shooters Ice Shotglasses: The two biggest problems in hosting a truly epic party are keeping the drinks cold, and glass breakage. So, the good scientists at ThinkGeek Hootenanny Industries, L.L.C. realized there was a need begging for a product. After weeks of study and drinking well into the night, we found the Cool Shooters Ice shotglasses tray.

    Posted via web from Linux fanatic

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel
Follow

Get every new post delivered to your Inbox.