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
-
5
votes0
answers422
viewsProtocol NBR 14522
I am developing software for communication with meter via serial port, and I am able to send the commands via serial, follow the codes: int serial_open(const char *device, int baud) { struct termios…
-
5
votes2
answers139
viewsSend message confirmation received UDP
Good afternoon, I have the code for Udplisten, which causes PC1 to send a message to PC3 via an interlocutor (PC2), however, after the message reaches PC3, it has to send to PC1 to confirm that it…
-
5
votes3
answers77
viewsIs there a bash iterator equivalent to the python enumerate?
It is common situations in which, to iterate, I need not only the elements of a list, but also their respective indexes. In python, this type of iteration is facilitated with the use of iterator…
-
4
votes1
answer260
viewsError compiling php 5.3.28 using php-build
I am trying to install PHP 5.3.28 using 'php-build' in Linux Mint 16 (Ubuntu) but it does not compile. I’m using the following command: php-build -i Development 5.3.28 ~/local/php/5.3.28 After…
-
4
votes1
answer1547
viewsNGINX as reverse proxy and cache of an external shared server running apache
I’m trying to set up a Brazilian instance on Amazon to be reverse proxy with server caching and compression (I accept dashboard suggestions, preferably free, that accept this setting) in the US. The…
-
4
votes1
answer605
viewsRecover Corrupted . gz File
I have a file in . gz which is corrupted. Is it possible to extract data from this file? Even if it is partially? This file is a sql database dump. Thanks.
-
4
votes2
answers2318
viewsExclude character in a given position?
How do I delete a certain character in a certain shell position? I’ve tried with sed, but I can’t get into position either, just the pattern. ",45123","B23142DHAS675" What I wanted was to erase the…
-
4
votes2
answers92
viewsHow to use Gtkmm-3 and standard input together?
I want to make a program with Gtk that reads data from the standard input and interprets making drawings in a DrawingArea. The concept is simple, but I came across a problem: after I called…
-
4
votes1
answer752
viewsAssociate a file with an application made on Lazarus on Linux
I developed an application on Lazarus on the linux platform for printing reports, now I need to click on the file with any extension, ex arquivo.gsa , open my application Lazarus on linux. In…
-
4
votes1
answer175
viewsProblem with echo` -e`
I’m starting to learn shell script and am doing some simple scripts to train. The script below tests whether whoever is running the script is logged in as root. # !/bin/bash # # This script test if…
-
4
votes1
answer11438
viewsUser root mysql without permission
I’m having a problem changing permissions of users in mysql with the root user in Debian. I can access normally through the terminal: $ mysql -u root -p So he asks me for the root password, I put…
-
4
votes0
answers1298
viewsGammu CMS Error 500: "Unknown error"
By sending Smses using the Gammu, for some numbers that are active and running I get the following error: Array ( [0] => 4 / 0 [1] => Sending SMS 1/3....waiting for network answer..error 500,…
-
4
votes1
answer1863
viewsCalling python script via a php script accessed by the browser
I have a php script that will receive upload videos and I would like to convert these videos using ffmpeg. I created a python script that takes parameters from php and calls ffmpeg to do the…
-
4
votes1
answer156
viewsSolr I/O increases over time
I’m running about eight servers with solr Servers (version 3.5) behind a Load Balancer. All servers are identical and LB is set to weight by the number of connections. The servers have about 4…
-
4
votes2
answers472
viewslinux command - lock folder name/rename
need to give access to an ftp user in the /var/www folder but there are folders there that it cannot access/edit/delete tried a command: #chmod 000 <pasta> almost worked, it does not delete,…
-
4
votes0
answers130
viewsBeginner in Samba4, domain controller
I have visited several sites in search of examples of how to make Samba4 run the domain controller service, the problem that follow in these tutorials is that I end up getting some kind of error at…
-
4
votes1
answer553
viewsShow date by terminal
Just as you can change the linux date by the terminal in the format {month}{day}{time}{minute}{year}, all together, I wanted to know how to save the current date in a variable (Python), change the…
-
4
votes2
answers7168
viewsHow to discover the version of my C/C++ on the Linux operating system?
I’d like to learn how to find the version of mine C/C++ in the operating system Linux. How could I do that through Terminal?
-
4
votes1
answer155
viewsSchedule linux task (Cron)
How to open a file and shut down your computer with crontab? Follow my attempt: 30 07 * * * killall qbittorrent (funcionando) 50 07 * * * shutdown -r 1 "Desligando desktop" (não funciona) 30 12 * *…
-
4
votes1
answer3334
viewsClone private repository by passing password as parameter
I have a script on my production server that automates the entire process of checking new commits, generating the build and publishing the new changes. It works perfectly with open repositories…
-
4
votes1
answer91
viewsfind_package failed to generate project (in Qt) with Cmake
I’m trying to generate the build configuration of a simple Qt example using Cmake. The code of the example is this: #include <QApplication> #include <QTextEdit> int main(int argc, char**…
-
4
votes2
answers7486
viewsAn Exception PDO occurs when localhost is used as a host
Consider the following adaptor class DbAdapterMySQL that extends the class PDO: class DbAdapterMySQL extends \PDO implements DbInterface { public function __construct(array $config) { $dsn =…
-
4
votes3
answers6502
viewsHow to install Composer globally on linux?
Usually, when we install Composer, I usually do so: curl -sS https://getcomposer.org/installer | php It downloads a file called composer.phar. But then I have to keep putting the path of the folder…
-
4
votes2
answers235
viewsWhy don’t all commands work with pipe?
I’m intrigued by the fact that kill and some other commands do not work with pipe. For example, I tried cat /tmp/server.pid | kill -9 and it didn’t work. Searching some forums in English I found the…
-
4
votes2
answers805
viewsHow to define a global alias in BASH?
I’m using the Terminal in the Linux and I’m tired of repeating the same commands all the time. For example, I use a command practically all day, then I create an alias to make things easier.…
-
4
votes1
answer717
viewsHow to disable file mode (permission) in GIT?
I’m working with the GIT here at the company where I work, along with two more programmers. Every time I make one git pull, whose changes were sent by these two programmers, I always have trouble…
-
4
votes1
answer9659
views502 Bad Gateway - Linux, php7, Nginx. How to resolve this error?
I am having a 502 error that represents some configuration on the server, when I try to open a site using linux, Nginx and php7. Researching some other POSTS, link about the same error I see that…
-
4
votes1
answer2870
viewsBetter PHP-FPM configuration for 4gb ram?
I need help setting up my PHP-FPM I have EC2 on Amazon C4.large 3.75 GB RAM 2 CORE On my server I only have PHP-fpm,NGINX and an ftp server connected, Mysql is on a RDS. My current php-fpm…
-
4
votes2
answers3495
viewsDevelop in C# and . NET on Ubuntu Linux?
Recently I had to migrate from Windows to Linux, because my work notebook burned and I am using an old one with Intel Atom and only 2GB of RAM, I was insecure to use Windows because it is a very…
-
4
votes2
answers7992
viewsFind and Replace Multiple Words Inside a File
I want to develop a script which will replace any words in filing cabinet. I know what I can do with the command(s) below: $ tr 'ABC' '123' < arquivo.txt > novo-arquivo.txt or $ sed…
-
4
votes1
answer107
viewsError Openwebmail when sending email to a person
I have installed Open Webmail, I have several more accounts in some accounts as soon as an email is sent to them, returns the error below, more they receive the message, someone has seen and or…
-
4
votes1
answer5871
viewsPHP execute sudo command with shell_exec()
I’m having the following problem, I’m on time trying to run a file sh with php using shell_exec for example: echo shell_exec("./example etc etc"); My problem is that it does not perform, is it a…
-
4
votes2
answers295
viewsIn bash, what is the difference between a null string and an empty string?
I wonder if there is a difference in how bash represents variables with null values var= and with empty strings var="" What care should I take when manipulating variables like these?…
-
4
votes1
answer160
viewsHow to improve log file visualization?
I am trying to analyze some logs files generated on Linux and have noticed that it is very boring to understand where a line is starting/ending. I wonder if there is some kind of command or tools…
-
4
votes2
answers1210
views -
4
votes1
answer619
viewsHow to get a Mac-Address from a local network IP using . NET Core on Linux?
I already have tools that can identify the Mac-Address of my network devices, since the 'server' or the application is running on Windows and . NET Framework. I’ve been using the following: using…
-
4
votes1
answer687
viewsWhat are the most common C++14 compilers on Linux?
What are the most common free compilers on Linux to compile C++14? " Most common" in the sense of most used and available in several distributions. I am using CENTOS and need to compile code that…
-
4
votes1
answer169
viewsWhat’s the difference between a Windows compiler 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…
-
4
votes1
answer220
views -
4
votes5
answers1314
viewsHow to turn a Pyqt5 project into an executable?
I would like to know what would be the best way to convert an application Pyqt5 to an executable application. Is there any way to "compile" an application in Pyqt5? Is there any way to create an…
-
4
votes1
answer425
viewsHow to Automatically Detect a Captive Portal
I’m making a hotspot on a server with Centos 6 and would like to have mobile phones (android and iOS) automatically recognize that they need authentication as soon as they connect to the network, to…
-
4
votes1
answer421
viewsPython - How to get the output of running a . py file to a . txt
I have the following command: python3 -u teste.py > saida.txt 2>&1 This command causes the execution output of the teste.py be sent to this file saida.txt, case saida.txt does not exist it…
-
4
votes1
answer63
viewsHow to perform "sudo" commands between servers?
Before running a R script on server 'A' I have to restart Shiny-server on server 'B'. /bin/ssh cabala@***.***.***.*** 'sudo service shiny-server restart' I would like to enter a command into the R…
-
4
votes1
answer6370
viewsHow to configure the Vscode terminal?
I am trying to configure my Vscode so that I can install libraries through the integrated terminal but I am having problems, it seems that Vscode does not "synchronize" with the standard terminal.…
-
4
votes1
answer50
viewsWhy does C syntax work to create variable range limit in bash?
I tried to create a variable limit in a range for a for loop in bash using a function. Follow my code: function tree(){ let var=$1 for i in {1..$var} do echo $i done } tree 5 To my frustration, this…
-
3
votes1
answer377
viewsDefine multiple variables in one row only
I would like to parse a single line and break a string into several variables. In string which I will parse, the default is that each field is separated by a comma. In several lines, the code to do…
-
3
votes4
answers5487
viewsProblems with installing Android Studio on Fedora Linux
A few days ago I try to install the Android Studio editor on Fedora linux and I can’t. I searched in some tutorials, websites, google and could not find a solution to deal with the error below:…
-
3
votes2
answers351
viewsHow to find the installation location of a package via SSH?
I installed a package as in the example below: $ apt-get install nome-pacote But I can’t find which directory it was installed in. Is there a command to find out where the package is? Remembering…
-
3
votes2
answers3338
viewsRecursively rename files to default given in Linux commands
I am trying to rename files by making the default overwriting certain patterns, however, I wanted to do this work recursively and still could not get. -/doc |----- texto1.txt |----- texto2.txt…
-
3
votes2
answers1886
viewsGets function on Linux
I’m trying to use the function gets (language C), but it doesn’t work. Am I using it wrong? The code is like this: #include <stdio.h> typedef struct { int matricula; char nome[40]; int nota_1;…