分类目录归档:应用

mac下让git不跟踪.DS_Store文件

# 在您的项目目录下面从仓库删除所有.DS_Store
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
# 配置全局git 忽略文件配置
echo .DS_Store >> ~/.gitignore_global
# 配置git 使用全局忽略配置文件
git config --global core.excludesfile ~/.gitignore_global

ubuntu上设置服务自动启动

sudo update-rc.d minidlna defaults

This should add the service to the automatic startup system. But if you get:

System start/stop links for /etc/init.d/minidlna already exist.
Do the command

sudo update-rc.d minidlna enable

P.S.: For further detail look at the man page for update-rc.d by typing the command man update-rc.d