Skip to content

Instantly share code, notes, and snippets.

View JunJi-JiaYue's full-sized avatar

JiaYue JunJi-JiaYue

  • Japan
View GitHub Profile
@bellflower2015
bellflower2015 / pspkg.bash
Created October 30, 2017 09:13
さくらのレンタルサーバ (FreeBSD-9.1-RELEASE) にて、ユーザー権限で ports を利用できるようにする
#!/usr/bin/env bash
PSPKGDIR=${PSPKGDIR:-$HOME/.pspkg}
PSPKGRC=$HOME/.pspkgrc
[ ! -e $PSPKGRC ] && cat << 'EOD' > $PSPKGRC
export PREFIX=$PSPKGDIR
export INSTALL_AS_USER=yes
#export DEPENDS_TARGET='package'
export LOCALBASE=$PREFIX
@rudelm
rudelm / autofs.md
Last active June 5, 2024 20:26
Use autofs on Mac OS X to mount network shares automatically during access

Autofs on Mac OS X

With autofs you can easily mount network volumes upon first access to the folder where you want to mount the volume. Autofs is available for many OS and is preinstalled on Mac OS X so I show you how I mounted my iTunes library folder using this method.

Prepare autofs to use a separate configuration file

autofs needs to be configured so that it knows where to gets its configuration. Edit the file /etc/auto_master and add the last line:

#
# Automounter master map
#

+auto_master # Use directory service