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
answer368
viewsMYSQL Does Not Start
Hello! I previously migrated my database from one directory to another within the server itself (/var/ to /mnt/) for lack of space. Only that when starting the server again, after having changed the…
-
2
votes4
answers11105
viewsError in android SDK "License for package Android SDK Platform 28 not accepted."
I was testing to run my first project on React On, so I ran the command "React-Native run-android", and this error appeared on the android SDK license. My OS is Manjaro linux. I’m new to React…
-
2
votes1
answer187
viewsHow to print vector formatted in Shell?
I’m trying to get a string and change only one of its values, and that’s easy using vectors. However, when printing the string, the vector leaves without formatting, I have tried to print it with…
-
2
votes2
answers50
viewsReturn filtered values in Shell Bash for insertion in BD
I’m writing a script on python who captures the TOP 5 ram and CPU memory consumption processes of the machine, so far the script is functional only for LINUX, goes below: Script: #!/usr/bin/env…
-
2
votes1
answer123
viewsAlias created in shell-script does not work
I’m trying to create a alias using a shell-script, but at the end of the execution the alias disappears. #!/bin/sh echo "Configurando ambiente..."; mkdir -p ~/.dna alias teste="node…
-
2
votes1
answer258
views -
2
votes1
answer91
viewsWhat’s the difference between SEQ and FOR I IN in shell script
I started studying shell script recently and gave me 2 examples, and I would like to know the difference of the commands, when it is better to use one or the other. The example was seq 1 5| and the…
-
2
votes1
answer189
viewsWhy does a program compiled for Linux not run on Windows?
Well, we know that Linux and Windows run on x86 architecture but why a program made for Linux does not run on Windows? Since Windows is multi-architecture, a program made for Windows that runs on…
-
2
votes1
answer44
viewsModifying privileges with python
I am facing the following problem, I am increasing the privileges with "Elevated", but after running the.mkdir (), I would like him to lose his privileges and return to being an ordinary user.…
-
2
votes1
answer45
viewsCompile linux kernel module
Hello I’m studying about operating systems, through the book: fundamentals of operating systems. La in cap. 2 talks about kernel modules and shows an example: simple. c #include <linux/init.h>…
-
2
votes1
answer97
viewsWhat is the bash equivalent of python’s sys.argv method?
In python, when I want to use a user-given string in the command line, I use the method sys.argv. For example, let’s say I have an executable called 2name.py consisting of the following code: import…
-
2
votes1
answer167
viewsShell Script to calculate average runtime
I need to perform the same command 10 times and view the average run time. I did the script below, but it always returns the same output, zero, see print below. Could you help me find the error?…
-
1
votes2
answers1118
viewsHow to reuse and share an SSH private key between Mac OS X and Linux?
I realized that the Mackup is able to back up the private key in Dropbox. I tried to copy my old private key from a Time Machine backup (I did a clean install of Mavericks), which was without…
-
1
votes2
answers594
viewsPhp5-Imagick - Installation error in debian 7
I didn’t find any reference to what the error might be when I try to install a php module (Php5-Imagick) root@SMSA443:~# apt-get -f install php5-imagick php5-cgi Returns the message: root@SMSA443:~#…
-
1
votes1
answer189
viewsHow to create a file open dialog with the SDL library?
I’m making a very simple audio player in C (on Ubuntu) for a college job, and I’m using the SDL library to create windows (graphical interface) along with the Sdl_mixer to play the audio. The…
-
1
votes1
answer205
viewsAPACHE URL rewriting of a Server subdomain (A) to a Server subdirectory (B)
My application is on the server (A) Accessible through the URL: nome.dominio.com.br I have another server (B) Accessible through the URL: www.dominio.com.br Need to access, this server url (B) this…
-
1
votes1
answer373
viewsLoad "php.ini" specific for a sub-domain
To carry a php.ini customized for a sub-domain, I applied to .htaccess at the root of the sub-domain concerned the following code: AddHandler php5-fastcgi .php Action php5-fastcgi /cgi-bin/php.fcgi…
-
1
votes2
answers4563
viewsVirtual machine does not share folder
Problem: Use Virtual Box and MVWare in both programs I cannot share folder, using their internal option Pasta Compartilha. Look at the images for a better explanation of the problem: Photo 1: Pasta…
-
1
votes2
answers95
viewsproblems with graphical mode initialization
I put the address of the Fortran compiler (ifort) on .bashrc making: export PATH=/.../... But after that I could not access the graphical mode of Opensuse. The given message is the following: Could…
-
1
votes1
answer179
viewsRewriterule problems in apache 2.22 (in Digitalocean.Comm)
I use a cloud server called Digital Ocean. However I am facing problems while trying to create friendly Urls. I have activated the module rewrite through the command: sudo a2enmod rewrite and…
-
1
votes1
answer87
viewsHow to call the Linux sendemail program from within Oracle
I know that the Oracle has a package for this (UTL_SMTP), but I would like to use the Linux sendmail. Does anyone have any example of code or know where the documentation of Oracle about this ?…
-
1
votes1
answer200
viewsHow to find unused files in a project?
We have a web project that has changed the layout several times and many files will no longer be used. However, since there are several developers using files at the same time, the old files were…
-
1
votes1
answer271
viewsSend files via rsync setting user and group
I have the following script that sends files from a local folder to a remote server: rsync -Crav --exclude 'storage' --exclude 'error_log' --exclude 'database.php' --progress --partial --rsh='ssh…
-
1
votes1
answer241
viewsProcess Synchronization (Fork) - "Segmentation fault"
I am trying to create 3 processes and use semaphore on them. The code below compiles, but in the middle of the execution there is an error called "Segmentation fault". I don’t know how to solve…
-
1
votes3
answers2968
viewsHow to install Android Studio on Linux distributions?
I am new as linux user, and installed the jdk 7 using this procedure below: http://www.edivaldobrito.com.br/como-instalar-o-oracle-java/ Then I used this procedure to install android as shown below:…
-
1
votes1
answer576
viewsHow to block access to a hostname
I need to block access to the site www.facebook.com of a Linux machine. I must block this on the machine itself, that is, I do not have the possibility to do this with a Proxy. Initially I thought…
-
1
votes2
answers757
viewsAnalyzing resource consumption by script
I have a server with S.Ubuntu Server 12.04 LTS, on this machine I have apache2 with PHP5 and PERL installed, but it consumes a lot of CPU resource, I wonder if it is a script with more problem for…
-
1
votes1
answer40
views./install_bam.sh and i get an error stating "cannot execute Binary file
I am trying to install software. When I try to run chmod + x . /install_bam.sh command to get permission to run . /install_bam.sh I get an error saying "cannot execute Binary file". The file…
-
1
votes1
answer298
viewsShellscript command cd
Which command do I use to go straight to folder login without having to put my name example cd home/leonardovillela.?
-
1
votes1
answer15977
viewsadd user to sudoers group on Ubuntu
How to create a user and put it in the sudoers list on linux? How to take an existing user and change your group to sweat?
-
1
votes1
answer63
viewsIncrement URL via concatenation and using urllib2.urlop
I’m using the code below to access and do the scrapp of the emails that, at least as far as I have seen, are in three identical Urls that vary only the Numconsulta_cadastro=. By executing the code…
-
1
votes1
answer115
viewsC portability on Linux
I’m starting to use the Compile and there they use Linux. I’m having some problems such as printing a text file. Check my program, it works on windows: #include<stdio.h> /* escreva um programa…
-
1
votes0
answers84
viewsVIM Ctrlp - Looking for files with the same name
I have a difficulty in using the VIM Ctrlp plugin, in case I have two files with the name "database", but Ctrlp only finds one of them as shown in the image. I am using the following setting in my .…
-
1
votes1
answer72
viewsProblem registering a directive on Tomcat using Eclipse on Ubuntu
Good morning I’m having trouble putting this directive -Dorg.apache.el.parser.COERCE_TO_ZERO=false in the VM arguments of Tomcat 7, it does not save settings. I already gave permission in the folder…
-
1
votes0
answers120
viewsJava Serial Communication
I developed an application in Java that communicates with microcontrollers through serial ports, in the tests performed in Windows everything went perfectly well but in Linux, more precisely in…
-
1
votes2
answers266
viewsHow to search for old files on Linux?
I need to use the command tail -f, to do a search on logs bygones. I know there’s a tail -f | grep "". But I don’t know how to find the old ones with the parameter I want. Can someone help me?…
-
1
votes2
answers73
viewsIgnore n no with bash >>
Hello I have a PHP script that I run on a server, I put it in a cron. For security and maintenance reasons I write all the return of STDERR in a file, but even if the file does not return me…
-
1
votes1
answer122
viewsProgram on Lazarus does not run with . Shared OS
I had a problem with OS shared on a Linux project with Lazarus, I found the solution on:…
-
1
votes1
answer2508
viewsHow to compile and run C program using Sublime Text on Ubuntu 12.04?
You can configure Sublime Text 2 so that it will embed a C code and then run and show the result in the terminal?
-
1
votes1
answer118
viewsWhy can’t I run the file located in the bin?
I need to use the file flare and flasm, which chown and permission are correct. Why can I execute only one and not the other? -rwxr-xr-x 1 daniela.morais sudo 64808 Mar 19 13:54 flare* -rwxr-xr-x 1…
-
1
votes1
answer278
viewsIs it possible to implement a "Recycle Bin" method in SAMBA?
It is possible to implement a "Recycle Bin" method in SAMBA? That is, when a user deletes a file in a SAMBA share, it is possible to send it to "Recycle Bin", instead of permanently deleting it? If…
-
1
votes0
answers52
viewsI installed Virtualbox on my Fedora 21 but every time I open a machine my note crashes completely
After many problems I managed to install Virtualbox in its latest version in Fedora21 also with its latest version of the kernel but when I open some virtual machine my note crashes totally and only…
-
1
votes1
answer222
viewsSystem Calls on Android
I’m creating a comparison between the system calls between Linux and Android. In Linux I can create some code and I’ve found some tables that demonstrate the system calls in it, but in Andorid, I…
-
1
votes2
answers753
viewsPut date in file generated by mysqldump
Hello, I want to date the file generated by mysqldump, I have a shell script that generates the dump, however I need to put the date that was generated in the file name Ex: //have this command…
-
1
votes0
answers39
viewsConnections between Virtual Machines - Vmware
I have 2 virtual machines, one with ubuntu server, another with windows 7 , the 2 machines are in the same class of IP, windows - 10.10.1.3 ubuntu server - 10.10.1.2 the 2 machines if "pingam" only…
-
1
votes1
answer308
viewsVPS to Magento What do I need to know?
I have only used shared servers with the Opencart platform for years, however I could really use a store in Magento now, but I read that it can be slow and does not work well in shared accommodation…
-
1
votes1
answer3127
viewsShare virtual machine VPN connection with real machine
I have a problem because I started using a few months ago Ubuntu and now recently migrated to Mint. Work developing with Java Web but to do tests I need to access the client’s database through a…
-
1
votes1
answer31
viewsHow to parallelize the compilation with make?
The compilation process is parallelizable, but by default the program make runs one recipe at a time. How to parse the build with make?
-
1
votes1
answer203
viewsError "No package dkim-milter available" Centos 5.8
I can’t install dkim-milter, I’m using Centos 5.8 x64bit [root@server ~]# yum install dkim-milter Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base:…
-
1
votes0
answers38
viewsproblem when moving images to a directory on the server
I am trying to move an image to a particular directory of the public_html server/ I do not know what may be happening, because it is a linux server and just a chmod 775 public_html/uploaded pointing…