Anduin Xue

let today = new Beginning();

Service engineering Skills and IT capabilities for operating and maintaining online services.


存储、计算、显示分离的游戏体验

存储、计算、显示。这是游戏玩得爽的基本要求。 存储指的是你需要一些存储空间用来保存游戏文件。 计算指的是你需要一些优秀的计算资源,例如:显卡、CPU、内存来计算游戏画面 显示指的是你需要一个优秀的显示器(高刷新率、高分辨率、低延迟)来展示游戏画面 显然,大部分人都会在家里组装一台电脑来做这件事,并且认为这理所当然。 file 为什么你不应该组装一台电脑来打游戏? 当然,不分离的体验是非常不错的。设备之间有最低的延迟,最高的性能,最简单的结构。 但是缺点非常明显: 家里可能不止有一台设备。你可能有一台Nas,有一台游戏电脑,有一个平板电脑,有一个笔记本电脑,还有手机。你希望在冬天的时候能够在床上使用平板电脑继续游戏。你又希望你在玩排位比赛的时候使用舒适的键盘鼠标进行游戏。你还想在手机上看别人玩Dota的画面。没事儿的时候你携带笔记本给别人演示你的游戏。 file 你的设备性能不同 设备性能有 …

Game Storage Disk Gaming NVIDIA Steam

Interface selection when Linux has multiple network interface at the same time

Problem background I recently built multiple subnets for my data center. And I connected two interfaces of a Linux device to two subnets at the same time. file When I run ifconfig, below networks are shown: file Only the Green network has Internet access. The blue network is pure internal network. However, when I try to access the Internet, it may fail with message: destination host unreachable. …

IP Linux Network Routing Interface

Read from joystick output based on C#

Recently I just bought a Thrustmaster TCA airbus throttle. You can buy it here. I want to use this throttle to control the fan speed of the server in my data center. <iframe height="600px" src="https://anduins-site.player.aiur.site/pxl_20221121_015946930_265.mp4" ></iframe> Super easy. Install SharpDX.DirectInput first. dotnet add package SharpDX.DirectInput Run the following code to read from …

Game SharpDX DirectInput Joystick

MySQL allow remote connection (For root and other users)

For all Ensure firewall allows 3306 port: sudo ufw allow 3306 Allow MySQL to bind to all ports: sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf Then set bind-address to 0.0.0.0. bind-address = 0.0.0.0 For root user Log in root locally first: mysql -u root -p Replace the host value. mysql GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'password'; mysql UPDATE mysql.user SET host='%'  …

bash Database Linux Ubuntu Remote Management MySQL

ESXI converts Thick Provisioning Disk back to Thin Provision and reclaims space

Once, because of my mistake, I inflated a 4TB Thin Provisioning disk. So the space it takes up has skyrocketed from 10GB to 4TB. In order to roll back this thing, I had to do these things: First Enable SSH on your host: file Then go to /vmfs/volumes/store-name/vm folder. file Run ls -ashl you may see that original-flat.vmdk is very big. (4TB) (The name original here is your actual virtual machine  …

VMware ESXI VMFS Reclaim thin provisioning thick provisioning

Ubuntu resize an ext4 partition without LVM

This post will tell you how to make the partition extend to full disk after resizing the disk. First, check current usage: sudo df -Th We will resize sdb1. sudo fdisk /dev/sdb n – Create partition p – print partition table g - reset as GPT partition table d – delete a partition q – exit without saving the changes w – write the changes and exit. Run: d This will delete the partiton. Select 1. Run:  …

Linux Ubuntu Disk ext4 fdisk Partition

Aiursoft Nextcloud 事故调查、分析与总结

在2022年10月4日早晨10:00 - 12:00,Aiursoft Nextcloud发生了一次重大事故。我们的服务中断了两个小时,并且损失了一些数据。当天的可用性也严重降级。 incident 我们大约花费了两个小时来恢复这些业务和数据。下面是详细流程。 背景 Aiursoft Nextcloud是由Aiursoft运营的一个Nas存储;基于会员邀请制,受邀请的会员可以获得200GB存储空间,并享受To do、Deck、Talk、Notes、Passwords等功能。 Aiursoft Nextcloud运行在Ubuntu系统中。其系统是一个VMware虚拟机,运行于一台VMware ESXI主机上。 Aiursoft Nextcloud本身由Apache承载。并又加了一层Caddy进行反代。Caddy在另一台虚拟机上。 为了能够向公网暴露服务,Aiursoft Nextcloud还 …

bash Linux Backup Nextcloud Disk Incident

Install your own NFS ESXI storage server

Why Recently I was building a VMware ESXI cluster, aka Vsphere. We all know that Vsphere clusters require separate storage so that ESXI hosts can migrate virtual machines between multiple hosts. There are professional solutions like Dell PowerStore. However, those machines are really really expensive. I guess about 20,000 USD. So how can we get a similar solution as an ESXI storage server with  …

Linux Storage NFS VMware ESXI Vsphere Dell IPMI Debian Server

If a Ubuntu server should run apt upgrade automatically?

Backgrounds Recently, I have a lot of Linux servers created. Those servers are really a lot that I'm tired upgrading those every day. file And I just keep doing the same thing: Login Run sudo apt update Run sudo apt upgrade -y Run reboot Why upgrade those automatically? Save time. Get security updates as soon as possible. Packages are always very clean and new, so less painful to upgrade in one  …

bash Linux Ubuntu Upgrade Crontab Update

Install Cockpit on Ubuntu 22.04

It's simple. Install First: sudo apt install cockpit -y Authentication Ensure you have a user instead of root is in the sudo group. Please follow the instructions from: Best practice for authentication Fix network issue You may see the following error after installation: packagekit cannot refresh cache whilst offline First go to here: cd /etc/netplan/ Create a new profile: sudo touch /etc/netplan/ …

bash Linux Ubuntu Remote Management Cockpit NetworkManager

CaddyV2 tips and examples (How to correctly get user's IP address after a reverse proxy)

Here are some tips when I am using CaddyV2 as a reverse proxy. Directly render HTML somedomain.aiursoft.com { respond / h1Welcome/h1 200 } Reverse proxy on certain address somedomain.aiursoft.com { reverse_proxy /admin http://v2ray:10000 { } } Permenant redirect git.aiursoft.com { redir https://git.aiursoft.cn{uri} permanent } Reversey proxy and add custom header  …

Reverse Proxy Linux Ubuntu Proxy FRP Caddy CaddyV2 IP Address Proxy Protocol

Build a new NFS server with WinServer or Ubuntu and mount it

Windows Server On Windows Server, creating a new NFS server is simple. First install this: file And then click the folder properties. file And enable that. file Ubuntu Run: sudo apt update sudo apt install nfs-kernel-server -y sudo mkdir -p /mnt/nfs_share sudo chown -R nobody:nogroup /mnt/nfs_share/ sudo chmod 777 /mnt/nfs_share/ And edit the configuration: sudo vim /etc/exports Add this: /mnt/  …

Linux Ubuntu File Windows Server Share NFS VMware ESXI Vsphere NAS