ใช้ Dropbox บน Linux เดิมง่ายมาก หลายคนยังง่าย แตถ้าใช้ filesystem อื่นนอกจาก Ext4 ทะลันกลายยาก โชคดีไม่ได้ out of luck ทั้งหมด
ปัญหาคืออะไร?
นาน Dropbox รองรับ filesystem ไหนก็ได้ แล้วบริษัทประกาศเงียบๆ drop support สิ่งที่เรียก "uncommon" filesystems กรณี Linux คืออะไรก็ตามนอกจาก Ext4
อาจเห็นข้อความ "Dropbox will stop syncing. Move your Dropbox folder to a supported file system." อีก error: "Your Dropbox folder is on a file system that is no longer supported."
ตัวเลือกของคุณคืออะไร?
ยก reasons Dropbox ใดๆ ที่ drop support other filesystems มีตัวเลือก สร้าง Ext4 partition บนฮาร์ดดิสก์แค่สำหรับ Dropbox ทำงาน technically แตต้อง resize partition ถ้า Dropbox folder ใหญ่เกินไป inelegant solution
ย้ายจาก Dropbox เลย มี cloud providers อื่น ใช้ self-hosted alternative เช่น Nextcloud, OwnCloud, Seafile หาคำแนะนำใน article เปรียบเทียบ self-hosted cloud storage options
สุดท้าย ใช้ workaround ให้ Dropbox ทำงานบน non-Ext4 filesystems
ทำให้ Dropbox ทำงานบน Non-Ext4 Systems อีกครั้ง
มีหลายวิธี bypass Dropbox filesystem detection แต one of the easiest คือ tool ชื่อ "dropbox-filesystem-fix"
คำเตือน
บน dropbox-filesystem-fix GitHub page มี strong warning: "This is an experimental fix not supported by Dropbox. It might cause data loss." จดไว้และ backup Dropbox folder บ่อย
ก่อนเริ่ม
ก่อนติดตั้ง tool ต้องติดตั้ง tools build มัน บน Debian, Ubuntu และระบบคล้าย ให้รัน:
sudo apt install build-essential
มี alternatives สำหรับ distros อื่น บน Fedora และ RPM-based distros คำสั่งนี้พอ:
yum install make automake gcc gcc-c++ kernel-devel
บน Arch และระบบคล้าย รัน:
pacman -S base-devel
ติดตั้ง dropbox-filesystem-fix
คำแนะนำด้านล่าง assume Dropbox ติดตั้งแล้ว ถ้ายังติดตั้ง ติดตั้งตอนนี้ได้
Clone GitHub repository และ build dropbox-filesystem-fix project รัน:
git clone https://github.com/dark/dropbox-filesystem-fix.git cd dropbox-filesystem-fix make
build สำเร็จ ย้าย folder ทั้งหมดไป "/opt/" directory ทำให้ script เริ่มโปรแกรม executable รัน:
sudo mv dropbox-filesystem-fix /opt/ sudo chmod +x /opt/dropbox-filesystem-fix/dropbox_start.py
ตอนนี้ stop Dropbox service (สมมติรันอยู่) ด้วย:
dropbox stop
เสร็จแล้ว ลองรัน Dropbox ผ่าน fix ใหม่:
/opt/dropbox-filesystem-fix/dropbox_start.py
ถ้าไม่ได้ warnings และ Dropbox รัน ติดตั้ง fix สำเร็จ
ทำให้ Fix Permanent
ตอน fixed version Dropbox รัน ไป settings uncheck "Start Dropbox on system startup" ตั้งแต่ตอนนี้ start Dropbox จาก script ที่รัน ใช้ dropbox autostart n ถ้าหา settings dialog ไม่เจอ
ถ้า "~/config/.autostart" directory ไม่มี สร้าง:
mkdir -p ~/config/.autostart
สร้างไฟล์ใน directory นั้นชื่อ "dropbox-filesystem-fix.desktop" แก้ไขเพิ่ม:
[Desktop Entry] Type=Application Exec=/opt/dropbox-filesystem-fix/dropbox_start.py Hidden=false X-GNOME-Autostart-enabled=true Name=Dropbox
คำแนะนำข้างต้นสำหรับ Gnome ถ้าใช้ KDE แทนไป System Settings, Startup & Shutdown, Autostart เพิ่ม script ได้
สรุป
ตอนนี้รัน Dropbox บน non-Ext4 operating systems ได้ทั้งหมด Dropbox กังวลไม่ support other filesystems มากกว่า actively preventing พวกมันทำงาน แตอาจไม่ได้เป็นเช่นนี้ตลอด
ถ้ากังวลไฟล์จะ unusable ทัน المستقبل มี Dropbox alternatives เยอะ เรามี list best cloud storage services for your buck สนใจย้ายไป service Linux-friendly มากกว่า