一半君的总结纸

听话只听一半君

synology tips : ipkg / tmux / …

  • Deleate @eaDir folders
    The @eaDir directories contain extended attributes and thumbnails that take up quite a bit of space, not unlike Windows Thumbs.db files.Here’s how to get rid of them easily from the command line.First, SSH into your Synology NAS box and log in as root, then type this to locate the @eaDir folders:

    find . -name "@eaDir" -type d | more
    

    If you’re happy you’re not going to accidentally delete something important, then make it happen:

    find . -name "@eaDir" -type d -print0 | xargs -0 rm -rf
    
  • 如果不想用synology自带的cloud sync来连baidu网盘,可以用 bypy 需要事先安装python pip requests git, 其中 python 和 git 有官方 spkg
  • 如果想ssh断开之后,命令继续执行怎么办?(比如你想在别处ssh回家里,然后执行个上传至网盘的操作,可能需要很久),此时可以用 tmux ,就算你在公司开始执行的命令,然后关闭了ssh连接,到了咖啡馆依然可以attach回这个tmux session,看到stdout输出
  • 如何安装sudo

    ipkg install sudo
    # 然后,把自己加到 sudoers list里
    visudo
    
  • 把所有文件名中的:替换成_

    ls /path/to/houdini-des* | sed -e "p;s/:/_/" | xargs -n2 mv
    

人肉备份:
Getting rid of the @eaDir folders on Synology NAS DSM
How to Find and Remove @eaDir Directories on Synology NAS
How to keep processes running after ending ssh session?
Optimize Your Synology NAS for Downloading
Installing 3rd party software on your Synology DiskStation DS411j
How to install ipkg on Synology NAS (DS212+)Overview on modifying the Synology Server, bootstrap, ipkg etc

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: