Moderator: Moderators
wolfden wrote:First let me say that there is a several ways to doing things on SL. I am not saying that my way is the best way by any means. This is simply my way of how I do things with a fresh install to make a stable system.
First thing - I alway buy my hardware that I know is linux supported and has good drivers. So get to know your hardware, I can't say that enough as it will save you a lot of headaches.
DO NOTE - I can not tell you what you can safely remove from your system as you need to know your hardware and what is safe to uninstall, remove from config files and remove from kernel. I am going to try and stay very basic here so you can get the idea.
Fresh install and everything is working great so now what?
----Well I head to the /etc/make.conf file and edit that thing to my liking and double checking things over. I remove any unnecessary things. Remember to edit these files you must be root. If you like nano you can simple go into Konsole and punch in su than enter your password. You can edit the file by doingor if you simply must have a GUI you can go to konsole and enter
- Code: Select all
nano -w /etc/make.confand when the box pops up, enter your password, wait a bit and a new window will come up. In that window you are root to everything and can edit anything. Pretty simple so far right? If you need help figuring out what options are available in the make.conf than refer to the Gentoo Handbook and Wiki often.
- Code: Select all
kdesu konqueror
----Ok, so now that I got that set I like to head to the kernel and add to it and remove things I don't need by doing in konsole:
- Code: Select all
# zcat /proc/config.gz > /usr/src/config
- Code: Select all
# genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --gensplash=sabayon all
or if you use lvm do: - noted for waltercool
- Code: Select all
# genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --gensplash=sabayon --lvm2 all
note the # means you must be root, don't actually use the #
This step is not necessary if you don't care that your kernel is big. I always need to enable some sound stuff and you may need to enable drivers, again, this is where knowing where your hardware is very important. You remove the wrong thing and your puter will not boot. Skip this step if you have a funny look on your face at this time.
----Now some of you may totally think I am crazy here but as far as software removal I do that later. Yes I know I can remove software at this time that I will never use and save time when I recompile the system, but this is my unofficial stable system and I know it will work cause I have done it several times. So with that being said I want to now recompile just the system. Now I prefer to do :
- Code: Select all
# emerge -e system || until emerge --resume --skipfirst; do emerge --resume --skipfirst; done
If you notice I have not done an emerge --sync yet and I don't want to do that yet, that will come later. So now several hours are going to go by. This a great thing to do when you are about to go to bed. After that is done, I like to do the world recompile:
- Code: Select all
# emerge -e world || until emerge --resume --skipfirst; do emerge --resume --skipfirst; done
do note once again that I have not emerge --sync yet and this is going to be another lengthy process. You may do both commands at once by simply doing:
- Code: Select all
# emerge -e system || until emerge --resume --skipfirst; do emerge --resume --skipfirst; done && emerge -e world || until emerge --resume --skipfirst; do emerge --resume --skipfirst; done
I just like to break it up.
----So now I have finished recompiling everything and my processor is going Dude! Well now I punch in:
- Code: Select all
# emerge --sync
than
- Code: Select all
# layman -S
to update my portage tree and overlays. First time syncs on SL are slow, I promise they will get faster after the first time. Once that is done I punch in:
- Code: Select all
# emerge -upDN --world
this will pull up just under 400 packages, WOW!! Well lets get the show on the road.
- Code: Select all
# emerge -uN --world
now you look at that and go what happened to the D ?, again this is my guide and that will come later, but if you want you may leave the D in there. Now you are probably sitting there thinking I thought SL doesn't recommend a world update. My feelings are this: no you don't need to, but SL 3.3 makes it a piece of cake to world update. Pre 3.3 I don't recommend, as you will be forever swamped with recompiling. Now with the world update you are going to run into bumps and this is where reading the ERROR MESSAGES is going to come to be Very Important. If you listen to what portage is telling you and use the gentoo bugzilla and gentoo forums for searching you can usually find the solution. Once a package fails I simply:
- Code: Select all
# emerge --resume --skipfirst
to continue on. I like to do this method to see what packages are failing. If you don't care:
- Code: Select all
# emerge -uN world || until emerge --resume --skipfirst; do emerge --resume --skipfirst; done
than it will auto skip and keep on going till finished. Now I don't try and fix any packages till it is completely done. Once it is done I look look at
- Code: Select all
#emerge -upN --world
and go thru each package and install it with the fix needed to get it to install. At this time I will simple remove any packages that have failed that I know I don't need. So now we are done and
- Code: Select all
# emerge -upN --world
shows no packages left in it, time I fire up
- Code: Select all
# emerge -upDN --world
YAY more packages to compile! The amount of packages won't be that much. So we wait for that to finish and I usually fix the errors as it goes along since it isn't very many packages. Now we have the entire system rebuilt, well almost. It's time to run:
- Code: Select all
# revdep-rebuild
and if that fails do:
- Code: Select all
# revdep-rebuild -X
It will find more packages to recompile! Your processor is probably plotting some sort of revenge against you at this time. So now what? Well, you are gonna have some config files that are screaming for an update. Now I like to use:
- Code: Select all
# etc-update
There is several ways to update config files, this is my way of doing it. So I punch in etc-update and many will auto merge, which is great with me. I look over the remaining ones left and determine if they are safe or not to update. Off the top of my head I believe all changes in 3.3 are safe, but look and if you are unsure, don't do it. So we have recompiled everything after making changes to system, updated the config files. Are we done? Do we dare reboot? Let's live dangerously and reboot, I mean a reinstall is only 40 minutes to do anyway right?
----So we rebooted, prayed and we made it back to our Desktop!! So now, I like all the multimedia features the web has to offer, so I want to experience it all, so I open up my konsole again and punch in:
- Code: Select all
USE="gtk quicktime divx gmedia realmedia wmp win32codecs nsplugins firefox xvid" emerge mplayerplug-in
Yes, I know you can add this to your package.use file, but this is my guide and you should add it to your /etc/portage/package.use file for future use. Now I can sit back and view all the goodness of web multimedia! I hate totem handeling the web plugins cause it sucks at doing so. I don't uninstall totem I simply move all the totem plugins out of the plugins folder:
/usr/lib/nsbrowser/plugins
and put em in
/usr/lib/nsbrowser
Just incase I ever want to put them back.
----Alrighty than, we are world updated now. You can continue to stay world update and SL updated with the overlay by:
- Code: Select all
# emerge -uD --world
and
- Code: Select all
# layman -S
----Conclusion - my systems are rock solid no matter what I throw at it. It's a long process which is fine with me cause the results are worth it. Do keep in mind that it will take less time with the mini as there is less to deal with. It will require thinking and deciphering and good abilities of effective searching. No I can not help you world update your system as I have no idea what hardware you use or what you use your computer for. Is there a chance you may hose your system? Of course there is! It shouldn't happen if you pay attention. I can't stress enough to read the Gentoo Handbook, look at the Gentoo Wiki, look at the Gentoo Forum, look at the SL Wiki, look at the SL Forum and don't forget Google, bookmark them all!
That's it in a nutshell and I take NO and I mean NO Responsibilities for a hosed system You milage is going to vary of course to hardware and software you use. All typos and grammer mistakes are mine, ehehehehhe
Input is welcomed and I will answer questions if I know the answers
HAPPY COMPILING!
wolfden wrote:if you are world updated - you are technically 3.4+ as you will have newer packages than those that get the 3.4 final
Return to Portage|Emerge Package Managers
Users browsing this forum: No registered users and 0 guests