USB-drive serial number under linux C++

Is there any way to determine s/n of usb-drive in linux using C++ ? If not C++ is there any other way different from hwinfo -disk and hdparm -i ?

How can I implement a timeout for a qx(command)?

How could I implement in this piece of code a timeout: if the "hwinfo --usb"-command didn't return anything after a certain amount of time, ( stop the command and ) do a return or die from the sub...

Cannot access running instance from client - Eucalyptus

I have set up a private cloud under ubuntu 10.04 server through eucalyptus packages (v 1.6.1) Here are my configurations CLC,CC,WS3, SC (Frontend) - 10.X.X.29 NC - 10.X.X.30 NTP...

PAPI (performance application programming) not working properly?

I downloaded version 4.4 off the site, built it in my own directory and tried writing a small main which kept giving me that num_counters was zero. I then looked at ctests and picked hwinfo.c, and...

Get hard drive model name with bash

I want to get the various model names of my hard drives using bash. I can do it if there's just one, using hwinfo like this: hwinfo --ide|grep Model|sed -ne '/Model/s/.*Model:...

encrypted value is not coming back the same each time

I am using this example that Brett gave: https://stackoverflow.com/questions/202011/encrypt-decrypt-string-in-net And doing this: public static bool VerifyLicenseKey(string applicationGuid) { ...

SimCardInfo issue on Blackberry10

I'd like to display/get a read on IMSI (tested it on Dev Alpha B). The issue is that I could get a read on others property of SimCardInfo such as Mobile Network Code, Mobile Country Code, Serial...

C/C++ - HWInfo - libhd - How to get the name list of all available devices?

On Linux, one can use command "hwinfo" (after installing it) in Terminal to print a lot of device information. While this is nice, I'd also like to utilize libhd (included in hwinfo) to get device...

How to add a DLL Plugin without NSH file into my NSIS script?

I'm using NSIS 2.46. Plugin I'm trying to use is HwInfo plug-in (Official Link). The ZIP file comes with some source codes and a DLL file. I put the HwInfo.dll inside \NSIS\Plugins directory. When...

NSIS script that can detect Boot Camp running on Mac

I've written an NSIS installer that can run on Windows that is running on Boot Camp, running on Mac Pro hardware. Is there a way my installer can identify that my windows is running under Boot...

Webcam visible but "no frame" on VMWare Ubuntu guest

I have asked this question previously. But I tried to do more research before posting it again. Here's the issue : I have installed Ubuntu 12.04 on VMWare 6.0 with Windows 7 as host. I am trying...

Retrieve Intel PCH temperature with Powershell

I'm trying to retrieve the intel PCH temperature with powershell. I cannot find any way to retrieve this temperature using wmi. The chipset on my machine is HM77. I've tried reading through the...

How to get IMEI number in blackberry 10 native

I am trying to get the Default information of Hardware device in blackberry 10 native, So basically i am trying to access IMEI or SERIAL NUMBER of the device. I havetried using following...

How to get multiple graphic cards information using nsis?

I am trying to create an installer using NSIS and there is one custom page for checking hardware requirement. Currently, I am using the HwInfo plug-in, but the problem is the function...

Bash Script to find hardware info giving "Memory Fault"

I am trying to write a script in work to find out the hardware information in a cluster. I am trying to run the below script, and it is throwing a "Memory Fault" error. The node.txt file takes in...

How to get hardware information without parsing /proc/*info files in C program

How to get the hardware information using C code in Linux like information regarding CPU, RAM, Network adaptor, Video adaptor, Sound adaptor etc.? I don't want to parse /proc/*info file and also...

How to get CPU clock frequency on an ARM/Linux machine

The answer seems pretty obvious I guess but none of the possible answers given in https://superuser.com/questions/406141/how-to-get-an-arm-cpu-clock-speed-in-linux applies to me. cat /proc/cpuinfo...

how to get disk details(vendor name, capacity, etc.) programmatically in C in Linux

I want to write a simple C program to dump the detailed information about disks currently installed in my computer. There are chucks of command line tools suit to my need, such as hdparm -i...

how to detect device connect on android?

I want to detect my connected device using an app on android. I want to detect a keyboard, mouse, and flash drive. I am currently using the hwinfo command and Timer //keyboard detect class. public...

Update mysql with C# and PHP

hi i have mysql db and php file called upd.php i want update my database record with c# and php i used bellow code[Method 1] everythings is ok and work fine PHP Code: <?php $servername =...

How to debug USB HID scancode-keycode translation in Linux

I have recently converted a 122-key terminal keyboard to USB as a configfs USB gadget (the keyboard portion is using HID codes), it works quite well in except that I cannot seem to get my...

How to get multi line result from serial port

I'm working with winform project and trying to send a command to the serial port and receive data from it. I'm expecting a multi-line response, but using the following code I'm getting only the...

How do you color lines that begin with string1 but do not end with string2

I run a weekly crontab that collects information and creates a log file. I have a script that I run against this weekly file to output only specific status lines to my display. #!/bin/sh # store...

Cannot link to Crypto++ on Debian due to undefined references

I have a project that depends on Crypto++ on Debian 8.10. The project has a library (called common that uses Crypto++ ) and the executable (hwinfo). I'm using Cmake for building purposes. Here is...

Logitech keyboard on linux, could not set config as device or resource is busy

I have a Logitech G613 keyboard for linux. It works fine except that the G(1-6) keys are mapped to F(1-6) by default and there is no way to remap them without remapping the F keys. So, I went...

impossible to run xvfb screen at more than 8bit depth

On an ubuntu 16 server ( SSH ) When launching Xvfb :99 -screen 1 1024x768x8 & Works fine, but when trying to launch with 32 bits as follow Xvfb :99 -screen 1 1024x768x32 & I am getting that...

ffmpeg, /dev/video0, -f decklink

I'm trying to capture video from a PCI card, the Blackmagic DeckLink Mini Recorder, via ffmpeg, on a headless host running Ubuntu 18.04.2 LTS, hopefully with a command like ffmpeg -f decklink -i...

Linux Opensuse Network Manager service is not running - OPENSSL_1_1_1d not found

I installed updates on my HP Opensuse Laptop and I cannot get wifi to connect anymore. The Wifi menu in the system tray is missing. I can see bluetooth, but not wifi. Upon investigation, Network...

Problem with gluoncv Object Detection "Train Faster-RCNN end-to-end on PASCAL VOC" example

I'm new on gluon and I decided to run the examples to get familiar with the coding style (I used keras a couple years ago and this hybrid style is a little bit confusing to me). My problem is that...

Enable wifi wlan adapter Ubuntu 20.04 LTS on Raspberry Pi 3 Model B

I have a Raspberry 3 Model B which has a BCM43438 wireless LAN and Bluetooth Low Energy (BLE) on board and recently installed Ubuntu 20.04 LTS. Thanks in advance for looking and let me know if...

Relevant tags