A quick command line to search string in file.
findstr /c:”exact string” *.xml
As I am working on a project which required me to extract a script from an image file which was backup using dd tool.
It is possible to mount the image file on a linux server.
1) you need to scan the image file and see partition
[root@c10 sax]# kpartx -v IPC-2Sep2015.img loop0p1 : 0 409600 /dev/loop0 2048 loop0p2 : 0 1024000 /dev/loop0 411648 loop0p3 : 0 123621376 /dev/loop0 1435648
2) add the partitionto the system
[root@c10 sax]# kpartx -a -v IPC-2Sep2015.img add map loop0p1 (253:3): 0 409600 linear /dev/loop0 2048 add map loop0p2 (253:4): 0 1024000 linear /dev/loop0 411648 add map loop0p3 (253:5): 0 123621376 linear /dev/loop0 1435648
I had to install a software (Adobe Reader) requested by my client in Windows 2012 for them to use. Adobe Reader installation is a smooth and quick one as it always works after installation. However this time, it is slightly different. I had error launching the program due to a sandbox protection system in Adobe.
Follow this steps to disable it on startup.
REMEMBER THAT EDITING REGISTRY CAN BE DANGEROUS IF YOU DO NOT KNOW WHAT YOU ARE DOING!
Go to registry and locate this key:
Continue reading ‘Adobe Reader Issue in Windows 2012’ »
As I was trying to convert using VMware convertor from Critix to VMWare guest OS which is using CentOS 6, I bump into a difficult problem which took me at least 24 hours trying to resolve it.
The system fails to boot up and when grub is modified to show the output text of the console, it always hang after “Probing EDD (edd=off to disable)”
This include trying to following task
1) rebuild initramfs
2) downgrade lvm2 version (this fails as one of the rpm depends on latest lvm2 to work)
3) reinstall grub
4) performing a V2V using Acronis
5) removing xe-guest tools
This solutions works for me. I have to remove the following line from the GRUB boot loader for it to work.
The above line is meant for Xen Console thus VMWare does not have such feature
I do really hope this helps someone out there as I have spend alot of time troubleshooting it.
Trying to install ESET ANTIVIRUS on CentOS 6 and bump into a slight issues.
error: Failed dependencies: /lib/ld-linux.so.2 is needed by esets-4.0-10.x86_64 /usr/lib/gconv/UTF-16.so is needed by esets-4.0-10.x86_64
I will just need to install the necessary dependencies
yum install ed glibc.i686
Happen to came across this problem. It does not happen to my other units of Dell Servers doing the same deployment procedure.
Take note that you need to purchase Dell DRAC Enterprise in order to execute ‘racadm’
[root@server ~]# racadm getled NOTE: This Integrated Dell Remote Access Controller does not support RACADM commands. Please contact Dell Customer Service to upgrade your version of iDRAC.
Strangely, this should not happen to me as I have purchased Dell DRAC Enterprise. This did not happen to my previous unit of Dell Servers.
After much troubleshooting and pulling of my hair, I managed to locate the problem to this 2 specific package not installed by OMSA
yum install srvadmin-idrac7 srvadmin-idracadm7
After which, let’s try to execute the command again
[root@server ~]# racadm getled LED State : Not-Blinking
Looks good 🙂 Hope it helps!
Bump into a slight issue today
gcc: /usr/lib64/mysql/libmysqlclient.so: No such file or directory make: *** [sapi/fpm/php-fpm] Error 1
ln -s /usr/lib64/libmysqlclient.so /usr/lib64/mysql/libmysqlclient.so
A pretty quick solution for the problem I encounter 🙂
In IIS5/6, an easy way is to export the list under IIS manager.
However, in IIS7, things are easier using command line
%windir%\system32\inetsrv\appcmd list site > c:\website.xls
command is good, get things done faster 🙂
Here is the quick configuration command
On Active Unit
failover failover lan unit primary failover lan interface fo Vlan3 failover interface ip fo 10.0.0.1 255.255.255.252 standby 10.0.0.2 interface Ethernet0/6 switchport access vlan 3
failover failover lan unit secondary failover lan interface fo Vlan3 failover interface ip fo 10.0.0.1 255.255.255.252 standby 10.0.0.2
Force the current unit to go on standby mode
no failover active
You got to understand how failover works as this is just a quick config on Cisco ASA