Hot answers tagged

30

I must disclose that I have little experience using multilib-build.eclass-style multilib in Gentoo. ABI_X86 is a USE_EXPAND variable; setting ABI_X86="32 64" or USE="abi_x86_32 abi_x86_64" are equivalent. The default setting of ABI_X86, as of this writing (2013-09-09), for the default/linux/amd64/13.0 profile seems to be just ABI_X86=64. This variable ...


17

Yes, the distros are of similar, with both being set to satisfy more experienced users, and both aim to be fast and highly customizable. Th most technical similarity is that both are based upon the Linux Kernel. While most functions may seem similar, the two are different in many ways. 1) Apparently, Gentoo documentation is said to be very intimidating to ...


17

Oh you will notice the differences... a git pull is way faster than the rsync one :) the automated kernel build is a real nice feature, you will see ebuilds that are maintained by CoreTeam have a cleaner structure, not so much usage of external modules but inline the ebuild so a build gets clean... GPT/GUID support is also very nice, cleaner structure of ...


16

Could be a number of problems. Seeing as you're using zsh, try putting this in your ~/.zshrc: export LESS_TERMCAP_mb=$'\E[01;31m' export LESS_TERMCAP_md=$'\E[01;31m' export LESS_TERMCAP_me=$'\E[0m' export LESS_TERMCAP_se=$'\E[0m' export LESS_TERMCAP_so=$'\E[01;47;34m' export LESS_TERMCAP_ue=$'\E[0m' export LESS_TERMCAP_us=$'\E[01;32m' export LESS=-r Then ...


15

I don't think depclean works the way you described. Without any arguments it does, but if you pass it a package name it works like unmerge with an additional dependency check. From emerge(1): Depclean serves as a dependency aware version of --unmerge. When given one or more atoms, it will unmerge matched packages that have no reverse dependencies. Use ...


14

OK, I got this. The problem isn't autocd, it's correctall. vim as a command (vim file) doesn't trigger any correction*, but vim in sudo vim is an argument, zsh sees that it's close to the name of a folder in the current directory, and asks if you want to change to that, as files and folders are more common arguments. So the solution is unsetopt correctall ...


14

The simple way is to invent a time machine, visit the various people who devised shell startup files and tell them to cleanly distinguish between three things: session setup, e.g. environment variables; session launching, i.e., e.g. starting a command-line shell or a window manager or running startx; shell initialization, e.g. aliases, prompt, key ...


13

Gentoo is a Linux distribution that compiles packages from sources. Compiling packages requires much more space that installing pre-compiled binaries (that is, binaries that are compiled on the machines of the distribution maintainers). When you install something from the sources, you also need the sources for all the compilation dependencies. Almost all ...


11

There isn't a simple rule that always works. People might recommend a particular figure because they experimented with a particular compilation on a particular machine and this was the best setting, or because they followed some reasoning that may or may not have some relation with reality. If you're blessed with a lot of RAM, then the limiting factor in a ...


10

Use mdadm, check the manpage. However, I will list one gotcha here. If you do this and really want reliability, you should make sure your master boot record is copied to both drives. By default it will likely only get copied to one drive. If that drive dies, you cannot boot from the other drive, even though all your data is safe. To copy the mbr to both ...


10

That's what slots are for. If the package is not slotted then the only thing I can think of is to create a personal overlay and a new package/ebuild that is slotted.


9

How to install perf userland tool as non-root Get/find sources for kernel-2.6.36-gentoo-r4 (in Gentoo Linux). The first check from this answer Actually, first you should look at /usr/src/linux and see if the kernel sources are still installed. You could just copy them to a directory you can write to.) was enough, though instead of copying whole ...


9

You'll probably find the "Choosing the Right Installation Medium" part of the install guide helpful. install-x86-minimal-timestamp.iso is the LiveCD image. You burn that to a CD and boot off it to get into a minimal Gentoo environment that you can use to install Gentoo on your actual system stage3-i486-timestamp.tar.bz2 is a tarball of the root filesystem; ...


9

Which licenses portage accepts is governed by the ACCEPT_LICENSE variable in make.conf. This variable is the counterpart to package.license the same way USE is to package.use, ACCEPT_KEYWORDS to package.keywords, etc.. By default, this variable is set to * -@EULA, which means "accept all licenses except those in the EULA set". This set contains all licenses ...


9

You can use pfl (emerge -av pfl) or a online database to search by package contents, And for the qcad package, you probably need the Qt4 package. IIRC, use emerge -av x11-libs/qt-gui (Try search the package with emerge -s qt if that doesn't work out)


8

Ctrl+U is most likely because you've got the cursor at the end of the line. Secondly, which version of Gentoo are you referring to as the "last system update"? And what would you like the ctrl+left/right to do? Add to zsh config: bindkey '^[[1;5C' emacs-forward-word bindkey '^[^[[D' emacs-backward-word And from old scrap i found (might help): ...


8

Basic commands will be the following: # cat /etc/gentoo-release Gentoo Base System release 2.1 # uname -r 3.1.6-gentoo Also you can obtain this information in a "gentoo-way" using app-portage/gentoolkit package utils: # equery list baselayout * Searching for baselayout ... [IP-] [ ] sys-apps/baselayout-2.1:0 # eselect kernel list Available kernel ...


8

Udev loads modules automatically depending on what kind of hardware it finds. You can "blacklist" modules in order to stop them being autoloaded as described in the Gentoo udev guide.


7

As Gilles said, to use a TrueType font like Consolas in Emacs 23 you must link it with the Freetype and Fontconfig libraries. In Gentoo, you do that by turning on the xft USE flag when building Emacs. You'll need to turn that flag on (either globally or just for app-editors/emacs) and reinstall Emacs.


7

1. Is ACCEPT_KEYWORDS='amd64 ~amd64 ~amd64-linux' a valid configuration? From man make.conf: ACCEPT_KEYWORDS = [space delimited list of KEYWORDS] So ACCEPT_KEYWORDS='amd64 ~amd64 ~amd64-linux' is a valid combination. 2. What about ~amd64-linux? amd64-linux is a Prefix thing. I don't know much about Prefix, but I can see amd64-linux in the list of ...


7

Gentoo is a rolling release, so although the information posted above is correct and relevant, there is another very important piece of the puzzle: eselect profile list It makes a lot more difference on the system than say the exact kernel release...


7

Please be aware that current USE flags and other configuration defined in /etc/make.conf may have changed since the package was installed. A more reliable way of checking configuration and compile options is to check var/db/pkg. Example for apache-2.2.22: $ cat /var/db/pkg/www-servers/apache-2.2.22-r1/CFLAGS -mtune=native -O2 -pipe -g


7

You can use SystemTap for this sort of thing. First, set up your system. You need SystemTap, headers corresponding to your running kernel, and debug symbols for the same. On Debian, getting it working is something like: sudo apt-get install systemtap sudo apt-get install linux-headers-$(uname -r) sudo apt-get install linux-image-$(uname -r)-dbg It can ...


7

TL;DR I have a different take on this as a Gentoo user. While I agree with peterph's approach of "Let the System Decide," I disagree when it comes to an ABI Update. An ABI Update is sometimes a major shift in behavior. In the case of GCC 4.7, the ABI Change was the adoption of the new C++11 Standard, which peterph also pointed out. Here is why I write ...


6

When a package maintainer creates a version of a package, the repoman tool takes the input files, usually a tar archive with source code and the ebuild itself, and calculate a number of hashes on it. This information is then recorded in a packages Manifest file. Before portage unpacks and compiles the package, it verifies that all these hashes are accurate. ...


6

FWIW, this is what worked on my environment (rhel5.x) using zsh's default. bindkey "^[[1;5C" forward-word bindkey "^[[1;5D" backward-word


6

gentoolkit comes to help: equery d <atom> You can check dependencies first, then proceed to remove the package after inspecting its dependencies.


6

According to http://www.fileformat.info/info/unicode/char/10100/fontsupport.htm the following several fonts support U+10100: Code2001, EversonMono (and EversonMono Oblique), MPH 2B Damase, and Penuturesu. Note that Code2001 isn’t where it used to be, but it can be downloaded from my Code2001 page. And you can add ALPHA-Demo and Quivira to the list. ...


6

try alias sudo='nocorrect sudo'.


6

This is not supposed to be possible; either you are running a vulnerable version of some software or you have misconfigured something. Under normal configurations, connecting to an X server requires a sort of password called “X cookie”. The cookie is randomly generated when the X server starts and stored in a file. Normally, only the user who started the X ...



Only top voted, non community-wiki answers of a minimum length are eligible