Hot answers tagged

47

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. Apparently, Gentoo documentation is said to be very intimidating to ...


45

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


41

You should set yout GPG_TTY variable for it to work, as in this document: GPG_TTY=$(tty) export GPG_TTY Those two lines are supposed to be in your .bashrc (assuming bash), so they're run every time you open new terminal session. There's another solution, though: in bash you can run your pv and pretend it's a file, using process substitution: gpg -o file....


32

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

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 --...


17

Probably the biggest difference is that gentoo provides source packages while arch provides pre compiled binaries. Arch also only supports x86 machines although it has been ported to other architectures with some success. Look here for a list.


15

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 (...


15

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): bindkey ";...


14

REJECT is a target extension, while a chain policy must be a target. The man page says that (although it's not really clear), but some of what it says is flat wrong. The policy can only be ACCEPT or DROP on built-in chains. If you want the effect of rejecting all the packets that don't match the previous rules, just make sure the last rule matches ...


14

You may use the e-file command from the pfl package (emerge -av app-portage/pfl) to search by package contents. e-file YOURFILE Alternatively, you may use an online database. Regarding the qcad package specifically, you probably need the Qt4 package. IIRC, use emerge -av x11-libs/qt-gui (If that doesn't work out, try searching for QT packages. Use this ...


13

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 ...


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 ...


12

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 ...


12

In the installation of Gentoo, you'll be much more encouraged to compile your own kernel, an experience that any power user of Linux should go through. :) Arch by default uses systemd for its initialisation. systemd is growing much more popular, and most distributions are moving over to it in place of the old System-V style init system. Gentoo uses this ...


11

You could use eix tool (from app-portage/eix): eix --in-overlay OVERLAY_NAME From man eix: --in-overlay overlay Only match packages with at least one version in an overlay matching overlay. --only-in-overlay overlay Only match packages which have only versions in an overlay matching overlay. If you're not familiar ...


11

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 ...


11

So I did figure it out: I partitioned the disk partialy following the handbook: # parted -a optimal /dev/sda GNU Parted 2.3 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted)mklabel gpt (parted)unit mib (parted)mkpart primary 1 3 (parted)name 1 grub (parted)set 1 bios_grub on (parted)mkpart primary 3 131 (parted)name ...


10

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 ...


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 (i686 for pentium 2 or greater) is a ...


9

I was just looking for the very same thing. If you use eix, you are in luck. From the wiki: Adding overlays to the cache To search not only in the portage tree but all the overlays, add overlays to the cache root # eix-remote update and then sync it all: root # eix-sync (example from my system) mordjah@Ananke /mnt/Dev/nuvola-player $ eix nuvola * x11-...


8

try alias sudo='nocorrect sudo'.


8

Frame buffers are nothing more than memory regions that are used for graphics. Modern graphics cards have kernel-native drivers which are used for KMS (kernel mode setting) and can use very high-resolution and high-speed framebuffers even on dual heads. However, the card emulated by QEMU there does not have such a driver. You’d have to be emulating one of ...


8

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


8

Another way would be to list available keywords with equery, this will also show the versions available. $ [-] equery y pidgin Keywords for net-im/pidgin: | | u | | a a a p s | n | | l m r h i m m p s p | u s | r | p d a m p a 6 i p c 3 a x | ...


8

An alternative answer, one that doesn't involve pulling in nearly as many unneeded packages, is: sudo apt-get install libglib2.0-dev


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

You're not missing anything obvious. I dug into the source of the pam_motd module to figure this one out. The trick is that pam_motd does the following with /etc/motd: Check the size of the file. Allocate a buffer of that size. Read the entire file into the buffer. Output the buffer through whatever output method is in use. (PAM is modular, after all; ...


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

I guess this is kinda heuristic — allowing make to launch CPUs + 1 processes is to make sure that: there wouldn't be a gap between a worker-process which just have finished and a worker yet-to-run — somewhat like pre-filling run queue. there wouldn't be too much competing processes to bring in noticeable overhead with that run-queue pre-filling. But, again,...


7

If you want to use eix, you can use its --installed-with-use option: $ eix --installed-with-use ipv6 curl You may omit the last argument to enumerate all of the query results for any installed package with a particular useflag: $ eix --installed-with-use ipv6 If you need to check if a particular package is installed with a particular useflag and can use ...


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