Friday, October 16, 2009

How Do I Clean Stone Bathroom Tiles

Configuration server PC to your home network. +


Recently a dear friend of mine bought a laptop (I copied it, took a Samsung R610, it has installed on Ubuntu Desktop Edition 9.04), just arrived home, she is asked a question: How do I connect to the Internet?
The answer seems obvious but it is not, in fact, to connect to the Internet uses a "key" Vodafone 3G so it was not possible to plug into a switch to share the network. Sifting through a little on some manual Iptables I discovered something essential and I decided to write this guide.

What is iptables?
is the "firewall" of the kernel of Ubuntu and all Linux distributions.

Qualities: Ability to connect to the Internet via a PC server.
Disadvantages: The PC must remain on the server.

Step1)
First we need to set up a network of servers, the DNS and give it a static IP address.

Abstract: The modem (Vodafone) is seen by the PC as a network card and then call it eth0)

now work on the server on the laptop (which in this case is the client)
Let's fix the DNS server (not required but is recommended); not I know that desktop use then use nano to edit configuration files (as is done on all servers). First command to the terminal is:
cd / etc

and the next is: sudo nano

resolvs.conf

will open a text editor inside the terminal (his name is nano) , consist of the DNS system default:

# Generated by NetworkManager nameserver 192.168.1.1



clear away and replace everything with OpenDNS. Erase them all and write this in the file.

# This is the new DNS
created by OpenDNS nameserver 208.67.222.222 nameserver 208.67.222.220


To save the file hold down the ctrl most O (the letter o as open).

Now we come to the tough part, that is to configure the IP address of the two network cards.

Also from terminal enter the command:
cd / etc / network

And then: sudo nano interfaces


The situation is complicated. Look at what you do, a figure that is not correct blocks all network server!

Let's make things more comfortable. Erase them all and put in the same data so we're clear.

# This is the internet interface of the card

auto eth0 iface eth0 inet dhcp #


That This Is the interface control the internal card

# auto eth1 iface eth1 inet static address 192.168.1.5


netmask 255.255.255.0 network 192.168.2.0 broadcast
192,168. 1255


and save (ctrl most O). As you can see now the internet modem (Vodafone) has a dhcp that he connects and manages all its ip, while the network card in your PC has a static IP (192.168.1.5).


2) Enable forwarding and configure iptables.
To enable all the key commands are required to be included in the terminal, do not ask me how they work (do not know anything about iptables)

modprobe ip_conntrack modprobe
ip_conntrack_ftp ip_nat_ftp
modprobe iptable_nat modprobe
ipt_MASQUERADE
iptables-t nat-A POSTROUTING-o eth0-j MASQUERADE iptables-I
FORWARD-m state - state RELATED, ESTABLISHED-j ACCEPT iptables-A
FORWARD-s 192.168.2.0/24-j ACCEPT


Now the firewall is set to activate forwarding and run this command:

echo 1> / proc/sys/net/ipv4/ip_forward

Now the PC server will all packages on the internet eth1 card that has a cable that goes into the client. So now if you open the browser on the client should act.

These commands remain in office until you turn off the PC server, so let's make it bootable.

Issue the command:
sudo nano / etc / rc.local will reappear

our dear editor, this file is the script all the commands that we want to give the operating system during power pc.


Between these two lines # By default this script does nothing.

exit 0

enter commands to iptables and forwarding, and then get something like this:

# / bin / sh-e #


# rc.local # # This script is
Executed At the End of Each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

#commands for iptables and forwarding
modprobe ip_conntrack
modprobe ip_conntrack_ftp ip_nat_ftp
modprobe iptable_nat
modprobe ipt_MASQUERADE
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -I FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -s 192.168.2.0/24 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward

exit 0



Adesso il nostro server will always run from "gateway" to the client (in this case just one). We will see in a future article how to configure your client to work perfectly. A greeting

Saturday, October 10, 2009

Free Car Seats Blueprints

Cinelerra Kino, an innovative solution. Just

last few days, I'm using Cinelerra (the open-source program for video editing). Yesterday I was feeling a guide so I decided to try and take some videos I had on the phone (iPhone) I made this video.

Background:
-The video is made with a phone and despite its 3.2 Megapixel camera is not quite up to the register of professional video.


-The microphone is always integrated

-The video is very "shaky" because I have not had time to arrange the move with the Cinelerra keyframe.

Buonavisione

Thursday, October 1, 2009

How To Make A Paper Cone Hat

'm sick! Outdated.


Background: I have no intention to offend anyone, but just give some advice.



on 29 October 2009 released the new version of Ubuntu 9.10 Koala Karmic (As always, the names are pretty crap). What I'm about to say will not happen, unfortunately, only this time, but every upgrade version of the future.
What?

As happens now for years, fashion has always to be attacked in front of the PC all day to wait for the release of "official."

Nothing to the contrary! However, the problem comes later. Wait a few minutes and immediately on the Ubuntu forums "so I did not expect this version does not work-I-Yuck the X. XX).
So why the heck did you date?
often happens that the version to release in time ( to the due date) are not corrected all the bugs.

Tip: Do not get the craving of wanting to install the new release immediately, wait at least a month to give the community of ubuntu can arrange all bug.Io personally use still version 8.10 (Intrepid) as my NAS is not acting very well with Jaunty.

I want to tell an episode of my life. There was a friend of mine, that during the development of Mozilla Firefox 3.0 and followed all the updates including the beta. On the day of release is not out of the house. Result: All the rest of us (classmates) went to see a movie at the cinema. He has waited all day in the evening got the wonderful news: "Slide the release of Firefox." I will not tell his disappointment.

So NOT date except in case of high need. Especially on the server!

PS If the words I said you do not like and want to update the same; DO IT! But at least version available for download from the site of Canonical (The server does not know how they can resist). USED \u200b\u200bTORRENT.