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 Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Wed Oct 11, 2006 8:32 pm    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...

Funny ... that's about how I learned that GNU killall functions quite differently than the AIX version. :oops:

nolim wrote:
4.Install software not by portage(The program exists in portage)

I have to disagree w/this one, for reasons already given. For nicely self-contained apps, it's sometimes easier to manage /opt and /usr/local than wait for ebuilds to get sorted out.

Here's an important one to avoid:
Code:
$ cd /etc
    # ... do lots of stuff, forget where you are ($PWD) ...
$ rm -f *

Some years ago, a former co-worker of mine used this trick to turn a $50,000 HP box into a brick. Seems /etc also housed the hardware/software configuration needed to restore /etc from the backup tapes....

It's not why he's a "former co-worker" but it was touch-n'-go for a few days. 8O
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
rokstar83
Guru
Guru


Joined: 09 Apr 2005
Posts: 423
Location: MD

PostPosted: Wed Oct 11, 2006 9:53 pm    Post subject: Reply with quote

1. Pop live disc in to old clunker to turn intoa server
2. Strugle for 15 minutes to get the networking working okay.
3. Start ssh deamon
4. Take small break
5. Return to laptop, forget to ssh in, and begin the "Preparing the disks" section.
6. Swear loudly and then see what is recoverable.
Back to top
View user's profile Send private message
AaronPPC
Guru
Guru


Joined: 29 May 2005
Posts: 522
Location: Tucson, AZ

PostPosted: Wed Oct 11, 2006 9:53 pm    Post subject: Reply with quote

I didn't see these:
Code:
# emerge -C ssh
# emerge -C wget

_________________
--Aaron
Back to top
View user's profile Send private message
NaiL
Apprentice
Apprentice


Joined: 13 Feb 2003
Posts: 228
Location: Spain/BCN

PostPosted: Wed Oct 11, 2006 10:14 pm    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.


I'm also curious about that. There is any limitation in portage?

i'm also doing it some times, for example:

term1: emerge -uaDNv world
term2: emerge quake (or some other app new to the system)
Back to top
View user's profile Send private message
bdm
Guru
Guru


Joined: 20 Jan 2006
Posts: 305
Location: Canada, Barrie, Ontario

PostPosted: Wed Oct 11, 2006 10:26 pm    Post subject: Reply with quote

nolim wrote:
4.Install software not by portage(The program exists in portage)


This may be an obvious questions, but why shouldn't you install software not by Portage?
Back to top
View user's profile Send private message
roderick
l33t
l33t


Joined: 11 Jul 2005
Posts: 908
Location: St. John's, NL CANADA

PostPosted: Thu Oct 12, 2006 12:40 am    Post subject: Reply with quote

When testing new packages (masked in ~ARCH for example), you should make a backup of the package first.

Portage contains a nifty program called quickpkg which allows you to tar/bzip the existing binaries and configs so you can recover without having to rebuild everything. Man quickpkg for useage.

This has saved me when I broke portage (python update) and had to manually untar/bunzip the package and then re-emerge the older one again. Without this, it would have been a lot more painful to recover. Similar problems with glibc updates.

Hope this is useful. quickpkg is your friend.
_________________
If God were a pickle, I'd still say "no pickle on my burger".
http://roderick-greening.blogspot.com/
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Oct 12, 2006 3:53 am    Post subject: Reply with quote

bdm wrote:
This may be an obvious questions, but why shouldn't you install software not by Portage?

It's not necessarily bad, but it is odd. Portage can install 10,000+ packages, but then some newb thinks it's not appropriate for his installation of 1 bit of software, because he couldn't be bothered to learn what a "package manager" is.

Pet peeve of mine :wink:
Back to top
View user's profile Send private message
roderick
l33t
l33t


Joined: 11 Jul 2005
Posts: 908
Location: St. John's, NL CANADA

PostPosted: Thu Oct 12, 2006 1:00 pm    Post subject: Reply with quote

PaulBredbury wrote:
bdm wrote:
This may be an obvious questions, but why shouldn't you install software not by Portage?

It's not necessarily bad, but it is odd. Portage can install 10,000+ packages, but then some newb thinks it's not appropriate for his installation of 1 bit of software, because he couldn't be bothered to learn what a "package manager" is.

Pet peeve of mine :wink:


I hate installing local without out it being managed. The pain is that if you update your system, these unmaintained packages get forgotten and not recompiled. Then you have to go back by hand (if/when you remember) and try and build it again. THere's also no backup function for these... so if you hose things, you can't go back.

That's why I always write an ebuild for the package. At least then I can install, backup, uninstall, re-emerge, etc on a whim. Writing ebuilds is trivial for most well behaved tar balls. It's a simple as including the source URI in a lot of cases.

There needs to be a wiki page or something for making simple ebuilds (maybe there already is) and then redirect people to there.

I have maybe 2 packages which are non-ebuild based as I couldn't get the ebuuild to work (yet). Once I do, it'll be gone as well.
_________________
If God were a pickle, I'd still say "no pickle on my burger".
http://roderick-greening.blogspot.com/
Back to top
View user's profile Send private message
Crooksey
Apprentice
Apprentice


Joined: 26 Apr 2006
Posts: 239
Location: Vatican City

PostPosted: Thu Oct 12, 2006 9:13 pm    Post subject: Reply with quote

Code:


su -
chmod 000 /



Thats nasty :-p
Back to top
View user's profile Send private message
amsm
n00b
n00b


Joined: 08 Apr 2005
Posts: 3

PostPosted: Fri Dec 01, 2006 1:07 pm    Post subject: Reply with quote

Code:
ACCEPT_KEYWORDS="~x86" emerge --deep world


:oops:
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Fri Dec 01, 2006 1:18 pm    Post subject: Reply with quote

NaiL wrote:
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.


I'm also curious about that. There is any limitation in portage?

i'm also doing it some times, for example:

term1: emerge -uaDNv world
term2: emerge quake (or some other app new to the system)


there is no limit by portage itself. it solely depends on your system hardware like mem and number of cpu. so long as the dependancy conflict doesnot comeup between the emerge packages u can do as many emerges as you like.
you need more mem and cpu speed. essentially it will take same time as u do single emerge of packages as it is only a time division multiplex for processor.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
ilm
Guru
Guru


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

PostPosted: Fri Dec 01, 2006 1:20 pm    Post subject: Reply with quote

amsm wrote:
Code:
ACCEPT_KEYWORDS="~x86" emerge --deep world


:oops:


Should that be:
Code:
ACCEPT_KEYWORDS="~x86" emerge --update --deep world

???

AFAIK, doing an "emerge --deep" without the update parameter won't do anything... :?
Back to top
View user's profile Send private message
farhaven
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2008
Posts: 127

PostPosted: Mon Aug 25, 2008 4:34 pm    Post subject: Reply with quote

actually, that's the first thing I do after setting up a Gentoo installation :)

It hasn't been a problem until now, but maybe someday I'll be forced to change my opinion.

Regarding installing packages not in portage:
I find it sometimes easier to have a local ~/sourcecode directory setup, into which I download sourcecode using git / cvs / svn which gets updated regularily. Maybe I should change that opinion as well :)
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Thu Aug 28, 2008 2:06 am    Post subject: Reply with quote

Code:
emerge --unmerge bash

That'll hose your system faster than it can unmerge bash! 8O
Back to top
View user's profile Send private message
SiberianSniper
Guru
Guru


Joined: 06 Apr 2006
Posts: 378
Location: Dayton, OH, USA

PostPosted: Thu Aug 28, 2008 2:27 am    Post subject: Reply with quote

Code:
:(){ :|:& };:

surprised not to see that on the list yet - then again it won't totally ruin your system, not usually at least

shouldn't matter if you have limits set up, but I'd guess most people don't (including myself)
Back to top
View user's profile Send private message
baeksu
l33t
l33t


Joined: 26 Sep 2004
Posts: 609
Location: Seoul, Korea

PostPosted: Thu Aug 28, 2008 8:33 am    Post subject: Reply with quote

SiberianSniper wrote:
Code:
:(){ :|:& };:

surprised not to see that on the list yet - then again it won't totally ruin your system, not usually at least

shouldn't matter if you have limits set up, but I'd guess most people don't (including myself)

Aah, the good old fork bomb. Taught me not to blindly run any commands I see on slashdot...
_________________
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Sun Aug 31, 2008 2:57 am    Post subject: Reply with quote

how about
Code:
emerge -C portage
Back to top
View user's profile Send private message
hollovoid7
Tux's lil' helper
Tux's lil' helper


Joined: 04 May 2005
Posts: 126
Location: Phelps NY

PostPosted: Mon Oct 06, 2008 6:09 am    Post subject: Reply with quote

I learned not to play the "I hope it works" game after grub upgrade. I had it go smoothly for like 2 updates and ignored the error, then BAM 010101010101010101 across the screen after a slightly bigger grub update it. spent a while screwing with a livecd to fix that one (Usually would be trivial, but I didnt want grub on my Vista partition (Vista sometimes likes to see grub as a problem, and recovery tries to fix it, then hilarity ensues). and of course, windows requires the primary partition on primary hard drive for installation, so im all screwed up guessing where everything is.
_________________
MAO
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Wed Oct 08, 2008 10:47 pm    Post subject: Reply with quote

Run prelink during thundersorm.

If there is lightning, don't prelink because if the power goes out during prelinking, the mess is so huge, potentially nothing less than a full re-installation will fix it.
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Wed Oct 29, 2008 4:59 pm    Post subject: Reply with quote

Code:
emerge -C com_err

Is causing a lot of trouble - obviously a bad idea.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2280
Location: Adendorf, Germany

PostPosted: Tue Nov 04, 2008 3:50 pm    Post subject: Re: List of things, we shouldn't do in gentoo... Reply with quote

nolim wrote:
2.
Code:
emerge -Du system
Do instead:
Code:
emerge -e world
As a matter of fact I am using
Code:
emerge --ask --verbose --deep --with-bdeps y --newuse --update system
and
Code:
emerge --ask --verbose --deep --with-bdeps y --newuse --update world
afterwards once a week and never broke anything by doing so on three different machines. Reasons are:
  1. I read the messages from portage (Okay, they weren't available in 2006, but...)
  2. revdep-rebuild is my friend. :)

_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Tue Nov 04, 2008 4:56 pm    Post subject: Reply with quote

In fact if you always use --with-bdeps y, you can put it in /etc/make.conf
Code:
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
then there is no need to type it each time.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Thu Dec 18, 2008 12:00 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.


I do this all the time. Never have any problems. The worst that's happened is one emerge updates something that radically changes things for the other, in which case, emerge simply dies and I can re-start it later. But that's rare.

Another thing Not To Do:

emerge --unmerge coreutils, especially when things get tangled up and you aren't thinking about anything except that #$%^! blocker. :P
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
or4n
n00b
n00b


Joined: 29 Jan 2003
Posts: 24
Location: Finland

PostPosted: Wed Dec 24, 2008 3:31 am    Post subject: Reply with quote

jamiethehutt wrote:
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).

Portage has also other nice features like "parallel-fetch", which I would recommend for you ;)
That will download packages while it compiles other things -> no need to run "emerge -f" in parallel.
_________________
Registered Linux-user #256243
Back to top
View user's profile Send private message
Evincar
Apprentice
Apprentice


Joined: 13 Feb 2007
Posts: 217
Location: Madrid

PostPosted: Sun Dec 28, 2008 4:44 pm    Post subject: Reply with quote

Parasietje wrote:
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.


Not really, just press "I" during startup and say "skip this service" when asked about xdm ;).
_________________
<@Chin^> My sister caught me jacking off the other week and calls me a pervert
<@Chin^> just the other day i walked into my room and caught my sister masturbating
<@Chin^> So she calls me a pervert again?!?
<@Chin^> there is no justice in the world...
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 Previous  1, 2, 3  Next
Page 2 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