Currently all the solution mentioned for getting the MAC address always use eth0. But what if instead of eth0 my interfaces start with eth1. Also on OS X the interface names are different. Also the interface eth0 may be present but is unused. i.e. not active, it doesn’t have an IP. So is there a way I c…
Tag: linux
Changing the static IP of Beagle Bone Black USB0 [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
how to escape single quotes in grep
I found a few questions here similar to this but they are not quite identical. I want to grep for the text ‘true’ format in certain files. How do I do it? Not sure how to escape the single quotes around true. Answer Just wrap the string within double quotes: Test
Unable to claim interface: Resource busy
I am working with USB4Java (the low-level version) and am basically working from this code here. I’m working in Ubuntu, and I was running into a problem about permissions but was able to resolve by running eclipse using gksu from the terminal. Now I am having a new problem: When I get to the point in th…
Convert RBG to CMYK with use of ICC profile in PHP
I am currently building an online APP which allows users to pick a color for text from a usual javascript color picker. I want to convert the returned value to CMYK and I know there is not one simple run-of-the-mill method to achieve this, given there are ICC profiles and all that. I still want to achieve a r…
how to find Linux module path
in the linux, lsmod lists a lot of modules. but how can we find where those module loaded from. for some modules,linux command “modprobe -l” shows a path but some are not. edited i also tried “find” and “locate”. both of them lists all kind of versions Answer You can use &#…
How can I split a CA certificate bundle into separate files?
I’m working with OpenSSL and need a sane default list of CAs. I’m using Mozilla’s list of trusted CAs, as bundled by cURL. However, I need to split this bundle of CA certs, because the OpenSSL documentation says: If CApath is not NULL, it points to a directory containing CA certificates in P…
Puppet referring to a module inside a module
I’m using Puppet 3.5.1 on Linux 6 machine. I have a local module “A” that includes a sub-module “B”. Such that sub-module “B” is located in “/etc/puppet/modules/A/modules/B”. I refer to sub-module “B” in my module “A” classes: (/etc…
What is a .so.2 file?
I compiled Intel TBB from source using GCC. It generates a libtbb.so and littbb.so.2. Looks like the .so.2 file is the real shared library, libtbb.so just contains a line of text INPUT (libtbb.so.2) What is the purpose to generate these two files instead of one? For the INPUT (libtbb.so.2), what is the syntax…
All possible exit codes for cp
Looking at the man pages for cp, I only found that the command exits with 0 when copy succeeds with no error, and with a number greater than 0 on any error. However I couldn’t find any detailed description on specific exit codes mapped to specific cases. Is there such a description anywhere, is it even …