This HowTo is part of a collection of simple commands and small scripts to get things done under Linux.
Straight to the point, it serves as an aide-memoire for us and saves you the time of trawling through endless, confusing, and incomplete threads in discussion forums.
|
How to set up an ad-hoc network
|
The first two lines set up an ad-hoc wireless network on a device with a wireless and a wired network interface. The last three lines make sure the wireless device has full internet access.
#set up an ad-hoc network
iwconfig wlan0 essid kerberix mode ad-hoc channel 1 key 0123456789abcdef0123456789 ifconfig wlan0 192.168.233.40
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE iptables --append FORWARD --in-interface wlan0 -j ACCEPT echo "1" > /proc/sys/net/ipv4/ip_forward
|
|
How to:
find my IP address
wake on LAN
make a pdf from jpg files
set up an ad-hoc network
use irfanview as default viewer
switch between displays
solve the init I/O error
change Android screen resolution in Virtualbox
|