Showing posts with label config. Show all posts
Showing posts with label config. Show all posts

Thursday, June 11, 2020

rsync: Simple step to sync backup to remote server

The simple step:1. Create a Local Backup of Your Data Using tar Command# tar -zcvpf /[Backup_File_Location]/[Backup_Filename] /[User's_Home_Directory_Location] z : Compress the backup file with ‘gzip’ to make it small size. c : Create a new backup archive. v : verbosely list files which are processed. p : Preserves the permissions of the files put in the archive for later restoration. f : use archive...

SSH : Passwordless Login Using SSH Keygen

Client : 192.168.0.100Remote : 192.168.0.2541. Create Authentication SSH-Keygen Keys Client#ssh-keygen -t rsa2. Create .ssh Directory on Remote#ssh root@192.168.0.254 mkdir -p .ssh3. Upload Generated Public Keys to Remote#cat .ssh/id_rsa.pub | ssh root@192.168.0.254 'cat >> .ssh/authorized_keys'4. Set Permissions on Remote#ssh root@192.168.0.254 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"5....

Thursday, April 16, 2020

Centos 7 : Extending LVM Volume

1. Check the un-partition disk under Disk GUI on Centos 7 GUI 2. Create and format disk #fdisk -l #fdisk -l /dev/sda3 - to format the partition : - n = create new partition - p = creates primary partition - 1 = makes partition the first on the disk - to prepare the partition to be used by LVM...

Monday, January 28, 2019

Friday, May 20, 2016

Friday, May 13, 2016

Friday, December 18, 2015

Tuesday, September 30, 2014

Wednesday, September 10, 2014

Thursday, September 4, 2014

Installing php-mcrypt in CentOS 6

For x86_64:#rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmFor i386:#rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmAfter install EPEL repo:#yum install php-mcryptCheck list of PHP add-on that install in server: #yum list installed | grep php | cut -d' ' -f1Source :http://blog.hostonnet.com/installing-php-mcrypt-in-cent...

Thursday, August 28, 2014

Monday, April 28, 2014

Wednesday, April 23, 2014

Thursday, April 17, 2014

Wednesday, April 9, 2014

Tuesday, April 1, 2014

Tomcat : Enable auto startup Tomcat service in Centos 6

1. Create a file named tomcat in your /etc/init.d directory#cd /etc/init.d#touch tomcat2. Copy and paste script on /etc/init.d/tomcat#!/bin/bashTOMCAT_HOME=/opt/tomcat/binSTART_TOMCAT=/opt/tomcat/bin/startup.shSTOP_TOMCAT=/opt/tomcat/bin/shutdown.shstart() {echo -n "Starting tomcat8: "cd $TOMCAT_HOME${START_TOMCAT}echo "done."}stop() {echo -n "Shutting down tomcat8: "cd $TOMCAT_HOME${STOP_TOMCAT}echo...

Tuesday, March 11, 2014

Owncloud : Set/change data directory

The guide. Stop your webserver Check if your config.php already contains a datadirectory entry. If it does, remember that location (let's assume it's '/var/www/owncloud/data' for now). Change or create the "datadirectory" entry in config.php file, so that it points to wherever you want to have your data from now on. Assuming the directory you want to move the data folder to is '/media/usbdisk/ocdata',...

Wednesday, January 29, 2014

LDAP Issue

Problems:Creating initial slapd configuration... Loading the initial configuration from the ldif file (/usr/share/slapd/slapd.init.ldif) failed with the followingerror while running slapadd:ldif_read_record: include file:///etc/ldap/schema/core.ldif failedSolve: sudo apt-get purge slapd sudo apt-get install slapd ldap-ut...

Thursday, December 26, 2013

Thursday, December 12, 2013