Re: [gentoo-user] Portage 2.2.1 stabilized?

2013-09-10 Thread Peter Humphrey
On Monday 09 Sep 2013 09:44:01 Tanstaafl wrote:
 Wow... just noticed an update is available which, for me, means it has
 been stabilized (at least on amd64)...

---8

 Now to wait a few days to see if there is any breakage to report (not
 worried about it really, though, since it has actually gotten a ton of
 testing over the last year or two)...

...and the first time I use it it falls over! Portage was the only thing 
updated yesterday, so nothing else changed at the same time.

# emerge --sync
 Synchronization of repository 'gentoo' located in '/usr/portage'...
 Starting rsync with rsync://192.168.2.2/gentoo-portage...
 Checking server timestamp ...
receiving incremental file list
rsync: mkstemp /var/tmp/.tmp8KJSYc.AHSsPH failed: Permission denied (13)

I checked it wasn't anything I'd set in make.conf by stripping out everything 
but the original few lines from system installation, so I'm sure I hadn't set 
any odd paths.

So for the moment I've masked out =sys-apps/portage-2.2.1 and reverted to 
2.1.12.2. Now I'm getting some odd USE flag conflicts, which I suppose won't be 
related; I'll work on sorting that out.

I also tried syncing a 32-bit chroot Gentoo system and that worked fine. That 
system has always had:

# grep portage /etc/portage/package.keywords
sys-apps/portage-  **

Trust someone to find a problem!  :-(

Is it working for you, Dale?  :-)

-- 
Regards,
Peter




Re: [gentoo-user] FlashPlayer crashes in FireFox

2013-09-10 Thread Daniel Troeder
Am 09.09.2013 11:45, schrieb Dan Johansson:
 As of lately (I can not really remember since when) FlashPlayer has
 stopped working in FireFox.
 
 I'm running an stable AMD64 system with FireFox
 (www-client/firefox-17.0.8), FlasPlayer
 (www-plugins/adobe-flash-11.2.202.297) and NS-Plugin-Wraper
 (www-plugins/nspluginwrapper-1.4.4-r3).
 
 If I emerge the 64bit FlasPlayer I get the following errormessage when
 trying to wiev a video on YouTube The Adobe Flash plugin has crashed
 and I get the following in the .xsession-errors:
 
 plugin-container: htab.c:83: vlGetDataHTAB: Assertion `handle' failed.
 WARNING: pipe error (51): Connection reset by peer: file
 /var/tmp/notmpfs/portage/www-client/firefox-17.0.8/work/mozilla-esr17/ipc/chromium/src/chrome/common/ipc_channel_posix.cc,
 line 421
 
 
 If I on the other hand emerge the 32bit version + nspluginwraper nothing
 happens in FF (the video-pane just stays black) and I get the
 following messages in .xsession-errors:
 
 npviewer.bin: htab.c:83: vlGetDataHTAB: Assertion `handle' failed.
 *** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Broken pipe
 *** NSPlugin Wrapper ***
 WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2705):invoke_NPP_Write:
 assertion failed: (rpc_method_invoke_possible(plugin-connection))
 *** NSPlugin Wrapper ***
 WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2478):invoke_NPP_NewStream:
 assertion failed: (rpc_method_invoke_possible(plugin-connection))
 *** NSPlugin Wrapper ***
 WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2550):invoke_NPP_DestroyStream:
 assertion failed: (rpc_method_invoke_possible(plugin-connection))
 *** NSPlugin Wrapper ***
 WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2434):invoke_NPP_URLNotify:
 assertion failed: (rpc_method_invoke_possible(plugin-connection))
 *** NSPlugin Wrapper ***
 WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2434):invoke_NPP_URLNotify:
 assertion failed: (rpc_method_invoke_possible(plugin-connection))
 *** NSPlugin Wrapper ***
 WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2550):invoke_NPP_DestroyStream:
 assertion failed: (rpc_method_invoke_possible(plugin-connection))
 *** NSPlugin Wrapper ***
 WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2434):invoke_NPP_URLNotify:
 assertion failed: (rpc_method_invoke_possible(plugin-connection))
 *** NSPlugin Wrapper ***
 WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2478):invoke_NPP_NewStream:
 assertion failed: (rpc_method_invoke_possible(plugin-connection))
 *** NSPlugin Wrapper ***
 WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2434):invoke_NPP_URLNotify:
 assertion failed: (rpc_method_invoke_possible(plugin-connection))
 Send additional request to http://www.youtube.com/watch?v=mRbnLYHzsfI
 
 *** NSPlugin Wrapper ***
 WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2219):invoke_NPP_SetWindow:
 assertion failed: (rpc_method_invoke_possible(plugin-connection))
 *** NSPlugin Wrapper *** ERROR: NPObject proxy 0x7f33d3c27de0 is no
 longer valid!
 *** NSPlugin Wrapper *** ERROR: NPObject proxy 0x7f33d3c27de0 is no
 longer valid!
 *** NSPlugin Wrapper *** ERROR: NPObject proxy 0x7f33d3c27de0 is no
 longer valid!
 
 (The last line just keeps repeating)
 
 Any suggestions what my problem could be and how to solve it?
 
 Regards,
 
Adobe doesn't support the plugin API that FF uses anymore. Flash video
is almost certain to crash for most users. Chrome uses (created?) the
pepper API that Adobe supports, ships a recent Flash version and
videos work there. I didn't test it, but there is
www-plugins/chrome-binary-plugins for Chromium that should deliver the same.



Re: [gentoo-user] Portage 2.2.1 stabilized?

2013-09-10 Thread Markos Chandras
On 10 September 2013 10:13, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
 On Monday 09 Sep 2013 09:44:01 Tanstaafl wrote:
 Wow... just noticed an update is available which, for me, means it has
 been stabilized (at least on amd64)...

 ---8

 Now to wait a few days to see if there is any breakage to report (not
 worried about it really, though, since it has actually gotten a ton of
 testing over the last year or two)...

 ...and the first time I use it it falls over! Portage was the only thing
 updated yesterday, so nothing else changed at the same time.

 # emerge --sync
 Synchronization of repository 'gentoo' located in '/usr/portage'...
 Starting rsync with rsync://192.168.2.2/gentoo-portage...
 Checking server timestamp ...
 receiving incremental file list
 rsync: mkstemp /var/tmp/.tmp8KJSYc.AHSsPH failed: Permission denied (13)

Maybe this

http://bugs.gentoo.org/477682

-- 
Regards,
Markos Chandras - Gentoo Linux Developer
http://dev.gentoo.org/~hwoarang



Re: [gentoo-user] Portage 2.2.1 stabilized?

2013-09-10 Thread Dale
Peter Humphrey wrote:
 Is it working for you, Dale? :-) 

[IP-] [  ] sys-apps/portage-2.2.1:0 

Sun Aug 25 05:27:12 2013  sys-apps/portage-2.2.1

So far, so good.  I been using unstable, except for the  version,
for quite a while.  Are you saying something is broke and it works for
me??  O_O  Seriously??  This is a joke right??

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] Portage 2.2.1 stabilized?

2013-09-10 Thread Peter Humphrey
On Tuesday 10 Sep 2013 07:18:11 Dale wrote:
 Peter Humphrey wrote:
  Is it working for you, Dale? :-)
 So far, so good.  I been using unstable, except for the  version,
 for quite a while.  Are you saying something is broke and it works for
 me??  O_O  Seriously??  This is a joke right??

No joke, I assure you. As Markos pointed out, a bug has already been opened, 
and I fell over it with a vanilla make.conf.

Unless someone knows of a work-around, I'll stick with the old version of 
portage until the bug-fix reaches the stable system.

-- 
Regards,
Peter




[gentoo-user] bios+gpt+grub2 boot windows

2013-09-10 Thread 东方巽雷
I format my hard disk to gpt.Then create a 1M partition at the header of
hard disk ,add bios_grub flag.I can install and boot gentoo,debain and
archlinux,but have no idea how to boot windows7 and 8.When I boot win7 or
win8 from usb,it always complain the gpt partition and cannot install.What
should I do?


Re: [gentoo-user] bios+gpt+grub2 boot windows

2013-09-10 Thread Wang Xuerui
2013/9/10 东方巽雷 dongfangxun...@gmail.com:
 I format my hard disk to gpt.Then create a 1M partition at the header of
 hard disk ,add bios_grub flag.I can install and boot gentoo,debain and
 archlinux,but have no idea how to boot windows7 and 8.When I boot win7 or
 win8 from usb,it always complain the gpt partition and cannot install.What
 should I do?

It's impossible to install Windows into a GPT partition if the
firmware isn't EFI. This is a limitation artificially set by
Microsoft; here's Microsoft's FAQ on this.
http://msdn.microsoft.com/en-us/library/windows/hardware/gg463525.aspx

In this case, you must either revert to an msdos partition table (can
be done w/o data loss IIRC), or trick Windows into believing it's
running on EFI, i.e. set up UEFI DUET. Google that and you'll find an
excellent HOWTO on this. Happy hacking~



Re: [gentoo-user] Portage 2.2.1 stabilized?

2013-09-10 Thread Peter Humphrey
On Tuesday 10 Sep 2013 16:48:24 Hinnerk van Bruinehsen wrote:

 Try [adding] -userpriv to your FEATURES (as in FEATURES=-userpriv) in
 make.conf

Nope. Didn't help.

I see mention of usersync in the bug conversation, but I don't know what 
that means.

I'll just wait for the fixed version, I think.

-- 
Regards,
Peter




Re: [gentoo-user] why does revdep-rebuild object to mounting /var on /mnt/var ?

2013-09-10 Thread gottlieb
On Mon, Sep 09 2013, Alan McKinnon wrote:

 On 10/09/2013 00:26, gottl...@nyu.edu wrote:
 On Mon, Sep 09 2013, Canek Peláez Valdés wrote:
 
 On Mon, Sep 9, 2013 at 1:51 PM,  gottl...@nyu.edu wrote:
 In fstab I have
   /dev/vg/var  /mnt/var  ext4  defaults  0 2
 I also have
   lrwxrwxrwx 1 root root 7 Aug 31 16:13 /var - mnt/var

 This has worked ok but revdep-rebuild is not happy

 I think it's the symlink the thing that is making revdep-rebuild
 unhappy. Have you tried to bind mount /mnt/var into /var?

 mount -o bind /mnt/var /var
 
 Works great.  Thanks.  To make it permanent I put
 /mnt/var /var  ext4 bind   0 0
 right under
 /dev/vg/var  /mnt/var  ext4 defaults   0 2
 in /etc/fstab

 I'm curious as to why you do that, I can't see any benefit at all.

 The var filesystem is an LV and is only useful if it is mounted at
 /var where packages expect it to be. Why add the extra complexity  of
 mounting it somewhere else and then bind mounting it to the pnly place
 it can be useful?

An old habit/belief that mounts go in /mnt.  Since both revdep-rebuild
and you believe this is a bad habit, I now mount directly on /var /opt.

 There's rules of thumb about this that will always work:

 No object in /tmp can be expected to survive successive invocations of
 the program that created the object, and never survive a reboot;
 No object in /var/tmp can be expected to survive a reboot

 The best place for temp files, ironically, is ~

I set tmpwatch and wipe_tmp so that files survive in /tmp and /var/tmp
for a month.

I don't like ~ for temp files since on some, admittedly rare, occasions
I actually use the gnome gui file manager and don't want a huge ~.  I
have long ago created ~/tmp (also cleaned after a month by tmpwatch) so
the only problem is breaking the habit of placing short-term files in
/tmp instead of ~/tmp.

I realize that habit is bad for my (system's) health, but still find it
hard to break.  I shall try again. Perhaps this is very mild form of
what intelligent smokers feel :-).

allan



Re: [gentoo-user] spoof mac address

2013-09-10 Thread joost
I don't have access to a Gentoo box atm. But there is an option in 
/etc/conf.d/net for this.
Check the net.example file.

--
Joost

Joseph syscon...@gmail.com wrote:
Does anybody know how to spoof mac address on Gentoo?

I want to connect a machine directly to the modem but if I do so my
static IP will change; so to retain static IP I want to spoof mac
address on one of my machine to 
the same MAC as on my router.

-- 
Joseph

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Re: [gentoo-user] spoof mac address

2013-09-10 Thread Canek Peláez Valdés
On Tue, Sep 10, 2013 at 12:47 PM, Joseph syscon...@gmail.com wrote:
 Does anybody know how to spoof mac address on Gentoo?

 I want to connect a machine directly to the modem but if I do so my static
 IP will change; so to retain static IP I want to spoof mac address on one of
 my machine to the same MAC as on my router.

emerge -v net-analyzer/macchanger
macchanger --mac=00:11:22:33:44:55 device

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Portage 2.2.1 stabilized?

2013-09-10 Thread Hinnerk van Bruinehsen
On Tue, Sep 10, 2013 at 03:13:50PM +0100, Peter Humphrey wrote:
 On Tuesday 10 Sep 2013 07:18:11 Dale wrote:
  Peter Humphrey wrote:
   Is it working for you, Dale? :-)
  So far, so good.  I been using unstable, except for the  version,
  for quite a while.  Are you saying something is broke and it works for
  me??  O_O  Seriously??  This is a joke right??
 
 No joke, I assure you. As Markos pointed out, a bug has already been opened, 
 and I fell over it with a vanilla make.conf.
 
 Unless someone knows of a work-around, I'll stick with the old version of 
 portage until the bug-fix reaches the stable system.
 
Try to add -userpriv to your FEATURES (as in FEATURES=-userpriv) in make.conf

WKR
Hinnerk


signature.asc
Description: Digital signature


Re: [gentoo-user] spoof mac address

2013-09-10 Thread Albert

Al 10/09/2013 19:47, En/na Joseph ha escrit:

Does anybody know how to spoof mac address on Gentoo?

I want to connect a machine directly to the modem but if I do so my 
static IP will change; so to retain static IP I want to spoof mac 
address on one of my machine to the same MAC as on my router.



ifconfig yournetdevice hw ether 00:00:de:ad:be:ef



Re: [gentoo-user] Portage 2.2.1 stabilized?

2013-09-10 Thread David W Noon
On Tue, 10 Sep 2013 16:28:55 +0100, Peter Humphrey wrote about Re:
[gentoo-user] Portage 2.2.1 stabilized?:

 On Tuesday 10 Sep 2013 16:48:24 Hinnerk van Bruinehsen wrote:
 
  Try [adding] -userpriv to your FEATURES (as in
  FEATURES=-userpriv) in make.conf
 
 Nope. Didn't help.
 
 I see mention of usersync in the bug conversation, but I don't know
 what that means.
 
 I'll just wait for the fixed version, I think.

I did the following:

 chown -R portage:portage /usr/portage /var/lib/portage /usr/local/portage

and that fixed things.  This assumes you use a userid of portage in a
group named portage to maintain your system.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwn...@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


signature.asc
Description: PGP signature


Re: [gentoo-user] spoof mac address

2013-09-10 Thread Mick
On Tuesday 10 Sep 2013 19:05:59 jo...@antarean.org wrote:
 I don't have access to a Gentoo box atm. But there is an option in
 /etc/conf.d/net for this. Check the net.example file.

mac_eth0=00:11:22:33:44:55

You will also need to set up PPPoE with username and password for 
authenticating on your ISP's radius server, unless your modem is in half-
bridge mode.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] bios+gpt+grub2 boot windows

2013-09-10 Thread Yuri K. Shatroff

On 10.09.2013 19:14, Wang Xuerui wrote:

2013/9/10 东方巽雷 dongfangxun...@gmail.com:

I format my hard disk to gpt.Then create a 1M partition at the header of
hard disk ,add bios_grub flag.I can install and boot gentoo,debain and
archlinux,but have no idea how to boot windows7 and 8.When I boot win7 or
win8 from usb,it always complain the gpt partition and cannot install.What
should I do?


It's impossible to install Windows into a GPT partition if the
firmware isn't EFI. This is a limitation artificially set by
Microsoft; here's Microsoft's FAQ on this.
http://msdn.microsoft.com/en-us/library/windows/hardware/gg463525.aspx


Well, actually it *is* possible using hybrid MBR+GPT partitioning.

http://www.rodsbooks.com/gdisk/hybrid.html

Also google for 'hybrid mbr'.

I am using this setup for multibooting several OS incl. Win 7 without 
problems for a couple of years.



In this case, you must either revert to an msdos partition table (can
be done w/o data loss IIRC), or trick Windows into believing it's
running on EFI, i.e. set up UEFI DUET. Google that and you'll find an
excellent HOWTO on this. Happy hacking~


An interesting idea, yet, probably, a little more complicated than 
hybrid MBR for the sole purpose of multibooting.


--
Best wishes,
Yuri K. Shatroff



[gentoo-user] Gentoo on System76 laptop, and Netflix

2013-09-10 Thread felix
I have an old (6-7 years?) Mac laptop which I mostly use for watching streaming 
Netflix movies, and ssh into work computers of one sort or another.  It has one 
dead key (up arrow), another which is flaky, the screen brightness sometimes 
flickers, but it generally still works, mostly.

My home computer is gentoo but a big server.

At work I have a System76 laptop, Gazelle Pro I think, which has one of the 
best keyboards I have ever used of any type, so I have been thinking of getting 
one for myself.  But it runs Ubuntu, and while that is ok for work, I'd get 
pretty tired of it on a personal computer.

So, two questions:

  1.  Anyone have any experience installing gentoo on a System76 laptop?

  2.  If I use kvm/virsh, is it possible to install a Mac image to watch 
Netflix streaming movies?  Or, yecch, Windows, but I'd really rather not try 
that, as I haven't touched Windows for 15-20 years and see no reason to enrich 
Boll Gates' pension.

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman  rocket surgeon / fe...@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o



[gentoo-user] creating overlay to modify net-fs/samba-3.6.18

2013-09-10 Thread Timur Aydin
Today I had quite a bit of issues while creating a local overlay to
modify samba. Got through all of them, but there were the following
issues which I wanted to bring up, because I am not sure whether I have
done anything wrong:

- I had created the overlay under /root/overlay, but this is causing
permission denied errors from ebuild when creating the Manifest file:

==
/usr/lib64/portage/bin/ebuild.sh: line 545:
/root/overlay/net-fs/samba/samba-3.6.18.ebuild: Permission denied
 * ERROR: net-fs/samba-3.6.18::myoverlay failed (depend phase):
 *   error sourcing ebuild
 *
 * Call stack:
 *   ebuild.sh, line 545:  Called die
 * The specific snippet of code:
 *  source $EBUILD || die error sourcing ebuild
 *
 * If you need support, post the output of `emerge --info
'=net-fs/samba-3.6.18::myoverlay'`,
 * the complete build log and the output of `emerge -pqv
'=net-fs/samba-3.6.18::myoverlay'`.
 * Working directory: '/usr/lib64/portage/pym'
 * S: '/var/tmp/portage/net-fs/samba-3.6.18/work/samba-3.6.18'
==

After trying many different things without luck, I tried using
/usr/local/portage as the overlay folder and the problem went away! So
my first question is, does ebuild have a special security feature which
prevents it from processing overlays under /root ?

- The second issue is eclass related. After I moved net-fs/samba under
/usr/local/portage, I got the following error during Manifest creation:

==
bonsai samba # ebuild samba-3.6.18.ebuild manifest
 * ERROR: net-fs/samba-3.6.18::myoverlay failed (depend phase):
 *   pam.eclass could not be found by inherit()
 *
 * Call stack:
 * ebuild.sh, line 545:  Called source
'/usr/local/portage/net-fs/samba/samba-3.6.18.ebuild'
 *   samba-3.6.18.ebuild, line   7:  Called inherit 'pam' 'versionator'
'multilib' 'eutils' 'systemd'
 * ebuild.sh, line 257:  Called die
 * The specific snippet of code:
 *  [[ -z ${location} ]]  die ${1}.eclass could not be
found by inherit()
 *
 * If you need support, post the output of `emerge --info
'=net-fs/samba-3.6.18::myoverlay'`,
 * the complete build log and the output of `emerge -pqv
'=net-fs/samba-3.6.18::myoverlay'`.
 * Working directory: '/usr/lib64/portage/pym'
 * S: '/var/tmp/portage/net-fs/samba-3.6.18/work/samba-3.6.18'
==

To resolve this, I just copied /usr/portage/eclass to
/usr/local/portage/eclass. Is this a proper solution?

--
Timur Aydin



Re: [gentoo-user] spoof mac address

2013-09-10 Thread Alan McKinnon
On 10/09/2013 19:47, Joseph wrote:
 Does anybody know how to spoof mac address on Gentoo?
 
 I want to connect a machine directly to the modem but if I do so my
 static IP will change; so to retain static IP I want to spoof mac
 address on one of my machine to the same MAC as on my router.
 


If you have a host and a router with the same MAC address, how do you
suppose ethernet will continue to work?

Instead, rather do it right - your modem has a dhcp server. Configure it
to supply a specific address to your host's MAC address. Or, just set
the address statically in /etc/conf.d/net and don't use dhcp.

Or, do you actually want to bridge the modem and do pppoe on the host
instead of by the modem?

in /etc/conf.c/net:

mac_key_001122334455=s:foobar

documented in /usr/share/doc/netifrc*/net.example.bz2

If you use a different network manager, consult that packages own docs
on how to change mac addresses.



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] why does revdep-rebuild object to mounting /var on /mnt/var ?

2013-09-10 Thread Alan McKinnon
On 10/09/2013 18:57, gottl...@nyu.edu wrote:
 I'm curious as to why you do that, I can't see any benefit at all.
 
  The var filesystem is an LV and is only useful if it is mounted at
  /var where packages expect it to be. Why add the extra complexity  of
  mounting it somewhere else and then bind mounting it to the pnly place
  it can be useful?
 An old habit/belief that mounts go in /mnt.  Since both revdep-rebuild
 and you believe this is a bad habit, I now mount directly on /var /opt.

Ah, OK.

Technically a mount can go anywhere. Permanent mounts just go where they
are supposed to go, and /mnt was a throwback to the bad old days where
everything else was mounted at /mnt/something, including cdroms,
filesystems you wanted to access quickly, windows partitions on a dual
boot machine etc etc. or the gentoo partition during install before your
chroot

Then removeable media started being mounted in /media where the GUI
could manage it and not have to deal with root-only permissions in /mnt

Nowadays media goes in /run/media

All very confusing and hard to keep up with. It's like trying to figure
out what politicians and your boss happen to be talking about today :-)



 
  There's rules of thumb about this that will always work:
 
  No object in /tmp can be expected to survive successive invocations of
  the program that created the object, and never survive a reboot;
  No object in /var/tmp can be expected to survive a reboot
 
  The best place for temp files, ironically, is ~
 I set tmpwatch and wipe_tmp so that files survive in /tmp and /var/tmp
 for a month.
 
 I don't like ~ for temp files since on some, admittedly rare, occasions
 I actually use the gnome gui file manager and don't want a huge ~.  I
 have long ago created ~/tmp (also cleaned after a month by tmpwatch) so
 the only problem is breaking the habit of placing short-term files in
 /tmp instead of ~/tmp.

OK, I get it. I'd write all that temp stuff to /var/tmp so it doesn't
get nuked by something cleverly trying to manage /tmp.

I often feel the same way about ~/.xsession-errors.
I have to restrain myself from symlinking it to /dev/null :-)

 I realize that habit is bad for my (system's) health, but still find it
 hard to break.  I shall try again. Perhaps this is very mild form of
 what intelligent smokers feel :-).

There is no such thing as an intelligent smoker; there are only stupid
smokers :-)

I'm a two-packs-a-day man myself, I speak from many years experience!


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] creating overlay to modify net-fs/samba-3.6.18

2013-09-10 Thread Alan McKinnon
On 10/09/2013 22:11, Timur Aydin wrote:
 Today I had quite a bit of issues while creating a local overlay to
 modify samba. Got through all of them, but there were the following
 issues which I wanted to bring up, because I am not sure whether I have
 done anything wrong:
 
 - I had created the overlay under /root/overlay, but this is causing
 permission denied errors from ebuild when creating the Manifest file:

Do you have userpriv set in FEATURES?

That makes emerge run as portage which cannot read /root.

Putting things like code, data and configs in /root is universally a bad
idea. Do not do this. Put such things in the usual places, protected by
orthodox permissions, just like every other package on your system. Your
local overlay is no different to the tree and does not require special
handling.

[snip]

 After trying many different things without luck, I tried using
 /usr/local/portage as the overlay folder and the problem went away! So
 my first question is, does ebuild have a special security feature which
 prevents it from processing overlays under /root ?

No, you just had the overlay in a highly unusual place.

 
 - The second issue is eclass related. After I moved net-fs/samba under
 /usr/local/portage, I got the following error during Manifest creation:
 
 ==
 bonsai samba # ebuild samba-3.6.18.ebuild manifest
  * ERROR: net-fs/samba-3.6.18::myoverlay failed (depend phase):
  *   pam.eclass could not be found by inherit()

[snip]


 To resolve this, I just copied /usr/portage/eclass to
 /usr/local/portage/eclass. Is this a proper solution?

No, that copies ALL the eclasses and is likely to really mess things up.
In fact, you should not have had to do anything with eclasses at all.

I suspect your make.conf is faulty.

What is the contents of make.conf?
what is ls -al $PORTDIR/eclass/pam.eclass


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] spoof mac address

2013-09-10 Thread Joseph

My connection to my provider is kind of slow, so they suggested I connect one 
of the box directly to the cable modem.
Since I have a dynamic IP (that hardly ever changes), I'll disconnect the router and configure one of my box to the same mac address has router eth0 has and connect it to 
the mode.

This should ensure that my IP will not change.

All I want to do is to run a test speed from: testmy.net
--
Joseph


On 09/10/13 23:10, Alan McKinnon wrote:

On 10/09/2013 19:47, Joseph wrote:

Does anybody know how to spoof mac address on Gentoo?

I want to connect a machine directly to the modem but if I do so my
static IP will change; so to retain static IP I want to spoof mac
address on one of my machine to the same MAC as on my router.




If you have a host and a router with the same MAC address, how do you
suppose ethernet will continue to work?

Instead, rather do it right - your modem has a dhcp server. Configure it
to supply a specific address to your host's MAC address. Or, just set
the address statically in /etc/conf.d/net and don't use dhcp.

Or, do you actually want to bridge the modem and do pppoe on the host
instead of by the modem?

in /etc/conf.c/net:

mac_key_001122334455=s:foobar

documented in /usr/share/doc/netifrc*/net.example.bz2

If you use a different network manager, consult that packages own docs
on how to change mac addresses.



--
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] spoof mac address

2013-09-10 Thread Joseph

I forgot to mention.
My router is an old 486-box running freesco. So I'm trying to find out if the 
router is the problem with slow connection.
as my download speed on cable is only 3.7Mbps and it should be about 15Mbps up 
to 25Mbps
upload speed is 1.5Mbps

--
Joseph

On 09/10/13 23:10, Alan McKinnon wrote:

On 10/09/2013 19:47, Joseph wrote:

Does anybody know how to spoof mac address on Gentoo?

I want to connect a machine directly to the modem but if I do so my
static IP will change; so to retain static IP I want to spoof mac
address on one of my machine to the same MAC as on my router.




If you have a host and a router with the same MAC address, how do you
suppose ethernet will continue to work?

Instead, rather do it right - your modem has a dhcp server. Configure it
to supply a specific address to your host's MAC address. Or, just set
the address statically in /etc/conf.d/net and don't use dhcp.

Or, do you actually want to bridge the modem and do pppoe on the host
instead of by the modem?

in /etc/conf.c/net:

mac_key_001122334455=s:foobar

documented in /usr/share/doc/netifrc*/net.example.bz2

If you use a different network manager, consult that packages own docs
on how to change mac addresses.



--
Alan McKinnon
alan.mckin...@gmail.com




--
Joseph



Re: [gentoo-user] spoof mac address

2013-09-10 Thread Mick
On Tuesday 10 Sep 2013 22:38:35 Joseph wrote:
 My connection to my provider is kind of slow, so they suggested I connect
 one of the box directly to the cable modem. Since I have a dynamic IP
 (that hardly ever changes), I'll disconnect the router and configure one
 of my box to the same mac address has router eth0 has and connect it to
 the mode.

You would normally also need to authenticate onto your ISP's network, a 
function previously performed by the modem.  Unless you connect a router 
behind the modem to do the PPPoE authentication you will need to do this at 
the PC.


 This should ensure that my IP will not change.

There is a possibility that you will pick up a new IP address if your 
connection resync's.


 All I want to do is to run a test speed from: testmy.net

I will be *really* surprised if you see a difference in speed in any way 
attributable to the change you want to implement at the modem.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] creating overlay to modify net-fs/samba-3.6.18

2013-09-10 Thread Timur Aydin
On 09/11/13 00:01, Alan McKinnon wrote:
 Do you have userpriv set in FEATURES?
 
 That makes emerge run as portage which cannot read /root.

Here is the value of FEATURES, based on the output of emerge --info:

FEATURES=assume-digests binpkg-logs config-protect-if-modified
distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch
preserve-libs protect-owned sandbox sfperms strict unknown-features-warn
unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync

So as you say, userpriv is set and it explains why /root/overlay doesn't
work.

 
 I suspect your make.conf is faulty.
 
 What is the contents of make.conf?
 what is ls -al $PORTDIR/eclass/pam.eclass
 

Here are the contents of /etc/portage/make.conf:

==
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS=-O2 -pipe
CXXFLAGS=${CFLAGS}
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before
changing.
CHOST=x86_64-pc-linux-gnu
# These are the USE flags that were used in addition to what is provided
by the
# profile used for building.
MAKEOPTS=-j8
GENTOO_MIRRORS=ftp://ftp.linux.org.tr/pub/gentoo;
USE=nptl nptlonly unicode minizip tk udev python threads xvfb perl dlz
caps sqlite upcall systemd -gtk2 -gtk3 -acl
ACCEPT_KEYWORDS=~amd64
ACCEPT_LICENSE=*
VIDEO_CARDS=intel
INPUT_DEVICES=evdev keyboard mouse
FEATURES=-test
PORTDIR_OVERLAY=/usr/local/portage
==

And here is the pam.eclass perms:

bonsai ~ # ls -al /usr/portage/eclass/pam.eclass
-rw-r--r-- 1 portage portage 6455 Aug  5  2012
/usr/portage/eclass/pam.eclass




[gentoo-user] spoof mac address

2013-09-10 Thread Joseph

Does anybody know how to spoof mac address on Gentoo?

I want to connect a machine directly to the modem but if I do so my static IP will change; so to retain static IP I want to spoof mac address on one of my machine to 
the same MAC as on my router.


--
Joseph



Re: [gentoo-user] spoof mac address

2013-09-10 Thread Joseph

On 09/10/13 21:11, Albert wrote:

Al 10/09/2013 19:47, En/na Joseph ha escrit:

Does anybody know how to spoof mac address on Gentoo?

I want to connect a machine directly to the modem but if I do so my
static IP will change; so to retain static IP I want to spoof mac
address on one of my machine to the same MAC as on my router.


ifconfig yournetdevice hw ether 00:00:de:ad:be:ef



Yes, that is what I did:

# ifconfig net0 down
# ifconfig net0 hw ether 00:21:5A:9B:00:F2
# ifconfig net0 up

Now how to reset to the original mac address, without restarting. 


--
Joseph



Re: [gentoo-user] spoof mac address

2013-09-10 Thread Joseph

On 09/10/13 22:48, Mick wrote:

On Tuesday 10 Sep 2013 22:38:35 Joseph wrote:

My connection to my provider is kind of slow, so they suggested I connect
one of the box directly to the cable modem. Since I have a dynamic IP
(that hardly ever changes), I'll disconnect the router and configure one
of my box to the same mac address has router eth0 has and connect it to
the mode.


You would normally also need to authenticate onto your ISP's network, a
function previously performed by the modem.  Unless you connect a router
behind the modem to do the PPPoE authentication you will need to do this at
the PC.



This should ensure that my IP will not change.


There is a possibility that you will pick up a new IP address if your
connection resync's.



All I want to do is to run a test speed from: testmy.net


I will be *really* surprised if you see a difference in speed in any way
attributable to the change you want to implement at the modem.

--
Regards,
Mick


I just changed the MAC and I got the same IP from the shaw modem but you are 
correct the speed did not improved I got only 4Mbps down.

--
Joseph



Re: [gentoo-user] spoof mac address

2013-09-10 Thread Alan McKinnon
On 10/09/2013 23:50, Joseph wrote:
 I forgot to mention.
 My router is an old 486-box running freesco. So I'm trying to find out
 if the router is the problem with slow connection.
 as my download speed on cable is only 3.7Mbps and it should be about
 15Mbps up to 25Mbps
 upload speed is 1.5Mbps



What speed NIC do you have in that 486?

10M? 100M? And is it running full duplex?

3.7M is, IIRC, about what I'd expect from 10M half-duplex. NIC cards of
that era were prone to getting auto-negotiation badly wrong.
Even an old 486 should be able to deal with 100M traffic easily.

Even so, I'd still not trust your cable provider's advice. There is
still a good chance the problem really is with the cable connection.

 
 -- 
 Joseph
 
 On 09/10/13 23:10, Alan McKinnon wrote:
 On 10/09/2013 19:47, Joseph wrote:
 Does anybody know how to spoof mac address on Gentoo?

 I want to connect a machine directly to the modem but if I do so my
 static IP will change; so to retain static IP I want to spoof mac
 address on one of my machine to the same MAC as on my router.



 If you have a host and a router with the same MAC address, how do you
 suppose ethernet will continue to work?

 Instead, rather do it right - your modem has a dhcp server. Configure it
 to supply a specific address to your host's MAC address. Or, just set
 the address statically in /etc/conf.d/net and don't use dhcp.

 Or, do you actually want to bridge the modem and do pppoe on the host
 instead of by the modem?

 in /etc/conf.c/net:

 mac_key_001122334455=s:foobar

 documented in /usr/share/doc/netifrc*/net.example.bz2

 If you use a different network manager, consult that packages own docs
 on how to change mac addresses.



 -- 
 Alan McKinnon
 alan.mckin...@gmail.com


 


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] spoof mac address

2013-09-10 Thread Joseph

On 09/11/13 00:44, Alan McKinnon wrote:

On 10/09/2013 23:50, Joseph wrote:

I forgot to mention.
My router is an old 486-box running freesco. So I'm trying to find out
if the router is the problem with slow connection.
as my download speed on cable is only 3.7Mbps and it should be about
15Mbps up to 25Mbps
upload speed is 1.5Mbps




What speed NIC do you have in that 486?

10M? 100M? And is it running full duplex?

3.7M is, IIRC, about what I'd expect from 10M half-duplex. NIC cards of
that era were prone to getting auto-negotiation badly wrong.
Even an old 486 should be able to deal with 100M traffic easily.

Even so, I'd still not trust your cable provider's advice. There is
still a good chance the problem really is with the cable connection.


I called shaw tech.support and we did all kind of testing, with box connected 
directly to the modem (by-passing the router); no difference.
So they've scheduled technician to test it, they suspect it could be a modem itself. 


--
Joseph



Re: [gentoo-user] why does revdep-rebuild object to mounting /var on /mnt/var ?

2013-09-10 Thread gottlieb
On Tue, Sep 10 2013, Alan McKinnon wrote:

 On 10/09/2013 18:57, gottl...@nyu.edu wrote:

 Alan McKinnon wrote:

  There's rules of thumb about this that will always work:
 
  No object in /tmp can be expected to survive successive invocations of
  the program that created the object, and never survive a reboot;
  No object in /var/tmp can be expected to survive a reboot
 
  The best place for temp files, ironically, is ~
 I set tmpwatch and wipe_tmp so that files survive in /tmp and /var/tmp
 for a month.
 
 I don't like ~ for temp files since on some, admittedly rare, occasions
 I actually use the gnome gui file manager and don't want a huge ~.  I
 have long ago created ~/tmp (also cleaned after a month by tmpwatch) so
 the only problem is breaking the habit of placing short-term files in
 /tmp instead of ~/tmp.

 OK, I get it. I'd write all that temp stuff to /var/tmp so it doesn't
 get nuked by something cleverly trying to manage /tmp.

But A. McKinnon says (above) that an always valid rule of thumb is
No object in /var/tmp can be expected to survive a reboot.

 I realize that habit is bad for my (system's) health, but still find it
 hard to break.  I shall try again. Perhaps this is very mild form of
 what intelligent smokers feel :-).

 There is no such thing as an intelligent smoker; there are only stupid
 smokers :-)

 I'm a two-packs-a-day man myself, I speak from many years experience!

I promise not to mention it again, but you really should quit.

I consider one of my contributions to computer architecture is being at
least a little influential in getting Per Stenstrom to quit.  At the
time he was a rising star, who I felt would contribute greatly if he
didn't get sick from the cigs.  He did quit and has certainly
contributed.

allan



Re: [gentoo-user] bios+gpt+grub2 boot windows

2013-09-10 Thread Wang Xuerui
2013/9/11 Yuri K. Shatroff yks-...@yandex.ru:
 Well, actually it *is* possible using hybrid MBR+GPT partitioning.

 http://www.rodsbooks.com/gdisk/hybrid.html

 Also google for 'hybrid mbr'.

 I am using this setup for multibooting several OS incl. Win 7 without
 problems for a couple of years.

I almost forgot about hybrid MBRs... also it's fragile indeed, so I
probably won't recommend it even if I thought about it in the first
place.

 In this case, you must either revert to an msdos partition table (can
 be done w/o data loss IIRC), or trick Windows into believing it's
 running on EFI, i.e. set up UEFI DUET. Google that and you'll find an
 excellent HOWTO on this. Happy hacking~


 An interesting idea, yet, probably, a little more complicated than hybrid
 MBR for the sole purpose of multibooting.

I've tried that on a VirtualBox VM last year, and I'd like to point
out that describing the process as a little more complicated is
serious underestimation. :D



Re: [gentoo-user] bios+gpt+grub2 boot windows

2013-09-10 Thread 东方巽雷
I have solved my problem by using uefi shell.My pc bios can load uefi shell
from usb fat32 partition.
Thank you.


2013/9/11 Wang Xuerui idontknw.w...@gmail.com

 2013/9/11 Yuri K. Shatroff yks-...@yandex.ru:
  Well, actually it *is* possible using hybrid MBR+GPT partitioning.
 
  http://www.rodsbooks.com/gdisk/hybrid.html
 
  Also google for 'hybrid mbr'.
 
  I am using this setup for multibooting several OS incl. Win 7 without
  problems for a couple of years.

 I almost forgot about hybrid MBRs... also it's fragile indeed, so I
 probably won't recommend it even if I thought about it in the first
 place.

  In this case, you must either revert to an msdos partition table (can
  be done w/o data loss IIRC), or trick Windows into believing it's
  running on EFI, i.e. set up UEFI DUET. Google that and you'll find an
  excellent HOWTO on this. Happy hacking~
 
 
  An interesting idea, yet, probably, a little more complicated than hybrid
  MBR for the sole purpose of multibooting.

 I've tried that on a VirtualBox VM last year, and I'd like to point
 out that describing the process as a little more complicated is
 serious underestimation. :D