Ubuntu Servers :: Script 'echo' During System Startup (runlevel 2)?
Feb 17, 2010
I have created a new script that I am executing at system startup. All was going well until the last step... see below
1. Create script mytestscript.sh
2. Made executable
3. Test script from command line. Works no problem
[code]...
View 8 Replies
ADVERTISEMENT
Feb 2, 2011
I have ubuntu desktop 10.10. I wrote a simple script that I want to execute at system startup. The only problem I have (and one that I've been struggling with for the better part of the day) is that I don't see the outputs of the script during startup.
View 1 Replies
View Related
Aug 30, 2010
I use release 11.2 and this one works very well. I try new release 11.3 and my system crash when I wont to start system on runlevel 5. There is Sempron 2 GHz CPU and nvidia fx550 graphics card. Keyboard PS2 does not responds but mouse on USB work well. When I start "safe" boot option system work well. What I can to do ? What I must change
View 4 Replies
View Related
Feb 10, 2010
Just curious if it is possible to schedule a complete system shutdown and start up?
My box with ubuntu server on it is only used as an ssh/proxy server, so I would like save on energy costs and add a layer of security by completely shutting it down during the hours I do not use it.
View 5 Replies
View Related
Apr 26, 2010
How can I disable the startup for ubuntu's desktop during booting the system?I would like to start it manually.I tried to remove the /etc/init.d/gdm file but no help.
View 9 Replies
View Related
Sep 4, 2010
runlevels 2 -5 are identical in Ubuntu. /etc/init/rc-sysinit.conf is used instead of /etc/inittab for changing the runlevel. But there's no point doing that since the runlevels are identical. The default runlevel is 2, so I tried to find some service I could disable in /etc/rc2.d. I didn't find anything I could work with.
View 4 Replies
View Related
Jul 27, 2010
I have installed 10.04 LTS server and after that x-window-system-core, gnome-core and gdm. Now it boots to a gui in runlevel 2.
1. How can I set the default runlevel to 3?
and
2. boot into runlevel 3 without a gui?
View 3 Replies
View Related
Jul 19, 2011
I've just installed gNatty 11.04 on my machine the first thing I've done is to update via the terminal:Quote:sudo apt-get update && sudo apt-get upgradeAll seemed fine but when I've gone to restart it gets stuck at this message while booting:Quote:Stopping System V runlevel compatibility've reinstalled but the problem is still occurring,
View 5 Replies
View Related
Jan 8, 2010
I'm running a server that boots into runlevel 3. I can ssh into it but I only get a blank screen when I try to connect to the vncserver that's running on it. Is it possible to connect to a vncserver that's running on runlevel 3 or does X have to be running for the vnc to work?
View 1 Replies
View Related
Mar 27, 2011
I have a script, echoSmart.sh:
Code:
#!/bin/bash
smartctl -a /dev/sda > /smartlogs/sda-$(date).txt
[code]....
View 3 Replies
View Related
Sep 7, 2010
I'm trying to use system to call echo and pass variables to it. That was a success. The problem is the variables inside the while-loop i wrote cannot be manipulated. what I'm doing wrong here? here's the code:
Code:
#include <iostream>
#include <stdlib.h>
#include <string>
#include <sstream>
[Code]....
View 7 Replies
View Related
Aug 6, 2009
Booting into runlevel 3 and then issuing the $init 5, command leaves me this."binary handler for windows applications already registered" and the system hangs there.I yum removed wine, thinking that might be the issue, but that solved nothing.
View 12 Replies
View Related
Dec 16, 2010
What is the difference between
$echo cat
$cat echo
View 1 Replies
View Related
Oct 21, 2010
I can see this phenomenon on 2 different systems running 11.3 .In simple mode and also in expert mode.
View 9 Replies
View Related
May 16, 2011
Boot of a new minimal system hangs on "Stopping save kernel messages" or "stopping system v runlevel compatibility". I have ubuntu minimal iso x86_64 from usb stick created with unetbootin (don't have a cd drive on the machine in question), and after that I didsudo aptitude install gnome-terminal network-manager-gnome gdm geditsudo rebootnever got a system back. Annoyingly I can't boot into the recovery mode either, and it seems the keyboard is only semi-responsive (i.e. many dead keys when at the grub menu).qualms about reinstalling, but I've done this a few times and ended up at the same place every time.
View 6 Replies
View Related
Apr 1, 2010
I have just moved to rackspacecloud and created a Ubuntu 9.10 server. Moved everything over all fine (7-10 wordpress sites). Now I have a couple rails apps that need to move over and run on postgresql 8.4.
I installed postgresql via sudo apt-get as per usual. Usually at this point the postgresql server starts up and I can forget about it. But no luck. I booted it by running /etc/init.d/postgresql-8.4 start. When I run that command it boots fine, I can connect via psql no trouble.
I rebooted the machine to see what happened. After boot, apache and mysql started just fine, wp sites came up nicely no trouble. postgresql wouldn't start up.
I have tried installing from source, I have tried using different /etc/init.d/postgresql-8.4 scripts. I have no idea what to do.
I have downgraded to upstart to 0.6.3-10. I have apt-get updated, upgraded. I have Googled. I have pushed and pulled.
Usually with any linux issue in the past I have been able to find a solution on the net or work it out myself. This one stumps me to no end.
The other irritating part is that while I wait to work out this issue I am still paying for my old server running my Rails apps.
View 1 Replies
View Related
Jun 21, 2010
one of the servers is the "main guy" which has NIS and NFS. the others mount the partition and can log in whith the same "main" account.
my problem is that i need to call a startup script "settings.sh" to set some enviroment variables for the cluster to work.
this script is on the NFS folder.
i would like if possible to call this script as early as possible, even before login phase, since they are servers and can be shutdown, restarted, etc.
at the moment i need to log via ssh into every one of the 4 nodes and do "source /opt/cfc/sge/default/common/settings.sh" manually each time they reboot.
i would like to put this script somewhere so that it gets called after the NFS mount, but without the need to log into an account. is possible?
otherwise i could set the nodes to automatically login into the main account..
im a little confused on something really simple, i know. But on the past i always used .bash_rc, this time i dont want to take that solution.
View 4 Replies
View Related
Jul 18, 2010
I cannot get MySQL to start on startup. Every time I need to run the following command from the command line to get it going:
Code:
start mysql
If I try to use MySQL from the command line before starting MySQL I get
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
How to resolve this once and for all
View 6 Replies
View Related
Apr 26, 2011
VLC media player hangs OS when starting, presumably as it loads a new video file (.mp4 in my case). It doesn't happen every time, but after a few days it eventually freezes the system requiring a reset. Google shows many complaints on this, but no fix. Is there a solution?
View 1 Replies
View Related
Jan 2, 2010
I've just installed the ubuntu server system on an old PC i'm going to be using as, you guessed it, a server. Because I like (some) graphical tools while configuring I also installed ubuntu-desktop on it afterwards.
The only problem is that I want to keep ubuntu-desktop, but that I don't want to boot into the (memory consuming) graphical interface by default.Does anyone know how to do that? (set the default boot to command-prompt). Also, does anyone have tips on packages I c an safely remove to clear up space and memory? (Like: openoffice, Evolution,Rhythmbox etc. are very obvious, but maybe some more hidden services and alike? Networkmanager e.g.?)
View 9 Replies
View Related
Jan 26, 2010
i am succesfully installed TeamSpeak 3 server and now i want to startup it automatically without screen daemon and on every startup on linux ubuntu 9.10 i am using this command for start the TS3 server:./ts3server_linux_amd64 dbplugin=ts3db_mysqlin home/user/Desktop/ts3server_linux_amd64
View 4 Replies
View Related
Jul 29, 2010
I am trying to run my script at startup but it doesn't run the script as root. Do I need to add my root username and password in the script, or somewhere else?
View 1 Replies
View Related
Oct 25, 2010
which config files do I edit and how do I do it?
View 2 Replies
View Related
Jun 22, 2011
I have a server that, due to the amount of data it's moving, tends to trash up the hard drive when I have a power outage or crash. It doesn't have a keyboard or monitor attached to it normally so it's a real pain when I have to boot it back up. I have to hook one up just to hit F to have it fix all the errors. Is there a way to have it do this automatically on boot rather then having to confirm it?
View 2 Replies
View Related
Aug 4, 2011
I'm having a problem with a server I just got. The first thing I did when I got it was to format the drive and install ubuntu server, but on booting up I got a black screen and my monitor (samsung syncmaster914v) displayed a bouncing notification with the text "not optimum mode recommended mode: 1280 x 1024 60hz". However at one by using a combination of plugging in the monitor after booting, and pressing random keys on the keyboard I was albe to boot into the server, and was able to access the monitor meu, which told me it was running at 640x480, and 60 hertz. having access to the console I stupidly tried changing the resolution and then rebooted, getting the same black screen.
View 2 Replies
View Related
May 13, 2010
I wanna get the startup sound Backtrack plays when logging in . Anyone can show me how to change the system startup sound and where I may be able to download that startup sound from?
View 2 Replies
View Related
Oct 28, 2010
I need to start vboxwebsrv and x11vnc on startup with a specific username.I tried entering the commands in rc.local as:/bin/su -c "/x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800" user1/bin/su -c "/usr/bin/vboxwebsrv -b" user2.But this does not start the app on startup.
View 2 Replies
View Related
Apr 14, 2011
I'm niomi and I'm the first account with sudo. I add an account, bob. niomi can get in reliably on active mode. (maybe relevant?: passive doesn't work) bob is jailed to his home directory, niomi is in ftp-special which gives her access to /. bob can't log in and his shell is set to bin/false. What could have gone wrong?
View 3 Replies
View Related
Feb 7, 2010
I'm running Ubuntu 9.10 as a web/ftp/etc server. I like to work on stuff from remote locations and have set it up to be accessed it with the external IP address by my laptop.The problem is that if I'm at a remote location and tell it to restart, when it boots up it won't log me on unless I enter the password, but I can't remote access it until I'm logged in.So, is there a command or script that I can run that will tell it to restart and bypass entering a login password?I'm only looking for something to bypass it ONCE per command/script, NOT to disable my password.
View 5 Replies
View Related
Apr 28, 2010
I have both ubuntu and kde-desktop installed, and after trying KDM, switched back to GDM which worked fine for a while (although KDE changed my other gnome settings like usplash and cursors which took a while to change back). A day later, though, when I start up my system, the screen flickers a few times then shows me a message that an x-server is already running, so hit no to try loading it on '0' again or yes to try another number.
If I hit no, it will briefly show me the KDE login screen refresh a few times and go back to the menu. If I hit yes, it refreshes about 7 times and finally shows the gnome login screen. This process takes a long time and I'm not sure is great for my screen.
View 3 Replies
View Related