Configuring IPSec with StrongSwan

Using StrongSwan to study IPSec is a good practice to understand IPSec. However, there are so many pits in the process of using Strong Swan, and there are so many incomplete online tutorials that I can hardly explain every step thoroughly, which leads me to scratch my ears and cheeks in the process of using Strong Swan. Programmers naturally w ...

Posted by diagnostix on Tue, 16 Jul 2019 16:10:14 -0700

Learn the shell from someone else's scripting (2)

Examples: echo "[${_LogFlag}]:$(date "+%Y%m%d.%H%M%S"):${Use}@${Host}:${2}"|tee -a "${LogFile}"; 1.tee command The tee command is used to redirect data to files. On the other hand, it can provide a copy of redirected data as stdin for subsequent commands. Simply put, redirect data to a given file and screen. There is a caching mechani ...

Posted by redmonkey on Mon, 24 Jun 2019 14:24:21 -0700

04.10 Disk Key Knowledge

Chapter 1 On-line Server Operational Specification Chapter 2 Mass Creation of User Cases 1. The first method sed The first method is: sed [root@Never-downtime ~]# echo stu{01..10}|xargs -n1|sed 's#.*#useradd &;echo 123456|passwd --stdin &#g' useradd stu01;echo 123456|passwd --stdin stu01 useradd stu02;echo 123456|passwd --stdin ...

Posted by zang8027 on Fri, 14 Jun 2019 21:26:34 -0700

Disk partitioning, file system creation, mounting under Linux

brief introduction When you learn Linux, you need to learn partitions in Linux. Learning Linux partitioning, there are many conceptual things to learn, such as partition type, file system type, etc. Wait a minute. For me, I don't like this kind of conceptual thing very much. It's not at all friendly for me to come up with a large paragraph of ...

Posted by jcrocker on Fri, 14 Jun 2019 17:02:43 -0700

Insufficient disk space for data partition in Linux, how to mount the disk.

First, let's simulate the environment. The following image uses VMware to add a 300G (actual 200M~~manual funny--) hard disk device to me. Add them step by step.You need to restart your virtual machine after adding it to take effect. OK, then we have the environment.I have installed a 300G (200M) hard disk for our Server. Now let's mount it u ...

Posted by thallium6 on Sun, 12 May 2019 00:44:27 -0700

macOS Manual Cleaning of Spam Files

There are three places where macOS is most likely to generate spam files: Xcode, iTunes and VMWare virtual machines. 1. Garbage generated by Xcode On the command line, cd to the ~/Library directory, enter the command: sudo du -d 1 -h Seeing that Developer occupies 59 G, cd to Developer directory continues to locate large files with the du com ...

Posted by saunders1989 on Sat, 11 May 2019 10:24:43 -0700

Ubununtu Expansion of Disk Space under VMware

Recently, due to too much software installed under the virtual machine, the problem of insufficient disk space pops up from time to time. Looked up a lot of information, there is no good solution. Friends send a link, or foreigners have conscience. The translation is put here and operated according to my actual needs, which achieves the de ...

Posted by CowGuy on Sun, 07 Apr 2019 21:57:31 -0700

One linux command per day: xargs of find command

When processing matched files with the - exec option of the find command, the find command passes all matched files together to exec for execution. But some systems limit the length of commands that can be passed to exec, so that overflow errors occur after the find command runs for a few minutes. Error messages are usually "parameter col ...

Posted by d~l on Tue, 26 Mar 2019 06:36:29 -0700

Extending the root directory partition of ubuntu virtual machine under VMware

Links to the original text: http://t.cn/RzCP9E2 Translation source links: http://imcczy.com/how-to-expand-the-root-filesystem-in-vmware.html Reproduction Notes: Below this article is the operation of requiring partition. The operation of partition is different from that of normal system partition. It is necessary to specify the starting ...

Posted by kwilameiya on Mon, 25 Mar 2019 09:18:28 -0700

Three Solutions to Failed to start LSB: Bring up/down networking

<—> 1. The following error occurred while executing the service network restart Restarting network (via systemctl): Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details. 2. Execute "system CTL status network. service" to output similar information as follows: [root@localho ...

Posted by bsteimel on Wed, 13 Feb 2019 21:54:19 -0800