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
-
2
votes1
answer389
viewsHow to find the JVM port in linux?
I have a linux server running a JRE 1.7 and I need to use Visualvm to monitor the performance of applications running on it. Visualvm uses JMX to connect to the linux host but it expects something…
-
2
votes1
answer2788
viewsProgram for Android without Android Studio
I have a computer with Linux Mint that can not run Android Studio very well by having low settings, I wonder if there is a way to develop applications for Android using an editor and compile by…
-
2
votes1
answer42
viewsIs it possible to include dynamic libraries in a static?
The final goal is very complicated, I will try to explain as much as possible : There is the file libA.so and the file libB.so , both are required to use my own library code libC, which I would like…
-
2
votes1
answer168
viewsHow to call a linux executable program in php code?
I have a question, I have a web application in PHP from which I will receive a txt file. I need to call a program on linux that will run this txt file and, I would like to know, how I would call a…
-
2
votes1
answer760
viewsBash alias with parameters
I am creating a system that works online, the user logs in and will have access to a terminal that it can execute only the commands allowed on the server. That’s the thing about: The user will have…
-
2
votes3
answers7146
viewsHow to run the method inside a.py file by linux terminal
How can I call a method that is inside a.py file directly from the linux terminal, only I don’t want to enter it prompt of python For example [fedora@user ~]$ python arquivo.py metodo parametro…
-
2
votes2
answers313
views.NET Core auto executable
After creating my first console application with . NET Core on Windows 10 with Visual Studio 2017 copied to my server Linux - Ubuntu 16.04.3 LTS (already with . NET Core installed). I successfully…
-
2
votes0
answers56
views"No module named mayavi.mlab"
I’m trying to install Pylayer on Ubuntu Xenial, but when I try to export Coverage by from pylayers.antprop.coverage import * The following error appears: no module named mayavi.mlab But I have…
-
2
votes1
answer350
viewsProblems 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] appears the following error message: Installing cakephp/app…
-
2
votes1
answer103
viewsJava configuration on linux
I’m setting up JAVA and ANT on Linux Server, following a few steps I found on the internet, because I’ve never done this on Linux. I set them up by the terminal because I’m accessing the machine…
-
2
votes1
answer599
viewsHow to commit using command line in SVN
Empty folder created in SVN. I need to put the content in it, but I don’t want to do one by one all file and folder additions. I am on linux and I would like to do by command line, but I haven’t…
-
2
votes1
answer337
viewsError saving image in directory with PHP
I made a page that administer a website that is responsible for including new lawyers in a 'bootstrap Carousel'. On my machine works perfectly, but on the server it is impossible to save the image…
-
2
votes1
answer298
viewsChange server CRON function via PHP
You can change any CRON function with PHP or any other language? For example, I have the following non-server function: 30 15 * * 1-5 php /var/www/html/projetos/hist_06.php In this application the…
-
2
votes1
answer1009
viewsBulk encoding of files on linux
Hello, I’m needing to do the encoding conversion of files to utf-8 since the application will migrate from server. In this application I have files with several encodings actually, some in utf-8,…
-
2
votes1
answer451
viewsJava proxy configuration on Linux system
I have proxy configuration on my network, and to run java I need to set the proxy properties on it,. In windows is not necessary, it is working perfectly. "Exception in thread "main"…
-
2
votes1
answer128
viewsIs it possible to install perlapi 5.14.2 in Debian 9?
I am trying to install the perlapi-5.14.2 package on a Debian 9 linux server and am getting the following feedback: Reading package lists... Done Building dependency tree Reading state…
-
2
votes1
answer64
viewsRetrieve arguments passed via ARGV in the terminal
I have a make file. Inside this make file, I call this file that has it: set -f; echo $1 | bc I want to recover function value in C for that Makefile file. Example: ./a.out "12 + 12" result: 24…
-
2
votes0
answers61
viewsConnection redirection with proxy tunneling
I have two Ubuntu servers, one is in Brazil and the other in the US, in both I activated IP_FORWARD to be able to make a tunnel connection with them to the destination, well, I bought the two to do…
-
2
votes1
answer252
viewsCreate an environment variable for users without access to bash (/sbin/nologin)?
I am trying to create an environment variable that will be accessed by a php script by the user that runs httpd (user: apache). It is set to /sbin/nologin and therefore does not access .profile,…
-
2
votes1
answer419
viewsWhat is the best type of file compression to optimize server response?
Recently I have been researching ways to improve the server performance, decreasing its load and consequently increasing its speed. I found several types of compression and benchmarks comparing the…
-
2
votes0
answers368
viewsRenaming multiple Linux files
I have several files: xaa.txt xab.txt xac.txt xad.txt até xcn.txt I need to rename all files to: nome1.txt nome2.txt nome3.txt etc... In order, that is, xaa.txt must be the name1.txt xab.txt must be…
-
2
votes1
answer157
viewsHow to treat variable in bash?
I’m having a problem, I’m making a bash script to run using crontab, which synchronizes my SSD files, with the hard drive and Dropbox. Script: #!/bin/bash - PC_DIR="~/Programming"…
-
2
votes1
answer135
views -
2
votes4
answers117
viewsCopy one line at a time from the source file to the target files
A new need arose accompanied by a good and new question that until then did not find anything similar on the internet - Copy a single line at a time to a different single file. Example for each new…
-
2
votes1
answer60
viewsUsing Linux libraries
I am developing a software in C that receives information and need to verify that it is correct through a CRC-16, searching found a lib only for CRC called libcrc.org but also found something on…
-
2
votes1
answer720
viewsDebug in C/C++ in Visual Studio Code does not work (Linux Ubuntu)
I use Visual Studio Code, and wanted to use your Debug in my C/C++ files. There are few BR tutorials on how to configure the debug of VS code for Linux, especially in the language I use, and as I am…
-
2
votes2
answers674
viewsTreat Curl return on Linux
I am mounting a shellscript and sends a json file to a webservice, the return is as follows: {"success":false,"errorCode":3,"message":"Authenticity Token invalido"} I am tempted, using Linux…
-
2
votes0
answers35
viewsPermissions for some commands and not for others
Good morning, everyone. Maybe this is a basic question but I have a question on Linux that I could not find by searching on Google. I have a Linux machine running a Nginx and with two users: marcos…
-
2
votes1
answer35
viewsHow to compile C++ in Visualstudio using linux inside windows
A friend said he has how to do this compilation by Visualstudio and run in a linux "subsystem"
-
2
votes2
answers9963
viewshow to compile a python script in a executable
How best to compile a python script for an executable running on a linux (Ubuntu), windows and mac operating system.
-
2
votes1
answer5001
viewsApache2 does not interpret PHP
I normally installed PHP and APACHE2 but it does not interpret PHP code, follow test code: <?php echo "teste"; It returns me an "html" page with this written, and comes from a "print" written…
-
2
votes1
answer348
viewsEnable Nginx authentication for a specific URL
I am working with a control panel and need to put an authentication in the admin folder access. I already created the user and password, the Nginx configuration this way: server { listen 443 ssl;…
-
2
votes1
answer3013
viewsApache works but php does not work
Apache has been installed in a centos 7 and the service is active and php has also been installed, but whenever game in nagevador php does not run, just shows the php code. when checking the version…
-
2
votes1
answer482
viewsScroll through an array bash script
Can someone give me an example of an if and case running through an array in bash script? I’m just finding an example of what it’s for to list the items.. I’m trying to make sure ex: v1=("sim" "s"…
-
2
votes1
answer1549
viewsHow to search for an exact word with the grep command
Well, whenever I use the grep command he looks for a word that contains the desired word + anything, how can I make him understand that I just want that word and nothing else? ex: ps aux|grep bc…
-
2
votes0
answers22
viewsPAM Service - External LDAP authentication
Hello folks I need help, My application runs using a domain user and I need to access it through a webservice using this AD user with LDAP on linux, for this I am using PAM Service, I created the…
-
2
votes1
answer278
views.NET Core and Mono: application development for Linux
Currently I have needed to develop applications (desktop) for Linux, and one of the requirements is that it would have to be using C#. And researching/testing, I got two options: .NET Core or Mono.…
-
2
votes1
answer138
viewsEdit configuration file
I have a configuration file with several parameters, example: campo1=valor campo2=valor campo3= I would like to assign a value to campo3 with Shell Script. I tried to do with awk but I couldn’t. The…
-
2
votes2
answers151
viewsDoubt about shell script
I’m studying linux, and it’s my first contact with the shell script, the documentation I wanted to do is the following: #!/bin/bash if [ uname - m = "x86_64" ]; then echo "sua versão é de 64bits"…
-
2
votes2
answers49
viewsAccess the site via HTTPS - AWS
I’m having doubts to access the site using the HTTPS protocol for the domains in my hosting. I went up an instance Linux T2.micro zone São Paulo (Amazon ECS). I have done the procedure to acquire…
-
2
votes3
answers3774
viewsWrite text to Shell Script
I am making a Shell Script, and I have to record a lot of lines in a single file, how can I do this more automatically? 'Cause I started doing it in a very manual way: echo "primeira linha do…
-
2
votes4
answers7933
viewsHow to upgrade Node.js from version 8 to 10 on Linux Ubuntu, via SSH?
I tried several tutorials on the internet before coming to post the doubt here on Stackoverflow and no tips worked. My repository is with version 8 of Node and the same, even removing, back. I need…
-
2
votes0
answers36
viewsUbuntu 18.04.1 LTS with 100% storage and processing
I’m having a problem with my development server and I can’t fix it. I’ve done a lot of research, but I can’t find the solution. Probably those who have more advanced knowledge of the OS believe it…
-
2
votes1
answer174
viewsHow to run find -exec on files that have been modified for more than 15 days?
I am trying to remove some files from a directory, but I cannot mount a command. What I want would be more or less like this: find -name '*.log*' -mtime 15 -exec rm -f {} Find the default name and…
-
2
votes1
answer254
viewsElectron error using "escpos" and "Electron-rebuild": not a valid Win32 application
I am developing a desktop application with Electron and I have the following problem when trying to run the application on Windows: All this started after I installed the framework "escpos" to work…
-
2
votes1
answer1911
viewsHow to switch between Java 8 and 11 on Ubuntu?
I made a few days ago the transition from Windows 7 to Ubuntu 18.04 LTS, and had some difficulties in the process. Well, let’s get to the details. I installed JDK 11 through the following command:…
-
2
votes2
answers811
viewsOracle JDK 8 is NOT installed
Good evening, I’m having trouble installing java8 in umbuntu I have tried to delete all apt-get I have installed, and reinstall. I’m following this one…
-
2
votes1
answer1173
viewsJAVASCRIPT read a TXT file
I made a command in linux that saves in a txt the output of the terminal from time to time, in case the output of the command free -m, I wanted to read that file. txt so that javascript would update…
-
2
votes1
answer844
viewsMultiple connections with PHP Socket to receive HTTP messages and save to Mysql
I need to set up a port on my dedicated server that runs the Centos 6.10 kvm OS, so that it receives messages (geolocation) from some trackers via TCP (IP:PORT), and saves this data in the Mysql…
-
2
votes2
answers994
viewsShortcuts in visual code - Ubuntu 18.04
Today I installed the visual code on linux, I used it before but in windows, it happens that some shortcuts are not working and this is damaging my productivity. One of these shortcuts and the most…