How to run a user desktop application from a debian package post-install script? - ubuntu-16.04

I've created a debian package (for ubuntu 16.04). The package installs a .desktop file in /etc/xdg/autostart, so that the application will start when a user logs on, and for all users.
But I'd also need to start that application immediately in the current session, i.e. the session of the user that initiated the installation of the package. I need to avoid that the user must log off and on again.
Can this be done from inside a postinst script?

Related

Why can't delete MYSQL folder in program file (Local Disc C)

I want to uninstall MYSQL workbench in my PC.after uninstall & while deleting MYSQL, it shows the action cant be completed because of the folder or a file in it is open in another program,Close the folder or file and try again .
I always try to delete folder but I couldnt.
You can't delete the folder because mysql service is using it.
Mysql workbench, by default installs mysql as a service, which is the recommended way to run mysql.
On Windows, the recommended way to run MySQL is to install it as a Windows service, so that MySQL starts and stops automatically when Windows starts and stops. A MySQL server installed as a service can also be controlled from the command line using NET commands, or with the graphical Services utility. Generally, to install MySQL as a Windows service you should be logged in using an account that has administrator rights.
From dev.mysql
On Windows, if you have used an installer to install something, you should uninstall it from Add Remove Programs.
Not only will its installer stop the service, and remove all files but also tidy up registry entries.

Can we use a OS user other than "rundeck" to install rundeck?

We have a use case where we cant use "rundeck" os user and need an alternative user to install rundeck.
You have (at least) three options:
If you need to execute your commands and/or script as another user you can use this plugin, just save the latest release .jar file in the libext directory and the plugin should be ready to use.
If you really need to run rundeck as another user, the easiest way is to make a WAR-based installation. In this way, the user that launches rundeck is the "rundeck" user.
Run Rundeck on Docker, you can create a server-independent container based on the official Docker image, here a lot of examples.

Install vscode for all users

I updated to the version here where it installs it per user instead of all.
How do I install for all users instead? Do I need to install for each user now?
Look for the system installer instead of the user setup installer. The system installer will give you the option to:
1. Install for all users
2. Choose a directory.
Download here (oficial page): https://code.visualstudio.com/download
Can't find it? The system installer is below the big blue button to download. You'll see 3 options. The middle option will say system installer.
Applications that are global are stored in /Applications directory as opposed user specific installation that are installed under Applications under the user home directory. So moving the installed folder to /Applications directory might work.

Need to Install Concourse(CI/CD) on windows system

I need to install Concourse(CI/CD) on my Local windows machine
Below process I followed :
Install Bosh on local system.
It was successfully install and while executing command at command prompt
then it show version all "bosh" -- "version 3.0.1-712bfd7-2018-03-13T23:26:43Z".
Try Download the concourse-lite deployment manifest file but it fails it shows below error.
Follow the below link to install Concourse :
https://concoursetutorial.com/ --- section For Windows:
I don't reccomend doing this at all because you'll be swimming so far out of the main stream that you'll find tons of issues and no one is going to care enough to want to fix them.
Even if you didn't find any issues, resources require a linux worker for anything to work so your going to need linux anyways.
I recommend running your db, web and linux worker on linux and then running windows workers as needed.

Correct deployment tool to copy files & run SQL Script

What would be the best way to deploy upgrades to a piece of software with the following requirements:
The upgrade:
Must be run from a client machine, not a server.
Must Show a dialog to select a network location and copy files to a share.
Must show a dialog to enter SQL Server connection information and the upgrade must connect to SQL Server to run an upgrade script.
Must not change anything on the client machine from which the upgrade is run. (Nothing in Add/Remove programs, registry, etc. I.e. no Windows Installer.)
Must not rely on any additional dlls or frameworks. The user must be able to download a single file and run it from Windows XP SP2 without having to install anything else.
Some things I have looked into:
Batch files (can’t show a dialog to allow the user to enter connection information)
OSQL (can’t show a dialog and can’t copy files)
WiX (runs on top of Windows Installer so it puts things on the client machine from which it is run)
Custom C#/VB app (requires .NET framework)
Winzip/WinRAR (can't show a dialog, can’t run SQL Scripts)
If you don't want to rely on any dlls and frameworks, you should make a native app, this can be, for example, custom winrar sfx (you can run additional scripts after extraction, this can be a batch that executes sqlcmd).