linux

How do I disassemble raw x86 code?

I'd like to disassemble the MBR (first 512 bytes) of a bootable x86 disk that I have. I have copied the MBR to a file using dd if=/dev/my-device of=mbr bs=512 count=1 Any suggestions for a Linux utility that can disassemble the file mbr? ...

How to write a http1.0 proxy server in c in linux?

I must develop proxy server that work with only HTTP 1.0 in Linux and by c . I need some hint to start developing . ...

Mixed Windows and *nix environment - 'local' suffix issue

Dear all, Stupid question - apologies in advance. I have a mixed Windows and Linux dev environment, and the server is Linux (Ubuntu). Let's say the server is called 'myserver'. I develop on both Windows and *nix (Ubuntu and OS X), with references to myserver as 'myserver.local' on *nix, and 'myserver' on Windows. I have shared code ...

How to build one file contains other files, selected by mask?

I need to put the contents of all *.as files in some specified folder into one big file. How can I do it in Linux shell? ...

How do I fix "no symbol version for module_layout"?

I'm trying to compile the nvidia driver and the VirtualBox drives on openSUSE 11.2. Both compile fine (after the usual make oldconfig plus a partial build of the kernel) but when I try to load the modules, I get this error: vboxdrv: no symbol version for module_layout What's wrong? How do I fix this? ...

Detect if connection has been established

Hello folks, I recently began learning network programming under Linux and it seems I can't figure out the right way to detect if a connection to remote host has been established. ATM all non-established connections are registered in a epoll instance. Once an event with the EPOLLOUT flag set to 1 arrives, the connection is marked as est...

How to get internal IP, external IP and default gateway for UPnP

I'm wondering how I'd go about getting the: Internal IP address; External IP address; and Default gateway in Windows (WinSock) and Unix systems. Thanks in advance, ...

How do i check if php server allows external curl connections

How do i check if php server allows connecting via curl to external sites before buying hosting package (or registering on free host)? I noticed that in some hosting reviews users were complaining that servers that have curl enabled often don't allow external connections... I'd like to check this before purchasing/registering. Maybe t...

How to use/learn Video4Linux2 (On Screen Display) Output APIs?

My latest microprocessor( Freescale iMX233 ) has 8 hardware overlay plus inbuilt YUV to RGB conversion functionality. They have exposed these functionality through v4l2 driver. v4l2 Documentation doesn't say it properly that how to use it. Is there any tutorial available or any reference code which I can use to learn v4l2 apis? ...

How do I package my linux application using MonoDevelop?

I have a hobby project that is written in C# using MonoDevelop. I've been trying for some time now to get my head around linux packaging, but I keep coming away feeling frustrated and overwhelmed. My program consists of: A library project ("Generator") that does stuff with the data created by my program. An ui ("Interface") project us...

Find all htaccess files on server

Hello, I'm looking for a Linux command to go through all the directories on my server and find all .htaccess files. The output would be a list of all those files with full path, creation/modification date and filesize. ...

How do I compile mips gnu?

Hi, I am not even sure my thread title is correct or not. Here is my story. I visited western digital website to check for a new firmware of wdtv live. I found source code of wdtv live OS is available to download. I downloaded "WDTV GPL Code" on http://support.wdc.com/product/download.asp?groupid=1003&lang=en. I extracted it and...c...

RHEL5 Qt compiler/linker/qmake issues... advice?

I have about a few problems with a new install of the Qt SDK. I probably only need advice, but specific answers are also welcome. Before I begin a mini-story, I am running RHEL5 on academic license under VirtualBox on OSX 10.6. Using Qt version 4.5.3. This is my situation... 1.) I couldn't compile because g++ wasn't found. I fixed this ...

Linux boot loader

I'm trying to boot Linux on a GPS device from a SD card. I have found some informations about the device on Internet and apparently it's possible to load a customized Windows CE. To achieve this, they use a boot loader file that has the extention ".bld" I extracted the ISO of Ubuntu MID on the SD card, but there is no files with a bld...

Create a daemon with double-fork in Ruby

What is the proper way to create a well-behaved Unix or Linux daemon in Ruby? What is the definition of a well-behaved daemon anyway, and how would one write such a program in Ruby? ...

How to write init script

Hi I am using 64bit Fedora 10 linux. I have created a sample java application. Now I want to write init script for that application. so that my application should start on bootup. How to write init script to start on bootup. Thanks Sunil Kumar Sahoo ...

How to do iphone development using Linux System?

Hi. Is it possible to use linux system for iphone development? If it is then how ? Any Software / help available ? Thanks in advance... ...

How do I wait for PID X to exit if X is not a child process?

using c how do I wait for PID X to exit when it is not a child of my current process? Kill(pid, SIGTERM); waitpid(pid,NULL,0); The above does not work as 'pid' is not a child process. ...

Is there a way to disable the cvs init command for the cvsd daemon?

Is there a way to prevent users from doing 'cvs init'? 'cvs init' creates a new repository. The doc says it is a safe operation on an existing repository, since it does not overwrite any files. But the problem is, administrative files in CVSROOT will be changed. For example, we have a CVSROOT/loginfo script that mails commit info to a ...

In a linux kernel module, how can I get inode of a known path

In a linux kernel module (i.e. working in kernel space), I have a path of a file. Which function(s) can be used to get the inode of that file. Specifically I need to get the "inode *" pointing to the file's inode. ...