General :: Static IP Initialization In Boot String?

Jun 16, 2010

Is there is a way to specify a static IP address in the parameters supplied to the Linux kernel at boot time? I know that I can do it with a start-up script called from my rcS file but it would be really convenient to specify it in my boot parameters.

View 2 Replies


ADVERTISEMENT

Ubuntu :: Unison Not Working - Uncaught Exception Gtk.Error("GtkMain.init: Initialization Failed Ml_gtk_init: Initialization Failed")

Jul 30, 2010

So I installed the Unison synch software with sudo apt-get install unison-gtk. When I set up the two directories for synchronization it looks like this: $ unison ssh:\SERVER\pathpath /var/www/path/path/path

I am getting this error in terminal Uncaught exception Gtk.Error("GtkMain.init: initialization failed ml_gtk_init: initialization failed") Fatal error: exception Util.Fatal("Error in getLogch: /home/path/.unison/unison.log: No such file or directory"

View 1 Replies View Related

General :: Boot - Display A Static Image While Debian Is Booting Up?

Aug 19, 2011

I need to show a static image with the logo of our department while Debian boots. Is there any easy way or tool to do this? (Any parameter of the kernel maybe?) It doesn't have to be anything fancy (like a progress bar)... just a plain an simple image.

I've seen many bootsplash projects..but most of them are broken. I tried splashy (which is available on the repo), but by the time it loads, my system is already booted, so I don't really like it. note that I don't have any Xorg server installed.

View 1 Replies View Related

Programming :: Copy String A To String B And Change String B With Toupper() And Count The Chars?

Oct 22, 2010

copy string a to string b and change string b with toupper() and count the chars

View 3 Replies View Related

General :: Replace String With Empty String Of Dir Path ?

Apr 2, 2011

I want to replace a string of directory path in a string to empty:

Code:

But this doesnt seem to give me the desired thing:

Code:

This gives the desired outcome, but its specific, i need a variable in the sed not a string. And if I replace STRING="/mnt/sda1/record/$dd/" then I cant use it for something else, cause its has all the weird backslashes now.

View 3 Replies View Related

General :: Extract A String Within A String Using A Pattern?

Nov 4, 2010

i have a file name using the following pattern:

PREFIX: AR
SOURCE: LEGACY
DATETIME: YYYYMMDD_HH24MISS
SUFFIX: .txt

sample filename:AR_LEGACY_20101104_105500.txti want to extract the source which is LEGACY in this case. how do i do this using shell?

View 1 Replies View Related

General :: 10Gbps NIC Initialization Failed

May 20, 2011

OS RedHat 5.5, Server Model: HP Proliant DL 380 G7

We swapped our 10Gig NIC Cards (Qlogic) with Emulex NIC cards NC550SFP. The server was rebooted and I get the following message:

dmesg | grep -i "emulex"
be2net 0000:18:00.0: Emulex OneConnect 10Gbps NIC initialization failed
be2net 0000:18:00.1: Emulex OneConnect 10Gbps NIC initialization failed

Earlier when there was Qlogic, we configured the two NIC cards for eth2 and eth3.

Now, in order for this server to show up these NICs, I used ifcfg -a and configured ifcfg-eth2 and ifcfg-eth3 and did a service network reload. The interface came up and all worked good.

But after the Qlogic was replaced with the Emulex and when I perform ifcfg -a, I don't see eth2 and eth3 or neither they are shown as some other names such as __tmp. I can't find the MAC addressess that are associated with them.

Is there any way that we can initialize these NIC cards and make them available in ifcfg -a so that, I can edit the mac ids of these NICs and configre ifcfg-eth2 and ifcfg-eth3.

View 2 Replies View Related

CentOS 5 :: Slow Boot - "Waiting For Driver Initialization"

Sep 23, 2009

I have a question about the CentOS boot process. During boot, following the initialization of the software RAID drivers, I get the message "Waiting for driver initialization", and the boot process hangs for about 20 seconds. It's not a big deal because I don't have to reboot often, but I'd like to know - is there a way to disable the functionality that causes this, whatever that is?

View 7 Replies View Related

General :: 3c501 Device Etho Does Not Seem To Be Present Delaying Initialization?

Jun 7, 2010

i have problem related nici am using a dell inspiron 1545 laptop outputs are following---(1) [root@localhost ~]#lspci |grep -i ethernet 09:00.0 Ethernet Controller: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller (rev 13)

(2) [root@localhost ~]#cat /etc/modprobe.conf
alias scsi_hostadapter ahci
alias scsi_hostadapter1 usb-storage

[code]....

View 1 Replies View Related

General :: Awk Gsub() Command - String (column) Manipulation - Replace The Value Of The $1 Column In The Awk Print String?

Mar 7, 2010

i use this script to get the time and date of back and fourth transactions for a particular execution id. I use a substr command on the 5th column to to cut the milli seconds off the time value. - otherwise the times would look like 08:30:04.235

grep <executionID> <auditfile> | awk '{ print $1, $2, $3, $4, substr($5,1,8}
FIX -> Mon 3/1/2010 08:30:04
FIX <- Mon 3/1/2010 08:32:36
FIX <- Mon 3/1/2010 08:35:08

[code].....

anyhow - i append two sed commands to further clarify the direction of the message.

awk '{ print $1, $2, $3, $4, substr($5,1,8} | sed -e 's/->/ ->IN/g' | sed -e 's/<-/<-OUT/g'
FIX -> IN Mon 3/1/2010 08:30:04
FIX <- OUT Mon 3/1/2010 08:32:36

[code]....

I tried using an awk gsub () command within the string instead of the two seds, but it did not work:

awk '{ print gsub(/<regex>/, <replace with>,$1), $2, $3, $4, substr($5,1,8}

the sed works ok, but it would be cooler to make the replacement within the awk command:

gsub(/->/,-> IN, $1)

Is there a way where i could replace the value of the $1 column in the awk print string?

View 1 Replies View Related

General :: String Replace In Filenames - Files Already Contain The String "Soundtrack"

Jun 11, 2011

Moving right along, I have a folder of MP3 files containing various Movie sound tracks and scores. I'm using Audio Tag Tool to tag all the files at once with an "Artist" of "Soundtrack", and to inherit the "Title" tag from the file name. After that, I will rename all the files (Using Audio Tag Tool -- awesome program, btw) with the format "<Artist> - <Title>.mp3"

The problem, is many of my files already contain the string "Soundtrack", which would be redundant. I happen to be a perfectionist, so I'm unable to ignore it and move on. Hence my question to you fine folk: I want to delete all instances of "soundtrack" (-i case irrelevant) in the filenames before I go through the above steps. But, its not quite that simple. This is a sample of some of the file names:

[Code]....

View 3 Replies View Related

General :: Error - The Session Manager Initialization System Process Terminated Unexpectedly With A Status

Jun 5, 2011

I installed slackware 12.1 from files i downloaded and converted to cd (images). There are six "disks" i downloaded from the slackware site and converted to images via a homemade .cmd in windows xp and then burned using imgburn.

I partitioned my hd (canibalized from an acquaintance's emachine and connected it to my desktop (1G ram, 2Ghz processor). Booted from disk 1 and fomatted the 80G HD for 2 partitions of linuxswapable at 2G apeice and 2 partitions of bootable linux. (Because i want to try another distro later). I ran the setup installing most everything and all seemed to go well. After i exited setup and restarted, it identifed the cd/hd as normal and then went into some sort of recovery mode with the emachine logo call pcangel, after which it tells me.

STOP: c0000021a (fatal system error) The session manager initialization system process terminated unexpectedly with a status of 0xc000003a (0x00000000 0x00000000). the system has been shut down. So, is this indeed an xp error message, and if so, why am i getting it after formatting everything?

View 3 Replies View Related

Programming :: Java Non-static Variable Cannot Be Referenced From A Static Context

Feb 12, 2010

I'm having some problems on the line with ***. This is from a OpenEntidade.java class file and I'm trying to update EmprestadorView's variables.

EmprestadorView.java
public class EmprestadorView extends FrameView {
...
OpenEntidade.java
-----------------
public class OpenEntidade extends javax.swing.JFrame {

[code]....

View 2 Replies View Related

Ubuntu Servers :: Server Will Not Boot After Static IP Set

Mar 27, 2010

I just installed sever 9.1 with webmin. Everything was working great, untill it tried to set it to a static ip address. I tried to do it thur webmin. after it rebooted the server and it now stops at this line
init: network main process (61 terminated with status 1

Any idea what I did wrong? Or how I can fix this?

View 6 Replies View Related

Ubuntu Servers :: When Is A Static IP Assigned At Boot

Oct 22, 2010

I've been having a problem getting a couple of services started at boot on my home server. I want to have my Openvpn daemon and a holdingnuts poker server start at boot. Neither of these start properly if placed at level S99 in the rc2 folder. Looking through the logs, it seems that the network is not up and running at this time. To confirm this, I placed the following in my rc.local file that runs at level S99.

Code:
ifconfig | cat > /home/username/network-status.txt

My ifconfig file shows the lo, eth0 and my bridged br0 interfaces. However, the br0 interface does not show an IP, netmask or anything else, indicating that it hasn't been brought up, yet. So this begs the question, if you have a static ip set (with a bridged connection for the VPN server), when does that actually get up and running? I would have thought that it should be up by the time that the last startup scripts are running. How can I ensure that these things run at startup, but not until the network is fully up and running?

View 9 Replies View Related

Programming :: Pthread - Take String From The Command Line And Creates A Thread To Print The String

May 3, 2011

I've been trying to understand pthread in C a little better. So I made a simple program that takes in a string from the command line and creates a thread to print the string. I've looked online and copied the basic concepts but there are something things I'm confused about. The programs works just fine, but I have questions. Here's what I have so far.

[Code]....

One thing I'd like to know is why the 3rd argument in the pthread_create function which is my SendMessage function needs to be typecasted to a void pointer and then send the address of the function. Also as for the 4th argument, I would see typecasting to void pointer in some of the pthread examples I saw online, but in my case I'm passing a char pointer, would this be correct? In which case would I ever want to pass a void pointer?

Do I need a pthread_exit(NULL) in my main and in the SendMessage function? If so, why? I added the sleep() function so that I could let the pthread_exit function in my SendMessage function execute first. I simply saw that the online examples on pthread had pthread_exit() in both locations.

View 6 Replies View Related

General :: Distros Winch Has A "text Mode" Option At Initialization?

May 20, 2010

After trying many diferent LiveCD Distros I found one that is pretty perfect for me, the SLAX one, especially because it gives me the option to start directly on a command line mode (wich is what I'm focusing now). So I'm wondering what others distros have this option at startup. I guess Slackware has this too right? Can you sugest any other distro with that option?

View 2 Replies View Related

Software :: Replace A Text String In A File With A Random String - With Sed ?

Sep 2, 2010

I have a line in a text file that has 40 random characters within a tag and i want to change the characters to a new set of 40 random characters (alphanumeric a-z 0-9 etc)

The line in the text file looks like this:

Quote:

How would i go about doing that?

Also second question same as the above but how would i remove them instead of replacing them?

View 14 Replies View Related

Fedora :: Replace A String By A String In Text File?

Apr 26, 2011

If I have a word in a text file and I need to replace it by another word (for example, i need to replace abc by fff) so what is the command I can type it?

I am using vi editor.

View 3 Replies View Related

Ubuntu :: Put The String Sign Into File / String / Message (rsa)

Mar 7, 2011

I have a String that I would like to sign using a given RSA Private key. I thought this would be relatively easy but I have not been able to find out how to do it, unless I'm looking to far into a simple problem. Do i have to put the string into a file, and sign the file, or can i just sign the string/message?

View 7 Replies View Related

Programming :: Using Sed Replace Line Containing Particular String By A Single String?

Oct 16, 2010

I have a set of lines as ahown below:

Leon went to school
Leon came back from school..
Leon had dinner...

I have to replace the line containing "dinner" by a single string LUNCH...

View 2 Replies View Related

Programming :: Creates String Suffixes Out Of A Reference String?

Feb 25, 2011

I need to creates string suffixes out of a Reference string. for eg. suffixes of abcdefg will be

1)bcdefg
2)cdefg
3)defg
and so on...

create an array of pointers to point to the first few characters and then use that pointer to print the rest of the string.But when i print using the pointer i get GARBAGE values! shudn't std::cout<<ptr[w] print the string following the char it is pointing to? why do i get garbage values?

View 9 Replies View Related

Programming :: C - Put A Specific Arbitrary Part Of A String Into It's Own String?

Apr 18, 2010

So if I'm given a location of a file like:

How can I just take the type of the file at the end? I know I can use strrchr() for a period to get the pointer to the period just before file type. Is there a build in string function that will just take the rest of the string from a certain point on forward in the string? I know it wouldn't be much work to make it myself, but I figured I would find out if it already existed before doing it.

View 9 Replies View Related

Programming :: Convert String To Integer Back To String C++ ?

Mar 13, 2010

Code:

The error is:

Code:

What I want to do is take input of ip4 as a string, convert it to an integer to add 1 to it, then reconvert it back to a string. Its not working.

My full code is:

Code:

View 1 Replies View Related

Debian Configuration :: Boot Hangs With 4.2.6 Static Kernel And Encrypted LVM

Dec 7, 2015

I use a static compiled kernel and a fully encrypted disk apart from a boot partition. I have recompiled and installed kernels many times. When I tried with the latest kernel from Testing, 4.2.6, the system will not boot. Not only that but the previous kernel now does not boot. However, a stock modular kernel does boot. The static kernel hangs at:

Code: Select allVolume group "dk" not found
Cannot process volume group dk
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
Reading all physical volumes. This may take a while...
/run/lvm/lvmetad.socket: connect failed: No such file or directory

[Code] ....

And after giving the password the boot continues successfully. How to diagnose it further?

View 1 Replies View Related

Ubuntu :: Boot Splash Static With Green Lines Across Image

Mar 17, 2011

Upon boot up the usual little mouse splash boot is suppose to come up. Once I first installed it (10.10 via usb) the boot screen worked perfectly but after I updated via the update manager the boot splash became all static and green lines across the image. It still boots up to the login screen but it's just ugly looking at it.

I have (via hwinfo)
20: PCI 105.0: 0300 VGA compatible controller (VGA)
[Created at pci.318]
UDI: /org/freedesktop/Hal/devices/pci_1002_5a61
Unique ID: ul7N.dFXV26GrjA4
Parent ID: vSkL.CTscIjbcyd9
SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:05.0
SysFS BusID: 0000:01:05.0
Hardware Class: graphics card
Model: "ATI Radeon XPRESS 200 5A61 (PCIE)"
Vendor: pci 0x1002 "ATI Technologies Inc"
Device: pci 0x5a61 "Radeon XPRESS 200 5A61 (PCIE)"
SubVendor: pci 0x103c "Hewlett-Packard Company" .....
Primary display adapter: #20

View 4 Replies View Related

Programming :: Assigning Custom String To Std::string In C++?

Oct 12, 2009

I've been given a custom-made string class which handles string, wstring and bstr. It has a number of methods and assignment operators to convert to and from different types. The app I work on compiles happily in VS6 and VS2008, but when trying to compile in Redhat (version 4.1.1 in Redhat 5.0)

[code]....

View 4 Replies View Related

Programming :: How To Check If All Letters Of One String Are In Another String?

Nov 11, 2010

I have the following two type of strings1: A/D2: A/C/DI am trying to write a subroutine to check whether all of the letters in string 1 appears in string 2. If yes, return true. If not, return false. In the above example, all the letters (A and D) in string 1 are also present in string 2, so I return true.

View 4 Replies View Related

Ubuntu :: Error 11: Unrecognized Device String When Changing The Boot Order To Default

Jun 24, 2010

i downloaded backtrack 4 (final) and booted the iso onto a flash drive using unetbootin. i then changed the boot order so the flash drive was first. after i did that i got into backtrack 4 did the install.sh and now i cant boot windows 7. even after changing the boot order to default, i turn my computer on and get a message that says:

Ubuntu 8.10, kernel 2.6.30.9
Ubuntu 8.10, kernel 2.6.30.9 (recovery mode)
Ubuntu 8.10, memtest86+
Other operating systems :
Memory Test (on /dev/sda1)
Ubuntu 8.10, kernel 2.6.30.9 (on dev/sda1)
Ubuntu 8.10, kernel 2.6.30.9 (recover mode) (on dev/sda1)
Ubuntu 8.10, memtest86+ (on dev/sda1)
[Code]....

i can only boot backtrack 4 OS, i really want to know what can i do to be able to boot my windows 7 home premium os.

View 2 Replies View Related

Networking :: Static IP Address That Has A Reverse Lookup To "myipaddress.static.lyse.net" And Not Email Domain?

Apr 26, 2010

I got this message on Friday from just one domain. uote:mailsrv.forthnet.gr #<mailsrv.forthnet.gr #5.5.0 smtp; 554 5.5.0 Your message was considered to be spam by the FORTHnet Antispamming Policy and was not delivered to the recipient. The following spam tests returned positive for this message:FORGED_RCVD_HELO,RCVD_IN_BRBL. For further information visitWe are not a spamming community but it seems we have a statice IP address that has a Reverse lookup to "myipaddress.static.lyse.net" and not my email domain. Would setting a cname mail.mydomain.no -> myipaddress.static.lyse.net cure this problem or are there more tricks to be performedOnce I have cured the FORGED_RCVD_HELO I can move to getting the IP removed from BARACUDA.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved