其它
使用Chrome/Edge模拟跨域请求
How to encrypt data in linux(Debian/Ubuntu)
压力测试
ApacheBench
Mac安装OpenVPN客户端
ffmpeg拼接视频与格式转换
软路由
去广告hosts
whisper自动为视频生成字幕
99. 故障处理
Nginx无法绑定0.0.0.0:80
记一次Laravel用户跟踪插件导致的性能问题
Zoom下载链接
laravel-u-editor在新版chrome内核浏览器的问题
浏览器ServiceWorker问题
本文档使用 MrDoc 发布
-
+
首页
How to encrypt data in linux(Debian/Ubuntu)
# How to encrypt data in linux(Debian/Ubuntu) ## Using ecryptfs-utils 1. Change location to your home directory ```shell cd ~ ``` 2. Install ecryptfs-utils and load the kernel module ``` sudo apt-get install -y ecryptfs-utils sudo modprobe ecryptfs ``` 3. Setup your private directory, you need to type password for 3 times,The first one is your system login password, the second and the third one is your directory encrypt password. ``` ecryptfs-setup-private ``` 4. Mount the encrypted directory. You'll need your directory encrypt passphrase here.You can also click on "Access Your Private Data" in /home/${username}/Private in GUI ``` ecryptfs-mount-private ``` 5. Check if it's mounted. If step 4 works, it will shows a message like: `/home/username/.Private 477G 216G 238G 48% /home/username/Private` ``` df -h | grep Private ``` 6. Move or Copy your data into the mounted directory. After you logout. The directory will auto umount and ecrypt your data. If you want to access your data you'll need to do step 4 again. --- ## Using ZIP If you want to encrypt your directory and decrypt it anywhere, please follow these steps: 1. Create an encrypt zip file. ``` zip -rP ${password} ${zip file} ${source file} ``` - Example: ``` zip -rP IamAPassword /path/to/zipfile.zip /path/to/sourcedir ``` 2. Unzip the zip file ``` unzip ${zip file} ``` - Example: ``` unzip zipfile.zip ```
zhangky
2021年5月28日 18:15
分享文档
收藏文档
上一篇
下一篇
微信扫一扫
复制链接
手机扫一扫进行分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码