Remove X Window after 4.4/i386 Installation?
Recently installed 4.4 on an old Pentium box, with all(?) of the X file sets. Thinking now of trying to use it as a firewall, and I've read that I should not have X on a firewall. Is there an easy way to uninstall X, or should I just install from scratch again? I wouldn't lose that much, but I hate to take the brute force approach if there's a smarter way. Thanks in advance for helping a newbie! -Jack
Re: Remove X Window after 4.4/i386 Installation?
Hi Jack, Jack Ort wrote on Tue, Feb 03, 2009 at 11:39:03AM -0600: Recently installed 4.4 on an old Pentium box, with all(?) of the X file sets. Thinking now of trying to use it as a firewall, and I've read that I should not have X on a firewall. Well, probably you should not *run* X on a firewall, but having the binaries and libraries around does no harm. Is there an easy way to uninstall X, or should I just install from scratch again? I wouldn't lose that much, but I hate to take the brute force approach if there's a smarter way. The smartest way is to just leave X in place, set machdep.allowaperture=0 in /etc/sysctl.conf (or re-add the comment marker # in front of that line in case you removed it), remove the line 'xdm_flags=' from /etc/rc.conf.local (or whatever you did to enable X) and reboot. Sometimes, the X libraries are needed by non-X programs from the ports tree, too, and at that point, you will be re-installing them. Perhaps you don't need many third- party software packages on a firewall, but who knows? Besides, if you are a newbie, chances are you break the system when trying to remove X. But even if you were experienced, there would be no point in removing X. Thanks in advance for helping a newbie! You are welcome, Ingo
Re: Remove X Window after 4.4/i386 Installation?
Ted Unangst wrote: There's no way to uninstall, though deleting /usr/X11R6 will get you 90% there. How about following? cd / tar -ztf /path/to/xbase44.tgz | xargs rm -- Cezary Morga If everything seems under control, you're not going fast enough (Mario Andretti)
Re: Remove X Window after 4.4/i386 Installation?
Cezary Morga wrote on Tue, Feb 03, 2009 at 07:31:59PM +0100: How about following? cd / tar -ztf /path/to/xbase44.tgz | xargs rm Look up http://marc.info/?l=openbsd-miscm=121190668200375w=2 (May 27, 2008) and read the whole thread, in particular the very useful postings by Stuart Henderson. People will come up with even worse suggestion than yours: For example, Travers Buda suggested adding -rf at the end. Ooops. Anyway, let's not restart that thread. If everything seems under control, you're not going fast enough (Mario Andretti) Yeah, that hits the mark. :)
Re: Remove X Window after 4.4/i386 Installation?
On Tue, Feb 3, 2009 at 1:31 PM, Cezary Morga c...@therek.net wrote: Ted Unangst wrote: There's no way to uninstall, though deleting /usr/X11R6 will get you 90% there. How about following? cd / tar -ztf /path/to/xbase44.tgz | xargs rm 1. that doesn't delete nearly 90% of X, unless you also do it for the font and serv and whatnot files. 2. it requires you have the base sets available, which is frequently a hassle. 3. by the time you correct for points 1 and 2, you're getting dangerously close to having a self destruct tool. 4. as a general personal rule, i don't feed people pipelines that delete files. see point 3.
Re: Remove X Window after 4.4/i386 Installation?
Ted Unangst wrote: On Tue, Feb 3, 2009 at 1:31 PM, Cezary Morga c...@therek.net wrote: Ted Unangst wrote: There's no way to uninstall, though deleting /usr/X11R6 will get you 90% there. How about following? cd / tar -ztf /path/to/xbase44.tgz | xargs rm 1. that doesn't delete nearly 90% of X, unless you also do it for the font and serv and whatnot files. Of course this had to be done for each x* set. 2. it requires you have the base sets available, which is frequently a hassle. You're right. I guess I just got used to broadband that I didn't think about it. 3. by the time you correct for points 1 and 2, you're getting dangerously close to having a self destruct tool. As Ingo suggested, I won't continue this subject. 4. as a general personal rule, i don't feed people pipelines that delete files. see point 3. I wasn't feeding anything, just asking the list. -- Cezary Morga Middle age is when you've met so many people that every new person you meet reminds you of someone else. (Ogden Nash)