Anduin

let today = new Beginning();

All Posts


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

区分你在日常生活中的常用软件类型

互联网软件 功能:在一个简单的功能方面能解决的还不错,没有奇怪的用例,但是并没有复杂的扩展能力。 广告:广告无孔不入。到处想尽办法榨干你的钱包,还会让你尽量不能脱离这个产品。 产品:产品设计非常诱人,上来就会用,功能一般交互友好,响应速度很快。 性能:性能极强,都是投资几千万在全球搭建基础设施。能省1秒是1秒。 界面:界面一看就是精心设计过的。非常诱人,简洁直白。无论什么状况都不会让你看到丑的页面。 价格:看似免费,甚至想尽办法打广告倒贴钱让你来用。实际上是最贵的。 企业软件 功能:在一个复杂的方面只能说算是解决了吧,但是经常有莫名其妙的用例和提示信息,感觉不自洽,又很强大啥玩意儿都有,一般有不错的扩展能力。 广告:没有广告。 产品:一般有专门的产品经理设计,功能强大,但是交互不友好,很多地方会冗余重复。经常匪夷所思的设计。 性能:性能贼垃圾。投资了几百万买的服务器。基本上都卡卡的,经常卡 …


致记者朋友 - 为什么我暂时想推迟所有采访

Hi,各位记者朋友你们好! 最近看起来有不少朋友想约我一起采访或是录些节目。我其实都推脱了。对此表示抱歉,我暂时不愿意接受采访。 这个事情的原因是多方面的。一方面来说,我暂时需要更加专注在我自己的生活一些。另一方面,我只是暂时想保留自己还能匿名的机会。 最近“看苏州”这个栏目对我进行的报道,使用了我的中文姓名而不是Anduin这个名字,其实我也非常苦恼。我想我活跃在各种社区里已经数年,从来都是使用的Anduin这个网名。这让我的生活和社区活动产生了一些纠结。我更在乎的不是生活中的形象,而是线上社区里的价值。我更不愿意让生活和工作糅杂。我希望在生活中保持低调。 我知道或许《程序员做饭指南》是一个不错的素材,但是,这件事带来的报道中,其实也会产生很多争议和舆论发酵。其中最严重的问题就是:我并没有为做菜指南奉献或付出很多,我也无意让它火。它最初真的初衷仅仅是我的笔记而已。 就像论坛里大部分人吐槽 …


Windows 11 挖宝游戏

挖宝游戏 Windows 11看似UI是新的,但是老的东西都没删。。。混着各种新鲜的玩意儿,和上古的老代码,真是个大宝库! 在 Windows 11 里试图挖出来一些还能用的上古功能,真是非常有趣。不信你可以试试挑战一下: 在Windows 11里挖出来经典文件浏览器 在Windows 11里挖出来IE 在Windows 11里挖出来经典主题设置 在Windows 11里挖出来屏幕保护程序 在Windows 11里挖出来经典开始菜单 在Windows 11里挖出来经典任务管理器 在Windows 11里挖出来经典记事本 在Windows 11里挖出来经典照片查看器 在Windows 11里挖出来Windows 7的窗口边框 其中某几项我已经搞定了。在这里分享一下。 (注意,如果某一个“挖宝”需要通过互联网下载二进制内容,则不认为是在“挖宝”,而是“安装”。这里不会收录安装的宝贝,而只收录能 …


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