Advertisement
adaoduque

Conect WIFI Manual

Aug 28th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. Just edit /etc/network/interfaces and write:
  2.  
  3.  
  4.  
  5. After that write and close file and use command:
  6.  
  7. auto wlan0
  8. iface wlan0 inet dhcp
  9. wpa-ssid {ssid}
  10. wpa-psk {password}
  11.  
  12. sudo dhclient wlan0
  13.  
  14.  
  15. Replace {ssid} and {password} with your respective WiFi SSID and password.
  16.  
  17. Agora reinicie o servico de inteerface
  18.  
  19. Debian / Ubuntu Linux
  20.  
  21. To restart network interface, enter:
  22.  
  23. sudo /etc/init.d/networking restart
  24.  
  25. To stop and start use the following option (do not run them over remote ssh session as you will get disconnected):
  26.  
  27. sudo /etc/init.d/networking stop
  28. sudo /etc/init.d/networking start
  29.  
  30. Redhat (RHEL) / CentOS / Fedora / Suse / OpenSuse Linux
  31.  
  32. To restart network interface, enter:
  33.  
  34. /etc/init.d/network restart
  35.  
  36. To stop and start use the following option (do not run them over remote ssh session as you will get disconnected):
  37.  
  38. /etc/init.d/network stop
  39. /etc/init.d/network start
  40.  
  41. Slackware Linux
  42.  
  43. Type the following command:
  44.  
  45. /etc/rc.d/rc.inet1 restart
  46.  
  47. You can take down or restart particular interface such as eth1 as follows:
  48.  
  49. /etc/rc.d/rc.inet1 eth1_restart
  50. /etc/rc.d/rc.inet1 eth1_start <-- start eth1
  51. /etc/rc.d/rc.inet1 eth1_stop <-- stop eth1
  52.  
  53. http://www.cyberciti.biz/faq/linux-restart-network-interface/
  54. http://unix.stackexchange.com/questions/92799/connecting-to-wifi-network-through-command-line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement