![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
A Carafe of Ubuntu
![]() Join Date: Mar 2005
Beans: 143
|
Howto: avoid having to reboot!
I'm starting this howto because a lot of people seem to be under the impression that you have to reboot Ubuntu to get certain changes applied. However, when working with Ubuntu, or Linux in general, it is important to remember that rebooting is a Windows CrazyThing (TM). The only thing you should really have to reboot a Linux machine for is for changes to the kernel. All other things you can reload/restart/whatever at run-time. This is due to the modular nature of the Linux system. Why do you think Unix systems have the highest uptime?
Well anyway, lets get this started. I propose we make this kind of a collaborative effort since i'm by no means an expert (yet) and there's some stuff I don't know. So i'll just add what I do know and we can just add to each others knowledge, ok? Alright then. The graphical user interface As most of you know, you can refresh the gnome panel with the command: Code:
killall gnome-panel Code:
Ctrl+Alt+Backspace Services A default Ubuntu system has lots of services running. You can get a list of them with: Code:
ls /etc/init.d Code:
sudo /etc/init.d/samba restart Code:
sudo /etc/init.d/networking restart This is all I can think of right now. I'm sure there's lots of other stuff, but in general just remember: rebooting in order to apply stuff is a Windows CrazyThing, and if you feel like you have to do it there is probably a better way. I encourage anyone to add to this Howto! Have fun!
__________________
"Windows is something to overcome" Howto's by me: Tweak firefox! (URL now works..) Backup/Restore your system! Avoid having to reboot Compentux.org , the Linux Tip & Howto gathering initiative! Last edited by Heliode; May 15th, 2005 at 06:00 PM.. |
|
|
|
|
|
#2 |
|
A Carafe of Ubuntu
![]() Join Date: Mar 2005
Location: export HOME=Lund, Sweden
Beans: 130
Ubuntu 8.04 Hardy Heron
|
Re: Hotwo: avoid having to reboot!
Some quick notes:
1. A lot of the init.d scripts also have a 'reload' action (e.g. "sudo /etc/init.d/samba reload") which just reloads the conf file. All of them doesn't work without restarting the program, but most do. 2. "/etc/init.d/gdm restart" is correct (if you run kubuntu, exchange gdm with kdm). Although, a good thing to do is to press ctrl+alt+backspace after you've logged out. "/etc/init.d/gdm restart" is mostly used for reloading gdm's config. Anyway, it's a great howto. I would probably had written something like this if you hadn't
__________________
Proud Ubuntu user, with Debian experience. (Ubuntu as main OS since March 2005) Registered Linux User: #386006 (Linux Counter) Registered Ubuntu User: #5184 (Ubuntu Counter) Last edited by Firetech; May 16th, 2005 at 08:48 AM.. |
|
|
|
|
|
#3 |
|
Grande Half-n-Half Cinnamon Ubuntu
![]() |
Re: Hotwo: avoid having to reboot!
Nice howto !
__________________
Search before posting new threads ! Community Documentation | UbuntuGuide | Ubuntu Wiki Ask questions the smart way |
|
|
|
|
|
#4 |
|
5 Cups of Ubuntu
![]() |
Re: HOWTO: avoid having to reboot!
Also good trick to really get everything restarted without rebooting is going
to the single user mode (init 1) and then back to the normal runlevel (init 2). |
|
|
|
|
|
#5 | |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2005
Location: El Salvador
Beans: 87
Ubuntu Hoary 5.04
|
Re: HOWTO: avoid having to reboot!
Quote:
cool tip |
|
|
|
|
|
|
#6 | |
|
A Carafe of Ubuntu
![]() Join Date: Mar 2005
Beans: 143
|
Re: HOWTO: avoid having to reboot!
Quote:
__________________
"Windows is something to overcome" Howto's by me: Tweak firefox! (URL now works..) Backup/Restore your system! Avoid having to reboot Compentux.org , the Linux Tip & Howto gathering initiative! |
|
|
|
|
|
|
#7 |
|
Gee! These Aren't Roasted!
![]() Join Date: Nov 2004
Location: Ottawa, Canada
Beans: 130
Ubuntu 7.10 Gutsy Gibbon
|
Re: HOWTO: avoid having to reboot!
There's one thing that I can't do without rebooting, so far: If I'm connected to the 'net at work, and I pack up my laptop and go home without turning it off, I can't get access to the 'net until I reboot. I've blown away my resolv.conf, did an /etc/init.d/____ restart on every system I could see that looked relevant, and I still can't. Oh well.
|
|
|
|
|
|
#8 |
|
A Carafe of Ubuntu
![]() Join Date: Mar 2005
Beans: 143
|
Re: Hotwo: avoid having to reboot!
did you try;
sudo /etc/init.d/networking restart sudo ifdown eth0 sudo ifup eth0 sudo dhclient eth0 (if you're using DHCP)
__________________
"Windows is something to overcome" Howto's by me: Tweak firefox! (URL now works..) Backup/Restore your system! Avoid having to reboot Compentux.org , the Linux Tip & Howto gathering initiative! |
|
|
|
|
|
#9 | |
|
5 Cups of Ubuntu
![]() Join Date: May 2005
Beans: 34
|
Re: HOWTO: avoid having to reboot!
Quote:
sudo /sbin/service network restart <-- Does that do it? |
|
|
|
|
|
|
#10 |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2005
Beans: 94
|
Re: HOWTO: avoid having to reboot!
Same things happens to me on my laptop.
sudo modprobe -r ipw2200 sudo modprobe ipw2200 sudo dhclient eth1 (or whatever your interface is called) fixes it though. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|