Showing posts with label shell. Show all posts
Showing posts with label shell. Show all posts

Monday, September 11, 2017

Ubuntu 11 10 aireplay ng and the mon0 is on channel 1 error and how to fix it shell script included

Ubuntu 11 10 aireplay ng and the mon0 is on channel 1 error and how to fix it shell script included


I had recently upgrade my Ubuntu install to 11.10. Along with other annoyances I came across I ran into a bit of a deal breaker when I went to run aireplay-ng. I was getting the following error:

mon0 is on channel -1, but the AP uses channel [#]


This was going to be a huge problem since I know that my ZyDAS 1211 chip set was compatible with packet injection. After searching around for a bit I found a great solution from this site here about the drivers and how to patch and reinstall the older ones back in. Below I have a script that you can run to get that installed.

Driver Patcher in action.

==================================================================


#!/bin/bash
#
# This fix was found at:
# http://linux-software-news-tutorials.blogspot.com/2011/06/solve-error-mon0-is-on-channel-1-but-ap.html
#
# If this script helps you be sure to drop him a line and
# say thanks!
echo -e " 33[1;32m###########################################"
echo -e "# Ubuntu Patched Drivers Installer Script #"

echo -e "# Tested on Ubuntu 11.04 and 11.10 #"
echo -e "###########################################"
echo " Coded By: Travis Phillips"
echo " Date: 01/18/2012"
echo " Website: http://theunl33t.blogspot.com"
echo -e -n " [*] Installing build-essential...33[0m"
sudo apt-get -y install build-essential &> /dev/null
echo -e "33[1;32mDone!"
echo -e -n " [*] Downloading Wireless Drivers...33[0m"
wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2011-06-16.tar.bz2 &> /dev/null
echo -e "33[1;32mDone!"
echo -e -n " [*] Extracting...33[0m"
tar -jxf compat-wireless-2011-06-16.tar.bz2
cd compat-wireless-2011-06-16
echo -e "33[1;32mDone!"
echo -e -n " [*] Downloading Patches...33[0m"
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch &>12 /dev/null
wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch &>12 /dev/null
echo -e "33[1;32mDone!"
echo -e -n " [*] Applying Patches...33[0m"
patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch &> /dev/null
patch ./net/wireless/chan.c channel-negative-one-maxim.patch &> /dev/null
echo -e "33[1;32mDone!"
echo -e " [*] Building patched drivers and installing."
echo -e " 33[31mTHIS WILL TAKE ABOUT 5-10 mins..."
echo -e " Please be patient and do *NOT* interrupt this process33[0m "
make &> /dev/null
echo -e " 33[1;32m[*] Compiling Complete. Installing Drivers...33[0m "
sudo make install &> /dev/null
echo -e "33[1;32m[*] Installing Patched drivers completed!"
echo -e -n " [*] Cleaning Up...33[0m"
cd ..
rm compat-wireless-2011-06-16.tar.bz2
rm -rf compat-wireless-2011-06-16
echo -e "33[1;32mDone!"
echo -e " [*] 33[1;37mScript Finished! Please reboot to finish the patch.33[0m "



==================================================================

To run save it to a save to a file called patchwifidrivers.sh and in a terminal type

chmod +x patchwifidrivers.sh
./patchwifidrivers.sh


Hope this helps some people.

download file now

Read more »

Wednesday, September 6, 2017

TSF Shell 2 0 1

TSF Shell 2 0 1


TSF Shell 2.0.1 APK Free Download Android App. TSF Shell 3D is an interface with brand new operating system.
Enable you to freely personalize various widgets to a full range. Let�s say goodbye to the traditional operation system.





Instructions :

  • Download App Data
  • Install APK


Features :

  • Enable you to do multipul-operation, including auto-arragement, multipul-choices, add-to-folder, multipul-deleting, to the items by only one move of the finger. You can also check your folders in various ways.
  • TSF SHELL 3D has one app page and 4 personalized pages for our users. You can switch between pages by one click at the switch button in the lower left corner.
  • You can freely create one or more quicklinks for apps and drag them to any page. You can also distribute all the app icon (or even change their angles) freely in the personalized page.
  • The side column provides the most TSF Shell 3D charateristic widgets, including folders, contacts, music player, weather and so on.
  • The side column can be personalized as well, including changing the order and position of different catagories. You can create quicklinks of your most frequently used apps and contact in the quick launch in the side column.
  • TSF Shell 3D has a most powerful theme function. Apart from the difference in style, some themes even allow change in the transition animation.

Tips:

  1. The folder where the application is less than 8, only to circle the icon into the folder.
  2. The folder where the application is more than 8, only to drag the icon ftom the folder.

Whats in this version: (Updated : Dec 14, 2013)

  • Known bugs fixed.
  • 3D Cube clock widget added
  • 3D Calendar widget added
  • Brand-new effective interface for desktop element adding
  • Brand-new special effect interface (including desktop transition/clicking/swing/scene switching etc)
  • 20 amazing desktop transition effects added
  • Added TSF Shell shortcut (including Apps Drawer "Open" button and more)
  • New theme settings interface
  • Theme Mixer supports more theme elements
  • Two excellent free TSF Shell themes added
  • Video Demo:http://youtu.be/vemTo705Vig





Required Android O/S : 2.2+

Screenshots :






Download TSF Shell 2.0.1 APK

Download TSF Shell 2.0.1 Free Apk
Download TSF Shell 2.0.1 Google Play Store

download file now

Read more »

Friday, August 25, 2017

TSF Shell 2 0

TSF Shell 2 0


TSF Shell 2.0 APK Free Download Android App. TSF Shell 3D is an interface with brand new operating system.
Enable you to freely personalize various widgets to a full range. Let�s say goodbye to the traditional operation system.





Instructions :

  • Download App Data
  • Install APK


Features :

  • Enable you to do multipul-operation, including auto-arragement, multipul-choices, add-to-folder, multipul-deleting, to the items by only one move of the finger. You can also check your folders in various ways.
  • TSF SHELL 3D has one app page and 4 personalized pages for our users. You can switch between pages by one click at the switch button in the lower left corner.
  • You can freely create one or more quicklinks for apps and drag them to any page. You can also distribute all the app icon (or even change their angles) freely in the personalized page.
  • The side column provides the most TSF Shell 3D charateristic widgets, including folders, contacts, music player, weather and so on.
  • The side column can be personalized as well, including changing the order and position of different catagories. You can create quicklinks of your most frequently used apps and contact in the quick launch in the side column.
  • TSF Shell 3D has a most powerful theme function. Apart from the difference in style, some themes even allow change in the transition animation.

Tips:

  1. The folder where the application is less than 8, only to circle the icon into the folder.
  2. The folder where the application is more than 8, only to drag the icon ftom the folder.

Whats in this version: (Updated : Dec 12, 2013)

  • 3D Cube clock widget added
  • 3D Calendar widget added
  • Brand-new effective interface for desktop element adding
  • Brand-new special effect interface (including desktop transition/clicking/swing/scene switching etc)
  • 20 amazing desktop transition effects added
  • Added TSF Shell shortcut (including Apps Drawer "Open" button and more)
  • New theme settings interface
  • Theme Mixer supports more theme elements
  • Two excellent free TSF Shell themes added
  • Video Demo:http://youtu.be/vemTo705Vig




Required Android O/S : 2.2+

Screenshots :






Download TSF Shell 2.0 APK

Download TSF Shell 2.0 Free Apk
Download TSF Shell 2.0 Google Play Store

download file now

Read more »

Wednesday, August 23, 2017

Ubuntu Oneiric GUI Options Gnome Shell Gnome Fallback and XFCE

Ubuntu Oneiric GUI Options Gnome Shell Gnome Fallback and XFCE


Ubuntu Oneiric ships with Unity 3D and Unity 2D by default. For those who don't have any love for Unity but they still love Ubuntu, they have got a few more options.

Gnome Shell

Aside from all the controversies, you should give it a try at least. They call it as an innovation and the future of desktop computing, lets see.


Installing Gnome Shell in older Ubuntu versions like Natty and Lucid always led to problems as Gnome Shell is based on Gnome 3 and GTK+ 3, whereas the older Ubuntu versions are based on Gnome 2 and GTK+ 2. But with Oneiric now being based on Gnome 3, Gnome Shell runs smooth. It is in the official repositories, so either search the Software Center for 'Gnome Shell' or get to a Terminal and run:

Continue Reading �

download file now

Read more »

Sunday, August 13, 2017

Traps and exit codes in shell scripts

Traps and exit codes in shell scripts


Traps in shell scripts are a nice way to provide cleanups, first of all the removal of temporary files but also any other kind of do-at-the-end things (see also the END clause in awk and Perl).

So for general cleanup one would set the trap for signal 0 which isnt a signal but the indication that the script exited normally with an exit code 0.
Other signals might do something additionally to the cleanup and would get caught by traps on their own.

The questions about signals to be discussed in this article:
  • How to ignore them: sometimes one does not want a script to be interrupted by certain signals
  • How to catch them, react accordingly and exit
  • If exiting after a signal: which exit code should be used
Assuming that we have a handler for exit 0 (when the script ends normal) there also should be a signal handler for signal INT and I want to discuss various setups and what happens after signal INT has been received by the script.
Catch signal INT (Ctrl-C)
and ignore it
Catch signal INT (Ctrl-C)
and exit
#!/bin/sh trap "echo exiting" 0 trap "echo got INT" INT ... 
#!/bin/sh trap "echo exiting" 0 trap "echo got INT ; exit 1" INT ... 
This script
  • will echo got INT and
  • will resume its operation and will not end
This script
  • will echo got INT and
  • will exit with exit code 1 to indicate that this was not a normal ending.
    Instead of 1 there could be any number.
There is a special case of the script above if one chooses to exit with 0 after catching a signal.
#!/bin/sh trap "echo exiting" 0 trap "echo got INT ; exit 0" INT ... 
This script
  • will echo got INT and
  • will echo exiting and
  • will exit with exit code 0.
Instead of echo ... there should be some real action in a production script of course.

So if one decides that a signal should not be ignored there is one big question to be answered: does the observer of the script (a calling script or a user) need to know that the script ended due to receiving a signal and because of which signal in particular? This question should be answered with the consideration in mind that scripts often exit with small exit codes due to something going wrong throughout the script.

  • All (or many) signals are mapped to the same non-zero exit code
    There is little room for variation here. The exit code could be a any number. If the script uses a small number (e.g. exit code 1) that might be indistinguishable from other error induced exit codes in the script. Alternatively one could use a high number (greater than 128) to distinguish endings caused by a signal from other endings in the script. But by mapping all signals to one exit code the script does not give its observer a chance to find out exactly which signal led to its end (this can of course be a deliberate design decision).
    trap "echo got SIGNAL; exit 1" INT QUIT TERM
    (the message got SIGNAL could be used to distinguish this type of exit from other exit 1 reasons in the script)
    or
    trap "echo got SIGNAL; exit 129" INT QUIT TERM

  • Signals should be distinguished from each other i.e. mapped to different exit codes
    Same exit code
    trap "echo got INT; exit 1" INT trap "echo got TERM; exit 1" TERM 
    All signals lead to the same exit code.
    The echo statement is a differentiator but is probably not present in a real life script.
    Different exit codes
    (small numbers)
    trap "echo got INT; exit 1" INT trap "echo got TERM; exit 2" TERM 
    Here signals lead to different exit codes.
    Issue: they are probably not distinguishable from other points of exit in the script
    Different exit codes
    (high numbers)
    trap "echo got INT; exit 130" INT trap "echo got TERM; exit 143" TERM 
    Additionally to showing different exit codes the exit codes have been set with a formula 128+signal_number which follows the convention of sh.


So if you are interested in capturing signals in scripts, ending the script and also getting a meaningful exit code telling you which signal then
  • capture each signal individually
  • explictly put an exit n into the signal handler
  • choose n to be 128+signal

This way a calling script can differentiate:

script.sh ex=$? if [ $ex -eq 0 ] ; then # All ok elif [ $ex -lt 128 ] ; then # An error occured in the script else # Script ended due to signal $ex-128 fi 

download file now

Read more »

Sunday, August 6, 2017

TSF Shell v1 2 0 Apk App for Android Download

TSF Shell v1 2 0 Apk App for Android Download


Requirements: 2.2 or higher
Overview: TSF Shell 3D is an interface with brand new operating system.

Enable you to freely personalize various widgets to a full range. Let�s say goodbye to the traditional operation system.

Features:
========================

Enable you to do multipul-operation, including auto-arragement, multipul-choices, add-to-folder, multipul-deleting, to the items by only one move of the finger. You can also check your folders in various ways.
TSF SHELL 3D has one app page and 4 personalized pages for our users. You can switch between pages by one click at the switch button in the lower left corner.
You can freely create one or more quicklinks for apps and drag them to any page. You can also distribute all the app icon (or even change their angles) freely in the personalized page.
The side column provides the most TSF Shell 3D charateristic widgets, including folders, contacts, music player, weather and so on.
The side column can be personalized as well, including changing the order and position of different catagories. You can create quicklinks of your most frequently used apps and contact in the quick launch in the side column.
TSF Shell 3D has a most powerful theme function. Apart from the difference in style, some themes even allow change in the transition animation.

Tips:
========================

1. The folder where the application is less than 7, only to circle the icon into the folder.
2. The folder where the application is more than 7, only to drag the icon ftom the folder.

========================

Currently we are still trying to improve our TSF Shell 3D. We will update our product and new widgets regularly. Please check for updates so that you can the best experience.
We also welcome any comments or suggestions for improvement of our product.

Whats in this version:
(v1.2.0)
Improve the speed of TSF Shell and fixed some bugs.


Download:
http://ul.to/sljw14ga

Mirrors:
http://www.mediafire.com/?cqwk2vavikewwff
http://www12.zippyshare.com/v/69826637/file.html


download file now

Read more »