Skip to main content

Posts

How to Make a Write-Protected USB Flash Drive

To make write protection on a USB drive, you need some editing using diskpart program in terminal.  First, press windows logo and write command or find command line shortcut and click on it. When the window opens, write diskpart in it (picture 1 below). If you did not start command line with administrator privileges, diskpart asks you when it starts. Then write "list disk" command (picture 2 below). See and determine the USB drive that you want to make write-protection. In my case, it is "Disk 1"... Use "select disk 1" command (picture 3 below). Use "attributes disk set readonly" command (picture 4 below).  That's all... When you want to copy or delete some files in it, do steps from 1 to 5 and then use "attributes disk clear readonly" command...

Android 11 for LG G2

Beloved old mobile phone, LG G2 got a new milestone to update its operating system with the support of a few XDA developers.  The first step of updated firmware, the initial release has been uploaded to one of developer's personel cloud storage. It can be found here .  Well done and thanks to the developers. 

Windows 10 Does Not Allow to Use LG Sound Bar as Output Speaker

Problem & Solution  If you have an LG soundbar, you may encountered a problem when you tried to make a connection. I have an LG NB2540 soundbar. Windows 10 can easly connect to this device but when I want to listen to music, I can not hear any sound from this soundbar. I still hear it from my laptop's internal speaker. Last year, I have found a solution on Microsoft's Community. I have used my soundbar happily until now. Recently, I needed to do a fresh install of windows. So I needed to solve this problem again. The solution is very easy.  Remove LG soundbar from bluetooth devices section. Press start menu on Windows. Write "command prompt". Click "Run as administrator". When it opens, write this command without qoutes and press enter: "reg add HKLM\SYSTEM\ControlSet001\Control\Bluetooth\Audio\AVRCP\CT /v DisableAbsoluteVolume /t REG_DWORD /d 1 /f" Add again on bluetooth devices section. Well done! Source of this solution:  https://answers.mic...

How to Add or Resize Your Swap Partition on Linux

I have a laptop with an SSD and an HDD. SSD includes Windows. HDD include Ubuntu 20.04. For some reasons, I need to resize, merge, move the partitions of HDD...  This will be a "How to" post...  First, unmount or disable the swap partition. Because it is impossible editing while it is active.  Install GParted.  After selecting the right disk, do the changes like merging, resizing and moving.  When it was done, use "blkid" command to determine the new UUID of new swap.  Open /etc/fstab/ with gedit. (sudo gedit /etc/fstab/) Find the line which included "sw" There is a UUID which is old partition's one. Change this UUID with the new one learned with blkid command. Then save and close the gedit windows. Now it is time to control that new swap is active or not. Use this command: "free -m". If you see memory line and swap line on the screen, you did everything right. If not, there is a mistake in somewhere above.

Solution of Error Message: "Ignoring file 'XXXXXXXXXXXX.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension"

While using Ubuntu 20.04, I've encountered the warning in the subject line of this post after using update command in terminal. I think it is about some compatibility problem with the sources added after Ubuntu setup.  I tried to get rid of that message deleting all the ".save" files in /etc/apt/sources.list.d/ directory. But no way... After first use of update command, they have been created again.  After a little research, I found a solution as a workaround. Writing the below command hides the warning message forever:  sudo sh -c "echo 'Dir::Ignore-Files-Silently:: \"(.save|.distupgrade)$\";' > /etc/apt/apt.conf.d/99ignoresave"

Installation of Hardware Virtualization Support on Ubuntu

While installing Android Studio on Ubuntu, it warned me to install hardware virtualization support for better performance. My CPU supports this technology. I think it should come while installation of operating system. But anyway, there are lots of information to install it: https://help.ubuntu.com/community/KVM/Installation Just follow the directions on the page.

Error: Sub-process /usr/bin/dpkg returned an error code (1)

When a process locks the debconf config.dat file, you may get this error.  The solution of this error is identifying the process and killing it. You can find the guilty process wtih this command:  sudo fuser -v /var/cache/debconf/config.dat You will get an PID on the screen. And you can use this PID in the following command: sudo kill THAT_PID_NUMBER_GOT_ABOVE_COMMAND or you can just use the following code to kill the process without seeing PID number: sudo fuser -v -k /var/cache/debconf/config.dat All these info has been taken from askubuntu community .