forked from andonome/lk
		
	cleanup
This commit is contained in:
		| @@ -55,7 +55,7 @@ Or if you already havea  conversation windows open, switch to otr using: | |||||||
|  |  | ||||||
| Finally, verify! | Finally, verify! | ||||||
|  |  | ||||||
| /otr question "Who the fuck are you?" bob | /otr question "Who are you?" bob | ||||||
|  |  | ||||||
| Bob is verified upon the answer, 'bob'. | Bob is verified upon the answer, 'bob'. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ tags: [ "Documentation", "distros" ] | |||||||
|  |  | ||||||
| ### Configurations? | ### Configurations? | ||||||
|  |  | ||||||
| Fucked up a package's configuration files? | Messed up a package's configuration files? | ||||||
|  |  | ||||||
| > sudo apt-get purge [thing] | > sudo apt-get purge [thing] | ||||||
|  |  | ||||||
|   | |||||||
| @@ -2,70 +2,45 @@ | |||||||
| title: "wireless" | title: "wireless" | ||||||
| tags: [ "Documentation", "networking" ] | tags: [ "Documentation", "networking" ] | ||||||
| --- | --- | ||||||
|  |  | ||||||
| # Check wifi's working | # Check wifi's working | ||||||
| > lspci -k | > lspci -k | ||||||
|  |  | ||||||
| Or for usb wifi:  | Or for usb wifi:  | ||||||
|  |  | ||||||
| > dmesg | grep usbcore | > dmesg | grep usbcore | ||||||
|  |  | ||||||
| ... and hopefully it'll say the new interface is registered. | ... and hopefully it'll say the new interface is registered. | ||||||
|  |  | ||||||
| # Check if a wifi interface has been created | # Check if a wifi interface has been created | ||||||
|  |  | ||||||
| > ip link | > ip link | ||||||
|  |  | ||||||
| or | or | ||||||
|  |  | ||||||
| > iw dev | > iw dev | ||||||
|  |  | ||||||
| Assuming it's wlan0, bring it up with  | Assuming it's wlan0, bring it up with  | ||||||
|  |  | ||||||
| > ip link set wlan0 up | > ip link set wlan0 up | ||||||
|  |  | ||||||
| Error messages probably means your wireless chipset requires a firmware to function.  In this case, check the kernel messages for firmware being loaded | Error messages probably means your wireless chipset requires a firmware to function.  In this case, check the kernel messages for firmware being loaded | ||||||
|  |  | ||||||
| > dmesg | grep firmware | > dmesg | grep firmware | ||||||
|  |  | ||||||
| # Utilities | # Utilities | ||||||
|  |  | ||||||
| iw doesn't do wpa/wpa2.  wpa_supplicant does everything.  iwd does everything except WEXT encryption. | iw doesn't do wpa/wpa2.  wpa_supplicant does everything.  iwd does everything except WEXT encryption. | ||||||
|  |  | ||||||
| # Connecting | # Connecting | ||||||
|  |  | ||||||
| Get the link status: | Get the link status: | ||||||
|  |  | ||||||
| > iw dev wlan0 link | > iw dev wlan0 link | ||||||
|  |  | ||||||
| Scan for available points: | Scan for available points: | ||||||
|  |  | ||||||
| > iw dev wlan0 scan | > iw dev wlan0 scan | ||||||
|  |  | ||||||
| The connecting commands do not cover wpa2. | The connecting commands do not cover wpa2. | ||||||
|  |  | ||||||
| # Fucking Hell |  | ||||||
|  |  | ||||||
| I really need to script this.  Something like: |  | ||||||
|  |  | ||||||
| 1. Auto-check wireless device. |  | ||||||
|  |  | ||||||
| 2. Auto-check scan for devices and grab names |  | ||||||
|  |  | ||||||
| 3. Display names |  | ||||||
|  |  | ||||||
| 4. Prompt for name selection (e.g. '1'). |  | ||||||
|  |  | ||||||
| 5. Auto-connect to wireless associated with selection n. |  | ||||||
|  |  | ||||||
| 6. Prompt for password. |  | ||||||
|  |  | ||||||
| 7. Try to connect. |  | ||||||
|  |  | ||||||
| 8. Ask if user wants a password copy stored in /tmp/. |  | ||||||
|  |  | ||||||
|  |  | ||||||
| # Connection |  | ||||||
| This is a shitshow.  Focus: netctl is the Arch project to get this going. |  | ||||||
|  |  | ||||||
| Okay - can't be fucked.  Most of this is systemd based.	 |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user