Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Saturday, 17 June 2017

Samba error in Ubuntu

15:41:00 Posted by Kumanan , ,
'net usershare' returned error 255: net usershare add: cannot share path /var/www/html/moodle as we are restricted to only sharing directories we own :-

cd /etc/samba

Then Edit the configuration file :
sudo gedit smb.conf

And then add a line in Global Settings :
   usershare owner only = false


After doing this, restart your samba service using,

sudo service smbd restart

Saturday, 23 January 2016

Useful Ubuntu Terminal commands

11:21:00 Posted by Kumanan
1. To find the version of installed software:-

<software name> -v or 
<software name> --version

Example :- 

apache2 -v
mysql --version

2. To copy files to www folder :-

sudo cp <file_name> /var/www/
sudo cp -R <file_name> /var/www/


3. Command to get version in SQL :-

mysql --version

3. Command to get version in PHP :-

php -v


3. Command to get version in Apache :-

apache2 -v





Monday, 16 March 2015

How to find SHA1 fingerprint in Ubuntu

16:15:00 Posted by Kumanan ,
Open the terminal(Ctrl + Alt + T).

Then type the below command line and press enter.

keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

You will get something like below shown:-

Alias name: androiddebugkey
Creation date: 9 Jan, 2015
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=Android Debug, O=Android, C=US
Issuer: CN=Android Debug, O=Android, C=US
Serial number: 8276151
Valid from: Fri Jan 09 18:58:29 IST 2015 until: Sun Jan 01 18:58:29 IST 2045
Certificate fingerprints:
MD5:  99:4C:EB:16:5B:89:20:2F:5A:E2:D2:B1:9E:23:9C:18
SHA1: B1:BB:A7:75:E8:57:BC:8F:21:CC:C7:3C:A8:03:04:94:AE:35:BD:97
SHA256: 75:07:39:83:68:D8:0A:1C:C5:5D:60:4D:DE:1F:29:17:50:3C:58:1E:A5:03:E9:B0:FE:7E:C2:36:B1:59:7D:E3
Signature algorithm name: SHA256withRSA
Version: 3