Skip to content

Instantly share code, notes, and snippets.

@austinjp
austinjp / wifi-on-ubuntu-server-18.md
Last active February 10, 2023 10:10
Enabling wifi on Ubuntu server 18

Wifi on Ubuntu 18 server

TLDR

  1. Install wpasupplicant
  2. Turn on wifi radios: sudo nmcli radio wifi on
  3. Check your devices are recognised even if they're not "managed": sudo iwconfig
  4. Check your wifi (here called "wlp3s0") is capable of detecting nearby routers: sudo iwlist wlp3s0 scan
  5. Configure netplan by dropping a file called 01-netcfg.yaml into /etc/netplan/ or edit existing file there. See example below.
  6. netplan try, netplan generate, netplan apply.
@ricco386
ricco386 / fstrim.service
Created June 30, 2017 14:31
Systemd timer for fstrim. Usage: systemctl enable fstrim.timer
# /etc/systemd/system/fstrim.service
# Called by /usr/lib/systemd/system/fstrim.timer from util-linux
# Add `-v` flag so that results can be reviewed in jouranctl
[Unit]
Description=Discard unused blocks (for SSD Drives)
[Service]
Type=oneshot
ExecStart=/usr/sbin/fstrim -av
@diegopacheco
diegopacheco / cqlsh-linux-cassandra.md
Last active June 2, 2022 23:31
How to install cqlsh only on Linux?
pip3 install cqlsh==4.1.1
cqlsh --version
# or...
sudo su root
pip install cqlsh==4.1.1
cqlsh --version