CentOS 5 Networking :: How To Hard Code NIC With Xen
Dec 1, 2009
I have a fresh install of CentOS 5.3 that was yum updated to 5.4 with the Xen kernel. i.e.
# cat /etc/redhat-release
CentOS release 5.4 (Final)
# uname -a Linux server 2.6.18-164.6.1.el5xen #1 SMP Tue Nov 3 17:53:47 EST 2009 i686 i686 i386 GNU/Linux
View 1 Replies
ADVERTISEMENT
Jan 26, 2011
I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it has the following configuration.
Code: $> sudo fdisk -l /dev/loop0
Disk /dev/loop0: 10 MB, 10977280 bytes
255 heads, 63 sectors/track, 1 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/loop0 doesn't contain a valid partition table Now what I want to do is develop a c++ program to read & write files to this loop back device,which I'm using to simulate an actual hard disk,at the blocks & sectors level. So far I've come up with the following code. But I'm still unable to read files from the hard disk one block at a time.
Code: #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
char block[512]; int length=0;
cout<<"Implementation of the File Handler Read Method..."<<endl;
FILE *f = fopen("/dev/loop0", "r");
if(f == NULL) {
cout<<"Error In Opening the HardDisk File Retuning Error..."<<endl; return -1; }
//Read One Block of Data to Buffer length = fread(block, 1, sizeof(block), f);
/* Do something with the data */ cout<<"Length : "<<length<<endl;
return 0; }
When I run this Program All what I get is the message for NULL. "Error In Opening the HardDisk File Retuning Error...". So I could open the loopback device as a file an access it at the sectors & block level.
View 1 Replies
View Related
Sep 11, 2010
I have been trying to install centos on my hp servers and when i get to partitions my hard drives the OS does not detect any harddrives. I have 4 scsi drives and i believe a intergrated smart array controller.
View 1 Replies
View Related
Jul 23, 2009
I just wonder where to find the source of /bin/login , I've searched in coreutils, there are many commands source code, but not include /bin/login.where can I find it ? which SRPM contains that?
View 4 Replies
View Related
Nov 25, 2009
Where do people generally put third-party source code that must be configured and compiled? For years I've using my home directory for that, but there must be a better way. Are there general standards, or best practices, or guidelines on where to put the software? /usr/local? /usr/src? Is there a document that discusses this?
View 6 Replies
View Related
Dec 6, 2009
I've just installed CentOS 5.4 on my Thinkpad T43. Everything works fine except one thing that, when I suspend the machine, the hard disk is always shut off in a "hard way". The sound is similar to the one you would hear when shutting down the machine by keeping pressing on the power button.. this is no good.
View 3 Replies
View Related
Jun 21, 2010
I am new to centOS and one of my application need linux source code as such I am failed to find suitable link for that. Any suitable link for Linux kernel version: 2.6.18-194.el5.
View 2 Replies
View Related
Nov 30, 2010
i m using code for sending email through GMAIL SMTP as given below... can any one tell me that how i can send EMAIL through Centos 5 CLI mode.... i which folder places i save my PHP files or any other supporting files etc.in graphical mode we use webbrowser but in Command line how i can use this project....
and also please tell me how i can run firefox in CLI mode
View 1 Replies
View Related
Jun 27, 2011
I am trying to install an rpm and when I run rpm -ivvh "package" I get this output
Quote:
Expected size: 29111 = lead(96)+sigs(180)+pad(4)+data(28831) D:
Actual size: 29111 D: ldipmi-8.50.0.i386.rpm: Header SHA1 digest: OK (d3665fbf1c1a418ac1bf17befe92870b95c1a446) D: added binary package [0] D: ============== /root /root: not an rpm package (or package manifest): Is a directory D: found 0 source and 1 binary packages
View 5 Replies
View Related
Oct 26, 2010
Is cento open source ? if yes, where i can download source code of CentOS x.y Single ServerCD i386 ?
View 1 Replies
View Related
Mar 21, 2009
Sometimes when I do anything write heavy such as transferring backup or downloading large files from the net, the machine crashes almost completely.
View 8 Replies
View Related
Aug 10, 2009
My dvd is broken. I always failed to install centos from network because of wrong configuration of tftp server. I'd like to install centos from harddrive. I got a litle application named grub4dos, I try to use it but never succeded. Therefore, I have tow questions:
1. How to install Centos from / through hard drive? 2. Where should I put the Iso file of centos or centos installation files, if i use grub4dos.
View 5 Replies
View Related
Sep 1, 2010
I have seen that is possible to boot from a USB stick and use a USB memory as hard drive.I have a server enable to hold 6 sata drives 3.5", But I want to use the 6 drives and make a Raid-5 setup for backups 5 -1 spare. /boot cannot be on a raid-5 level 0 or 1. But I want to have redundancy for my OS, them I can install Centos on a Raid-1 using 2 disk, which let me only 4 for the raid 5. I will run a backup I want to have a lot of space.
Using 4 disk for raid-5 2 TB I will have 6TB no spare, no spare is not a good option at least I will prefer 1 spare.Well, I was thinking, the server MoBo have USB support, if I open the box I can see the small entrances, If Centos let me installed on a USB memory drive, can I trust a USB memory stick?t night with bacula.
View 2 Replies
View Related
May 20, 2011
Getting this error seemingly randomly at login:
There was an error starting the GNOME Settings Daemon.
Some things, such as themes, sounds, or background settings may not work correctly.
The last error message was:
Launch helper exited with unknown return code 1
GNOME will still try to restart the Settings Daemon next time you log in.
I thought I might be logging in to fast, but it happened again when I had waited several minutes.
View 9 Replies
View Related
Mar 30, 2011
I need to rewrite the selenium java code into its equivalent php code.
View 5 Replies
View Related
Feb 1, 2010
I want to parse the AT commands using C programmemy problem is to send message using At commands in minicom from one system to other system using socket programmingif i will send here AT on other system it should respond as OK,and if we will send AT+CMGS="ip address" "message", on other system this message has to display can any one please tell me the code in C language
View 1 Replies
View Related
Aug 2, 2010
I would like to grab wiki code from a wiki page using wget. Running this grabs HTML:
wget -O wikihtml.html [URL]
The first attempt at getting wiki code was to pretend to edit, and run:
wget -O wikiedit.html [URL]
but of course that grabs GUI HTML. I thought perhaps the text inside the text box would be in tact, but HTML is througout. How to get just the raw wiki code?
View 2 Replies
View Related
Nov 21, 2010
I am doing a simulation on ns2 for diffserv. I am planning to use PQWFQ scheduling scheme for it. Where to find code for PQWFQ?
View 2 Replies
View Related
Feb 17, 2011
I have tried using ad-hoc networking in linux machines. My question is that is the routing in ad-hoc network is implemented at kernel level. I just want get my hands on the code that make wireless ad-hoc networking possible.
View 1 Replies
View Related
Feb 19, 2010
I just started setting up a linux box in the office...I have some experience with ssh commands but not setting up a linux system and stuff.The box is connected to our network but I have no clue how to make windows & osx talk with it. How can I go by doing that and also setting up an apache server to be able to connect through network. Right now I have apache/linux/mysql running it works when i go to localhost, but I would also like to let all the computers in office to access it. I would guess that will deal with virtual host which I know how to setup. I just need to setup an IP.
View 19 Replies
View Related
Mar 11, 2009
We Are Using Centos 5 64Bit with Kernel 2.6.18.92 with Amd Athlon ProcessorThe problem when calling setsockopt it return error errno:22 InvalidargumentThis code run on Macos ,Sunsolaris ,But fail to execute on Centos 5 64bit & The SCTP mailing group told me that this problem belongs to centosexample form ibm webside
/*
server
*/
[code]....
View 4 Replies
View Related
Feb 25, 2011
I am working on comparitive study of mobility models on intruder detection. An ns2 code for detecting an intruder is required.
View 2 Replies
View Related
Mar 17, 2010
Has somebody used DAFS (Direct Access File System)?I've found a lot of literature about this file system,where the comprassion tests promise a ~20-50% faster packet transmission,than in the strandard NFS.But I can't install DAFS,because the source code is for old kernels 2.4.Does anyone know,why did the research of this file system stopped in 2003 year,and there are no newer versions?
View 2 Replies
View Related
Aug 8, 2010
I have set up VNC on my Centos5 Server via the instructions here:
[URL]
I am able to log in via VNC through a browser (on my Window laptop), however when I try to access my USB hard drive on the Centos Server, it says:
Error org.freedesktop.DBus.Error.AccessDenied
Does anyone know of any step by step instructions so that I can be able to access my USB Hard drive?
I have found a few posts on the internet about this, however the fixes are either vague/hard to understand etc?
View 2 Replies
View Related
Feb 10, 2011
I downloaded the CentOS 5.5 Live CD iso, booted from it, and I like it. I would like to install CentOS 5.5 on my new system, but there do not appear to be any options for hard drive installation, partitioning, etc...
View 5 Replies
View Related
Feb 16, 2011
I'm trying to implement a backup server which must export the /home as follows: /home *(rw,no_root_squash,no_subtree_check,async)
And the client mount it in this way:
My problem is the interruption of network ... in the sense that if the client or the backup server loose network connection no longer stops the transfer, but also freezes all the client has mounted the backup server. ..
How can I be able to give the error signal to the command that is writing in nfs since it is a batch process?
View 2 Replies
View Related
Jul 18, 2010
for reset Facebook password,facebook send a code to e-mail,this code can be sniffed by sniff software?
View 2 Replies
View Related
Mar 5, 2009
I am a little optimistic now after my problem of wifi was solved by stoat that presisted for about a year, now i am trying to install my vpn client. he asks me to write the path of kernel source code directory : and i answer by:/lib/modules/2.6.26.8-57.fc8/build/
But he answers no such directory or file and i dont know why
The build is covered by a red box when displayed by a terminal so can any body tells me where i can find my kernel source directory or i should install them, how
View 3 Replies
View Related
Jan 26, 2010
I'm using OpenVPN 2.1 on Ubuntu 8.10 to connect to LAN behind an IPCOP server. Everything works fine except when I move across the tunnel files which are over 180kb, then I get UDPv4 []: No buffer space available (code=105 surfing the Internet I've found post that suggest to increase these settings on the kernel
> sysctl -w net.core.rmem-max=8388608
> sysctl -w net.core.wmem-max=8388608
> sysctl -w net.core.rmem-default=65536
> sysctl -w net.core.wmem-default=65536
those have actually made a small difference, but not enough for uploading even an image over http. I guess that I can keep increasing those values till I'm not satisfied, but as I'm not sure on what I am dealing with, can anyone tell me if there's a rule of thumb? My machine is a laptop with a dual core processor and 2GB ram.
View 1 Replies
View Related
Mar 25, 2010
I intend to attach WLAN PCMCIA card to my embedded system to connect to a wireless network. However, my embedded system uses a strangs OS that not supports the card driver. I think that I can investigate on how Ubuntu control the card to find out the way to control it in my system. The WLAN PCMCIA card that I can buy is:TP-Link TL-WN510G,Linksys WPC54GSCan any one tell me, how can I have the source code of WLAN PCMCIA driver and how can I find out the way Ubuntu control this card?
View 4 Replies
View Related