Cerot + RouterOS builds home VPN

The NAS at my home is actually not very utilizing,I have important data on cloud disk。However, it is still much more convenient to have a media center at home... For example, when watching a movie。Can be downloaded in the background,Then the TV and other devices can read it directly。

I used an old rmbp to make a server,Place next to the router,Direct connection to the network cable,This download can maximize bandwidth utilization。不过众所周知 macOS 对 smb 服务的支持很烂最近趁着有朋友的小主机就拿它打造了一台 home lab用的 Prox[……]

Click link to continue reading...

Hestia CP with Docker app

I wrote an article before saying that I Migrate Plesk to Hestia After a period of use,Except for missing some features,Overall it is very stable and practical.。Recently I've been tinkering with some Docker applications,Just found out Hestia not like Please That way you can control and manage docker directly from the UI,of course,due to Hestia The lightweight design architecture itself,We can still easily make it implement Docker App reverse generation,Of course,It really can't be managed Docker service,[……]

Click link to continue reading...

Kotlin/Android detect text encoding

Recently doing Android version of drop-box input method,I had a problem importing the code table。Because the code table of the drop-box input method supports two encoding formats: utf8 and gb18030.,Even my own built-in code table uses a mixture of these two formats.。In Swift or Python,If you use the wrong encoding to decode text,You will receive an error。Use this method,I can easily detect both encodings - first decode with utf8,If an error is reported, try again gb18030. easy and convenient,enough for me。[……]

Click link to continue reading...

If your ISP assign u IPv6 only a prefix but no address

I recently switched Internet provider,The new provider offered me a /48 address prefix,This is different from my previous operators,They mostly use DHCP,Allocate one to you directly IPv6 the address of。Although the meaning of v6's existence is that the address is "infinite",But assigning one can save a lot of configuration trouble.。

This new setup caught me off guard。

the good news is,There are official tutorials。the bad news is,The official tutorial does not work。

This is a bit of a headache,After configuration, no network connection,Even if I manually add a static route to the router to the exit,[……]

Click link to continue reading...

imapsync mailbox migration from Plesk to Hestia

usually,Maybe not many people will encounter this situation,That means you want to change your email address,But you need to bring the emails in your current mailbox with you。But once it happens,You will find,Something that is almost the same age as the Internet,There is no mature export and import function。

What's more troublesome than this is,If you are a mail server administrator,You find out tragically,It doesn’t work even if you have server permissions.。The content in the mailbox is stored using special methods,It is not a simple database,Requires the use of corresponding services for access,Moving files directly is likely to cause data corruption,Have to[……]

Click link to continue reading...

Migrate Plesk to Hestia

My custom installation module

Using AWS Lightsail + Please My friends may have heard of it,Plesk decides to cancel cloud platform cooperation for free 3 Domain name authorized。My two domain names,One of the domain names also has two sub-domain websites.,You can just use this authorization,You need to pay now too。

Go to the official website and take a look,The cheapest license is 10 domain name,$169.5 dollars a year! All right,Even with the half-price promotion,It’s only half price for the first year,I actually only use two domain names,It’s really not cost-effective。So I thought it would be better to replace the panel.。[……]

Click link to continue reading...