Create sudo user in centos linux

I followed following steps to add a new user and later gave it sudo privilege. Use adduser command to add a new user or if you already have a user to give sudo access skip adduser. Its syntax is ‘adduser usernmae’ [root@centos-10d ~]# adduser devlab Set a password for new user using passwd command [root@centos-10d

Clear ssd cache in centos

I was adding a new user and received following error. [sss_cache] sysdb_domain_cache_connect: DB version too old [0.22], expected [0.23] for domain implicit_files!Higher version of database is expected!In order to upgrade the database, you must run SSSD.Removing cache files in /var/lib/sss/db should fix the issue, but note that removing cache files will also remove all of

Uninstall node on ubuntu

To uninstall node js from ubuntu following steps can be done. $ apt-get remove nodejs # It will remove the package $ apt-get purge nodejs # It will remove configurations $ apt-get autoremove # It will remove unused file ashu@dev:~/work/sb/frontend$ sudo apt-get remove nodejsReading package lists… DoneBuilding dependency treeReading state information… DoneThe following packages were

Virtualenv setup with python3

Project setup with virtualenv. While working with a pyhon3 project, it is better to install project based dependencies inside a project wise virtualenv created. It helps to minimise the interference of different versions of python modules into different projects.

Ubuntu screen recorder with audio- Obs-Studio

Ubuntu 20 have inbuilt recorder which we can be triggered by alt+ctrl+shift+ r But it does not record the voice to overcome the limitation I am exploring “OBS Studio” its installation steps are given at which I have used. Step 1) To check if “OpenGL” is available or not as OBS Studio needs openGL

install sklearn for python3

I ran a python3 program and got error Traceback (most recent call last):File “”, line 1, infrom sklearn.metrics.pairwise import pairwise_distancesModuleNotFoundError: No module named ‘sklearn’ It clearly says sklearn module is not available and second point to consider is I am using python3 and I have pyhton2 as well on my devbox. To sort it out,

Pip3 Install pip for python3

I have Ubuntu20 and by default if I check pip version I get it is for python2 But I want to use pip for pyhon3 and if I check pip3 I get following: Therefore I executed above command to have pip3 for python3 at my system : It displays a bit general information and asks

Khattar Kakka ke Tarang (Dahi, Choora, Chinni)

खट्टर ककाक तरंग – दही चूडा चीनी लेखक : हरिमोहन झा खट्टर कका दलान पर बैसल भाङ्ग घोटैत छलाह । हमरा अबैत देखि बजलाह – हॅं!- हॅं;….ओम्हर मरचाइ रोपल छैक, घूमि कऽ आबह। हम कहलिएन्ह – खट्टर कका, आइ जयवारी छैक, सैह सूचित करय आयल छी खट्टर कका पुलकित होइत बजलाह – वाह वाह ;

Maithili Batgavni geet

#Mithila #Maithiliबटगमनी: बाट (रस्ता) पर गमन (चलई) काल, गबय बला गीत | चलै के जे सोझे बटिया, चलले कुबटिया हे राम,आहे चलले कुबटिया हे राम। गरिये गेलैय हे, अरे गरिये गेलय हे,अंगुरि में कंटबागरिये गेलय हे, अंगुरी में कंटबा । के हम्मर कंटबा निकालत हे ननदो !के हम्मर लहरिया हरि लेतय हो राम!हो राम, के

Regex to check top domain in DNS

Today I come to a situation where I need to find if my string has .com/.edu/.au/.info/.in or similar kind of word in it or not. And while designing a regex pattern I kept following thought process.. It will have alphanumeric characters, i.e letters, numbers, underscores and periods(dot), dashes, -, followed by a period(dot) and a