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...
Showing posts with label config. Show all posts
Showing posts with label config. Show all posts
Thursday, June 11, 2020
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
Centos : Allow two NIC with different subnet
Solution:
Edit /etc/sysctl.conf
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
# Controls source route verification
net.ipv4.conf.default.rp_filter = 2
...
Save and restart server
Source:
http://jensd.be/468/linux/two-network-cards-rp_filter...
Friday, May 20, 2016
How to resume SSH session after disconnecting?
Solution : #screen...
Friday, May 13, 2016
Check folder size in Linux Centos
Command : #du -hs /*
To check details folder /etc size :
#du -hs /etc/*
....
32K /etc/abrt
24K /etc/acpi
4.0K /etc/adjtime
4.0K /etc/aliases
12K /etc/aliases.db
12K /etc/alsa
4.0K /etc/alternatives
....
...
Friday, December 18, 2015
How To Find Public IP Address from command on Linux
source : http://www.cyberciti.biz/faq/how-to-find-my-public-ip-address-from-command-line-on-a-lin...
Tuesday, September 30, 2014
Virtualbox : phpvirtualbox, could not connect to host
Issue:
"Could not connect to host (http://127.0.0.1:18083/
Solution:
#vboxwebsrv >nul &
Issue:/sbin/rcvboxdrv: command not found
Solution:
#sudo /usr/lib/virtualbox/vboxdrv.sh setup
Source:https://blog.tuannh.com/solved-sbinrcvboxdrv-command-not-found...
Wednesday, September 10, 2014
Install APC in Centos
Source : http://www.tecmint.com/install-apc-alternative-php-cache-in-rhel-centos-fedo...
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
Cacti : Enable cron job for Weathermap
Solutions:
* * * * * cd /var/www/html/plugins/weathermap/; /var/www/html/plugins/weathermap/weathermap --config /var/www/html/plugins/weathermap/configs/network.conf
Source:
http://forums.cacti.net/viewtopic.php?f=16&t=5234...
Monday, April 28, 2014
Nagios Ndo2db: Could not bind SOCKET
source : http://blog.connexeon.com/sysadmin/linux/nagios-ndo2db-could-not-bind-sock...
Wednesday, April 23, 2014
Normal user become Root
Source : http://wiki.centos.org/TipsAndTricks/BecomingRoot (Limit SSH) http://www.tecmint.com/disable-or-enable-ssh-root-login-and-limit-ssh-access-in-lin...
Thursday, April 17, 2014
Disabling collectinfo.pl
Source: https://www.virtualmin.com/node/10...
Wednesday, April 9, 2014
Protect SSH Logins
source: http://www.tecmint.com/protect-ssh-logins-with-ssh-motd-banner-messages/ http://rbgeek.wordpress.com/2012/08/08/how-to-update-ssh-motd-banner-in-centos...
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
Howto use multiple SSH keys for password less login
http://www.cyberciti.biz/tips/linux-multiple-ssh-key-based-authentication.h...
Thursday, December 12, 2013
Can't locate Net/SNMP.pm in @INC (@INC contains + Nagios
http://raman-kumar.blogspot.com/2009/11/cant-locate-netsnmppm-in-inc-inc.h...
Subscribe to:
Posts (Atom)