Tag Archives: delete

Delete files with specified suffix in specified folder under Linux

This method can be used to delete a file with a suffix in a folder. Of course, the format of the file name can be defined by yourself, not necessarily by specifying a suffix, but by specifying a prefix, etc.
From: drizzle and glimmer

Method 1

Find Directory – name “*. ABC” | xargs RM
command is a bit dangerous, you can first execute the first half to see if it is the file you want to delete, and then execute the whole

method 2:
find. – name ‘*. Exe’ – type F – print – exec RM – RF {} \;
(1) “.” means to search recursively from the current directory
(2) “- name ‘*. Exe'” to search by name, all the folders or files ending with. Exe should be found
(3) “- type F” the type of search is file
(4) “- print” the directory name of the output search file
(5) The most important thing is – exec. The – exec option is followed by a command to be executed, which means that the command will be executed for the found file or directory.
The exec option is followed by the command or script to be executed, followed by a pair of {}, a space and a \, and finally a semicolon

Solution of VS2008 unable to open GL / glaux. H header file

2011-04-15 wcdj
 
I don’t know why there is no OpenGL header file in SDK after VS2008. Here is a summary for this problem.
 
In Lesson 6 of learning Nehe’s texture mapping, I initially needed to use the header file containing gl/glaux. H, but found that I didn’t have this header file on my system. There are two header paths in the compiler that reference OpenGL:
C:/Program Files/Microsoft SDKs/Windows/v6.0 A/include/gl/gl h (the default)
C:/Program Files/Microsoft Visual Studio 9.0/VC/include/gl/glut. H (the new gl manually folder)

Googled the solution.

thod 1: Find the most used solution, but I do not have VS2003 or VS2005 installed on my system, so I cannot copy it.
I have been porting old openGL program to VS2008. I have solved the problem by copying the “include/gl/glaux.h” and “lib/glaux.lib” from the VS2005 Platform SDK located on “C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK” To the PlatformSDK of VS2008 located on “C:/Program Files/Microsoft SDKS /Windows/ V6.0a “


Based on the reply to https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1065518& SiteID=1, it looks like glaux. Lib is deprecated. Instead link to kernel32.lib, user32.lib, gdi32.lib and advapi32.lib


The easiest way to sort this out is to:
) Install Glut3.6 or newer as directed.
2>pen Visual Studio 2008 and create a new project
3) Cho>C ++ -Empty solution
4) Import Al> the files from your previous OpenGL project
5) delete all headers i.e.
#include < gl/glu.h>
#include < gl/gluax.h>
and any other GL headers
6) then replace with #include < gl/glut.h>
7) recompile.

this worked for all of my 2003 & 2005 Solutions.

thod 4: Download Missing Files.
1: download the source CSDN download
OpenGL installation package download required documents:

http://d.download.csdn.net/down/2560229/ssagnn23 include:
GL. H GLAUX. H GLU. H glut.
H GLAUX. LIB GLU32. LIB glut32. LIB glut. LIB OPENGL32. LIB
GLAUX. DLL GLU32. DLL glut32. DLL glut. DLL OPENGL32. DLL

VS2008 without GL. H, H, glu.h, GLAUX. Lib, glu32.lib, opengl32.lib.

1) Copy GLUX. DLL, GLUT32.DLL, GLU32.DLL and GLU32.DLL to C:/WINDOWS/system32, which should already have OpenGL32.DLL and GLU32.DLL.
. (2) the GL H, GLAUX. J H, glu. H, glut. H a copy to the C:/Program Files/Microsoft Visual Studio 9.0/VC/include/GL
. (3) the GLAUX LIB and Glu32. LIB, glut32. LIB, Opengl32. LIB, C:/Program Files/Microsoft Visual Studio 9.0/VC/lib

br>>
nehe SRC – cn – nehe OpenGL tutorials Chinese version and the code download

http://code.google.com/p/nehe-src-cn/downloads/list nehe OpenGL tutorial Chinese version and the code download

http://www.yakergong.com/nehe/ provides each Lesson # sample code and the file you need.

4 according to the method, after downloading the file and configure, recompile, without the previous mistakes, documents found, but the following mistakes.
error C2664: “auxdibimageLoadw” : Cannot convert parameter 1 from “char *” to “LPCWSTR”
is is because I am building a Unicode character set based project, so I want to use wide characters. It is also possible not to use Unicode character sets in the property page ->; Configure properties ->; You can modify it in general. Select not to use the Unicode character set here; that is, select Unset. And then recompile it. OK!

br>>

reference:
missing glaux. H in v6.0 a SDK?

http://social.msdn.microsoft.com/Forums/en/windowssdk/thread/b66e5f7a-91f6-4dbe-b388-0c131008b08f project under VS2003 under VS2008 compilation, however, Can’t find the gl/glaux. H

http://topic.csdn.net/u/20070930/15/6a900f21-8e41-4325-862f-f6df3a425f36.html VS 2008 OpenGL configuration

http://lujun5918.blog.163.com/blog/static/287227712011013114410553/ Load images generated texture opengl program
http://topic.csdn.net/u/20070823/19/4497cb18-be2a-464f-ad20-b12191a61b26.html
 
 
 
 

Typical error log for IPSec ACL mismatch

IPSec ACL is what we usually call VPN traffic of interest. In real life, problems caused by this ACL configuration error are very common. The typical error is “QM FSM error”, which can be checked by running “Debug Crypto isakmp” on PIX/ASA.

May 15 09:17:11 [IKEv1]: Group = X.X.X.X, IP = X.X.X.X,
QM FSM error (P2 struct & 0x41f7f80, mess id 0x4d3d6016)!

May 15 09:17:11 [IKEv1]: Group = X.X.X.X, IP = X.X.X.X, construct_ipsec_delete(): No SPI to identify Phase 2 SA!

May 15 09:17:11 [IKEv1]: Group = X.X.X.X, IP = X.X.X.X, Removing peer from correlator table failed, no match!

Cisco’s website explains the error log:

QM FSM Error

The IPsec L2L VPN tunnel does not come up on The PIX Firewall or ASA, and The QM FSM error message proves ambiguous. One possible reason is The proxy identities, such as interesting traffic, Access Control List (ACL) or crypto ACL, do not match on both the ends. Check the configuration on both the devices, and make sure that the crypto ACLs match.

This article explains the whole process of IKE and IPsec in detail:
http://jackiechen.blog.51cto.com/196075/158222

This article from “facing the sea, spring flowers” blog, declined to reprint!

Use sc command under CMD, report openservice failed 1060 error

Use sc command under CMD to delete the tomcat service and report openservice failed 1060 error
Reason: The status of the Tomcat service in the service is disabled. If the status is changed to automatic, sc DELETE Tomcat can be used
Note: Although the service name is Apache Tomcat, you do not need to add Apache when removing the Tomcat service
Conclusion:
There are two ways to delete Windows services:
Option 1: start — run — cmd.exe with the Windows command
, then type sc to see it. The method is simple:
sc delete “Service name” (if there is a space in the Service name, you need to put quotes around it)
as above: sc delete Service

open the registry editor and find the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services generally the service will display a key with the same name here, just delete the key directly.

Macfee can not be upgraded, the prompt returns an error

Macfee can not be upgraded, the error is returned, uninstall and reinstall, the upgrade prompt becomes “Initialization of the general update program subsystem failed, make sure the McAfee Franework service is running. “. Going into the Service Console to manually start McAfee’s Common Frame service, the service cannot be started.

Official error message:

Corporate KnowledgeBase
ERROR: McAfee Common Framework returns error ffff95b @ 2 (issue: FrameworkManifest.xml corrupt)

Enterprise Knowledge Base ID: KB54520
Published: August 8, 2008

environment
McAfee Common Management Agent 3.60
McAfee VirusScan Enterprise 8.5i
McAfee VirusScan Enterprise 8.0i
McAfee VirusScan Enterprise 8.0i
The following error occurs after starting AutoUpdate:
McAfee Common Framework returns error ffff95b @ 2.(FrameworkManifest.xml corrupt).
Public Updater Subsystem Initialization Failure

Confirm that McAfee Framework services are running
Problem 2
Subsequent errors when trying to start the McAfee Framework service:
Unable to start McAfee Framework service on local computer

<p The system could not find the specified file.
Question No. 3

The following update method will cause an automatic error:
Right-click the McShield icon in the system tray and select Update Now
Right click on McCafe’s automation console and click on Start.

Create a new scheduled task to edit an existing property Automated tasks

Cause FrameworkManifest.xml has become corrupted.
Solution 1
McAfee Agent 4.0

McAfee Agent 4.0 design changes will prevent corruption of the FrameworkManifest.xml file.
Retrieved from www.mcafee.com网站下载McAfee代理, see KB54808. </ p>

Solution 2

General Management Agent

Solution 1 – Get frameworkmanife.xml from another computer:
Find another Virus Scanning Enterprise (VSE) computer where the update job is error-free. Copy FrameworkManifest.xml from the following path:

For VSE 8.5i (running on Windows Vista)
x:/Program Data/McAfee/Common Framework

x:/Documents and Settings/All Users/Application Data/McAfee/Generic Framework</font bb1 For VSE 8.5i (runs on Windows XP and earlier)
x:/documents and settings/all users/application data/McAfee/generic framework</font

Paste the file into a portable media or network share file that can be accessed by two computers.
Click Start, Run, type Service. , and click OK.
Right-click the McAfee Framework Service and select Stop.
Copy FrameworkManifest.xml to the public framework directory.
Right-click McAfee Framework Service and select Start.
Update the product. </ font> </ p>

Solution 2 – Delete FrameworkManifest.xml and reinstall the Common Management Agent (CMA)
It is necessary to remove FrameworkManifest.xml, as it may not be removed or replaced when uninstalling/reinstalling. </ font> </ p>

Step 1 – Allow to modify VSE files and settings (only VirusScan Enterprise 8.5i and above) </p

Click on Start, Programs, McAfee, VirusScan Console.
Right-click on Access Protection and select Properties.
Select Common Criteria Protection.
Select “Prevent modification of McAfee files and settings” and disable this option.
Click OK.

Step 2 – Delete FrameworkManifest.xml and reinstall CMA:
Remove FrameworkManifest.xml from the following path:

For VSE 8.5i (running on Windows Vista)
x:/Program Data/McAfee/Common Framework

x:/Documents and Settings/All Users/Application Data/McAfee/General Framework font bb1 For VSE 8.5i (runs on Windows XP and earlier)
x:/documents and settings/all users/application data/McAfee/generic frameworkfont

Font Restart your computer.
Reinstall the Common Management Agent (CMA)/ePO agent.
Note: The CMA can be downloaded from the McAfee download site. See KB54808.
Previous Document ID
5432392
Please take a moment to fill out this form to help us serve you better.

The original introductory page for the official font workaround is
https://kc.mcafee.com/corporate/index?page=content& id = KB54520

Translated with www.DeepL.com/Translator (free version)