linux

How do I mount a remote Linux folder in Windows through SSH?

I'm a blind student currently in a system admin/shell programming class. Although ssh works fine for executing commands like ls, pwd, etc editors do not work well with my screen reader and an ssh session. I was wondering if it is possible to mount a Linux folder over ssh so it appears as a windows drive? This way I could edit any files I...

Is it possible to host an ASPX web site on Linux?

We are trying to convert a lot of things at work over to Linux Red hat. Recently Windows Server 2003 was installed. We are currently hosting an asp .net web site on the windows server machine, what I'm wondering is if there is any software that will allow you to host the same web site on linux? ...

Install of Tomcat 5.5 on Ubuntu (using apt) leaves CATALINA_HOME unset

Hi, I'm setting up my development environment for writing web applications using Java, and I'm in need of some help. What I have done: Installation of Java SE 6 from Sun I installed (sudo apt-get install …) the following packages (one at a time as some of them requires user interaction) to get Java SE 6 from Sun: sun-java6-bin sun-ja...

best language / framework for a web CRUD app with roles on Linux

I have a Linux web server and I'd like to make some database tables (currently in Access) available on the web for CRUD. There needs to role-based security. What's the quickest path to develop this? Also, which database would be best? I already have mySQL running on that box if it makes any difference. ...

What is "Memory Page out Rate"

Could somebody please tell me what is "Memory Page Out Rate". I have seen this in "HP Open View" server monitoring tool and tried googling it. Would appreciate if some expert can clarify. If page out rate is too high as 200+ per second, can it crash the server? Thanks in advance ...

Are CRLF lines ok in a Rails project deployed on Linux?

I have a Git repository (originally CVS, then SVN, now Git) containing a Rails project that has been deployed on Linux for a while now. Everything seems to run fine. Now that I've converted to git, I see that many of my files in the repository contain CRLF line endings. I'd love for it to all be consistent (LF), but not at the expense...

port aggregation on Linux

I have to detect port aggregation configuration on Linux. Supposing that the ifcfg-* files were not updated (configuration was done with ifenslave only), how can I understand which eth? devices are slaves to which bond? devices? ...

Is it safe to wake_up_interruptible() from within a tasklet?

I have a kernel module that provides data to a userland process through read(). That process blocks on read until data becomes available. I achieve this through a wait_event_interruptible() in the read method. Data comes from an interrupt handler, which sucks it into memory, then schedules a tasklet to process it. The original code sche...

Change command to one that does not fork and use up resources

Hello all, I have the following command which deletes files that are one day old and that are of mp3 file type. find /home/get/public_html/audio -daystart -maxdepth 1 -mtime +1 -type f -name "*.mp3" |xargs rm -f The problem with this is when i run it, it sometimes says "fork": resource xargs not available. Does this mean, t...

What can I use to connect Java to Video4Linux?

I need to talk to Video4Linux (to capture output from a webcam) on a debian system running on an armel system (OpenMoko). JavaMediaFramework won't work in this case as it only have x86 and AMD versions. The linux kernel is 2.6.24 (with the v4l drivers compiled in separatly) and I cannot upgrade it (as it is not available on my hardware...

What's the recommended workaround if numeric_limits<double>::has_infinity is false?

I need to check a double value for infinity in a C++ app on Linux. On most platforms this works by comparing with std::numeric_limits<double>::infinity(). However, on some old platforms (RedHat 9 for example, with gcc 3.2.2) this is not available, and std::numeric_limits<double>::has_infinity is false there. What workaround would you re...

Access X11 display from empty environment (bash)

Greetings! I am implementing a backup solution, and I need to access the X11 display for getting a password from the user and displaying status information. I have tried setting $DISPLAY in the script to :0.0 (hardcoded), but xhost and misc complain that they cannot open the display. What should I do? PS: The script is here: http://dpa...

Linux: launch window, capture screen

I need to write a Red Hat Linux command line tool that launches a window and captures its appearance to disk as a JPEG. Typically the target machines don't have graphics cards, but we can install any software components (e.g., X). Question or two: What libraries or tools might you suggest for this? If I were to use something like GTK...

Game programming on Objective-C and linux

I'd like to give Objective-C a try in game programming. The problem is I'd need some tools and libraries for this. First thing that comes into mind I need is the GUI and graphics library. What choices do I have? ...

What's an easy way to read random line from a file in Unix command line?

What's an easy way to read random line from a file in Unix command line? ...

How Do I Install Ruby Shoes On x64 Linux?

Hi. I recently discovered Ruby Shoes, which sounds rather useful for a beginner like me. The only the problem is that my laptop is x64, while the only Linux package is i686. I tried it anyway and it didn't work for me, I kept getting an error. I didn't expect it to work, of course, but is there still a way to get Shoes on x64 Linux? Than...

How to easily and simply, schedule a cron job in PHP -- Rails has BackgroundRB.. Thanks for your help!

How to easily and simply, schedule a cron job in PHP -- Rails has BackgroundRB.. Thanks for your help! ...

Looking for SFTP Server in Embedded Environment

I have an embedded environment with a limited amount of storage available. I want to run an SFTP server in this environment and the Linux version I'm using does not contain one. Does anyone know of a set of c-libraries for a Linux SFTP server that is lightweight? (ie. the binary is small in size, much less than 1MB) NOTE: The librarie...

How to use multiple versions of GCC

We have a new application that requires glibc 2.4 (from gcc 4.1). The machine we have runs on has gcc 3.4.6. We can not upgrade, and the application must be run on this machine. We installed gcc 4.1, however, when it comes to compile time it is using all the includes, ect, from 3.4.6. How do we get around this? Any suggestions...

Is there a way to figure out what is using a Linux kernel module?

If I load a kernel module and list the loaded modules with lsmod, I can get the "use count" of the module (number of other modules with a reference to the module). Is there a way to figure out what is using a module, though? The issue is that a module I am developing insists its use count is 1 and thus I cannot use rmmod to unload it, b...