General :: Adding Script - SH File Did Not Start At Boot Up

Mar 14, 2011

How do I add a script to rc.local to run at bootup?? I've few .sh files, service files and .cgf files. The service files are fine but the .sh file didn't startup at the bootup. I've included the .sh and cfg file as below:
/path/to/directory/file.sh start
/path/to/directory file.cfg

View 14 Replies


ADVERTISEMENT

General :: Boot Loader Failure - Windows Could Not Start Because The Following File Is Missing

Oct 18, 2010

I have a system with 2 hard drives. One drive (D) is my Ubuntu 10.04 system and the other drive (C) is my Windows XP system.

When I boot, I get BIOS then GRUB. If I choose the XP selection I am taken to a Boot Loader that now longer works. I get an error saying: "Windows could not start because the following file is missing. <windows root> system32hal.dll Please reinstall a copy of the above file.

Can I remove the boot loader and let Grub take me directly to the C:/windows? If so how?

View 4 Replies View Related

General :: Adding Lines Of A File Together?

Feb 22, 2010

I'm trying to output two certain fields of a very large text file to 2 very small text files. Then take those files and add all the lines together to come up with a total from each file (two totals).

Here's what I've got:

Code:

#!/bin/bash
echo "0" > /media/in.txt
echo "0" > /media/out.txt

[code]....

Breakdown: Put 0 in a text file to be drawn by respective while loops for math later

Output last 60 integers to a file for total A (new integer every minute)
Output last 60 integers to a file for total B (new integer every minute)

The two while loops are supposed to be adding the lines together. The echo commands at the end are for testing purposes, just to see the output. However, when I run this, I get the output of

Code:

0 0

Which is obviously not what it's supposed to be. Is there a more efficient way to do this or am I missing something in the script that would reset the values to "0"?

View 2 Replies View Related

General :: Command For Adding Groups To A File?

May 15, 2010

What is the best command for adding groups to a file?

View 2 Replies View Related

General :: Adding A Files Creation Date To It's File Name?

Sep 17, 2010

I have some basic experiencing creating simple scripts/making directories/changing permissions/etc. but I'm stumped on this one.

I have two linux boxes. I have a script set up on box 'A' to SCP into box 'B', grab a copy of a database backup and store it on box 'A'. It looks like this:

scp root@X.X.X.X:/blah/blah/blah/dump.23.gz /home/blah/DB_Backups/

I have generated a public key on box 'A' and placed it into the authorized_keys file on box 'B', so a password is not required and the file copies over successfully when the script is run. On to my problem...

I need to know what date the 'dump.23.gz' file was originally created when I'm viewing it after it's been copied to box 'A'. If I ls -l on box 'A' it only shows me the date it was created on box 'A' when it was copied.

What would I need to add to my script to append the backup's original creation date on box 'B' to the filename so that when it gets copied to box 'A' I know when the backup was created on box 'B'. I'm sure this is probably confusing. I've done lots of searching and can only find information on how to append the current date and time to a file name. I need to append it's original creation timestamp to the filename when it copies over.

View 10 Replies View Related

General :: Adding Fedora 13 To A Multi-boot Setup?

Jul 17, 2010

I am currently booting 4 flavors of Linux - Ubuntu 10.04, Xubuntu 10.04, Linux Mint 9 KDE RC and Linux Mint 9 Gnome. There is so little difference between Ubuntu Gnome with the right packages installed and Linux Mint 9 it is redundant and I would like to replace it with Fedora 13 and try that out for a while. I understand that Fedora still uses a legacy Grub while the others are all using Grub2. I also understand that the two bootloaders do not get along. Is there a way to do that? How? If I have Fedora install its legacy Grub to the Fedora partition will Grub2 see Fedora and update itself properly? I'm open to starting clean if that would simplify things.

View 4 Replies View Related

General :: Options To Pickup Where Install Left Off And Start Adding Packages - Scrap And Re Install

Apr 18, 2011

I've got an ASUS eee1005 that I'm trying to load eeebuntu -- I've read good things about it! However, I managed to get it (partially) installed using only unetbootin and the eeebuntu-nbr iso. Luckily I've got other working laptops in the house, or I'd be stuck because now I've got a partially installed distro that isn't allowing me usage of my wireless. Basically, what I'd like to do is be able to go back to the install process and load all the packages I want, which, hopefully, will give me NetworkManager so that I can finally connect. I can boot to the thumbdrive (8gig, btw) but I don't think I've got the right files on it to do the install. Here's what appears on the thumbdrive:

[code]...

I would think that with these files on the thumbdrive, it could find its way into the install process. Apparently not. I've read most, if not all of the 'install from USB' threads and how-to's, and it's still not working right - Now, having a partially installed distro (with GUI that's not GNOME, or KDE. . ?) Are there any options I can use to pickup where the install left off and start adding packages? Or should I just scrap it and re-install?

View 4 Replies View Related

General :: Adding Existing Distro Back To Boot Loader?

Mar 19, 2011

Have 3 linux distros on 3 hard drives. lost one distro from boot loader. how do I restore missing distro to boot loader? drive was not written to when one distro (drive) was updated.Example drives a, b, and c each had listing on boot loader, now after upgrade to distro on drive b order on boot loader is drive b then a and none for c.

View 5 Replies View Related

General :: XP Failed To Boot After Adding Red Hat Enterprise System / Resolve This?

Jan 22, 2011

I have a Dell Precision 330 with (the latest) A09 BIOS and 1 TB SATA hard drive. There is a SATA-IDE converter between the SATA HD and the ATA133 cable. The OS was Window XP Professional SP3.

When adding RH Enterprise Linux 6 onto the computer, I created two additional partitions, one 400 GB for Linux's storage and a 10 GB swap space. I chose Window XP as the default OS.

After the installation, when the system started up, I can hit a key to have two optional OS: Window XP and Linux. If I chose Linux, the system would boot up. If I chose Window XP, the boot failed with a message that windowssystem32configsystem was missing or corrupted. I read some articles that the problem can be fixed in window's recovery console with fixboot. After entering the fixboot command and restarting the computer, Window XP still failed to boot with an error message that another file was missing.

I thought I might have made some mistakes in the installation procedure and it would be cleaner to reinstall both OS. So I tried to install Window XP Professional again. Unfortunately, after booting from Window XP CD and formating the MBR and copying the window XP files, the computer can not restart with the installed XP. Instead, the computer boot from Window XP's CD repeatedly. If I remove Window XP's CD, the computer simply can not boot at all.

I began to wonder whether RH's Enterprise Linux made some change on the MBR of the HD that Window XP can not format.

View 11 Replies View Related

General :: Script To Insert Number Of Lines In A File To The Start Of The File?

Sep 17, 2009

I'm looking for a way to insert the number of lines in a file to the start of the aformentioned file. This should be simple but as I am not used to scripts in Linux, I am finding it tough going. I can find the number of lines in a file easily enough via

filesize=$(awk 'END {print NR}' $1)

but as for inserting this into the first line, i'm failing to do so. I've tried some of the other approaches on these forums but none so far have been able to do so.

I've tried:

sed '1i$filesize' $1

but sed i requires a string, not a variable so no go I've also tried:

mv "$1" "${1}.bak" 2>/dev/null || touch "${1}.bak"
cat $filesize "${1}.bak" >"$1"

but again with no luck as cat seems to need an input stream Just to recap, i want to insert a line at the start of a given file that holds the number of lines the original file has.

ie the file:

a
b
c
d
e

should become:

5
a
b
c

[code].....

View 3 Replies View Related

Ubuntu :: Vino Won't Start After Adding Secondary X / Fix It?

Dec 3, 2010

I have recently added a second screen and uses separate X screens as my x screen settings. No xinerama. After adding the display Vino refuses to start. IIRC using dual X screens with xinerama works as expected.

Starting it manually results in code...

Is it even possible to use vino with two server-side x screens? I would be perfectly happy with only one X screen exposed via VNC if it is impossible in the VNC client to choose which X screen to connect to.

View 2 Replies View Related

Ubuntu :: Vino Won't Start After Adding Secondary X / Sort It?

Oct 22, 2010

I have recently added a second screen and uses separate X screens as my x screen settings. No xinerama. After adding the display Vino refuses to start. IIRC using dual X screens with xinerama works as expected.Starting it manually results in code...

View 7 Replies View Related

CentOS 5 Server :: After Adding Some Lines Into /etc/my.cnf Mysql Does Not Start

Feb 1, 2011

I am trying to install Koha on centos5.5. Afte installing myqsl it starts normally. But when i add following lines into my.cnf and trying to restart mysql again it says that restart is failed.

here is the lines that i add into [mysqld] section

default-character-set = utf8
character-set-server = utf8
skip-character-set-client-handshake

View 2 Replies View Related

Ubuntu :: Disabling GRUB Boot And Adding Entry To Boot.ini?

Jun 19, 2010

I want to install ubuntu 9.10 into other partition, but I want the win xp boot.ini file to configure my boot settings, not the GRUB. First I want to ask is it possible to install ubuntu, but add a boot entry in boot.ini? If not, then I know how to remove it, i found a file called ms-sys, with it I can remove GRUB. So let's say grub is no more, what should be an entry to ubuntu. When it was installed into Windows it was

Code:
c:wubildr
now what should I enter, my guess would be
Code:
m:ootgrubmenu.lst

View 3 Replies View Related

General :: Cannot Get Ssh To Start At Boot ?

May 15, 2010

I've configured ssh on opensuse a few times without issue, and to get it to run at boot I've used 'chkconfig ssh on' and it's done, sshd starts at boot.

I've recently started to use Debian 9.04, and for the life of me I cannot get ssh to start at boot, or to be more exact, if I try and connect via ssh I get 'Network connection refused' and 'ps -ef|grep ssh' shows that it is not running.

1) If I start it via '/etc/init.d/ssh start' it runs fine until the server is rebooted

2) I've done 'update-rc.d -f ssh defaults 20' it returns that the links are already in place

3) During the boot up process I can see 'Starting openBSD Secure Shell' (it was also at this point I discovered that BOOTLOGD is not enabled by default)

Another strange thing, when I edit /etc/motd it is not retained after a reboot.

View 14 Replies View Related

General :: Can Not Start An Executable File?

Aug 5, 2009

I have an executable file called jboss in the current directory:-rwxr-xr-x 1 test jboss 7151 Aug 5 11:04 jbossAn in the file jboss it looks as follow:

Code:
...
#---------------------------
# command handling

[code]...

View 3 Replies View Related

General :: Start File In Different Directory?

May 19, 2011

I am having troubles starting superPI benchmark test on Linux. I have it in a file named 'super pi' so ./super_pi doesn't work. I can't figure it out how to do it. In cmd(Win) I would do it like this

cd C:/super pi/
super_pi

If the file would be located in C:/super pi/ The problem is I somehow can't tell the path to the file.

View 9 Replies View Related

General :: Start A Script Only At Boot?

Oct 23, 2010

I have found on the net the solution (debian testing)

to add this /etc/init.d/myscript code...

and then it makes it as rc2.d but however it starts it when I turn off the pc too

View 2 Replies View Related

General :: Service Won't Start At Boot?

May 25, 2010

I have a service/daemon that won't start from boot. I have used the chkconfig --add <script name> command that went ok I also used the chkconfig <script name> on and that seems to be fine and I have made the script executable Chmod 777 <filename>. By all account it looks like the script is running at boot the the services has not started. When I do a ps -ef | grep ndb_mgmd this process is no there. the script can be run from the console and sems to run fine!

#!/bin/bash
# chkconfig: 345 70 30
# description: MySQL Cluster management server start/stop script
echo hello Paul >> /tmp/hello.txt
configdir=/var/lib/mysql-cluster/

[Code]....

View 10 Replies View Related

General :: Boot Label Changes Using Kick Start

Jan 30, 2011

I am customizing CentOS and doing the entire procedure through ks.cfg file. Everything is been configured properly except the boot label. I would want Boot label to be customized rather than the default one. Is it possible to achieve this using kickstart?

View 2 Replies View Related

General :: No Option To Select OS At The Start Up / Boot

Mar 30, 2011

I was installed linux mint in windows 7 using option "Install inside windows"... I got trouble with windows7 so i reinstalled it... but now there is no option to select OS at the start up... But i have the drive where i installed mint and all other files.. Is there any way to get it back.. Because i dont have time to reinstall mint...

View 1 Replies View Related

General :: Cannot Boot Linux At Start Screen

May 7, 2010

i have downloaded linux mint 8 and burnt it to disc ive been trying for what seems like for ever to load it but cant find out how to! im using a laptop with windows xp, and an external hard drive so cannot boot linux at start screen can anyone help me do it please.

View 2 Replies View Related

General :: Make Dhclient Start At Boot In Opensuse 11.0?

Jun 15, 2009

I looked into the handbook,googled for it,but found no working solution to this "problem". Everytime I use Opensuse I must su and then type dhclient,how can I make sure my connection will be up as soon as I log in?

View 7 Replies View Related

General :: Boot - Controlling When Services Start In Fedora 14

Nov 7, 2010

Whenever I start up my laptop running Fedora 14, I notice that it says that it is failing to connect to my default wireless network since the wireless card is not activated. Since it appears that the wireless card is not activated until the NetworkManager service is started, is there anyway for me to set NetworkManager to start before this check is made? Boot message log is attached. [URL]

View 1 Replies View Related

General :: How To Start Postgresql Server Automatically When Boot?

Aug 5, 2010

I'm wondering how I start it automatically when I boot up the ubuntu 10.04? especially, when I created the user "postgres", I set a password to it. every time I issued "su - postgres" command, I need to give it a password.

View 2 Replies View Related

General :: Enter The Boot Prompt For Red Hat 5.3 Kick Start?

Apr 5, 2010

I have ks.cfg and file.iso burned to a DVD. Both files are at the root of the DVD. Besides that, I also created a folder and keep some drivers in the folder.

I inserted the CD and reboot the server ( which already has a red hat 5.3 that I installed before, I want to erase it using kick start ).

Howver, I just can't get into the much said "boot prompt".

Do we need to press certain hot key during certain stage of reboot?

View 5 Replies View Related

General :: Start Up The VM - Get A GRUB Menu Allowing To Boot?

Nov 29, 2010

In order for me to get started with Linux, I downloaded & installed Virtualbox (V3.2.10) on my WinXP machine, and downloaded the Puppy Linux image from as per[URL].. When I start up the VM, I get a GRUB menu allowing me to boot

Quote:
Linux (on /dev/hda1)
Install GRUB to floppy disk (on /dev/fd0)
Install GRUB to Linux partition (on /dev/hda1)

I tried the first option, which results in Quote:

Booting 'Linux (on /dev/hda1)'
root (hd0, 0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinuz root=/dev/hda1 ro vga=normal

[Code]...

View 7 Replies View Related

General :: Moved File Partitions - File System Check Failed On Fedora, Windows Will Not Boot

Dec 16, 2009

my partitioning layout was as follows

Vista Recovery
Windows 7
GRUB
Extended
-->Fedora 12 (ext4)

so, I shrunk my recovery in Windows 7 successfully, and booted into my Fedora 12 live cd to run Gparted, and move the partitions so that the free space could go towards fedora, I did such, and then I couldn't expand the partition to my dismay. Next, I woke up this morning, tried to boot to fedora to run SSH, grub loaded, but when I tried to boot fedora, I got the "File system check failed" error, and when I tried 7, it just went to a blank screen with a single "_" in the top left-hand corner.

View 7 Replies View Related

General :: Start X Server And App At Boot (or Services Load) Time

Oct 14, 2009

I need to start an application (graphical) when the PC start, even before anybody login, and use/launch a specific user. Now only can do this manually; when gdm starts, switch to any text tty [ie. Ctrl + Alt + F1], then I login into the special user, start a X server, export the DISPLAY environment variable, and start the application.

With this steps:
Code:
$X :1 -verbose -nr -nolisten tcp &
# Maybe Metacity -> $ metacity
$export DISPLAY=:1
$JavaApp &
Now i need put this steps (script) in some place to launch the app automatically, and with and specific user [ie. manager].

How can I made it? Maybe in init.d? or an special xinitrc? And how can start the app with the specific user? And, if is possible, who can stop the app when the system going turn off? I have Debian 5.0 and a beginner knowledge of shell script.

View 5 Replies View Related

General :: To Start On Triple Boot Acer Aspire One Netbook

May 13, 2011

I currently have an Acer Aspire One netbook 120GB drive which came with Linpus lite preloaded. I have set-up dual boot a year or so ago. It now dual boots to either Linpus or Vista (yes I know!) via the Linpus grub.conf ( I got the instructions I think from here: [URL] I want to get the latest Ubuntu 11.04 build on this as a third boot option. If this work OK I may ditch the Linpus or Vista build at some point. So I've used Gparted on a USB drive to setup up three extended Logical Partitions (sda5, 6 and 7).

I then loaded Ubuntu s/w via an external drive with

/boot on 100MB /sda5
Swap on 1GB /sda6
/ on the 40GB+ /sda7

When I was asked for the bootloader location in the Ubuntu install gui I chose /sda5 (out of complete ignorance) All fine at this point. What do I have to get the linpus lite /boot/grub/grub.conf to see and start ubuntu?? Or is there something else I need to do?? Also, how does Ubuntu know which swap partition to use, as there is already one for the linpus lite install.

View 14 Replies View Related







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