linux

Locking Executing Files: Windows does, Linux doesn't. Why?

I noticed when a file is executed on Windows (.exe or .dll), it is locked and cannot be deleted, moved or modified. Linux, on the other hand, does not lock executing files and you can delete, move, or modify them. Why does Windows lock when Linux does not? Is there an advantage to locking? ...

What's in your cshrc?

What's in your .cshrc that gives you total command of the C shell? Aliases welcome too! One technique or command per answer. ...

How do I make my default (or any static) route permanent on Linux (Fedora 9 specifically)?

I've just performed a new installation of the very latest (Fall, 2008) version of Fedora 9 Linux and am perplexed that it never set the default route properly and that even traveling the labyrinthine ways of this OS, there's no obvious way. Of course, it's clear that one can do it on a one-off basis like this: route add default gw g...

How do I increase the /proc/pid/cmdline 4096 byte limit?

For my Java apps with very long classpaths, I cannot see the main class specified near the end of the arg list when using ps. I think this stems from my Ubuntu system's size limit on /proc/pid/cmdline. How can I increase this limit? ...

I need a tool to log Linux network traffic by IP address

I know that there are tools for this, but I cannot seem to find what I am looking for. It should capture the number of bytes of network traffic transferred between the host machine and other machines. I am not looking for a packet capture tool like wireshark but an auditing tool that will log the number of bytes periodically (every min...

Can vmWare Server be installed in a X-less host?

I am planning to move my vmWare's Virtual Machines from a Windows host to a Linux host (Ubuntu). It is possible to run vmWare Server in a Linux host that does not have the graphical environment (does not have X)? I just wonder how the graphical setup of Windows/Linux guest work in this case. Thanks in advance for your time. Victor Mar...

What Linux shell should I use?

I've used bash, csh, and tcsh. But I asked this question, and Jonathan informed me that csh isn't to be trusted. So what Linux shell is good for development. and why? ...

Flex development on Linux, what's a good free environment?

Hi, I would like to develop Adobe Flex applications using Linux and a free environment. I'd prefer a free as in freedom alternative, but as in beer would work as well. ;-) Are any of you developing Adobe Flex rich internet applications using such an environment? Or should I face the "facts" that Flex Builder is an essential tool for Fl...

Easy to extend IDE for C

Hi, I want an simple IDE/editor for C in Linux to which I can add features easily. For example: I want to add a right click menu item and a related action for the editor. It should be easy to extent and add any desirable functionality. I tried eclipse CDT but its to much of learning(I mean knowing the eclipse plug-in architecture and th...

Find all storage devices attached to a Linux machine

I have a need to find all of the writable storage devices attached to a given machine, whether or not they are mounted. The dopey way to do this would be to try every entry in /dev that corresponds to a writable devices (hd* and sd*). Is there a better solution, or should I stick with this one? ...

How Do You Programmatically Set the Hardware Clock on Linux?

Linux provides the stime(2) call to set the system time. However, while this will update the system's time, it does not set the BIOS hardware clock to match the new system time. Linux systems typically sync the hardware clock with the system time at shutdown and at periodic intervals. However, if the machine gets power-cycled before o...

Should I start distributing my systems as Wine ready?

I have tested all my systems developed in Delphi (in Windows XP) on Wine (OpenSuse Linux) and they work perfectly. My question is: should I start distributing my systems (on a local basis that I can support) as Wine ready or are there other issues I should take into account? ...

Is gtk+ responsible for the awkward look of most linux applications?

Now, I know this is completely subjective, so please don't flame me. I've never been entirely satisfied with linux whenever I decided to install a distro like Ubuntu, Fedora etc. because of their awkward positioning and spacing of widgets. Have a look at this: Notice the awkward spacing of the text field's text. I've seen many Gno...

How to get a list of installed True Type Fonts on Linux using C or C++?

How can my app get a list of the True Type Fonts that are available on Linux. Is there a standard directory where they are stored across different distributions? Or some other standard way to locate them? ...

How to join a thread that is hanging on blocking IO?

I have a thread running in the background that is reading events from an input device in a blocking fashion, now when I exit the application I want to clean up the thread properly, but I can't just run a pthread_join() because the thread would never exit due to the blocking IO. How do I properly solve that situation? Should I send a pth...

How does the 'ls' command work in Linux/Unix?

I would like to know exactly how the "Is" command works in Linux and Unix. As far as I know, ls forks & exec to the linux/unix shell and then gets the output (of the current file tree. eg./home/ankit/). I need a more detailed explanation, as I am not sure about what happens after calling fork. Could any one please explain the function...

How to setup a linux C++ project in Eclipse?

I have an existing C++ project on a linux environment, and would like to import it into the Eclipse IDE. Not sure if I should start a new Eclipse C++ project, or if there was some way to import the source files? ...

last-modified header and linux file system

hi guys, im using httpclient and last-modified header in order to retrieve the last updated date of an html file however when i try this on a linux box it returns yesterdays date but when i use a windows machine it returns todays date. is anyone aware of issues using this header field in linux? ...

primary partition limit on Linux

Hi [Linux Newbie]- I'm going to buy a server to host an Oracle database. The server will be running Red Hat Enterprise Linux 5. The server will have 6 hard drives. I know there is a limit of 4 primary partitions in Linux. Here is my question: Is the 4 partition limit per physical hard drive (so I could have 6 disks x 4 primary part...

Is there a way to change another process's environment variables?

On Unix, is there any way that one process can change another's environment variables (assuming they're all being run by the same user)? A general solution would be best, but if not, what about the specific case where one is a child of the other? Edit: How about via gdb? ...