tcl failed to load package when remote desktop with root account - tcl

The OS is Ubuntu 12.04.
I have the tcl scripts to do some job, which require some package, as:
package require ParseConfig
If I run the scripts in this Ubuntu directly with root account, then the scripts could run well.
However, if I access the Ubuntu by remote desktop(by installing vncserver), then it will report:
Can't find package ParseConfig while executing "package require ParseConfig".
The account for the remote access is root too.

Related

How to Execute SSIS package from local,but files like (.csv, .xls...) are on VM

How to execute SSIS package from local machine, where there are different source files are on VM machine which are source file for this packages,
how SSIS packages can connect to the VM Machine for the source files and can execute the packages.
A VM is just another computer so the same "tricks" apply. Create a file share on the virtual machine, ensure the permissions are set appropriately, ensure the firewall allows access, etc.
Modify your SSIS package to look for files on \\vm1\share\datafolder

How to install and run Mercurial server on a remote Linux host with limited user rights?

I have a remote managed hosting Linux server and I would like to install and run a Mercurial server on it to communicate with from local repositories (clone, pull, push).
The server has Apache, PHP, MySql, Python and RubyOnRails.
I can also access the remote system over SSH, but the command repertoire is limited: e.g. there is no such thing as apt-get, so I cannot download and deploy the server directly.
Is there any possibility to bypass these limitations and have a Mercurial server operating on such a server? Or does any other Version Control system exist that would allow this kind of usage? Is there probably a PHP- or Python-driven Version Control Server around (which I failed to find)?
This depends on the restrictions set in place. Mercurial is a normal Python program and the Mercurial server is part of the normal distribution. If you are using SSH as a transport protocol, nothing but a Mercurial installation in your $PATH is required. For HTTP access you will need to either run the Mercurial hg serve command or install the necessary wsgicgi module.
Now let's assume you want to access the repositories via SSH, and only need a Mercurial installation, but cannot run apt-get, consider the following:
You must have Python installed
You can try installing Mercurial from sources by downloading the tarball from https://www.mercurial-scm.org/downloads.
Run make install PREFIX=~/mercurial to install the Mercurial distribution to ~/mercurial.
Ensure ~/mercurial is in your $PATH during your SSH session by adding export PATH=$PATH:~/mercurial to your ~/.profile.
If you cannot install Mercurial from sources, you can consider building Mercurial on a compatible Linux systems. E.g. your servers runs Ubuntu 19.04, and you run locally Ubuntu 19.04. Install the distribution as described to your local directory and rsync the distribution to your server.
On your local linux machine: make install PREFIX=~/mercurial to install the Mercurial distribution to ~/mercurial.
rsync -avzP ~/mercurial server:~/mercurial
Set path variable to ~/mercurial as described above.

Packer tool Provisioners Query - Executing Shell Script on Installed Packer Machine

I have packer tool installed on Linux Machine. I am provisioning a Windows machine through this tool. I want to execute one shell script which will initiate a scan on provisioned VM in order to check the vulnerability. I added shell script in the provisioner section of the packer JSON and the shell script was working fine when I was provisioning Linux VM. Now I am facing issues while provisioning Windows VM. I don't want to write any powershell script in order to initiate the Scan. Is there any way to execute the shell script from the machine where packer is installed after windows VM gets provisioned. Any help would be appreciated.
You can use the shell-local provisioner to run tools on the Packer host. The only problem is to get the IP of the VM you want to scan. How to do that depends on which builder you are using.

How to install extension on server in yii2

I have an website running on server.
I want to use graph extension to show some reports.
How do install extension on server?
Locally I can use cmd for that, do I need to download project install extension and upload it again?
You have to enable SSH access on your server.
DigitalOcean SSH tutorial - here you can find some helpful informations about SSH connection.
If you connect by SSH, navigate to project directory and use composer install or composer update.
If you don't have a command line access to your server and so cannot use composer directly, I would recommend to do prepare the code locally in a 'deploy' folder and then copy the whole folder content, including the vendor directory, to the server. I assume that you can use composer locally, so that you can install the extension regularely . And I assume that the local machine and the server does differ to much (PHP version, other settings).
Installing the yii2-extension does mean: if you install it with composer install Yii gets prepared so that you can use the code like any other code in your application. Installing the extension creates an entry in `vendor/yiisoft/extension.php which gets evaluated each time the application gets loaded.

SSIS pckage run from file system

Initially I deployed packages on SQL server but since my machine is not having SSIS installed I faced issue of version while executing the packages. Then I deployed packages to file system on server which has SQL server enterprise edition with SSIS installed on it. I access the folder on server where I have deployed packages from my system and execute the package but I get error saying "cannot run on this edition of integration services, need higher version." Do I need to rmote login (RDP) to execute package?
Don't know whom to blame but my package is running successfully. The solution was restart the server!!! (though client was not ready to that for long period of time)