When I try to start node on port 80, the error tells me that the port is in use. I imagine that’s Apache. What is the proper way to “take over” port 80, and keep it that way after a server restart? (Linux xxxx.__.com 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC 2011 x86_64 GNU/Linux) Answer…
Tag: linux
Building symbolic link shared library in a shared folder of VirtualBox
I am now building a C++ library in Windows and Linux. For windows I am now using Visual Studio for development, and for Linux I am now using Ubuntu via Virtual Box. In order to make develop much easier, I shared the folder of the project in Windows with Linux via the shared folder function of Virtual Box. I c…
Continuously monitor a directory in linux and notify when a new file is available
I’m a starter in Linux and scripting environment. My requirement is like this: From an asp.net application, a file will be generated and copied to a predefined folder on a Linux server machine. (I’m assuming this can be done by remote file sharing using samba server) A service or script or whateve…
undefined reference to system call added to kernel
After adding the system call to kernel I tried to compile the kernel. It ran for 2 hours and at the end threw undefined reference to <system call added by me> Any idea what had happened. Kernel 3.9.3 Steps followed are – Get kernel codes from www.kernel.org. wget http://www.kernel.org/pub/linux/ke…
How to start java program with hidden terminal
How can i create shell script for linux, Which will start my java program and then exit itself Like:- create new process with no terminal-> java “Test”. exit terminal itself. i have tried with Fork and exec but i couldn’t get any of it please help me Answer I solved this by using Python s…
Doesn’t sh support process substitution <(…)?
On a Centos 6 machine, this works: and this doesn’t: I get: Nevermind the grep and tail. The problem is with the process substitution thingy: <(…) Can someone tell me what sh does differently here? [EDIT] Thanks for the answers! The problem arose while using capistrano for deployments. It defau…
azure command line tool for linux machine to upload/download data to/from Azure Storage
I am looking for azure command line tool in linux. I found azure-cli, but its not supporting upload and download feature in azure storage (As per my knowledge). I found some CLI tools but those are running only on windows. those are AzCopy cloudcopy So can anybody suggest one best azure CLI tool, which can ru…
find matching text and replace next line
I’m trying to find a line in a file and replace the next line with a specific value. I tried sed, but it seems to not like the n. How else can this be done? The file looks like this: And I’d like to change it to this Here’s what I tried: Answer This might work for you (GNU sed):
The meaning of the /sys/class/net//type value
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…