Sunday, July 19, 2020

A great tip to increase ubuntu peformance

Ubuntu hides most of the system’s default autostart entries from this dialog. To view them, run the following command in a terminal:

Run the command
sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop


image

Disable entries by unchecking their check boxes instead of clicking the Remove button







image

Copied from the link
https://www.howtogeek.com/115797/6-ways-to-speed-up-ubuntu/


Friday, June 26, 2020

A great way to increase swap on ubuntu

The article is copied from ubuntu community as it is .

In case you don't want or you're not sure how to create a swap partition, you can create a swap file which will work in the same way as partition. Here are the steps (using terminal):
  1. Create an empty file (1K * 4M = 4 GiB).
    sudo mkdir -v /var/cache/swap
    cd /var/cache/swap
    sudo dd if=/dev/zero of=swapfile bs=1K count=4M
    sudo chmod 600 swapfile
    
  2. Convert newly created file into a swap space file.
    sudo mkswap swapfile
    
  3. Enable file for paging and swapping.
    sudo swapon swapfile
    
    Verify by: swapon -s or top:
    top -bn1 | grep -i swap
    
    Should display line like: KiB Swap: 4194300 total, 4194300 free
    To disable, use sudo swapoff swapfile command.
  4. Add it into fstab file to make it persistent on the next system boot.
    echo "/var/cache/swap/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab
    
  5. Re-test swap file on startup by:
    sudo swapoff swapfile
    sudo swapon -va
    
    Note: Above commands re-checks the syntax of fstab file, otherwise your Linux could not boot up properly.

Thursday, June 25, 2020

Making ubuntu as default OS on windows 10

I was able to successfully  install ubuntu  by following the documentation
from ubuntu website but my computer was not  booting  ubuntu by default .

After struggling a lot, Step 3 worked for me . You can directly go to step 3 instead of trying Step 1 and 2

1)  I executed the below instructions which I found after searching in google
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
 
The above steps installed boot-repair and executed the 
boot-repair utility. 
 
2) The above step did not help me and my computer was still booting to 
Windows 10 by default. 
Then I did the below step after rebooting to windows 10. 
Ran the command prompt as administrator and executed the below step
 

bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi
 
Basically the above step made the GRUB as default bootloader 
instead of Windows Boot Manager which is also referred as 
OS boot Manager in the BIOS.
This step was advised in the step 1 by boot-repair utility itself 
if the boot-repair does not work.

 
 
3) The above solution only worked for one time and again the computer 
started to boot windows 10 by default.
Then I tried the below solution which finally worked for me
 
Invoke terminal
Sudo su 
cd  /boot/efi/EFI
mv Boot Boot_bak
cp -Rf ubuntu Boot
cd Boot
mv  shimx64.efi bootx64.efi 
cd ../
mv Microsoft Microsoft_bak