linux

Determining the path that a yum package installed to

I've installed ffmpeg using yum under Redhat, and I'm having difficulty figuring out where (what path) it installed the package to. Is there an easy way of determining this without resorting to finding it myself manually? ...

Is kernel or userspace responsible for rotating framebuffer to match screen

I'm working on embedded device with screen rotated 90 degrees clockwise: screen controller reports 800x600 screen, while device's screen is 600x800 portrait. What do you think, whose responsibility it is to compensate for this: should kernel rotate framebuffer to provide 800x600 screen as expected by upper-level software or applications...

Is there a name for name.d/ (e.g. /etc/httpd/conf.d) directories?

I'm writing an application which reads a bunch of config files from a /etc/myapp.d folder (so /etc/myappd.d/*.conf). However, I don't understand the significance of the .d part. Does this type of directory usage have a specific name, or is .d==directory and that's the end of it? ...

Good book teaching OS using Linux

I am preparing for some interviews and I would like to review OS concepts. I have found this so far. I dont want a Linux kernel in a nutshell or administration or programming, but a book that goes over operating systems using Linux as the primary template. Do you all have any good suggestions? Thanks! ...

Problem in using Sed to remove leading and trailing spaces

Hi all, I am using the following code to remove both leading and tailing spaces from all lines of a file A.txt sed 's/^[ \t]*//;s/[ \t]*$//' ./A.txt > ./B.txt The problem occurs on the lines where there is a t in the beginning or at the end. So say for example, the original line that starts with the string "timezone" becomes "imezon...

text manipulation and removal

I have text files generated by one of my tools with structure shown below. 1 line text (space) multiple lines text (space) multiple lines text nr 2 ---------------------------------------------------------- (58 '-' characters) different 1 line text (space) different multiple lines text (space) different multiple lines text nr 2 --------...

Chrome OS Development on a Mac

Google just announced the open source release of their Chromium/Chrome OS product: Hello, open source developers. Would you like to help build an operating system for web users? I'm working on a macbook running snow leopard, and I want to start hacking around with Google's Chrome OS. They suggest using Ubuntu 8.10 linux distro. I'm...

Building Boost on Linux - library names

I am trying to build an application which depends on Boost. So I downloaded Boost 1_41_0 to my Linux box and followed the instructions found on the Boost site for Unix variants, http://www.boost.org/doc/libs/1%5F41%5F0/more/getting%5Fstarted/unix-variants.html. They basically suggest that I run ./bjam install, which I did. The build c...

bash script to watch a folder

I have the following situation: There is a windows folder that has been mounted on a Linux machine. There could be multiple folders (setup before hand) in this windows mount. I have to do something (preferably a script to start with) to watch these folders. These are the steps: Watch for any incoming file(s). Make sure they are transfe...

possible to output current CPU and MEM usage via ruby script ? i am trying to find memory leaks

is it possible to say output the current consumption of CPU and memory in ruby script ?rub i am trying to find memory leaks in my jruby sript. CPU usage keeps going up to 100% until it crashes. ...

Porting code from Linux to Windows

Hi all, I'm using Visual Studio .NET 2003, and I'm trying to port code I've written and compiled/run successfully in Linux GCC to Windows. I'm a newbie when using VS. I've created a new project, and added all the .c and .h files I have into the project by Project -> Add Existing Items, then chose all the .c and .h files. I'm not famil...

Don't know how to build task 'gems:install'

hi all I am deploying my rails app to a linux server and i have some of the rake tasks missing inlcuding rake gems:install and rake db I am running rails 2.3.4 from GEM. Does anyone know why this is? How do i fix this ? can i update some how ? thanks alot richard moss ...

rsync commands for the following cases

I take a backup of my root directory (/) during shutdown to the attached storage and then rsync back from the attached storage to / during booting. what's the rsync command I need to use during shutdown? Please tell me the list of directories to exclude whats the rsync command I need to use during booting ? If there are any new files ...

Loading different Linux Distribution each time computer starts automatically?

I have two Linux distributions (OpenSuSE, Ubuntu) installed on two different partitions. Each time i start my machine, GRUB loads up allowing me to select one of the two distributions. I don't want the GRUB to show up so I limit timeout to zero in /boot/grub/menu.lst which will most probably make my machine load OpenSuSE each time i sta...

Is it possible to View an Excel file on Linux

I have a testing package which uses an Excel spreadsheet to manage the Tests. It's written in Java and parses the Spreadsheet, then executes the tests. It runs on Windows and Linux, however currently if a test fails you can't see the info in the Spreadsheet without going back to Windows. Does anyone know of a way to view ( and possibly e...

linkActivated is not called from IHyperlinkListener class on SLED11

Hello, I used the IHyperlinkListener class to implment links on a composite. The linkActivated() was called correctly when I did a mouse click on the Windows OS. However, when I did a mouse click on SLED11, linkActivated() is not called during the first time. I saw the composite got redrawn and re-positioned. The initial mouse down c...

About compiling Linux kernel in Debian Live

Hi all, This is my first time compiling Linux kernel. I am using Debian Live. I used kernel-package to compile and I also added a new system call to return an arbitrary integer value greater than zero. Everything went fine and I got both headers and image .deb files. When I tried to install them with dpkg, there was a warning that sai...

Binary compatibility between Linux distributions

Sorry if this is an obvious question, but I've found surprisingly few references on the web ... I'm working with an API written in C by one of our business partners and supplied to us as a .so binary file, built on Fedora 11. We've been testing out the API on a Fedora 11 development machine with no problems. However, when I try to li...

dhcp client on linux, port or use ?

Hi, On linux platform, I want to have dhcp client. port any open source client to my app (which seems to be a bit time consuming)? or communicate with the standalone client app via Signals? or anyone knows any dhcp client library? thanks for any advice. ...

Porting linux socket application to windows usins MsDev

Is there openly available headers which can be used to compile linux socket application (using socket/udp/ip headers). they should define structures like sa_family_t,in_port_t Mandatory is to use Msdev and not cygwin/gcc or mingw compiler. ...