Questions tagged as 'linux'

1
answer

Creating new users through Shell Script

I'm trying to create a shell script to add new users to the GNU / Linux system But without entering native commands like adduser or useradd in the script, it would be something on the nail. I'm with something almost fine (ready!), bu...
asked by 19.12.2016 / 02:48
1
answer

Errors compiling program using MySql resources [closed]

I'm learning how to use MySql , but I had some problems compiling a program in C using MySql . Here are the errors below: gcc: error: Usage:: No such file or directory gcc: error: [OPTIONS]: No such file or directory gcc: error: Options:: No...
asked by 05.09.2016 / 22:53
1
answer

Installing PHP 7 on the Linux AWS EC2 server

I am running the following command: sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt My intention is to install PHP, but this is returning the error: >Lendo listas de pacotes... Pronto >Construindo árvore de dependências...
asked by 08.01.2017 / 17:27
1
answer

Program settings continue even after they have been uninstalled [closed]

I'm new to Linux and I noticed that some program settings continue even after they have been uninstalled. I'm gonna explain. For example: I installed the Cairo Dock. So to uninstall I used the command: sudo apt-get remove cairo-dock Then I...
asked by 27.07.2017 / 20:35
1
answer

When saving file in the folder of the server is asking for root access [closed]

I researched my problem and found only host solutions (none of which applied to the local server), does anyone know how I disable this stop asking the root password every time I save a file change with extension. php ? (tried chmod in th...
asked by 21.11.2016 / 02:57
1
answer

How to run a php socket

This script below is a php socket for receiving data from a tk102 vehicle tracker. The problem is that I think it has to be run in a specific folder on the server and I do not know how to do that, and have that CLI script question that I do not...
asked by 08.04.2016 / 16:41
3
answers

Apache2 error in linux

I installed everything right on Linux, I threw my folder in the www directory when I opened the broswer and received the following warning:    Access denied for user 'root @ localhost' (using password: NO) How do I solve it?     
asked by 21.01.2016 / 13:58
1
answer

Problem installing RPM on Ubuntu [closed]

I'm trying to install some RPM packages in my Ubuntu , but I'm getting messages from dependency failures. The strange thing is that all the dependencies are already installed in my SO . I created a deps directory with 4 rpm: eve...
asked by 24.03.2016 / 13:44
2
answers

Linux runtime

I need to take the average run time and CPU de 30 execuções consumption of a program done in Python . I have to use the command time of Linux . Since I've never worked with Linux before I'm having trouble doing t...
asked by 03.06.2015 / 21:15
1
answer

Monitoring folders in Linux

I need some help. I need to mount a shell script that is monitoring 4 folders where each one receives a file with template different from the other one. I need an e-mail to be sent to me when I get there. I am new to shell and have not...
asked by 29.04.2015 / 14:43