linux

linux uptime history

How can I get a history of uptimes for my debian box? After a reboot, I dont see an option for the uptime command to print a history of uptimes. If it matters, I would like to use these uptimes for graphing a page in php to show my webservers uptime lengths between boots. Update: Not sure if it is based on a length of time or if last g...

Which is the best Linux C/C++ debugger (or front-end to gdb) to help teaching programming?

I teach a sort of "lite" C++ programming course to novices ("lite" meaning no pointers, no classes, just plain old C, plus references and STL string and vectors). Students have no previous experience in programming, so I believe that using an interactive debugger would help them understand program flow, variables, and recursion. The cou...

React on global hotkey in a Java program on Windows/Linux/Mac?

A Java6 application sits in the system tray. It needs to be activated using a hotkey (e.g. Super-G or Ctrl-Shift-L etc) and do something (e.g. showing an input box). How do I do that on: Windows (XP or Vista) OS/X Linux (Gnome or KDE) ...

What is the location of OpenOffice.org templates in Linux?

I'd like to install some presentation templates, but don't know where to put them... Thanks a lot ...

Is there an alternative to gdb for Linux systems?

Please consider both commercial and free debuggers. Would like to see also the pros and cons for each. ...

Segfault on stack overflow

Why does the linux kernel generate a segfault on stack overflow? This can make debugging very awkward when alloca in c or fortran creation of temporary arrays overflows. Surely it mjust be possible for the runtime to produce a more helpful error. ...

What single plugin would you recommend for gedit?

I've just discovered the power of gedit thanks to all of the plugins that are available for it. Edit > Preferences > Plugins Which plugin could you not live without? ...

How do I use sudo to redirect output to a location I don't have permission to write to?

I've been given sudo access on one of our development RedHat linux boxes, and I seem to find myself quite often needing to redirect output to a location I don't normally have write access to. The trouble is, this contrived example doesn't work: sudo ls -hal /root/ > /root/test.out I just receive the response: -bash: /root/test.out: ...

Is it possible to build a Linux/Motif Eclipse RCP application?

Greetings, I am trying to build an Eclipse application that would work with a linux/motif installation target. However, this seems not to be possible even though the export option is available in the product export wizard. I've checked the content of the delta pack and indeed, the packages for linux/motif are missing. After checking ...

What's the best linux distribution for ruby on rails development and hosting ?

I would like to know if there is a particular distribution that's more suited (has more utilities) for development and deployment of websites created using ruby on rails and javascript Thanks ...

Hosting a website on your own server

Is there a detailed guide which explains how to host a website on your own server on linux. I have currently hosted it on one of the commerical web-hosts. Also the domain is registered to a different vendor. Thanks ...

svn over HTTP proxy

Hi all. I'm on laptop (Ubuntu) with a network that use HTTP proxy (only http connections allowed). When I use svn up for url like 'http://.....' everything is cool (google chrome repository works perfect), but right now I need to svn up from server with 'svn://....' and I see connection refused. I've set proxy configuration in /etc/subve...

How do I convert dos files to linux files in vim?

If I open files I created in windows, the lines all end with ^M. How do I delete them all in once? ...

Video capture on Linux?

We need to capture live video and display easily on Linux. We need a cheap card or USB device with a simple API. Anyone want to share some experience? ...

Samba, other non interactive accounts - noshell, nologin, or blank?

Conducting a user account cleanup accross Solaris and Redhat linux systems, many of which have a number of Samba shares. What preference do people have for creating the local unix accounts for non interactive Samba users? In particular, the shell entry: noshell nologin blank And why? JB ...

How do I prepend a directory the library path when loading a core file in gdb on Linux

I have a core file generated on a remote system that I don't have direct access to. I also have local copies of the library files from the remote system, and the executable file for the crashing program. I'd like to analyse this core dump in gdb. For example: gdb path/to/executable path/to/corefile My libraries are in the current d...

Which thread should I process the RxTx SerialEvent.DATA_AVAILABLE event?

I'm using the RxTx library over usbserial on a Linux distro. The RxTx lib seems to behave quite differently (in a bad way) than how it works over serial. My application has several threads and one of my biggest problems is that out of nowhere, I seem to be getting one to two extra bytes on my stream. I can't figure out where they co...

Writing data over RxTx using usbserial?

I'm using the RxTx library over usbserial on a Linux distro. The RxTx lib seems to behave quite differently (in a bad way) than how it works over serial. One of my biggest problems is that the RxTx SerialPortEvent.OUTPUT_BUFFER_EMPTY does not work on linux over usbserial. How do I know when I should write to the stream? Any indicators...

sudo echo "something" >> /etc/privilegedFile doesn't work... is there an alternative?

This is a pretty simple question, at least it seems like it should be, about sudo permissions in linux. There are a lot of times when I just want to append something to /etc/hosts or a similar file but end up not being able to because both > and >> are not allowed, even with root. Is there someway to make this work without having to su...

How do I erase my disk? (In a secure way) (Ubuntu)

I mean really erase. In a secure way. (It's Ubuntu) UPDATE: Ok, "shred -vfz -n 10 /dev/hda" looks like what I was after. ...