Add stuff
This commit is contained in:
parent
1fb8a54b4b
commit
6cf147d34f
60
linux.md
60
linux.md
|
@ -94,15 +94,41 @@
|
|||
# Wifi
|
||||
- Wpa2 Enterprise connection for ETH network. Credits to <https://gist.github.com/mvetsch/9bfdee7c56140eae2baa0be711fc8ded>
|
||||
|
||||
```
|
||||
nmcli connection add type wifi con-name eduroam ifname wlp3s0 ssid "eduroam" -- wifi-sec.key-mgmt wpa-eap 802-1x.eap ttls 802-1x.identity [CUT]@student-net.ethz.ch 802-1x.phase2-auth mschapv2 802-1x.domain-suffix-match radius-service.ethz.ch
|
||||
nmcli connection add type wifi con-name eth ifname wlp3s0 ssid "eth" -- wifi-sec.key-mgmt wpa-eap 802-1x.eap ttls 802-1x.identity [CUT]@student-net.ethz.ch 802-1x.phase2-auth mschapv2 802-1x.domain-suffix-match radius-service.ethz.ch
|
||||
```
|
||||
nmcli connection add \
|
||||
type wifi \
|
||||
con-name "eduroam" \
|
||||
ifname "wl" \
|
||||
ssid "eduroam"
|
||||
wifi-sec.key-mgmt "wpa-eap" \
|
||||
802-1x.eap "ttls" \
|
||||
802-1x.identity "[CUT]@student-net.ethz.ch" \
|
||||
802-1x.phase2-auth "mschapv2" \
|
||||
802-1x.domain-suffix-match "radius-service.ethz.ch"
|
||||
```
|
||||
|
||||
- EPFL
|
||||
```
|
||||
nmcli connection add \
|
||||
type wifi \
|
||||
con-name "eduroam-epfl" \
|
||||
ifname "wl" \
|
||||
ssid "eduroam" \
|
||||
wifi-sec.key-mgmt "wpa-eap" \
|
||||
802-1x.eap "peap" \
|
||||
802-1x.identity "jegraf@student-net.ethz.ch" \
|
||||
802-1x.phase2-auth "mschapv2" \
|
||||
802-1x.domain-suffix-match "radius-service.ethz.ch" \
|
||||
802-1x.system-ca-certs "yes" \
|
||||
|
||||
|
||||
# activate with
|
||||
nmcli connection up eduroam --ask
|
||||
nmcli connection up eth --ask
|
||||
```
|
||||
nmcli connection add type wifi con-name eth ifname wlp3s0 ssid "eth" -- wifi-sec.key-mgmt wpa-eap 802-1x.eap ttls 802-1x.identity [CUT]@student-net.ethz.ch 802-1x.phase2-auth mschapv2 802-1x.domain-suffix-match radius-service.ethz.ch
|
||||
|
||||
|
||||
# activate with
|
||||
nmcli connection up eduroam --ask
|
||||
nmcli connection up eth --ask
|
||||
```
|
||||
- Connect to ETH VPN: `sudo openconnect https://sslvpn.ethz.ch`
|
||||
|
||||
# Mount luks encrypted lvm partition from live boot
|
||||
|
@ -212,8 +238,22 @@ cp /etc/resolv.conf /mnt/<chroot>/resolv.conf
|
|||
- Set back to internal: `pactl set-card-profile 0 output:analog-stereo`
|
||||
|
||||
- Connect iPhone
|
||||
- Install `ifuse` and `xxx`
|
||||
- Install `ifuse` and `libimobiledevice`
|
||||
- Connect iPhone, unlock and select trust
|
||||
- Run `xxxx paird`
|
||||
- Run `ifuse <mountpoint>`
|
||||
- Run `idevicepair pair`
|
||||
- Run `ifuse -o allow_other <mountpoint>`
|
||||
- The mount point should be owned by the user and not root
|
||||
|
||||
- Get log from `dd` by running `sudo kill -USR1 $(pgrep ^dd$)`
|
||||
|
||||
# Print
|
||||
- Server at: <http://localhost:631>
|
||||
|
||||
- Wrong `TERM` on ssh (Terminal)
|
||||
- Copy terminfo to remote: `infocmp | ssh <remote> tic -`
|
||||
|
||||
- Display formatting like `\n`, `\t` in less: `printf "$(< <myfile>)" | less`
|
||||
|
||||
- Project dos to linux: `find . -type f -print0 | xargs -0 dos2unix
|
||||
|
||||
- See all files an executable touches at start: `strace -e openat <ELF>`
|
||||
|
|
Loading…
Reference in New Issue