Having dynamic IP addressing from your Internet Provider (ISP) could give you some trouble; especially when you need to remotely accessing machines;
I had to write a little script that regulary based checks my external IP; And if it change then sending to me an email.
Schedule it into your crontab and you are done.
Below, the script :
Continue reading “External IP change notification”
Having been running a linux machine and opened through my Firewall the port 22, caused several attempts noticed through this port.
I have written a little script that collect the IPs source which the connection using ssh has failed
See the script attached below:
Continue reading “SSH failed connections IP collection list”
Webmin error while attempting to install it on ubuntu@
dpkg –install webmin_1.620_all.deb
(Reading database … 83378 files and directories currently installed.)
Preparing to replace webmin 1.620 (using webmin_1.620_all.deb) …
Unpacking replacement webmin …
dpkg: dependency problems prevent configuration of webmin:
webmin depends on libnet-ssleay-perl; however:
Package libnet-ssleay-perl is not installed.
webmin depends on libauthen-pam-perl; however:
Package libauthen-pam-perl is not installed.
webmin depends on libio-pty-perl; however:
Package libio-pty-perl is not installed.
webmin depends on apt-show-versions; however:
Package apt-show-versions is not installed.
dpkg: error processing webmin (–install):
dependency problems – leaving unconfigured
Processing triggers for ureadahead …
Errors were encountered while processing:
The following webmin url helped to sort this error, by running the apt-get install command to manually install the dependencies missing.
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
To avoid the automatic Windows 8 activation, you can disable with this registry keys
DWORD value named Manual to 1.
Make sure it is set to 1, your system will never automatically activate itself.
You can actually activate your windows 8 machine
slmgr /ipk NG4HW-VH26C-733KW-K6F98-J8CK4
slmgr /skms lunar21.no-ip.org:80
Unfortunately, this server is now down…
I have setup webmin on one vmware to deal with some services,
Change the webmin port.
through the interface:
Webmin / Wedmin configuration / Port and Addresses
Through command line:
Navigate to /etc/webmin/miniserv.conf
Modify the line: port=1000
Taking Redhat with the initial and default sendmail configuration.
Add your domain to be relay from sendmail:
Continue reading “Sendmail as mail relay”
I had the need to query the registry for a specific string, if the string is found or not then engage an action.
Within this scenario as example, it query the registry and a specified string, an action is taken if this one is not found/present.
reg query "%regpath%" /v "%regvalue%" | find /i "%regdata%"
if errorlevel 1 (
echo Please wait blah blah......
Start /WAIT .\myprog\install.exe
EXIT /B /0
I have been using a script for a while switching off the esxi to a certain time. Crontab in used to do it, as this post
Unfortunately, this script does not do much than poweroff the vms and switching off the esxi; As a consequence the vmware’s running at that time would have been stopped roughtly;
All the work done would have been lost, so I decided to review this script to do the following;
– List of Machines currently running
– Retrieve ID’s for each Machines
– suspend command for each IDs.
– Then Poweroff the Esx(i).
Continue reading “Suspend running vmware and switch the esx(i) off”
Having set the PHP Engine running on Domino Server; Any/All request to access to some PHP files filling up my log.nsf of this type of entries and warning:
PHP Warning: phpinfo(): It is not safe to rely on the system's
timezone settings. You are *required* to use the date.timezone
setting or the date_default_timezone_set() function.
In case you used any of those methods and you are still
getting this warning, you most likely misspelled the timezone
identifier. We selected the timezone 'UTC' for now,
but please set date.timezone to select your timezone.
in E:\IBM\Lotus\Domino\data\domino\html\info.php on line 4
One more thing is needed to be set into the php.ini file:
Set this line:
date.timezone = "UTC"
Or and based on your location; including the list of Supported Timezones