For each network interface linux contains a directory in /sys/class/net There is a file with name “type”. Its value is: 1 – for wlan0/eth0. 772 – for lo. 512 – for rmnet0/rmnet1/… So what is the meaning of these values? Where can I find any descriptions? Answer This header …
Kernel Modul and SSL
at the moment I am working on the kernel module of ccn-lite (http://www.ccn-lite.net/). For that I need some security functionality (sha1 and public/private key authentificaton). For the user-space I use the openssl library, but I cannot use a library in the kernel module. It is also hard to pick the function…
What is the difference between the C programming language and C programming under linux?
What is the difference between the C programming language and C programming under Linux? Are the syntax same in both them? Or is the difference only when you execute the program? Answer The C language is governed by the ISO approved C standard and it does not take in to account the underlying platform on whic…
How to execute a sudo command with in a C/C++ Program?
I would like to execute one of my sudo commands through one of my C demon. I use the command system(echo MYPASSWORD | sudo -v -S); in my C code. It runs fine when I execute the demon. However, when I exit from the terminal it fails with a return value of 256. Please suggest to me some alternate way
Can’t access phpmyadmin after installation
I’m trying to install phpmyadmin on my new server, following this guide then added phpmyadmin to apache configuration: and restarted apache: All this by SSH. But now when i try to access: x.x.x.x/phpmyadmin all that i get is that my browser downloads a file… Can someone help with this? Answer If y…
How to find file creation date in linux using java?
I need to get file creation date in linux machine using java. Many workarounds worked good in windows but failed in linux. Need a way to get file creation time in linux. Please note that my linux machine has java6 installed. Any help is much appreciated. Thanks in adavance. Answer You can use stat command in …
Sonar Qube uninstall linux
To install sonar there is a sonar.sh for it. How to uninstall sonar then on linux shell? Is there any script to remove all and don’t leave any trash in the system? Answer To start Sonar : sonar.sh start To stop Sonar : sonar.sh stop To uninstall Sonar : remove the Sonar installation directory. That̵…
XBee Linux Serial Port on Raspberry Pi
I have 2 Adafruit XBee 2 Modules each connected with 1 FTDI cable (ttyUSB0 and ttyUSB1)to the Raspberry Pi via a USB hub. I configure both XBee modules independently to be on the same PAN and then I try to read in a while loop with one, and write a simple message in a while loop in the other. For
Jenkins dead but pid file exists
I am running into an issue where a fresh install of Jenkins is not accessible. This is the error and OS details: Upon starting jenkins results in “OK” status message however if I run status-all | grep jenkins it results in: Running on Red Hat Enterprise Linux Server release 6.2 (Santiago) with Yum…
Git merge directories that have become separated
Not quite sure how to explain this clearly, but here goes. Due to a bug in Tortoise-git, we’ve ended with a situation like this; All our code should be under a directory structure like this (this is Symfony2 project); but, due (we think) to the bug in Tortoise-git, when we pull the code onto a linux box…