LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-27-2005, 09:30 AM   #1
Phaethar
Member
 
Registered: Oct 2003
Location: MN
Distribution: CentOS, Fedora
Posts: 182

Rep: Reputation: 30
Unload a module without rebooting?


Hey all,

I was wondering if there was an easy way to remove a module without having to reboot the system. I have a handful of systems here that are loading the vnc module on startup, as it was set up to do so in the xorg.conf file. I need to remove VNC from the systems, but they are in production already and I'd really prefer to not reboot them if at all possible. It's easy enough to edit the xorg.conf file and remove the settings that load it, but can I unload vnc while the system is running, or is a reboot the only way? The are all Fedora 2 and 3 systems.

Thanks.
 
Old 04-27-2005, 09:42 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
Just restart the X server and it will be unloaded.
 
Old 04-27-2005, 09:52 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
Don't forget to disable the module in the config file before restarting X.

Yves.
 
Old 04-27-2005, 12:39 PM   #4
Phaethar
Member
 
Registered: Oct 2003
Location: MN
Distribution: CentOS, Fedora
Posts: 182

Original Poster
Rep: Reputation: 30
Quote:
Just restart the X server and it will be unloaded.
Ok... maybe this is a dumb question and I'm just in the dark about this, but how do I restart the X server on Fedora 2 or 3 without restarting the entire system? It doesn't have a text boot mode, it's graphical all the time. Logging out still keeps the X server running and has a graphical login screen, so you never have to run a 'startx' to get into graphical mode.

Again, maybe this is obvious and I'm just not seeing it... if someone could point me in the right direction, I'd appreciate it!

Thanks for the tips!


Edit: NVM, I got it working now. For some reason, just editing the xorg.conf file and logging off wasn't doing it. But, if I edit the file, then make a resolution change (even if I don't change anything), causing it to make a new xorg.conf file, then it works by just logging out and logging back in. Weird, but at least it works. Thanks!

Last edited by Phaethar; 04-27-2005 at 12:56 PM.
 
Old 04-27-2005, 01:42 PM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
Logout. When you are sitting at the graphical login do a ctrl-alt-backspace. It will restart your x server. You can also do this by using ctrl-alt-F[1-4], logging in to a text consol, and doing a kill -s HUP <pid> where pid is the pid of your graphical login manager (usually either kdm or gdm). You can get a processes pid from ps.

EDIT: Sorry.. I missed your edit...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to unload kernel module dynamically kushneeraj Programming 1 10-27-2005 12:46 AM
unload ub-module at boot? Urkburk Slackware 10 03-25-2005 06:35 AM
How can i force unload a module that is busy Doomhammer Linux - Software 1 03-23-2005 02:25 PM
Unload module to swap drives? RandomLinuxNewb Linux - Hardware 3 10-04-2004 08:25 PM
Unload wireless module (orinoco_cs)? coujeaux Linux - Wireless Networking 1 10-15-2003 12:48 PM


All times are GMT -5. The time now is 09:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration