Skip to content

Commit 0cdb6ca

Browse files
committed
2 parents 7181ae2 + cf31357 commit 0cdb6ca

File tree

400 files changed

+819
-36615
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

400 files changed

+819
-36615
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
# nixbytes
1+
# Linuxbytes
2+
23
Portfolio Web and Blog Site

config.toml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ paginate = 5
4949
[[params.social]]
5050
name = "email"
5151
url = "mailto:real8686@gmail.com"
52-
[languages.en.menu]
52+
[[params.social]]
53+
name = "twitter"
54+
url = "https://twitter.com/linuxbyte3"
55+
5356
[[languages.en.menu.main]]
5457
identifier = "blog"
5558
name = "Blog"
@@ -58,10 +61,10 @@ paginate = 5
5861
identifier = "about"
5962
name = "About"
6063
url = "/about"
61-
[[languages.en.menu.main]]
62-
identifier = "projects"
63-
name = "Projects"
64-
url = "/projects"
64+
# [[languages.en.menu.main]]
65+
# identifier = "projects"
66+
# name = "Projects"
67+
# url = "/projects"
6568

6669
[taxonomies]
6770
tag = "tags"

content/.about.md.swp

-12 KB
Binary file not shown.

content/posts/iw-basic.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
title: "IW CLI Basic"
3+
date: 2020-05-23
4+
draft: true
5+
---
6+
7+
# iw usage and commands
8+
9+
Like most network configuration, the commands have to be executed with root permissions. Executed with normal user rights, some of the commands (e.g. iw list), will exit without error but not produce the correct output either, which can be confusing.
10+
11+
12+
### To get the name of your wireless interface do:
13+
14+
`$ iw dev`
15+
16+
The name of the interface will be output after the word "Interface". For example, it is commonly wlan0.
17+
Get the status of the interface
18+
19+
To check link status, use following command.
20+
21+
`$ iw dev interface link`
22+
23+
You can get statistic information, such as the amount of tx/rx bytes, signal strength etc., with following command:
24+
25+
`$ iw dev interface station dump`
26+
27+
Activate the interface
28+
Tip: Usually this step is not required.
29+
30+
Some cards require that the kernel interface be activated before you can use iw or wireless_tools:
31+
32+
### ip link set interface up
33+
34+
Note: If you get errors like RTNETLINK answers: Operation not possible due to RF-kill, make sure that hardware switch is on. See #Rfkill caveat for details.
35+
36+
To verify that the interface is up, inspect the output of the following command:
37+
38+
```
39+
$ ip link show interface
40+
41+
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
42+
link/ether 12:34:56:78:9a:bc brd ff:ff:ff:ff:ff:ff
43+
```
44+
The UP in <BROADCAST,MULTICAST,UP,LOWER_UP> is what indicates the interface is up, not the later state DOWN.
45+
Discover access points
46+
47+
To see what access points are available:
48+
49+
`iw dev interface scan | less`
50+
51+
52+
The important points to check:
53+
54+
- SSID: the name of the network.
55+
- Signal: is reported in a wireless power ratio in dBm (e.g. from -100 to 0). The closer the negative value gets to zero, the better the signal. Observing the reported power on a good quality link and a bad one should give an idea about the individual range.
56+
- Security: it is not reported directly, check the line starting with capability. If there is Privacy, for example capability: ESS Privacy ShortSlotTime (0x0411), then the network is protected somehow.
57+
58+
59+
You might need to set the proper operating mode of the wireless card. More specifically, if you are going to connect an ad-hoc network, you need to set the operating mode to ibss:
60+
61+
`iw dev interface set type ibss`
62+
63+
`iw dev interface connect "your_essid"`
64+
65+
using a hexadecimal or ASCII key (the format is distinguished automatically, because a WEP key has a fixed length):
66+
67+
# iw dev interface connect "your_essid" key 0:your_key
68+
69+
using a hexadecimal or ASCII key, specifying the third set up key as default (keys are counted from zero, four are possible):
70+
71+
# iw dev interface connect "your_essid" key d:2:your_key
72+
73+
Regardless of the method used, you can check if you have associated successfully:
74+
75+
```
76+
iw dev interface link
77+
```
-4 KB
Binary file not shown.

content/projects/Bugger.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

content/projects/CppND-Route-Planning-Project.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

content/projects/CppND-System-Monitor.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

content/projects/coffee-journals.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

content/projects/jQueryBadgesProject.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)