You are not logged in.
How can I share Internet connection by crossover cable?
I have Ubutnu on my laptop. On there, wireless and everything works.
However I am trying to install Arch-linux on my main (desktop) PC. And there, during basic install, it can not detect my wireless connection.
How can I share connection from my laptop with my desktop?
How can I connect to the connect on my laptop from Arch?
Last edited by kdar (2009-12-12 21:42:34)
Offline
Offline
#!/bin/bash
# Shares internet from wlan0 through eth0
case "$1" in
start)
ifconfig eth0 up
ifconfig eth0 192.168.0.1
iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
echo "set other computers in the range of"
echo "192.168.0.0 255.255.255.0"
echo "gateway 192.168.0.1"
echo "dns 192.168.10.1" #this is my router's ip, you should use yours or another dns server
;;
stop)
echo 0 > /proc/sys/net/ipv4/ip_forward
ifconfig eth0 down
iptables --table nat --delete POSTROUTING --out-interface wlan0 -j MASQUERADE
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
this does just that
check if iface names and ips fit your gear, the network between both computers connected with the x-over cable must be different from your router's lan network.
Last edited by eldragon (2009-12-12 04:42:35)
Offline
during basic install, it can not detect my wireless connection.
Everything you need to get your wifi connection up and running is included on th install iso/usb - you just need to set it up yourself.
Offline
#!/bin/bash # Shares internet from wlan0 through eth0 case "$1" in start) ifconfig eth0 up ifconfig eth0 192.168.0.1 iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE iptables --append FORWARD --in-interface eth0 -j ACCEPT echo 1 > /proc/sys/net/ipv4/ip_forward echo "set other computers in the range of" echo "192.168.0.0 255.255.255.0" echo "gateway 192.168.0.1" echo "dns 192.168.10.1" #this is my router's ip, you should use yours or another dns server ;; stop) echo 0 > /proc/sys/net/ipv4/ip_forward ifconfig eth0 down iptables --table nat --delete POSTROUTING --out-interface wlan0 -j MASQUERADE ;; *) echo "usage: $0 {start|stop}" ;; esac
this does just that
check if iface names and ips fit your gear, the network between both computers connected with the x-over cable must be different from your router's lan network.
Wow! I got to try this out!
How's my programming? Call 1-800-DEV-NULL
Offline
I got it working!! Thank you everyone for help.
But actually what I had to do is this:
iwconfig wlan0 enc my_key
iwconfig wlan0 essid "my_network_name"
dhcpcd eth1 -d
apparently my card works just fine... I just never connected to a network by terminal before.
Last edited by kdar (2009-12-12 21:42:23)
Offline
fyi - you can use a single iwconfig command i.e.
iwconfig wlan0 essid "my_network_name" enc my_key
And the -d flag for dhcpcd is only necessary for debugging.
Offline
fyi - you can use a single iwconfig command i.e.
iwconfig wlan0 essid "my_network_name" enc my_key
And the -d flag for dhcpcd is only necessary for debugging.
ah. thanks. I didn't know
Offline
How do I make it remember the key and network name with every boot?
Offline
I use wicd. It has a terminal client, wicd-curses.
How's my programming? Call 1-800-DEV-NULL
Offline
What will work best for KDE4?
Offline