Thursday, August 13, 2026

 Enabling Shared Configuration in Windows 2022 Server

Shared Configuration in Windows Server primarily refers to the Internet Information Services (IIS) feature that allows multiple web farm servers to synchronize and use a single set of configuration (applicationHost.config and administration.config). In recent days while performing Windows server 2016 to Windows server 2022, We faced issue in IIS Manager was crashing after enabling Shared configuration and had to contact Microsoft support team.

After investigation from and Microsoft support confirmed, they have a bug in windows 2022 server IIS Manager while saving shared configuration.

With help from Microsoft Support Team, We were able to identify the alternate solution to fix the issue.

Following are steps to fix the issue.

  1. Add the permissions to MachineKeys under C:\ProgramData\Microsoft\Crypto\RSA\

    1. Add the below users from local machine

      1. Everyone - Read & Execute, List folder contents, Read

      2. SYSTEM - All Permissions

      3. IIS_IUSRS - Read & Execute, List folder contents, Read

      4. USERS - Read & Execute, List folder contents, Read

      5. Administrator - All Permissions

Copy the exported IIS-Transfer-Key (which has 2016 RSA Machine Keys) to Windows 2022 Server and keep it in C Drive.

  1. Run the following script in Windows 2016 server.


On the 2016 server, Run elevated PowerShell:
$folder = "C:\IIS-Key-Transfer" $aspnet = "$env:windir\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe" New-Item -ItemType Directory -Path $folder -Force & $aspnet -px "IisWasKey" "$folder\IisWasKey.xml" -pri & $aspnet -px "IisConfigurationKey" "$folder\IisConfigurationKey.xml" -pri Both must report Succeeded! . Securely transfer those XML files to the 2022 server. On the 2022 server First attempt to import over the temporary containers: $folder = "C:\IIS-Key-Transfer" $aspnet = "$env:windir\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe" & $aspnet -pi "IisWasKey" "$folder\IisWasKey.xml" -exp & $aspnet -pi "IisConfigurationKey" "$folder\IisConfigurationKey.xml" -exp Once you import, you will see the below message. Microsoft (R) ASP.NET Core, an open-source web development framework | .NET RegIIS version 4.0.30319.0 Administration utility to install and uninstall ASP.NET Core, an open-source web development framework | .NET on the local machine. Copyright (C) Microsoft Corporation. All rights reserved. Importing RSA Keys from file.. Succeeded! Microsoft (R) ASP.NET Core, an open-source web development framework | .NET RegIIS version 4.0.30319.0 Administration utility to install and uninstall ASP.NET Core, an open-source web development framework | .NET on the local machine. Copyright (C) Microsoft Corporation. All rights reserved. Importing RSA Keys from file.. Succeeded!

c. Restart the Windows Process Activation Service and World Wide Web Services.

d. Enable Shared Configuration on the servers.

Give the Path, Service Account, Username, Password and Encryption Password.

This should enable the shared configuration and you should see the sites in the server.



Thursday, September 8, 2022

 How to update Python PIP in Windows


  • Open the command prompt, Traverse C:\Users\UserFolder\AppData\Local\Programs\Python\Python310
  • Run the command
    • pip install pip, If the PIP does exist already, it shows as below.
                        
    • Run the command to update the existing version.
    • python.exe -m pip install --upgrade pip
                        





Monday, April 6, 2020


Disable azure network accelerator


Recently, I came across an issue in azure QA account, the credit was getting utilized more than the expected numbers, because of this the instances were shutting down before the due date.

This issue was finally addressed after couple of  research. The problem was with the network accelerator this was consuming a huge amount of credit.

When tried to disable the network accelerator, it showed an error as this is supported for VM series D/DSv2, D/DSv3, E/ESv3, F/FS, FSv2, and Ms/Mms only.

I came across a KB article to execute following command in azure shell to disable network accelerator.

az network nic update --name --resource-group --accelerated-networking false
In the above command line, replace nic_name and resource_group_name with existing names mentioned in your azure portal.
Hope this helps you.
Happy computing... :)


Friday, September 20, 2019

Hello Reader,


IT Admins who are using Subversion may have come across this pick and choose of the svn files and folders
to dump and share, may feel eary using SVNDUMPSANITIZER.

This program has been installed and worked properly on linux x86_64 arch. Download SVNDUMPSANITIZER.

To compile it, just run:

$ gcc svndumpsanitizer.c -o svndumpsanitizer

For complete help.

$ ./svndumpsanitizer --help

A typical command would look something like this:

$ ./svndumpsanitizer --infile full_svn.dump --outfile repo.dump --include Main_Repo/Trunk Main_Repo/code trunk/arch


 This should solve your exporting problem in a blink. 

 Enjoy.
 



Tuesday, June 18, 2019

Ubuntu - No audio after disconnecting from HDMI

  1. Open PulseAudio Volume Control. Install it if you don't have it.
  2. Install it if you don't have it., To install it apt-get install pavucontrol
  3. When you open it, go to "Configuration" : For one of the "built in audios" one has HDMI (unplugged) in front of "Profile". Choose "Off" for that profile as below image.

./Enjoy Fixing.

Saturday, August 22, 2015

Convert mp4 file/s to mp3 using avconv


Hello All,

Avconv is alternative to ffmpeg. Avconv is a very fast video and audio converter that can also grab from a live audio/video source. It can also convert between arbitrary sample rates and resize video on the fly with a high quality polyphase filter.

conversion of mp4 file/s to mp3 by using avconv

avconv -i input.mp4 -vn -f mp3 output.mp3

Enjoy conversion to mp3... :-)

Saturday, July 4, 2015

Hi,


Wireless driver installation for Toshiba Tecra z40.

 sudo apt-get install linux-headers-generic build-essential

wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.19-rc1/backports-3.19-rc1-1.tar.gz

tar -zxvf backports-3.19-rc1-1.tar.gz

cd backports-3.19-rc1-1

make defconfig-iwlwifi

make

sudo make install

And you will need firmware

wget https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-7260-ucode-23.15.10.0.tgz

tar zxvf iwlwifi-7260-ucode-23.15.10.0.tgz

sudo cp iwlwifi-*.ucode /lib/firmware

Reboot

If you realize that your wifi doesn't work in the future, it is likely that a kernel update occured and you will need to

cd backports-3.19-rc1-1

make clean

make defconfig-iwlwifi

make

sudo make install

Thursday, January 23, 2014

Ubuntu 10.04 ethernet controller issue - Dell Optiplex

After the installation of Ubuntu 10.04 on Dell optiplex 790, we found that the Ethernet controller is not working on it.


After some research I found that there are no Ethernet driver e1000e was installed as there was a bug in that & resolved very soon.

The driver e1000e installation steps as follows.

  1. Download the driver e1000e.
  2. unzip the package.
  3. Make a cd to the src folder inside the e1000e folder.
  4. execute make command before that ensure gcc installed.
  5. execute make install command.
  6. execute modprobe e1000e to add the module.
  7. Now you should see the network should be working fine.
 We found this issue only in 10.04 as we were using this  distribution version frequently. We have only tested this on Ubuntu 10.04.

Happy Networking...Enjoy... :)

Sunday, March 4, 2012

Backup SVN Repository


#!/usr/bin/perl
my $svn_repo = "/svn/reponame";
my $bkup_dir = "/var/backups/svn_backup/backup_reponame";
my $bkup_file = "reponame_backup-";


$bkup_file = $bkup_file . `date +%Y_%m_%d_%H_%M`;
chomp $bkup_file;
my $youngest = `svnlook youngest $svn_repo`;
chomp $youngest;


my $dump_command = "svnadmin -q dump $svn_repo > $bkup_dir/$bkup_file";
print "\nDumping Subversion repo $svn_repo to $bkup_file...\n";
print `$dump_command`;
print "Backing up through revision $youngest... \n";
print "\nCompressing dump file...\n";
print `bzip2 -9 $bkup_dir/$bkup_file\n`;
chomp $bkup_file;
my $zipped_file = $bkup_dir . "/" . $bkup_file . ".bz2";
print "\nCreated $zipped_file\n";

Sunday, May 1, 2011

Reliance Netconnect and Ubuntu / Debian

Hello Readers,

Oh!! Yeah, Finally reliance netconnect connected & started working on ubuntu 10.04 with easy simple steps followed to configure it.


  • Search the package usb-modeswitch & usb-modeswitch-data
root@cyclotron:~# apt-cache search usb-modeswitch usb-modeswitch-data

  •  Install the package usb-modeswitch & usb-modeswitch-data
root@cyclotron:~# apt-get install usb-modeswitch usb-modeswitch-data


  • Now follow the easy installation steps to get connected.
  • Systems --> Preferences --> Network Connection
  • Select Mobile Broadband --> Add --> Select your provider country --> Select your provider --> Confirm Settings
  • Now Enter the Phone Number in the Username box & Phone Number in the Password and Apply the settings.

Now you should get connected to the Reliance Netconnect. 


Enjoy Netconnect. :-)




Tuesday, March 29, 2011

How To : Install firefox 4 (stable) on Ubuntu

Hello Folks,

If you want to install & enjoy firefox 4 on your Ubuntu Machine / Debian Machine follow the simple steps.


  • apt-get remove firefox 
  • dpkg --purge firefox
Now add the below Firefox Stable PPA :-
sudo add-apt-repository ppa:mozillateam/firefox-stable

  • apt-get update
  • apt-get install firefox
The installation may take sometime, After the installation you check the new Firefox 4 installed and also you download Firefox 4.

Enjoy the browsing with new Firefox 4 with great features in it. :-)



Tuesday, March 22, 2011

Pure-ftpd-mysql : Unable to start a standalone server

Hello All,

After restarting ftp server found that the ftp server is not running, Checked the system log of the server & found the following error.

pure-ftpd: (?@?) [ERROR] Unable to start a standalone server: [Invalid argument]

In debian etch 4, The pure-ftpd-mysql does not have link to pure-ftpd from pure-ftpd-mysql by default. Apply the link by force and restart the service.

ln -sf /usr/sbin/pure-ftpd-mysql /usr/sbin/pure-ftpd


Enjoy. :-)

 



Thursday, March 3, 2011

HOW TO : Convert .flv to .mp3 in Ubuntu / Debian

Hello,

Converting .flv or mp3 has become so easy in Linux box within few minutes. Just thought of sharing it.

Installation of FFmpeg on Debian OR Ubuntu


  • root:~#apt-get install ffmpeg



Converting .flv to .mp3 



  • ffmpeg -i filename.flv -acodec copy output.mp3



Enjoy. :-)

Friday, February 25, 2011

Update-grub : Dual Boot - Grub Load

Hi,

 From last 2days I was trying to upgrade my laptop from Debian Lenny 5.0 to Debian Squeeze 6.0, As there was some problem with my internet connection I was not able to do it.

After 24hrs I was able to connect to internet. Now my machine is upgraded with Debian Squeeze 6.0 finally and thought of sharing a small issue faced with boot loader after the upgradation.

When upgradation was proceeding it asked to select the partition to install the boot-loader. It showed the two partition /dev/sda (Ubuntu partition) & /dev/sda2 (Debian Partition) as I was not sure, installed the boot-loader on /dev/sda. After the complication the laptop rebooted and I was not able to find the Ubuntu 10.04 in my grub. I found only the debian kernel boot loader. After some try I figured it out, if it needs to updated run the command update-grub.  Run this command on live machine. Also check where the master boot record is pointed and run the update command.

By this the grub will read the partition table re-generate the grub.cfg as below.

cyclotron:~# update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found linux image: /boot/vmlinuz-2.6.26-2-686
Found initrd image: /boot/initrd.img-2.6.26-2-686
Found linux image: /boot/vmlinuz-2.6.26-1-686
Found initrd image: /boot/initrd.img-2.6.26-1-686
Found Ubuntu 10.04.2 LTS (10.04) on /dev/sda5
done

Thursday, December 16, 2010

Debian Etch Sources List Archive

Hello

As we all know, Debian Etch has been no longer supported since feb 2010. But still some machines might be running Debian Etch(Upgradation not feasible). If your searching for any source to install packages to your machine. Ass this below sources in to your sources.list file.

# vim /etc/apt/sources.list

deb http://archive.debian.org/debian/ etch main contrib non-free

# apt-get update

# apt-get install

Enjoy...


How to Restrict postfix recipient in zimbra

Restrict postfix recipient in zimbra

This will show how you can modify postfix to restrict who can send to certain address in your domain such as distribution like team@domain.com.

These change will most likely not persist between upgrades!!!

zimbra/conf/postfix_recipient_restrictions.cf. Also permissions on files created in /opt/zimbra/postfix/conf/ will be changed.

  • Create permitted sender list as zimbra user under /opt/zimbra/postfix/conf/
permitted_sender List :- This file contains domains list OR User mail list, Only protected senders can send mail to this domains OR users.

# vim /opt/zimbra/postfix/conf/permitted_senders

localhost                         OK
myhost.com                    OK
mydomain.com                OK
username@domain.com   OK
  • Create protected recipient file as zimbra user under /opt/zimbra/postfix/conf/
protected_recipients :- This file contains email address that can only receive from permitted senders

# vim /opt/zimbra/postfix/conf/protected_senders

myteam@domain.com                 permitted_senders_list
protect_users@domain.com         permitted_senders_list

  • Include the important setting to /opt/zimbra/postfix/conf/main.cf
permitted_senders_list=check_senders_access hash:/opt/zimbra/postfix/conf/permitted_senders, reject
smtpd_restriction_classes = permitted_senders_list,local_only



FYI :- The changes in main.cf will not survive after the upgrade of zimbra.
  • Now add the this restriction on the top of all line.
# vim /opt/zimbra/conf/postfix_recipient_restrictions.cf
check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients
  • Reload the settings
/opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/permitted_senders
/opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/protected_recipients
/opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/postfix_recipient_restrictions.cf

/opt/zimbra/postfix/sbin/postfix  reload

FYI :- This configuration can also used in normal postfix..



Thursday, December 9, 2010

Install Nuxeo-DM on Debian Gnu/Linux 5.0 Lenny

Nuxeo DM is an open source document management application and helps to manage and track flow of content.

Intallation instructions for Debian Lenny

Install sun-jdk6 from deb apt source.

# apt-cache search sun-java6-jdk  (This may take some time...)

After the installation of sun-java6-jdk, Add this sources to /etc/apt/sources.list

 "deb http://apt.nuxeo.org/ lucid releases"

Run the following command in the terminal :-

# apt-get update
  # apt-get search nuxeo
  # apt-get install nuxeo-dm-tomcat (This may take some time...)

After the installation, use an editor to update the configuration:

# /etc/nuxeo-dm/nuxeo.conf

Uncomment this line

# JAVA_HOME=/usr/lib/jvm/java-6-sun

And invoke the service

# invoke-rc.d nuxeo-dm \[start\|stop\|status\|restart\]

When the Nuxeo-Dm started, Open this link in the browser

# http://localhost:8080/

Login the Nuxeo using Administrator username and Administrator as password.

Saturday, December 4, 2010

Mplayer play only audio hold video

Hi All,

 Few days back I watched a funny movie and the dialouges were superb and thought of listening again and again as its funny movie.

As I use linux, I just wanted to play the movies audio but not the video in mplayer, after searching from man pages found this.

If you wish to listen only film dialouges run the command  :-

mplayer filename.mpg -vo null 

OR

mplayer -vo null filname.mpg

Try & Enjoy the audio movie :-)





Monday, October 25, 2010

Migrate / Backup your mails to gmail / google apps.

Hi All...

Here are some worked examples on how to do the synchronization to google hosted email system.

Step 1.
 Create directory to where you can store password files.

Step 2.
Make a list of password files. (A password file is one with only the password stored in it)

Step 3.
Check the version of imap-sync using in your computer. The synchronization works only with versions above 1.261. If you are using debian / ubuntu use the below command to check the version.

apt-cache policy imapsync
imapsync:
Installed: 1.286+dfsg-3ubuntu1
Candidate: 1.286+dfsg-3ubuntu1

Step 4.
After the installation of imapsync go to the password created directory.

Step 5.
To synchronize the mail from any domain to gmail OR google hosted apps use the following command. (Make sure imap has been enabled in the Gmail account)

$ imapsync --host1 mail.domain.com --user1 source@domain.com --noauthmd5 --passfile1 /path/to/passwordfile --host2 imap.gmail.com --user2 destination@domain.com --passfile2 /path/to/passwordfile --port2 993 --ssl2 --folder 'INBOX' 'INBOX.Sent'

Step 6.
If the given credentials are correct, the command will look like the following.


with perl 5.10.1
Mail::IMAPClient  3.21
IO::Socket        1.31
IO::Socket::SSL
Digest::MD5       2.39
Digest::HMAC_MD5
Term::ReadKey     2.30
Date::Manip
with perl 5.10.1Mail::IMAPClient  3.21IO::Socket        1.31IO::Socket::SSL   Digest::MD5       2.39Digest::HMAC_MD5 Term::ReadKey     2.30Date::Manip

/usr/bin/imapsync --host1 mail.domain.com --user1 source@domain.com --noauthmd5 --passfile1 passwordfile --host2 imap.gmail.com --user2 source@domain.com --passfile2 passwordfile --port2 993 --ssl2 --folder INBOX INBOX.Sent
Turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1.
TimeZone:[asia/kolkata]
Will try to use LOGIN authentication on host1
Will try to use LOGIN authentication on host2
From imap server [mail.domain.com] port [143] user [source@domain.com]
To   imap server [imap.gmail.com] port [993] user [source@domain.com]
Banner: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc.  See COPYING for distribution information.


Host mail.domain.com says it has NO CAPABILITY for AUTHENTICATE LOGIN
Success login on [mail.domain.com] with user [source@domain.com] auth [LOGIN]
Success login on [mail.domain.com] with user [source@domain.com] auth [LOGIN]
Banner: * OK Gimap ready for requests from 12 x26if996498wfd.20
Host imap.gmail.com says it has NO CAPABILITY for AUTHENTICATE LOGIN
Success login on [imap.gmail.com] with user [source@domain.com] auth [LOGIN]
host1: state Authenticated
host2: state Authenticated
From separator and prefix: [.][INBOX.]
To   separator and prefix: [/][]
++++ Calculating sizes ++++
From Folder [INBOX]                             Size:  11375813 Messages:    34
Total size: 11375813
Total messages: 34
Time: 15 s
++++ Calculating sizes ++++
To   Folder [INBOX]                             Size:      5626 Messages:     2
Total size: 5626
Total messages: 2
Time: 2 s
++++ Listing folders ++++
From folders list: [INBOX]
To   folders list: [Follow up] [INBOX] [Misc] [Priority] [[Gmail]] [[Gmail]/All Mail] [[Gmail]/Drafts] [[Gmail]/Sent Mail] [[Gmail]/Spam] [[Gmail]/Starred] [[Gmail]/Trash]
++++ Looping on each folder ++++
From Folder [INBOX]
To   Folder [INBOX]
++++ From [INBOX] Parse 1 ++++
++++ To   [INBOX] Parse 1 ++++
++++ Verifying [INBOX] -> [INBOX] ++++
Time: 4 s
++++ End looping on each folder ++++
++++ Statistics ++++
Time                   : 20 sec
Messages transferred   : 0
Messages skipped       : 0
Total bytes transferred: 0
Total bytes skipped    : 0
Total bytes error      : 0
Detected 0 errors

Step 7.
Check your mail box to see if the mails have been synchronized.

Happy Migrating...

Project Pier Update User Password


Hello,

In the table called pp_users, you will find the line corresponding to the admin account. Note the salt value from the table pp_user Or you can copy / paste the salt value directly into the mysql update command.
To modify the password of the admin / user account, use the below mysql statement.
Here in the below mysql statement,
sha1 (Function)
(salt value)
adminpassword (user password)
update pp_users SET token = sha1(“”) where username = ‘admin’;