Questions tagged as 'linux'

2
answers

How to identify a USB device?

I have two types of devices (A and B) that communicate serially via USB and can be connected to the PC using linux. Is there a way to identify which device is connected without having to talk to it? Since each would be handled by a very diffe...
asked by 25.02.2016 / 14:19
3
answers

Script to query external IP [closed]

How can I get the address of IP of the person who logged into my system? I searched Google and all I find are queries on third-party sites ( link , # Does anyone know of any links or scripts (PHP, Python, ...) that do this?     
asked by 29.06.2015 / 18:41
1
answer

Select database record for variable

The code below aims to select a database record and save it in a variable for later use of the data: #!/bin/bash dbName='basedados' dbUser='utilizador' dbPass='password' row=$(echo "select file_id, file from catalogue__pdf_file WHERE is_conv...
asked by 31.03.2015 / 21:37
2
answers

Copy everything before the first blank line

I have a file with several blocks of text separated by a blank line. Ex.: block1 block1 block2 block3 block3 I need a solution with sed, awk or perl that finds the first blank line and redirects the previous block to another file a...
asked by 11.12.2015 / 19:34
0
answers

How is the process of installing the letsencrypt.org certificate on Linux on Apache servers?

I really enjoyed the idea of using letsencrypt.org certificate. I found several tutorials on the internet, including this on Digital Ocean. All the steps worked correctly, but as I do not speak much English I would like more detail on the...
asked by 09.03.2017 / 15:43
2
answers

How do I configure crontab to run URL, Linux ubuntu command

I have created 4 methods and want to execute them by accessing the link. I have already tested the methods and they are all working normally, but I have already tried several configurations for crontab -e . I've tried: 0 * * * * wget...
asked by 11.02.2016 / 03:54
4
answers

Installable PHP application architecture [closed]

I'm trying to improve my PHP applications. In this goal I would like to create an installer for a web application, a website for example. I already know linux packages like rpm and deb, that's not what I'm talking about, because some servers...
asked by 24.12.2013 / 17:40
3
answers

Alternatives to develop in C # in Linux? [closed]

My notebook has Ubuntu 14 operating system installed. I have great desire to join development in the CSharp language. But I would like to know if there is any good alternative in OS like Linux, since it does not have a Visual Studio of life....
asked by 29.04.2016 / 14:37
3
answers

Bash - Mysql Backups

I set up the script below to perform backups of three Mysql databases. I wonder if it's correct. #VARIAVEIS DATE='date +%Y%m%d-%H%M' HOSTNAME1="xxxxx" HOSTNAME2="yyyyy" HOSTNAME3="zzzzz" USER='xyzedmar' PASSWORD='xyz2' DATABASE1='xxxxx' DATABA...
asked by 07.12.2015 / 22:51
1
answer

Error installing mongodb 3.0 on linux Ubuntu 15.10?

I'm trying to install MongoDB on Ubuntu 15.10 , but, I can not install mongo always returning the following error when starting the service.    Failed to start mongod.service: Unit mongod.service failed to load: No such file or d...
asked by 22.11.2015 / 19:19