linux

Best/Easy way to set up a quick booting Linux

Hopefully this still falls within StackOverflow's umbrella! I'm looking to create a quick boot linux laptop for my wife. All it really needs is to be able to do is browse the internet (with flash and video etc.). Are there any distros that are made for this, or any guides out there that show good ways to speed stuff up? I've read that ...

Print from a windows App - data from an Oracle DB on Linux

We have an Oracle DB running on Linux. When data is ready to report, a value is placed in a table in the DB. Presently an app is scheduled to run every 10 seconds to check for the value and if it's there it prints out the report. NOT prety. How can I make this pretty? I sort of envision the Oracle DB somehow triggering the windows s...

What is Maximum Segment Lifetime

We have an homebrewed XMPP server and I was asked what is our server's MSL (Maximum Segment Lifetime). What does it mean and how can I obtain it? Is it on the linux /proc TCP settings? ...

how to loop files in linux from svn status

As being quite a newbie in linux, I have the follwing question. I have list of files (this time resulting from svn status) and i want to create a script to loop them all and replace tabs with 4 spaces. So I want from .... D HTML/templates/t_bla.tpl M HTML/templates/t_list_markt.tpl M HTML/templates/t_vip.tpl M HTML...

What can cause strange gcc error "mode_t has not been declared" (and others) in system headers?

This is the compiler message (somewhat stripped): /usr/include/sys/mman.h:145: error: 'mode_t' has not been declared Another error: In file included from /usr/include/sys/resource.h:25, from /usr/include/sys/wait.h:32, /usr/include/bits/resource.h:172: error: field 'ru_utime' has incomplete type /usr/include/bits/res...

Automatically copying files from a Linux machine to a Windows machine

I need to automatically copy files from a linux machine to a windows one every day. I'm looking for something simple and secure like scp, rsync, sftp. Unfortunately, I'm at a loss of how to set this up on the Windows machine. Does anyone know how to do this? ...

Tux, Varnish or Squid?

Hi folks We need a web content accelerator for static images to sit in front of our Apache web front end servers Our previous hosting partner used Tux with great success and I like the fact it's part of Red Hat Linux which we're using, but its last update was in 2006 and there seems little chance of future development. Our ISP recommen...

Using Java 6, on linux how can I make sure to use an ipv4 socket?

I'm trying to write a quick little java application to read the contents of a pcap file (from Wireshark) and play the data back on the network on a linux box. The file will only contain UDP broadcast packets, so my application only really needs the timestamp, port number, and data from the packet to do what I need. My problem is that t...

Overriding functionality with modules in Linux kernel

Without getting into the details of why, I'm looking for a clean (as possible) way to replace kernel functions and system calls from a loadable module. My initial idea was to write some code to override some functions, which would take the original function (perhaps, if possible, call the function), and then add some of my own code. Th...

Connecting from Linux to Windows to perform a task

I've been asked to find a way to connect from a Linux system to one of several Windows servers. What we need to do ideally is connect to whatever Windows server is causing the trouble, kill a process, and restart the process. Ideally, it would be something that could be put into a script that could be run from the Linux computer. All ...

Outputting to stderr whenever malloc/free is called

With Linux/GCC/C++, I'd like to record something to stderr whenever malloc/free/new/delete are called. I'm trying to understand a library's memory allocations, and so I'd like to generate this output while I'm running unit tests. I use valgrind for mem leak detection, but I can't find an option to make it just log allocations. Any i...

How Do I Copy Up To An SSH Host All Folders and Files Except Certain Ones?

Using the Linux command line, I use the scp command to copy up all the files and folders from a certain directory. However, I don't like to consume wasted bandwidth for copying up things I rarely change like my tiny_mce folder. What's the trick to copy up everything but skip a short list of folders? ...

é is not correctly parsed

My application will read xml from urlconnection. The xml encoding is ISO-8859-1, it contains é character. I use xerces saxparser to parse received xml content. However, é can not be parsed correctly while running application under lunix OS. Everything works fine in Windows. Could you guys please give me some hints? Thanks a lot ...

How do I find userid by login (Python under *NIX)

I need to set my process to run under 'nobody', I've found os.setuid(), but how do I find uid if I have login? I've found out that uids are in /etc/passwd, but maybe there is a more pythonic way than scanning /etc/passwd. Anybody? ...

What is the best way to distribute a python program extended with custom c modules?

I've explored python for several years, but now I'm slowly learning how to work with c. Using the python documentation, I learned how to extend my python programs with some c, since this seemed like the logical way to start playing with it. My question now is how to distribute a program like this. I suppose the heart of my question is...

Why do people use tarballs?

As a primarily Windows developer, perhaps I'm missing something cultural in the Linux community, but it has always confused me when downloading something that the files are first put into a .tar archive, then zipped. Why the two step process? Doesn't zipping achieve the file grouping? Is there some other benefit that I'm not aware of? ...

How much of Linux should I learn in order to deploy web sites using LAMP?

Being a Windows developer I'm currently working on my own project using LAMP. I understand what I need to know of PHP and MySQL, but Linux looks huge and it's not clear where to start and what is enough given my goals. And my goals are to grasp general concepts, being able to deploy the project to a hosting provider and to be able to mon...

How to make sure an application keeps running on Linux

I'm trying to ensure a script remains running on a development server. It collates stats and provides a web service so it's supposed to persist, yet a few times a day, it dies off for unknown reasons. When we notice we just launch it again, but it's a pain in the rear and some users don't have permission (or the knowhow) to launch it up....

Is there any WinSCP equivalent for linux?

I love WinSCP for Windows. What are the best equivalent softwares for linux? I tried to use sshfs to mount the remote file system on my local machine, but it is not as user friendly as simply launching a GUI, plus it seems to require root access on the client machine, which is not very convenient. Of course command line tools such as ...

Virtual area to pages

In the Linux kernel, given the task_struct's mm I can access the process's list of vm_area_structs. Given these vm_area_structs, how do I get the struct pages which actually correspond to this vma? I tried looking for functions in mm/memory.c and the like, but I was at a loss. Edit: the idea is to find which pages in the vma are curre...