Showing posts with label Google. Show all posts
Showing posts with label Google. Show all posts

Tutorial on mounting OneDrive, Google Drive and other network disks (Linux) with Rclone

 

Preface

Rclone is a command-line tool that supports synchronization, uploading, and downloading data between different object storage and network disks . And through some settings, very practical functions such as offline downloading and server backup can be realized. There are many ways to use Rclone, and mounting is one of them.

Friendly reminder: Mounting this operation is not necessary. As an experimental feature, it has many limitations and problems. After mounting, it cannot be used as a real disk. When performing file operations, the local disk will be used for caching, which takes up local disk space. Improper use may also cause problems such as disk fullness and VPS freezing. Search "Rclone" on Google, and the most related keyword is "mount", which to a certain extent is misleading to many new friends. To perform uploading, downloading, synchronization and other operations stably, it is recommended to use Rclone's native command function. For usage methods, please refer to " Rclone Advanced Usage Tutorial - Common Command Parameters ".The article originates fromSinsTu NI-https://www.sinstu.com/archives/44.html

Install and configure Rclone

The official one-click installation script is provided:The article originates fromSinsTu NI-https://www.sinstu.com/archives/44.html

< span class = "token function" > curl < /span > https ://rclone.org/install.sh <span class="token operator">|</span> <span class="token function">sudo< /span> <span class="token function">bash</span>The article originates fromSinsTu NI-https://www.sinstu.com/archives/44.html

After installation, enter  rclone config the command to enter the interactive configuration option and follow the prompts step by step. If you are confused, you can read the "Rclone Installation and Configuration Tutorial " to understand the detailed configuration process.The article originates fromSinsTu NI-https://www.sinstu.com/archives/44.html

Install fuse

Mounting requires fuse to be installed. Choose the installation command according to your system:The article originates fromSinsTu NI-https://www.sinstu.com/archives/44.html

< span class = "token comment" ># Debian/Ubantu</span>The article originates fromSinsTu NI-https://www.sinstu.com/archives/44.html

< span class = "token function" > apt-get < /span > update < span class = "token operator" > && < /span > < span class = "token function" > apt-get < /span > < span class = "token function" > install < /span > -y fuseThe article originates fromSinsTu NI-https://www.sinstu.com/archives/44.html

< span class = "token comment" ># CentOS</span>The article originates fromSinsTu NI-https://www.sinstu.com/archives/44.html

yum < span class = "token function" > install < /span > -y fuseThe article originates fromSinsTu NI-https://www.sinstu.com/archives/44.html

Mount network disk

Mounting the network disk is divided into manual mounting and automatic mounting at startup. You can choose according to your own needs.The article originates fromSinsTu NI-https://www.sinstu.com/archives/44.html

Manual mounting

< span class = "token comment" >#Mount</span>

rclone < span class = "token function" > mount < /span > < span class = "token operator" ><< /span > Network disk name: Network disk path < span class = "token operator" >>< /span > < span class = "token operator" ><< /span > Local path < span class = "token operator" >>< /span > < span class = "token punctuation" >[< /span > Parameters < span class = " token punctuation" >]< /span > --daemon

< span class = "token comment" >#Cancel mounting</span>

fusermount -qzu < span class = "token operator" ><< /span > Local path < span class = "token operator" >>< /span >

网盘名称It is filled in during configuration  nameand 网盘路径is a folder in the network disk. Leave blank to represent the entire network disk and 本地路径a local folder on the VPS. 参数You can check the official documentation to make a selection based on your needs. Do not use parentheses when typing, this is just to make the distinction clearer. --daemon It is a process daemon parameter and can be run in the background.

Usage example

Enter the command to mount:

rclone < span class = "token function" > mount < /span > Onedrive:/ /Onedrive --copy-links --allow-other --allow-non-empty --umask 000 --daemon

Then enter  df -h the command to check the mounting status.

root@P3TERX:~ < span class = "token comment" ># df -h</span>

Filesystem Size Used Avail Use% Mounted on

udev 286M < span class = "token number" > 0 < /span > 286M < span class = "token number" > 0 < /span > % /dev

tmpfs 60M < span class = "token number" > 7 < /span > .8 M 52M < span class = "token number" > 14 < /span > % /run

/dev/sda1 99G 25G 71G < span class = "token number" > 26 < /span > % /

tmpfs 297M 24K 297M < span class = "token number" > 1 < /span > % /dev/shm

tmpfs < span class = "token number" > 5 < /span > .0 M < span class = "token number" > 0 < /span > < span class = "token number" > 5 < /span > .0 M < span class = "token number" > 0 < /span > % /run/lock

tmpfs 297M < span class = "token number" > 0 < /span > 297M < span class = "token number" > 0 < /span > % /sys/fs/cgroup

Onedrive: < span class = "token number" > 5 < /span > .0 T 216G < span class = "token number" > 4 ​​< /span > .8 T < span class = "token number" > 5 < /span > % /Onedrive < span class = "token comment" >#This is the mounted network disk</span>

Unmount:

fusermount -qzu /Onedrive

Automatically mount on boot

  • Download and edit the autostart script

< span class = "token function" > wget < /span > -N git.io / rcloned < span class = "token operator" > && < /span > < span class = "token function" > nano < /span > rcloned

  • Modification content:

NAME= "Onedrive" #The name filled in during Rclone configuration

REMOTE= '' #Remote folder, a folder mounted in the network disk, leave it blank for the entire network disk

LOCAL= '/Onedrive' #Mount address, VPS local mounting directory

  • Set up auto-start at power on

< span class = "token function" > mv < /span > rcloned /etc/init. d /rcloned

< span class = "token function" > chmod < /span > +x /etc/init. d /rcloned

update-rc. d -f rcloned defaults < span class = "token comment" ># Debian/Ubuntu</span>

< span class = "token function" > chkconfig < /span > rcloned on < span class = "token comment" ># CentOS</span>

< span class = "token function" > bash < /span > /etc/init. d /rcloned start

Just see it  [信息] rclone 启动成功 ! .

manage

Start mounting bash /etc/init.d/rcloned start

Stop mounting bash /etc/init.d/rcloned stop

Remount bash /etc/init.d/rcloned restart

View log tail -f /$HOME/.rclone/rcloned.log

Uninstall self-starting mount

bash /etc/init. d /rcloned stop

update-rc. d -f rcloned remove # Debian/Ubuntu

chkconfig rcloned off # CentOS

rm -f /etc/init. d /rcloned

References

rclone official documentation

Use rclone to mount OneDrive network disk on Debian/Ubuntu

Solution to Chrome Google browser translation failure (1)

 On October 28, 2022, a new wave of overseas available IPs will be added. See the detailed article below for how to use it!

I don't know when it will fail, if the PING fails, try another IP!

This article continues to update the solution, you can bookmark this article for future use. If you don't update it, it may be really useless!

If you don't want to bother, you can switch to other browsers: EDGE, Speed ​​360. Or install the Tencent Translate extension to also support full-text translation.

142. 250 . 4 . 90 translate. googleapis . com
172.253 . 114 . 90 translate. googleapis . com
172.217 . 203 . 90 translate. googleapis . com
172.253 . 112 . 90 translate. googleapis . com
142.250 . 9 . 90 translate. googleapis . com
172.253 . 116 . 90 translate. googleapis . com
142.250 . 97 . 90 translate. googleapis . com
142.250 . 30 . 90 translate. googleapis . com
142.250 . 111 . 90 translate. googleapis . com
172.217 . 215 . 90 translate. googleapis . com
142.250 . 11 . 90 translate. googleapis . com
142.251 . 9 . 90 translate. googleapis . com
108.177 . 122 . 90 translate. googleapis . com
142.250 . 96 . 90 translate. googleapis . com
142.250 . 100 . 90 translate. googleapis . com
142.250 . 110 . 90 translate. googleapis . com
172.217 . 214 . 90 translate. googleapis . com
172.217 . 222 . 90 translate. googleapis . com
142.250 . 31 . 90 translate. googleapis . com
142.250 . 126 . 90 translate. googleapis . com
142.250 . 10 . 90 translate. googleapis . com
172.217 . 195 . 90 translate. googleapis . com
172.253 . 115 . 90 translate. googleapis . com
142.251 . 5 . 90 translate. googleapis . com
142.250 . 136 . 90 translate. googleapis . com
142.250 . 12 . 90 translate. googleapis . com
142.250 . 101 . 90 translate. googleapis . com
172.217.192.90 translate.googleapis.com
142.250.0.90 translate.googleapis.com
142.250.107.90 translate.googleapis.com
172.217.204.90 translate.googleapis.com
142.250.28.90 translate.googleapis.com
142.250.125.90 translate.googleapis.com
172.253.124.90 translate.googleapis.com
142.250.8.90 translate.googleapis.com
142.250.128.90 translate.googleapis.com
142.250.27.90 translate.googleapis.com
142.250.27.90 translate.googleapis.com
142.250.105.90 translate.googleapis.com
172.253.126.90 translate.googleapis.com
172.253 . 123 . 90 translate. googleapis . com
172.253 . 122 . 90 translate. googleapis . com
172.253 . 62 . 90 translate. googleapis . com
142.250 . 98 . 90 translate. googleapis . com

On October 25, 2022, a new Hosts IP available overseas will be added. I don’t know how long it will last!

142. 250 . 4 . 90 translate. googleapis . com

Update on October 22, 2022: The method of modifying Hosts to use domestic IP is no longer valid! Request partial resource 404!

According to the latest statistics, the market share of Google Chrome (Chrome) is 66.58%, and 1 out of every 2 people use the Chrome browser.

In the circle of code farmers, the proportion of Chrome usage will be higher!

May I ask the program ape children's shoes, which function do you often use in the Chrome browser?

Most children's shoes should have used Chrome's built-in translation function! !

Update on October 12, 2022 More available HOSTS

The three most commonly used
180.163 . 151 . 34 translate. googleapis . com
203.208 . 40 . 66 translate. googleapis . com
220.181 . 174 . 226 translate. googleapis . com
Shanghai/Telecom:
180.163 . 150 . 34
180.163 . 151 . 162
180.163 . 150 . 162
180.163 . 150 . 33
Shanghai/Mobile:
120.253 . 253 . 226
120.253 . 253 . 98
120.253 . 250 . 226
120.253 . 255 . 162
120.253 . 253 . 34
120.253 . 255 . 98
120.253 . 253 . 162
120.253 . 255 . 34
Shanghai/Google Data Center/Telecom:
203.208 . 40 . 98
203.208 . 41 . 98
203.208 . 41 . 66
203.208 . 41 . 34
203.208 . 41 . 97
203.208 . 40 . 97
203.208 . 40 . 65
203.208 . 40 . 34
Beijing/Telecom:
220.181 . 174 . 34
220.181 . 174 . 98
220.181 . 174 . 162
220.181 . 174 . 33
203.208 . 50 . 162
Beijing/Google Data Center/Telecom:
203.208 . 43 . 66
203.208 . 39 . 194
203.208 . 50 . 66
203.208 . 43 . 98
203.208 . 50 . 34
203.208 . 39 . 226
Beijing/China Unicom:
114.250 . 64 . 34
114.250 . 70 . 34
114.250 . 63 . 34
114.250 . 66 . 34
114.250 . 65 . 34
Guangzhou/Telecom:
113.108 . 239 . 226
58.63 . 233 . 98
113.108 . 239 . 162
Guangzhou/Mobile:
120.241 . 147 . 162
120.232 . 181 . 162
Guangzhou/Unicom:
58.254 . 137 . 226

How to find these IPs?

Open "Command Prompt", enter the following command and press Enter:

nslookup google.cn

The following content is displayed, among which 203.208.41.34 is the most suitable IP for you, just add the Hosts!

Server: Unknown
Address: 192.168.2.1
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
Non-authoritative response:
Name: google.cn
Address: 203.208.41.34

————————————————————————

Alas, decent domestic forum communities are almost gone, and the content we often search for is the content of foreign websites.

I am not very confident about my English level, and it is also for us to understand the meaning of the content more accurately. Chrome's one-click translation is really very important!

Of course, Google's translation ability should be considered very good (in my opinion, it does not represent the public opinion)~

Picture [2] - Solution to Chrome Google browser translation failure (1) - Rich Miscellaneous

Just before the National Day, many netizens found that Google Translate could not be accessed suddenly!

Access domain name: translate.google.cn will also be directed to translate.google.com.hk, but google.com.hk cannot be accessed in China for some reason.

Later related reports Google’s official reply:

Google has stopped using Google Translate in mainland China “ due to low usage ,” a Google spokesperson told TechCrunch via email .

The vest here will not express its opinion on this matter! Anyway, the official reply makes sense! Children's shoes who haven't read this article may not know that Google also has a translation page.

For ordinary users, the biggest impact should be the built-in translation of Google Chrome. Seriously affect our daily work!

Here are a few solutions to share!

Remind that the method introduced here only solves the problem that the built-in translation of Google Chrome cannot be used, and the web version of Google Translate is indeed no longer available!

Method 1: Use the Edge browser

The Edge browser has a built-in Microsoft translation function and is not affected by this matter. The translation effect is similar to Google Translate.

Method 2: Modify local HOSTS

You can use either of the following 2 options!

203.208.40.66 translate.googleapis.com
180.163.151.162 translate.googleapis.com
Picture [3] - Solution to Chrome Google browser translation failure (1) - Rich Miscellaneous

For Windows users, share a script here, which can be modified more conveniently!

(The script is placed on Github), or create a new txt file yourself, then save it as edit_hosts_windows.bat file and run it.

 (The above doesn’t work? You can also use this to save)

Picture [4] - Solution to Chrome Google browser translation failure (1) - Rich Miscellaneous

Method 3: With high-tech software, translate.googleapis.com can be added to the proxy list (not much to say~)