NFS Server & Client Setup on CentOS 6.4

Install NFS on the server [code]sudo su yum install nfs-utils nfs-utils-lib chkconfig nfs on service rpcbind start service nfs start[/code] Edit /etc/exports on the server [code]/directory/to/share,sync,no_root_squash,no_subtree_check) /directory/to/share,sync,no_root_squash,no_subtree_check) /directory/to/share,sync,no_root_squash,no_subtree_check) /another/shared/dir,sync,no_root_squash,no_subtree_check) /another/shared/dir,sync,no_root_squash,no_subtree_check) /another/shared/dir,sync,no_root_squash,no_subtree_check)[/code] Export the shares from bash [code]exportfs -a[/code] Install NFS on the client(s) [code]sudo su yum install nfs-utils nfs-utils-libContinue reading “NFS Server & Client Setup on CentOS 6.4”

Automatic Featured Images for YouTube Posts

A few people have asked how I get the WordPress featured image for my YouTube posts. It’s actually quite simple – YouTube provides a thumbnail for each video you publish (in the form of{video_id}/0.jpg) that is free for the taking. Here is a little script that detects a YouTube embed and automatically downloads, imports,Continue reading “Automatic Featured Images for YouTube Posts”