gentoo

Does the Gentoo install CD contain everything for C++ development?

I'd like to install Gentoo. I need it to develop GUI C++ applications using wxWidgets, so I need: build tools: make, automake, autoconf, etc. C++ compiler (GCC) X Window System for testing (Fluxbox or something minimal would be enough) Now, I have two options: download the small network installer (57MB) do a network install downloa...

How to install a masked package in Gentoo 2008?

I searched the net and handbook, but I only managed to learn what is the masked package, and not how to install it. I did find some commands, but they don't seem to work on 2008 (looking at it, it seems those are for earlier versions). I have something like this: localhost ~ # emerge flamerobin Calculating dependencies !!! All ebuilds ...

Running Apache Archiva standalone in Gentoo?

I have a server running Gentoo 2.6.12 r6 and I want to run Apache Archiva as a standalone server at startup. Does anyone have a working init.d script to accomplish this? Thanks! ...

/etc/motd printing twice on Gentoo Linux

I've run into a problem where I'm getting two printouts of my /etc/motd file on Gentoo Linux. sshd is doing one of the printouts, and I can toggle that by configuring /etc/ssh/sshd_config, but I can't find out who's printing the second copy. I can't disable sshd from printing out the motd due to an audit requirement. I'm running the b...

darcs help breaks my shell

I have just installed darcs 2.1.2.2. When I type darcs help, sth less-like shows up. When I dismiss it with q it goes away but I don't get prompt and can't execute any commands. C-c doesn't work either. I am using bash on gentoo. ...

mod_rewrite adding unwanted file extension

I set up Phorum to use search-engine friendly URLs on my local server (Ubuntu Jaunty). It worked perfectly. Upon moving the site to the production server (Gentoo), I get 404 not found for all pages. The mod_rewrite logs below show the problem. The same rules are being used on both installs: RewriteEngine On # READ RULES RewriteRule ^(...

Killing linux socket from shell (gentoo amd64)

Folks, what is the best way to kill an established connection from the shell in linux? Looks like there are 'tcpkill' and 'cutter' tools available, however, on my gentoo amd64 tcpkill is disabled by the 'amd64' keyword and cutter, when used, prints an error "openning /proc/net/ip_conntrack: No such file or directory". Is there any ot...

How to configure PHP under Apache web server in GENTOO Operating System?

Hi, is there anyone who knows how to install / configure php under apache? I have emerge php apache both. I wanted to use mod_php for apache in GENTOO OS. php temp.php command line runs fine, but http://localhost/temp.php is not executing on web server instead it shows the content of the php code. ...

Getting Tomcat to play well with Netbeans 6.7 on Linux

I have an external Tomcat server configured to run J2EE applications on my development (Gentoo Linux install) machine. This works great if the server is started prior to opening Netbeans and deploying the code [within the IDE]. This fails when I try to restart the server or to debug the server application. The error I get is that it is u...

Fresh OpenEMM installation shows bean errors on some pages

We have deployed a fresh openemm installation on a resin server (which wasn't exactly straight forward due to an enormous amount of dependencies although resin is the recommended and default application server). This is our setup: latest Gentoo GNU/Linux OpenEMM 5.1.1 (compiled from source, including a huge amount of dependent jars) Re...

Hierarchical ldd(1)

Due to using Gentoo, it often happens that after an update programs are linked against old versions of libraries. Normally, revdep-rebuild helps resolving that, but this time it's a dependency of a python library and python-updater won't pick it up. Is there a "hierarchical" variant of ldd which shows me what shared library depends on w...

How can including GDB debugging symbols 'break packages' ?

When I am building packages, (on Gentoo, but that's not too important to this question) I get this warning that '-ggdb3' flag can 'break packages. I have yet to find an instance of when that is true. Although I once found some code which broke under different optimisation settings, that's different from including debugging symbols. ...

"#include <asm/io.h>" causes "error: asm/io.h: No such file or directory"

I am using gentoo and trying to compile a program to control the bits on the parallel port. It has this line near the top of it: #include <asm/io.h> And when I try to use gcc on it, it produces this output: port.c:4:20: error: asm/io.h: No such file or directory "locate asm/io.h" yeilds (among other things): /usr/src/linux-2...

index.php gets send as download request on random occasions...

Hello We have had a problem with getting "You want to download index.php/viewtopic.php ect" on our website for quite some time now, and been trying to rule out server load ect. Mainly trying that since it seems to happen mostly when the website has alot of visitors But given that by throttling all apache2 server load settings to lowest...

Python wait to create a socket

After reinstalling service wrote in python on the virtual machine with gentoo i get strange situation with open new sockets in scripts. Python wait(up to 1 minute) to start opening sockets for tcp connections, and this cause tcp timeouts on above servers. Grateful for help) ...

Is there any git repository with official daily updated Gentoo portage?

RSync is traditionally used to update Gentoo portage tree. But it's somewhat slow when dealing with a large number of files. So, I want to try to replace RSync with Git. I know that Funtoo have Git-based portage tree, but is there a Gentoo-specific official one? ...

OpenSSH connection trouble

Hi, I'm trying to use Putty 0.60 to log in to an OpenSSH 5.3 server. Connections with openssh from another Linux server are possible, but Putty fails. Putty's event log tells me "software caused connection abort" right after the DH key exchange, the server log doesn't report anything (set to INFO). I analyzed the traffic with Wireshark ...

Hudson - Maven is failing (cannot create /dev/null/.m2) on Tomcat-6 - Gentoo

Hi there. I'm having major issues with getting Hudson up and running on a gentoo server with Tomcat 6. I'm able to deploy Hudson just fine, and I can browse the web-application, configure it and set up builds etc. However, when I try to run a build (in example "clean test" on a Maven2 project) I get this error ERROR: Failed to create...

Problems with system() calls in Linux

I'm working on a init for an initramfs in C++ for Linux. This script is used to unlock the DM-Crypt w/ LUKS encrypted drive, and set the LVM drives to be available. Since I don't want to have to reimplement the functionality of cryptsetup and gpg I am using system calls to call the executables. Using a system call to call gpg works fi...

Packages, Ubuntu counterparts of Gentoo's useful commands

Trying to learn how to work with packages in Ubuntu (and have Gentoo experience). This command is already known: (1) sudo apt-get install pkgname Looking for counterparts of these: (2) emerge -s pkgname (3) equery files pkgname (4) equery belongs filename (5) cat /var/lib/portage world Which useful (console) package commands do yo...