View Single Post
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#349
Originally Posted by Storm_11 View Post
freezing bug solution assumes you can connect to wifi to even grab the packages via wifi in the first instance. As mentioned, cant even establish a wifi connection, so even though i can ssh, i cant download the required packages via zypper...
You don't need WLAN for accessing repos, you can of course use the same USB connection that you are ssh'ing in from

Just set your PC as the default gateway for Nemo, and set up your PC to act as the nexthop router.

For example, I have this in my /etc/network/interfaces, but of course you can do stuff manually too:
auto usb0
iface usb0 inet static
address 192.168.2.14
netmask 255.255.255.0
up iptables -A FORWARD -o eth0 -i usb0 -s 192.168.2.0/24 -m conntrack --ctstate NEW -j ACCEPT
up ptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
up iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
up echo 1 > /proc/sys/net/ipv4/ip_forward
down iptables -F FORWARD
down iptables -F -t nat
down echo 0 > /proc/sys/net/ipv4/ip_forward
 

The Following 3 Users Say Thank You to juiceme For This Useful Post: