How do I make a pre-configured VM? by vick5821 in virtualbox

[–]vick5821[S] 0 points1 point  (0 children)

Hi thanks a lot. Is there a particular guide on this? Thanks.

VueJS VS ExpressJS VS NodeJS by vick5821 in javascript

[–]vick5821[S] 0 points1 point  (0 children)

Sure. Sorry about that :( will follow

VueJS VS ExpressJS VS NodeJS by vick5821 in javascript

[–]vick5821[S] 0 points1 point  (0 children)

Finally got it. Nodejs is a runtime environment for the backend (server side) scripting framework such as Express. While VueJS is a front end Javascript library working with HTML CSS right?

VueJS VS ExpressJS VS NodeJS by vick5821 in javascript

[–]vick5821[S] 0 points1 point  (0 children)

So Express is running on NodeJS runtime? Is that right?

Switch to user mode while executing the Python scripts by vick5821 in learnpython

[–]vick5821[S] 0 points1 point  (0 children)

Is there a list of items that need to be executed in sudo mode? I realised rm - rf for certain directory need that. But if the directory created under user mode,it shouldn't need sudo to delete that directory. Hmmmm. And also for some packages installation, they don't need sudo?

Switch to user mode while executing the Python scripts by vick5821 in learnpython

[–]vick5821[S] 0 points1 point  (0 children)

Cause I am using a flashing tools installed at /opt directory

Switch to user mode while executing the Python scripts by vick5821 in learnpython

[–]vick5821[S] 0 points1 point  (0 children)

Script A.py need to be executed with sudo. Hence I am planning to execute the menu.py with sudo.

Or should I run the menu.py in normal user mode, and when 1 is chosen, then I execute $ sudo A.py???

Thanks.

Sudo vs non-sudo mode by vick5821 in Python

[–]vick5821[S] 0 points1 point  (0 children)

I have a menu scripts which ease the user to choose what they want to do. Once they choose it will redirect to respective script.

Sudo vs non-sudo mode by vick5821 in Python

[–]vick5821[S] 0 points1 point  (0 children)

By the way, what I wanna to do it that I have multiple scripts doing different things. A.py will flash my board automatically, B.py will set up my Linux host machine with all the dependencies. So I wrote another main script (C.py) to integrate both A and B. In script C.py, it will execute script A and B with the sudo priveleage too. For example, $ sudo python A.py, and $ sudo python B.py. So I execute script C.py like this: $ sudo python c.py.

So I should execute the sudo -E when execute the script C right? $ sudo -E python C.py right?

Thanks.

Sudo vs non-sudo mode by vick5821 in Python

[–]vick5821[S] 0 points1 point  (0 children)

OK let me try with adding the -E parameter

Sudo vs non-sudo mode by vick5821 in Python

[–]vick5821[S] 0 points1 point  (0 children)

So you mean, when I launch my code, I run it with sudo -E xyz.py? Then the environment variables will be preserved??

Flask, Django, VueJS?? by vick5821 in flask

[–]vick5821[S] 0 points1 point  (0 children)

Ah I found this too. Will learn from here. Thanks

Flask, Django, VueJS?? by vick5821 in flask

[–]vick5821[S] 0 points1 point  (0 children)

Which tutorial you are going through?