Ubuntu 管理心得

搜尋此網誌

2026年2月1日 星期日

Boshiamy in macos

  1. cp my.cin ~/Library/Input\ Methods/
  2. 打開「系統偏好設定」的「鍵盤」,在「輸入方式」頁籤點選左下角的「+」
  3. 在「簡體中文」找到「嘸蝦米」,將它加入

 

2026年1月8日 星期四

Google Drive under rclone

Setting up
Google Drive with
rclone config involves creating a "remote" connection through an interactive terminal wizard. 
 
Step 1: Start the Configuration
Open your terminal and run the following command:
bash
rclone config
Step 2: Create a New Remote
  1. Type n for New remote and press Enter.
  2. Name: Enter a name for your drive (e.g., gdrive) and press Enter.
  3. Storage Type: You will see a long list of providers. Find Google Drive (often listed as drive) and enter its corresponding number or type drive. 

Step 3: API Credentials (Optional but Recommended) 
  • Client ID & Client Secret: You will be prompted for a client_id and client_secret.
    • Recommended: Create your own via the Google API Console to avoid rate limits and improve performance.
    • Quick Start: If you are in a hurry, leave these blank and press Enter to use rclone's default shared credentials. 

Step 4: Configure Access Scope 
Select the level of access rclone should have. 
  1. Type 1 for Full access to all files (recommended) and press Enter.
  2. Root Folder ID: Leave this blank and press Enter to use your main Drive directory.
  3. Service Account File: Leave this blank and press Enter. 

Step 5: Authentication
  1. Edit advanced config? Type n and press Enter.
  2. Use auto config?
    • Type y if you are on a computer with a web browser. A browser window will open; log in to your Google account and click Allow.
    • Type n if you are on a headless server (SSH). Rclone will provide a link to open on another computer and a code to paste back into the terminal. 

Step 6: Finalize
  1. Configure as a Shared Drive? Type n for a personal drive.
  2. Verify: Rclone will show a summary. Type y to confirm the settings.
  3. Type q to Quit the config wizard. 

Step 7: Test the Connection
Verify it works by listing the files in your Drive: 
bash
rclone ls gdrive:
(Do not miss : )
 
 
Using Rclone (Recommended for Stability)
  1. Install & Configure: Install rclone and run rclone config to set up your Google Drive as a "remote" (e.g., named gdrive).
  2. Mount to a Local Folder: Create a folder and mount the drive to it:
    bash
    mkdir ~/google_drive
    rclone mount gdrive: ~/google_drive &
     

One more thing: Inside krusader, it is easy to access google_drive just like an ordinary folder. That means, I can sync, copy, delete ... files in google_drive. 

However, sync indside krusader is slow.