Posts

Update widows 10 home edition to professional using the default key

Image
Open Settings > Update & Security Activation Change Product key. Enter this product key in the provided space: VK7JG-NPHTM-C97JM-9MPGT-3V66T Your Windows 10 Home will get upgraded to Windows 10 Pro. But your copy will not be activated. You can use your Windows 8 Pro key to activate it or you can buy a product license key and enter it to get it activated. Clicking on the Go to Store button will take you to the Windows Store , where you can complete your purchase.

Fix for the error Http Port 80 is busy or isn't available in Windows.

Image
There are some default windows applications especially on Windows 10 who rely on this port 80. So while we try to install a software that requires to configure Web application server, it will pause the installation with this Error. Inorder to fix this, try running the command NET stop HTTP   When you'll start it, you will get list first:   After the service is stopped, retry the installation process. You will see that the error is vanished. In windows 10, sometimes you may seem that the stopping of http service fails. In order to resolve this, you need to go to Settings>Updates and security>Windows Difender. Turn off the online cloud syncing options and turn off windows defender. restart the pc and retry stopping the service. Sometimes you need to disable also the 'Microsoft one drive' service from the  task manager's startup tab.

Send mail from Oracle Solaris OS with attached files

To send mail from Solaris, use this syntax echo "some text to send" | mailx -s "subject of email" recipient's@address Or, if you have body of email in some file: mailx -s "subject of email" recipient's@address < some_file.txt If you want to send mails with zip files of image files use the following formats: uuencode reports.tar.gz reports.tar.gz | mailx -s "My Report" you@domain.com     uuencode office.jpeg office.jpeg | mail -s "Subject" you@domain.com   If you need to send multiple attachments in single mail:   $ uuencode r1.tar.gz r1.tar.gz > /tmp/out.mail $ uuencode r2.tar.gz r3.tar.gz >> /tmp/out.mail $ uuencode r3.tar.gz r3.tar.gz >> /tmp/out.mail $ cat email-body.txt >> /tmp/out.mail $ mail -s "Reports" you@domain.com < /tmp/out.mail            

How to replace find -maxdepth option in Solaris Operating System using -prone

 In linux we normally use the option -maxdepth with the find command to report all files and links in the currect directory, not recursively   for example:- find /some/directory/ -maxdepth 1 -type f -name *.log    But when we use the same in Oralce Solaris OS, the command will give error as maxdepth is not an option recogonized in the system. We can replace it with -prone and the syntax is as follows:- find /some/directory/* -prune -type f -name *.log     this should also work with IBM-AIX OS    

/bin/sh^M: bad interpreter: No such file or directory Linux

While running a script in Linux, if you encounter an error such as : /bin/sh^M: bad interpreter: No such file or directory The error is due to incorrect format of the script. Most probably when the script is created in Windows and transferred to Linux. The script might have a dos line ending file. The clue is the ^M Inorder to resolve this error: Open the script in Linux using vim editor,  enter in vi command mode (key ESC), then type this: : set fileformat = unix   Finally save it :x! or :wq! Thats it! Try running the script again and the error would have disappeared.  

Unable to ping to server 2008 R2

Inorder to fix this, you need to activate the icmp port in Server firewall. Run CMD as administrator and use this command. netsh firewall set icmpsetting 8

Using 'mutt' instead of 'mail' in Linux

With mutt instead of mail you would simply call echo "body" | mutt - s "subject" - a attachment0 attachment1 [...] -- my@email . com   Some old verison of linux doesn't support the 'mail' command for attaching files.  So this will be useful for sending mail with attachment on those servers.