Posts

Showing posts from September, 2017

Linux tips: Reset History size

Linux tips: Reset History size // To display history size # set | grep HIST // Change  HISTFILESIZE, HISTSIZE inside .bashrc # cd ~/.bashrc // Amend  .bashrc HISTFILESIZE=8000 HISTSIZE=8000 // Tested working on Linux Mint 18.3

Linux tips: Ways to restart your network/wifi

Linux tips: Ways to restart your network/wifi If you are experiencing problems with your network (before doing any of the below commands), // Display what devices are (i.e. Wifi/Ethernet/Loopback) on the network: # nmcli dev Method 1: // Turn Wifi off # nmcli radio wifi off // Turn Wifi on # nmcli radio wifi on Method 2: // Restart NetworkManager (systemd) service # systemctl restart NetworkManager.service Method 3: // Disable Wifi (i.e. wlan0) # ifconfig wlan0 down or # ifdown wlan0 down // Enable Wifi (i.e. wlan0) # ifconfig wlan0 up or # ifup wlan0  Method 4: // Force restart of network manager (for wired/wireless issues) # /etc/init.d/network-manager force-reload Method 5: // Add the following to: /etc/NetworkManager/NetworkManager.conf // Reason: Mac address randomization feature in Network Manager // contributed to downing (wifi) networks. [ifupdown] managed=true   [device] wifi.scan-rand-mac-address=no  

Linux tips: (Basic) Systemd services commands

Linux tips: (Basic) Systemd services commands // (1a) Display all active Systemd units # systemctl list-units or // (1b) Same as 1(a) # systemctl // To start Systemd service # systemctl start ???????.service // To stop Systemd service # systemctl stop ??????.service // To restart a running Systemd service # systemctl restart ??????.service // (2a) To reload config files for a Systemd service # systemctl reload ??????.service or  // (2b) Same functionality as (2a) except it will restart Systemd service as well # systemctl reload-or-restart ??????.service // To start Systemd service at boot # systemctl enable ??????.service // To stop Systemd service at boot # systemctl disable ??????.service // To check on status of Systemd service # systemctl status ??????.service // To show dependencies of a Systemd service # systemctl list-dependencies ??????.service

Linux tips: Getting files from Github

Linux tips: Getting files from Github # apt-get update # apt-get install git # git clone https://github.com/????????/???????

Linux tips: get T9UH adapter working!

Linux tips: get T9UH adapter working! Download 8814AU driver. unzip the downloaded file. # make   // compile driver # modprobe -rv rtl8814au   // search & remove previous instance of 8814au driver # make install   // install driver  # modprobe -v rtl8814au   // check if 8814au driver is loaded The above instructions are tested (fully working) on Linux Mint 18.3 (4.4.0 kernel) on TP-Link Model: Archer T9UH .  If you're using Linux Mint 18.3 (4.4.0 kernel),  1. Download 8814AU driver .  If you're using Linux Mint 18.3 (4.8.0 kernel),  1. Download 8814AU driver . -- remember to reboot.