Re: [gentoo-user] Resetting the root passwd

2012-01-11 Thread Nilesh Govindarajan
On Jan 11, 2012 5:57 PM, "Tanstaafl"  wrote:
>
> On 2012-01-10 2:12 PM, Hinnerk van Bruinehsen 
wrote:
>>
>> The simpelest solution should be to copy the password-hash of a user
>> whose password is know to you.
>> Afterwards you can log in an change the password again.
>
>
> Thanks, I like that better and it worked like a charm, this way the root
account is never unprotected (even for a minute)... although remote root
login is disabled anyway...
>
>> And for the future:http://xkcd.com/936/  ;)
>
>
> I couldn't live without Passwordmaker (Firefox Addon), with it, I can
have as strong and random passwords as I want on every site, it auto fills
the username/password for me (if it is a web login page), but doesn't store
any password anywhere...
>
> http://passwordmaker.org/
>

While booting, pass init=/bin/bash in the kernel command line


Re: [gentoo-user] Re: Network configuration - Two ips one from dhcp & other static

2012-01-09 Thread Nilesh Govindarajan
On Mon 09 Jan 2012 10:44:02 PM IST, James wrote:
> Nilesh Govindarajan  nileshgr.com> writes:
>
>
>>> Well, the title tells the question clearly; how do I configure network
>>> such that the first ip is obtained via dhcpcd and other is static?
>>> config_eth0="dhcp " doesn't work.
>
> Did you look at /etc/conf.d/net.example  for hints?
>
>>> As a solution I wrote a dhcpcd hook containing /sbin/ifconfig eth0:0
>>>  netmask 
>
>
> Maybe not launch your script for a few minutes (timing?) via crontab
> if nothing else works?
>
>
> James
>
>
>
>
>

I did read that. I'm pretty peculiar about reading docs, so that I 
don't have to face an RTFM from the ML or IRC ;-)
The first time it didn't work properly. The second time it did. May be 
I'd made some mistake or so.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Re: Network configuration - Two ips one from dhcp & other static

2012-01-07 Thread Nilesh Govindarajan
On Sat 07 Jan 2012 01:53:18 PM IST, Pandu Poluan wrote:
>
> On Jan 7, 2012 3:13 PM, "Nilesh Govindarajan"  <mailto:cont...@nileshgr.com>> wrote:
> >
> > On Sat 07 Jan 2012 01:27:45 PM IST, Nilesh Govindarajan wrote:
> > > Well, the title tells the question clearly; how do I configure network
> > > such that the first ip is obtained via dhcpcd and other is static?
> > > config_eth0="dhcp " doesn't work.
> > >
> > > As a solution I wrote a dhcpcd hook containing /sbin/ifconfig eth0:0
> > >  netmask 
> > >
> > > Is there a direct way?
> > >
> >
> > Yikes! It works now :O
> >
>
> AFAIK dhcpcd will remove all IP addresses on an interface (i.e., all
> addresses listed by 'ip addr sh dev eth0') before it sets the
> interface's address using the values provided by the DHCP server.
>
> Thus, your configuration will work only if dhcpcd receives an address
> soon enough before the static address(es) gets assigned.
>
> If the dynamic address assignment is delayed, then the static
> addresses will be removed by dhcpcd, resulting in just one address on
> the interface.
>
> Of course, this is pure conjecture on my part. If there's anyone more
> familiar with how addresses gets assigned in Gentoo, feel free to
> correct me.
>
> Rgds,
>

The hook was working. Before I discovered it myself that using with 
config_eth0 it works. May be I was little sleepy or so when I tried the 
first time. :/

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Re: Network configuration - Two ips one from dhcp & other static

2012-01-07 Thread Nilesh Govindarajan
On Sat 07 Jan 2012 01:27:45 PM IST, Nilesh Govindarajan wrote:
> Well, the title tells the question clearly; how do I configure network
> such that the first ip is obtained via dhcpcd and other is static?
> config_eth0="dhcp " doesn't work.
>
> As a solution I wrote a dhcpcd hook containing /sbin/ifconfig eth0:0
>  netmask 
>
> Is there a direct way?
>

Yikes! It works now :O

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Network configuration - Two ips one from dhcp & other static

2012-01-06 Thread Nilesh Govindarajan
Well, the title tells the question clearly; how do I configure network
such that the first ip is obtained via dhcpcd and other is static?
config_eth0="dhcp " doesn't work.

As a solution I wrote a dhcpcd hook containing /sbin/ifconfig eth0:0
 netmask 

Is there a direct way?

-- 
Nilesh Govindarajan
http://nileshgr.com




[gentoo-user] Re: No mysql_install_db in dev-db/mysql-5.5.19?

2012-01-05 Thread Nilesh Govindarajan
On Thu, Jan 5, 2012 at 12:30 AM, Nilesh Govindarajan
 wrote:
> I know, mysql >= 5.5 is masked even on ~amd64, but I need mysql 5.5 for
> the improved InnoDB support it has.
>
> When I run emerge --config =dev-db/mysql-5.5.19, it doesn't complete and
> I see this in mysql_install_db.log:
> //usr/bin/mysql_install_db: No such file or directory
>
> The command doesn't exist, tried that on the shell.
>

There's a bug on b.g.o for 5.5.16, but is true for 5.5.19 as well -
https://bugs.gentoo.org/show_bug.cgi?id=392361

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] No mysql_install_db in dev-db/mysql-5.5.19?

2012-01-04 Thread Nilesh Govindarajan
I know, mysql >= 5.5 is masked even on ~amd64, but I need mysql 5.5 for
the improved InnoDB support it has.

When I run emerge --config =dev-db/mysql-5.5.19, it doesn't complete and
I see this in mysql_install_db.log:
//usr/bin/mysql_install_db: No such file or directory

The command doesn't exist, tried that on the shell.

-- 
Nilesh Govindarajan
http://nileshgr.com




[gentoo-user] Re: Read only root filesystem on linode64

2012-01-03 Thread Nilesh Govindarajan
On Wed 04 Jan 2012 08:42:48 AM IST, Nilesh Govindarajan wrote:
> On Wed 04 Jan 2012 08:35:19 AM IST, Nilesh Govindarajan wrote:
>> I am trying to run a custom kernel with gentoo on linode64, but there's
>> strange problem I'm facing.
>> The root always gets mounted read-only, I don't know why. I have this
>> line in menu.lst:
>>
>> kernel /boot/vmlinuz-3.1.6-gentoo root=/dev/xvda rw
>>
>> Also, the /etc/fstab line says:
>> /dev/xvda / defaults,noatime 0 1
>>
>> Everytime I boot with the custom kernel, the root is getting mounted as
>> read only. The funniest thing is, even after proper shutdown, a disk
>> error pops up on /dev/xvda, because I see the message during boot.
>>
>> Anybody knows how to get this thing working? I don't want to use
>> linode's stock kernel, the xfs code in it seems to have some bug.
>>
>> --
>> Nilesh Govindarajan
>> http://nileshgr.com
>
> Err, correction, it's linode1536 64 bit.
>

I got the answer from linode community in case anyone is interested, 
there's some bug in xen/linode with 3.1 series kernels. I was advised 
to try 3.0 series and it works.

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Re: Read only root filesystem on linode64

2012-01-03 Thread Nilesh Govindarajan
On Wed 04 Jan 2012 08:35:19 AM IST, Nilesh Govindarajan wrote:
> I am trying to run a custom kernel with gentoo on linode64, but there's
> strange problem I'm facing.
> The root always gets mounted read-only, I don't know why. I have this
> line in menu.lst:
>
> kernel /boot/vmlinuz-3.1.6-gentoo root=/dev/xvda rw
>
> Also, the /etc/fstab line says:
> /dev/xvda / defaults,noatime 0 1
>
> Everytime I boot with the custom kernel, the root is getting mounted as
> read only. The funniest thing is, even after proper shutdown, a disk
> error pops up on /dev/xvda, because I see the message during boot.
>
> Anybody knows how to get this thing working? I don't want to use
> linode's stock kernel, the xfs code in it seems to have some bug.
>
> --
> Nilesh Govindarajan
> http://nileshgr.com

Err, correction, it's linode1536 64 bit.

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Read only root filesystem on linode64

2012-01-03 Thread Nilesh Govindarajan
I am trying to run a custom kernel with gentoo on linode64, but there's
strange problem I'm facing.
The root always gets mounted read-only, I don't know why. I have this
line in menu.lst:

kernel /boot/vmlinuz-3.1.6-gentoo root=/dev/xvda rw

Also, the /etc/fstab line says:
/dev/xvda / defaults,noatime 0 1

Everytime I boot with the custom kernel, the root is getting mounted as
read only. The funniest thing is, even after proper shutdown, a disk
error pops up on /dev/xvda, because I see the message during boot.

Anybody knows how to get this thing working? I don't want to use
linode's stock kernel, the xfs code in it seems to have some bug.

--
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Where's the examples?????

2012-01-01 Thread Nilesh Govindarajan
On Sun 01 Jan 2012 08:12:30 PM IST, Andrew Lowe wrote:
> Hi all,
> I'm playing around with the Boost library, www.boost.org, at the
> moment and the question is in relation to it but the question also
> applies to other libraries I've played around with, where are the
> examples and doco kept?
>
> I can't seem to find the Boost example source code anywhere. I
> also can't find the doco that comes with Boost. Is there a default
> location that ebuilds should drop examples and doco when dealing with
> libraries such as Boost? Boost does not seem to have a USE flag that
> says "Install examples somewhere" so I'm at a bit of a loss as to
> where this stuff is?
>
> Any thoughts greatly appreciated,
>
> Andrew
>

I don't know about the examples, but the doc useflag installs 
documentation in /usr/share/doc/boost-

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Sharing /home and swap

2011-12-27 Thread Nilesh Govindarajan
On Dec 28, 2011 7:52 AM, "Andrew Lowe"  wrote:
>
> Hi all,
>I usually use Gentoo as my "normal" Linux but a third party app
I'm about to start using only runs on SUSE. To this end, I'm about to set
aside a smaller partition and install the minimal amnount of SUSE I need to
run the app. My question is regarding /home and swap. Is there anything in
my current Gentoo /home and swap that "locks" them to the Gentoo install or
can I share them between the two installs? What I mean by share is that
when I boot up Gentoo can I mount /home and swap and everything is fully
accessible and then reboot into SUSE and once again mount them and
everything is once again fully accessible?
>
>I'm not doing anything "snazzy" such as LVM or encryption, just
bog standard Linux. Any thoughts greatly appreciated.
>
>Regards,
>Andrew
>
Another important factor is desktop environment. Various settings can cause
troubles in either ones.


[gentoo-user] Python-updater always adds packages to list

2011-12-22 Thread Nilesh Govindarajan
Hi,

I installed gentoo on a new vps, and updated it to latest stuff. Funny
thing is, irrespective of the number of times I run python-updater, the
same packages are added at every run. Earlier the installation had
python 2.6. Updated to 2.7 and --depclean'd 2.6. Now it has 2.6 & 3.2
with 3.2 as main active version.

 * Starting Python Updater...
 * Main active version of Python:  3.2
 * Active version of Python 2: 2.7
 * Active version of Python 3: 3.2
 * check "shared_linking" enabled.
 * check "static_linking" enabled.
 * check "pylibdir" enabled.
 * check "manual" enabled.
 * check "need_rebuild" enabled.
 * Adding to list: dev-libs/libxml2:2
 * check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 * Adding to list: dev-libs/libxslt:0
 * check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 * Adding to list: sys-apps/file:0
 * check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 3.2 ]
 * Adding to list: sys-libs/cracklib:0
 * check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]
 * emerge -Dv1 --keep-going -p dev-libs/libxml2:2 dev-libs/libxslt:0
sys-apps/file:0 sys-libs/cracklib:0

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary   R] dev-libs/libxml2-2.7.8-r3  USE="ipv6 readline -debug
-doc -examples -icu -python -static-libs -test" 0 kB
[binary   R] sys-apps/file-5.09  USE="zlib -python -static-libs" 0 kB
[binary   R] dev-libs/libxslt-1.1.26-r2  USE="crypt -debug -python
-static-libs" 0 kB
[binary   R] sys-libs/cracklib-2.8.18-r1  USE="nls -python
-static-libs" 0 kB

Total: 4 packages (4 reinstalls, 4 binaries), Size of downloads: 0 kB

I know it is showing binary package, but I have tried with
python-updater -- --usepkg=n. It compiles all of them, but on the next
run again I get this.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] What happened to OpenRC 0.9.6?

2011-11-27 Thread Nilesh Govindarajan
On Sun 27 Nov 2011 09:06:39 PM IST, Nikos Chantziaras wrote:
> sys-apps/openrc-0.9.6 is just... gone?  Not even masked, but
> completely gone from portage.
>
> What happened to it?
>

0.9.6? I updated my tree 24h before writing this reply. It's still not 
there. Only upto 0.9.4 & -9999 is masked.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] The LIGHTEST web server (just for serving files) ?

2011-11-12 Thread Nilesh Govindarajan
On Sat 12 Nov 2011 01:54:10 PM IST, Pandu Poluan wrote:
> What is the *LIGHTEST* web server package you know for gentoo?
>
> I just want to serve the distfiles, so no CGI / PHP /
> whathaveyouscripting support is needed.
>
> Preferably, with logging so I can see which packages I missed, but not
> necessary.
>
> Rgds,

nginx.
You can disable fastcgi/etc using use flags.

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Strange issue about package.mask

2011-10-24 Thread Nilesh Govindarajan
I don't want to compile the big thing - libreoffice, so I use
libreoffice-bin instead.
To prevent myself from emerging libreoffice by mistake, I add it to
package.mask
But there's a strange thing going on here.
If the contents of package.mask are like this:
app-office/libreoffice

equery u libreoffice shows me the unstable version ()

while if the contents are like this:
-app-office/libreoffice

equery u libreoffice shows the proper one, 3.4.3 (~amd64).

Also, with other packages this is not the issue. They get masked
(instead of getting unmasked) without that hyphen in the beginning.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] /etc/portage files and dirs?

2011-10-24 Thread Nilesh Govindarajan
On Mon 24 Oct 2011 11:37:00 AM IST, Pandu Poluan wrote:
> Anyone knows of an exhaustive documentation (with examples) for the
> files and directories under /etc/portage ?
>
> Rgds,
>

It's documented quite well in man portage.
Don't know about examples though.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Which desktop antivirus?

2011-10-22 Thread Nilesh Govindarajan
On Sat 22 Oct 2011 04:57:33 PM IST, Mick wrote:
> Hi All,
>
> I'm asked for a desktop antivirus (the box is running KDE) but I have never 
> used an antivirus on Linux.  This page that I googled up shows a number of 
> them:
>
>   http://www.makeuseof.com/tag/free-linux-antivirus-programs/
>
> Meanwhile, portage only lists clamav under app-antivirus/.
>
> The machine in question is running kmail to receive/send messages from ISP 
> mail servers and ssmtp to send log messages for relaying via said ISP.
>
> What have you tried and what would you recommend for such a desktop setup?

IMHO, you don't need antivirus on a Linux box, unless you're going to 
run a mail relay, where you are responsible for saving recipents from 
viruses.
The simplest reason of all is, Linux doesn't know how to execute 
Windows binaries.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Re: Gnome 3 is stable?

2011-10-21 Thread Nilesh Govindarajan
On Fri 21 Oct 2011 01:13:50 PM IST, Nikos Chantziaras wrote:
> On 10/21/2011 10:30 AM, Nilesh Govindarajan wrote:
>> The gnome project's latest stable release is gnome 3.2
>> Why don't we have a proper method to install gnome 3.2 yet in gentoo?
>
> It's in the overlay because the ebuilds are not ready yet and are
> still being worked on.
>

Where to report bugs in overlay ebuilds?

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Gnome 3 is stable?

2011-10-21 Thread Nilesh Govindarajan
The gnome project's latest stable release is gnome 3.2
Why don't we have a proper method to install gnome 3.2 yet in gentoo?
Using overlays is pretty messy and requires lot of work

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Networkmanager-9999 won't compile

2011-10-19 Thread Nilesh Govindarajan
On 10/20/2011 06:57 AM, Canek Peláez Valdés wrote:
> On Wed, Oct 19, 2011 at 6:00 PM, Nilesh Govindarajan
>  wrote:
>> On Thu 20 Oct 2011 05:30:24 AM IST, Canek Peláez Valdés wrote:
>>> On Wed, Oct 19, 2011 at 1:52 PM, Albert W. Hopkins
>>>  wrote:
>>>> On Wed, 2011-10-19 at 13:11 -0700, Canek Peláez Valdés wrote:
>>>>> Why don't you try networkmanager-0.9.1.90? It's working great for me
>>>>> in GNOME 3.2.0
>>>>>
>>>>> Is there something in the live ebuild that you need?
>>>>>
>>>> I can't confirm (never tried it) but I've been told the autounmask
>>>> option in portage will "blindly" unmask even live ebuilds.. which might
>>>> account for people suddenly pulling in a surprising (and potentially
>>>> problematic) amount of live ebuilds.
>>>
>>> I haven't tried the autounmask option from portage, neither. The GNOME
>>> overlay offers a series of files you can link to your
>>> /etc/portage/package.{unmask,keywords,use,use.mask} directories: They
>>> are located in
>>>
>>> ${OVERLAYDIR}/status/portage-configs/
>>>
>>> I haven't used those either, though. I prefer to unmask/keyword
>>> packages myself. What I do know is that using live ebuilds is
>>> basically flipping a coin; sometimes will work great, sometimes it
>>> will not even compile.
>>>
>>> Right now the only live ebuilds I'm using are:
>>>
>>> gnome-extra/libgda-
>>> media-sound/rhythmbox-
>>> sys-apps/gnome-disk-utility-
>>> gnome-extra/gnome-shell-extensions-weather-
>>> gnome-extra/gnome-shell-extensions-system-monitor-
>>>
>>> Everything else works with the latest non-live ebuilds.
>>>
>>> Regards.
>>
>> Did you just do emerge gnome (assumging that >=gnome-base/gnome-3.0 is
>> in package.unmask)? I'll try doing that again then, till now autounmask
>> was active.
> 
> I did emerge =gnome-base/gnome-3.2.0, and unmasked/keyworded by hand
> the necessary packages. But maybe just check that the "**" is not in
> any file on /etc/portage/package.keyworks/* (except perhaps the ones
> I'm using). If there is no "**" keyworkd, no non-live ebuild should be
> installed.
> 
> Oh, and also in /etc/portage/package.unmask/*, of course.
> 
> Good luck.

BTW, which overlays did you use?
I tried after reading (translated version of) german guide on the web
these - gnome, keruspe, suka, rubenqba

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Networkmanager-9999 won't compile

2011-10-19 Thread Nilesh Govindarajan
On Thu 20 Oct 2011 01:41:25 AM IST, Canek Peláez Valdés wrote:
> On Wed, Oct 19, 2011 at 2:30 AM, Nilesh Govindarajan
>  wrote:
>> This is what I get when I try to install networkmanager- which is
>> required by gnome-3.2.0
>>
>> #   source='nm-session-monitor.c'
>> object='NetworkManager-nm-session-monitor.o' libtool=no
>> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include
>> -I../marshallers -I../src/logging -I../src/dns-manager
>> -I../src/vpn-manager -I../src/dhcp-manager -I../src/ip6-manager
>> -I../src/supplicant-manager -I../src/dnsmasq-manager
>> -I../src/modem-manager -I../src/bluez-manager -I../src/settings
>> -I../libnm-util -I../callouts  -I/usr/include/dbus-1.0
>> -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0
>> -I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/glib-2.0
>> -I/usr/lib64/glib-2.0/include   -I/usr/include/gudev-1.0
>> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include-pthread
>> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -pthread
>> -I/usr/include/polkit-1 -I/usr/include/glib-2.0
>> -I/usr/lib64/glib-2.0/include   -DG_DISABLE_DEPRECATED
>> -DBINDIR=\"/usr/bin\" -DSBINDIR=\"/usr/sbin\"
>> -DLIBEXECDIR=\"/usr/libexec\" -DDATADIR=\"/usr/share\"
>> -DSYSCONFDIR=\"/etc\" -DLOCALSTATEDIR=\"/var\"
>> -DNM_RUN_DIR=\"/var/run/NetworkManager\"
>> -DNMLOCALEDIR=\"/usr/share/locale\" -DARP_DEBUG   -O3 -march=native
>> -mtune=native -pipe -msse -msse2 -mmmx -c -o
>> NetworkManager-nm-session-monitor.o `test -f 'nm-session-monitor.c' ||
>> echo './'`nm-session-monitor.c
>> /bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O3
>> -march=native -mtune=native -pipe -msse -msse2 -mmmx -rdynamic -Wl,-O1
>> -Wl,--as-needed -o NetworkManager NetworkManager-nm-call-store.o
>> NetworkManager-nm-device.o NetworkManager-nm-device-interface.o
>> NetworkManager-nm-device-ethernet.o NetworkManager-nm-device-wifi.o
>> NetworkManager-nm-device-olpc-mesh.o NetworkManager-nm-device-bt.o
>> NetworkManager-nm-device-modem.o NetworkManager-nm-wifi-ap.o
>> NetworkManager-nm-wifi-ap-utils.o NetworkManager-nm-dbus-manager.o
>> NetworkManager-nm-udev-manager.o NetworkManager-nm-hostname-provider.o
>> NetworkManager-nm-ip4-config.o NetworkManager-nm-ip6-config.o
>> NetworkManager-nm-active-connection.o NetworkManager-nm-config.o
>> NetworkManager-main.o NetworkManager-nm-policy.o
>> NetworkManager-nm-policy-hosts.o NetworkManager-nm-policy-hostname.o
>> NetworkManager-NetworkManagerUtils.o NetworkManager-nm-system.o
>> NetworkManager-nm-manager.o NetworkManager-nm-manager-auth.o
>> NetworkManager-nm-netlink-monitor.o NetworkManager-nm-netlink-utils.o
>> NetworkManager-nm-netlink-compat.o
>> NetworkManager-nm-activation-request.o
>> NetworkManager-nm-properties-changed-signal.o NetworkManager-wpa.o
>> NetworkManager-nm-dhcp4-config.o NetworkManager-nm-dhcp6-config.o
>> NetworkManager-nm-session-monitor.o ../marshallers/libmarshallers.la
>> ./logging/libnm-logging.la ./dns-manager/libdns-manager.la
>> ./vpn-manager/libvpn-manager.la ./dhcp-manager/libdhcp-manager.la
>> ./ip6-manager/libip6-manager.la
>> ./supplicant-manager/libsupplicant-manager.la
>> ./dnsmasq-manager/libdnsmasq-manager.la ./ppp-manager/libppp-manager.la
>> ./modem-manager/libmodem-manager.la ./bluez-manager/libbluez-manager.la
>> ./settings/libsettings.la  ./backends/libnmbackend.la
>> ../libnm-util/libnm-util.la -ldbus-glib-1 -ldbus-1 -lpthread -lrt
>> -lgobject-2.0 -lglib-2.0   -pthread -lgthread-2.0 -lrt -lgobject-2.0
>> -lglib-2.0   -lgudev-1.0 -lgobject-2.0 -lglib-2.0   -lnl
>> -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lglib-2.0   -pthread
>> -lpolkit-gobject-1 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lrt -lglib-2.0
>>  -lm -ldl
>> libtool: link: x86_64-pc-linux-gnu-gcc -O3 -march=native -mtune=native
>> -pipe -msse -msse2 -mmmx -rdynamic -Wl,-O1 -o .libs/NetworkManager
>> NetworkManager-nm-call-store.o NetworkManager-nm-device.o
>> NetworkManager-nm-device-interface.o NetworkManager-nm-device-ethernet.o
>> NetworkManager-nm-device-wifi.o NetworkManager-nm-device-olpc-mesh.o
>> NetworkManager-nm-device-bt.o NetworkManager-nm-device-modem.o
>> NetworkManager-nm-wifi-ap.o NetworkManager-nm-wifi-ap-utils.o
>> NetworkManager-nm-dbus-manager.o NetworkManager-nm-udev-manager.o
>> NetworkManager-nm-hostname-provider.o NetworkManager-nm-ip4-config.o
>> NetworkManager-nm-ip6-config.o NetworkManager-nm-active-connection.o
>> NetworkMa

Re: [gentoo-user] Networkmanager-9999 won't compile

2011-10-19 Thread Nilesh Govindarajan
On Thu 20 Oct 2011 05:30:24 AM IST, Canek Peláez Valdés wrote:
> On Wed, Oct 19, 2011 at 1:52 PM, Albert W. Hopkins
>  wrote:
>> On Wed, 2011-10-19 at 13:11 -0700, Canek Peláez Valdés wrote:
>>> Why don't you try networkmanager-0.9.1.90? It's working great for me
>>> in GNOME 3.2.0
>>>
>>> Is there something in the live ebuild that you need?
>>>
>> I can't confirm (never tried it) but I've been told the autounmask
>> option in portage will "blindly" unmask even live ebuilds.. which might
>> account for people suddenly pulling in a surprising (and potentially
>> problematic) amount of live ebuilds.
>
> I haven't tried the autounmask option from portage, neither. The GNOME
> overlay offers a series of files you can link to your
> /etc/portage/package.{unmask,keywords,use,use.mask} directories: They
> are located in
>
> ${OVERLAYDIR}/status/portage-configs/
>
> I haven't used those either, though. I prefer to unmask/keyword
> packages myself. What I do know is that using live ebuilds is
> basically flipping a coin; sometimes will work great, sometimes it
> will not even compile.
>
> Right now the only live ebuilds I'm using are:
>
> gnome-extra/libgda-
> media-sound/rhythmbox-
> sys-apps/gnome-disk-utility-
> gnome-extra/gnome-shell-extensions-weather-
> gnome-extra/gnome-shell-extensions-system-monitor-
>
> Everything else works with the latest non-live ebuilds.
>
> Regards.

Did you just do emerge gnome (assumging that >=gnome-base/gnome-3.0 is 
in package.unmask)? I'll try doing that again then, till now autounmask 
was active.

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Networkmanager-9999 won't compile

2011-10-19 Thread Nilesh Govindarajan
/libvpn-manager.a
./dhcp-manager/.libs/libdhcp-manager.a
./ip6-manager/.libs/libip6-manager.a
./supplicant-manager/.libs/libsupplicant-manager.a
./dnsmasq-manager/.libs/libdnsmasq-manager.a
./ppp-manager/.libs/libppp-manager.a
./modem-manager/.libs/libmodem-manager.a
./bluez-manager/.libs/libbluez-manager.a ./settings/.libs/libsettings.a
/media/500GB/gentoo_portage/tmp/portage/net-misc/networkmanager-/work/networkmanager-/libnm-util/.libs/libnm-util.so
./backends/.libs/libnmbackend.a ../libnm-util/.libs/libnm-util.so -luuid
-lssl3 -lsmime3 -lnssutil3 -lnss3 -lplds4 -lplc4 -lnspr4 -ldbus-glib-1
-ldbus-1 -lpthread /usr/lib64/libgudev-1.0.so -L/usr/lib64
/usr/lib64/libudev.so -lgthread-2.0 -lnl -lpolkit-gobject-1 -lgio-2.0
-lgobject-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -lm -ldl -pthread
NetworkManager-main.o: In function `main':
main.c:(.text+0xa63): undefined reference to `g_thread_supported'
collect2: ld returned 1 exit status
make[4]: *** [NetworkManager] Error 1
make[4]: Leaving directory
`/media/500GB/gentoo_portage/tmp/portage/net-misc/networkmanager-/work/networkmanager-/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/media/500GB/gentoo_portage/tmp/portage/net-misc/networkmanager-/work/networkmanager-/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/media/500GB/gentoo_portage/tmp/portage/net-misc/networkmanager-/work/networkmanager-/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/media/500GB/gentoo_portage/tmp/portage/net-misc/networkmanager-/work/networkmanager-'
make: *** [all] Error 2


The error is g_thread_supported is an undefined reference. This seems to
be related to glib. Anybody has a solution? I tried masking
networkmanager, but emerge won't allow me to do that when I try to
install gnome-base/gnome-3.2.0 (layman overlay)

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Can't find driver for VGA in kernel source tree

2011-10-14 Thread Nilesh Govindarajan
On Sat 15 Oct 2011 07:43:23 AM IST, Lavender wrote:
> Hello, everyone ! I'm trying to build a kernel
> manully and there is a problem.
> I use lspci command and it shows my
> VGA card information:
>  
> 01:00.0 VGA compatible controller:
> ATI Technologies Inc M92 LP
>  
> Then I type
> $ cd /sys/bus/pci/devices/:01:00.0
> $ cat vendor
> $ cat device
>  
> Now I get the vendor ID 0x1002
> and the device ID 0x9552 for my VGA card
>  
> Then I type
> $ grep -i 0x1002 include/linux/pci_ids.h 
> It shows #define PCI_VENDOR_ID_ATI  0x1002
>  
> $grep -i 0x9552 include/linux/pci_ids.h
> It shows nothing
> $grep -Rl PCI_VENDOR_ID_ATI
> It prints a lot message, but I should notice
> files in directory drivers/media video and gpu.
> Here are the files in them:
> /drivers/media/video/cx88/cx88-card.c
> /drivers/video/aty/radeon_base.c
> /drivers/video/aty/atyfb_base.c
> /drivers/video/aty/aty128fb.c
> /drivers/drm/radeon/radeon_agp.c
>  
> I have searched through these files, but I didn't
> find both 0x1002 and 0x9552 in one file which
> means these files are not drivers I need.
> If it means that there is no driver for my VGA in
> kernel source tree ? But my laptop is bought two
> years ago, hardware is not fashion.

Have you tried lspci -v which gives verbose information about the 
device, including the modules involved?

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Cups and Ricoh Aficio 270

2011-10-10 Thread Nilesh Govindarajan
On Tue 11 Oct 2011 01:13:41 AM IST, Mick wrote:
> I'm struggling to get anything printed properly - is there a proper driver 
> for 
> this printer in CUPS.  The driver I've chosen seems to distort everything 
> (like a page of A4 text comes out as a black spot 3px  high and 2 wide! )
>
> I've selected AppSocket/HP JetDirect and then since no Ricoh driver showed up 
> I selected Make:Generic and Driver:Generic PCL Laser Printer (en).
>
> The reason I've chosen AppSocket/HP JetDirect is because nmap returned this 
> protocol when I scanned the printer.  Choosing ipp, or http, lpd was not 
> successful either.
>
> However, this AppSocket/HP JetDirect protocol with the Generic driver gives 
> the broken printing I've described above.  Selecting the Generic PostScript 
> Printer (en) it prints pages and pages with ascii or screwed up characters 
> when I try a test page.
>
> Any suggestions?

I don't know about this printer, have you checked the printer 
compatibility list? (openprinting.org I guess).
See how good is your printer supported.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Anyone can afford information about build kernel?

2011-10-08 Thread Nilesh Govindarajan
On Sun 09 Oct 2011 10:23:50 AM IST, Lavender wrote:
> Yeah, your reply is exact what I mean , but I'm really confused by
> those modules' names, I can't find any contact between the hard device
> name and its module name . For example,  there is a module named
> 3c59x.ko , I totally don't know what device it present for , I mean I
> can't figure out that which module correspond to which device though I
> know the hard devices consisted of my PC. So I need information about
> contact between them so that I could know what modules need to be
> chosen in kernel ,  also the options of kernel are quiet a lot ,
> there're many features that I  never heard , I want to find them out .
> May be you think these problems are too easy , but I have never
> contacted them before . Forum I visited and books about Linux I readed
> are both not mentioned them ,  so I wish you all could instruct me.

Kernel module names are usually named according to a specific naming 
scheme like .ko
So here, 3c59x.ko is 3COM 59X device. 3COM ethernet cards are quite 
common.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Re: Rootkit?

2011-10-08 Thread Nilesh Govindarajan
On Thu 06 Oct 2011 10:40:35 PM IST, Nilesh Govindarajan wrote:
> On Thu 06 Oct 2011 10:32:14 PM IST, Michael Mol wrote:
>>
>> On Oct 6, 2011 12:57 PM, "Nilesh Govindarajan" > <mailto:cont...@nileshgr.com>> wrote:
>>>
>>> On Thu 06 Oct 2011 09:06:06 PM IST, Alberto Luaces wrote:
>>>> Nilesh Govindarajan writes:
>>>>
>>>>> One of the servers I manage has a strange problem.
>>>>>
>>>>> Every 24h, someone starts a process shows up as perl in the list, but
>>>>> launching command is /usr/sbin/httpd.
>>>>> It shows just one process, but when I run something like this:
>>>>>
>>>>> ps -C perl -o cmd,pid
>>>>>
>>>>> I get some 5-6 processes alternatively with cmd as /usr/sbin/httpd or
>>>>> /usr/bin/perl.
>>>>>
>>>>> The even more interesting thing is, /usr/sbin/httpd does not exist.
>>>>> I suspect a rootkit, but chkrootkit & rkhunter reported nothing.
>>>>>
>>>>> Also, I found a mysterious file: /tmp/ips.txt with following content:
>>>>> xxx.xxx.xxx.xxx
>>>>> 127.0.0.1
>>>>> addr:xxx.xxx.xxx.xxx
>>>>> addr:
>>>>> addr:127.0.0.1
>>>>> addr:
>>>>>
>>>>> Somebody is aware of a malware/rootkit which creates such files?
>>>>
>>>> I had some of that recently. The attacker used a instance of
>> phpmyadmin
>>>> to inject into its URL a wget command to download a perl script from
>>>> another site. Look for `wget' into apache logs.
>>>>
>>>
>>> @all
>>> Apache was never installed & I don't see any reason to install it
>>> because nginx satisfies my needs. I grepped for the string wget in all
>>> logs and php files, found some, but they were for libssh2 in wordpress
>>> code.
>>> @Michael,
>>> I thought of doing that, but before I discovered the file, I'd already
>>> killed the processes. Will check later when the process is relaunched
>>> sometime later.
>>
>> You might crank up service log levels in anticipation, too, and prod
>> your firewall to log unusual-but-allowed connections, too.
>>
>
> I just found something: 
> http://blog.vaultpress.com/2011/08/02/vulnerability-found-in-timthumb/
> Data on just one of the wordpress installations seems to be deleted, 
> which seems to me as an effect of this. We're removing timthumb and 
> will watch. Thanks for the tip :-)
>

After about 72 hours of watch, it seems timthumb was the culprit. No 
attack/overload since 72h.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Anyone can afford information about build kernel?

2011-10-08 Thread Nilesh Govindarajan
On 10/09/2011 06:25 AM, Lavender wrote:
> It seems that no matter I build gentoo manually or with genkernel I
> can't have a fine-working kernel finally. Obviously I must solve it by
> myself , so I determined to build entire kernel all manually , it
> requests a lot of linux knowlege . All for that, I hope someone could
> tell me where to get this information , I haven't found them on
> gentoo.org , so please lead me to the correct direction, thank you for
> you all !

If you're new to building kernel, it will take some time to learn what
modules you need what options you should enable, etc.
You're building gentoo on some host Linux os, so you can use that os's
lsmod utility to know what modules you require.

Also, if some modules may be compiled right into the kernel you may not
be able to see them in the lsmod produces, instead use lspci -v for that.

One important thing I learnt the hard way while building gentoo for a
server- Always compile the critical modules like disk controllers, RAID,
also don't forget to use RAID autodetection if you're not going to use
an initramfs and filesystems (involved at boot) statically.

While citing my experience about building gentoo on a server, you have
to do the things invisibly, so you can't see what the kernel emits befor
panic.

It turned out that I'd disabled RAID autodetection and wasn't using an
initramfs either (which will load the arrays using mdadm).

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Re: Rootkit?

2011-10-06 Thread Nilesh Govindarajan
On Thu 06 Oct 2011 10:32:14 PM IST, Michael Mol wrote:
>
> On Oct 6, 2011 12:57 PM, "Nilesh Govindarajan"  <mailto:cont...@nileshgr.com>> wrote:
> >
> > On Thu 06 Oct 2011 09:06:06 PM IST, Alberto Luaces wrote:
> > > Nilesh Govindarajan writes:
> > >
> > >> One of the servers I manage has a strange problem.
> > >>
> > >> Every 24h, someone starts a process shows up as perl in the list, but
> > >> launching command is /usr/sbin/httpd.
> > >> It shows just one process, but when I run something like this:
> > >>
> > >> ps -C perl -o cmd,pid
> > >>
> > >> I get some 5-6 processes alternatively with cmd as /usr/sbin/httpd or
> > >> /usr/bin/perl.
> > >>
> > >> The even more interesting thing is, /usr/sbin/httpd does not exist.
> > >> I suspect a rootkit, but chkrootkit & rkhunter reported nothing.
> > >>
> > >> Also, I found a mysterious file: /tmp/ips.txt with following content:
> > >> xxx.xxx.xxx.xxx
> > >> 127.0.0.1
> > >> addr:xxx.xxx.xxx.xxx
> > >> addr:
> > >> addr:127.0.0.1
> > >> addr:
> > >>
> > >> Somebody is aware of a malware/rootkit which creates such files?
> > >
> > > I had some of that recently. The attacker used a instance of
> phpmyadmin
> > > to inject into its URL a wget command to download a perl script from
> > > another site. Look for `wget' into apache logs.
> > >
> >
> > @all
> > Apache was never installed & I don't see any reason to install it
> > because nginx satisfies my needs. I grepped for the string wget in all
> > logs and php files, found some, but they were for libssh2 in wordpress
> > code.
> > @Michael,
> > I thought of doing that, but before I discovered the file, I'd already
> > killed the processes. Will check later when the process is relaunched
> > sometime later.
>
> You might crank up service log levels in anticipation, too, and prod
> your firewall to log unusual-but-allowed connections, too.
>

I just found something: 
http://blog.vaultpress.com/2011/08/02/vulnerability-found-in-timthumb/
Data on just one of the wordpress installations seems to be deleted, 
which seems to me as an effect of this. We're removing timthumb and 
will watch. Thanks for the tip :-)

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Re: Rootkit?

2011-10-06 Thread Nilesh Govindarajan
On Thu 06 Oct 2011 09:06:06 PM IST, Alberto Luaces wrote:
> Nilesh Govindarajan writes:
>
>> One of the servers I manage has a strange problem.
>>
>> Every 24h, someone starts a process shows up as perl in the list, but
>> launching command is /usr/sbin/httpd.
>> It shows just one process, but when I run something like this:
>>
>> ps -C perl -o cmd,pid
>>
>> I get some 5-6 processes alternatively with cmd as /usr/sbin/httpd or
>> /usr/bin/perl.
>>
>> The even more interesting thing is, /usr/sbin/httpd does not exist.
>> I suspect a rootkit, but chkrootkit & rkhunter reported nothing.
>>
>> Also, I found a mysterious file: /tmp/ips.txt with following content:
>> xxx.xxx.xxx.xxx
>> 127.0.0.1
>> addr:xxx.xxx.xxx.xxx
>> addr:
>> addr:127.0.0.1
>> addr:
>>
>> Somebody is aware of a malware/rootkit which creates such files?
>
> I had some of that recently. The attacker used a instance of phpmyadmin
> to inject into its URL a wget command to download a perl script from
> another site. Look for `wget' into apache logs.
>

@all
Apache was never installed & I don't see any reason to install it 
because nginx satisfies my needs. I grepped for the string wget in all 
logs and php files, found some, but they were for libssh2 in wordpress 
code.
@Michael,
I thought of doing that, but before I discovered the file, I'd already 
killed the processes. Will check later when the process is relaunched 
sometime later.

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Rootkit?

2011-10-06 Thread Nilesh Govindarajan
One of the servers I manage has a strange problem.

Every 24h, someone starts a process shows up as perl in the list, but
launching command is /usr/sbin/httpd.
It shows just one process, but when I run something like this:

ps -C perl -o cmd,pid

I get some 5-6 processes alternatively with cmd as /usr/sbin/httpd or
/usr/bin/perl.

The even more interesting thing is, /usr/sbin/httpd does not exist.
I suspect a rootkit, but chkrootkit & rkhunter reported nothing.

Also, I found a mysterious file: /tmp/ips.txt with following content:
xxx.xxx.xxx.xxx
127.0.0.1
addr:xxx.xxx.xxx.xxx
addr:
addr:127.0.0.1
addr:

Somebody is aware of a malware/rootkit which creates such files?

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Android 2.2 USB tethering?

2011-10-05 Thread Nilesh Govindarajan
On Wed 05 Oct 2011 11:12:19 PM IST, David Abbott wrote:
> http://forums.gentoo.org/viewtopic-t-843255.html
> HTH,
> David
>

Followed that guide step by step.
But still not configured, kernel logs say "[134356.331426] usb 1-4: bad 
CDC descriptors"
Any clue about this? I guess the device is at fault?

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Android 2.2 USB tethering?

2011-10-05 Thread Nilesh Govindarajan
**I'm a desktop user, so please don't suggest me wifi tethering.

Which module am I supposed to enable in the kernel to get my android
tablet usb tethering to work?
It's an olivepad (vt100 tablet, see
http://www.olivetelecom.in/laptop/olivepad/features.html)

Also, please tell me some Gentoo-specific guides on this if you know
them. Can't find any good info on search.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Kernel source servers compromised?

2011-10-03 Thread Nilesh Govindarajan
On Tue 04 Oct 2011 11:11:22 AM IST, Mick wrote:
> Fair enough, but chkrootkit is not the most maintained package.  Last version 
> was released in July 2009.
>
> http://www.theregister.co.uk/2011/10/04/linux_repository_res/

This is a quite old news and since then Linus has moved the kernel to 
github

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Large fonts in printing!

2011-10-01 Thread Nilesh Govindarajan
I have a dot matrix printer. Since it prints ASCII text, I used lpr
output.txt
and it prints large size text. Large in the sense, the thing which fits
in one single page if printed using kwrite goes into 1.5 pages.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Strange GCC behavior

2011-09-29 Thread Nilesh Govindarajan
On Thu 29 Sep 2011 11:13:54 PM IST, Todd Goodman wrote:
> * Nilesh Govindarajan  [110929 13:33]:
>> Default function arguments in C are specified like this:
>>
>> int func(int a = 10) {} // just a dummy function
>
> No they're not.  C doesn't have default function arguments.
>
>>
>> Now I save that in a file called foo.c
>>
>> The above piece of code is valid in C as well as C++
>
> Uh, no it's not.
>
>>
>> Why is this happening? O_o
>
> Because it's not correct C.
>
> Todd

Gah! so that's the reason. I've been coding C++ and other languages 
with default arguments that I forgot C.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Strange GCC behavior

2011-09-29 Thread Nilesh Govindarajan
On Thu 29 Sep 2011 11:10:00 PM IST, Michael Mol wrote:
> On Thu, Sep 29, 2011 at 1:27 PM, Nilesh Govindarajan
>  wrote:
>> Default function arguments in C are specified like this:
>>
>> int func(int a = 10) {} // just a dummy function
>>
>> Now I save that in a file called foo.c
>>
>> The above piece of code is valid in C as well as C++
>>
>> Now see this:
>>
>> nilesh@Linux ~ $ cat /tmp/foo.c
>> int func(int a = 1) {}
>> nilesh@Linux ~ $ gcc /tmp/foo.c
>> /tmp/foo.c:1:16: error: expected ‘;’, ‘,’ or ‘)’ before ‘=’ token
>> nilesh@Linux ~ $ g++ /tmp/foo.c
>> /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/crt1.o: In
>> function `_start':
>> (.text+0x20): undefined reference to `main'
>> collect2: ld returned 1 exit status
>> nilesh@Linux ~ $ gcc -v
>> Using built-in specs.
>> COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3/gcc
>> COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/lto-wrapper
>> Target: x86_64-pc-linux-gnu
>> Configured with:
>> /media/500GB/gentoo_portage/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/configure
>> --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3
>> --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include
>> --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3
>> --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man
>> --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info
>> --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4
>> --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
>> --disable-fixed-point --without-ppl --without-cloog --disable-lto
>> --enable-nls --without-included-gettext --with-system-zlib
>> --disable-werror --enable-secureplt --enable-multilib
>> --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld
>> --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/python
>> --enable-checking=release --disable-libgcj
>> --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
>> --enable-__cxa_atexit --enable-clocale=gnu
>> --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.3-r1
>> p1.0, pie-0.4.5'
>> Thread model: posix
>> gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5)
>> nilesh@Linux ~ $ g++ -v
>> Using built-in specs.
>> COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3/g++
>> COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/lto-wrapper
>> Target: x86_64-pc-linux-gnu
>> Configured with:
>> /media/500GB/gentoo_portage/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/configure
>> --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3
>> --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include
>> --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3
>> --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man
>> --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info
>> --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4
>> --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
>> --disable-fixed-point --without-ppl --without-cloog --disable-lto
>> --enable-nls --without-included-gettext --with-system-zlib
>> --disable-werror --enable-secureplt --enable-multilib
>> --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld
>> --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/python
>> --enable-checking=release --disable-libgcj
>> --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
>> --enable-__cxa_atexit --enable-clocale=gnu
>> --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.3-r1
>> p1.0, pie-0.4.5'
>> Thread model: posix
>> gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5)
>>
>> Why is this happening? O_o
>
> First guess, you need an int main() function, or you need to tell gcc
> not to look for one.
>
>

Syntax error doesn't depend on existence of main. I just posted this as 
a snippet, I'd been working on one of my practical  programs and 
spotted this problem with a function I'd just made. And yeah, my 
program had main().

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Strange GCC behavior

2011-09-29 Thread Nilesh Govindarajan
Default function arguments in C are specified like this:

int func(int a = 10) {} // just a dummy function

Now I save that in a file called foo.c

The above piece of code is valid in C as well as C++

Now see this:

nilesh@Linux ~ $ cat /tmp/foo.c
int func(int a = 1) {}
nilesh@Linux ~ $ gcc /tmp/foo.c
/tmp/foo.c:1:16: error: expected ‘;’, ‘,’ or ‘)’ before ‘=’ token
nilesh@Linux ~ $ g++ /tmp/foo.c
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/crt1.o: In
function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
nilesh@Linux ~ $ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/media/500GB/gentoo_portage/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-fixed-point --without-ppl --without-cloog --disable-lto
--enable-nls --without-included-gettext --with-system-zlib
--disable-werror --enable-secureplt --enable-multilib
--enable-libmudflap --disable-libssp --enable-libgomp --enable-cld
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/python
--enable-checking=release --disable-libgcj
--enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.3-r1
p1.0, pie-0.4.5'
Thread model: posix
gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5)
nilesh@Linux ~ $ g++ -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/media/500GB/gentoo_portage/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-fixed-point --without-ppl --without-cloog --disable-lto
--enable-nls --without-included-gettext --with-system-zlib
--disable-werror --enable-secureplt --enable-multilib
--enable-libmudflap --disable-libssp --enable-libgomp --enable-cld
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/python
--enable-checking=release --disable-libgcj
--enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.3-r1
p1.0, pie-0.4.5'
Thread model: posix
gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5)

Why is this happening? O_o

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Migrating from single disk to software raid1

2011-09-29 Thread Nilesh Govindarajan
On Thu 29 Sep 2011 05:02:40 PM IST, Florian Philipp wrote:
> Am 29.09.2011 11:00, schrieb Adam Carter:
>> Sanity check please gurus :)
>> I've installed the new disks, partitioned them and created the md
>> devices, which are now syncing. The kernel already has all the modules
>> built in. I believe the next steps are;
>> 1 mkfs the md devices
>> 2 copy the partitions from the current disk to the mirror
>> 3 edit fstab on the mirror
>> 4 install mbr on both submirror disks
>> 5 halt the box
>> 6 set the bios boot order to the two sub mirrors
>> 7 boot from mirror
>>
>> Is that incorrect or incomplete? Do I need to be concerned about disk
>> devices being renamed when the original disk is removed?
>>
>
> Is /boot a partition on top of the md device? If it is, you should make
> sure to use the --metadata=0.90 when creating the md devices. If it is a
> separate md device, this should not be necessary.
>
> If you run into issues concerning the renaming, you can try to specify
> the md devices explicitly with the kernel parameter 'raid=noautodetect
> md=0,/dev/sda1,/dev/sdb1'
>
> Regards,
> Florian Philipp
>

A big thing I learnt while configuring raid on a new server (well, you 
can't see the kernel boot up messages, so one single misconfiguration 
and it's a nightmare!) with Gentoo.
What I did was, disabled kernel based automatic raid detection and 
didn't add an initrd with the required modules (md ones).
So, make sure that raid support and automatic detection and any other 
disk related modules are compiled right into the kernel. In fact, I 
prefer w/o any initrd, all critical stuff right into the kernel.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Motherboard support?

2011-09-29 Thread Nilesh Govindarajan
On 09/29/2011 08:18 AM, Dale wrote:
> Nilesh Govindarajan wrote:
>> On Thu 29 Sep 2011 06:42:42 AM IST, Nilesh Govindarajan wrote:
>>>
>>> That's debian HCL, what about Gentoo? We compile the kernel ourselves
>>> man.
>>> It would be better if we don't use debian/Ubuntu HCL to decide HW for
>>> other distros, they're most popular ones and have lot of support from
>>> hardware manufacturers, hence good support for hardware using
>>> propreitary drivers which is seldom present in other distros.
>>>
>> I just checked that HCL:
>> http://kmuto.jp/debian/hcl/Giga-byte/GA-880GM-USB3
>> It seems things are supported since linux-2.6.25, we're now using 3.0.4
>> and above. Should be OK right?
>>
> 
> As a general rule, hardware support is in the kernel.  It shouldn't
> matter much whether it is Gentoo, Redhat, Debian or any other distro. 
> It just matters that the kernel supports the hardware.  I would imagine
> that anything listed there as working is supported by Linux with a up to
> date kernel.  It all comes down to the kernel.  By the way, the kernel
> tested against is listed in the top right hand corner if I recall
> correctly.  You seem to have noticed that too.  If the mobo is a new
> design or new chipset, try to get at least that version of kernel.
>

I know that it is actually in the kernel, but some companies like Nvidia
package propreitary drivers only for Ubuntu/Debian, so it at times makes
sense to check it out in detail. I have had lot of fights over this
point on twitter with friends, in fact it resulted in myself getting
blocked (and unblocked later hehe).

> If it shows things are working for the mobo you are checking on, it
> should work fine.  I think the 880 chipset has been out a while so it
> should be really stable by now.  I seem to recall it was out when I
> bought my new setup but was still getting worked on for drivers.
> 
> By the way, it is always somewhat wise to buy things that have been out
> for a while.  If you are building a spare or something to play with,
> then newer stuff is fine.  I say this because some very new hardware may
> not have all the kinks worked out.  Unless you really really need the
> latest and greatest, pick a slightly older setup.  When I picked mine,
> it was about a year old.  That is usually plenty of time to let the
> drivers stabilize.  It can also save you some money too.
> 
> Now to be nosy, how many cores and how much ram you planning to put in
> this new rig?  I have a 4 core 3.2Ghz CPU with 16Gbs of ram.  Compared
> to my older AMD 2500+ with 2Gbs of ram, the new rig is super fast.  My
> old rig was named smoker because at the time it was built, it was
> smoking.  My new rig is named fireball.  I guess lightening will be
> next.  After that, someone will just have to bury me.  Not much is
> faster than lightening.  lol
> 
> Dale
> 
> :-)  :-)
> 
> P. S.  If you get your things selected and want someone to double check,
> I'd be glad too.  I posted mine on here to make sure I hadn't missed
> anything.  The mobo, CPU and ram are the most essential things that have
> to be right.  You have some wobble room on the rest.  Also, Gigabyte has
> a list of supported ram and CPUs on their website.  That comes in handy.
> 

Quad Core 3.2 Ghz with 16 GB of RAM that's big piece man. Well as I said
earlier, I'm thinking of that 1075T thing and may be 4-8 GB of RAM
(depends on cost, because I've to get myself a 22 or 24 inch LCD as
well), but since bulldozers are going to be launched on 12th October,
I'll prefer to wait, they have tons of new virtualization-related
features. Will save me from installing windows directly onto the machine
to play games (I usually don't, but after getting such a powerful
machine, may be) and troubling it for no reason with that piece of bullshit.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Motherboard support?

2011-09-28 Thread Nilesh Govindarajan
On Thu 29 Sep 2011 06:42:42 AM IST, Nilesh Govindarajan wrote:
> On 09/29/2011 04:46 AM, Dale wrote:
>> Nilesh Govindarajan wrote:
>>> I'll be soon getting a new desktop.
>>> I've fixed the CPU as AMD Phenom II 1075T
>>>
>>> These two motherboards came to my notice which support the above
>>> processor: Gigabyte 880GM - GA 880GM-USB3L&  880GM-USB3
>>>
>>> How good is Linux support with those? If bad, what other mobos support
>>> 1075T and Linux support is awesome?
>>>
>>
>> I used this site to get this:
>>
>> http://kmuto.jp/debian/hcl/Giga-byte/GA-880GM-USB3
>>
>> That's one of them and I think I saw another one from your list.  May I
>> make a suggestion tho.  It looks like those have a built in video
>> system, get a separate video card.  Of all the video issues I have ever
>> had on Linux, it has been built in video cards.  There are other good
>> reasons for this too, heat being one of them.
>>
>> As to Gigabyte as a brand, I have a 770 based mobo and it works great. 
>> It's worth every penny and then some.  I have also had good luck with
>> Abit several years ago.  I have installed on a MSI before too and it was
>> stable.
>>
>> If you want to research other mobos, start here:
>>
>> http://kmuto.jp/debian/hcl/
>>
>> There are two ways to do this.  If you have the mobo and can, paste the
>> output of lspci -n in the box.  If you are researching and don't have
>> the mobo yet, click on the links on the left to see if the one you are
>> looking for is in the list.  When researching a mobo, I find that site
>> invaluable to say the least.
>>
>> Hope that helps.
>>
>> Dale
>>
>> :-)  :-)
>>
>
> That's debian HCL, what about Gentoo? We compile the kernel ourselves man.
> It would be better if we don't use debian/Ubuntu HCL to decide HW for
> other distros, they're most popular ones and have lot of support from
> hardware manufacturers, hence good support for hardware using
> propreitary drivers which is seldom present in other distros.
>

I just checked that HCL: 
http://kmuto.jp/debian/hcl/Giga-byte/GA-880GM-USB3
It seems things are supported since linux-2.6.25, we're now using 3.0.4 
and above. Should be OK right?

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Motherboard support?

2011-09-28 Thread Nilesh Govindarajan
On 09/29/2011 04:46 AM, Dale wrote:
> Nilesh Govindarajan wrote:
>> I'll be soon getting a new desktop.
>> I've fixed the CPU as AMD Phenom II 1075T
>>
>> These two motherboards came to my notice which support the above
>> processor: Gigabyte 880GM - GA 880GM-USB3L&  880GM-USB3
>>
>> How good is Linux support with those? If bad, what other mobos support
>> 1075T and Linux support is awesome?
>>
> 
> I used this site to get this:
> 
> http://kmuto.jp/debian/hcl/Giga-byte/GA-880GM-USB3
> 
> That's one of them and I think I saw another one from your list.  May I
> make a suggestion tho.  It looks like those have a built in video
> system, get a separate video card.  Of all the video issues I have ever
> had on Linux, it has been built in video cards.  There are other good
> reasons for this too, heat being one of them.
> 
> As to Gigabyte as a brand, I have a 770 based mobo and it works great. 
> It's worth every penny and then some.  I have also had good luck with
> Abit several years ago.  I have installed on a MSI before too and it was
> stable.
> 
> If you want to research other mobos, start here:
> 
> http://kmuto.jp/debian/hcl/
> 
> There are two ways to do this.  If you have the mobo and can, paste the
> output of lspci -n in the box.  If you are researching and don't have
> the mobo yet, click on the links on the left to see if the one you are
> looking for is in the list.  When researching a mobo, I find that site
> invaluable to say the least.
> 
> Hope that helps.
> 
> Dale
> 
> :-)  :-)
> 

That's debian HCL, what about Gentoo? We compile the kernel ourselves man.
It would be better if we don't use debian/Ubuntu HCL to decide HW for
other distros, they're most popular ones and have lot of support from
hardware manufacturers, hence good support for hardware using
propreitary drivers which is seldom present in other distros.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Re: Motherboard support?

2011-09-28 Thread Nilesh Govindarajan
On 09/29/2011 03:21 AM, masterprometheus wrote:
> Nilesh Govindarajan wrote:
> 
>> I'll be soon getting a new desktop.
>> I've fixed the CPU as AMD Phenom II 1075T
>>
>> These two motherboards came to my notice which support the above
>> processor: Gigabyte 880GM - GA 880GM-USB3L & 880GM-USB3
>  
>  
>> How good is Linux support with those? If bad, what other mobos support
>> 1075T and Linux support is awesome?
> 
> Neither 880G nor SB710 is a new chipset, so they should work out of the 
> box. But you may want to wait. Bulldozers will be out at October 12, and 
> their prices won't very different than Phenom II's. And FX-8120, expected 
> to be priced around $200 will be an 8-core, faster and better 
> overclocker.
> 
> 
> 
> 

Bulldozers coming out in October 12, I'll better wait then. It has much
better virt support.

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Motherboard support?

2011-09-28 Thread Nilesh Govindarajan
I'll be soon getting a new desktop.
I've fixed the CPU as AMD Phenom II 1075T

These two motherboards came to my notice which support the above
processor: Gigabyte 880GM - GA 880GM-USB3L & 880GM-USB3

How good is Linux support with those? If bad, what other mobos support
1075T and Linux support is awesome?

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] [OT] Should I be worried that I won't be able to dual boot in Gentoo?

2011-09-26 Thread Nilesh Govindarajan
On Mon 26 Sep 2011 08:51:17 PM IST, James Broadhead wrote:
> On 26 September 2011 16:01, Mick  wrote:
>> I don't know if you have seen this.  Given that we're moving into UEFI
>> boot what are the workarounds to compensate for Microsoft's efforts to
>> exclude other operating systems from available hardware?
>
> My opinion is that signed boot is probably on its way (despite not
> actually offering much in the way of security, as the Apple Battery
> hack has shown), and so we'll enter an era where you have the option
> between a fully-signed system (Windows 9 / OS XI or so) or a cracked
> boot, with little in the way of switching between the two, at least
> initially
>
> I know which one I'd pick if it came down to it :)

And you really need not worry about it, some geek (Torvalds?) will 
surely find out a way.

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] FreeType unpatented auto-hinter?

2011-09-26 Thread Nilesh Govindarajan
Somebody on twitter told me that Ubuntu uses a special patch for
freetype that improves font rendering manifolds.

So I rebuilt freetype with these useflags: +auto-hinter +bindist

What is the difference between this unpatented auto hinter and the
TrueType BC interpreter?

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] [OT] Should I be worried that I won't be able to dual boot in Gentoo?

2011-09-26 Thread Nilesh Govindarajan
On Mon 26 Sep 2011 08:31:10 PM IST, Mick wrote:
> I don't know if you have seen this.  Given that we're moving into UEFI
> boot what are the workarounds to compensate for Microsoft's efforts to
> exclude other operating systems from available hardware?
>
> http://www.theregister.co.uk/2011/09/26/uefi_linux_lock_out_row_latest/
>

That feature is optional, see official word from MS: 
https://blogs.msdn.com/b/b8/archive/2011/09/22/protecting-the-pre-os-environment-with-uefi.aspx
Microsoft has at least done something good for the Linux community :D

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Unity on Gentoo?

2011-09-24 Thread Nilesh Govindarajan
On Sat 24 Sep 2011 11:15:43 PM IST, JD Horelick wrote:
> On 24 September 2011 12:33, James Broadhead  wrote:
>> On 24 September 2011 06:53, Nilesh Govindarajan  wrote:
>>> Unity is kinda famous, want to try it on Gentoo. Can't find a package in
>>> `eix -sS unity', I'm missing something?
>>
>> What you're missing is the experience of having used it. (Or having
>> *tried* to use it).
>>
>> Once you have, you will see why no one is enthusiastic enough to write
>> an ebuild and support it in gentoo (or an overlay).
>>
>> I'm just glad that Ubuntu still ships with vanilla Gnome (or "Ubuntu
>> Classic") by default -- I maintain a few Ubuntu systems for members of
>> my family.
>>
>>
>> J
>>
>>

It's stunning to know that something that's shipped by default with 
Ubuntu sucks so much? Canonical surely must have gone haywire.

>
>
>
> Just my opinion here, but i've used both Unity and gnome-shell and a
> *MUCH* prefer Unity (IMO, I could live with Unity if GNOME2 ever went
> away, i know i couldn't live with gnome-shell). It seems to have a
> more well thought-out interface, it's getting massive improvements and
> it's really sane and non-obtrusive (compared to gnome-shell, I still
> prefer a "traditional desktop experience").
>

I don't like gnome-shell either, tried it on Fedora Live.

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Unity on Gentoo?

2011-09-23 Thread Nilesh Govindarajan
Okay the thing is, I don't like Ubuntu. So I don't want to install it on
my system.

Unity is kinda famous, want to try it on Gentoo. Can't find a package in
`eix -sS unity', I'm missing something?

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] mplayer(2) ???

2011-09-20 Thread Nilesh Govindarajan
On Tue 20 Sep 2011 08:41:13 PM IST, James wrote:
> Howdy,
>
> I have not kept up with the mplayer developments.
>
> Now I see:   media-video/mplayer2
> and media-video/mplayer
>  Available versions:  1.0_rc4_p20101114 
>
>
> Any quick education on mplayer 2 would be appreciated.
>
>
> James
>
>

http://www.mplayer2.org/comparison.html

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] shockwave on Gentoo ?

2011-09-16 Thread Nilesh Govindarajan
On Fri 16 Sep 2011 07:25:20 PM IST, James wrote:
> hello,
>
> I've tried several browsers: seamonkey,
> firefox and chromium but none work 
> with a online chemistry (shockwave)
> application. Maybe I have it missconfiguried
> on the gentoo system
> The website wants to install "Adobe Shockwave
> Player"
>
> On the gentoo system, this version is installed:
>
> www-plugins/adobe-flash-11.0.1.129_rc201109061
>
>
> On seamonkey About:Plugin shows:
>
> Shockwave Flash
>
> File: libflashplayer.so
> Version: 
> Shockwave Flash 11.0 r1
>
> MIME Type Description Suffixes
> application/x-shockwave-flash Shockwave Flash swf
> application/futuresplash  FutureSplash Player spl
>
>
> Any guidance is appreciated.
>
> James
>
>

Shockwave is not supported in Linux IMHO

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] New gentoo installation fails when trying to install syslog-ng

2011-09-14 Thread Nilesh Govindarajan
On Wed 14 Sep 2011 08:31:56 PM IST, Trifu Catalin Florin wrote:
> Hi everyone!
>
> I have a big problem trying to install Gentoo. I have completed all
> the steps from the manual, as I have did it so many times, and I'm
> stuck trying to install syslog-ng. The machine is very old, it has an
> Athlon processor and 256MB of RAM, but it worked fine with gentoo. The
> error can be seen bellow:
>
> Making all in emacs
> make[3]: Entering directory
> `/var/tmp/portage/sys-devel/autoconf-2.68/work/autoconf-2.68/lib/emacs'
> WARNING: Warnings can be ignored. :-)
> touch: setting times of `elc-temp': No such file or directory
> make[3]: *** [elc-stamp] Error 1
> make[3]: Leaving directory
> `/var/tmp/portage/sys-devel/autoconf-2.68/work/autoconf-2.68/lib/emacs'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/var/tmp/portage/sys-devel/autoconf-2.68/work/autoconf-2.68/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/var/tmp/portage/sys-devel/autoconf-2.68/work/autoconf-2.68'
> make: *** [all] Error 2
> emake failed
>  * ERROR: sys-devel/autoconf-2.68 failed (compile phase):
>  *   emake failed
>  *
>  * Call stack:
>  * ebuild.sh, line  56:  Called src_compile
>  *   environment, line 147:  Called _eapi2_src_compile
>  * ebuild.sh, line 669:  Called die
>  * The specific snippet of code:
>  *  emake || die "emake failed"
>  *
>  * If you need support, post the output of 'emerge --info
> =sys-devel/autoconf-2.68',
>  * the complete build log and the output of 'emerge -pqv
> =sys-devel/autoconf-2.68'.
>  * The complete build log is located at
> '/var/tmp/portage/sys-devel/autoconf-2.68/temp/build.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/sys-devel/autoconf-2.68/temp/environment'.
>  * S: '/var/tmp/portage/sys-devel/autoconf-2.68/work/autoconf-2.68'
>
> >>> Failed to emerge sys-devel/autoconf-2.68, Log file:
>
> >>>  '/var/tmp/portage/sys-devel/autoconf-2.68/temp/build.log'
>
>  * Messages for package sys-devel/autoconf-2.68:
>
>  * ERROR: sys-devel/autoconf-2.68 failed (compile phase):
>  *   emake failed
>  *
>  * Call stack:
>  * ebuild.sh, line  56:  Called src_compile
>  *   environment, line 147:  Called _eapi2_src_compile
>  * ebuild.sh, line 669:  Called die
>  * The specific snippet of code:
>  *  emake || die "emake failed"
>  *
>  * If you need support, post the output of 'emerge --info
> =sys-devel/autoconf-2.68',
>  * the complete build log and the output of 'emerge -pqv
> =sys-devel/autoconf-2.68'.
>  * The complete build log is located at
> '/var/tmp/portage/sys-devel/autoconf-2.68/temp/build.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/sys-devel/autoconf-2.68/temp/environment'.
>  * S: '/var/tmp/portage/sys-devel/autoconf-2.68/work/autoconf-2.68'
>
>  * GNU info directory index is up-to-date.
>
>  * IMPORTANT: 2 news items need reading for repository 'gentoo'.
>  * Use eselect news to read news items.
>
>
>
> The same error I get for vixie-cron.
>
> Some other things worth mentioning:
> - portage didn't request for an update
> - mirrorselect -i -o faild with error: cannot download a list of
> mirrors or something similar.
>
> I will really appreciate your help as my "server" is down for two days
> now.
>
> Thank you!
>
> Best regards!

It would be more helpful if you could post the details emerge asks you 
to, before terminating.
 
-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] evince - Missing EndProlog!

2011-09-14 Thread Nilesh Govindarajan
On Tue 13 Sep 2011 11:44:02 PM IST, Joseph wrote:
> When I try to print with "evince" I get:
> Missing %%EndProlog!
> and the printer is not printing.
> Anybody know what is it?
>

It's something do with postscript and stuff. I searched on Google about 
it, but couldn't find anything useful.
Try rebuilding evince, cups and their dependencies. Check for some 
useflags you might have missed.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] RootFS not umounting at shutdown?

2011-09-12 Thread Nilesh Govindarajan
On Mon 12 Sep 2011 08:07:27 AM IST, Dale wrote:
> Nilesh Govindarajan wrote:
>> On Mon 12 Sep 2011 07:32:25 AM IST, Dale wrote:
>>> Nilesh Govindarajan wrote:
>>>> Ever since I have updated my system on 20th September, my rootfs
>>>> (/dev/sda2) isn't umounted (remounted ro) on shutdown, due to which I
>>>> see recover messages by kernel at boot (before init starts up).
>>>>
>>>> What's going wrong? I added the rc-service named root to the sysinit
>>>> runlevel, but it seems nothing happened.
>>>>
>>> https://bugs.gentoo.org/show_bug.cgi?id=381783
>>>
>>> There you go.  Look at the bottom posts and you can see what version
>>> has the fix.
>>>
>>> Dale
>>>
>>> :-)  :-)
>> There it goes. Thanks for the link. Updated to openrc 0.9.3-r1, let's
>> see if it does the job or not. :-)
>>
>
> If not, let them know on the bug too.
>
> Dale
>
> :-)  :-)

Update- It works. :-)

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] RootFS not umounting at shutdown?

2011-09-11 Thread Nilesh Govindarajan
On Mon 12 Sep 2011 07:32:25 AM IST, Dale wrote:
> Nilesh Govindarajan wrote:
>> Ever since I have updated my system on 20th September, my rootfs
>> (/dev/sda2) isn't umounted (remounted ro) on shutdown, due to which I
>> see recover messages by kernel at boot (before init starts up).
>>
>> What's going wrong? I added the rc-service named root to the sysinit
>> runlevel, but it seems nothing happened.
>>
> https://bugs.gentoo.org/show_bug.cgi?id=381783
>
> There you go.  Look at the bottom posts and you can see what version
> has the fix.
>
> Dale
>
> :-)  :-)

There it goes. Thanks for the link. Updated to openrc 0.9.3-r1, let's 
see if it does the job or not. :-)

-- 
-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] RootFS not umounting at shutdown?

2011-09-11 Thread Nilesh Govindarajan
Ever since I have updated my system on 20th September, my rootfs
(/dev/sda2) isn't umounted (remounted ro) on shutdown, due to which I
see recover messages by kernel at boot (before init starts up).

What's going wrong? I added the rc-service named root to the sysinit
runlevel, but it seems nothing happened.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Cheapest dedicated gentoo servers?

2011-09-02 Thread Nilesh Govindarajan
On 09/03/2011 04:26 AM, Adam Carter wrote:
>> I'm looking for dedicated server providers whose rates are low, support
>> Gentoo and most importantly are reliable. Service should be stable.
>> Location is not important, but preferable in EU.
> 
> Amazon EC2 does Gentoo... Big name may help you sell to management.
> 

@everyone,
I already know about a VPS provider, with reliability, and Gentoo
support. Been with them since 2008. cheapvps.co.uk, if you're
interested. They have xen, kvm & openvz (us-only).

For dedicated I know just one for now- hetzner.de, who allows you to
install your own os (you're provided with a rescue system).

If you know any more dedicated providers, please reply. I'll compare
their rates :)
Definition of cheap is fairly relative :)

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Cheapest dedicated gentoo servers?

2011-09-02 Thread Nilesh Govindarajan
Hi,

I'm looking for dedicated server providers whose rates are low, support
Gentoo and most importantly are reliable. Service should be stable.
Location is not important, but preferable in EU.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] compressed filesystem

2011-08-31 Thread Nilesh Govindarajan
On 08/31/2011 09:51 PM, Nilesh Govindarajan wrote:
> On 08/31/2011 09:20 PM, Space Cake wrote:
>> Hi,
>>
>> Is there any way to create some kind of "on the fly" compressed
>> filesystem for backup purposes? My files are getting bigger and bigger
>> but my external drive stays the same :)
> 
> Btrfs supports on the fly compression
> 

Another option is, you can use the squashfs trick, described here-
http://forums.gentoo.org/viewtopic-t-646289-start-25.html

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] compressed filesystem

2011-08-31 Thread Nilesh Govindarajan
On 08/31/2011 09:20 PM, Space Cake wrote:
> Hi,
> 
> Is there any way to create some kind of "on the fly" compressed
> filesystem for backup purposes? My files are getting bigger and bigger
> but my external drive stays the same :)

Btrfs supports on the fly compression

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] [Gentoo install] Disk full at 35%?

2011-08-20 Thread Nilesh Govindarajan
On 08/21/2011 09:00 AM, Hilco Wijbenga wrote:
> Yes, df -i says /portage is out of inodes. I've never run into that
> before. I reran mke2fs to increase the inode count and that fixed
> things.
> 

Sorry for the drop in, but I never knew that mke2fs can increase the
number of inodes!
I think I'll now place the portage tree on an ext2 disk image to speed
up things, / has got fragmented badly due to portage tree :-\
Thanks man!

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Mercurial Server

2011-08-20 Thread Nilesh Govindarajan
On 08/21/2011 03:43 AM, Matthew Finkel wrote:
> On Sat, Aug 20, 2011 at 1:51 PM, Nilesh Govindarajan
> wrote:
> 
>> Hi,
>>
>> I managed to configure mercurial-server on my gentoo vps, and add my
>> public key for the root user to it.
>>
>> I can ssh to hg@myvps.
>>
> I started to write some questions for you to answer, but then I decided I'd
> see if anyone else was having this issue [0]. Maybe that'll help. It looks
> like a bug that should be filed.
> 
> [0]
> http://stackoverflow.com/questions/6730735/troubles-with-mercurial-1-9-and-ssh
> 

Well, that page contains the answer as well. Thanks :-)
It's a dispatch API change.

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] Mercurial Server

2011-08-20 Thread Nilesh Govindarajan
Hi,

I managed to configure mercurial-server on my gentoo vps, and add my
public key for the root user to it.

I can ssh to hg@myvps.

But this is what I get when I run hg clone ssh://hg@myvps/hgadmin:

running ssh hg@myvps "hg -R hgadmin serve --stdio"
remote: Traceback (most recent call last):
remote:   File "/usr/share/mercurial-server/hg-ssh", line 76, in 
remote: dispatch.dispatch(['-R', repo, 'serve', '--stdio'])
remote:   File
"/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 31, in
dispatch
remote: if req.ferr:
remote: AttributeError: 'list' object has no attribute 'ferr'
abort: no suitable response from remote hg!

Any clues?

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] who needs Java ?

2011-08-15 Thread Nilesh Govindarajan
On 08/15/2011 04:47 PM, Philip Webb wrote:
> I looked at updating to the latest Libreoffice 3.4.2.3
> & found it wants to install a long list of deps,
> many of which seem to be caused by my 'java' USE flag.
> As a result, I checked my home-made list of installed pkgs
> to see which were part of Java & why they seemed to be needed.
> Not a few proved to be unnecessary today,
> but the rest depend on  4  underlying pkgs,
> ie Libreoffice Cups Libidn (for KDE 3 , which I want) Db (for Libreoffice).
> 
> If I remove 'java' from  make.conf ,
> which features will I lose in LO Cups KDE3 ?
> Is there anything else I've overlooked ?
> 

You'll lose the ability to run java applets, commonly found on the web
for many critical things.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] TVSE MSP 240 Classic Dot Matrix Printer

2011-08-14 Thread Nilesh Govindarajan
On 08/14/2011 08:17 PM, Michael Mol wrote:
> It strained my Google-fu via two different search engines. Yeah, it's
> not exactly a prominent site. (One thing you may want to consider,
> here...how long will that OEM be around to provide replacement parts?
> I'm going to venture a guess it's a relatively new company.)
> 
>> I've already sent a mail to the eBay dealer about this, now I'll mail
>> the OEM as well. Today here being a Sunday, nobody would be attending
>> the calls and tomorrow is a public holiday as well.
> 
> Good luck!
> 

It's a quite old & reputed company. The problem with most firms here in
India is, they don't focus much on their websites which leads to a bad
impression to online users.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] TVSE MSP 240 Classic Dot Matrix Printer

2011-08-14 Thread Nilesh Govindarajan
On 08/14/2011 06:17 PM, Michael Mol wrote:
> 
> Don't know. Don't have one.
> 
> However, the manufacturer appears to still be in business, and that
> looks like it's a current product. Perhaps you could ask them? Their
> website isn't in the greatest of shape, but they do list a telephone
> number.
> 
> http://www.tvs-e.in/branch-details.aspx
> 
> 

Whoa, I didn't find that, even after many searches on Google. Anyways
thanks for that.
I've already sent a mail to the eBay dealer about this, now I'll mail
the OEM as well. Today here being a Sunday, nobody would be attending
the calls and tomorrow is a public holiday as well.

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] TVSE MSP 240 Classic Dot Matrix Printer

2011-08-12 Thread Nilesh Govindarajan
Hi,

I'm using Gentoo, and I'm thinking of buying this printer:
http://cgi.ebay.in/ws/eBayISAPI.dll?ViewItem&item=370533563484

The printer specification says that it can emulate Epson ESC/P and IBM
Proprinter command sets.

I saw CUPS documentation and it is written that printers supporting
Epson ESC/P command set are supported on Linux.
http://www.cups.org/doc-1.1/sam.html#EPSON9

I'd like to know if anybody is using this printer here on this list or,
does it require some hardware switch changes, etc (like jumper settings)
to make the printer comply to particular command set? I'm buying a dot
matrix printer for the first time, please help. It's urgent.

-- 
Nilesh Govindarajan
http://nileshgr.com



[gentoo-user] GCC 4.5.2 won't merge

2011-04-16 Thread Nilesh Govindarajan
I got a new gentoo VPS. Everything installed fine, and also upgraded,
except gcc.
The gcc I have on the server is 4.4.5 which I'm trying to upgrade to 4.5.2

I get the error: Unable to determine suffix for object files.

Here are the relevant pastes:

emerge info: http://dpaste.com/532699/plain/
build log: http://paste.pocoo.org/raw/372839/
build environment: http://pastebin.ca/2047174

-- 
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Identi.ca: http://identi.ca/nileshgr
Website: http://nileshgr.com & http://itech7.com