How to install openvpn cli from an electron app? - javascript

I am making an electron app that connects to openvpn using its config .ovpn file. Is there a way to install the openvpn cli on the users system in the background without prompting the user, when the app is run for the first time irrespective of the OS? (I'm targeting Mac, Linux and Windows)
I've tried to do this with sudo-prompt and electron-sudoand while the app works, it's a lot of hassle for the user to be prompted multiple times for their password.

Related

React Native White Screen on iOS Simulator

Up until recently, my app was running on iOS. I am now running into a white screen issue when running npx run-ios.
When running npx run-ios, the simulator starts up and builds the application, but Metro bundler says warn No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB. on the terminal. Which is odd as the command itself opens the simulator and builds the application.
I am also unable to access the developer menu in both the terminal and on the simulator. So I can't access/edit bundler configs.
Things I've tried:
I've tried to delete the node_modules and run npm-install.
Deleting the Pods folder and Podfile.lock and then running pod install.
As I was working in a development branch, so I checked out to the main branch, which was working fine before, but the same issue persists, so I am doubtful that it's my code (I might be wrong however".
Doing Clear device and settingson the simulator.
Trying a different simulator.
I've seen on different similar posts that the simulator and my dev environment should be on the same network. However, this was never an issue before, and there is also no wifi edit function on the simulator.
Running the iOS application from Xcode instead

Progressive Web App Install Prompt is not coming on mobile browser

I have created a project, basically a progressive web app wherein application is created dynamically through admin panel.I have root app where structure of app is created and when application is created through admin panel I am creating app id wise manifest file which gets imported on app when app is open.
When I run one of the created app on chrome browser on laptop Install prompt is appeared. Also when I run another app with other id with same root files but with different manifest, I got the install prompt. Both app installed successfully on laptop.However in case of mobile chrome browser, when I run first app then app gets installed after clicking on Install prompt. But, when I run another app I am not getting Install prompt.Instead I am getting option of "Open In Previous Installed App Name".
Please help in it.
I want to come install prompt in second case also.
Thanks in advance.

how can I connect to a http://localhost:4200 using browser which is a aws ec2

I am learning node.js in an online course to build up a web server and app
before the teaching started, the teacher told me to set up your coding environment, and it got a direction to told me what to do step by step.
Because I using Chromebook, So I started an aws ec2 serve which is ubuntu 18.04 and using cloud9 for my ide
I installed node.js successful on the ec2
And the direction told me to type on those on the terminal
git clone https://github.com/OpenClassrooms-Student-Center/5614116-front-end-app.git frontend
You can then do the following:
cd frontend
npm install
ng serve
This will install all the dependencies needed by the front end app and will launch the development server. Now, if you navigate to http://localhost:4200 , you should see the following (assuming you've followed the steps above successfully):
the direction say if I successfully followed the step, will see something on http://localhost:4200
On the terminal, at last show me
ℹ 「wdm」: Compiled successfully.
But how can I connect to http://localhost:4200 which was an ec2?
I tried using IP:4200, the browser keeps on loading the page and nothing shows up on the browser
----------------------------------------
I found out that the program that teacher gave me to install set the URL to http://localhost:4200
because cloud9 says the program was running, but running at a URL call http://localhost:4200
what should I do?
Localhost refers to your local machine. But as mentionedd that your node.js running on ec2 and want to connect to it from your browser, get the IP of the ec2 and type in your browser- IP:4200
And it should work
The only problem here is you have to add port 4200 in your aws ec2 instance security group to allow inbound traffic.
STEPS:
1. Go to your EC2 instance.
2. Click security group from Description below.
3. Click Inbound then Edit.
4. Click Add Rule
5. Select Custom TCP , Port - 4200 , IP - 0.0.0.0/0
6. Then SAVE.
After that try <EC2-IP:Port> in your browser it will work fine.

Check if a non app store application is installed in windows 10 machine

I have installed a windows desktop application(not from app store).
How can I check if this app is installed from other application using javascript?
Is there any plugin available for Windows application like cordova AppAvailability for Android/iOS?
You can use WMI (Windows Management Instrumentation) to generate a list of installed apps via the wmic command-line tool, and go over this list to find the app you're searching.
If you're running NodeJS, you can use the node-cmd package to execute the sequence of commands in the link above, and capture the string output so you can parse later.

How to install my NativeScript application in my phone?

I have build an android application using NativeScript but now i want to install it in my android phone but i don't know which .apk file i have to take to install the application in my phone.
According to the {N} docs you should execute tns deploy android on the command line. This will install your app onto the currently connected device. After the app has been installed, it will automatically start on Android.
If you want your app to be compiled before installing it on your device, you should execute tns run android on the command line. This will prepare, build and deploy your app.
You can find all the cli commands on the github page: https://github.com/NativeScript/nativescript-cli

Categories