I’m trying to install things in Linux (Crunchbang Linux – a derivation of Debian), and I’m getting errors which point towards mongodb-20gen. When I try to remove it using :- I get … I read something on here for similar errors with MongoDB, and it suggested removing mongo-clients, so, I…
How to check if a service that I don’t know the name of is running on Ubuntu
I do not know the service’s name, but would like to stop the service by checking its status. For example, if I want to check if the PostgreSQL service is running or not, but I don’t know the service’s name, then how could I check its status? I know the command to check the status if the serv…
How to start node.js on port 80 on a linux server?
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…
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):