Clipboard between Mac OS, Centos

Clipboard between Mac OS, Centos 64 7 CentOS yum install epel-release yum install xclip cat somefile.txt | xclip -selection clipboard In Mac OS use preinstalled pbcopy/pbpaste cat /etc/passwd | pbcopy   http://tedhagos.com/linux/clipboard-copy-paste-terminal.html

Read More

mount nfs volumes (OSXFUSE) at startup using launchAgent

sudo vim /Users/bhr/Library/LaunchAgents/com.mmac.useragent.plist <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict>         <key>KeepAlive</key>         <true/>         <key>Label</key>         <string>com.mmac.useragent</string>         <key>Program</key>         <string>/Users/bhr/startUp/bindfs.sh</string>         <key>RunAtLoad</key>         <true/>         <key>StandardErrorPath</key>         <string>/tmp/com.mmac.startup.stderr</string>         <key>StandardOutPath</key>         <string>/tmp/com.mmac.startup.stdout</string> </dict> </plist> sudo vim /Users/bhr/startUp/bindfs.sh #!/bin/bash sudo /usr/local/bin/bindfs -r -g SFTPGroup /Volumes/DATACUBE/Media/Movies/ /chroot/sftp/movies sudo /usr/local/bin/bindfs […]

Read More

copy your ssh public key using cat

Generate new ssh key ssh-keygen -t rsa -C “bernhard.hensle@timetoact.ch” add private key to keychain ssh-add -K ~/.ssh/bhensler_id_rsa copy ssh key cat ~/.ssh/bhensler_id_rsa.pub | ssh bhr@media.hensler.net “cat >> ~/.ssh/authorized_keys”  

Read More

Netatalk (Open Source AFP implementation) Centos 7

Install yum -y install netatalk avahi dbus nss-mdns chkconfig netatalk on chkconfig messagebus on chkconfig avahi-daemon on adduser afp passwd afp vi /etc/netatalk/afpd.conf “hostname” -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so -nosavepassword vi /etc/netatalk/AppleVolumes.default :DEFAULT: “HTTPD” allowed_hosts:10.0.29.0/24 allow:afp rwlist:afp options:upriv,usedots dperm:0770 fperm:0660 ~ “HOME” /var/www/html/ “HTML” vi /etc/nsswitch.conf hosts:      files mdns4_minimal dns mdns mdns4 vi /etc/avahi/services/afpd.service […]

Read More