Tagged: Script Toggle Comment Threads | Keyboard Shortcuts

  • Tushar Neupaney 10:04 am on May 6, 2009 Permalink | Reply
    Tags: , , , , madwifi, modprobe, Script, , wifi, wireless   

    Install wireless in ubuntu debian 

    If you are trying to install wireless driver for linux in your ubuntu or debian machine try the following bash script in order to get read of the problem. For this you have to use madwifi and have to do modprobe as being the super user or root user (sudo). Here I will first download the madwifi from their site and then untar it then, modprobe the required drivers.

    Please comment about your result.

    #!/bin/bash

    wget -c http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz
    tar xvf madwifi-ng-r2756+ar5007.tar.gz
    cd madwifi-ng-r2756+ar5007

    sudo make install
    sudo modprobe ath_pci
    sudo modprobe wlan_scan_sta

    Advertisements
     
  • Tushar Neupaney 8:38 am on May 6, 2009 Permalink | Reply
    Tags: , google, , Script, search, , Zenity   

    Search Google from terminal and save output to a file 

    Are you thinking to search and query for google from terminal shell with bash script. And what if you want to redirect the output to a text file. You can do it with the following code.

    This code also features zenity in order to save the output and query for what you are searching. This code is very productive and you can use it for many purposes.

    Enjoy!


    #!/bin/bash

    squery=$(zenity --text)
    file="/home/tushar/Desktop/search.txt"
    (lynx "http://www.google.com/search?q=$(echo $squery|sed -e 's/+/%2B/g' -e 's/ /+/g')">$file) | zenity --progress \
    --title="Quering for the provided tag in google" \
    --text="Searching google ..... "\
    --percentage=0
    -- pulsate

     
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