Thursday, September 16, 2021

"apt full-upgrade" returns "1 not fully installed or removed."

1. find the issue.
     sudo dpkg -C


test@test:/var/lib/dpkg$ sudo dpkg -C

The following packages are in a mess due to serious problems during

installation.  They must be reinstalled for them (and any packages

that depend on them) to function properly:

 libreoffice-common   office productivity suite -- arch-independent files

3. Remove the broken package via the following command:

    sudo dpkg --remove --force-remove-reinstreq  libreoffice-common  

4. Install the package again:

    sudo apt-get install  libreoffice-common  


Thursday, September 2, 2021

Wifi setup from command line on linux

 1. find the wireless interface (starting with w)


ip a


2. To check the configuration of the wireless interface


sudo iwconfig


2. make sure the wireless interface is up


sudo ip link set w___ up


3. find the ESSID of available for connection


sudo iwlist w___ scan | grep ESSID


4.1 Connect to the ESSID of your choice ( yyy )


sudo iwconfig w___ essid yyy


4.2 If it's password-protected then use


sudo iwconfig w___ essid yyy key s:zzz


(Here "s:" is used for string, while "zzz" is your key)


5. Setting up dhcp


sudo dhclient w___


6. check the connection to the internet


ping 8.8.8.8




Monday, August 2, 2021

recursively delete empty directories

delete all empty folders in current dir
find . -type d -empty -delete 
delete all empty files in current dir 
find . -type f -empty -delete 
print all empty folders in current dir 
find . -type d -empty -print

Friday, July 23, 2021

ade environment share directory from local machine or external drive

Add following to the .aderc ( lsblk can be used to find the mounted dir if it's a external usb drive or SSD )


  --mount type=bind,source=/media/sda1-usb-Generic_Flash_Di,destination=/media/sda1-usb-Generic_Flash_Di,bind-propagation=shared

Thursday, May 20, 2021

fix Font characters displayed as squares in Ubuntu

 




execute


rm -rf ~/.cache/fontconfig 
sudo fc-cache -r -v

enter your sudo password after executing this lines and  reboot

Wednesday, May 19, 2021

Setup ragner highlighting file

sudo apt install ranger highlight


to setup highlighting of file execute following 


 ranger --copy-config=scope




Tuesday, April 27, 2021

Fix Microsoft OneDrive export large ZIP files that are corrupt

File downloaded where size is more then 4GB, when you try unzipping shows corrupt.

Looks like there is a bug in the zip library itself that is not fixed. Following is a workaround.


problem:

 zipfile corrupt.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)

Solution: (from Paul Marquess)


https://github.com/pmqs/Fix-OneDrive-Zip

fix-onedrive-zip onedrive-zip-test-zeros.zip

After running the script, You shall be able to unzip the file as normal without error.


Note:-

If you want to see detailed explanation then see following


https://www.bitsgalore.org/2020/03/11/does-microsoft-onedrive-export-large-ZIP-files-that-are-corrupt

fix : nvml error: driver/library version mismatch: unknown.

 reboot the main machine and then retry.