Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
List of things, we shouldn't do in gentoo...
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
nolim
n00b
n00b


Joined: 17 Dec 2005
Posts: 22
Location: Israel

PostPosted: Thu Mar 16, 2006 1:23 pm    Post subject: List of things, we shouldn't do in gentoo... Reply with quote

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.
Code:
emerge -Du system

Do instead:
Code:
emerge -e world

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
View user's profile Send private message
Ctrl+Alt+Del
Guru
Guru


Joined: 04 Jul 2004
Posts: 326
Location: .de

PostPosted: Thu Mar 16, 2006 1:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
nolim
n00b
n00b


Joined: 17 Dec 2005
Posts: 22
Location: Israel

PostPosted: Thu Mar 16, 2006 2:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Blue Fox
Apprentice
Apprentice


Joined: 09 Apr 2004
Posts: 216

PostPosted: Thu Mar 16, 2006 2:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
e-ipi
Apprentice
Apprentice


Joined: 23 Aug 2005
Posts: 192

PostPosted: Thu Mar 16, 2006 5:37 pm    Post subject: Re: List of things, we shouldn't do in gentoo... Reply with quote

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
View user's profile Send private message
brfsa
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2005
Posts: 121
Location: Brazil

PostPosted: Tue Mar 21, 2006 4:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Parasietje
Apprentice
Apprentice


Joined: 25 Jan 2004
Posts: 194

PostPosted: Tue Mar 21, 2006 3:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
moppsy
n00b
n00b


Joined: 26 Dec 2004
Posts: 51

PostPosted: Tue Mar 21, 2006 5:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dont know anything
n00b
n00b


Joined: 13 Jun 2003
Posts: 60

PostPosted: Thu Mar 23, 2006 10:45 pm    Post subject: Reply with quote

emerge -C python is kind of bad too.
Back to top
View user's profile Send private message
brfsa
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2005
Posts: 121
Location: Brazil

PostPosted: Fri Mar 24, 2006 1:42 pm    Post subject: Reply with quote

very bad I agree,
emerge won't work then...
Back to top
View user's profile Send private message
phsdv
Guru
Guru


Joined: 13 Mar 2005
Posts: 372
Location: Europe

PostPosted: Fri Mar 24, 2006 6:05 pm    Post subject: Re: List of things, we shouldn't do in gentoo... Reply with quote

nolim wrote:
Here is the list of things you shouldn't do:

may be to obvious
Code:
rm -rf /

and this one?
/etc/sudoers:
%wheel  ALL=(ALL)       NOPASSWD: ALL
Back to top
View user's profile Send private message
gabrieldain
n00b
n00b


Joined: 07 Feb 2006
Posts: 17

PostPosted: Sat Mar 25, 2006 5:23 am    Post subject: Reply with quote

This is probably the worst thing you can do:
Code:
emerge -C vi && emerge emacs

:roll:

Gabi
Back to top
View user's profile Send private message
beatryder
Veteran
Veteran


Joined: 08 Apr 2005
Posts: 1138

PostPosted: Sat Mar 25, 2006 6:47 am    Post subject: Reply with quote

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
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Sun Mar 26, 2006 3:06 am    Post subject: Reply with quote

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
View user's profile Send private message
salam
Apprentice
Apprentice


Joined: 29 Sep 2005
Posts: 192

PostPosted: Mon Mar 27, 2006 6:02 am    Post subject: Reply with quote

happened to me twice :lol:
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... :P

and my favorite one(related to remote administration) - never type iptables -F before ensuring that default input policy is ACCEPT
Back to top
View user's profile Send private message
jamiethehutt
n00b
n00b


Joined: 04 Oct 2004
Posts: 66
Location: Scotland!

PostPosted: Thu Mar 30, 2006 5:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Thu Mar 30, 2006 4:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
madth3
n00b
n00b


Joined: 29 Mar 2004
Posts: 13
Location: MX

PostPosted: Thu Mar 30, 2006 5:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2138
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Thu Mar 30, 2006 5:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
ilm
Guru
Guru


Joined: 29 Jun 2006
Posts: 310
Location: Brisbane, Australia

PostPosted: Sat Sep 30, 2006 8:25 am    Post subject: Reply with quote

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 :wink:)?

Also, when updating your system meta-package, what would be the difference between:
Code:
emerge -e world

and what is said in the GCC upgrade guide:
Code:
emerge -eav system
emerge -eav world
???
Back to top
View user's profile Send private message
Naib
Advocate
Advocate


Joined: 21 May 2004
Posts: 4141
Location: Removed by Neddy

PostPosted: Sat Sep 30, 2006 9:04 am    Post subject: Reply with quote

emerge -C python
_________________
A free press is the unsleeping guardian of every other right that free men prize; it is the most dangerous foe of tyranny. Where men have the habit of liberty, the Press will continue to be the vigilant guardian of the rights of the ordinary citizen.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Sep 30, 2006 9:18 am    Post subject: Reply with quote

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 :wink:
Back to top
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 434

PostPosted: Sat Sep 30, 2006 9:33 am    Post subject: Reply with quote

som very obviuos ones

Code:
rm -rf /

Code:
chmod <something> -R /

Code:
chown <something> -R /

_________________
http://wojia.be
Back to top
View user's profile Send private message
zietbukuel
l33t
l33t


Joined: 30 Dec 2005
Posts: 606
Location: /dev/peru/lima

PostPosted: Mon Oct 02, 2006 5:49 pm    Post subject: Reply with quote

This is bad too...

Code:
emerge -C gzip


Why? because emerge won't work then. :P
_________________
AMD FX 8350 8-core CPU
16GB Corsair Vengeance DDR3 RAM
ASUS M5A97 Motherboard
1TB (Gentoo) + 500GB (Windows 7 for games) HDDs
Nvidia 550 GTX Ti 1Gb Ram DDR5
Cooler Master CM690 Case
Back to top
View user's profile Send private message
hz
n00b
n00b


Joined: 08 Feb 2004
Posts: 42
Location: Cluj Napoca, Romania

PostPosted: Wed Oct 11, 2006 7:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum