Turn off monitor using command line

The xset command mentioned in other answers will turn off all the monitors if you have multiple monitor setup. However if you want turn off only one or some of the monitor you should use xrandr. First run xrandr -q command, which will list all…

Read More

Install PHP 7.2 MCrypt extension

## How to install mcrypt in php7.2 ## ## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/ ## # # Check version php and pecl # php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php pecl version sudo apt-get install php-pear sudo…

Read More

Mount Windows Share on Ubuntu

$ sudo apt-get install cifs-utils $ sudo mount //WINSRV/SHARE -t cifs -o uid=1000,gid=1000,username=winuser /mnt/path where 'winuser' is the windows domain user, and optionally we can supply domain using domain=windomain with options.   Note: to find out linux user's uid and…

Read More

Mount AWS S3 bucket to Ubuntu file system

I cannot find any Ubuntu PPA that has latest S3FS, so we will need to compile it from source to have latest version sudo apt-get install build-essential git libfuse-dev libcurl4-openssl-dev libxml2-dev mime-support automake libtool sudo apt-get install pkg-config libssl-dev git…

Read More