Questions tagged as 'linux'

1
answer

Apache2 does not interpret PHP

I usually installed PHP and APACHE2 but it does not interpret the PHP code, follow test code: <?php echo "teste"; It returns me an "html" page with this typed, and comes from a "print" written test Files not found in the / var / www...
asked by 05.06.2018 / 17:47
1
answer

What is the difference between a compiler and a Windows and Linux executable

When compiling a simple program for Linux, the compiler generates an executable that only works on Linux, but when compiling the Same code with a compiler for Windows it generates an executable that only works for Windows. What I want to know is...
asked by 17.04.2018 / 17:56
1
answer

.NET Core auto executable

After creating my first .NET console application on Windows 10 with Visual Studio 2017 I copied it to my Linux - Ubuntu 16.04.3 LTS server (already with .NET Core installed). I successfully ran the command: Windows > dotnet minhaApp...
asked by 20.08.2017 / 00:18
1
answer

Run Ubuntu JNLP

My current version of java is as follows: openjdk version "1.8.0_131" OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11) OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode) But I can not execute a file .jnl...
asked by 19.10.2017 / 14:31
1
answer

Is it possible to include dynamic libraries in static?

The final goal is quite complicated, I'll try to explain as much as possible: There is the libA.so file and the libB.so file, both are required to use the code of my own libC library, which I would like to compile to be s...
asked by 25.07.2017 / 13:22
1
answer

Problems installing cakePHP on linux ubuntu 16.04

I'm having trouble installing cakePHP on linux. When I run the command composer create-project --prefer-dist cakephp/app [app_name] the following error message appears: Installing cakephp/app (3.5.0) - Installing cakephp/app (3.5...
asked by 24.08.2017 / 16:38
2
answers

How to execute create mysql database using shell script if base name has "-"

On the server there are some databases named modelo-submodelo (this is the name of the database, created with "-" same). When I execute a command like: mysqldump -h"$DBHOST" -u"$DBUSER" -p"$DBPASS" modelo-submodelo --compress=TRUE &g...
asked by 29.03.2017 / 15:30
1
answer

How to create initialization script in Debian by modifying environment variables

I need to create a startup script that modifies the resolution that Debian sets by default. I currently have the following shell script that does the work: export XAUTHORITY=/home/giuliana/.Xauthority xrandr --newmode "1368x768" 85.25 1368 144...
asked by 10.09.2016 / 19:06
1
answer

Installing MySql on Linux in a programmatic way. How to set the password?

I'm creating a sh file to start a Linux programming environment to automate this boot process. I usually just run the following command lines and during the MySql installation process I have to choose the ROOT user password. This is the code:...
asked by 30.06.2016 / 02:26
1
answer

Copy Gitlab backup files to an external disk by configuring crontab

I configured the server to run a cronjob and run the script that backs up Gitlab. Gitlab in turn generates the .tar files in the var/opt/gitlab/backups The first problem is that to access the above mentioned folder, I have to...
asked by 22.09.2016 / 11:39