Friday, November 28, 2008

Celestron 44302 Microscope Linux

Advanced Scripts: A script to handle iptables

And again, we have returned. This time, I will show a script to handle basic functions IPTABLES. The purpose of this script, apart from managing IPTABLES, is to teach its use, since every time we use it, make a translation of what we write what he does iptables, so that gradually we will be staying with us IPTABLES operation.
Although of course, also be used to not having to learn IPTABLES;)

Script:



# / bin / bash # #################
ITB # #######
 
Script version 2.5 # # ######################## Daniel Perella

complete_rule = iptables
part_rule =

_aplicar
function {
echo-e "$ part_rule Apply to $ complete_rule? (s / n)" read a

if [[$ a = "s"]]
Then
complete_rule = $ (echo $ Complete_rule $ part_rule) echo
rule: $ complete_rule
else echo
rule: $ complete_rule

fi} function

assistant # wizard: Run a guided wizard to add a rule


{echo "add or remove standard?"
echo "add Read

ac $ ac

echo "Address: source $ A = "add"]]

Then run

else echo-e "you want to delete this rule? (S / n)? \\ C" read bbb

if [[$ bbb = "s"]]
Then run


else echo "Deleted"
fi fi


else echo "Use the help to see what properties"
echo "is available"
echo "" fi




} function add # add [ INPUT _aplicar
}

function remove # remove [INPUT
} function

reject # reject: Reject the rule applies to packets

{echo "-j REJECT"
part_rule = "-j REJECT"}

_aplicar

function ignore # ignore: Apply the rule to DROP packages
{
echo "-j DROP"
part_rule = "-j DROP"
_aplicar
}

function interface # interface [ethn] Defines the interface for standard
{
echo "-i $ 1"
part_rule = " -i $ 1 "}

_aplicar

function number # number [n]: Sets the standard number (useful to clear)

{echo"-I $ 1 "
part_rule ="-I $ 1 "
_aplicar
}

function source # source [IP or HOST]: Defines the source of the package to the standard
{
echo "-s $ 1"
part_rule = "-s $ 1"
_aplicar
}

function target # target [IP or HOST] defines the fate of pquete of standard
{
echo "-d $ 1"
part_rule = "-d $ 1"
_aplicar
}

function rules # rules: For a list of existing rules
{
echo "standard that is being edited"
complete_rule
echo $ echo "Last hand applied or not the standard" part_rule

echo $ echo "" echo
"
i = $ (whoami)
if [[$ i! = "Root"]]
Then
echo "You are not root, you can not do iptables"

else iptables-n-L


fi} function

new # new: Start make a new rule
{
complete_rule = "iptables"
part_rule = ""
echo "New standard launched"



} function run # run: Apply the standard

{echo "Applying standard: $ complete_rule" $

complete_rule echo "Done"


} function save # save file dump
standards
{echo "Save file rules"
if test-n $ 1
Then
nom = $ 1
else
echo-e "file name) \\ c"
read nom
fi
iptables-save> $ nom
echo "Saved about $ nom"
}

function load # load reads a file standards and applies
{
echo "Load rules IPTABLES"
if test-n $ 1
Then
nom = $ 1
else
echo-e "file name) \\ c"
read nom
fi
cat $ nom run
new
done;
}

function flush # flush [INPUT case $ 1 in

- Direct We can use the "wizard" and when we will gather them ease testing the features loose.

If you have doubts, you know where we are! Lucky




Thursday, November 13, 2008

15 White Portable Digital Tv

basically HOW TO: Incompatibility Hotmail Live, Office Live, .. Ubuntu + Firefox (Updated)




Problem Like many Ubuntu users have noticed, whenever we try to access any of the services Live! Microsoft from Firefox with Ubuntu, we find ourselves with messages like:

OFFICE LIVE (
http://www.officelive.com
):





Hotmail (http://www.hotmail.com

):




At that time the alarms are activated and owners think ... Will it be Microsoft may have used proprietary technology is done for their websites, thus leaving aside the linux users?

The answer, in particular if, and partly not. To use "Office Live" to complete if you need to install certain programs (plugins) only for Windows, without which the use of Office Live is limited to reading documents. As the initial excitement of not having to use Windows or Office through Wine, to edit word documents, excel, etc. .. was dispelled very quickly. And also as annotation to the reader, we all know that OpenOffice can read Word documents, Excel, etc. .. but most of the time the documents are not 100% adapted faithful to the original For
as "Office Live"
encandaloso is the most I've ever seen since opening
original documents in Microsoft's new Web site, these are shown
worse than OpenOffice. Reviews

apart to get to see documents and / or view our Hotmail, we need a preliminary step, fool
portals Office Live Hotmail and making them think we navigate in Firefox (but from Windows).




I will ignore the issue of how sad it is for a company like Microsoft to systematically block Linux users, simply by using that operating system, as fully functional portals are simply changing the user agent



The Solution To navigate as if we were using the Windows operating system (any version is worth us) we use a simple tool called
UserAgentSwitcher
with which we do believe the browser in a matter of seconds we are sailing with different operating systems and browsers, with a gesture as simple as you see in the image.


By default this tool comes with the options Internet Explorer 7, Netscape 4.8, Opera 9.25 (Windows Vista), but the most interesting for us is Firefox for Windows, because we want to Hotmail, continue to charge its interface to the browser Mozilla, but skip the tiresome message and making sure maximum compatibility with your browser like in Windows.


install the firefox extension available here

. Open

extension options and click on "User Agents -> Import" (You can make a backup of existing clicking Export ")

Now you only have to import the following xml file:
Firefox_Win32_UserAgent


finished! should already be in your list of user agents, the version: "Firefox (Windows XP)"

Now you can enter your Hotmail and Office Live, activeis previously provided with the UserAgentSwitcher, version of "Firefox (Windows XP)."

Enjoy.



Correction:


from Redmond seem to have become aware of the magnitude and significant market share they can gain by offering this version of Office Live for all platforms, announcing that
end of this year will be available for Windows, Linux and Mac
(The ability to manage Office documents on any platform ensures that Linux users will rely less and less the operating system from Redmond, is great news for the Linux world)
Source: The Inquirer







Wednesday, November 12, 2008

Digital Microscope Linux

installation script for our Distribution

That part of the Ubuntu Linux team was working on a Ubuntu metadistribution is nothing new.

Well, we have gone a step further. Has been established distribution facilities. I know we are far from having its own distribution, but is walking and walking, albeit slowly, always shortens the road.

I will remember a post we did on how to make your own distribution of Ubuntu for Netbooks, now I'll show you how to make an installer for it.

need (entering in the field) two scripts. The first, generate an image of the distribution you are running, the second will be included in the Ubuntu installation CD Mini.

Script Generation:


# / bin / bash


me = $ (whoami)


echo "Loading ...." Listing Packages


dpkg-query-W-f = '$ {Package} \\ n'> packages.txt


echo "List of packages received"


echo "Loading User Settings"


cd / home / I


$ cp / etc / apt / sources.list.

tar-cvvf
installer / home.tar. - Exclude = installer - exclude =. ssh - exclude =*. mozilla - exclude =. aptitude


This script gets the list of installed packages and configuration files from home current user. The three files it generates (home.tar, packages.txt and sources.list) will have to put them on the same path of the installer, the installation CD.

Installation Script:


# / bin / bash me = $ (whoami)


if [[$ me = "root"]]


Then


echo "Checking Package List"

Then

echo "List of packages found, starting the installation ..."
packages.txt cat - Assume-yes install $ package


done echo "Installed Packages Beginning User settings"
echo "Type a user name in lowercase letters and without accents:"
echo-e "Name User: \\ c "read user


adduser $ user $ user adduser admin

tar-xvvf
home.tar-C / home / $ user
cp / home / $ user / sources.list / etc / apt / sources.list
chown-R $ user. $ user / home / $ user
  1. else echo "Could not find the list of packages, not installed" fi
else echo "You are not root, do nothing" fi



And that's all. That is, for now, you have to do is download the ubuntu mini, install and run the script "install.sh" I leave for another entry as do the installation CD. Take care!

Tuesday, November 4, 2008

Pink Lcd Tv Dvd Combi

Review: Ubuntu Linux, the daily or future

Today we will make a separate entry. Not that we lack technical inputs, is that sometimes, I also like to reflect on what we do. Doing a little memory, I can easily remember the first time I heard of Ubuntu. Back then I was a student and was not even in the computer industry was in 2004. A friend brought me some CD's in a cardboard envelope and told me it was a new distribution of Linux that had just left. Today, Ubuntu has become, almost without doubt, the most popular distribution (and media) computing, pulling the cart of Linux. Wherever you go, for days talking about Ubuntu. Every time someone says that a virus has entered the messenger, not far away, someone smiles condescendingly.

not is curious that this, until recently was the opposite. Linux was a program used by the hackers to steal information, to anyone who will speak of this operating system is a smile paternal and patronizing in his face and went without interest to give him explanations. But look, we are increasingly, and now users are smiling every time you log in, make it more securely, without having to buy a new computer every two years or pay software licensing.

From this point of view, it has improved the lives of many people. What was unthinkable a few years ago, today can be a reality. For example, here in the laboratory of Ubuntu Linux to the Fund, as in many others, are conceived ideas for this to be a reality. Installing Linux on older machines, or customize an operating system to make it an OS virtually on demand are some of the examples we already have, others to come, such as installing a desktop free of Darwin (the OS X distribution that leads to below)

But it can not be good and there are always people trying to make him famous, something profitable.

Currently, companies are turning to open source and all (those who want to use the good publicity) take out products based on open source solutions. Strive to offer additional services to capitalize on a fenónemo coming back but now it has become fashionable.

Much has been said about the contribution of open source Ubuntu and Linux in general phenomenon, there has been speculation about whether the current pull comes from the hand of certain distributions or was a consequence absolutely inevitable. What is true (and I may be crucified for this) is that Canonical (to name which concerns us, but other distros also have private support) is a business and in essence, follows the philosophy of a company.
While probably a community of developers "to spare" fails to support a significant number of distributions, it is true that managed to keep at least a couple of them.
What remains to be seen is how it will end all this, I mean we end up paying for Ubuntu? There is .