View previous topic :: View next topic |
Author |
Message |
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Wed Oct 11, 2006 8:32 pm 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... |
Funny ... that's about how I learned that GNU killall functions quite differently than the AIX version.
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. _________________ 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 |
|
|
rokstar83 Guru
Joined: 09 Apr 2005 Posts: 423 Location: MD
|
Posted: Wed Oct 11, 2006 9:53 pm Post subject: |
|
|
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 |
|
|
AaronPPC Guru
Joined: 29 May 2005 Posts: 522 Location: Tucson, AZ
|
Posted: Wed Oct 11, 2006 9:53 pm Post subject: |
|
|
I didn't see these:
Code: | # emerge -C ssh
# emerge -C wget |
_________________ --Aaron |
|
Back to top |
|
|
NaiL Apprentice
Joined: 13 Feb 2003 Posts: 228 Location: Spain/BCN
|
Posted: Wed Oct 11, 2006 10:14 pm 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. |
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 |
|
|
bdm Guru
Joined: 20 Jan 2006 Posts: 305 Location: Canada, Barrie, Ontario
|
Posted: Wed Oct 11, 2006 10:26 pm Post subject: |
|
|
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 |
|
|
roderick l33t
Joined: 11 Jul 2005 Posts: 908 Location: St. John's, NL CANADA
|
Posted: Thu Oct 12, 2006 12:40 am Post subject: |
|
|
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 |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Oct 12, 2006 3:53 am Post subject: |
|
|
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 |
|
Back to top |
|
|
roderick l33t
Joined: 11 Jul 2005 Posts: 908 Location: St. John's, NL CANADA
|
Posted: Thu Oct 12, 2006 1:00 pm Post subject: |
|
|
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 |
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 |
|
|
Crooksey Apprentice
Joined: 26 Apr 2006 Posts: 239 Location: Vatican City
|
Posted: Thu Oct 12, 2006 9:13 pm Post subject: |
|
|
Thats nasty :-p |
|
Back to top |
|
|
amsm n00b
Joined: 08 Apr 2005 Posts: 3
|
Posted: Fri Dec 01, 2006 1:07 pm Post subject: |
|
|
Code: | ACCEPT_KEYWORDS="~x86" emerge --deep world |
|
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Fri Dec 01, 2006 1:18 pm Post subject: |
|
|
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 |
|
|
ilm Guru
Joined: 29 Jun 2006 Posts: 310 Location: Brisbane, Australia
|
Posted: Fri Dec 01, 2006 1:20 pm Post subject: |
|
|
amsm wrote: | Code: | ACCEPT_KEYWORDS="~x86" emerge --deep world |
|
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 |
|
|
farhaven Tux's lil' helper
Joined: 17 Feb 2008 Posts: 127
|
Posted: Mon Aug 25, 2008 4:34 pm Post subject: |
|
|
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 |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Thu Aug 28, 2008 2:06 am Post subject: |
|
|
Code: | emerge --unmerge bash |
That'll hose your system faster than it can unmerge bash! |
|
Back to top |
|
|
SiberianSniper Guru
Joined: 06 Apr 2006 Posts: 378 Location: Dayton, OH, USA
|
Posted: Thu Aug 28, 2008 2:27 am Post subject: |
|
|
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 |
|
|
baeksu l33t
Joined: 26 Sep 2004 Posts: 609 Location: Seoul, Korea
|
Posted: Thu Aug 28, 2008 8:33 am Post subject: |
|
|
SiberianSniper wrote: |
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 |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Sun Aug 31, 2008 2:57 am Post subject: |
|
|
how about |
|
Back to top |
|
|
hollovoid7 Tux's lil' helper
Joined: 04 May 2005 Posts: 126 Location: Phelps NY
|
Posted: Mon Oct 06, 2008 6:09 am Post subject: |
|
|
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 |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Wed Oct 08, 2008 10:47 pm Post subject: |
|
|
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 |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Wed Oct 29, 2008 4:59 pm Post subject: |
|
|
Is causing a lot of trouble - obviously a bad idea. |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2280 Location: Adendorf, Germany
|
Posted: Tue Nov 04, 2008 3:50 pm Post subject: Re: List of things, we shouldn't do in gentoo... |
|
|
nolim wrote: | 2.Do instead: | 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:- I read the messages from portage (Okay, they weren't available in 2006, but...)
- revdep-rebuild is my friend.
_________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Tue Nov 04, 2008 4:56 pm Post subject: |
|
|
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 |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
Posted: Thu Dec 18, 2008 12:00 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. |
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. _________________ 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 |
|
|
or4n n00b
Joined: 29 Jan 2003 Posts: 24 Location: Finland
|
Posted: Wed Dec 24, 2008 3:31 am Post subject: |
|
|
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 |
|
|
Evincar Apprentice
Joined: 13 Feb 2007 Posts: 217 Location: Madrid
|
Posted: Sun Dec 28, 2008 4:44 pm Post subject: |
|
|
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 |
|
|
|