Questions tagged as 'linux'

1
answer

How to access Virtual Machine (made in qemu-kvm) [closed]

I have a Linux Centos7 server, with no GUI. Using Qemu-KVM I was able to install a virtual machine with windows2008server inside it. I used the following command to create the virtual machine: virt-install --name=windows --ram=3096 --vcpus=1...
asked by 05.01.2016 / 14:40
1
answer

Error creating mysqli connection

I'm trying to create a connection through MYSQLI plus this one giving error Fatal error: Call to undefined function mysqli_connect () in / home What can this be? $link = mysqli_connect("localhost", "xx", "xxx", "xxx"); if (!$link) { echo "...
asked by 11.10.2015 / 16:57
3
answers

Make a Shell Script bash that extracts to a new file all names and nr of women whose number begins with "91"

Consider that there is a file "file1.txt" which has for example: Name of the person, Sex, Zip Code, Mobile Number, Mobile Phone Mark ... How do I write a bash shell script that extracts to a new file all names and phone numbers of all fema...
asked by 25.11.2015 / 15:12
1
answer

Comparing char variable in C

#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { struct cmd1 { char cmd[20]; }; struct cmd1 cmdd; char cmd_ti[3] = "ti"; char cmd_tela1[2] = "a"; printf("\nTeste ->...
asked by 29.10.2015 / 21:53
1
answer

Count number of occurrences in a for loop {Bash}

I have the following script #!/bin/bash for file in *.jpg; do convert $file -resize 1920x1080! -blur 0x8 alterado$file; echo "A Processar o ficheiro $file" done I want to echo with    The processor the xpto file (1 of...
asked by 11.11.2015 / 20:03
1
answer

spyder can not read serial port

I created the following test program: import serial porta = '/dev/ttyUSB0' baud_rate = 9600 try: Obj_porta = serial.Serial(porta, baud_rate) valor = Obj_porta.read() print valor Obj_porta.close() except serial.Se...
asked by 19.08.2015 / 21:09
2
answers

SSH in Linux Using ubuntu [closed]

What command do I use for SSH authentication also by user and password to access the server without having the need for this by making encrypted password "" I installed a server on Amazon and for that I need to access the authenticated key un...
asked by 14.09.2015 / 21:07
3
answers

How to calculate the CPU percentage?

When you open the system monitor , and windows , when you open the linux / em>, we have a percentage of CPU. How do you get to this code? How to get to this calculation using linux calls?     
asked by 09.06.2015 / 21:05
1
answer

Permission to shutdown! [closed]

How do I give permission to execute the command shutdown to user? I'm using OS Linux Mint 13.     
asked by 25.06.2015 / 20:54
1
answer

Shortcuts - OpenSuse 13.2 [closed]

I want to develop shortcuts in Linux OpenSuse 13.2. I would like to know how to do this by pressing super+e it opens the arquivos . I know that to do this I need to go in configurações->teclado->atalhos , but I do...
asked by 27.05.2015 / 14:05