linux

Deploying .Net Web Application to non-windows server

My question is what is needed and what are the restrictions of deploying a .Net web application to a specific server. Does the server need to be running windows? Does the server need to have the .Net framework installed on it? (is this possible with non-windows servers?) Does the server need to have IIS installed on it? (is this poss...

keeping home directories synchronized on to Linux Boxes

I have two servers, computer A and computer B, both running Linux. I need to write a program or a shell script which will continuously monitor the contents of my home directory on computer A and if anything changes, copy the changes to my home directory on computer B such that both home directories are always the same. (Any changes made ...

PDF on Linux: Combine font subsets and replace Type 3 with Type 1

I have a PDF file that I'd like to post-process on Linux. In particular I'd like to: Replace Type 3 fonts with Type 1 fonts Replace multiple subsets of the same font with a single subsets (the subsets are the result of including figures in LaTeX, where each figure contains a subset'ed font) With Windows these two steps are possible w...

Compiling for windows on linux

Is it possible to compile a Win32 program on a Linux computer without the use of an emulator or Wine or anything? ...

Existing C++ *nix system library?

There are several good cross-platform libraries, by which we usually mean something that wraps the commonalities of Windows and *nix. Is there anything for developers that don't really care about Windows but want the benefits of C++ wrapping *nix system calls? I am thinking of a library that reduces the tedium of struct setup, checking...

Why does FHS have a usr directory

It appears you can put all you need in /bin so why do we bother with the /usr/bin directory? ...

auto setup/deploy development environment

I want to make a script of sorts such that I can automate the mundane tasks that I do to setup my linux box after a clean install. These steps are namely: Install perforce(as I work with perforce), or git and checkout code - This requires the user to enter a user/password Install software such as sun-jdk, maven, mysql, tomcat, etc Inst...

svn Merge Problem (3 levels of svn)

Hi all, I am new to use svn and the company in which I work uses three levels (I don't know whether this is a correct word to use here) of svn. I mean the developers are provided a working directory on a testing server. When we commit, it goes to the dev server. When a manager commits it from there it goes to production server. I am a d...

Printing a random number returns a negative number. (/dev/urandom)

I have written a source code to print random numbers within a specified limit.But it is also returning some negative numbers,is this normal?If not how do I rectify it? #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> int main( int argc, char* argv[]) { int fd, n; fd = open("/dev/urandom", ...

how to plugins gwt for eclipse 3.4.x in linux

Im using eclipse 3.4.1 , i want to install gwt using eclipse plugins. how to install gwt in linux. Thanks is advance. ...

How to increase thread priority in pthreads?

I am using pthread in Linux. I would like to increase the thread priority by setting the parameters sched_param.priority. However, I could not find much info from the net regarding the range of the thread priority I could set, or about the description of the thread priority. Also, I would like to know about the relative thread priority ...

gdb: virtual memory exhausted

Hi, I am trying to debug an application using gdb on Linux. However, when loading symbols from the shared library I want to debug, gdb always fails with the error: gdb/utils.c:904: internal error: virtual memory exhausted: can't allocate 5592 bytes. uname shows unlimited for all parameters including vmemory. Any ideas on how to resol...

How important is it to learn linux?

I am coming from the embedded background and mainly working in the testing domain. I am just planning to shift my career to linux (embedded linux mainly). My doubt is how far can this help me in my career upliftment? Is this a right decision to go on since I have been working in the embedded testing domain for more than 4 years. ...

How to get unique `uid`?

I'm making a bash script which should create an ftp user. ftpasswd --passwd --file=/usr/local/etc/ftpd/passwd --name=$USER --uid=[xxx] --home=/media/part1/ftp/users/$USER --shell=/bin/false The only supplied argument to script is user name. But ftpasswd also requires uid. How do I get this number? Is there an easy way to scan pas...

How to get keyboard state in Linux?

I want to check if the user pressed down the SHIFT key, when program starts. (That means, press down the SHIFT key before the program is started) It's a simple console program, nothing related to X. This maybe similar to Win32 GetKeyboardState() function. I want to know whether I can do this and how, but not any pros and cons with acc...

How can find using c-program whether my machine is 16-bit or 32-bit or 64-bit

Can somebody give simple c-program to find whether my machine is 16-bit or 32-bit or 64-bit ? ...

How to solve a linear system in Linux shell?

Hi, Does anyone know of a Linux command that reads a linear system of equations from its standard input and writes the solution (if exists) in its standard output? I want to do something like this: generate_system | solve_system ...

adding python packages to uClinux

I have distribution of uClinux, throught "menu config" I check python and compile("make"). I have python on my chip now. There is a binary executable file /bin/python. But what about python packages? There are only some basic packages as sys, time etc. I want to add for example package pyserial for serial port. Before compilation I ca...

uncompressing a large number of files on the fly

i have a script that i need to run on a large number of files with the extension *.tar.gz. what i want to do is instead of uncompressing them and then running the script, i want to be able to uncompress them as i run the command and then work on the uncompressed folder, all with a single command. i think a pipe is a good solution for t...

Tell me what the compiler does here?

Hi.. Please tell me what it does? $ ar -r libsldap.a ...