![如何创建 Ramdisk 并将其与 Lightread 一起使用?](https://linux22.com/image/826145/%E5%A6%82%E4%BD%95%E5%88%9B%E5%BB%BA%20Ramdisk%20%E5%B9%B6%E5%B0%86%E5%85%B6%E4%B8%8E%20Lightread%20%E4%B8%80%E8%B5%B7%E4%BD%BF%E7%94%A8%EF%BC%9F.png)
我按照以下说明为 Chrome 创建了一个 Ramdisk:
1) Most of our commands require superuser privileges, so we might as well just switch to root.
sudo su -
2) Edit your startup script:
nano /etc/rc.local
Right above “exit 0″ we’ll add the commands that need to run each time at startup:
mkdir /tmp/ram
mount -t tmpfs -o size=512M,mode=750 tmpfs /tmp/ram/
chown -R yourUserName /tmp/ram/ (replace “yourUserName” with your user name)
Save the changes and exit (ctrl-o, ctrl-x).
3) Edit your boot configuration:
nano /etc/default/grub
Change the GRUB_CMDLINE_LINUX line to read:
GRUB_CMDLINE_LINUX=”ramdisk=512000″
and again save and exit.
4) Reboot and verify that /tmp/ram now exists with “drwxr-x—” rights with you as the owner.
5) Relocate your existing browser (no need to do this as root) cache and link to it:
For Chromium:
rm -rf ~/.cache/chromium
ln -s /tmp/ram ~/.cache/chromium
For Google Chrome:
rm -rf ~/.cache/google-chrome/
ln -s /tmp/ram ~/.cache/google-chrome
For Mozilla Firefox:
The cache for Firefox can be found inside your Firefox profile (which includes a big random string in it). As long as you only have one Firefox profile you can do this:
cd ~/.mozilla/firefox/*default
rm -rf Cache
ln -s /tmp/ram Cache
从这里完美的 Ubuntu:使用 RAM 磁盘优化你的浏览器
我想将 Lightread 与 Ramdisk 一起使用,我该怎么做才能实现?
答案1
您可以安装 Profile Sync Daemon。这里有一个教程:点击这里