Ubuntu :: Scripts At Boot And Shutdown Not Running?
Jan 16, 2011
I have a small but annoying problem... I have two scripts that I want to run automatically one at boot and one at shutdown. For the one at boot I tried to put it in rc.local or to create a file in /etc/init.d/ based on the others files in the folder but nothing worked... I need it to run system-wide and not once a specific user is logged in.
For the script at shutdown I don't know how to do it but it can be user specific or system-wide I don't really care. I am running Ubuntu 10.10 64bits with kernel 2.6.35-24-generic
PS. I should add that when executed manually both scripts works perfectly well and I don't need those script to run continuously in the background, just run and quit.
View 9 Replies
ADVERTISEMENT
Jun 20, 2010
I cant shutdown without running sudo shutdown. When I try to use the default gnome shut down it takes me back to the logon screen. Fresh install today and I've had the same problem on other installs.
View 9 Replies
View Related
Jun 30, 2010
when my pc boots and shuts down my monitor goes into 'input out of range' mode for a bit between the gui and the text only phases of boot/shutdown.is there a way to fix this? or where to start troubleshooting?also, when it shuts down it hangs after coming back to the text only part
View 4 Replies
View Related
Mar 30, 2010
I'm trying to reboot the server (shutdown -r now).But it seems like nothing happened.
When I try "shutdown -c", the system prompts "shutdown: cannot find pid of running shutdown."
View 5 Replies
View Related
Jan 29, 2011
I'm use ubuntu 8.10 ( on a msi 645 notebook ) and i'm trying to shutdown from grub. I have add these entries to menu.lst after the ### END AUTOMAGIC KERNEL LIST
title Halt
halt
I only get a black screen but the pc is still running someone said it only put grub to sleep or something. I also tried this commands sudo shutdown -h now or init 0, poweroff... but there all "unrecognized commands" in grub... Is there a possibilty to shutdown from grub.
View 6 Replies
View Related
Jun 25, 2010
i want to run a script when computer shutdown to close my teamspeak2 serveri know how to start it automatically http://www.fedorafaq.org/basics/#startonbooti found a good start stop script for ts2Quote:
#! /bin/bash
# Copyright (c) 2004 TeamSpeak team All rights reserved.
#
[code]...
View 4 Replies
View Related
Sep 30, 2010
I want to shutdown my computer as if power was cut off (don't ask me why). How do I do this under Linux?
View 6 Replies
View Related
Sep 9, 2011
What's the correct way to shutdown system while apt-get is still running? apt-get complains about unclean shutdown when I just shutdown computer.
View 2 Replies
View Related
May 12, 2011
Simple question: what parameters can be used to shutdown a computer running Linux/OSX in 30 seconds? I've always run Windows, where I would go shutdown -s -t 30 but the parameters are different. I've looked it up here but it will only let you shut a computer down at a specific time (like 8:00) rather than in a specific amount of seconds.
View 4 Replies
View Related
Sep 3, 2009
I've used the following script here: [URL] to upgrade Alsa to 1.0.21 in Ubuntu 8.04. Now whenever I run:
Code:
sudo shutdown -h <time> or sudo reboot from the terminal I get a rather annoying beep sound. What's even more annoying is if I use the shutdown command to specify a time I get a beep every 10 minutes or so.
I've tried disabling the terminal beep in the terminal profile, disabling the beep in System/Preferences/Sound, adding "blacklist pcspkr" to /etc/modprobe.d/blacklist, and running gconf-editor from the terminal and setting /desktop/gnome/peripherals/keyboard/bell_mode to 'off' rather than 'on'.
View 6 Replies
View Related
Nov 30, 2010
So I found many methods on google, but no one works. It seems that this one is THE Debian way.
Code:
### BEGIN INIT INFO
# Provides: mystartupscript
#[code]...
View 5 Replies
View Related
Jul 25, 2010
I just recently installed ubuntu 10.04 and it works great! I got it to work with both of my printers, scanner, and zune! The problem is occasionally when I boot up ubuntu it stops and displays "[drm:rs400_gart_adjust_size] *ERROR* Forcing to 32M GART size (because of ASIC bug ?)"
View 2 Replies
View Related
Sep 13, 2010
Strange problems and I don't know if they are related. This is Ubuntu 10.4 32 bit on a Toshiba Qosmio x505-q875 laptop dual boot with Winblows 7. One drive bay is a 64GB SSD with windows, my root, usr, and swap partitions on it. The other is a 1TB drive with the home partition.
First Problem: After the Grub menu disappears (defaulting to Ubuntu) about 25% of the time nothing happens. No harddrive light blinking, no cursor, nothing. Everything just stops. I have to use the power button to reset it. Happens several times in a row occasionally. I've never had this happen with Windows.
Second Problem: Sometimes Ubuntu doesn't see the sound card at all. The speaker icon is grehyed out and when I go into sound preferences, it doesn't list any sound device at all. Rebooting fixes it. This happens maybe half the time.
Last Problem: This one happens when the sound doesn't work. When i go to shut down the system, the hibernate and suspend options are not in the shutdown menu, and when I do shut down, it only logs me off. Even at the log on screen, if I tell the system to shut down again, nothing happens. I can log back on it that means anything, but shutting down again has the same effect.
View 6 Replies
View Related
Apr 23, 2011
My system sometimes crashes on startup/shutdown. No idea what causes it
This is my info:Kernel: Linux Mewtwo 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 07:54:58 UTC 2010 i686 i686 i386 GNU/LinuxUbuntu version: Ubuntu 11.04 (Note: This also happened BEFORE upgrading to 11.04)All the info i could get is in those pics (This happened on boot but I also have crashes on shutdown):[URL]I couldn't find those logs anywhere else in /var/log so I guess it happens before the log files are opened
View 1 Replies
View Related
Dec 10, 2010
I have installed a cluster computer with 10 nodes . The manufacturer is HP . All nodes and the master node have redhat enterprise linux installed in them . When I shutdown the nodes from the master terminal using "shutdown -h now" they get shutdown . But they dont get completely turned off . This issue bothers me when the power supply is given , all nodes boot up simultaneously generating a huge heat .
Thing to note : When we shutdown our PC they get completely turned off . When the power supply is given , a press on the Power On button is required to boot the system. But , why does it not happpen in the case of cluster? Is there any other way of completely turning off the nodes from the master terminal ?
View 1 Replies
View Related
May 19, 2010
I cant get a bootsplash image at all during boot/shutdown. Anyways I tried some solutions and kinda realized I dont have /etc/initramfs-tools/conf.d/splash. Could that possibly be it? And if so, how do I fix this. 10.04 Nvidia graphics Is there another solution to plymouth? I tried splashy and usplash wont install. So anyone else know a way.
View 1 Replies
View Related
Aug 6, 2010
We may edit some values for GRUB from /etc/default/grub to modify the way that computers boot up and shutdown.My question is how to make such modifications for boot and shutdown. For example, suppose I want to display two splashes one during booting and the other during shutdown or I would like to acpi=off during booting and then acpi=force during shutdown.
View 1 Replies
View Related
Oct 16, 2010
For the past few days, my Ubuntu server (it is a desktop that functions as a server, Desktop installed) have been very slow.
Today, it stopped responding to ping, I could not SSH into it (once, I managed to come so far that it asked for my password, but I got timed out) and I could not connect via VNC.
I switched it off, to boot it up again. Post completed, and the screen went black, before the white text "Read Error" appeared on the screen.
I shut it down again, waited a minute or so, before switching it back on. This time, the "read error" did not show up. The "text only" startup for Ubuntu showed up, so I hoped it was all okay. It turned out it wasnt.
I have some pictures:
http://yfrog.com/4pimag0127xj
http://yfrog.com/jnimag0128bj
The top lines are code...
Any ideas on what could be the issue here, and how to fix it?
View 5 Replies
View Related
Feb 18, 2011
I got a question, is there a script or program that automaticly boots my server and shutdown at give hours of a dayI want to have my server running from 7am till 8pm ever weekday (Monday-Tuesday-Wednesday-Thursday-Friday)
View 6 Replies
View Related
Apr 5, 2011
I was stupidly compiling code on my netbook with 10% battery left. The CPU ate up my battery reeaally quickly and it did a hard shutdown while still compiling.When I boot up, the Ubuntu loading screen shows up for about two seconds and then it goes to a completely black unresponsive screen. I have a live install on my thumb drive, but I don't actually know what I need to do to fix whatever broke.Edit:Oo, something happened. When I pressed a key the screen filled up with a bunch of stuff I don't understand. But the last two messages are:
[ 450.807328] Fixing recursive fault but reboot is needed!mountall: Disconnected from Plymouth
View 2 Replies
View Related
Jun 9, 2011
I had to shutdown the computer while upgrading from Lucid to Maverick as it froze(bug in X11) and then when I start the computer I get kernel panic messages. I used a LiveCD to backup my files and I was wondering if there is a way to log in or reupgrade the Ubuntu in some way from the liveCD.
I don't want to do a fresh install as there are a dozen things I had installed and configured in my system the last 1-2 years.
View 1 Replies
View Related
Feb 18, 2011
I got a question, is there a script or program that automaticly boots my server and shutdown at give hours of a day I want to have my server running from 7am till 8pm ever weekday (Monday-Tuesday-Wednesday-Thursday-Friday) is this possible? I'm running a Ubuntu 10.04 server with Zentyal on
View 2 Replies
View Related
Jan 15, 2010
I have installed ubuntu 9.10 with karmic kernel and GNOME, on toshiba 512 MB RAm laptop. it worked fine but some times after complete shut down or sleep, it wont boot again. Laptop is completely dead and silent. I had to power it off, battery taken out and inserted again to get it started again. Then it worked all normal and fine. Why it happens and what i shud do next?
View 7 Replies
View Related
Jan 25, 2010
Now, this is the case:
Yesterday, i tried to boot up my laptop but the battery was uncharged and it was unable to boot ubuntu karmic 64 bit. so i tried to plug the charger as soon as possible but when i looked at the screen, there was a huge black blank screen. so i had to restart it manually by pressing the power button. Now, i can see the grub screen, i can choose one of three kernels and the Windows. But only Windows can boot but the others doesn't. And also, grub timer does not work not. It does not count down to zero and autoboot the default os. I tried to reinstall grub but everytime , i got problems. Here is what i tried to do. In another try here, i failed again. In chroot, i could not "apt-get install" as it said i wasn't connected to internet (but i was), and in another try, it could not find p/rmonct /mnt/etc/resolv.conf.
View 1 Replies
View Related
Mar 4, 2010
Whenever I start my PC, the information of 'First Boot device' in BIOS changes from hard disk to CD-Rom. It happens with new start, I mean, if I restart my computer after resetting First boot device to hard disk, then priority does not change. Just as I switch on computer, a black screen appears with the message:
CMOS - checksum error - defaults loaded
press F1 to continue, DEL to enter setup
Recently it used to happen, that PC was not reading my hard disk containing GRUB. I have 2 hard disks. I switched the power cables of two hard disks. After that, both hard disks were shown by BIOS but the above mentioned error started appearing. Also grub takes too much time to load. It takes almost 20 seconds. Earlier I was using 'Puppy Linux'. In that, Grub was loading in fraction of second.
View 6 Replies
View Related
Mar 12, 2010
I've installed xUbuntu on a machine I will be using as a file server. Everything is fine except one thing. If the server suffers an improper shutdown such as a loss of power the next time the machine boots it gets to the GRUB2 boot menu and then waits for a keyboard input.As this machine runs headless with nothing connected other than a network cable and power lead and is tucked away under the stairs it's quite an inconvienience to go to the machine and plug in a keyboard so I can press enter.Is there some way I could force the machine to boot as normal without stopping at the menu ?
View 3 Replies
View Related
Sep 1, 2010
I have an 80GB HDD where I installed Windows XP first and then Ubuntu. The thing is that whenever I shut down my computer and then turn it back on (wether it's right away or a few hours later, or the next day), I get the GRUB screen where you have to choose Ubuntu, but after that just a completely black screen. I then have to force a shutdown, then turn it back on, and it works. Whenever I restart it works too, this seems to happen only after a shutdown.
Specs:
Dell Dimension 4600
P4 2.8 GHz procesor
2GB RAM
ATI Radeon x1650 video card
80GB HDD
View 7 Replies
View Related
Mar 6, 2011
During boot-up and shutdown of Fedora-14-x86_64-Live-Desktop.iso live USB, I just see some graphical stuff. What needs to be done so that the screen shows text messages about what's happening during boot-up and shutdown?
View 2 Replies
View Related
Jul 6, 2010
I have recently created a KDE 4 desktop using suse studio, it boots up fine on my machine, but doesn't shutdown!!
On my mum's laptop, which I will be using it most on, (it's windoez) it won't start KDE 4 at all! I can use the console, but I wanted to impress her with the amazing GUI and Compiz. And you can't make presentations or browse the web in a console, can you?
And sudo poweroff and sudo shutdown -h now don't work either!
View 9 Replies
View Related
Feb 17, 2010
I have installed the ubuntu 9.10 and the pc already have 2 win 7 OS and 1 win xp I installed the ubuntu from win xp every thing go just fine but in win 7 boat loader it detects the 2 win 7 OS , previous windows ( the xp )and the ubuntu which fails to load from win7 boot loader ( the first problem ) but it is present also in win xp boat loader so when choosing older windows the win xp bootloader let me choose between windows xp and ubuntu which works fine when choosing it the ubuntu bootloader appears with ubuntuubuntu safe modewin7 bootloader
the second problems that choosing win 7 after restarting the pc from ubuntu fail to open it begin loading with the windows logo and then just shutdown the whole pc as if i have unplugged it! the only way to let it open is to choose older windows>>> ubuntu >>>> ubuntu bootloader >>> where there is win 7 bootloader option it returns me again to win 7 bootloader but this time the windows load complete ( mostly but may shut down also!)
View 9 Replies
View Related