Sunday, April 5, 2020

How to check Ubuntu version

Check ubuntu version with follwoing command

lsb_release -a

Sunday, January 26, 2020

How to compile google protocol buffer 2.7.0 in ubuntu

1. Download the google protocol buffer 2.7.0 from github branches

https://github.com/protocolbuffers/protobuf/tree/2.7.0

 

2. Download gmock1.7.0.zip from following github

https://github.com/paulsapps/gmock-1.7.0

 

3. unzip the zip file

unzip gmock-1.7.0.zip

 
4. Rename the gmock-1.7.0 to gmock

mv gmock-1.7.0 gmock

 

5.run following command

./autogen.sh
./configure
make
make check
make install

How to add user with sudo privilage in ubuntu using gpasswd

We can grant a user with sudo privileges by adding them to the group like this: 
 
sudo gpasswd -a username sudo