西维蜀黍

【Ubuntu】连接SMB

for Test

$ sudo apt install smbclient
$ smbclient -L //myServerIpAdress
  ...


【Ubuntu】升级Python3至指定版本

Check the current python version

Run below command to test the current version installed of python.

$ python3 --version
python 3.6.8

Install python3.7

Install python by typing:

$ sudo apt update -y
$ sudo apt install python3.7
  ...


【Ubuntu】从控制台使用默认软件打开文件

Modify your ~/.bashrc

alias open=xdg-open
  ...


【Network】MTU(Maximum Transmission Unit)最佳设置

MTU (Maximum Transmission Unit)

In computer networking, the maximum transmission unit (MTU) is the size of the largest protocol data unit (PDU) that can be communicated in a single network layer transaction. The MTU relates to, but is not identical to the maximum frame size that can be transported on the data link layer, e.g. Ethernet frame.

Larger MTU is associated with reduced overhead. Smaller MTU values can reduce network delay. In many cases, MTU is dependent on underlying network capabilities and must be adjusted manually or automatically so as to not exceed these capabilities. MTU parameters may appear in association with a communications interface or standard. Some systems may decide MTU at connect time.

  ...


【Python】pip 使用

Install pip

Install pip for Python 3

Ubuntu

Ubuntu 18.04 ships with Python 3, as the default Python installation. Complete the following steps to install pip (pip3) for Python 3:

Start by updating the package list using the following command:

$ sudo apt update

Use the following command to install pip for Python 3:

$ sudo apt install python3-pip

The command above will also install all the dependencies required for building Python modules.

Once the installation is complete, verify the installation by checking the pip version:

$ pip3 --version

The version number may vary, but it will look something like this:

$ pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
  ...