Most voted "linux" questions
For SOFTWARE DEVELOPMENT issues that are specific to the GNU/Linux operating system. Mere use of shell and desktop, installation and support are not within the scope of the site. If your question is not about development or development but has nothing to do with Linux Apis or Linux-specific behavior you should not use this tag, even if you are running on Linux.
Learn more…1,005 questions
Sort by count of
-
1
votes1
answer133
viewsHow to pass variable to PHP file in Shell Script
how can I pass a variable to a php file in a shell script, I’m trying to do this way below, without success. php -f complete.php?login=$1
-
1
votes0
answers74
views -
1
votes1
answer738
viewsPython script via PHP
I’m trying to call a script done in Python via browser with PHP. This script has only one command that serves to turn off my Raspberry Pi. PHP is that way: <?php exec('sudo python…
-
1
votes1
answer542
viewsMultiprocessing in Python
I’m creating processes using multiprocessing in Python, but need to create processes within other processes, ie child processes. It is possible to do this using multiprocessing? Code: import time…
-
1
votes2
answers1005
viewsExtract only the name of a file from the full path
I want to make a shell script that gets a filename with its full path, for example /home/42/arquivoEscolhido.txt, and extract only the file name (arquivoEscolhido.txt), that in case it would be all…
-
1
votes1
answer142
viewsProblem with installing SAP NETWEAVER on Linux
I am experiencing problems with the installation of SAP Netweaver SP02.750, I am installing on Linux openSUSE 15.0 on a VM. After the installation command: sudo ./intall.sh he accuses the following…
-
1
votes1
answer200
viewsError when buildar for android Ionic
I’m getting the following error: BUILD FAILED in 0s /home/Flavio/helloworld/Platforms/android/gradlew: Command failed with Exit code 1 Error output: FAILURE: Build failed with an Exception. Where:…
-
1
votes1
answer1137
viewsRemove character in Shell Script
all right? I’m making a script to read a log on my server to pick up just a few parts that interest me and play in a . csv. The script is very simple, follow: #!/bin/bash export…
-
1
votes1
answer45
viewsHow to find only the distinct paths up to the specific directory?
I want to find only separate directories with the same name. If I use the locate to find the path of a given directory : locate mydirectory : /var/lib/meu_diretorio/arquivo1…
-
1
votes1
answer1923
viewsHow to connect to Firebird database in Python?
I’m making an application myself Python that should connect to a bank Firebird. The application is running on a Linux and the bank in a Windows. My test file worked properly on the server Windows,…
-
1
votes0
answers59
viewsError updating mysql server on linux Mint
I have a machine with Linux Mint which I use as my development server, which is working normally, however, when performing an update (apt-get upgrade) of the installed packages, the mysql server…
-
1
votes2
answers331
viewsphp - Cast double with number_format
When executing: $number = 50/3; var_dump(number_format($number, 2, '.', '')); is returned string(5) "16.67" however I need this value to be given in decimal type, so I run the cast to (double).…
-
1
votes1
answer414
viewsDocker creating root volume as owner
I am trying to install the Laravel using the official image of the Composer, this is the command: docker run -it --rm --user $(id -u):$(id -g) -v $(pwd)/src:/src composer create-project…
-
1
votes1
answer167
viewsAdd bash output to text
Well, I’m trying to create a text log, with the days and times my script was executed. Only, for example: when I use echo 10/03 - 13:20 >> log.txt it overwrites there in the text file by…
-
1
votes1
answer43
viewsProblem with case in script
Someone explains me why my script is only returning the "Error option"? #!/bin/bash #==========================# DATA=$(date +%T) #Vai mostrar a hora com os mins CORTE=$(date +%k) #Vai mostrar…
-
1
votes2
answers656
viewsAccess web application that is running on apache from a Docker container inside a linux server that I access for ssh
By my windows machine I have access to a linux server that is on the same network through an SSH. Do I need to access a web application that runs inside apache from a Docker container on that…
-
1
votes1
answer507
viewsHow to install Node.js v.10 on Linux (16.04 LTS)
I’m following the documentation on the official website of Node for its installation in an environment Linux with Ubuntu distribution, which in turn redirects to this page on github demonstrating…
-
1
votes0
answers547
viewsI cannot access my Vue CLI project via IP
I start my Vue CLI (webpack template) project from the terminal with npm run dev and initializes everything normal. I can access my web project from localhost or 127.0.0.1, but when I try to access…
-
1
votes0
answers190
viewsHow can I use IDLE with Anaconda?
I am using Anaconda because it contains several tools for python development, but I feel limited because I cannot open the libraries installed in Anaconda using IDLE. Anaconda has an IDLE version…
-
1
votes1
answer60
viewsHow could I replace a row of multiple txt files that would come from an output of ls -l?
What I’d like to do is more or less that: ls -l | xargs sed’s/regex of the pattern I want to replace/new data/g' for each output of ls, a replacement is done inside the file using sed. Can you do…
-
1
votes1
answer69
viewsHow to make an ssh connection auto-reconnect after a Broken pipe error?
In my work I need to be connected all the time to a remote machine via ssh, but lately the connection has dropped every 5 minutes and it is a very boring task to stay reconnecting. There is a way to…
-
1
votes0
answers141
viewsHow to install oci8 on the Azure Devops linux host
I have a php application that requires an oracle connection 12c and when performing the "compilation" on Azure the following error is displayed during the composer install Problem 1 - Installation…
-
1
votes0
answers143
viewsXdebug container does not connect with Visual Studio Code
I am having problems trying to debug an application that is running in a container using Xdebug. Apparently, Xdebug does not connect to my IDE even though I am listening to port 9001. I am using…
-
1
votes2
answers352
viewsCrontab does not run PHP function of the file in the directory
I am running the following code on the Linux Server via Digital Ocean’s Putty Inside the Crontab-e This way 01 00 * * * /var/www/html/atualizador/atualizador-global.php * * * * * /usr/bin/php7.3…
-
1
votes1
answer677
viewsHow to run python on linux Mint
I made a program in python and I would like to start it next to the system, but I don’t know how. I tried cron @reboot, but I was unsuccessful. I’m not sure how ~/. bashrc works did so. nano…
-
1
votes0
answers34
viewsHow to set the number of times to run Speedtest via PHP
Hello, I’m trying to run Speedtest on a server via PHP, I’ve installed the necessary on the server to be able to do this via Terminal on Linux, and I’ve also managed to run this test via Web access…
-
1
votes1
answer41
viewsHow do I check if a file exists on my hard drive using php? (Linux)
I have a php application that will read return files from the database, for this, I need to know if the file exists on the system hard drive. I tried it this way:…
-
1
votes1
answer55
viewsHow to format response of a bash command?
My intention is to print on the screen the number of pages of each PDF in a given directory. I even managed to do this through the following command: find "$PWD" -iname "*.pdf" | xargs -i pdfinfo {}…
-
1
votes1
answer173
viewsCan I use the same SSH on two different computers?
Guys, I have two computers, a desktop and a notbook, both with Ubuntu 18. my question is: can I use the same SSH in both? I don’t want to keep adding the two keys on remote servers...
-
1
votes1
answer139
viewsError starting Postgresql - [FAILED]
I’m trying to upload the database, but when I give the command service postgresql-9.1 start appears the following message: Starting postgresql-9.1 service : [FAILED]. I went to the log file with…
-
1
votes1
answer1144
viewsImport: No module named 'telebot'
Hello! I am configuring the bot to send Zabbix alerts, I have installed Python and the necessary modules: sudo apt install python python-pip python-setuptools Then I installed the bot API to use in…
-
1
votes1
answer54
viewsHow to extract strings from 4 different files, and insert into a single line of an HTML document
For hours I’ve been trying to find a way to include the contents of 4 distinct files for a new output file -; "output.html". The 4 files I’m looking to extract information from are: link.txt…
-
1
votes0
answers282
viewsError: SQLSTATE[HY000] [2002] No connection can be made because the target computer actively refused them
I am trying to access through my pc a linux server where phpmyadmin has been installed. What settings I need to make on the server side to get in. I’ve tried setting the door and it’s still not…
-
1
votes1
answer1364
viewsSQL Server - Incorrect time in GETDATE (Timezone) function
I have an SQL Server running on AWS, since yesterday the function GETDATE() has been returning the time with an extra hour as if it were in the time zone -02:00. I have checked on Linux that the…
-
1
votes0
answers678
viewsExpo-cli installation error
Personal talk. I am trying to install expo-cli on linux (using sudo or not) and am getting the error below: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: `node-pre-gyp…
-
1
votes1
answer405
viewsSimulate click touchscreen in python
I need to create a python function that can create a click holding it while a second click is started and finished during the duration of the first. Using the mouse, this is not possible, however,…
-
1
votes2
answers81
viewsIs there an extra parameter for the linux script command for characters to be saved with the correct encoding?
When using the command script filename.txt is saved in the created file everything that is generated in the terminal, but when saving, the text is encoded in several points, points that I needed to…
-
1
votes1
answer32
viewsVariable running on its own
I am trying to create a variable that I will only use when I want to create a folder. But this same variable is creating this folder before the IF condition and the READ condition are executed.…
-
1
votes1
answer184
viewsHow to downgrade gcc, g++ and gfortran compilers?
I’m trying to install the package mice in Rstudio, but the installation fails and shows the error/usr/bin/ld: -lgfortran not found. I noticed that there is no directory called /usr/bin/ld on my PC,…
-
1
votes2
answers277
viewsBashscript. How to execute a command at a given time?
I am trying to create code in Bash Scripting, and I need it to run this script in the background and run this command daily at this predetermined time and run only once. I’m having problems, because…
-
1
votes1
answer38
viewsProblem with opencv on linux
I’m making a monitoring system with Opencv Python via streaming on my Windos 10 OS runs all correctly by irony on my Linux Mate I get the following error message when I try to run Nonmatching…
-
1
votes2
answers455
viewsError executing a Flutter command
To test whether the flutter was correctly installed on my Linux machine I wrote in bash the following command : flutter doctor and received the following return message : zsh: command not found:…
-
1
votes1
answer90
viewsFile upload returning "Missing to Temporary Folder"
I have my site hosted on Godaddy and on this site I have a part for uploads, this worked well until days ago, now started returning the error 6 - Missing a Temporary Folder for any file I try to…
-
1
votes2
answers1456
viewsError configuring Android Sdk on Linux
The operating system is Linux Mint When inserting: ~/Android/Sdk/tools/bin/sdkmanager "platform-tools" "platforms;android-27" "build-tools;27.0.3" acontece o seguinte erro: I’m cracking my head…
-
1
votes1
answer161
viewsDialog progress bar (Shell Script)
I would like to create a progress bar for my backup script. The problem is that the rsync command (which is inside the loop) generates duplicate (unnecessary) lines that increase the size of the log…
-
1
votes0
answers586
viewsOpen html,css and others with commands in the terminal (Linuxmint) for the Browser
Good morning, Afternoon, Evening, Gentlemen. Please, I am beginner in Linux, so I have small impasses that diminish my production, could someone please teach me or show in the comments below, how to…
-
1
votes0
answers18
viewsConvert AC3 audio to AAC with error using ffmpeg
I am trying to convert an ac3 audio of 1 hour and 16 minutes, this original audio is a 5.1, and I want to convert to aac, and it would have to be stereo as it would be reincarnated into an mp4 file…
-
1
votes1
answer44
viewsError in logic to replace all phrases within an x file using Bash Shell Script
How can I replace all the same phrases within a file, using Bash Shell Script, when receiving the value to be replaced from a variable? 1 - How I would like - but it doesn’t work.:…
-
1
votes0
answers19
viewsI’m having trouble sending video to the server
Hello all right ? I’m having problems with sending video to the server, with image (the same code practically) it sends, but not with videos. My server is a Linux Ubuntu VPS, I have the vestaCP…
-
1
votes0
answers45
viewsListening to stdout from the Linux console with python3
I’m trying to make a script in python that I need to hear the stdout linux console. The script is to test serial transmission error rate for image recording of an OS on an iMX collibri card, as…