Questions tagged as 'ubuntu'

1
answer

installation nodeJs in Ubuntu

In Ubuntu the Node.JS package was renamed to nodejs because there was already another node package. How do I make npm understand that nodejs is already installed on the system, but the name of the different? I've gotten the error:   ...
asked by 30.08.2017 / 16:27
0
answers

Problem with focus setting of Ubuntu windows when using Java [closed]

I was doing a program where a circle is drawn on the screen and it moves around the screen, using the JFrame classes to create the window, a thread to control the circle that I enter on the screen. > The problem however is when I...
asked by 03.07.2014 / 14:00
1
answer

Error importing xml.parsers.expat in Python 2.7 only works with Python3

Good morning, a few months ago started with python I'm using it to do tests in android applications. I have the following problem importing xml.parsers.expat . when I run directly on the terminal it works. More if I run using subprocess...
asked by 28.12.2015 / 14:44
2
answers

How to include code in Shell Script files

How can I perform the following process: Add arquivoa.sh and arquivob.sh into arquivoc.sh , and then execute the functions defined within each file filea.sh #!/bin/bash echo "Arquivo A" function funcaoA(){ echo "Ex...
asked by 24.03.2017 / 16:20
2
answers

Commands to update Ubuntu apt-get update or apt update without get? [closed]

In the company we received the instruction to run the following commands every morning, but the current project manager did not know to answer the reason and in the search in the internet did not get a good answer. sudo apt-get update sudo apt...
asked by 31.10.2017 / 19:50
1
answer

How to run application on linux desktop remotely via command?

I have a server on a client where I use a remote application, sometimes some user goes there and closes the application (I do not know if I accidentally or the owner, for fear), then I can not connect. The application automatically starts whe...
asked by 18.06.2018 / 21:36
1
answer

PHP run sudo command with shell_exec () [closed]

I have the following problem, I'm trying to run a sh file with php using shell_exec for example: echo shell_exec("./example etc etc"); My problem is that it does not run, is it some permission problem? When I type: php x.ph...
asked by 11.11.2016 / 01:12
1
answer

How can I upgrade C ++ to C11 on Ubuntu 14.10?

How can I upgrade from C ++ to C11? Details: Ubuntu 14.10 32b GCC 4.9.1 (Ubuntu 4.9.1-16ubuntu6)
asked by 27.03.2015 / 00:15
2
answers

How to set Python 3 as default in linux?

When I type the command python , Ubuntu runs Python 2.7. But in the new versions of Ubuntu, Python 3 is also usually installed. When I run python -V , "Python 2.7.12" appears, but I would like to use the python command to ru...
asked by 29.06.2018 / 14:31
2
answers

Create virtualhost on windows (apache on ubuntu)

I'm trying to set up my apache to access a folder that is in my HD with windows , I have 2 hds on the machine, one runs ubuntu and the other windows . The apache is already installed, including I...
asked by 22.04.2015 / 17:49