Tag Archives: other

Mac boot boot the most detailed explanation, so that the automatic start of the program can not escape

##Login items
the program started by the current user of Mac OSX after successful login. The configuration file of the startup items of this category is stored in ~ / library / preferences/ com.apple.loginitems . plist, so only for the current user, you can set it in the following ways:

1. Set under “users and groups” in system preferences, which can be deleted, added, opened and closed;

2. You can modify ~ / library / preferences directly/ com.apple.loginitems . plist configuration file, in which each startup item corresponds to a dictionary, with three values of alias, icon and name, in which name is nsstring type and others are data type. We don’t know how to generate it serially, so we can delete it at present;

3. Add and delete through lssharedfilelistinsertitemurl and lssharedfilelistitemremove method, and related introduction (the registration program starts up)

##Launchdemon
this type of startup items are all started by launchd. Launchd is the key process used to initialize the system environment in Mac OS. It is the first process started in OS environment after the kernel is loaded successfully. In this way, it is very easy to configure the self booting item. Only one plist file is needed. The directory where the plist file exists is

~/Library/LaunchAgents

/Library/LaunchAgents

/System/Library/LaunchAgents

The above three directories are the recommended paths for the system. They are the processes started after login

~/Library/LaunchDaemons

/Library/LaunchDaemons

/System/Library/LaunchDaemons

If it is placed in the above three directories, it will be started as the daemons and the processes started immediately after the system starts

Different directory processes have different permissions and priorities. You can set them in the following ways:

1. Through launchctl load xxx.plist Or launchctl unload xxx.plist Command to add and delete the specified startup items;

2. Directly create, modify and delete plist files under related directories.

The main fields in plist and their meanings

Label is used as a unique identifier in launchd, similar to that every program has an identifier.

User name specifies the user to run the startup item. This item is applicable only when launchd is running as root.

Groupname specifies the group to run the startup item. This item applies only when launchd is running as root.

The key value of keepalive is used to control whether the executable file runs continuously or starts after meeting specific conditions. The default value is false, that is to say, it will not start until the specific conditions are met. When the setting value is true, the executable file will be opened unconditionally and kept in the whole system running cycle.

Runatload identifies that launchd starts the executable file specified by the path immediately after loading the service. The default value is false.

The value program is used to specify the path of the executable file of the process.

Programarguments if program is not specified, it must be specified, including executable files and running parameters.

##3. Startupitems
startupitems, as the name suggests, are programs that run during the system startup. They can be programs that terminate immediately after running (for example, start to empty the wastebasket), or they can be background processes that continue in the system running cycle.

Startupitems are generally stored in the following two paths:

1)/System/Library/StartupItems

2)/Library/StartupItems

Most of the system related startupitems are placed in the path of / system / library / startupitems, and they will be executed prior to the path of / library / startupitems, because the startupitems in the path of the former provide system level basic services, such as crash reporting, core graphics services, system The latter path does not exist by default and needs to be created manually.

Here we take iceberg control tower in / library / startupitems directory as an example.

In short, on Mac OS X, a startupitems includes the following two aspects:

1) Executable program;

2) Plist file containing dependent process relationships( StartupParameters.plist )。

StartupParameters.plist Is a property list that contains the necessary conditions for running an executable program, the main fields in plist, and its meaning

The plist needs to obtain root permission, which includes several aspects:

1)Description;

A simple description of the service is only a description, not the actual process name.

2)Provides;

Specify the services provided by startupitems. As shown in the plist file provides, the background process started by startupitems is named iceberg control tower.

Provides can specify multiple services, which are reflected in the figure as item0, Item1 And so on. There is only item0.

3)Uses;

Specifies the services that need to be opened before startupitems is loaded. The Mac OS X system first attempts to load the service specified in uses, and then loads startupitems. In other words, even if the service specified in uses is not loaded successfully, the system will still load startupitems.

4)OrderPreference;

Specifies the chronological order in which startupitems are executed. The importance of this order comes after uses, which is the order after the specified uses are executed. Possible values include: first, early, none (default), late, last.

5)Messages。

The Executable File

Note: 1) the name of the executable file is the same as that of the folder where it is located, which is the default rule of the system.

2) Root permission is required to operate the executable.

3) The executable is a shell script.

Open the executable file with the same name in the icebergcontroltower file directory to see the specific content of the script

The general executable file includes the following aspects:

1)./etc/ rc.common

A script library provided by apple, which contains the interface of importing parameters for executable files. Here, the library mainly calls runservice.

2)StartService(), StopService(), RestartService()

When the parameters received by the executable file are start, stop or restart, the corresponding functions are executed.

Parameter meaning:

Start: start the service during startup;

Stop: stop the service during shutdown;

Restart: restart the service under specific conditions.

3)RunService “$1”

Executes the service specified by the first parameter passed to the script.

“$1” represents the first parameter passed to the script. For example, if the passed in parameter is start, startservice() is executed.

(some of the contents are quoted in http://blog.csdn.net/abby_ sheen/article/details/7817198

ansoft:Com Engine non-responsive since

Ansoft :Com Engine Non-responsive since 17:23:04, October 18, 2015.If Persisting for Long, Functional Testing kills the Com Engine Process and Restart Analysis.
When this situation occurs in Ansoft simulation, the progress bar is 0 and unchanged. Many methods have been tried on the Internet, but the software crashed and was closed and then opened, which can be simulated normally.

RemoveError: ‘setuptools’ is a dependency of conda and cannot be removed from conda’s operatin

RemoveError: ‘setuptools’ is a dependency of conda and cannot be removed from
conda’s operating environment.

PIP uninstall install setuptools
PIP uninstall install setuptools
c> update conda
conda u>e –force conda

PIP un>all install setuptools
conda install -c anaconda setuptools
conda install -c anaconda setuptools
conda install -c anaconda setuptools
conda install -c anaconda setuptools

The solution to the flash of. Bat file

Recently, when I was doing a project, I found that the.bat file flashed by after I clicked it. I believe that many friends have also encountered the same problem
The following methods:
First, hold down the Shift key in the folder where your.bat file is located and click the right mouse button. Select “Open PowerShell Window here” as shown in the picture

You’ll get a blue command line window and you’ll type.\ the name of your file at the end of the command line and make sure you add a suffix, like mine
.\make_proto.bat

The above methods are effective, of course, there are other methods, friends can choose.
 
 

Solution to the flashback of visual studio output window

 
1. The project – & gt; Property – & gt; Configure properties ->; The linker – & gt; System – & gt; Subsystem – & gt; SUBSYSTEM:CONSOLE adds “/SUBSYSTEM:CONSOLE”
2. Press Ctrl + F5 directly to run the program
3.return 0; Before adding a system(“pause”);
4. In return 0; I’m going to do a getchar ();

Ubuntu 16.04 Chinese installation tutorial (Graphic), Ubuntu 16.04

Ubuntu 16.04 Chinese version installation tutorial (text and text), Ubuntu 16.04
Ubuntu16.041 installation, enter the live CD
1) desktop setup disk download address: http://releases.ubuntu.com/16.04/, you can use hard disk boot, can also be carved into cd-rom start
enter after looking for blue links click download, such as ubuntu 16.04 – the desktop – amd64. Iso, i386 version can be downloaded 32 bit CPU, including; Desktop is the desktop version, Server is the server version, Torrent is the torrent download;

USTC source http://mirrors.ustc.edu.cn/ubuntu-releases/16.04/ ali cloud open source image station http://mirrors.aliyun.com/ubuntu-releases/16.04/
open source image of lanzhou university station http://mirror.lzu.edu.cn/ubuntu-releases/16.04/
Beijing institute of technology http://mirror.bit.edu.cn/ubuntu-releases/16.04/ http://mirrors.zju.edu.cn/ubuntu-releases/16.04/

zhejiang university
2) using CD/U disk/hard disk boot after a moment, the system automatically run, wait patiently for a system boot to the desktop;

)

3)

3)

3)

3)

3)

3)


4) For hard disk installation, click the circle button in the upper left corner, and then input the letter TER in the text box next to it. Then click the terminal icon below.
If Chinese comes out, click the “middle” on the input bar to change to “ying”, and drag it to one side.

5) Enter the command sudo umount-l /isodevice and press the enter key. If there is no prompt, it is successful. Close the terminal.

6) Click the network icon in the upper right corner, and click to remove the check box in front of “Enable network” to disconnect the network;

1) Double click the “Install Ubuntu16.04 LTS” icon on the desktop and a “Welcome” panel appears. Check that “Chinese (Simplified)” is selected in the left column. If not, select it on the left and then click the “Continue” button in the lower right corner.

2) The second step is to check the preparation, require sufficient disk space, do not connect to the network, generally do not check the update and third-party software, directly click the “continue” button;

3) The next step is to ask which partition to install on, select “Other Options” at the bottom, and click “Continue” button;

If you want to create and convert partitions, you can refer to Lesson 7, 13, 15, 16, and 19 above. Here is an Ext4 partition installed on previous 12.10.

5) Click to select the partition that you plan to install. It can be determined according to the partition type and size, and then click “Change…” below. Button;

6) In the dialog box, set the format for partition Ext4, check “Format”, click on the right of “mount point”, select “/”, and click “OK”
Note that formatting will delete all files on this partition, please backup important data in advance;  

7) Click “OK” to prompt continue, go back to the partition panel, check that the partition is edited, if there is /home partition, according to the original Settings, generally do not check “Forformat”, just clean up the configuration file in advance

Below are the options for installing the GRUB bootloader, no changes are required for the UEFI installation, see: UEFI Win7/8/Ubuntu Hard Drive Install Ubuntu, for traditional MBR installation, you can choose to install on/on the partition, and then boot Ubuntu with Windows, see: Easybcd Install Ubuntu on Win7/8 Hard Drive

8) After checking, click “Install Now”. If the prompt does not have swap space, click “Continue”. This partition is used for sleeping.
9) Then go out to ask about the region and click “Continue”. The time difference may arise when modifying the region, so the installation has already begun.

10) Next is the keyboard layout, generally “Chinese”, directly click “Forward” to continue;

11) Next is to set their own user name (lowercase letters) and password, from the top to the bottom of the input, then click “continue”;

12) Then continue the installation process, you can have a look at the system introduction;

) Wait patiently for completion, then a dialog box will appear, click “Restart Now” to complete the installation, press the power button to call out the shutdown dialog box;

14) If it is a CD installation, wait for the prompt to remove the CD, and then press Enter to restart the computer, the installation is complete;

) After reboot, stop at a login interface, click on your user name, enter the password and press Enter to enter the system;

2) After entering the desktop, an “Incomplete Language Support” prompt dialog box will appear. If it is not closed, drag it to the side for later use. (If it is closed, then click the gear “System Settings – Language Support” on the left.)

3) First connect to the Internet, find a network icon next to the keyboard in the upper right corner of the screen, aim to click the left button, and select “Edit Connection”;

4) For ADSL dial-up broadband connection, click “Add” on the right side of the dialog box, then click “Ethernet” in the middle of the dialog box, select DSL, and then click New;


5) In the dialog box, enter the ADSL broadband user name in the user name, the password below, enter the broadband password,
and then click the first “general” label, check the top “automatic connection when available”, click the “keep” button in the lower right corner;

After closing the dialog box, wait for a moment to indicate successful networking.

You can also reboot your computer, or use sudo pppoeconf from the command line.

br>

6) If you want to>ect to the LAN, in the dialog box that comes out, select “Wired Connection1” inside, and click the “Edit” button on the right;

7) in the dialog box, select the IPV4 Settings TAB, in the way below choose “manual”, “add” button at the bottom of the order,
in the text box, in turn, enter the IP address, subnet mask, gateway, and then press enter to determine, DNS server address in the DNS below input,
check and point “save” button in the lower-right corner of the window, in the certification, input your password;

Go back to the original dialog box click “close”, wait a while you can surf the Internet, you can also restart the computer;

br> 8>fter connecting to the network, click “System Settings” button in the left quick start bar, and click “Software and Update” icon in the window that comes out;

9) Under the software source panel, click the drop-down list of “Servers in China” and select “Other Sites”;

10) In the list of servers, choose 163 or CN99, and then click the “Select Server” button in the lower right corner to return;

11) After closing the window, come out to authenticate, enter your login password and click “Authorization”. If it comes out to update the prompt, click “Reload” and wait for completion.

More set the source of the related introduction, please refer to: http://teliute.org/linux/Ubsetup/lesson9/lesson9.html

4, update system 1) back to the beginning of “incomplete language support” dialog box, point “to perform this action now”, if can’t find the point of the upper right corner of the gear icon in the system Settings – language support;

2) Click the “Update” button if it shows “No language information available” panel;

3) Then comes out a dialog box for cache update, wait patiently for completion, click “details” to check the progress;

4) Then, in the dialog box “Language support is not fully installed”, click “Install” to install the language package;

5) After the language pack installation is completed, click the Close button to close the dialog box. The default input method for 16.04 installation is FCITX. Click the upper right corner of the gear and select “Log out” or restart the system to use it.

Original: https://blog.csdn.net/weixin_40539892/article/details/79494922

Problems encountered in configuring OpenGL development environment in vs2015

Configuration process address: https://blog.csdn.net/qq_19003345/article/details/76098781
I don’t need to go into details of the process, you can see the original blog address below, I used the last way in the blog
Problems encountered during configuration:
Error in “file glad.h cannot be found” and “file khrplatform.h cannot be found” :
#include <; #include <; glad/glad.h> Instead of # include "Includes/glad/glad. H" #include < KHR/khrplatform.h> Instead of # include ".. /KHR/khrplatform.h"  

Fix vs2017 unable to install

Fixed VS2017 not being able to install
(Jin Qing’s column, November, 2018)
Downloaded from the website vs_community__1600125377. 1541561546. Exe, but when running the installation can’t appear the interface for product selection.
Looking at the logs in the Temp directory, no errors were found.
A search reveals a large number of similar errors:
VS : How to fix stuck Visual Studio Community installation problem
https://www.howtosolutions.net/2015/08/solving-installation-is-stuck-problem-in-visual-studio-community-edition/Resolving Installation Issues with Visual Studio 2017
http://rion.io/2017/02/17/resolving-installation-issues-with-visual-studio-2017/Unable to start vs_installer.exe to install VS2017 Community
https://social.msdn.microsoft.com/Forums/vstudio/en-US/fc8f5a04-8687-48dd-987e-1cfac67566a1/unable-to-start-vsinstallerexe-to-install-vs2017-community?Forum = vssetupVS 2017 Installer quits before starting the
https://developercommunity.visualstudio.com/content/problem/8993/vs-2017-installer-quits-before-starting.htmlVS2017 is not installed into the solution – the whole interface problems, Perseverance – CSDN blog
https://blog.csdn.net/qq951127336/article/details/71036868VS2017 automatically quit when installation _yanggy_ sina blog
http://blog.sina.com.cn/s/blog_702b606a0102y6n3.html
But it didn’t work.
C: Program Files (x86)\Microsoft Visual Studio\Installer: Program Files (x86)\Microsoft Visual Studio\Installer
but download again after cleaning, is still the same.
Vs_installer. exe. The pop-up screen says there is a compatibility error and you can choose to fix it.
fixed, vs_installer.exe will appear in the product selection screen.
Then run vs_community__1600125377. 1541561546. Exe, can appear the interface for product selection.
The problem may be that the Installer is not installed correctly, you may have selected the wrong version, and it will still be the same if you delete it and download it again. Fortunately, you can fix it manually.
VS2017 is now being installed.

Wireshark can’t find a solution to capture interface

After installing Wireshark, in the “Capture “-> “Options” does not have a single capture interface.
Question why
Win10 compatibility issues caused. is required to uninstall Winpcap and reinstall Win10pcap
The solution
(a) to download and install win10Pcap, download links: http://www.win10pcap.org/download/
note: prior to install Wireshark off, otherwise an error during the installation.


n>

Windows blue screen code query (bug check code)

In the process of development and testing, the computer blue screen is constantly encountered. For different blue screen codes and reasons refer to the official documentation. Although you can’t be 100% sure of the problem, it helps to analyze the problem. Combined with WinDBg is basically very easy to locate.
In the column


For details, please refer to:
https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/bug-check-code-reference2

Unable to find VBScript script engine or error 2738, could not access VBScript runtime

From: http://blog.sina.com.cn/s/blog_76af7f0f0101eoi2.html
The reason is to install some anti-virus software (such as Mcfee, Kaba, Rising, etc.), and change the DLL library of.vBS script opened by default in the registry. After uninstall anti-virus software, the registry that information has not been deleted, so lead to open. VBS script, DLL library, I’ll call the antivirus software program to appear this problem, the solution: manual methods, I integrated online methods to modify the following two registry keys (please backup before modification or setting up the system restore)

my system is Windows7 64 bit,

“start” -> “Run” – & gt; “Regedit”, find “HKEY_CLASSES_ROOT\CLSID\{b54F3741-5B07-11CF-a4B0-00AA004a55e8” \InprocServer32 “,

changes its “default” value to “C:\Windows\system32\vbscript.dll” (no quotes required, this DLL library is the program that opens. VBS scripts by default in Windows “).

before modifying, right click on the item “InprocServer32” and select “permission” to add “full control” permission to your current user, and then modify to solve this problem.  
The
value resolves the “VBScript script engine cannot be found” error on boot

when I found this method, I did not notice whether it was 64bit or 32bit, so I deleted the above values as follows.

then check HKEY_CLASSES_ROOT\CLSID\Wow6432Node\CLSID\{b54f3741-5b07-11cf-a4b0-00aa004a55e8}\InprocServer32 has the correct value C:\Windows\SysWOW64\vbscript.dll

, Error 2738, could not access vbscript runtime for custom action

needs to be resolved by modifying the following key value

HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\Wow6432Node\CLSID\{B54F3741-5B07-11cf-A4B0-00AA004A55E8}\InprocServer32.

change the value to “C:\Windows\SysWOW64\vbscript.dll” also need to set the permissions before modification

when you modify the above two items, you can see that the previous default DLL library is the residue of the McAfee that was uninstalled earlier.

there is also a method on the web that can be solved by deleting the following key values, but in my case, I did not find these two keys

Windows 64bit system delete

HKEY_Current_User\SOFTWARE\Classes\Wow6432Node\CLSID\{B54F3741-5B07-11CF-A4B0-00AA004A55E8

then enter cmd.exe enter CD %windir%\syswow64

and then enter regsvr32 vbscript.dll

Windows 32bit delete

HKEY_Current_User\SOFTWARE\Classes\CLSID\{B54F3741-5B07-11CF-A4B0-00AA004A55E8

then enter cmd.exe enter CD %windir%\system32

and then enter regsvr32 vbscript.dll

there is also an automatic fix if it is determined to be McAfee by downloading the fix:

1. Search for “McAffe Consumer Product Removal Tool” or “McPr.exe.”

2. Run MCPR. Exe.

3. Search MicrosoftFixit50842 or “MicrosoftFixit 50842.mSI “. Download the link http://go.microsoft.com/?linkid=9804433

4. Run MicrosoftFixit50842. Msi.

5. Restart and set.

above automatic method I did not use, for those who need to save the test.

reference links to http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/error-2738-could-not-access-vbscript-run-time-for/1a4499ae-8bc1-4534-9c6f-4d399ac70d9a

http://coldsummerwei.iteye.com/blog/940012