Skip to content

Instantly share code, notes, and snippets.

@bhochieng
Last active February 10, 2018 14:29
Show Gist options
  • Save bhochieng/807345d322943e822b76806c33ffbaef to your computer and use it in GitHub Desktop.
Save bhochieng/807345d322943e822b76806c33ffbaef to your computer and use it in GitHub Desktop.
Linux network solutions for Ubuntu
$ rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
$ hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 10:08:B1:2F:93:F4 ACL MTU: 820:8 SCO MTU: 255:16
UP RUNNING
RX bytes:85080 acl:73 sco:0 events:9855 errors:0
TX bytes:2386672 acl:5407 sco:0 commands:7061 errors:0
$ uname -r
4.2.0-16-generic
solution for the above bluetooth is:
rfkill unblock bluetooth
systemctl enable bluetooth.service
systemctl start bluetooth.service
Weak signal for WIFI
sudo tee /etc/modprobe.d/rtl8723be.conf <<< "options rtl8723be ant_sel=1"
Fedora (solution)changes Tested on Fedora 27
There's a problem with the kernel driver, the firmware, or the manufacture configuration with that chipset that it often doesn't get the right antenna. Create a file called /etc/modprobe.d/rtl8723be.conf with the line options rtl8723be ant_sel=1. Do modprobe -r rtl8723be, then modprobe rtl8723be. If it still has the problem then change the line to have ant_sel=2 instead and reload the module again.
To check signal strenth,
watch -n1 iwconfig
Sorting hanging issues on ubuntu 16.04 use the following commands.
sudo nano /etc/default/grub
There is a line in that: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" (like this), replace with: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1"
Save it (CTRL+O)
sudo update-grub
sudo reboot
for the firewall use this link https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-14-04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment