Tag:ubuntu

  • Tornado-02, write the first tornado program

    Time:2022-11-27

    1. Introduction to Tornado tornado is a powerful, extensible web server written in Python. It is robust enough to handle severe web traffic yet lightweight enough to create and write to be used in a wide variety of applications and tools. The installation of tornado is also very simple, just use pip to install it […]

  • How to use shell scripts to perform routine initialization, system optimization and security hardening of the Ubuntu operating system (applicable to MEP 2.0)

    Time:2022-11-27

    Ubuntu 20.04 system initialization security hardening Description: Applicable to the internal Ubuntu series server operating system initialization and system security hardening scripts. The content includes network initialization settings, software update source replacement and kernel version upgrades, time and time zone initialization settings, system security hardening (level 3 operating system host Check items) Security operation and […]

  • How to disable motd welcome message in Ubuntu

    Time:2022-11-26

    Ubuntu uses update-motd, which is a dynamic motd generation tool. From the man page: UNIX/Linux system administrators typically convey important information to console and remote users by maintaining text in the file /etc/motd, which is displayed by the pam_motd(8) module at interactive shell login. Traditionally, this file is static text, usually installed by the distribution […]

  • Centos8 installs and uses Ansible (1)

    Time:2022-11-26

    Ansible is an open source configuration management tool that we use to automate tasks and deploy applications. Using Ansible, you can automate routine tasks such as updating systems, installing software, and configuring services. This article will introduce the basics of Ansible, why you should choose Ansible, and how to install it.Before learning the basic information, […]

  • Input and output of Tornado-03, Tornado

    Time:2022-11-26

    Input and output of Tornado 1. Input function Create a new folder lesson2 under the tornado folderCreate a new start1.py under lesson2 and write the following code import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web from tornado.options import define, options define(‘port’, default=9000, help=’run port’, type=int) class TestIndexHandler(tornado.web.RequestHandler): def get(self): abc = self.get_argument(‘abc’, ‘no’) self.write(‘hello ‘ […]

  • Switch audio output device on Linux

    Time:2022-11-26

    Solution: After connecting the speaker to the Linux system computer, the local speaker is still making sound when playing music. method one Sound Switcher Indicator, a graphics program for switching sound input/output under Ubuntu. It can switch between headphone/speaker/HDMI sound output. sudo apt-add-repository ppa:yktooo/ppa sudo apt-get update sudo apt-get install indicator-sound-switcher # start after installation […]

  • Centos8 installs and uses Ansible (2)

    Time:2022-11-25

    Ansible is an open source configuration management tool that we use to automate tasks and deploy applications. Using Ansible, you can automate routine tasks such as updating systems, installing software, and configuring services. Configuring the /etc/hosts file makes it troublesome to use the ip address. You can add the host name corresponding to the node […]

  • Tornado-04, Tornado output and response headers

    Time:2022-11-25

    Tornado output and response headers 1. Output in the previous article03. Input and output of TornadoHave a preliminary understanding of writeIn this article, let’s take a deeper look at writeFirst, we create a new lesson3 folder under the last tornado folderIn fact, write does not directly return the data to the front end, but writes […]

  • [antlr] antlr installation tutorial, Windows10+Ubuntu

    Time:2022-11-25

    Install Antlr4 on Ubuntu 1. Download the jar packageexistdownload link, select the file named antlr-4.*.1-complete.jar to download Move to the specified directory, this tutorial is /root/ 2. Modify .bashrcIn the ~ directory, view the hidden .bashrc file ps -a Open the .bashrc file vim .bashrc add after export CLASSPATH=”.:/root/antlr-4.10.1-complete.jar:$CLASSPATH” alias antlr4=’java -jar /root/antlr-4.10.1-complete.jar’ alias grun=’java […]

  • Access content on cloud services through public IP

    Time:2022-11-24

    First install git 1. open git 2.ssh [email protected]Public network IP Enter the login password If the above login does not go up, use 1.ssh [email protected] public network IP -i key.pem file path press enter 2. Enter the login passwordIf neither can log in, then reinstall the system and re-back up the password key If […]

  • Tornado-05, tornado template

    Time:2022-11-24

    Tornado template 1. Basic understanding of templates Preparation Tornado itself provides a lightweight, fast and flexible templating language in the tornado.template module. A template is a web page with a fixed format: the format is fixed, but the content changes. A template is an HTML file that allows Python code snippets to be embedded Create […]

  • Father of the GNU project: Apple turns the Mac into a “prison” | Ubuntu is not free GNU/Linux distributions are not recommended

    Time:2022-11-24

    On April 13th, Richard Stallman, the father of the GNU project and the founder of the Free Software Foundation (FSF), talked about the current situation of open source software in the industry in his keynote speech “The Status Quo of the Free Software Movement”, and focused on “attacking” Apple and Ubuntu. Stallman said: Apple is […]