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

.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

ssh key authentication

create ssh keys ls -ld ~/.ssh mkdir -m 700 ~/.ssh cd ~/.ssh ssh-keygen -b 2048 -t rsa -f id_rsa -P “” // CentOS requires 2 “ chmod go-rwx ~/.ssh/id_rsa scp id_rsa.pub username@remotemachine:~ ssh username@remotemachine “cat /Users/username/id_rsa.pub >> ~/.ssh/authorized_keys” ssh username@remotemachine “rm /Users/username/id_rsa.pub” https://help.apple.com/advancedserveradmin/mac/4.0/#/apd002AE571-2E56-409A-A1F9-A71736EE9040 ssh-agent eval `ssh-agent -s` ssh-add /root/.ssh/bhr.id_rsa Enter passphrase for /root/.ssh/bhr.id_rsa: Identity added: […]

Read More

ddclient

sudo vi /usr/local/etc/ddclient/ddclient.conf daemon=300 # check every 300 seconds syslog=yes # log update msgs to syslog mail=root # mail all msgs to root mail-failure=root # mail failed update msgs to root ssl=no # use ssl-support. Works with ssl library // ssl=yes default pid=/usr/local/var/run/ddclient/pid use=web server=dyndns.inwx.de protocol=dyndns2 login=bhensler password= bernhard.hensler.net,www.bme-ravensburg.de sudo /usr/local/sbin/ddclient -force sudo rm /usr/local/var/run/ddclient/ddclient.cache […]

Read More

homebrew

http://brew.sh ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” brew install mc brew install ddclient brew install mysql for yosemite : vi /usr/local/Library/brew.rb #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0

Read More