How to share internet with Windows XP Sp2

Asked by achkar

I have 2 lan cards. One is for my ISP (without settings) and other is for my parents computer on Windows XP SP2. How to share my internet to them?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-network Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Antonio Pérez-Aranda Alcaide (ant30) said :
#1

You can see the follow post at ubuntuforums.
http://ubuntuforums.org/showthread.php?t=91370

Revision history for this message
Massimo Forti (slackwarelife) said :
#2

Thanks for your question, but I don't understant what do you want to do, If your problem is to see the xp using ubuntu or using ubuntu like a share server. let me know thanks many

Revision history for this message
Antonio Pérez-Aranda Alcaide (ant30) said :
#3

Massimo, he say he want to share a Internet connection of one PC to other PC of her home.
it's is easy, active ip_forward and set the correct iptables to have NAT on the PC that has got Internet.

Revision history for this message
achkar (alachkar) said :
#4

poseidon@poseidon-desktop:~$ ifconfig eth1 192.168.0.1
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied

I recieve this msg.

Revision history for this message
Antonio Pérez-Aranda Alcaide (ant30) said :
#5

with sudo:
sudo ifconfig eth1 192.168.0.1
it will ask you for your password.

Revision history for this message
achkar (alachkar) said :
#6

What sudo is? And how i can download and install it? I can't find it in Add/Remove

Revision history for this message
Antonio Pérez-Aranda Alcaide (ant30) said :
#7

sudo is a command to use root (SuperUser) privileges.
you must put the last command on terminal like that:

poseidon@poseidon-desktop:~$ sudo ifconfig eth1 192.168.0.1

Then, the permission denied don't go out and do that you want.

Revision history for this message
achkar (alachkar) said :
#8

and i should use sudo before every command?

Revision history for this message
Antonio Pérez-Aranda Alcaide (ant30) said :
#9

You should use "sudo" before every command of that guide , and others guides when the prompt of command line finish on #

Example:

this is a prompt.
user@host patch $
----> it haven't administrative privileges.

user@host path # iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE
--> You must use sudo to execute it . THIS DON'T RUN
you may use some like that:
user@host path $ sudo iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE

user @host path $ cat .bashrc
---> You don't use sudo.

"sudo" is only for administrative things.

Revision history for this message
shiku (amikarumba) said :
#10

am using ubuntu and i want to print using hp laserjet 1018 give me the steps to download and install the printer

Can you help with this problem?

Provide an answer of your own, or ask achkar for more information if necessary.

To post a message you must log in.