VPS
· ☕ 0 min read

tencent VPS
· ☕ 1 min read · ✍️ CheeseMocha
(hongkong) 1 core 1 G memory 25G disk 30Mb badwith 1T / month 轻量应用服务器(境外地域) 惊喜折扣,购买时长越长越优惠。单个用户同一配置限购2台。 100%CPU性能,轻松驾驭中小

mac os big sur anaconda problem
· ☕ 1 min read · ✍️ CheeseMocha
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Traceback (most recent call last): File "/anaconda2/bin/conda", line 13, in <module> sys.exit(main()) File "/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 149, in main from ..exceptions import conda_exception_handler File "/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 18, in <module> from ._vendor.auxlib.entity import EntityEncoder File "/anaconda2/lib/python2.7/site-packages/conda/_vendor/auxlib/entity.py", line 253, in <module> from .collection import AttrDict, frozendict, make_immutable File "/anaconda2/lib/python2.7/site-packages/conda/_vendor/auxlib/collection.py", line 10, in <module> from .

A pure html framework with hugo
· ☕ 1 min read · ✍️ CheeseMocha
download hugo link https://gohugo.io/ https://github.com/gohugoio/hugo https://github.com/gohugoio/hugo/releases/tag/v0.81.0 windows download link hugo_0.81.0_Windows-64bit.zip https://github.com/gohugoio/hugo/releases/download/v0.81.0/hugo_0.81.0_Windows-64bit.zip download and unzip, change the environment path to this folder. hugo themes link https://themes.gohugo.io/ chose one theme, and make a folder themes under the new site and copy theme into it, there are sample site content in the theme. you can copy it out and remember change the name of theme same as the folder in themes. hugo new site testsite.

secure your vps
· ☕ 1 min read · ✍️ CheeseMocha
create a new account, allow sudo permission useradd testuser passwd testuser vi /etc/sudoers 1 2 3 ## Allow root to run any commands anywhere root ALL=(ALL) ALL testuser ALL=(ALL) ALL 1 2 ## Same thing without a password testuser ALL=(ALL) NOPASSWD: ALL chage logon port vi /etc/ssh/sshd_config firewall-cmd –permanent –zone=public –add-port=8822/tcp firewall-cmd –reload iptables -A INPUT -p tcp –dport 8822 -j ACCEPT service sshd restart disable root login vi /etc/ssh/sshd_config

Why need vps
· ☕ 1 min read · ✍️ CheeseMocha
why do we need a vps As a programmer, learning VPS is same as learning a development language. It’s important to understand linux, network, system os fully.