Category:Linux

  • Some problems of installing Ubuntu under VMWare

    Time:2019-12-9

    1. The reason why the terminal is unable to input Chinese (not implemented) original address   2. Under Windows 10, VMware (v15.5) and Ubuntu 14.04 realize the copy file (already practiced) transfer path  

  • Drawing chess board with Linux shell programming

    Time:2019-12-9

    In the past two days, I learned some knowledge of shell programming. When I got a chess title, I thought it meant something, so I wrote it as a blog. Let’s see what the chess board looks like first: After carefully thinking about the distribution rules of the board, there must be many ways to […]

  • Solution to the problem that Yum update is currently holding the yum lock in Linux

    Time:2019-12-9

    Use Yum to install the scheduled task function. The result is as follows: Copy code The code is as follows: # yum -y install vixie-cronLoaded plugins: fastestmirror, refresh-packagekit, securityExisting lock /var/run/yum.pid: another copy is running as pid <font color=”#ff0000″>25960</font>.Another app is currently holding the yum lock; waiting for it to exit… Maybe the system automatic […]

  • CentOS uses all parameters of the previous command

    Time:2019-12-9

    Reducing keyboard input can greatly improve the working efficiency of programmers. The use of shortcut keys is a good example. Programmers often use terminals. So is there a similar “shortcut key” on the terminal that can improve our efficiency? The work of programmers is often contextual. Therefore, this article will show you how to use […]

  • Turn off optimized notes for raspberry pie

    Time:2019-12-8

    1. Turn off HDMI output /opt/vc/bin/tvservice -o 2. Close the module vi /etc/modules #snd-bcm2835 3. Turn off USB current limit Because the current of the USB interface of raspberry pie is limited by the USB current protection chip, a larger current can be achieved by bypassing the USB current protection chip (i.e. not letting the […]

  • Shell script print chess board

    Time:2019-12-8

    In this paper, we share the specific code of shell printing chess board for your reference. The specific content is as follows The code is as follows: #!/bin/bash #set chess cell’s width read -p “Please set the chess cell’s width( two space width as unit ):” width if [[ $width =~ “^[0-9]+$” ]];then echo “wrong […]

  • Linux CentOS web server partition scheme

    Time:2019-12-8

    Partition type actual size resolution of partition Swap partition 2g (1g of memory, generally 2 times of memory)/1G-2G (150 – 250MB minimum)/Boot 32m-100m (boot partition, only about 100m at most)/Opt 100m-1g (add on application)/TMP 40m-1000m (the maximum can be set to about 1g. If you load ISO image files, it can be set to about […]

  • How does CentOS backup policy? The method of CentOS backup policy

    Time:2019-12-8

    Backup points Consideration of backup data Problems causing system damage: Hardware problem: hard disk destroyed Software problems: false deletion, security attack Different host roles and backup tasks Backup considerations What files to back up What backup device to choose Consider backup Frequency of backups Tools for backup What Linux data to back up Files with […]

  • Deployment of Django channels (supervisor + Daphne + nginx)

    Time:2019-12-7

    In the project, we need a chat room, so we need websocket communication and choose to use itchannelsModule, main recordchannelsDeployment configuration and some pitsThe original project was deployed through nginx + uwsgi. I haven’t made any changes here, just proxy the specific request path to Daphne through nginxdjangoFor some configuration changes, please refer to the […]

  • Operation methods of VI and VIM editor in Linux

    Time:2019-12-7

    VI: text editor inside Linux; VIM: enhanced version of VI, with the ability of program editing. There are three common patterns of VI and VIM: (1) normal mode (general mode): This is the mode when VIM is opened. In this mode, you can use various shortcut keys, such as copy and paste, move the cursor, […]

  • Linux CentOS / RedHat 6.5 LVM partition usage details

    Time:2019-12-7

    1, introduction LVM is the abbreviation of logical volume manager. It is a mechanism to manage disk partition in Linux environment. LVM is a logical layer based on hard disk and partition to improve disk partition LVMFlexibility of district management. As mentioned earlier, LVM is a logic layer added between the disk partition and the […]

  • How to install the uninstall command RPM make install under CentOS?

    Time:2019-12-7

    A: RPM package, This kind of software package is just like the EXE installation file of windows. All kinds of files have been compiled and packed. Which file should be put in which folder has been specified. The installation is very convenient. In the graphical interface, you only need to double-click to install it automatically. […]