Ubuntu :: Are There Multiple Ways To Restart Ubuntu Server?
Jul 12, 2010
Are there multiple ways to restart Ubuntu server? I am running Ubuntu Server 10.04, and I know you can restart it with the following code
Code:
sudo shutdown -r now
Also, I have heard about people who haven't had to restart their linux boxes for years, and I was wondering weather restarts whether this was necessary or not. When I logged onto my server the other day, there was a message that said I had to restart the server.
Is there a way to restart the server without effecting the uptime command?
I've set up a server for the first time today and I'm reading up on how to secure it. But I was wondering if anyone here would give me some tips from personal experience on what to do before going online with my website for the whole world to see. I'm running Ubuntu Server edition and Apache. Am I good to go with default settings or is there anything recommended that I should first do?
I have Ubuntu 11.04 on a disk, and installed it on an empty hard drive. When I start my desktop my screen is black with a flashing "_" in the top left corner... Nothing happens. I usually have to restart the computer multiple times before it will actually work. I tried running Ubuntu in recovery mode and fixing any broken packages, but no luck.
I want to know what are the ways to monitorize and control/stop flooding on my server, because I am heavily flooded. At this moment I am doing all this manually (when I see that my bandwidth is lowering or some applications are freezing), my main working tool being iptables.But I want something automated .
Another problem : if I am flooded with packets having real ip addresses , with a simple iptables command I cand resolve the problem easily. But, the problem is, in most of the cases, I am flooded with packets with spoofed ip adresses (e.g. 1.2.3.4 ), so the only thing I can do in this situation is to block all incoming packets (which ruins everything).Do you have a solution to this ? The flood monitorizing (and controlling) tool may be with/without interface, only to be effective.
The 'Multiple Screens' tool, aka grandr, is very handy for setting up my dual monitors. But restarting my system restores the monitor setup to the (crummy) default settings. Is there a way to save these settings and make sure they are always applied when the OS boots? Putting these settings in my xorg.conf would be fine, but I'm not sure where or in what form the settings generated by grandr might be located, or if they're at all xorg.conf compatible.
I'm looking at setting up a couple automated systems: Here are a few examples:
* Internal accounting system to download and process emails * Public web server to visit
I could put each system on its own separate box -- for example, it's generally good practice to separate anything that external users have access to (such as a webserver) from internal processes such as accounting. Now, rather than dishing out the money for two separate servers, could I get away with just installing new instances of VMWare on the same box for each system?
To give you an idea, these are not large scale computationally sensitive systems. The accounting one is simply downloading and tallying emails, and the latter is just a webserver with maybe 5 hits per day on a good day. I could definitely pick up a new box for say $50, but I wanted to know the general practice of using VMWare on the same box versus two separate boxes.
This is a clean install of Lucid sometimes I get the Ubuntu loading screen and sometimes just black screen followed by a flash of green across the top and some text. Sometimes its loads with a high resolution and that's when there are other problems no authorisation to mount other file systems and no shutdown or restart just takes me back to login. When it loads at the lower resolution it seems to work fine.
I've started facing the weirdest problem. I have to restart the ethernet interface a couple of times a day and everytime i do that the server locks up completely and i have to hard reboot it.info: recently shifted to a new server, all new components and new installation, OS version CentOS 5.6
I just want to know weather it is possible by some means to set different preferences for the two desktops that are available in ubuntu?? E.g.: different backgrounds, shortcuts etc...
I have been using another Linux distro(Xandros) for 3 years on one computer and have just installed Ubuntu 10.04 on a different computer. I am trying to network the 2 computers via simple ethernet cards and a crossover cable so that I can gradually migrate applications, data and peripherals from Xandros to Ubuntu. I am completely new to Ubuntu and I am really struggling to get NFS to work. Each computer can ping the other, so the hardware connectivity seems OK. I have shared the relevant directories from each computer. I have followed malco2001's ellent HowTo guide and have now reached the stage where Xandros, as client, can mount directories on Ubuntu, as server, and see the files but I cannot get Ubuntu, as client, to mount directories on Xandros. When I attempt this from Ubuntu, using the command
# mount -t nfs 192.168.1.2:/home/richard /mnt/PC2_richard (I have already issued from Ubuntu: # mkdir /mnt/PC2_richard) I get the message: mount.nfs: mount to NFS server '192.168.1.2:/home/richard' failed: RPC Error: Success The configuration of various files etc. is as follows: Ubuntu IP address: 192.168.1.1
[Code]...
I should mention that Xandros does not have nfs-kernel-server installed; instead it has nfs-user-server.I am sorry if I have omitted or done something really stupid but I have spent best part of a week on this with only partial success.
I have an old desktop computer at home in which the CD drive is not functional. Also my BIOS does not allow me to boot from USB. Is there anyway in which I can run Ubuntu 11.04? Installing inside windows is not an option too because the partition containing windows is not not working.
have to create a webhost on an running fedora server which runs multiple webpages + a coldfusion serveri have to add an coldfusion virtual host to these.what i would do:*crate a new user & group*enter vhosts.conf and copy an existing host and modify it for the new one.*create an new folder and copy the main files (phpstarter and webroot) *chown the files for the right useri think an apache graceful would be needet
Sometimes, i just want to run a shell terminal so i can access the desktop environment of another computer over ssh. is there a way to kill the X server and have it NOT restart in 9.10 Ubuntu?
I have just finished the upgrade of the latest version and I'm at the point of my system restating.
My system automatically tried to restart but on the restart I got the 'terminal' view. It stopped when asking for my username (it never normally asks for this before the grub menu) and then password. I didn't get any further than that.
I now have on my screen (still in the terminal view before the grub menu)
"name@name-desktop:...$ "
I'm on my phone now so I don't actually have the symbol for before the dollar sign but your know what it is. The raised S on a 90 degree angle.
My desktop machine has U 10.10, Gnome, Compiz, Cairo dock. After a lengthy session with lots of programs and windows open, hitting the shutdown or restart or logout buttons don't produce anything at all. Suspend works. Sudo shutdown -h now in a terminal window works. Why the graphical ways of shutting down don't work?
I found myself in troubles. I was trying to get dts passthrough works in many many ways with no success. Finally I (desperately) decided to try OSS rather than ALSA following this guide: [URL].. And there the things went wrong. I ended up with no sound at all so I tried to reinstall alsa again but with no luck.
basicaly what I did after following the guide was: sudo apt-get install alsa-base alsa-utils. sudo dpkg-reconfigure linux-sound-base //and choose alsa
but still, for example: $ alsamixer puts: alsamixer: function snd_ctl_open failed for default: No such file or directory $ /etc/init.d/alsa-utils start * Setting up ALSA... [ OK ]
but no alsa process at all. $ aplay -l aplay: device_list:223: no soundcards found. It seems to me like sound card drivers are gone..
I find out there are two ways to do that: sudo passwd -l root sudo usermod -p root What are the different? I saw a kubuntu post said: -l, --lock
Lock the named account. This option disables an account by changing the password to a value which matches no possible encrypted value. I enable and set a root password, I want to return to a "no possible encrypted value" just like the way it was.
am running 10.10 64bit and I am wanting to change a few wayssome programs start up on boot, they are as follows:1. make NetworkManager not load onboot and require me to manually start it in the command line2. make bluetooth not start on boot and allow to manually start it from the command line3. make networking not boot on startand start manually from command line I have been trying to search on google but most of thereads I find are about removing things completely and the few that werent did not work for what I want to do.
I'm looking to run a dual boot on this laptop. I have Win7 currently installed, and I have my hard drive partitioned and ready to go for an Ubuntu install. I've downloaded the i386 CD from the website, burned it successfully. I rebooted with the disc in, and when I select install to hard drive, it shows a blinking cursor below the install screen and hangs there. I installed the ISO to a bootable USB drive and tried to install it that way, same thing. I even tried downloaded one of the alternative CDs and installing it both ways. Same problem. Ive installed Ubuntu on this laptop before and it's ran successfully. I believe it was 9.04.
Gateway ML3109 2GB of RAM 75GB HDD (65 for Win7, 10 for Ubuntu) 798MBs of Video RAM
I have a suspend problem in my laptop. Sometimes, when resuming from suspend, the network adapter is down (that is, the network does not work and the light of the network adapter is off). Restarting the network service doesn't work, because I think that the system forgot about the hardware, and probably the driver should be reloaded.Does anyone knows how to do that?(ps. /etc/init.d/networking restart does not work, because the hardware driver is not being recognized anymore).
My Ubuntu 9.10 works well with the network through samba, but only if I first run - sudo service samba restart Then all is fine. I don't understand this. How can I avoid having to do this? Or alternatively where can I best put this command so that it will be run on boot-up.
I thought I would play around with php for a while and so set forth to configure apache. Whilst I was reading a website for installing LAMP stuff on ubuntu I thought I would give it a go. I installed a LAMP server with: sudo tasksel install lamp-server and lo and behold it crashed my operating system upon restart. So both my laptop and desktop were toast.
Everything is reinstalled now so is fine and I have installed apache2 and php5 from separate packages. The one thing that's troubling me is why it crashed. It seemed to uninstall vlc media player, m-player and gnome-player as well as removing the "switch accounts" button on the lock screen. Does anyone know 1) why it died and/or 2) why it chose to eliminate those programs specifically.
I'm using Ubuntu 9.10 on a home network (without internet access)Occasionally I need to restart the print server. Code: xterm -e 'sudo /etc/init.d/samba restart' each time it asks for the password but because this is a closed network, I'd like to dispense with it asking for the user password each time
I have an Alienware M11x r2 laptop running Windows 7-63 and Ubuntu 10.10 Unity installed.It was all fine and dandy until I changed my grub timeout to 1 sec (or perhaps 0, its been so long i can't remember!) to reduce the waiting time until an OS boots.My grub was set to boot to Windows 7 as default.Now when I boot up I cannot halt the boot process not matter what key I press (e.g SHIFT).I am doomed to forever boot into Windows. Its been months and I had written off my Ubuntu OS but I am tempted to try and fix this one more time.Since I cannot access the Ubuntu installation AT ALL I cant use the usual ways to increase the timeout on the grub menu (yes I have searched the forums far and wide).
Is there ANY way of changing the grub menu parameters without actually booting into Ubuntu Unity? Can I modify the timeout settings using a live cd or usb boot?
i am running lubuntu and i have google chromium. i went to videos today, and i add to install adobe flash player, i tried downloading all type of ways (from the options list) but nothing work, how do i install adobe flash player on lubuntu?
bit of a server noob having built a server to hold a php website for a client hosting at home, I have some experience, but VERY limited and don't speak fluent server.My problem is that overnight each day apache on my clients server stops responding. I can still access via putty / webmin.The best I can see it, it seems that apache 2 opens too many child processes and chokes the system. My reasoning for this is:-Though I have max child set to 20 with a keep alive of 30 there are dozens of child processes 'apache2 -k start' running, some of which were started 9.5 hours ago.
-I can stop apache, though that doesn't kill these child processes. I can terminate the parent process which does kill the child processes, however restarting apache after killing the child processes results in a system crash. Rebooting the server remotely after apache has stopped responding also results in a server crash. That is NO response on any port.I would be happy to display any pertinent server config/logs etc if anyone can help me troubleshoot this?
Code: andy@novo:~/srcds/orangebox$ sudo ./srcds_run -console -game cstrike +map de_dus t Auto detecting CPU.Using default binary: ./srcds_linux.Server will auto-restart if there is a crash. Illegal instruction Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem Wed Dec 1 16:22:40 GMT 2010: Server restart in 10 seconds Illegal instruction Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem Wed Dec 1 16:22:50 GMT 2010: Server restart in 10 seconds Illegal instruction Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem Wed Dec 1 16:23:00 GMT 2010: Server restart in 10 seconds ^X^CWed Dec 1 16:23:01 GMT 2010: Server Quit In a never ending loop - i then add the -debug flag - and do sudo updatedb then locate debug.log but none has been created...
I have dual monitors running successfully with my BFG GeForce 8400GS and NVIDIA X server settings. The only problem is every time I restart, the settings go back to default, so I have to setup the dual monitors again.