WebHosting

Thursday, July 21, 2022

Converting #Ogg to #mp3, Converting #audio file from one #format to anot...


Converting #Ogg to #mp3, Converting #audio file from one #format to another format

brew install ffmpeg   --> This will install ffmpeg if its not already then mac or you can use apt-get install ffmpeg if you are working in linux.


find . -type f -iname '*.ogg' -execdir sh -c \
'ffmpeg -v 8 -i "$1" "${1%.*}.mp3" && rm -- "$1" && echo "$1"' sh {} \;

Saturday, July 16, 2022

Check Memory information status on Linux machine or server

Apropos Linux Command to find exact command we want to run HD 1080p

#Linux #command Series : Compgen

#LinuxCommand Series #Whereis #command

#LinuxCommand Series Selecting default editor in #linux x

Running #linux #command without storing in history

Running #linux #command without storing in history

Suspending and restarting a process in linux command line

Listing down available shell in linux and changing if needed for any user

Tuesday, December 28, 2021

Docker daemon socket at unix:///var/run/docker.sock: /var/run/docker.sock: connect: permission denied



If you are getting the following error 

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied

while executing #Docker #Commands then please try the following steps.

1. Add current user to the docker group:

    sudo usermod -a -G docker $USER

    The above command will add the current user to the docker group.

2. Change the permission of docker.sock

    sudo chmod 666 /var/run/docker.sock

3. Also check If the gid of the second command is not in the list of gids of the first command, you need to run the task as root or add the user to the group displayed by the second command.

    list group ids of the current user: id --groups

    show UID: gid of docker.sock: stat /var/run/docker.sock --format '%u:%g'




Featured Posts

How to Enable and Configure Remote Desktop (RDP) on Ubuntu 24.04.4 LTS

Remote Desktop Protocol (RDP) support in Ubuntu has become considerably easier with the GNOME Remote Desktop stack included in modern Ubuntu...