nfs server, mac OS

sudo vi /etc/exports /Volumes/DATACUBE -alldirs -network 10.0.29.0 -mask 255.255.255.0 Once /etc/exports has been created, nfsd(8) will automatically start up and start serving the exports. sudo nfsd checkexports sudo nfsd status sudo nfsd restart nfsd service is enabled nfsd is running (pid 70334, 8 threads)   sudo vim /etc/fstab mmac.hensler.net:/Volumes/DATACUBE/ /mnt nfs defaults 0 0 mmac.hensler.net:/Volumes/DATACUBE/Media/Movies […]

Read More

nfs client

yum install nfs-utils nfs-utils-lib showmount mmac.hensler.net vi /etc/fstab mmac.hensler.net:/Volumes/DATACUBE /mnt         nfs     defaults        0 0

Read More

ftp server

INSTALL FTP yum install vsftpd chkconfig vsftpd on service vsftpd status useradd ftpuser passwd ftpuser CREATE FOLDER mkdir -p /disk3/ftpstuff chmod 767 disk3/ chmod 777 disk3/ftpstuff CREATE GROUP groupadd ftpusers CHANGE GROUP FOLDER chgrp ftpusers /disk3/ftpstuff chmod 3777 /disk3/ftpstuff ADD EXISTING USER usermod -a -G ftpusers ftpuser vi /etc/vsftpd/vsftpd.conf anonymous_enable=NO chroot_list_enable=YES chroot_list_file=/etc/vsftpd/chroot_list # If userlist_deny=NO, […]

Read More

cron

Use crontab -e to edit scheduled tasks, e.g.: 0 2 * * * rsync -av –delete –log-file=”/mnt/backup/logs/ic-ic.rsync.log” /opt/ /mnt/backup/ic-ic/

Read More

.bashrc

PS1=”[\u@\h \W] \[$(tput setaf 2)\]MMAC \[$(tput sgr0)\]\\$ ” alias ll=’ls -alp’ alias l=’ls -alph’ alias mc=”. /usr/local/opt/midnight-commander/libexec/mc/mc-wrapper.sh”

Read More

cron // backup automatically

in wp-config.php set : define(‘ALTERNATE_WP_CRON’, true); define(‘DISABLE_WP_CRON’, false); define(‘WP_CRON_LOCK_TIMEOUT’, 900); to allow updraftPlus to run automatically.

Read More

start script

#!/bin/bash # # Run-level Startup script for the IBM DB2 instance # # chkconfig: 345 91 19 # description: Startup/Shutdown IBM DB2 instance DB2_HOME=”/opt/home/db2inst1/sqllib” DB2_OWNR=”db2inst1″ # if the executables do not exist — display error if [ ! -f $DB2_HOME/adm/db2start -o ! -d $DB2_HOME ]  then  echo “IBM DB2 startup: cannot start”  exit 1  fi […]

Read More