Aynakeya's Blog

Kill My Emotion

Issue

Some people may find that paradox games such as Heart of Iron will crash on windows 10.

According to the steam page, paradox games often require directX 9.0c as the running time.

However, since windows 10 doesn't support directX anymore. And windows 10 pre-install with directX 11. The games can't run properly.


Solution

  1. go to https://blog.csdn.net/VBcom/article/details/9140197 and download the DirectX repair

  2. run the application and restart your computer.

When I am writing a backup program for my minecraft server using python.

I find that when I want to use press backspace or arrow key, the input will not work properly.

Instead, it shows strange character like.

strange character

the solution is very simple

add import readline at the begining of the code will automatically fix the problem

转载iptable 原理

原文集: iptables

iptables详解(1):iptables概念

防火墙相关概念

此处先描述一些相关概念。

从逻辑上讲。防火墙可以大体分为主机防火墙和网络防火墙。

主机防火墙:针对于单个主机进行防护。

网络防火墙:往往处于网络入口或边缘,针对于网络入口进行防护,服务于防火墙背后的本地局域网。

网络防火墙和主机防火墙并不冲突,可以理解为,网络防火墙主外(集体), 主机防火墙主内(个人)。

从物理上讲,防火墙可以分为硬件防火墙和软件防火墙。

硬件防火墙:在硬件级别实现部分防火墙功能,另一部分功能基于软件实现,性能高,成本高。

软件防火墙:应用软件处理逻辑运行于通用硬件平台之上的防火墙,性能低,成本低。

那么在此处,我们就来聊聊Linux的iptables

Read more »

Adding ports

  1. make sure you have ssh service installed properly.
  2. sudo nano /etc/ssh/sshd_config to edit the config file
  3. add new port by adding new line of "Port 2222" (in this case, 2222 is your new ssh port)
    29917F88-7D25-417A-B5C0-17D497D0C221.png
  4. restart ssh service by using "sudo systemctl restart sshd.service"
Read more »
0%