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
-
0
votes1
answer222
viewsInstalling and configuring the Lamp Stack on Ubuntu
Hello I’m new to linux, and would like to install a PHP and Laravel development environment in my Ubuntu 16.04 to study both the language and the framework, and for that I need: Apache Mysql PHP 7…
-
0
votes1
answer206
viewsHow do I generate a binary executable?
Hi, I wanted to know how to make a program in C generate another binary executable eg: the binary Elf x-Elf.bin when running creates another binary executable y-Elf.bin
-
0
votes1
answer816
viewsTransfer file to linux server with Python
Hello, I’m looking to make a file Python that transfers all files from a local folder in my Windows for a specific path on my server Centos 7. At first that server is in my local network, but it…
-
0
votes0
answers91
viewsDuplicate paths in $PATH environment variable
I have noticed that the paths I add to $PATH in my .bashrc duplicates appear when I open tmux (multiplexer terminal): export PATH=$HOME/miniconda3/bin:$PATH export PATH=$PATH:$HOME/Devel/bin If I…
-
0
votes0
answers269
viewsCron input to call Scheduler from Laravel without working
I’m starting now with Laravel, I put a test project of it together with mongodb on an Amazon server, but after I enter the following single entry "* * * * php /path/to/Artisan Schedule:run >>…
-
0
votes1
answer23
viewsWebmail Linux Server
I’m developing a platform and I’m going to have some email accounts from that platform. As such I would like to be able to use them on the web directly on the platform, for example:…
-
0
votes1
answer110
viewsCorrect reading Linux PID
I’m having a little trouble reading the PID from the file. It presents the message below, but I can’t understand beyond the buy.sh script what else is presented. I also saw that it has 2 . jar,…
-
0
votes1
answer378
viewsI can’t install PHP-FPM on Ubuntu
When I try to turn the remote sudo apt install php5.6-fpm, I’m getting the following message: Some packages could not be installed. This may mean that you requested an impossible situation or, if…
-
0
votes0
answers50
viewsCode with Sockets locking in the middle
Because of the matter of college networks, lately I have had experiences to learn how to deal with sockets in C. But today, trying to develop a game of sailing to practice, I went through a somewhat…
-
0
votes0
answers624
viewsError connecting a postegresql bank to Laravel
I’m having a problem using Laravel with postgresql on Linux, when trying to connect with the database it says it does not find the postgresql driver, I have already enabled postgresql in php.ini so:…
-
0
votes1
answer399
viewsError while running studio.sh
Hello, I’m new in development with Java. I’m using Fedora 26 and openjdk java version "1.8.0_91". my environment variables are: export JAVA_HOME=/usr/lib/java export CLASSPATH=$JAVA_HOME/lib/ export…
-
0
votes3
answers236
viewschar print returns random character
I compile the code below without errors. When I insert the word (or phrase desired) the printf returns a random character like 0 � a etc. The program should read a word (or phrase) and the printf…
-
0
votes1
answer86
viewsProblems with installations in Raspian
I’m having a problem, I’m not getting, install no package on raspian, appears the following error: Error: server' JVM at /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/Arm/server/libjvm.so'. Please…
-
0
votes0
answers856
viewsUbuntu: Restrict user FTP/SFTP access to an existing folder
Consider the following situation on an UBUNTU-mounted web server: /var/www/site 1 <-- apenas root /var/www/site 2 <-- designer 1, root /var/www/site 3 <-- designer 2, root /var/www/site 4…
-
0
votes2
answers54
viewsHow to run a bash file "mytest.sh" on a MAC without using ". /" alias and globally?
I have a file mytest.sh which will be distributed among other users (all with mac). I wanted to know what has to be done so that they can run the script of this file, from anywhere ( globally )…
-
0
votes1
answer119
viewsHow to edit host file on etc/hosts?
How to edit host file in etc/hosts? The website is out, so I added the ip: xxx.xxxx.xxx www.meusite.com.br But when I go ping or scan to see the servers, it finds no signal.…
linuxasked 6 years, 11 months ago Luan Barbosa 31 -
0
votes0
answers75
viewsBash Shell - Script to get user-chosen URL’s
Good night, I have a question about a bash shell script that will return the URL’s present in a Reddit page, that is, in a subreddit. What I managed so far was to return the URL’s that are on a page…
-
0
votes0
answers793
viewsError: Could not find or load main class Mainex1"
Previously questioned question that gave basis to this error The error in question is the use of a JAVA program using the Linux Terminal. I already have the compiled classes, the error appears when…
-
0
votes2
answers1165
viewsScript to check if directory is empty
I’m knocking my head to create this script. I need a script, can be in bash or php even, check if a directory has some file inside, that is not another directory. This directory that I have to scan…
-
0
votes0
answers528
viewsFolder Permissions with Samba
Good evening, everyone. I have a file server on Linux, which is consumed on Windows. Each department has its own specific folder (and they all use a public folder), and I need only the user of that…
-
0
votes0
answers82
viewsModify database access data in the app.config file after running the project’s "Publish"
Hello, I created an application in C# and for access to the database I did the following procedure: In the app.config file I created the following: <add name="MyDatabase"…
-
0
votes1
answer614
viewsmkdir with problem in the permission of the created folder
When I create the folder, it creates but does not create with the correct permission, preventing you from creating the next folder, the chmod in the created folder comes 411.…
-
0
votes2
answers1785
viewsHow to configure virtualhost for xampp on Ubuntu
Can anyone teach you how to set up a virtualhost for xampp in Ubuntu? I’ve tried this tutorial https://ourcodeworld.com/articles/read/302/how-to-setup-a-virtual-host-locally-with-xampp-in-ubuntu but…
-
0
votes1
answer160
viewsWhy if I rename the folder the files inside it change?
I’m using Lubuntu 17 and had a folder called images with some files dai was trying to rename these files with this programming in python: import os import re def repl(match): dic = {"4": "0", "5":…
-
0
votes1
answer180
viewsHow to enable autocomplete resource for shell script?
I would like my shell script options to be presented or autocompleted by pressing TAB, just like commands like aptitude or yum. How to enable autocomplete resource for shell script?
-
0
votes0
answers43
viewsProblem with Javafx on Linux
Javafx Alert on Linux. I am testing the Javafx technology, but I have noticed some things that work well in windows but not in Linux. For example, the class javafx.scene.control.Alert, to display…
-
0
votes1
answer939
viewsDiscover hosts from the network
When trying to create a script on the subject I got some questions about the script below! The question is, how am I going to do the "for i in 100" so that it will ping the ips, like…
-
0
votes1
answer255
viewsHow to get around a GOTO problem in PHP
I have a small package manager in the terminal of own use and that manages my Framework, and I am giving an improvement on it, and falls into a problem where I can not loop without using goto, as in…
-
0
votes1
answer49
viewsDoubt of Linux Crontab
When I type crontab-l I see the schedules When I type-crontab and I can edit the schedules what happens if I just type crontab ? I’m still a beginner on Linux
-
0
votes1
answer242
viewsTreat special characters
I am treating the CURL return with SED, but as the information I receive but sometimes has the character / causes an error in the SED syntax. TOKEN=$(curl --silent $URL | awk -F '"' '/content/…
-
0
votes1
answer254
viewsCentos 7 - Proxy authentication without saving password
Is there any way to configure the proxy in the "/etc/yum.conf" file without leaving the password saved in this file? Something like, pass the password by parameter? Today the password is written in…
-
0
votes1
answer36
viewsHow to do a git push to bitbucket programmatically using BASH on Ubuntu16.04?
I have a bash script running in Ubuntu 16.04 whose goal is to create a project (Folder) Expandable and then create that same repository in bitbucket and then push the content to the repository that…
-
0
votes1
answer168
viewsCodeigniter does not present its Welcome screen
I started learning codeigniter a few days ago and I have the following problem: I did the correct installation of LAMP and of Codeigniter /var/www/html/codeigniter But when I try to access the page…
-
0
votes1
answer62
viewsRecording of Logs in linux
I have the following code in php <?php function logs($texto){ date_default_timezone_set('America/Sao_Paulo'); $hora = date("H:i:s"); $data = date("d-m-Y"); $log = fopen("log/".$data.".txt","a+");…
-
0
votes0
answers212
viewsssh - error when connecting with 4linux
I have a little problem with ssh, I’m a beginner in linux and I’m doing a course on 4linux about the basics of Linux and so on... I’m at the cloud connect part via ssh. When I did it for the first…
-
0
votes1
answer35
viewsCall to the system dup2 vs. write&read
I have a doubt in understanding why in some cases there are examples of conversations in the parent process and the child process - obtained through the call to the Fork system ( ) - which use read…
-
0
votes1
answer65
viewsCommand does not work when executed via cronjob
I’m trying to create a cronjob executing the following command sudo sh /usr/local/bin/send_site_backup_files_to_dropbox.sh | ts "[%Y-%m-%d %H:%M:%S]" 2>&1 | tee…
-
0
votes1
answer307
viewsWhat linux command is used to find out who is the parent of a process?
I would like to know the command on the Linux terminal to find the parent PID of a process. Does anyone know who the father of the lawsuit is upstart? For example: I executed the: ps aux And I took…
linuxasked 6 years, 6 months ago Vinícius Fernandes 39 -
0
votes2
answers31
viewsAWS Amazon - I changed the default Ubuntu user folder
After changing the default folder of the Ubuntu user, I can no longer login, because the private key is not found. What to do?
-
0
votes1
answer1013
viewsHow to fit the geckodriver for use of Selenium?
In Python 3 and Ubuntu, I want to run a test with Selenium: from selenium import webdriver from selenium.webdriver.firefox.firefox_binary import FirefoxBinary from time import sleep binary =…
-
0
votes2
answers254
viewsCreate files in the Home folder with C++
In c++, creating files is very simple, just include the fstream library and use ofstream arquivo; open file("variables.txt"); But this generates the file in the project folder and I would like to…
-
0
votes1
answer1129
viewsMysql Workbench access denied
Good afternoon, I am having problems in mysql Workbench, is giving permission denied, but when I enter the terminal as superuser I get access. (image access denied on Workbench) (Terminal access…
-
0
votes1
answer476
viewsHow to remove Node in Arch linux / Linux Manjaro
I recently started a project but my Ode has a small error and I need to remove it. The following question is how to completely remove Node.js using the Arch-linux terminal ? And when executing the…
-
0
votes0
answers52
viewsHow to show running processes on the web server
well my doubt is the following there is some plugin in php where I can view the processes php, html etc... running on my server, Cpanel has a similar plugin and wanted to know if you have any way to…
-
0
votes0
answers80
viewsHow to run JADE (Java Agent Development Framework) on linux?
How to Rotate JADE (Java Agent Development Framework), is a framework for SMA, in the latest version of Lubuntu ? I am using Lubuntu 32bits - 17.10.1. I’m having a problem running it on Ubuntu (the…
-
0
votes1
answer398
viewsAccess Firebird Centos7 Database
I normally installed Firebird 3.0.3 in Centos7 - Firebird-3.0.3.32900-0.amd64 [root@localhost firebird]# ps aux |grep firebird firebird 1099 0.0 0.0 29644 1004 ? S 17:22 0:02…
-
0
votes2
answers241
viewsAutomation of tasks in linux
Well, I already know python and I know she’s very good at working with scripts and task automation but my question is, i can work comfortably with administration and automation of linux and database…
-
0
votes0
answers39
viewsEncrypt fixed-size files in Arduino with AES
I know that on Arduin it is difficult to work with files, however, how can I encrypt a file of fixed size, in Kb or Mb on Arduin using Aes or other encryption algorithm? anyone has any idea??…
-
0
votes1
answer671
viewsR in Jupyter Notebook
I use Python Jupyter Notebook. I want to use R also on the same platform. I know it’s possible, but I couldn’t figure out how. Could someone give a hint?
-
0
votes1
answer42
viewsReplacing URL within multiple txt file with Linux terminal
I have several files. txt Ex: arquivo1.txt arquivo2.txt arquivo3.txt Inside these files I have several urls as follows: https://www.site.com.br/diretorio/ https://www.site.com.br/diretorio/…