View previous topic :: View next topic |
Author |
Message |
nolim n00b
Joined: 17 Dec 2005 Posts: 22 Location: Israel
|
Posted: Thu Mar 16, 2006 1:23 pm Post subject: List of things, we shouldn't do in gentoo... |
|
|
If anyone doesn't understand why we shouldn't these action, please ask.
Here is the list of things you shouldn't do:
1. Code: | emerge --unmege gcc |
2.
Do instead:
3.To work as root in graphic environment!
4.Install software not by portage(The program exists in portage)
5.Install several packages in several terminals at the same time().
6.I am recommending not using hardend flag only if you have to...
Add more things to that list... _________________ Linux, if it's broken fix it!
Gentoo, The Power To Be Free
FF is not FastForward...FireFox get ready!!
[img]http://nolim.er1.be/trust.gif[/img] |
|
Back to top |
|
|
Ctrl+Alt+Del Guru
Joined: 04 Jul 2004 Posts: 326 Location: .de
|
Posted: Thu Mar 16, 2006 1:52 pm Post subject: |
|
|
emerge --unmerge python/glibc is equally dumb
in general don't use root unless needed. X or not.
why should one prefer -e world over -uD ? they are two different things for different purposes.
my all time favorite: never ever type shutdown -h / init 0 into a shell unless you have physical access to the box... |
|
Back to top |
|
|
nolim n00b
Joined: 17 Dec 2005 Posts: 22 Location: Israel
|
Posted: Thu Mar 16, 2006 2:17 pm Post subject: |
|
|
About the root you are right, and I want to add that it's better to use sudo.
You can limit yourself as a superuser(can only change several environment variables and more-Not acces to all the system).
emerge -Du system will update your system development tools so you and will probablyl break some packages.
If you still want to update your system and gcc...you should type emerge -e world...
emerge -Du world is perfectly fine when you just want to update your programs...
It has nothing to do with emerge -Du system, except the emerge -Du. _________________ Linux, if it's broken fix it!
Gentoo, The Power To Be Free
FF is not FastForward...FireFox get ready!!
[img]http://nolim.er1.be/trust.gif[/img] |
|
Back to top |
|
|
Blue Fox Apprentice
Joined: 09 Apr 2004 Posts: 216
|
Posted: Thu Mar 16, 2006 2:36 pm Post subject: |
|
|
nolim wrote: | About the root you are right, and I want to add that it's better to use sudo.
You can limit yourself as a superuser(can only change several environment variables and more-Not acces to all the system).
emerge -Du system will update your system development tools so you and will probablyl break some packages.
If you still want to update your system and gcc...you should type emerge -e world...
emerge -Du world is perfectly fine when you just want to update your programs...
It has nothing to do with emerge -Du system, except the emerge -Du. | Not really, emerge -Du world you most likely upgrade your 'system' metapackage. _________________ "Never argue with and idiot cuz he bring you down to his level and beat you with experience" |
|
Back to top |
|
|
e-ipi Apprentice
Joined: 23 Aug 2005 Posts: 192
|
Posted: Thu Mar 16, 2006 5:37 pm Post subject: Re: List of things, we shouldn't do in gentoo... |
|
|
nolim wrote: | If anyone doesn't understand why we shouldn't these action, please ask.
4.Install software not by portage(The program exists in portage)
|
Hmm... I kinda disagree with this one. I understand that it really makes no sense to work with gentoo unless one uses portage, but in some cases, the portage packages are more hassle than installing something on your own.
Here's an example:
I use texlive rather than tetex. Since I'm on ppc, I need to compile all the tetex binaries because texlive doesn't supply them for linux-ppc. It is generally a Big Hassle to have two TeX installations, so I do it myself rather than use portage. (And even on x86 you probably wouldn't want to use portage if you were going to use texlive.) With texlive, I get TeX/LaTeX stuff that portage masks. (why? they're just TeX/LaTeX packages) In general, texlive is a lot easier to deal with than the ebuilds.
There are also times when you need something immediately and the ebuild is broken or behind the curve. I guess the gentoo thing to do is fix it or update the ebuild, but that doesn't always happen. |
|
Back to top |
|
|
brfsa Tux's lil' helper
Joined: 01 Aug 2005 Posts: 121 Location: Brazil
|
Posted: Tue Mar 21, 2006 4:51 am Post subject: |
|
|
why it isn't good to emerge several packages in different terminal?
I always do emerge in different ttys, but they are different programs always. |
|
Back to top |
|
|
Parasietje Apprentice
Joined: 25 Jan 2004 Posts: 194
|
Posted: Tue Mar 21, 2006 3:00 pm Post subject: |
|
|
I agree with e-ipi: some programs aren't in portage. Instead of writing an ebuild for them, you can just install them in /usr/share/local, where they belong.
All programs not installed by some package manager go in /usr/share/local, that's why there is such a directory...
My all-time favorite: always do rc-update del xdm, before fiddling with an xorg.conf. If your X crashes or boots without proper keyboard input, you'll have to search another pc to be able to reboot using ssh. |
|
Back to top |
|
|
moppsy n00b
Joined: 26 Dec 2004 Posts: 51
|
Posted: Tue Mar 21, 2006 5:36 pm Post subject: |
|
|
Quote: | All programs not installed by some package manager go in /usr/share/local, that's why there is such a directory... |
I think you mean /usr/local.
Anyways, some of us ancient unix people would probably disagree with that.
LFHS has it correct.
As far as Quote: | 4.Install software not by portage(The program exists in portage) |
It is probably a good idea to not do it unless the situation calls for it.
Simply to make your job as administrator easier, which is the whole purpose of package managers. |
|
Back to top |
|
|
Dont know anything n00b
Joined: 13 Jun 2003 Posts: 60
|
Posted: Thu Mar 23, 2006 10:45 pm Post subject: |
|
|
emerge -C python is kind of bad too. |
|
Back to top |
|
|
brfsa Tux's lil' helper
Joined: 01 Aug 2005 Posts: 121 Location: Brazil
|
Posted: Fri Mar 24, 2006 1:42 pm Post subject: |
|
|
very bad I agree,
emerge won't work then... |
|
Back to top |
|
|
phsdv Guru
Joined: 13 Mar 2005 Posts: 372 Location: Europe
|
Posted: Fri Mar 24, 2006 6:05 pm Post subject: Re: List of things, we shouldn't do in gentoo... |
|
|
nolim wrote: | Here is the list of things you shouldn't do: |
may be to obvious
and this one? /etc/sudoers: | %wheel ALL=(ALL) NOPASSWD: ALL |
|
|
Back to top |
|
|
gabrieldain n00b
Joined: 07 Feb 2006 Posts: 17
|
Posted: Sat Mar 25, 2006 5:23 am Post subject: |
|
|
This is probably the worst thing you can do:
Code: | emerge -C vi && emerge emacs |
Gabi |
|
Back to top |
|
|
beatryder Veteran
Joined: 08 Apr 2005 Posts: 1138
|
Posted: Sat Mar 25, 2006 6:47 am Post subject: |
|
|
nolim wrote: | About the root you are right, and I want to add that it's better to use sudo.
|
I dissagree, as running any command as root that can open a shell (links/vi) will give that user root access, and it's not logged.
http://linuxboxadmin.com/articles/sudo-vs-root.php
I know its based on OSX, but the principles apply _________________ Dont make it idiot proof, make it work.
Neucode.org
<suppressed key> |
|
Back to top |
|
|
killfire l33t
Joined: 04 Oct 2003 Posts: 618
|
Posted: Sun Mar 26, 2006 3:06 am Post subject: |
|
|
Ctrl+Alt+Del wrote: |
my all time favorite: never ever type shutdown -h / init 0 into a shell unless you have physical access to the box... |
a good habit is to open a new xterm before su-ing and shutdown -h-ing.... if you use an open one, you might use one that is ssh-ed into another box. woops! _________________ my website, built in HAppS: http://dbpatterson.com
an art (oil painting) website I built a pure python backend for: http://www.lydiajohnston.com |
|
Back to top |
|
|
salam Apprentice
Joined: 29 Sep 2005 Posts: 226
|
Posted: Mon Mar 27, 2006 6:02 am Post subject: |
|
|
happened to me twice
i was in need to reboot the laptop to do some windoze stuff so i typed reboot and ctrl-d several times to logout and close aterm. after a minute it was a bit suspicious that nothing happened. of course, i typed it to a terminal ssh-ed to my server. by mistakes we learn...
and my favorite one(related to remote administration) - never type iptables -F before ensuring that default input policy is ACCEPT |
|
Back to top |
|
|
jamiethehutt n00b
Joined: 04 Oct 2004 Posts: 66 Location: Scotland!
|
Posted: Thu Mar 30, 2006 5:34 am Post subject: |
|
|
brfsa wrote: | why it isn't good to emerge several packages in different terminal?
I always do emerge in different ttys, but they are different programs always. |
Yeah, portage has pretty good file locking. I almost always run emerge -f package along side the normal emerge (so the packages will be downloading while the others compile). _________________ "Someday, he thought, it'll be mandatory that we all sell the McDonald's hamburger as well as buy it; we'll sell it back and forth to each other forever from our living rooms. That way we won't even have to go outside." - A Scanner Darkly By PK Dick |
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Thu Mar 30, 2006 4:04 pm Post subject: |
|
|
Quote: | 5.Install several packages in several terminals at the same time(). |
time() ?
... Do you mean, start them at precisely the same moment in time? It's a little hard to do anyway.
I usually do several emerges together. I'd go insane otherwise. _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
madth3 n00b
Joined: 29 Mar 2004 Posts: 13 Location: MX
|
Posted: Thu Mar 30, 2006 5:03 pm Post subject: |
|
|
A not so simple one that just hit me was:
- Adding -malign-double to CFLAGS
Broke ALSA and some programs worked with a weird behaviour. |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Thu Mar 30, 2006 5:18 pm Post subject: |
|
|
moppsy wrote: | I think you mean /usr/local.
Anyways, some of us ancient unix people would probably disagree with that.
|
Aye, that's what /usr/ucb is for, obviously
moppsy wrote: | LFHS has it correct. |
Indeed, though I seem to remember at one time they wanted to do away with that reasoning that "modern package managers remove the need for the separate hierarchy"? _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
ilm Guru
Joined: 29 Jun 2006 Posts: 310 Location: Brisbane, Australia
|
Posted: Sat Sep 30, 2006 8:25 am Post subject: |
|
|
When you say to not work as root in [a] graphic environment, does this mean logging in as root into X? Does su-ing inside a terminal count?
As for emerging more than one thing at a time, is this just to ensure that no files/libraries are being used/accessed/overwritten at the same time (as well as not totally overloading your system )?
Also, when updating your system meta-package, what would be the difference between:
and what is said in the GCC upgrade guide:
Code: | emerge -eav system
emerge -eav world | ??? |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6053 Location: Removed by Neddy
|
Posted: Sat Sep 30, 2006 9:04 am Post subject: |
|
|
emerge -C python _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sat Sep 30, 2006 9:18 am Post subject: |
|
|
ilm wrote: | does this mean logging in as root into X? |
Yes.
Quote: | Does su-ing inside a terminal count? |
No, that's fine.
Quote: | As for emerging more than one thing at a time, is this just to ensure that no files/libraries are being used/accessed/overwritten at the same time |
Mainly file locking - e.g. the important /var/lib/portage/world file. It's probable that emerging simultaneously is fine, although there's a slight risk.
Quote: | Also, when updating your system meta-package |
man emerge is your friend |
|
Back to top |
|
|
xming Guru
Joined: 02 Jul 2002 Posts: 441
|
Posted: Sat Sep 30, 2006 9:33 am Post subject: |
|
|
som very obviuos ones
Code: | chmod <something> -R / |
Code: | chown <something> -R / |
_________________ http://wojia.be |
|
Back to top |
|
|
zietbukuel l33t
Joined: 30 Dec 2005 Posts: 607
|
Posted: Mon Oct 02, 2006 5:49 pm Post subject: |
|
|
This is bad too...
Why? because emerge won't work then. |
|
Back to top |
|
|
hz n00b
Joined: 08 Feb 2004 Posts: 42 Location: Cluj Napoca, Romania
|
Posted: Wed Oct 11, 2006 7:33 pm Post subject: |
|
|
Quote: | 4.Install software not by portage(The program exists in portage) |
I really like gnome-commander but it was never added to portage, however works fine just to install it from their website.
Maybe it will be added sometime .... |
|
Back to top |
|
|
|