Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Saturday, August 12, 2023

Install kernel mainline

 

  • In Terminal, enter uname -mrs to determine the current kernel version.
  • Check and get any needed updates by entering sudo apt update && sudo apt upgrade.
  • Add the ppa for the kernels: sudo add-apt-repository ppa:cappelikan/ppa -y
  • Again, get the update list, now that the new repository has been added: sudo apt update
  • Install the latest mainline kernel: sudo apt install mainline -y
  • Reboot.

Tuesday, March 10, 2020

Reduce laptop overheat

Install TLP and thermald

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update sudo apt-get install tlp tlp-rdw
sudo apt-get install thermald




https://itsfoss.com/reduce-overheating-laptops-linux/

Sunday, February 23, 2020

Thursday, October 3, 2019

Format USB in Ubuntu


View device path e.g (/dev/sda , /dev/sdb ....)
sudo df -h

Replace "/your/device" with usb device path
sudo dd if=/dev/zero of=/your/device bs=1M count=10

Open Disks application, format USB

That's all!


Saturday, February 4, 2017

Monday, January 30, 2017

Thursday, January 12, 2017

Connect internet when using OpenVPN - Ubuntu 16.04

1. Setup OpenVPN using network manager

2. Open termainal, type
default_gateway=$(/sbin/ip route | awk '/default/ { print $3 }')
arr=(`echo ${default_gateway}`);
#echo "${arr[1]}"
sudo route add default gw "${arr[1]}"  wlp62s0
sudo route add -net 10.0.0.0 netmask 255.255.255.0 dev tun0

wlp620: main card connect internet (wifi or cable)
tun0: virtual interface of VPN connection
10.0.0.0 : base ip of VPN connection (ex: 10.0.0.3)


3. Save as changegateway
4. chmod +x changegateway
5. ./changegateway