| View previous topic :: View next topic |
| Author |
Message |
GivePeaceAChance Guru

Joined: 26 May 2007 Posts: 480
|
Posted: Thu Jun 07, 2007 5:19 am Post subject: [SOLVED] Getting to know Gentoo |
|
|
So, being new to Gentoo, and in most cases new to Linux too, I've been surfing this forum (over a hundred thousand registered users...holy ****) and have noticed things like "I sync" or "I haven't synced in a while" and I've read about USE flags but still don't quite understand their full potential, and other stuff like that, and I was wondering, what can I do about learning the things about Gentoo that I should know as a Gentoo user? I ask this because as of yet, how can I learn if I don't know there exists something I should be learning?
So basically, what Gentoo (and Linux) things should I know when running Gentoo as a user that wants to have the most control over his system? Can someone point me in the direction of Gentoo websites and stuff that are for the absolute Gentoo wanna-be-power-user n00bs? (For example, I went through the entire site on use flags and fleshed out my make.conf, but I still don't get why they're so powerful, or even if I need some of them).
Perhaps I'm just too impatient and want to know everything I can right away. Maybe it just comes with working with the system. But if anyone has any tips or references for a Gentoo n00b (would-be power user) I would love to hear them.
Last edited by GivePeaceAChance on Wed Dec 26, 2007 6:26 am; edited 1 time in total |
|
| Back to top |
|
 |
i13m n00b

Joined: 26 Jun 2003 Posts: 28 Location: UK / China PR
|
Posted: Thu Jun 07, 2007 6:05 am Post subject: |
|
|
Welcome, first.
The short answer to part of your question is that, the USE flag to control what you need and dont need in a program. Lets say, if you dont need printing functions on your Linux system, you could put USE="-cups" in your /etc/make.conf. This will disable the print function for certain program packages. This is one simple example about the USE flag. For more details you could found on some of the Gentoo Documentations.
And the Gentoo Handbook is very useful for you to understand some basic principles. |
|
| Back to top |
|
 |
i92guboj Moderator


Joined: 30 Nov 2004 Posts: 7873 Location: Córdoba (Spain)
|
Posted: Thu Jun 07, 2007 6:42 am Post subject: Re: Getting to know Gentoo |
|
|
| GivePeaceAChance wrote: | So, being new to Gentoo, and in most cases new to Linux too, I've been surfing this forum (over a hundred thousand registered users...holy ****) and have noticed things like "I sync" or "I haven't synced in a while" and I've read about USE flags but still don't quite understand their full potential, and other stuff like that, and I was wondering, what can I do about learning the things about Gentoo that I should know as a Gentoo user? I ask this because as of yet, how can I learn if I don't know there exists something I should be learning?
|
If you follow the handbook to install manually, and not from a livecd, you will know most of this already, so I assume you used a livecd.
The handbook is here (x86):
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?style=printable&full=1
You have more handbooks for different purposes and many architectures here:
http://www.gentoo.org/doc/en/handbook/index.xml
| Quote: |
So basically, what Gentoo (and Linux) things should I know when running Gentoo as a user that wants to have the most control over his system? Can someone point me in the direction of Gentoo websites and stuff that are for the absolute Gentoo wanna-be-power-user n00bs? (For example, I went through the entire site on use flags and fleshed out my make.conf, but I still don't get why they're so powerful, or even if I need some of them).
|
All you need, is the will to learn. If you hear something in these forums that you didn't know about, you can always open a new thread and ask doubts. Try first searching the gentoo documentation and see if there is anything related to your subject:
http://www.gentoo.org/doc/en/
The Gentoo Wiki can also be helpful sometimes, though I highly advice you to turn your mental filters on and don't blindly believe everything that there is in the Wiki. Freak-o-pedias are usually full of innaccuracies and/or errors that can be trivial to solve for an experienced user, but can be quite a headache for a newcomer. Even though, the Gentoo wiki has an acceptable level of quality.
Regarding to USE flags, their power come given by the fact that they are a mechanism that let us directly speak to the ebuilds, and tell them what do we want. USE flags con turn on/off configure options (adding or removing dependencies, and turning on/off features as well). But they can do also lots of other things. Almost every single thing that an ebuild can do, could be controlled via an USE flag, and, since ebuilds are nothing more than bash scripts -ultimately- that means that USE flags can control almost anything.
They can be used to control what parts of the code are compiled, and what aren't. You can use them as well to apply patches conditionally, or to add/remove dependencies. You can even use them to activate conditional defines in the code that can be used to compile alternative code for certain pieces, like "mmx" in mplayer and such crap. They can turn on/off the creation of symlinks on your filesystem (/usr/src/linux, for example). In short: use flags are switches by themselves, that have the power to do or undo anything that bash is capable of. Virtually, almost anything, though, for sanity purposes, of course, there are some limits on what USE flags are supposed to be allowed to do.
| Quote: | | Perhaps I'm just too impatient and want to know everything I can right away. Maybe it just comes with working with the system. But if anyone has any tips or references for a Gentoo n00b (would-be power user) I would love to hear them. |
If you just stay around, you will learn with the time. Just be a bit curious, and try to search info on the forums, docs, and wikis about these thing you don't understand. With the time, one thing will take you to the next, and so on (isn't hypertext wonderful?)
Luck in your quest.
Last edited by i92guboj on Thu Jun 07, 2007 6:50 am; edited 1 time in total |
|
| Back to top |
|
 |
d2_racing Moderator


Joined: 25 Apr 2005 Posts: 7699 Location: Ste-Foy,Canada
|
Posted: Thu Jun 07, 2007 6:49 am Post subject: |
|
|
Good luck  _________________ Sysadmin of Gentoo-Québec.org
Signature
IRC channel on Freenode : #gentoo-quebec |
|
| Back to top |
|
 |
GivePeaceAChance Guru

Joined: 26 May 2007 Posts: 480
|
Posted: Thu Jun 07, 2007 4:27 pm Post subject: |
|
|
Thanks for the responses. Perhaps I'll have to read over the handbook again. I installed Gentoo using the handbook via Ubuntu, but the most recent time I was a lot faster, having already made a bunch of files and knowing the process (when I _attempted_ it in university, I got stuck so many times and it took forever - I ended up getting a commandline Gentoo, but couldn't get past that stage. Silly me, I know what to do now). As a result I may have skipped a few important things.
Well I'll check out those links, google away, and stay on these forums. They're a fun place to be, so that shouldn't be a problem anyway.
Cheers.  |
|
| Back to top |
|
 |
GivePeaceAChance Guru

Joined: 26 May 2007 Posts: 480
|
Posted: Thu Jun 07, 2007 9:49 pm Post subject: |
|
|
Well I've checked out the Linux documentation contents, and have a document full of links to things I feel important. When I get back to running Gentoo I'll have fun tweaking it all. But for the moment, I've got a few questions:
1. What is GnuPG?
2. Is Gentoo Linux VDR for watching TV on my laptop?
3. What's the difference between NX and ssh-ing?
4. Should I be worried about "pre-linking" when running Gentoo and Fluxbox?
5. What is IPv6?
6. Why bother with a cron daemon?
7. What is zsh?
8. What do I do about fragmentation in Linux? How can I minimalize it?
9. Should I have a swap partition on my second (data) hard drive?
10. Why do sysadmins dislike rebooting their system?
11. Does a laptop user need LVM? |
|
| Back to top |
|
 |
JeroenV Guru


Joined: 16 Jul 2002 Posts: 446 Location: Amsterdam / Hamburg
|
Posted: Fri Jun 08, 2007 2:03 am Post subject: |
|
|
Hi there, some things are actually explained better in docs you can find with one click in google....
- wikipedia
- It's an feature-rich video recorder, also for watching TV, but may be overkill. If you want to do just watch TV, you might try tvtime
- NX will tunnel and very effectively compress X protocol over an internet link, which enables you to get graphical output (i.e. work with a remote desktop) quite smoothly. ssh is just merely used to open a remote console (terminal with a remote connection) or tunneling other protocols (read about "ssh tunneling"). You can also simply tunnel X over ssh, which will work a bit like NX but with much less performance.
- If you worry about a few % performance gain and are willing to invest some learning, you might. There's plenty info out there about it.
- wikipedia, .... ?
- to periodically execute tasks, e.g. update your locate database (updatedb) etc. cron will normally run some "housekeeping" programs at scheduled times, which is typically the way to go on a normal linux system.
- a shell, just like bash, which you are probably using now on your command line. I'm not sure about the diferences though.
- In general, I believe modern linux filesystems (ext3, reiserfs) do a good job at limiting fragmentation (most effective if disk < ~85% full), but I read somewhere that someone hacked together a highly experimental (i.e. dangerous) program named "shuffle" (?) actually achieved significant performance gains (but also borked his system a few times?) There may be other ways, anyone?
- No. Just put your swap on the fastest drive. If you want to take this idea further, you may want to read http://www.linux.com/howtos/Multi-Disk-HOWTO.shtml
- because it causes downtime (i.e. server unavailability). It may also be a pride-thing: people (sysadmins) like bragging about an uptime of years. In my experience rebooting after a longer uptime may actually be a good thing, if only to test whether it still boots without problems, especially if you are only ocasionally near the server in question.
- if you want to be continuously flexible in disk-space allocation, it's handy. Otherwise it may be overkill and not worth the hassle. Since on a laptopp you are less likely to add a second HD, in most cases I'd say you don't need it.
_________________ Cheers
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you! |
|
| Back to top |
|
 |
GivePeaceAChance Guru

Joined: 26 May 2007 Posts: 480
|
Posted: Fri Jun 08, 2007 9:23 am Post subject: |
|
|
| Quote: | | <cron daemon> to periodically execute tasks, e.g. update your locate database (updatedb) etc. cron will normally run some "housekeeping" programs at scheduled times, which is typically the way to go on a normal linux system. |
OK, so what kind of tasks though? I don't think I've honestly every "periodically" updated anything on my computer. What kind of things would a Linux user be updating periodically?
| Quote: | | <LVM> if you want to be continuously flexible in disk-space allocation, it's handy. Otherwise it may be overkill and not worth the hassle. Since on a laptopp you are less likely to add a second HD, in most cases I'd say you don't need it. |
Well for one, my laptop DOES have a second hard drive, and I've got a nice little 465GB external USB drive to play with. What do you mean by "flexible" with regards to disk space allocation? Could you give me an example where LVM is handy? |
|
| Back to top |
|
 |
tld Guru

Joined: 09 Dec 2003 Posts: 491
|
Posted: Fri Jun 08, 2007 9:36 am Post subject: |
|
|
| GivePeaceAChance wrote: |
OK, so what kind of tasks though? I don't think I've honestly every "periodically" updated anything on my computer. What kind of things would a Linux user be updating periodically? |
One example that I use on all my Gentoo systems is logrotate. Without running that on a regular basis your log files (mostly in /var/log) would just keep growing and growing.
Tom |
|
| Back to top |
|
 |
JeroenV Guru


Joined: 16 Jul 2002 Posts: 446 Location: Amsterdam / Hamburg
|
Posted: Fri Jun 08, 2007 2:57 pm Post subject: |
|
|
| Quote: | | Well for one, my laptop DOES have a second hard drive, and I've got a nice little 465GB external USB drive to play with. What do you mean by "flexible" with regards to disk space allocation? Could you give me an example where LVM is handy? |
Suppose that you have many different partitions for different purposes (/home, /var, /tmp, maybe some custom ones like /share/movies) but at the time you make them you already suspect that their sizes may have to change, maybe even grow over a disk boundary (e.g. later you may want the movie partition to be 100G, and your 2 HD's are both 80G).
In normal scenarios, the place where LVM is really a big plus is in fileservers in multi-pc networks, where dynamic growth of storage is likely. The more "static" your disk space requirements, the less necessary is LVM.
LVM does normally only come into play for fixed disks, so putting LVM on USB disks is most likely a moot point (even though it is most probably technically possible).
| Quote: | | What kind of things would a Linux user be updating periodically? |
I second logrotate.
Also, do you ever use locate to find a file? It uses a file database that is normally periodically updated (updatedb). I think "emerge slocate" automatically installs a cron entry for updatedb.
You also may want to do "emerge --sync" daily or weekly automatically, so that you don't have to wait for that when you want to check for updates with "emerge -uDpv world".
Or, you might want to automatically clean out /var/tmp/portage every day or week (but make sure to remove only files that are not in the middle of an emerge, e.g. only files older than 1 day or so) _________________ Cheers
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you! |
|
| Back to top |
|
 |
|
|
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
|
|