This simple script will show the total memory, free memory and percentage of memory used. Have tested it on Ubuntu 14/16 but will work on CentOS as well #!/bin/bash freemem=$(($(free -m |grep "buffers/cache:"|awk '{print $4}'))) totalmem=$(($(free -m |awk 'NR==2 {print $2}'))) usage=$(($totalmem-$freemem)) echo "Memory used: $usage" echo "Total memory: $totalmem" usage=$(($usage*100 / $totalmem)) echo "Usage percentage: $usage" echo "Free memory: $freemem" echo "$TIMESTAMP $totalmem $usage $freemem"
You have configure Kerberos and Winbind to join Active Directory. Configure Samba to use ADS in globals [global] workgroup = ******* realm = ******.COM.PK server string = ***** security = ADS map to guest = Bad Uid password server = ip adrress of Domain Controller log file = /var/log/samba/log.%m max log size = 50 idmap uid = 100000-200000 idmap gid = 100000-200000 cups options = raw [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [Test] path = /d/infopool valid users = rahat.khan, *******\Administrators, *****\rahat.khan admin users = ******\rahat.khan write list = ******\rahat.khan acl group control = Yes guest ok = yes
fwbackups is a feature-rich user backup program that allows you to backup your documents anytime, anywhere. It is completely free to download and use without any sort of trial or restrictions. In fact, fwbackups is open-source, which means anybody can use, share it and improve it. If you would like to help develop or test fwbackups, see the developer's page. fwbackups offers a simple but powerful interface that permits you to perform backups with ease. With support for scheduled backups and backing up to remote computers, you will never have to worry about losing your data again. For more information, select a page from the menu on the left of this text. fwbackups - Features fwbackups™ has a rich interface that is both powerful and easy to use. Here are just a few of its many features: * Simple interface: Configuring new backups or restoring documents from a previous backup is a breeze. * Cross-platform: It doesn't matter if you're running Microsoft Windows, Mac OS ...
Comments