Wednesday, August 26, 2026

Linux not showing up in duel boot after windws update solved

 Boot in windows

 

open command prompt as administrator

 

bcdedit /set {bootmgr} displaybootmenu yes

 

press enter

 

output should be command completed successfully 

 

now go to advanced settings

 

in the section startup and recovery

 

click settings

 

make sure the time to display list of operating systems is set to 30 seconds

 

go to control panel ,go to power options

 

disable fast startup

 

restart your computer

 

but in my case the problem is not solved

 

still showing just one option windows 11 in boot menu

 

when i have duel boot installed fedora 40 workstation

 

so booted to windows again

 

open command prompt as adminsitrator

 

bcdedit /enum firmware

 

in case of fedora 


you will see


\EFI\fedora\shim.efi


now type


bcdedit /set {bootmgr} path \EFI\Fedora\shim.efi


if this command is successful you will see duel boot menu again


if you want to go back to windows only boot menu


bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi


then you will see windows only boot menu


however to solve this properly


you need to install grub from your linux partition


Tuesday, August 11, 2026

Recognise artist , title and song from an unknown song or sound clip you collected from somewhere else,using python and audd api,cost is less than 5 dollar

 


import os

import requests


AUDD_URL = "https://api.audd.io/"



def recognize_track(mp3_file, api_token):


    # Check whether the file exists

    if not os.path.isfile(mp3_file):

        print("ERROR: File not found")

        return


    # Check file size

    file_size = os.path.getsize(mp3_file)


    if file_size > 10 * 1024 * 1024:

        print("ERROR: File is larger than 10 MB")

        return


    print("Recognising:", mp3_file)


    try:

        with open(mp3_file, "rb") as audio_file:


            files = {

                "file": audio_file

            }


            data = {

                "api_token": api_token

            }


            response = requests.post(

                AUDD_URL,

                files=files,

                data=data,

                timeout=60

            )


    except requests.exceptions.RequestException as e:

        print("Network error:")

        print(e)

        return


    except Exception as e:

        print("Error:")

        print(e)

        return


    # Get JSON response

    try:

        result = response.json()


    except ValueError:

        print("ERROR: AudD returned an invalid response")

        print(response.text)

        return


    # Display API error

    if result.get("status") == "error":


        error = result.get("error", {})


        print("AUDD API ERROR")

        print("Error code:", error.get("error_code"))

        print("Error message:", error.get("error_message"))


        return


    # Get recognition result

    track = result.get("result")


    # No match

    if track is None:

        print("No match")

        return


    # Track recognised

    artist = track.get("artist", "Unknown artist")

    title = track.get("title", "Unknown title")


    print()

    print("MATCH FOUND")

    print("Artist:", artist)

    print("Title :", title)


    album = track.get("album")


    if album:

        print("Album :", album)



# ------------------------------------

# CHANGE THESE TWO VALUES

# ------------------------------------


MP3_FILE = r"song.mp3"


API_TOKEN = "***"



# ------------------------------------

# Run recognition

# ------------------------------------


recognize_track(MP3_FILE, API_TOKEN)


Output:


Recognising: song.mp3


MATCH FOUND

Artist: Wali Bird

Title : Perfection (Interlude)

Album : B.I.R.D


Monday, August 3, 2026

Fix Touchpad Tap to Click Not Working in Linux Mint

If you are not new to Linux Mint, just follow this path: System Settings ⇾ Hardware ⇾ Mouse and Touchpad ⇾ Touchpad tab ⇾ Enable "Tap to Click".

Source : https://itsfoss.com/fix-touchpad-click-linux-mint/

solve bluetooth issue with broadcam wireless adapter BCM43142 in garuda linux

To solve bluetooth issue

To get the Broadcom BCM43142 Bluetooth working on Arch Linux, install the missing proprietary firmware package from the AUR (like broadcom-bt-firmware),

 enable the bluez service, and reload the kernel module.

Firmware and Driver Setup

Most users on Unix StackExchange agree that the BCM43142 requires extra firmware not present in standard packages.

Install an AUR helper or manually build the package: yay -S broadcom-bt-firmware (or bcm43142a0-firmware).

Restart or reload the btusb kernel module using sudo modprobe -r btusb 

followed by sudo modprobe btusb.

Enabling Bluetooth Service

Install the core Bluetooth software:

 sudo pacman -S bluez bluez-utils.

Start and turn on the system daemon: 

sudo systemctl enable --now bluetooth.service.

Use bluetoothctl to power on the controller and scan for your peripheral devices.

If agent registered messege appeared it is working

install broadcam wireless bluetooth adapter BCM43142 on garuda linux

এমন একটা দিন ছিল যে লিনাক্স অপারেটিং সিস্টেমের কোর্স করছি কিন্তু বাড়িতে ইনস্টল করতে পারি না

যদিও বা করি ড্রাইভার পাওয়া যেত না বিভিন্ন ডিভাইসের ,ইন্টারনেটের যুগে বড় হয়েছি ,নেট কানেকশন না করা গেলে কিসের অপারেটিং সিস্টেম

কোন যুগের কথা ,দুই হাজার চার ,দুই হাজার পাঁচ

তারপর দুই দশক চলে গেল

লিনাক্স এখন অনেক উন্নত ,বেশিরভাগ কম্পিউটারে সব ডিভাইস চিনে ফেলে

কিন্তু বেশিরভাগ ,এখনও সব নয়

একটা পুরোনো ল্যাপটপ কিনেছিলাম ,এইচপি প্যাভিলিয়ন

তার ওয়ারলেস এডাপ্টার ছিল 

সেটা এই কমান্ডে দেখা যায়

Lspci -nn | grep -i net

দেখতে পেলাম BCM43142

অর্থাৎ ব্রডক্যাম এডাপ্টার ,এগুলো সহজে চিনতে পারে না 

ফলে আলাদা করে মডিউল ইনস্টল করতে হলো

Wl বলে একটা মডিউল আছে

Sudo pacman -S linux-zen-headers

Sudo pacman -S broadcam-wl-dkms

Sudo dkms autoinstall

Sudo modprobe wl

না হলে একটা রিস্টার্ট করতে হবে

এখন নেট না পেলে এগুলো করছিলাম কী করে ,স্বাভাবিক প্রশ্ন

ফোন লাগিয়ে ইউএসবি টেদারিং করে 

এবার এতটা পরিশ্রম এক মুহূর্তে হয়নি ,বেশ খানিকক্ষণ চেষ্টা করে তবে সফল হয়েছি ,ফোন আর লাগিয়ে নেট পেতে হচ্ছে না ,wifi কাজ করছে

কিন্তু আর্চ লিনাক্সের একটা এক্সাম্পল এন্ডাভার লিনাক্স ইউজ করলে এইটুকুও করতে হত না

লাইভ বুট করে ও ব্রডক্যাম খুঁজে নিয়ে স্বতঃস্ফূর্ত ভাবে ড্রাইভার নামিয়ে নেয় 

অনেকদিনের একটা সমস্যা মিটলো 

এবার নেক্সট টার্গেট ব্লুটুথ

দেখা যাক

Thursday, February 27, 2025

Things to do after installing rocky linux 9



rename the machine


$ sudo hostnamectl --static hostname "rockyserver"

pen drive not opening ,no ntfs support

$ sudo hostnamectl --static hostname "kickass-workstation"

install vlc

sudo dnf -y install epel-release 

sudo dnf upgrade 

sudo dnf install vlc







Wednesday, December 18, 2024

macro to delete very first sheet of all excel files in a folder

 Sub RenameSheets()
     Dim strFolder As String
     Dim strFile As String
     Dim wbk As Workbook
     Dim i As Long
     With Application.FileDialog(4) ' msoFileDialogFolderPicker
         ' Show dialog
         If .Show Then
             ' Assign selected folder to variable
             strFolder = .SelectedItems(1)
         Else
             Beep
             Exit Sub
         End If
     End With
     ' Append \ if necessary
     If Right(strFolder, 1) <> "\" Then
         strFolder = strFolder & "\"
     End If
     On Error GoTo ErrHandler
     ' Turn off screen updating and event handling
     Application.ScreenUpdating = False
     Application.EnableEvents = False
     ' Get first file name in folder
     strFile = Dir(strFolder & "*.xls*")
     ' Loop
     Do While strFile <> ""
         ' Open workbook
         Set wbk = Workbooks.Open(Filename:=strFolder & strFile)
         ' Loop through sheets except first one
        ' For i = 2 To wbk.Worksheets.Count
            ' With wbk.Worksheets(i)
                 ' Append " Old" to sheet name
             '    .Name = .Name & " Old"
             'End With
         'Next i
         Application.DisplayAlerts = False
         If wbk.Worksheets.Count > 1 Then
         
         wbk.Worksheets(1).Delete
         End If
         
         Application.DisplayAlerts = True
           ' wbk.Close True
         ' Close and save workbook
         wbk.Close SaveChanges:=True
         ' Get next file name
         strFile = Dir
     Loop
ExitHandler:
     ' Turn on screen updating and event handling
     Application.EnableEvents = True
     Application.ScreenUpdating = True
     Exit Sub
ErrHandler:
     MsgBox Err.Description, vbExclamation
     Resume ExitHandler
 End Sub



Thursday, December 12, 2024

turn the pushy_https behaviour on in cpan

 from terminal

type cpan

you get the cpan prompt

then

 o conf init pushy_https

yes


perl tk package install error " expected identifier or '(' before numeric constant" solved on windows 11

when trying

cpan install Tk

I was getting  lot of errors 

the solution is

just install strawberry perl

then from command line

cpanm https://github.com/Lamprecht/perl-tk.git@Strawberry-5.38-patch 


Source:https://stackoverflow.com/questions/78323022/installing-tk-on-strawberry-perl-leads-to-compiler-errors

 

Monday, October 21, 2024

Connect my zeb duke wireless bluetooth headphone using terminal in fedora 40

 install bluez-deprecated 


sudo dnf install bluez-deprecated


hcitool scan


should show the bluetooth devices


if not 


bluetoothctl


agent on
scan on # wait for your device's address to show up here
scan off
trust MAC_ADDRESS (in my case 41:42:FF:71:7A:6B)
pair MAC_ADDRRESS(in my case 41:42:FF:71:7A:6B) 

// the above comment will fail  if the device is already paired
connect MAC_ADDRESS (in my case 41:42:FF:71:7A:6B)


there are simpler ways off course


bluetoothctl devices


this will show the device with the mac address


now if the device is not paired 


bluetoothctl pair 41:42:FF:71:7A:6B


if this succeeds then


bluetoothctl connect 41:42:FF:71:7A:6B


to disconnect



bluetoothctl disconnect 41:42:FF:71:7A:6B

 

 to remove the pairing


bluetoothctl remove 41:42:FF:71:7A:6B






Source:https://unix.stackexchange.com/questions/96693/connect-to-a-bluetooth-device-via-terminal


Source:https://unix.stackexchange.com/questions/96693/connect-to-a-bluetooth-device-via-terminal


Source:https://askubuntu.com/questions/758586/how-to-unpair-bluetooth-device-from-the-command-line


Source:https://www.baeldung.com/linux/bluetooth-via-terminal

Saturday, October 19, 2024

Enable javafx option in eclipse,javafx is not showing solved

 Open eclipse,create a java project,click help,click install new software


in the label beside work with 


paste


https://download.eclipse.org/efxclipse/updates-released/3.9.0/site/


there might open a box 


you have to type there


e(fx)clipse

 

select every component ,install

 

restart eclicpse

 

Source:https://www.youtube.com/watch?v=s3Gz1ivERzY

Install eclipse on fedora using flatpack

flatpak install org.eclipse.Java

Switch from One Java Version to Another




Switch from One Java Version to Another



If you have multiple Java versions installed on your system, you can list them by using the alternatives command: sudo alternatives --config java

The currently active version is marked with a + sign.

To switch to another version, type the appropriate number and press Enter.



Install java (openjdk and oraclejdk) on fedora 40



search openjdk version

dnf search openjdk

sudo dnf install java-latest-openjdk.x86_64




java -version




showing i installed version 21




now go the oracle jdk download page




https://www.oracle.com/java/technologies/downloads/?er=221886




I downloaded jdk-23_linux-x64_bin.tar.gz




sudo mkdir -p /usr/local/java




cd Downloads



sudo cp -r jdk-23_linux-x64_bin.tar.gz /usr/local/java



sudo tar zxvf jdk-23_linux-x64_bin.tar.gz




sudo nano /etc/profile



add the following lines





JAVA_HOME=/usr/local/java/jdk-23.0.1
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export PATH


save the file and close
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk-23.0.1/bin/java" 1
echo $?
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk-23.0.1/bin/javac" 1
echo $?
sudo update-alternatives --install "/usr/bin/javaws.itweb" "javaws.itweb" "/usr/local/java/jdk-23.0.1/bin/javaws.itweb" 1
echo $?
sudo update-alternatives --set java /usr/local/java/jdk-23.0.1/bin/java
sudo update-alternatives --set javac /usr/local/java/jdk-23.0.1/bin/javac
sudo update-alternatives --set javaws.itweb /usr/local/java/jdk-23.0.1/bin/javaws.itweb
source /etc/profile
reboot

now both java and javac command is working..

 

Source:https://phoenixnap.com/kb/fedora-install-java




































Monday, June 24, 2024

Install obs-studio in fedora 40



sudo dnf upgrade --refresh

Install OBS Studio via DNF Command

To install OBS Studio on Fedora, utilizing the main release appstream for most users is the best method, given it’s a 6-month cycle release. Input the following command in your terminal to begin the installation: 

 

sudo dnf install obs-studio


For developers interested in OBS Studio’s development packages, install the development package with: 

 

sudo dnf install obs-studio-devel


Source:https://linuxcapable.com/install-obs-studio-fedora-linux/

Friday, June 14, 2024

eve-ng web gui login issue solved



df -h




to see you have sufficient space




if you do not have sufficient space you can add another virtual drive




log in eve-ng virtual machine as root

and see if mysql server is working




sudo service mysql status



or

ps aux | grep mysql



if mysql is running



To fix permission, enter this command in eve-ng console

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions



if this does not solve the issue you can restore the db

unl_wrapper -a restoredb



However the issue for me was you can not login using root in web gui in eve-ng

you have to use

username admin

password eve