Re: [gentoo-user] Firefox 38.1.0 :-(

2015-08-02 Thread Philip Webb
150802 Mick wrote:
 On Sunday 02 Aug 2015 07:52:02 Philip Webb wrote:
 Today, did the same emerge without any problem :
 my bookmarks remain the same, as does my start-up (home) site.
 From the discussion, it appears that your difficulties
 resulted from your use of a developer version of FF,
 but how you come to be using it is not clear.
 USE=bindist emerges the Aurora as opposed to Firefox ESR
 and this is what is causing the problem.
 You evidently do not have bindist set for FF
 and therefore have not experienced this profile related problem.

That's the benefit of starting  make.conf USE  with '-*' (wry grin) :
yes, I know what the pundits say, but it works if you're attentive.

Acc to 'euses bindist' :
  www-client/firefox:bindist
  - Disable official Firefox branding (icons, name)
  which are not binary-redistributable according to upstream.
It doesn't say anything re Aurora/ESR (whatever they are)
nor re a developer version of Firefox.  Perhaps a Gentoo bug ?

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] New Firefox-38.1.0 headers, or is Google getting smarter?

2015-08-02 Thread Mick
On Sunday 02 Aug 2015 01:18:52 Jeremi Piotrowski wrote:
 On Sat, Aug 1, 2015 at 9:27 AM, Mick michaelkintz...@gmail.com wrote:
  I tried to connect using IMAP4 while overseas.  So this tells me that
  Google are also logging the IP addresses I am connecting from and check
  my geographic location for aheam! security purposes.
 
 If you log into gmail, scroll to the bottom and on the right you will
 find something
 along the lines of
 
 Last account activity: 0 minutes ago
  Details
 
 Now if you press the Details link you will find a log of recent
 activity on your
 account, including client and ip address. You can be either delighted that
 *you* can monitor your account activity, or terrified... the choice is
 yours.

 ;-)

-- 
Regards,
Mick


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


Re: [gentoo-user] Firefox 38.1.0 :-(

2015-08-02 Thread Dale
Mick wrote:
 On Sunday 02 Aug 2015 07:52:02 Philip Webb wrote:
 On Jul 30, 2015 11:23 AM, Alan Mackenzie a...@muc.de wrote:
 Over the course of the last 24 hours,
 Firefox 38.1.0 became stable in portage, so I merged it in.
 What a mistake!  All my existing configuration (incl for NoScript+),
 all my bookmarks, all record of previous visits to site -
 gone, deleted, vanished.  I'm not happy about that ... [etc]
 Today, did the same emerge without any problem :
 my bookmarks remain the same, as does my start-up (home) site.
 From the discussion, it appears that your difficulties
 resulted from your use of a developer version of FF,
 but how you come to be using it is not clear.
 USE=bindist emerges the Aurora as opposed to Firefox ESR and this is what 
 is 
 causing the problem.  You evidently do not have bindist set for FF and 
 therefore have not experienced this profile related problem.



I have bindist disabled here and ran into trouble with one of my
profiles.  The other profiles worked just fine.  I ended up deleting the
profile and creating it fresh.  Luckily it wasn't one of my more
important profiles with a lot of bookmarks or anything. 

Dale

:-)  :-) 



[gentoo-user] fstab/mount riddle...how?

2015-08-02 Thread Meino . Cramer
Hi,

...still fiddling with Linux on my ASUS MeMO Pad 7... ;)

Current status:
SDCard:
Back from extFAT (too slllooww) to FAT32
On this SDCard two file, each 4GB in sizse and formatted ext4
One conatins currently the complete Linux (used as chroot environment)
The second one contains a copy of /usr (that is, the second image contains /usr 
-
not only its ontents).

I finally want to get rid of the /usr on the first file to get more
space for upgrades, intstallations and such.

While using the chrooted environment (completly booted from the first
file) I did

mount /dev/sdcard /mnt
losetup /dev/loop(x) /mnt/frstfile.img
mount  /dev/loop(x) /image
mount --bind /image/usr /usr

This way the /usr of the first image file was somehow
knocked off and the (identical) /usr of the second image
file tooks its place.

It works so far.

Now the problem:
How can I manipulate /etc/fstab (and may be others) in a 
way that /usr of the second image file permanently replaces
/usr of the first image file AND gives me the change to remove
/usr of the first image file?

I want to prevent copying the image files from and to the Android
tablet PC and manipulate them offline on my PC because its
a time eating task and its inconvenient (sorry for being that lazy ;)


Thank you very much in advance for any help!
Have a nice sunday!!! :)
Meino






Re: [gentoo-user] Re: Firefox 38.1.0 :-(

2015-08-02 Thread Neil Bothwick
On Sun, 2 Aug 2015 09:41:35 +0100, Mick wrote:

 The USE flag in question is bindist.  Without it you get FF ESR and all
 works as before.  With it set you get the new developer profile and you
 have to deselect it *each time* if you want your old profile back.

Can't you just symlink the developer profile directory to your standard
profile?


-- 
Neil Bothwick

Honk if you love peace and quiet.


pgppBuLGR64fu.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Firefox 38.1.0 :-(

2015-08-02 Thread Mick
On Sunday 02 Aug 2015 09:47:29 Neil Bothwick wrote:
 On Sun, 2 Aug 2015 09:41:35 +0100, Mick wrote:
  The USE flag in question is bindist.  Without it you get FF ESR and all
  works as before.  With it set you get the new developer profile and you
  have to deselect it *each time* if you want your old profile back.
 
 Can't you just symlink the developer profile directory to your standard
 profile?

I didn't try this, but coming to think of it, it would be me implementing a 
workaround against the design of the application.  Given that the persistence 
of the new profile despite the wishes of the user seems to me like an odd 
feature, I think it is a bug and have commented accordingly in:

https://support.mozilla.org/tr/kb/recover-lost-bookmarks-firefox-developer-edition

-- 
Regards,
Mick


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


Re: [gentoo-user] Firefox 38.1.0 :-(

2015-08-02 Thread Frank Steinmetzger
On Sat, Aug 01, 2015 at 08:30:41PM -0700, Lee wrote:

  Over the course of the last 24 hours, Firefox 38.1.0 became stable in
  portage, so I merged it in.
 
  What a mistake!
 
  All my existing configuration (including for NoScript+), all my
  bookmarks, all record of previous visits to site - gone, deleted,
  vanished.  I'm not happy about that.
 
  The usability of the program has gone down, down, down. […]
 
  What on earth are the upstream developers thinking about?  Destroying
  somebody's configuration is not a nice thing to do.
  […]
  Yours, in anger.
 
 Not an answer to your question,  but Google - chrome is a much better
 browser imo, and installs itself very quickly and tidily with portage.

If you are interested in software that tells its maker where you go and what
you say all the time ... *SCNR*
-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me on any social network.

Their are less then four mistakes in this sentance.



Re: [gentoo-user] Firefox 38.1.0 :-(

2015-08-02 Thread Philip Webb
On Jul 30, 2015 11:23 AM, Alan Mackenzie a...@muc.de wrote:
 Over the course of the last 24 hours,
 Firefox 38.1.0 became stable in portage, so I merged it in.
 What a mistake!  All my existing configuration (incl for NoScript+),
 all my bookmarks, all record of previous visits to site -
 gone, deleted, vanished.  I'm not happy about that ... [etc]

Today, did the same emerge without any problem :
my bookmarks remain the same, as does my start-up (home) site.
From the discussion, it appears that your difficulties
resulted from your use of a developer version of FF,
but how you come to be using it is not clear.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] Re: Firefox 38.1.0 :-(

2015-08-02 Thread Mick
On Sunday 02 Aug 2015 05:20:21 »Q« wrote:
 On Thu, 30 Jul 2015 22:46:40 +0300
 
 Emre Eryilmaz emre.eryil...@piesso.com wrote:
  2015-07-30 21:23 GMT+03:00 Alan Mackenzie a...@muc.de:
   Over the course of the last 24 hours, Firefox 38.1.0 became stable
   in portage, so I merged it in.
   
   What a mistake!
  
  It's a firefox profile problems. No data loss. Because aurora goes
  firefox developer edition and firefox developer edition has a new
  firefox profile. Its solutions:
  https://bugs.gentoo.org/show_bug.cgi?id=555416#c5
 
 I'm confused by all this.  Why should the bindist USE flag control
 whether Firefox ESR or Firefox aurora/developer gets built?  Will
 Firefox ESR no longer compile with the option
  --disable-official-branding ? 

There is no --disable-official-branding here:

 Installed versions:  38.1.0^d(09:32:07 07/31/15)(dbus gmp-autoupdate 
jemalloc3 jit minimal pulseaudio startup-notification -bindist -custom-cflags 
-custom-optimization -debug -egl -gstreamer -gstreamer-0 -hardened -neon -pgo 
-selinux -system-cairo -system-icu -system-jpeg -system-libvpx -system-sqlite 
-test -wifi LINGUAS=en_GB -af -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca 
-cs -cy -da -de -el -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr 
-fy_NL -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -km 
-kn -ko -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -or -pa_IN -pl -pt_BR -
pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -te -th -tr -uk -vi -xh 
-zh_CN -zh_TW)


  Or does --disable-official-branding now
 produce an ESR version that behaves like a developer version WRT
 profiles?  (If the answer to that last question is yes, then ISTM
 this is an upstream bug.)

The USE flag in question is bindist.  Without it you get FF ESR and all works 
as before.  With it set you get the new developer profile and you have to 
deselect it *each time* if you want your old profile back.

-- 
Regards,
Mick


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


Re: [gentoo-user] Re: Firefox 38.1.0 :-(

2015-08-02 Thread Neil Bothwick
On Sun, 2 Aug 2015 10:00:34 +0100, Mick wrote:

  Can't you just symlink the developer profile directory to your
  standard profile?  
 
 I didn't try this, but coming to think of it, it would be me
 implementing a workaround against the design of the application.  Given
 that the persistence of the new profile despite the wishes of the user
 seems to me like an odd feature, I think it is a bug and have commented
 accordingly in:
 
 https://support.mozilla.org/tr/kb/recover-lost-bookmarks-firefox-developer-edition

I was suggesting in the spirit of a workround for an apparent bug, not a
true solution. It doesn't stop you using profiles, just makes the
developer and your standard profile the same.


-- 
Neil Bothwick

A journey of a thousand miles begins with a cash advance from Mom.


pgpyh9I8sq_qK.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Firefox 38.1.0 :-(

2015-08-02 Thread wraeth
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 02/08/15 19:13, Frank Steinmetzger wrote:
 On Sat, Aug 01, 2015 at 08:30:41PM -0700, Lee wrote:
 Not an answer to your question,  but Google - chrome is a much
 better browser imo, and installs itself very quickly and tidily
 with portage.
 
 If you are interested in software that tells its maker where you go
 and what you say all the time ... *SCNR*

Precisely the reason [1] I stopped using Chrome (plus chromium takes
so long to build and the theming is painful).

The so-called black box was supposedly removed from Chrom{e,ium},
but if Google were willing to do it once, they've lost my vote WRT
privacy advocacy and openness.

[1]:
http://www.theguardian.com/technology/2015/jun/23/google-eavesdropping-t
ool-installed-computers-without-permission

[2]:
http://www.theguardian.com/technology/2015/jun/25/google-pulls-listening
- -software-chromium
- -- 
wraeth wra...@wraeth.id.au
GnuPG Key: B2D9F759
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iF4EAREIAAYFAlW94PoACgkQXcRKerLZ91kQlQD8D/sc80xpbnU4gVXXLl/S1AMO
NPZQS+2wz09mNc9dMY0A/RlxHiherhG56m7sTcACQXS9nF0hvhmwejJznmm08rjV
=C1OP
-END PGP SIGNATURE-



Re: [gentoo-user] Can't boot btrfs

2015-08-02 Thread Peter Humphrey
On Friday 31 July 2015 13:53:42 Dale wrote:
 Peter Humphrey wrote:
  Hello list,
  
  I've created a new btrfs volume on SSDs, complete with a lot of subvolumes
  corresponding to the old lvm2 logical volumes. I took the opportunity of
  removing a couple of old partitions, so I now have this:
  
  /dev/sd[ab]1 form /dev/md1 as /boot,
  /dev/sd[ab]2 are my rescue system: sda2 is its root, sdb2 is its portage
  tree, /dev/sd[ab]3 is the btrfs file system.
  
  I can boot my rescue system with no problems, but not the main system - I
  get a kernel panic with BTRFS: failed to read the system array on sda3.
  I'm writing this after chroot, su - prh, startx.
  
  Both in the main and rescue systems I have this:
  $ grep -i btrfs /usr/src/linux/.config
  CONFIG_BTRFS_FS=y
  CONFIG_BTRFS_FS_POSIX_ACL=y
  # CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set
  # CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
  # CONFIG_BTRFS_DEBUG is not set
  # CONFIG_BTRFS_ASSERT is not set
  
  The relevant grub.cfg entries (I've moved to grub-2) are:
  
  menuentry 'Gentoo Linux 4.0.5, no network' {
  linux /boot/kernel-x86_64-4.0.5-gentoo root=/dev/sda3
  softlevel=nonet
  net.ifnames=0 irqpoll
  }
  menuentry 'Rescue System 4.0.5' {
  linux /boot/kernel-x86_64-4.0.5-gentoo-rescue root=/dev/sda2
  net.ifnames=0 irqpoll
  }
  
  Something seemed to be wrong in the kernel setup, so to test that I
  compiled the main kernel with the .config from the rescue system. Same
  result.
  
  Another test: I wondered whether, somehow, the btrfs volume included the
  name of the mount point where it had been created, and would only allow
  itself to be mounted there. Not so: moving its mount point in the rescue
  system didn't prevent it from being mounted. I didn't expect it would,
  since the kernel panic occurs long before fstab is read.

---8

 This may not be related but thought I would mention.  For some reason,
 my system will not boot a kernel newer than 3.18.7.  I use
 gentoo-sources and generally use make oldconfig.  I have also tried the
 new 4.0 kernels as well.  They try to boot but don't make it past the
 kernel trying to do its thing.  I don't reboot often so I have not had
 the chance to figure out exactly why this is happening.  Recently I had
 to start using that pesky init thingy but I don't think that is causing
 the problem.   I get a error/panic and then it says it is going to
 reboot in 10 seconds.  By the time I figure out where the failure might
 be, it reboots itself.

That could well be it, Dale. I tried both my currently installed kernels, 
3.18.16 and 4.0.5, but of course they're both later than 3.18.7. I'd still 
like to get this working, so I'll install an earlier kernel and try that - 
when I've had a bit of a rest!

Thanks for the clue.

-- 
Rgds
Peter




Re: [gentoo-user] Firefox 38.1.0 :-(

2015-08-02 Thread Mick
On Sunday 02 Aug 2015 07:52:02 Philip Webb wrote:
 On Jul 30, 2015 11:23 AM, Alan Mackenzie a...@muc.de wrote:
  Over the course of the last 24 hours,
  Firefox 38.1.0 became stable in portage, so I merged it in.
  What a mistake!  All my existing configuration (incl for NoScript+),
  all my bookmarks, all record of previous visits to site -
  gone, deleted, vanished.  I'm not happy about that ... [etc]
 
 Today, did the same emerge without any problem :
 my bookmarks remain the same, as does my start-up (home) site.
 From the discussion, it appears that your difficulties
 resulted from your use of a developer version of FF,
 but how you come to be using it is not clear.

USE=bindist emerges the Aurora as opposed to Firefox ESR and this is what is 
causing the problem.  You evidently do not have bindist set for FF and 
therefore have not experienced this profile related problem.

-- 
Regards,
Mick


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


[gentoo-user] Re: systemd-224 Look out for new networking behavior

2015-08-02 Thread walt
On Sun, 2 Aug 2015 08:03:11 -0700
walt w41...@gmail.com wrote:

 I've been running systemd for a long time without needing to enable
 the dhcpcd service at boot time.  Starting with systemd-224 that is no
 longer true. 

Oops, journalctl tells me that systemd-networkd is segfaulting
repeatedly during boot.  I'm reverting back to systemd-222-r1 until
this gets sorted out.





Re: [gentoo-user] Configuring hostapd

2015-08-02 Thread Mick
On Sunday 02 Aug 2015 01:50:21 Fernando Rodriguez wrote:
 Hello,
 
 After installing hostapd I can successfully connect to the AP, I can get
 DHCP from it, but I cannot access the network through it (neither lan or
 internet). 

This sounds like a (network) routing problem, rather than a hostapd issue.


 This is an existing router box so iptables and everything else
 is already properly configured.
 
 I'm using this minimal config:
 
 interface=wlp0s10
 #driver=nl80211
 hw_mode=g
 channel=6
 #ieee80211d=1
 #country_code=FR
 #ieee80211n=1
 #wmm_enabled=1
 
 ssid=LinuxAP
 auth_algs=1
 wpa=2
 wpa_key_mgmt=WPA-PSK
 rsn_pairwise=CCMP
 wpa_passphrase=hello linux ap
 
 iw list shows the following supported modes:
 * IBSS
 * managed
 * AP
 * AP/VLAN
 * monitor
 
 The ebuild warns that in order for hostapd to work I need to set the card
 in master mode (the wiki makes no mention of it). 

I think this is a matter of nomenclature.  Your AP  AP/VLAN would/should be 
the equivalent to master mode.


 But when I try to do
 that (either through the net init scripts or through iwconfig) I get the
 following error:
 
 Error for wireless request Set Mode (8B06) :
 SET failed on device wlp0s10 ; Invalid argument.

Did you try setting it up as AP, or AP/VLAN to see if it works?  In the latter 
you will also need to setting a route for the AP VLAN to access the default 
(V)LAN and Internet.



 However after starting hostapd it appears that it was able to set the card
 to master mode according to iwconfig:
 
 wlp0s10   IEEE 802.11bg  Mode:Master  Tx-Power=20 dBm
   Retry short limit:7   RTS thr:off   Fragment thr:off
   Power Management:off

What mode is shown if you use AP or AP/VLAN?


 So, is this card supported or not? Will I be able to connect and get dhcp
 from the server if it didn't? 

I believe that your card is supported for hostapd use, or otherwise you would 
not be able to get a dhcp address from the server.


 Avahi also _sortof_ works. If I add the wifi
 card to the deny-interfaces list on avahi-daemon.conf and try to ping the
 AP using the avahi name the avahi daemon (on the AP) logs the following:
 
 Received packet from invalid interface.
 
 
 This is the output of rc-service hostapd start:
 
 Configuration file: /etc/hostapd/hostapd.conf
 Using interface wlp0s10 with hwaddr 00:14:a5:cb:4d:8a and ssid LinuxAP
 wlp0s10: interface state UNINITIALIZED-ENABLED
 wlp0s10: AP-ENABLED [ ok ]
 
 
 Any suggestions?

Check that your routing is set up to allow connections from your client IP 
through the network of the AP.

-- 
Regards,
Mick


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


Re: [gentoo-user] systemd-224 Look out for new networking behavior

2015-08-02 Thread Canek Peláez Valdés
On Sun, Aug 2, 2015 at 10:03 AM, walt w41...@gmail.com wrote:

 I've been running systemd for a long time without needing to enable
 the dhcpcd service at boot time.  Starting with systemd-224 that is no
 longer true.  Today I had to enable dhcpcd.service specifically or the
 network interface didn't get an ip address during boot.

 Seems like this might be especially important for those of you who need
 to update remote machines.

If you enable systemd-networkd.service, and your .network file has DHCP=yes
in its [Network] section, then it will use the DHCP client included with
systemd-networkd.

In my servers I not longer use any net-misc/*dhcp* package.

Regards.
--
Canek Peláez Valdés
Profesor de asignatura, Facultad de Ciencias
Universidad Nacional Autónoma de México


[gentoo-user] Re: systemd-224 Look out for new networking behavior

2015-08-02 Thread Martin Vaeth
walt w41...@gmail.com wrote:

 Oops, journalctl tells me that systemd-networkd is segfaulting
 repeatedly during boot.

systemd has become very picky on cflags; e.g. -DNDEBUG
and friends cause strange behaviour and segfaults.




Re: [gentoo-user] systemd-224 Look out for new networking behavior

2015-08-02 Thread Neil Bothwick
On Sun, 2 Aug 2015 08:03:11 -0700, walt wrote:

 I've been running systemd for a long time without needing to enable
 the dhcpcd service at boot time.  Starting with systemd-224 that is no
 longer true.  Today I had to enable dhcpcd.service specifically or the
 network interface didn't get an ip address during boot.

What are you using for network management? I've just found I had to
enable systemd-networkd.service to get the network up. Of course, this
happens just when I made some changes to my network setup, so I started
undoing those changes before realising systemd had changed behaviour.
Maybe I should start reading Changelogs...


-- 
Neil Bothwick

Facts are stubborn things, but statistics are more pliable.
  - Mark Twain


pgppgKiITOnoj.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Firefox 38.1.0 :-(

2015-08-02 Thread Håkon Alstadheim

 Den 2. aug. 2015 kl. 02.24 skrev Frank Steinmetzger war...@gmx.de:
 
 On Sat, Aug 01, 2015 at 05:31:45PM +, Alan Mackenzie wrote:
 
 The 'default' profile selection does not stick.  Deleting the new
 'dev-edition-default' profile causes it to be recreated afresh at the
 next start up.
 
 Yes.  This is the sort of developer attitude that is making me want to
 use a proper browser.  What the heck does a browser need prefiles for,
 anyway?  It's supposed to be a web browser, for goodness sake.
 
 I don’t use it often, but having it is nice. Actually many contemporary
 browsers do. I have my main profile that I usually use. But if I want to
 visit some site that shall not have any way of obtaining information I don’t
 want it to have (or because it just would not work with my restrictive
 security setup), I quickly create a throwaway profile.
 

My online bank used to require java. I have a separate profile I use for that 
bank and nothing else.


[gentoo-user] systemd-224 Look out for new networking behavior

2015-08-02 Thread walt
I've been running systemd for a long time without needing to enable
the dhcpcd service at boot time.  Starting with systemd-224 that is no
longer true.  Today I had to enable dhcpcd.service specifically or the
network interface didn't get an ip address during boot.

Seems like this might be especially important for those of you who need
to update remote machines.  





Re: [gentoo-user] fstab/mount riddle...how?

2015-08-02 Thread wabenbau
meino.cra...@gmx.de wrote:

 Hi,
 
 ...still fiddling with Linux on my ASUS MeMO Pad 7... ;)
 
 Current status:
 SDCard:
 Back from extFAT (too slllooww) to FAT32
 On this SDCard two file, each 4GB in sizse and formatted ext4
 One conatins currently the complete Linux (used as chroot environment)
 The second one contains a copy of /usr (that is, the second image
 contains /usr - not only its ontents).
 
 I finally want to get rid of the /usr on the first file to get more
 space for upgrades, intstallations and such.
 
 While using the chrooted environment (completly booted from the first
 file) I did
 
 mount /dev/sdcard /mnt
 losetup /dev/loop(x) /mnt/frstfile.img
 mount  /dev/loop(x) /image
 mount --bind /image/usr /usr

Why don't you use /usr as mount point for /dev/loop(x)?
AFAIK it does not matter that /usr already contains something.
 
 This way the /usr of the first image file was somehow
 knocked off and the (identical) /usr of the second image
 file tooks its place.

This should IMHO also be the case when you mount /dev/loop(x) directly
to /usr. But I haven't tested this. Maybe I'm wrong.
 
 It works so far.
 
 Now the problem:
 How can I manipulate /etc/fstab (and may be others) in a 
 way that /usr of the second image file permanently replaces
 /usr of the first image file AND gives me the change to remove
 /usr of the first image file?

I think, as long as you have mounted something to /usr, you will have no 
access to the old content of /usr. It is covered by the new mount.

But why don't you just delete the content of /usr before you using it as 
mount point. I suggested this already in my last post.

I haven't tested this by myself so maybe I'm wrong, but I think as long as 
you do this in single user mode from a simple text console with bash, it 
should work. System components are normally not living under /usr, so 
nothing should fail when you do this.

--
Regards
wabe



Re: [gentoo-user] Configuring hostapd

2015-08-02 Thread Mick
On Sunday 02 Aug 2015 22:04:41 Fernando Rodriguez wrote:
 On Sunday, August 02, 2015 1:29:50 PM Mick wrote:
  On Sunday 02 Aug 2015 01:50:21 Fernando Rodriguez wrote:
   Hello,
   
   After installing hostapd I can successfully connect to the AP, I can
   get DHCP from it, but I cannot access the network through it (neither
   lan or internet).
  
  This sounds like a (network) routing problem, rather than a hostapd
  issue.
 
 It looks like that, but if I stop iptables completely on the router all
 unicast traffic still works in the lan (both wired and through an external
 AP), so if I connect to the hostapd AP with iptables off, shouldn't I at
 the very least be able to ping the wireless interface on the router?
 
 I also tried with only the following rule which enables internet access to
 all wired workstations and through external AP:
 
 iptables -t nat -A POSTROUTING -o enp0s8 -j MASQUERADE

You should probably specify the local subnet, so that multicast packets are 
not sent out to the Internet, e.g.:

iptables -t nat -A POSTROUTING -o enp0s8 -s 192.168.1.0/24 ! -d 192.168.1.0/24  
-j MASQUERADE

(Change 192.168.1.0/24 to suit your LAN subnet)

Also have you enabled ip forwarding in your kernel:

sysctl -w net.ipv4.ip_forward=1

-- 
Regards,
Mick


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


Re: [gentoo-user] fstab/mount riddle...how?

2015-08-02 Thread wabenbau
meino.cra...@gmx.de wrote:

 Hi,
 
 ...still fiddling with Linux on my ASUS MeMO Pad 7... ;)
 
 Current status:
 SDCard:
 Back from extFAT (too slllooww) to FAT32
 On this SDCard two file, each 4GB in sizse and formatted ext4
 One conatins currently the complete Linux (used as chroot environment)
 The second one contains a copy of /usr (that is, the second image
 contains /usr - not only its ontents).
 
 I finally want to get rid of the /usr on the first file to get more
 space for upgrades, intstallations and such.
 
 While using the chrooted environment (completly booted from the first
 file) I did
 
 mount /dev/sdcard /mnt
 losetup /dev/loop(x) /mnt/frstfile.img
 mount  /dev/loop(x) /image
 mount --bind /image/usr /usr
 
 This way the /usr of the first image file was somehow
 knocked off and the (identical) /usr of the second image
 file tooks its place.
 
 It works so far.
 
 Now the problem:
 How can I manipulate /etc/fstab (and may be others) in a 
 way that /usr of the second image file permanently replaces
 /usr of the first image file AND gives me the change to remove
 /usr of the first image file?

I forgot something in my last post.

Shouldn't it possible to use fstab entries like these:

/dev/sdcard /mntautodefaults0 0
/mnt/frstfile.img   /usrautoloop0 0

If mounting with fstab doesn't work, you can place a script under 
/etc/local.d/ that will do the mount for you. But I don't know if this 
works if you are using systemd.

It's many years ago that I used loop devices and I can barely remember 
it. So maybe I'm totally wrong here. :-)

--
Regards
wabe



Re: [gentoo-user] Configuring hostapd

2015-08-02 Thread Fernando Rodriguez
On Sunday, August 02, 2015 1:29:50 PM Mick wrote:
 On Sunday 02 Aug 2015 01:50:21 Fernando Rodriguez wrote:
  Hello,
  
  After installing hostapd I can successfully connect to the AP, I can get
  DHCP from it, but I cannot access the network through it (neither lan or
  internet). 
 
 This sounds like a (network) routing problem, rather than a hostapd issue.

It looks like that, but if I stop iptables completely on the router all 
unicast traffic still works in the lan (both wired and through an external AP), 
so if I connect to the hostapd AP with iptables off, shouldn't I at the very 
least be able to ping the wireless interface on the router?

I also tried with only the following rule which enables internet access to all 
wired workstations and through external AP:

iptables -t nat -A POSTROUTING -o enp0s8 -j MASQUERADE


  This is an existing router box so iptables and everything else
  is already properly configured.
  
  I'm using this minimal config:
  
  interface=wlp0s10
  #driver=nl80211
  hw_mode=g
  channel=6
  #ieee80211d=1
  #country_code=FR
  #ieee80211n=1
  #wmm_enabled=1
  
  ssid=LinuxAP
  auth_algs=1
  wpa=2
  wpa_key_mgmt=WPA-PSK
  rsn_pairwise=CCMP
  wpa_passphrase=hello linux ap
  
  iw list shows the following supported modes:
  * IBSS
  * managed
  * AP
  * AP/VLAN
  * monitor
  
  The ebuild warns that in order for hostapd to work I need to set the card
  in master mode (the wiki makes no mention of it). 
 
 I think this is a matter of nomenclature.  Your AP  AP/VLAN would/should be 
 the equivalent to master mode.
 
 
  But when I try to do
  that (either through the net init scripts or through iwconfig) I get the
  following error:
  
  Error for wireless request Set Mode (8B06) :
  SET failed on device wlp0s10 ; Invalid argument.
 
 Did you try setting it up as AP, or AP/VLAN to see if it works?  In the 
latter 
 you will also need to setting a route for the AP VLAN to access the default 
 (V)LAN and Internet.

I did, same error. But I found that this is an issue with mac80211 based 
drivers, they can only be set to master mode through the nl80211 interface 
which is what hostapd uses. So from what I understand, as long as iw list 
shows AP mode I'm good and the ebuild warning is outdated. I believe you just 
net to enable the netlink use flag (which I did) for it to work.

http://linuxwireless.org/en/users/Documentation/hostapd/

Thanks,

-- 
Fernando Rodriguez



Re: [gentoo-user] Configuring hostapd

2015-08-02 Thread Fernando Rodriguez
On Sunday, August 02, 2015 11:12:07 PM Mick wrote:
 On Sunday 02 Aug 2015 22:04:41 Fernando Rodriguez wrote:
  On Sunday, August 02, 2015 1:29:50 PM Mick wrote:
   On Sunday 02 Aug 2015 01:50:21 Fernando Rodriguez wrote:
Hello,

After installing hostapd I can successfully connect to the AP, I can
get DHCP from it, but I cannot access the network through it (neither
lan or internet).
   
   This sounds like a (network) routing problem, rather than a hostapd
   issue.
  
  It looks like that, but if I stop iptables completely on the router all
  unicast traffic still works in the lan (both wired and through an external
  AP), so if I connect to the hostapd AP with iptables off, shouldn't I at
  the very least be able to ping the wireless interface on the router?
  
  I also tried with only the following rule which enables internet access to
  all wired workstations and through external AP:
  
  iptables -t nat -A POSTROUTING -o enp0s8 -j MASQUERADE
 
 You should probably specify the local subnet, so that multicast packets are 
 not sent out to the Internet, e.g.:
 
 iptables -t nat -A POSTROUTING -o enp0s8 -s 192.168.1.0/24 ! -d 
192.168.1.0/24  
 -j MASQUERADE
 
 (Change 192.168.1.0/24 to suit your LAN subnet)

I'm not actually using that rule except as a minimal setup for troubleshooting 
this issue. My actual rules do specify the subnet.

 Also have you enabled ip forwarding in your kernel:
 
 sysctl -w net.ipv4.ip_forward=1

Yes, it is an existing router that works perfectly except for the hostapd AP. 
My current setup is as follows:

Internet - Gentoo Router - Switch - AP

Where AP is a wifi router with routing features disabled. Never had problems 
with it. Now I installed hostapd on Gentoo Router and everything else still 
works fine except when I connect to the hostapd AP. Even with only that minimal 
iptable rule or no rules at all.

Thanks,

-- 
Fernando Rodriguez



[gentoo-user] Re: Firefox 38.1.0 :-(

2015-08-02 Thread »Q«
On Sun, 2 Aug 2015 09:41:35 +0100
Mick michaelkintz...@gmail.com wrote:

 On Sunday 02 Aug 2015 05:20:21 »Q« wrote:
  On Thu, 30 Jul 2015 22:46:40 +0300
  
  Emre Eryilmaz emre.eryil...@piesso.com wrote:  
   2015-07-30 21:23 GMT+03:00 Alan Mackenzie a...@muc.de:  
Over the course of the last 24 hours, Firefox 38.1.0 became
stable in portage, so I merged it in.

What a mistake!  
   
   It's a firefox profile problems. No data loss. Because aurora goes
   firefox developer edition and firefox developer edition has a new
   firefox profile. Its solutions:
   https://bugs.gentoo.org/show_bug.cgi?id=555416#c5  
  
  I'm confused by all this.  Why should the bindist USE flag control
  whether Firefox ESR or Firefox aurora/developer gets built?  Will
  Firefox ESR no longer compile with the option
   --disable-official-branding ?   
 
 There is no --disable-official-branding here:
 
  Installed versions:  38.1.0^d(09:32:07 07/31/15)(dbus
 gmp-autoupdate jemalloc3 jit minimal pulseaudio startup-notification
 -bindist -custom-cflags -custom-optimization -debug -egl -gstreamer
 -gstreamer-0 -hardened -neon -pgo -selinux -system-cairo -system-icu
 -system-jpeg -system-libvpx -system-sqlite -test -wifi LINGUAS=en_GB
 -af -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -cy -da -de
 -el -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy_NL
 -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk
 -km -kn -ko -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -or -pa_IN -pl
 -pt_BR - pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -te
 -th -tr -uk -vi -xh -zh_CN -zh_TW)

It's not a USE flag -- it's a config option for building Firefox.  You
can see yours by entering about:buildconfig in Firefox's address bar.

   Or does --disable-official-branding now
  produce an ESR version that behaves like a developer version WRT
  profiles?  (If the answer to that last question is yes, then ISTM
  this is an upstream bug.)  
 
 The USE flag in question is bindist.  Without it you get FF ESR and
 all works as before.  With it set you get the new developer profile
 and you have to deselect it *each time* if you want your old profile
 back.

On the face of things, the bindist flag shouldn't control that;  with
bindist set, you should also get ESR, only unbranded.  And ESR
shouldn't be creating new profiles.  Upstream's developer (formerly
aurora) channel, which does use those profiles, is a separate channel
from ESR.  The developer channel is a pre-beta channel, currenty
offering Firefox 41.0a2, https://www.mozilla.org/firefox/developer/.