Re: [gentoo-user] alsa not working with hda intel sound card

2023-11-09 Thread Todd Goodman



On 11/8/2023 5:10 PM, John Covici wrote:


-Original Message-
From: Michael Orlitzky 
Sent: Wednesday, November 8, 2023 4:32 PM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] alsa not working with hda intel sound card

On Wed, 2023-11-08 at 14:53 -0500, John Covici wrote:

Hi all.

I have run into a problem, where I am getting no sound out of the jack
on my sound card.  I think this happened since the last major reboot
after my world update.

The last time I did this to myself, it was by disabling all of the
codecs in the kernel. Search for CONFIG_SND_HDA_CODEC and make sure
they're enabled?

Yep, all there.  I may try with older kernel and see if that makes a 
difference, but I suspect alsa.



FWIW, I lost sound on one machine when I moved to the 6.x kernel series.

I only did a little bit of debugging off and on and never got it back.

It was an Intel HDA.

Booting a 5.x kernel had sound.

I always figured it was a kernel config issue but I did have the codec 
enabled and everything else I checked.


Todd










Re: [gentoo-user] Anyone used openmediavault with LVM?

2023-09-12 Thread Todd Goodman


On 9/12/2023 11:57 AM, Jack wrote:

On 9/12/23 11:55, Peter Humphrey wrote:

On Tuesday, 12 September 2023 16:45:21 BST Dale wrote:


I currently have Ubuntu installed.  I would have been done with it
sooner but I had a typo in exports and it wouldn't allow me to mount the
thing.  Wrong IP for my main system.  At least it's secure.  ROFL  So
far, my biggest gripe is sudo this, sudo that.  Dang, give me root and
be done with it.  :/  I did try, no freaking password for the thing.  I
gotta google that tho.  There has to be a way.

You could try 'sudo su -' . I don't know, but it's worth a try.


I've generally used "sudo bash" for such stuff.


Or sudo -i


Re: [gentoo-user] Connecting a network printer

2022-01-12 Thread Todd Goodman

On 1/12/2022 11:45 AM, Peter Humphrey wrote:

Hello list,

I have a Lexmark C2425 colour laser, which used to be detected automatically
but now isn't. I can connect it over USB, but I'd like to use IPP or HTTP.

This is a stable amd64 box, and CUPS is installed thus:
net-print/cups-2.3.3_p2-r3::gentoo  USE="X acl dbus pam ssl threads usb
zeroconf -debug -kerberos (-selinux) -static-libs -systemd -xinetd"
ABI_X86="(64) -32 (-x32)"

Two questions:

1.  What else do I need to do for the printer to be detectable?
2.  The guides I've found say I can set it up manually with ipp://hostname/
printers/printername. What is 'printername'? Is it just arbitrary?

Clues, anyone?

TiA.


Hi Peter and list,

I have a Lexmark color laser on my network that I print to from Windows 
and a Gentoo ~amd64 desktop.


I believe I just used the printer's IP address in CUPS in place of the 
hostname (e.g., ipp://192.168.1.1).


I use a static IP configured through the printer panel and can find it 
in the settings if I forget


Todd





Re: [gentoo-user] "No rule to make target" gcc 9.3.0 error

2021-10-19 Thread Todd Goodman



On 10/19/2021 7:32 AM, Walter Dnes wrote:

On Tue, Oct 19, 2021 at 11:53:28AM +1000, Miles Malone wrote

Select a version of gcc you do have, using gcc-config.  Then rebuild
libtool, and continue.  GCC 9.3.0 doesnt exist because it's been
replaced in the gcc9 branch by GCC 9.4.0.  You could choose to stick
to GCC9, or move to 10 or 11.

   Re-emerging sys-devel/libtool doesn't work.  I've only got gcc 10 and
11.  9 isn't in the tree.  After rebuilding libtool I still get...

[thimk2][root][/usr/src/linux] ../makeover
   CALLscripts/checksyscalls.sh
   CALLscripts/atomic/check-atomics.sh
   DESCEND  objtool
make[4]: *** No rule to make target 
'/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/stddef.h', needed by 
'/usr/src/linux-5.4.97-gentoo/tools/objtool/fixdep.o'.  Stop.
make[3]: *** [Makefile:39: 
/usr/src/linux-5.4.97-gentoo/tools/objtool/fixdep-in.o] Error 2
make[2]: *** [/usr/src/linux-5.4.97-gentoo/tools/build/Makefile.include:5: 
fixdep] Error 2
make[1]: *** [Makefile:67: objtool] Error 2
make: *** [Makefile:1830: tools/objtool] Error 2

   Is there a way to pull an old gcc ebuild into my tree?



This may be overkill but:

1.  Copy your .config out of /usr/src/linux

2. make mrproper

3. Copy back your .config

4. make oldconfig




[gentoo-user] Re: boot hangs forever at “Loading initial ramdisk...”

2021-05-15 Thread Todd Goodman


On 5/14/2021 5:15 PM, John Blinka wrote:

n

On Fri, May 14, 2021 at 2:36 AM John Covici > wrote:



I would look in the grub.cfg and give us exactly what is in the stanza
you are using, including where it thinks the root file system is,
etc.  Also, see if there is any genkernel option to get some debugging
info out of the initrd, I know using dracut you can get breakpoints
during the process and see how its doing.


Tried dracut.  No change.

Added the kernel command line debug options (#3 in “Identifying your 
problem area” in ‘man dracut’).  No change.


Feeling peevish, I made a file of random junk using dd if=/dev/random 
of=initrd.img count=4096.  Then supplied that pile of junk as the 
initrd.  Again, no change.


Then I supplied a nonexistent file name (xxx.img) as the initrd.  This 
time I got a complaint:


error: file ‘/xxx.img’ not found.

Press any key to continue...

So, it’s getting as far as wanting to read the initrd, and is smart 
enough to tell whether the specified initrd actually exists on the 
specified boot partition.  But it can’t actually be doing anything 
with the initrd, or it would have objected to the random junk I fed it.


From https://en.m.wikipedia.org/wiki/Initial_ramdisk#Implementation 
, it 
appears that grub is in charge of loading both linux and the initrd 
into memory, then handing execution over to linux along with a pointer 
to the memory location of the initrd.


I’ve observed that that no booting output comes out of linux, nor any 
complaints from linux about the nonsense contents I fed it from the 
random initrd I built. That suggests to me that grub has failed to 
load linux and/or the initrd into memory, or that it's failed to hand 
execution control to linux.


Next step:  learned how to run an interactive grub2 command shell. 
With full debugging turned on, it looks like grub2 can load the kernel 
image, and it looks like it loads the initrd as well.  At least there 
are no complaints and the reported initrd size looks correct.


But when I issue the boot command, grub2 issues a handful of mallocs 
and does a little token parsing, and then just stops...


So it appears that the boot problem arises right around the handoff 
from grub2 to linux.  Don’t know whether grub2 or linux has failed.  I 
don’t know how to get either one to tell me more.


John


This is likely not your issue with an integrated Intel GPU, but I was 
building a new system recently with UEFI, ASUS ROG mobo, and nvidia GPU 
and had this same issue.


Surprisingly, this turned out to require me to set the simple 
framebuffer support in the kernel config (I also set the UEFI 
framebuffer support) or else I would get no screen output after the 
loading initial ramdisk... message.


Just something I ran into for the first time ever recently

Todd



Re: [gentoo-user] syslog-ng: filter plugin NOT not found ????

2020-12-16 Thread Todd Goodman

I think you need a semi-colon inside and after the right curly brace ('}')

You right braces are parentheses and not right curly braces too (maybe a 
cut and paste issue?)


FWIW, the following is what I use to separate my mail logs out and it works:

destination messages { file("/var/log/messages"); };
destination maillog { file("/var/log/maillog"); };

filter f_mail { facility(mail); };
filter f_messages { not facility(mail); };

log { source(src); filter(f_mail); destination(maillog); };
log { source(src); filter(f_messages); destination(messages); };

On 12/15/2020 10:44 PM, Dan Egli wrote:
Help me understand this, please?  I have ISC dhcpd configured to log 
to syslog.local7 (since I don't see an option to force it into it's 
own log file). So I went into my syslog-ng file and created two 
filters, just like on the example page of syslog-ng.com:


filter dhcpmsgs { facility(23) );
filter non_dhcp { NOT filter(dhcpmsgs) )

I quoted almost directly from the example page on syslog-ng.com, but I 
keep getting this error when I reload syslog-ng's config:
Error parsing filter expression, filter plugin NOT not found OR you 
may not used double quotes in your filter expression in 
/etc/syslog-ng/syslog-ng.conf:25:18-25:21:


What did I do wrong? Here's the lines I modified from the syslog-ng page:
filter demo_filter { host("example") and match("deny" 
value("MESSAGE")) };

filter inverted_demo_filter { NOT filter(demo_filter) }

You can see the page at: 
https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.16/administration-guide/53







Re: [gentoo-user] cannot emerge --config sys-lib/timezone-data yet

2020-10-18 Thread Todd Goodman

The very first line has a single quote as the first character

On 10/18/2020 9:19 AM, Jude DaShiell wrote:

Apparently a missing quote in /etc/portage/make.conf but I can't find
where that would be now.

'# 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.
COMMON_FLAGS="--march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j9"
ACCEPTLICENSE="@EULA"
USE="x a52 aac acpi accessibility alsa audiofile calendar cdda cdr cracklib crypt 
css dbus debug dvdr espeak ffmpeg fftw flac fortran ftp git gnome gtk gui imap ipv6 mad 
mp3 mp4 mpeg mplayer mtp multilib mysql mysqli ncurses nntp nsplugin offensive ogg openal 
opus pcre pda pdf perl php pie plotutils policykit portaudio posix postgres -pulseaudio 
python qt4 qt5 quicktime readline recode rss ruby sasl seccomp slang smp sndfile snmp 
sockets sound sox speex spell sqlite ssl startup-notification static-libs subversion 
symlink syslog szip taglib tcl tcmalloc tcpd telemetry test threads tidy timidity udev 
udisks unicode unwind upnp upnp-av usb v4l vaapi vcd vdpau verify-sig videos vim-syntax 
vorbis wavpack -wayland wifi wxwidgets x264 xattr xcomposite xemacs xml zip xv xvid zlib 
zstd"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ 
http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo 
https://gentoo.osuosl.org/ http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ 
https://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ 
ftp://mirrors.rit.edu/gentoo/ rsync://mirrors.rit.edu/gentoo/ 
http://gentoo.mirrors.tds.net/gentoo http://gentoo.cs.utah.edu/;






Re: [gentoo-user] The return of the dreaded "Cannot run C compiled programs"

2018-03-28 Thread Todd Goodman
What does 'gcc-config -l' show?

Todf

⁣Sent from BlueMail ​

On Mar 27, 2018, 5:02 AM, at 5:02 AM, Peter Humphrey  
wrote:
>On Tuesday, 27 March 2018 01:24:09 BST Daniel Frey wrote:
>
>> I ran into this some time ago and one of the updates removed the /lib
>->
>> /lib64 symlink.
>>
>> I simply ran `ln -s /lib64 /lib` and it was fine after that.
>
>Nice idea, Dan, but that isn't it in this case: 
>
># /bin/ls -ld /lib
>lrwxrwxrwx 1 root root 5 Mar 12 00:08 /lib -> lib64
>
>--
>Regards
>Peter


Re: [gentoo-user] [OT] Being Facebook member: How to anon?

2017-10-24 Thread Todd Goodman


On 10/23/2017 10:46 PM, tu...@posteo.de wrote:
>
 Hi Robert,

 oh YEAH!
 Thanks a lot for that quick start!

 I didi it, but...
 #>eix -I docker
 [I] app-emulation/docker
  Available versions:  17.03.2^si (~)17.06.2^si (~)17.09.0^si **^si 
 {apparmor aufs btrfs +container-init +device-mapper hardened overlay 
 pkcs11 seccomp}
  Installed versions:  17.09.0^si(05:48:14 PM 
 10/23/2017)(container-init device-mapper seccomp -apparmor -aufs -btrfs 
 -hardened -overlay -pkcs11)
  Homepage:https://dockerproject.org
  Description: The core functions you need to create Docker 
 images and run Docker containers

 [I] app-emulation/docker-proxy
  Available versions:  0.8.0_p2016 (~)0.8.0_p20170917^t **
  Installed versions:  0.8.0_p20170917^t(05:46:10 PM 10/23/2017)
  Homepage:https://github.com/docker/libnetwork
  Description: Docker container networking

 [I] app-emulation/docker-runc
  Available versions:  1.0.0_rc2_p20170308^t (~)1.0.0_rc3_p20170706^t 
 (~)1.0.0_rc4_p20170917^t {+ambient apparmor hardened +seccomp}
  Installed versions:  1.0.0_rc4_p20170917^t(05:46:07 PM 
 10/23/2017)(ambient seccomp -apparmor -hardened)
  Homepage:http://runc.io
  Description: runc container cli tools (docker fork)


 #>groups
 wheel mail uucp audio cdrom video games cdrw usb users docker wireshark 
 vboxusers vlock realtime
^^

 (as root)
 #>/etc/init.d/docker start
  * WARNING: docker has already been started
 (so it is runnig)

 (as user again)
 #>docker run --name firefox -e DISPLAY=$DISPLAY --device /dev/snd -v 
 /tmp/.X11-unix:/tmp/.X11-unix -v $XAUTHORITY:/tmp/.host_Xauthority:ro -dti 
 openhs/firefox-ubuntu

 docker: Cannot connect to the Docker daemon at 
 unix:///var/run/docker.sock. Is the docker daemon running?.
 See 'docker run --help'.
 [1]10401 exit 125   docker run --name firefox -e DISPLAY=$DISPLAY 
 --device /dev/snd -v  -v  -dti 

 H...seems I missed something...

 Cheers
 Meino




>>> Found this in dmesg
>>>
>>> [ 1587.391861] device-mapper: table: 254:0: thin-pool: unknown target type
>>> [ 1587.391863] device-mapper: ioctl: error adding target to table
>>>
>>> these two lines are added when I try to start /etc/ini.d/docker as root.
>>>
>>> Cheers
>>> Meino
>>>
>>>
>>>
>> I could this problem by defining 
>>
>> CONFIG_DM_THIN_PROVISIONING=y
>>
>> in the kernel, recompile it and the message disappears.
>> BUT:
>> still docker does not start...
>>
>> How can I fix that?
>>
>> Cheers
>> Meino
>>
>>
> Next fix:
> Need to activate the complete cgroup features.
>
> Now I get this error message in /var/log/docker.log
>
> time="2017-10-24T04:42:39.358339658+02:00" level=info msg="Loading 
> containers: start." 
> time="2017-10-24T04:42:39.869600530+02:00" level=error msg="could not get 
> initial namespace: no such file or directory" 
> time="2017-10-24T04:42:39.884438663+02:00" level=error msg="failed to set to 
> initial namespace, readlink /proc/4588/task/4588/ns/net: no such file or 
> directory, initns fd -1: bad file descriptor" 
> time="2017-10-24T04:42:39.885161875+02:00" level=info msg="Default bridge 
> (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip 
> can be used to set a preferred IP address" 
> time="2017-10-24T04:42:39.885339857+02:00" level=error msg="failed to set to 
> initial namespace, readlink /proc/4588/task/4588/ns/net: no such file or 
> directory, initns fd -1: bad file descriptor" 
> Error starting daemon: Error initializing network controller: Error creating 
> default "bridge" network: Failed to program NAT chain: Failed to inject 
> DOCKER in PREROUTING chain: iptables failed: iptables --wait -t nat -A 
> PREROUTING -m addrtype --dst-type LOCAL -j DOCKER: iptables: No 
> chain/target/match by that name.
>
> ...and now I really did not know how to hack further...
>
> Any help is very appreciated...
>
> Cheers
> Meino
>

You might need CONFIG_NF_NAT_IPV4 configured in your kernel to get the
NAT table for iptables (-t nat)

Todd



Re: [gentoo-user] revdep-rebuild finds nothing, while revdep-rebuild.sh wants to rebuild the whole system

2017-10-18 Thread Todd Goodman

On 10/17/2017 10:40 PM, Nikos Chantziaras wrote:

Running the new revdep-rebuild finds nothing:

 $ sudo revdep-rebuild -i -- -a
  * This is the new python coded version
  * Please report any bugs found using it.
  * The original revdep-rebuild script is installed as revdep-rebuild.sh
  * Please file bugs at: https://bugs.gentoo.org/
  * Collecting system binaries and libraries
  * Checking dynamic linking consistency

 Your system is consistent

However, running revdep-rebuild.sh wants to rebuild everything:

  https://pastebin.com/raw/BHq2NU0G

Does someone know what's going on?



I don't know what's going on, but I see the same thing on one of my systems.

Todd



Re: [gentoo-user] Chromium no longer displays content of TLS certificate

2017-09-08 Thread Todd Goodman
Go to the menu -> More Tools -> Developer Tools, then Security tab and
then View Certificate button

Todd


On 09/08/2017 01:05 PM, Mick wrote:
> Either chromium has stopped displaying the content of the TLS certificate of 
> a 
> web site I happen to visit, or it has made it quite complicated for the user 
> to find it.
>
> Chromium would allow the certificate to be displayed by clicking on the 
> 'Secure' symbol on the left of the address bar.  However, when I click on it 
> now all I see is an acknowledgment this is a secure connection and some site 
> specific settings regarding e.g. javascript, et al.  I cannot find a way to 
> display the certificate.
>
> Would you know where in Chromium the site certificate is now available?  
>
>  Installed versions:  61.0.3163.79(17:04:58 09/08/17)(cups hangouts pic 
> proprietary-codecs pulseaudio suid system-ffmpeg system-icu -component-build -
> custom-cflags -gnome-keyring -kerberos -neon -selinux -system-libvpx 
> -tcmalloc 
> -test -widevine L10N="en-GB -am -ar -bg -bn -ca -cs -da -de -el -es -es-419 -
> et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -
> ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -
> vi -zh-CN -zh-TW")




Re: [gentoo-user] Is this working correctly??

2017-08-22 Thread Todd Goodman

I only see content-type text/plain.

So it seems to be working from my POV.

Todd


On 8/22/2017 9:01 AM, Dale wrote:

Howdy,

I have this set to send text only for gentoo.org and kde.org.  Someone
replied making me think it is not doing as instructed, even tho settings
says it is.  Can someone tell me for sure and certain that this is
sending as it should?  Text only I hope.

Thanks.

Dale

:-)  :-)






Re: [gentoo-user] Online hosting recommendation - VMs?

2017-08-18 Thread Todd Goodman



On 8/17/2017 6:05 PM, Stroller wrote:

On 17 Aug 2017, at 12:40, Todd Goodman <t...@bonedaddy.net> wrote:

I use AWS instances extensively at work and they have been incredibly reliable 
and after initially learning the tools they're very convenient to manage (IMNHO 
of course.)

I've used the AWS free tier EC2 to set up a Gentoo instance using a public AMI 
to base it on.  It worked OK and I'm certain I could have figured out how to 
set it up from scratch too.

The free tier is a micro instance which may or may not suit your purposes.  
It's probably fine for a mail server and low traffic web server.

Many thanks, that's very helpful.

So AWS instances work like any other VM? I can ssh into them, install packages 
on them and so on?

You mentioned the AWS free tier - if I use one of those, can I be sure that it 
won't exceed the usage limits without billing me?

Linode were mentioned by a couple of people in the previous thread, too. They 
seem like the logical choice, but if I can use AWS for free, that would be 
better. ;)

Stroller.




Yes, you can ssh in to them as usual (assuming you have allowed it in 
your security group/firewall of course.)


And install packages as well.  They're really just regular VM guests 
once so whatever you're used to with Gentoo (or other OS) is what you'll 
mostly get .


You'll need to look into the free tier to be sure.  You can always set 
alerts to email you if you're getting close to getting charged.


I'm not sure how much you can run with the free tier.  I wasn't really 
interested (and obviously, at work it's not applicable.)  I'm probably 
using the wrong terminology calling it a "tier."  I think if you go over 
for some reason then it's just additional charges on top, not a bump 
into a more expensive "tier" really.


Also, the micro instances (which is all I could run without charge) have 
cpu throttled (and I believe the network as well, but certainly 
doublecheck that.)


Todd



Re: [gentoo-user] Online hosting recommendation - VMs?

2017-08-17 Thread Todd Goodman



On 8/16/2017 6:00 PM, Stroller wrote:

On 26 Mar 2017, at 03:57, Stroller  wrote:

In the next few weeks I need to move my email server (a very old Gentoo 
installation) from the closet in my home, into the cloud so that I can go 
travelling and access my mail from anywhere.

A few months ago I asked for hosting recommendations, and was surprised not to 
receive any mention of Amazon's cloud services.

I thought reason might be that Amazon's cloud servers are different from a 
regular VM, but today saw someone on the Postfix list state that they're 
running it on an AWS instance.

Has anyone tried running Gentoo on AWS or did this go unmentioned because it's 
impossible?

Stroller.




I use AWS instances extensively at work and they have been incredibly 
reliable and after initially learning the tools they're very convenient 
to manage (IMNHO of course.)


I've used the AWS free tier EC2 to set up a Gentoo instance using a 
public AMI to base it on.  It worked OK and I'm certain I could have 
figured out how to set it up from scratch too.


The free tier is a micro instance which may or may not suit your 
purposes.  It's probably fine for a mail server and low traffic web server.


If you do set up a mail server in AWS you need to contact support to get 
them to remove throttling they automatically have in place for mail 
(port 25.)  It wasn't a hassle to do, I just asked and they quickly 
removed the throttling.


However, I decided to go with a Linode instance instead, mostly due to 
pricing.


Once I wanted multiple CPU cores and more memory I couldn't justify the 
AWS cost to myself for a personal machine.


Linode has been incredibly reliable for me as well and I run Gentoo 
there also.


Todd



Re: [gentoo-user] upgrading to gcc-5 (on x86_64-pc-linux-gnu)

2017-08-08 Thread Todd Goodman
That's always worked for me.

Todd


On 08/08/2017 11:13 AM, allan gottlieb wrote:
> gcc-config -l reports
>  [1] x86_64-pc-linux-gnu-4.9.3
>  [2] x86_64-pc-linux-gnu-4.9.4 *
>  [3] x86_64-pc-linux-gnu-5.4.0
>
> The news item from 2015-10-22 suggests (I have gentoolkit-0.3.3)
>   # revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc
>
> Is that the entire procedure needed?  In particular, ignoring
> performance, can I avoid emerge --emptytree and just execute?
>
>   # gcc-config x86_64-pc-linux-gnu-5.4.0
>   # revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc
>
> thanks,
> allan
>




Re: [gentoo-user] Re: Online hosting recommendation - VMs?

2017-03-29 Thread Todd Goodman
* Harry Putnam  [170327 22:09]:
> Stroller, just a note on my experience this evening.  I liked what I
> saw about linode in this thread..  Decided to try them out.
> 
> Got started with them... I was working from the command line in my new
> gentoo vm provided by linode.  Getting things setup the way I like
> them.
> 
> In the course of about 2 hrs my connections were dropped at least 15
> times and I think probably more.  At some points I have more than one
> login going, and I noticed if I left one idle for a few minutes it
> would b dropped when I next attemtpted to use it... I mean really a
> few minutes like 3 or so.
> 
> Sometimes connections would drop while the login instance was
> working... for example in the middle of a kernel compile.
> 
> I decided I'd seen enough and was not interested in spending time
> trying to determine what this was happening... so backed out and asked
> for my account to be cancelled and charges to my Credit card canceled.
> 
> Remains to be seen how they respond.  I only turned my trouble ticket
> 7 minutes ago.
> 

Wow.  I've never had that experience and I've been using them for years.

If I allow it I can keep SSH sessions to the instance up for weeks.

I can't comment on customer service as I've never needed to speak to
them.

I'm using the Newark, NJ location.

Todd



Re: [gentoo-user] HD 630?

2017-03-29 Thread Todd Goodman
* Jorge Almeida  [170327 18:04]:
> This may be a stupid question, for one of two possible reasons, but
> here it goes:
> 
> I'm thinking of buying a recent Intel CPU (7th generation, in
> saleslang), say an i5-7400, and it came to mind, not too late yet,
> that the integrated GPU may not be supported in linux. I'm talking
> about the latest kernels, not necessarily the gentoo-packaged one.
> Anyone knows something about it? And if not supported, is it likely
> that it will be sometime soon? I can use a spare Radeon card
> meanwhile...
> 
> (And, for someone who is not a gamer, is a 7th generation CPU worth it
> at all, as opposed to a 6th generation one?)
> 
> Any input is appreciated
> 
> Jorge Almeida

Not a stupid question, but also not a concern in my opinion.

I've built a number of desktop machines using Intel i7 (mostly) CPUs
with integrated GPU and all have been supported well in my
gentoo-sources kernels.

I find Intel GPU support "just works" far more often than AMD or nVidia.

Of course for heavy duty gaming then those go into a machine.

But the Intel machines seem to have decent support for "lite" gaming
(though certainly not "heavy duty")

Todd



Re: [gentoo-user] Online hosting recommendation - VMs?

2017-03-26 Thread Todd Goodman
* Stroller  [170325 22:57]:
> Hello,
> 
> In the next few weeks I need to move my email server (a very old Gentoo 
> installation) from the closet in my home, into the cloud so that I can go 
> travelling and access my mail from anywhere.
> 
> I've never used VM's before, but my understanding is that they look just like 
> a normal machine to the users inside them, and there shouldn't be any problem 
> with me getting used to them. My current mail server is an old 700mhz Pentium 
> III (I think), so performance is unimportant. I guess VM's have some kind of 
> web or VNC console I can log into for the initial install (and if I screw up 
> remote access)?
> 
> 1. Are these suppositions right?
> 2. Any recommendations for cheap / reliable hosting providers, please?
> 
> I expect to use Gentoo because I've hardly used any other distro for years, 
> and find others less intuitive. 
> 
> Thanks,
> 
> Stroller.

Hi Stroller,

I use Linode for my cloud web and email server.

It was very easy to set up and has not had any downtime since it was set
up (a year or so ago.)

I don't use the web gui for access much (generally only for DNS
management which they do well also.)

Though I've used the lish console accessible from the GUI.

I recommend them!

Todd



Re: [gentoo-user] hostname problem : solved

2016-10-04 Thread Todd Goodman
* Philip Webb  [161003 20:04]:
> 161002 Philip Webb wrote:
> > 161002 Hinnerk van Bruinehsen wrote:
> >> On Sun, Oct 02, 2016 at 07:41:48AM -0400, Philip Webb wrote:
> >>> I did a big system update yesterday ( 52 pkgs ), incl Net-tools Dhcpcd ,
> >>> & on restarting today found that hostname is not being set :
> >> Check if sys-apps/net-tools has the "hostname" useflag enabled
> >> it's enabled by default so you may encounter the fallout of a -* setup.
> > Yes, that was it (red face).  Thanks for the prompt reply.
> 
> Wanting to make a note for the future in case this happens again,
> I have written :
> 
>   Hostname set by  /etc/init.d/hostname :
> the binary  /bin/hostname  is provided by Net-tools + USE="hostname" ;
>  hostname  needs to be set to  localhost  to make apps work properly :
> this is done via  /etc/hosts ,
>  wh belongs to Baselayout & shd contain '127.0.0.1 localhost' ;
> there is also  /etc/conf.d/hostname ,
>  wh belongs to Openrc & contains 'hostname="localhost"'.
> 
> However, I'm now wondering whether/why the system needs both
>  /etc/hosts  +  /etc/conf.d/hostname , which seem to do the same thing.
> Can anyone explain ? 

I can't speak to why there are multiple ways to do things (just
different ways carried forward I think.)

But recently a change (to OpenRC I believe) requires the line in
/etc/conf.d/hostname to have the environment variable capitalized to be
used.

In your example it needs to contain "HOSTNAME=localhost" and not
"hostname=localhost"

I had one fairly recently installed server run into this problem (and
not my other servers.)

I run ~amd64

Todd



Re: [gentoo-user] {OT} ISP requires MTU below 1500?

2016-09-20 Thread Todd Goodman
* Grant  [160920 08:53]:
> >> > A while back I was having networking issues.  I eventually tried
> >> > drastically lowering the MTU of all the systems onsite and the issues
> >> > disappeared.  I always thought the issue was due to the MTU on our
> >> > modem/router.  Today I read that AT DSL requires a 1492 MTU so I
> >> > increased the MTU of our systems up to 1492 and haven't had any
> >> > issues.  Do certain ISPs require you to change the MTU of your entire
> >> > network, or is this likely due to our AT modem/router itself?
> >>
> >> AFAIK the MTU is defined for every network interface separately. For an
> >> ADSL connection it is common that a lower MTU is needed because of the
> >> PPPoE header information that is encapsulated in the ethernet frames.
> >> But in that case it is sufficient to lower the MTU just for the WAN
> >> interface that is connected to the DSL modem.
> >> If you don't use protocol encapsulation in your LAN then there should
> >> be IMHO no reason for lowering the MTU of your internal interfaces.
> >>
> >> --
> >> Regards
> >> wabe
> >
> > MTU is per network interface but you really don't want to end up having
> > your router fragment every IP packet because systems on your subnet are
> > using a larger MTU.
> >
> > Todd
> 
> 
> That makes sense.  So in my case, I'm thinking 1492 MTU on every
> interface in the network.
> 
> So I'm sure I understand, should everyone with a DSL connection set an
> MTU of 1492 (or potentially lower) on all of their network interfaces
> to avoid packet fragmentation?
> 
> - Grant

I would probably set the MTU to 1492 on each interface myself.

But it really depends upon the traffic mix and how "smart" ("dumb") the
devices on the network are.

TCP is likely using Path MTU Discovery to determine the TCP Maximum
Segment Size so that TCP traffic doesn't encounter IP fragmentation
end-to-end.  PMTU used to use ICMP packets to determine the end-to-end
MTU, but RFC4281 (I think) uses a method to work around the dropping or
filtering of ICMP packets.

However, there's different quality of implementations as well as
differences in whether the network stack uses the PMTUD for UDP and
other datagram traffic or not as well.

Todd

DISCLAIMER: It's been a number of years since I've been involved in
implementing any IP networking so things may have moved on since then.



Re: [gentoo-user] {OT} ISP requires MTU below 1500?

2016-09-20 Thread Todd Goodman
* wabe  [160919 20:50]:
> Grant  wrote:
> 
> > A while back I was having networking issues.  I eventually tried
> > drastically lowering the MTU of all the systems onsite and the issues
> > disappeared.  I always thought the issue was due to the MTU on our
> > modem/router.  Today I read that AT DSL requires a 1492 MTU so I
> > increased the MTU of our systems up to 1492 and haven't had any
> > issues.  Do certain ISPs require you to change the MTU of your entire
> > network, or is this likely due to our AT modem/router itself?
> 
> AFAIK the MTU is defined for every network interface separately. For an
> ADSL connection it is common that a lower MTU is needed because of the 
> PPPoE header information that is encapsulated in the ethernet frames.
> But in that case it is sufficient to lower the MTU just for the WAN 
> interface that is connected to the DSL modem. 
> If you don't use protocol encapsulation in your LAN then there should
> be IMHO no reason for lowering the MTU of your internal interfaces.
> 
> --
> Regards
> wabe

MTU is per network interface but you really don't want to end up having
your router fragment every IP packet because systems on your subnet are
using a larger MTU.

Todd



Re: [gentoo-user] Choice of MUA

2016-08-11 Thread Todd Goodman
* Peter Humphrey  [160811 01:29]:
> On Wednesday 10 Aug 2016 15:21:54 Philip Webb wrote:
> > 160810 Peter Humphrey wrote:
> > > I've been using KMail for many years. It suits me in many ways,
> > > the most important being that I don't need to keep switching my hands
> > > between mouse and keyboard.
> > 
> > If that's your criterion, why not try Mutt ?
> > I've been using it for  c 20 years  & have never wanted anything else.
> 
> How does it display HTML in messages?
> 
> -- 
> Rgds
> Peter

I use Mutt (and have for a long long time.)

You can configure what to use to display HTML.  I have it going to links
or elinks or similar (I forget exactly which one.)  However, in most
cases I prefer not to look at HTML email at all and generally delete any
email with only HTML and no plaintext part.

Todd



Re: [gentoo-user] Keep alive within SSH session

2016-07-17 Thread Todd Goodman
* Mick  [160717 12:36]:
> On Sunday 17 Jul 2016 16:20:30 Ralf wrote:
> > On 07/17/2016 04:02 PM, Mick wrote:
> > > I am not sure of the correct approach to achieve a prolonged remote
> > > debugging session through SSH and avoid the SSH session timing out.
> > > 
> > > This is what I try to achieve:
> > > 
> > > I login into a router with SSH from my PC.  Then I can run certain
> > > commands to start and monitor a debugging session in the router. 
> > > However, if I leave alone the SSH session, it will soon time out.  The
> > > debugging only runs while the session is live.  Exiting the SSH session
> > > causes all debug output to be lost.
> > 
> > Take a look at screen or tmux. man screen, man tmux.
> 
> Thank you Ralph, but detaching the *local* terminal process of SSH does not 
> in 
> any way stop the login session on the router from timing out.
> 
> 
> > > If I continue to run (router) commands on the terminal, while the
> > > debugging is running, the SSH time out is postponed.
> > 
> > you may also want to tweak some timeout options in your sshd_config
> 
> The router login times out unless some command is fed into the login session 
> a 
> the time.  So, I'll need to be able to run commands every so often on the 
> router shell from within my SSH session (without sitting in front of my PC 
> terminal of course).  The commands 'watch', or 'at' might do it, but I am not 
> sure if some script is necessary for this.
> 
> -- 
> Regards,
> Mick


if you just want something to keep the connection open how about just a
simple shell command in a whole loop?

e.g., while true; do clear; ps aux | grep whatever; sleep 5; done



Re: [gentoo-user] Do we have any Blender build experts in the house?

2016-05-29 Thread Todd Goodman
* Andrew Lowe  [160528 13:59]:
> Hi all,
>   I'm attempting to build Blender, 2,7,6 but am running into a problem 
> during linking. I am getting a series of errors referring to an, for 
> example:
> 
> unresolved reference to 'Imf_2_1::Header::view[abi:cxx11]() const
> 
> There are a whole series of these errors all referencing undefined 
> things contained within a library called "Imf_2_1". I've done some 
> googling and I think this is something to do with a library from 
> Industrial Light & Magic but other than that, I can't work things out. 
> Has anyone come across this sort of problem before I have to post the 
> whole gory details of this problem.
> 
>   Any thoughts greatly appreciated,
>   Andrew

When I've seen errors like that in the past my first step has been to
make sure all my libraries have been rebuilt with the new GCC.

Don't know if this is your issue and could be completely off, but a
recent news entry is:

2015-10-22-gcc-5-new-c++11-abi
  Title GCC 5 Defaults to the New C++11 ABI
  AuthorMike Frysinger 
  Posted2015-10-22
  Revision  2

  GCC 5 uses the new C++ ABI by default.  When building new code,
  you might run
  into link time errors that include lines similar to:
  ...: undefined reference to
  '_ZNSt6chrono12steady_clock3nowEv@GLIBCXX_3.4.17'

  Or you might see linkage failures with "std::__cxx11::string" in
  the output.

  These are signs that you need to rebuild packages using the new
  C++ ABI.
  You can quickly do so by using revdep-rebuild (from gentoolkit).

  For gentoolkit-0.3.1 or higher:
  # revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc

  For previous versions of gentoolkit:
  # revdep-rebuild --library 'libstdc\+\+\.so\.6' -- --exclude gcc

  For more details, feel free to peruse:
  https://developerblog.redhat.com/2015/02/05/gcc5-and-the-c11-abi/
  
https://blogs.gentoo.org/blueness/2015/03/10/the-c11-abi-incompatibility-problem-in-gentoo/




Re: [gentoo-user] Re: openssl upgrade may miss some needed rebuilds

2016-03-02 Thread Todd Goodman
* Nikos Chantziaras  [160302 10:16]:
> On 02/03/16 16:41, walt wrote:
> > Today's upgrade of openssl to 1.0.2g-r1 may cause some necessary
> > rebuilds to fail due to missing symbol errors.
> >
> > Example:  libcurl was broken and caused the rebuilds of virtualbox and
> > git to fail until I forced a rebuild of curl.  Any installed package
> > that is actually linked against openssl will be affected by this,
> > notably curl or wget, which may prevent portage from fetching source
> > files.
> 
> Does that mean that the library name is the same and the "preserve-libs" 
> FEATURE doesn't kick in in this case?

It's not working for me either and I've had to manually rebuild curl and
w3m.

Todd



Re: [gentoo-user] PYTHON_SINGLE_TARGET & libreoffice

2016-02-27 Thread Todd Goodman
* Alan McKinnon  [160227 14:42]:
> I don't know much about PYTHON_SINGLE_TARGET and PYTHON_TARGET, it all
> seemed to just work so I never looked further. Until now. Of all
> packages, libreoffice seems to want only python3:

I was in the same position until my last updates didn't work either.

> 
> I can set it in make.conf but as expected that causes all manner of
> other packages to fail emerge checks as they need python2.7.

What I did was add the expanded USE flag for python3_4
(python_single_target_python3_4 I think, but doublecheck the output to
be sure) in package.use for libreoffice for the same reason (I had other
packages that still need python2.7.)
[..SNIP..]

Todd



Re: [gentoo-user] https://wiki.gentoo.org/wiki/Traffic_shaping

2015-11-23 Thread Todd Goodman
* Peter Humphrey  [151123 07:15]:
> On Monday 23 November 2015 12:11:36 Peter Humphrey wrote:
> > On Monday 23 November 2015 12:29:42 lee wrote:
> > > Neil Bothwick  writes:
> > > > Grepping .config proves nothing. If a requirement of the option is not
> > > > set, the option may not appear in .config. The only reliable test is
> > > > the
> > > > search facility in make *config.
> > > 
> > > Search facility?
> > > 
> > > I only use menuconfig and often times, it's difficult to find a
> > > particular option I'm looking for.
> > 
> > Touch the / key, then enter the option name minus the CONFIG_ prefix. Case
> > is not sensitive.
> 
> I forgot to add that if more than one result is returned, they're numbered. 
> Then if you hit the number key of the one you want, you go straight to it.

And when you exit from reading that selection you get back to the
results list.

It's pretty slick and sure beats looking where I "think" it should be or
grepping KConfig files.

Todd



Re: [gentoo-user] emerging squid indefinitely

2015-11-23 Thread Todd Goodman
* lee  [151123 16:05]:
> Alan McKinnon  writes:
> 
> > On 23/11/2015 17:02, lee wrote:
> >> 
> >> Hi,
> >> 
> >> emerging squid doesn't seem to ever finish:
> >> 
> >> 
> >> [...]
> > Emerging (9 of 9) net-proxy/squid-3.5.6::gentoo
> > Jobs: 8 of 9 complete, 1 runningLoad avg: 0.37, 0.61, 
> > 0.53
> >> 
> >> 
> >> What would I look at, without interrupting emerge, to find out what's
> >> going on?
> >> 
> >
> >
> > tail the build log
> 
> Which is where?  There isn't anything in
> /var/log/portage/elog/summary.log, and /var/log/emerge.log only says:
> 
> 
> 1448288177:  ::: completed emerge (8 of 9) net-libs/gnutls-3.3.17.1 to /
> 1448288177:  >>> emerge (9 of 9) net-proxy/squid-3.5.6 to /
> 1448288177:  === (9 of 9) Cleaning 
> (net-proxy/squid-3.5.6::/usr/portage/net-proxy/squid/squid-3.5.6.ebuild)
> 1448288177:  === (9 of 9) Compiling/Merging 
> (net-proxy/squid-3.5.6::/usr/portage/net-proxy/squid/squid-3.5.6.ebuild)
> 
> 
> It's still pretending that it's compiling, hours later ...

It should be at /var/tmp/portage/net-proxy/squid-3.5.6/temp/build.log.

Todd



Re: [gentoo-user] Re: Big problem: Seamonkey

2015-11-19 Thread Todd Goodman
* Raffaele BELARDI  [151119 10:24]:
> Alan Grimes wrote:
> > Okay, since just dumping the legacy e-build into the portage tree would
> > be too easy, it was prevented. How do I build an ebuild out-of-tree? =(
> >
> 
> create a portage overlay and put your ebuild in there, then mask 
> seamonkey > 2.38 in package.mask:
> 
> 
> $ ll /usr/portage/local/mygentoo/www-plugins/adobe-flash/
> total 8
> -rw-r--r-- 1 portage portage 3561 Jul 22  2013 
> adobe-flash-10.3.183.90.ebuild
> -rw-r--r-- 1 portage portage  786 Jul 22  2013 Manifest
> 
> $ grep OVERLAY /etc/portage/make.conf
> # PORTDIR_OVERLAY is a directory where local ebuilds may be stored without
> #PORTDIR_OVERLAY=/usr/portage/local/mygentoo
> 
> I don't remember the details since I did it a long time ago and no 
> longer need it.
> 
> raffaele

I believe using PORTDIR_OVERLAY is now deprecated and overlays are
configured in /etc/portage/repos.conf/*

Check out:

https://wiki.gentoo.org/wiki/Overlay/Local_overlay

Todd



Re: [gentoo-user] Re: Big problem: Seamonkey

2015-11-19 Thread Todd Goodman
* Raffaele BELARDI <raffaele.bela...@st.com> [151119 10:45]:
> Todd Goodman wrote:
> > I believe using PORTDIR_OVERLAY is now deprecated and overlays are
> > configured in /etc/portage/repos.conf/*
> >
> > Check out:
> >
> > https://wiki.gentoo.org/wiki/Overlay/Local_overlay
> 
> Good to know, I suppose the bit:
> 
>root # repoman manifest
> 
> is equivalent to:
> 
>root # ebuild  manifest
> 
> right?

I assume so but I always still do the above (ebuild 
manifest) and it still works for me.

Todd



Re: [gentoo-user] Re: [WAY OT] wanna learn networking internals

2015-09-04 Thread Todd Goodman
* Alan McKinnon  [150904 08:15]:
> On 03/09/2015 21:46, Francisco Ares wrote:
[..SNIP..]
> > - there was a teletype
> > (remember those?) 
> 
> Golf balls. Gods, those things made a racket.

I think the golf balls you're referencing were the IBM selectrics?

[..SNIP..]
> Oh no, not punched paper tape. All I remember is thousands of tiny
> yellow punched shards that floated everywhere like confetti

Chads.  Just like the hanging chad debacle here in the US.  (I never
understood why everyone hated chad enough to string him up, but...)

> 
> > Thanks for the opportunity for an old story to be remembered.
> 
> We old farts here reminisce about every 6 months or so. It usually
> starts when someone asks a question like: did you ever work with those
> original 8 inch floppies? and the thread goes on for days :-)

I still do.  Along with teletypes, line printers, PDP-8s, PDP-11s,
vaxen, paper tape, 10MB hard drives that weigh 200lbs, etc.

All for fun of course.

Todd



Re: [gentoo-user] What is the correct version of ncurses on ~amd64 now?

2015-09-01 Thread Todd Goodman
* Fernando Rodriguez  [150831 20:35]:
[..SNIP..]
> Hmm, I keyworded ncurses and this is what portage wants to do:
> 
> [ebuild  r  U ~] sys-libs/ncurses-6.0-r1:0/6::gentoo [5.9-r5:0/5::fernan] 
> USE="cxx doc gpm tinfo unicode -ada -debug -minimal -profile -static-libs {-
> test%} -threads% -trace" ABI_X86="32 (64) -x32" 3,059 KiB
> [ebuild U ~] sys-libs/ncurses-5.9-r101:5::gentoo [5.9-r99:5::gentoo] 
> USE="gpm tinfo unicode (-ada%) (-cxx%*) (-static-libs%)" ABI_X86="32 (64) -
> x32" 0 KiB
> [ebuild  rR   ~] sys-devel/gdb-7.10::gentoo  USE="client expat python server 
> zlib -lzma -multitarget -nls {-test} -vanilla" 
> PYTHON_SINGLE_TARGET="python2_7 
> -python3_3 -python3_4" PYTHON_TARGETS="python2_7 python3_4 -python3_3" 0 KiB
> [ebuild  rR] app-misc/screen-4.3.1::gentoo  USE="pam -debug -multiuser -
> nethack -selinux" 0 KiB
> [ebuild  rR] app-emulation/wine-1.6.2::gentoo  USE="X alsa cups custom-
> cflags fontconfig gecko jpeg lcms ldap mp3 ncurses openal opengl perl png 
> prelink pulseaudio run-exes samba ssl threads truetype udisks v4l xcomposite 
> xinerama xml -capi -dos -gphoto2 -gsm -gstreamer -mono -nls -odbc -opencl -
> osmesa -oss -realtime -scanner -selinux {-test}" ABI_X86="32 64 -x32" 
> LINGUAS="-ar -bg -ca -cs -da -de -el -en -en_US -eo -es -fa -fi -fr -he -hi 
> -hr 
> -hu -it -ja -ko -lt -ml -nb_NO -nl -or -pa -pl -pt_BR -pt_PT -rm -ro -ru -sk -
> sl -sr_RS@cyrillic -sr_RS@latin -sv -te -th -tr -uk -wa -zh_CN -zh_TW" 0 KiB
> 
> 
> That looks dangerous to me because the first build will upgrade my 5.9 
> installation to 6.0 and the second will reinstall 5.9. 
> 
> So what happens in between when I have no 5.9 installed but everything is 
> linked against it? Won't it need bash to build the second one? What if the 
> 2nd 
> build fails? Will stuff linked against 5.9 work with 6.0?

I'm running ~x86 and ~amd64 and update daily so hopefully some of what I'll
relate below won't apply to anyone else who doesn't do that.

But first when I got ncurses-6.0 I then couldn't build ghc because the
binary build tools were linked against ncurses-5.x (this has been fixed
now.)  At the time I could get around it by installing ncurses-5.0 as
the ncurses:5 slot.  Since then however ncurses:5 seems to give
ncurses-6.0 and ncurses:0 is ncurses-6.1 (though I could be mistaken.)

Anyway, ncurses-6.0 and ncurses-5.9 were coinstalled and happy together
as you'd expect from a slotted package.

However, yesterday there were problems with more ncurses changes and
readline.  Somehow the build of sys-libs/readline went awry and it
produced a .so without some symbols needed by gawk and bc (or more
likely, they needed to be rebuilt but couldn't be.)  This prevented
ncurses from being rebuilt since the build requires awk and prevented my
kernel from being rebuilt because it requires bc.  But readline couldn't
be rebuilt because it required ncurses.  I could be off on the actual
interdependencies but bottom line is that I couldn't get out of the
circular dependencies (and there were no use flags to turn then off.)
Even trying to build with --nodeps didn't get me out of the hole.

In the end I had to pull a gawk off a stage3 and
/{lib,lib64}/libreadline.so.6.3 off other systems to get out of it.

Hopefully that was all just because of running ~x86 and ~amd64 (I don't
want to call it unstable because it's worked great for me for years and
is very stable due to excellent work from Gentoo devs!) and my just
catching things in flux.

Presented here in case someone experiences readline/ncurses problems in
the future unrelated to this original ncurses issue.

Todd



Re: [gentoo-user] advice on transitioning from package.use file to package.use directory

2015-08-31 Thread Todd Goodman
* Alexander Kapshuk  [150831 15:35]:
> Having read the email exchange on the possibility of using
> 'package.use' as a directory, I thought I would give that a try.
> 
> Here is what I have attempted so far.
> 
> cd /etc/portage
> mv package.use package.use.COPY
> mkdir package.use
> cd package.use
> awk -F'[/\t ]+' '{printf("echo \047%s\047 >> ", $0); sub("-[0-9]+.*",
> "", $2); print $2}' ../package.use.COPY
> 
> NOTE; the awk output just generates the command lines for the shell to
> run. If the output is acceptable, it should be piped through to the
> shell.
> 
> Here is the contents of the original 'package.use' file:
> 
> cat package.use
> =dev-lang/python-2.7.9-r1 sqlite
> >=dev-ruby/json-1.8.2-r1 ruby_targets_ruby21
> >=dev-ruby/racc-1.4.11 ruby_targets_ruby21
> >=dev-ruby/rake-0.9.6-r1 ruby_targets_ruby21
> >=dev-ruby/rdoc-4.0.1-r2 ruby_targets_ruby21
> >=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21
> >=media-libs/harfbuzz-0.9.38 icu
> >=media-video/ffmpeg-2.6.3 theora
> >=sys-libs/zlib-1.2.8-r1 minizip
> >=virtual/rubygems-10 ruby_targets_ruby21
> gnome-base/gvfs -http gphoto2 mtp
> media-video/vlc a52 aac bidi cdda cdio dts dvd flac freetype gnutls
> httpd libass live lua mad matroska mpeg ogg oggvorbis qt4 stream svga
> theora vcd vlm wxwindows xv
> net-print/hplip scanner qt4
> sys-apps/busybox -pam
> sys-devel/gcc objc
> sys-process/cronie anacron
> x11-base/xorg-server udev
> xfce-extra/xfce4-power-manager -udisks
> xfce-extra/xfce4-sensors-plugin hddtemp lm_sensors
> 
> NOTE: There are two entries for 'rubygems' there.
> 
> Here is the awk script output:
> 
> echo '=dev-lang/python-2.7.9-r1 sqlite' >> python
> echo '>=dev-ruby/json-1.8.2-r1 ruby_targets_ruby21' >> json
> echo '>=dev-ruby/racc-1.4.11 ruby_targets_ruby21' >> racc
> echo '>=dev-ruby/rake-0.9.6-r1 ruby_targets_ruby21' >> rake
> echo '>=dev-ruby/rdoc-4.0.1-r2 ruby_targets_ruby21' >> rdoc
> echo '>=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21' >> rubygems
> echo '>=media-libs/harfbuzz-0.9.38 icu' >> harfbuzz
> echo '>=media-video/ffmpeg-2.6.3 theora' >> ffmpeg
> echo '>=sys-libs/zlib-1.2.8-r1 minizip' >> zlib
> echo '>=virtual/rubygems-10 ruby_targets_ruby21' >> rubygems
> echo 'gnome-base/gvfs -http gphoto2 mtp' >> gvfs
> echo 'media-video/vlc a52 aac bidi cdda cdio dts dvd flac freetype
> gnutls httpd libass live lua mad matroska mpeg ogg oggvorbis qt4
> stream svga theora vcd vlm wxwindows xv' >> vlc
> echo 'net-print/hplip scanner qt4' >> hplip
> echo 'sys-apps/busybox -pam' >> busybox
> echo 'sys-devel/gcc objc' >> gcc
> echo 'sys-process/cronie anacron' >> cronie
> echo 'x11-base/xorg-server udev' >> xorg-server
> echo 'xfce-extra/xfce4-power-manager -udisks' >> xfce4-power-manager
> echo 'xfce-extra/xfce4-sensors-plugin hddtemp lm_sensors' >>
> xfce4-sensors-plugin
> 
> The two 'rubygems' entries I had in the original 'package.use' file
> went into a single 'rubygems' file:
> 
> cat rubygems
> >=dev-ruby/rubygems-2.2.5-r1 ruby_targets_ruby21
> >=virtual/rubygems-10 ruby_targets_ruby21
> 
> Is this format acceptable? Or should I have used two separate files,
> one for 'dev-lang/rubygems', and another for 'virtual/rubygems'?
> 
> I have run 'emerge -auUND @world' since the transition, which voiced
> no complaints so far.
> 
> The list's input would be appreciated.

Those should all be fine.  I tend to make a file per package but I think
you could have just moved your original package.use into the
/etc/portage/package.use directory and everything would be fine (aside
from you not gaining any benefit from separate files.)

Todd



Re: [gentoo-user] Re: ncurses: reductio ad absurdum

2015-08-29 Thread Todd Goodman
* Philip Webb purs...@ca.inter.net [150828 18:35]:
 150828 Rich Freeman wrote:
  To really appreciate git you should understand git objects
  and their references, what a commit, tree, and blob are.
  Also, the whole copy-on-write concept and content-hashing concept.
  I used to think git looked really complicated until I sat
  through a  1 hr talk that focused mostly on the data model.
  Once you understand the data model, you understand everything.
  That doesn't take a lot of time.  It does take a moderate amount of time
  learning the right things.  They're not found in the manpages.
  Like I said, beautiful design, horrible interface.
 
 So is there a Gentoo doc -- Wiki, presumably --
 explaining to users -- users, not dev's or Git addicts --
 the essentials of Git, so that they can readily update using it ?
 If so, I'm willing to see if I can use it ;
 if not, I would suggest it sb a top priority for dev's to write.

You don't *need* to know anything about git to update using it.

Just change your /etc/portage/repos.conf/gentoo.conf as Rich outlined
(and move away your rsync'd /usr/portage or wherever your portage tree
goes.)

Then when you emerge --sync (or emaint -A sync, etc.) it will sync via
git and emerge will work as always.

Now if you want to do more or just want to learn more about git then
that's different.

Todd




Re: [gentoo-user] Re: ncurses: reductio ad absurdum

2015-08-29 Thread Todd Goodman
* Dale rdalek1...@gmail.com [150829 11:49]:
 Todd Goodman wrote:
  * Philip Webb purs...@ca.inter.net [150828 18:35]:
  150828 Rich Freeman wrote:
  To really appreciate git you should understand git objects
  and their references, what a commit, tree, and blob are.
  Also, the whole copy-on-write concept and content-hashing concept.
  I used to think git looked really complicated until I sat
  through a  1 hr talk that focused mostly on the data model.
  Once you understand the data model, you understand everything.
  That doesn't take a lot of time.  It does take a moderate amount of time
  learning the right things.  They're not found in the manpages.
  Like I said, beautiful design, horrible interface.
  So is there a Gentoo doc -- Wiki, presumably --
  explaining to users -- users, not dev's or Git addicts --
  the essentials of Git, so that they can readily update using it ?
  If so, I'm willing to see if I can use it ;
  if not, I would suggest it sb a top priority for dev's to write.
  You don't *need* to know anything about git to update using it.
 
  Just change your /etc/portage/repos.conf/gentoo.conf as Rich outlined
  (and move away your rsync'd /usr/portage or wherever your portage tree
  goes.)
 
  Then when you emerge --sync (or emaint -A sync, etc.) it will sync via
  git and emerge will work as always.
 
  Now if you want to do more or just want to learn more about git then
  that's different.
 
  Todd
 
 
 
 
 
 I think what we are talking about is viewing things like the changelogs
 and such, which are currently not synced with the tree.  Or did we
 change to some other topic and I missed it?  I tracked back to Alan
 Mackenzie's split of this thread
 .
 Dale

That's fine.  I was addressing Philip wanting to update via git.

If you want more than just synching and emerge then learn the one or two
git commands you need.

As Rich said, just use git log and git diff if you want to see changes.

It's not hard, just different.

Todd



Re: [gentoo-user] ncurses: reductio ad absurdum

2015-08-29 Thread Todd Goodman
* Fernando Rodriguez frodriguez.develo...@outlook.com [150829 12:59]:
 On Friday, August 28, 2015 2:24:37 PM Rich Freeman wrote:
  Those who wish to use git can do so, and I'd encourage people to try.
  It really does have a lot of advantages.  Oh, and it makes it really
  easy to contribute patches/etc (just edit whatever you want in
  /usr/portage and type git diff).
 
 I wouldn't advise that on the portage tree because if you edit any files 
 under 
 version control git will refuse to pull new changes until you either commit 
 the changes or undo them by checking out the file.

It will still pull but you'll potentially have conflicts to resolve.

A bad idea in any case.

Todd



Re: [gentoo-user] CD ripper that generates song titles?

2015-08-27 Thread Todd Goodman
* Neil Bothwick n...@digimed.co.uk [150827 14:57]:
 On Thu, 27 Aug 2015 16:43:41 +0200, Alan McKinnon wrote:
 
   Kids still buy CDs? My grandson recently asked me What's a record?
   when I used the term.
 
  I live in a different universe to you called South Africa and CDs are
  a big market here. The bulk of the population (none of whom are early
  adopters) don't trust online music stores; they want a thing they can
  hold in their hand and that thing is a CD :-)
 
 Round here, the kids (and most adults) are happy to entrust everything to
 Apple and Facebook. I prefer physical media, but I always considered that
 a symptom of being an old fart.

I've always considered my regard for media as being an old fart as well.

Though two of my three kids are building vinyl collections now.

 
  vinyls are also making a comeback; it's a whole retro marketing thing.
 
 Vinyl has always been the medium of choice for audio snobs...

I prefer reel to reel tape...



Re: [gentoo-user] Re: Resizing a FAT partition?

2015-07-30 Thread Todd Goodman
* Francisco Ares fra...@gmail.com [150730 15:53]:
[..SNIP..}
 Flash memory devices are tricky when you try do defrag, as there is extra
 logic inside them to do the opposite: spread as much data as possible, as
 to equalize the number of write operations - the main limit for flash
 memory - for all sectors.
 
 Most defrag tools do this by reading files to RAM, reordering them, erasing
 the originals from the media, then writing them again, using no direct
 sector access, leaving that to the operating system. And it works on
 magnetic media, as it creates empty spaces suitable for continuous files.
 
 So that extra logic may fool you, making you believe it worked, when it
 didn't.
 
 Considering this, as already said, I would copy everything to another
 media, set up a new partition layout, format the new partitions as desired,
 then get all data back to the new layout.
 
 Just my 2 cents, of course.
 
 Good luck
 Francisco

I don't believe this is right (though I've been wrong before.)

Both partitions and filesystems (including defragging filesystems)
operate at the block level.

Wear leveling and bad block handling happen below the block level.

If you gave flash memory data for block n and later tried to read block
n and got back something different it would be very broken.

Of course physically logical block n might actually be stored in
physical block y, but the flash controller (or whatever is responsible
for wear leveling and bad block mapping) still needs to know to give
back the data from physical block y when it's asked for logical block n.

Todd



Re: [gentoo-user] Resizing a FAT partition?

2015-07-30 Thread Todd Goodman
* meino.cra...@gmx.de meino.cra...@gmx.de [150730 14:32]:
 Hi,
 
 I have a SDcard of this layout:
 Number  Start   End SizeType File system  Flags
  1  4194kB  32.0GB  32.0GB  primary  fat32lba
 
 There are about 11 GByte of data on it.
 
 The final result should be a SDcard with two partitions.
 First a FAT32 with about 20GByte and a second with 10GByte
 (ext4).
 
 I took a look at parted and the resize command, which sounds
 a little cryptic to me:
 
   resizepart partition end
  Change the end position of partition.  Note that this 
 does  not  modify  any
  filesystem present in the partition.
 
 One should use resize2f for that purpose.
 
 Firstly I want to shrink the first partition and secondly it is a
 plain FAT32 partition not ext-something. I did not find a 
 resizefat32 or similiar.
 
 What tools do I need?
 (beside the way to backup the SDcard, reinitialize it, put 2
 partitions on it and copy back the stuff.)
 
 How can I acchieve what I want?
 
 Thank you very much in advance for any help!
 
 Best regards,
 Meino

Hi Meino,

The difficulty with shrinking partitions is that you need to shrink
the filesystem in the partition first and then change the partition
information (which you can then do if you're careful with your favorite
partition tool.)

There are definitely tools to do this and I'm surprised parted says it
doesn't touch the filesystem in the partition (but that might have been
a recent parted change?)

Personally, since you're going to play around with the partitions and
resizing existing filesystems, you should really have a backup.

If you're going to have a backup then the easiest thing to me is to
create new partitions and then filesystems and then restore from the
backup.

However, if you really want to live dangerously, the last gparted boot
disc image I used could shrink FAT32 filesystems and partitions.  You
might want to see if it still can do so.

Good luck!

Todd



Re: [gentoo-user] To Wifi or not to Wifi...

2015-07-28 Thread Todd Goodman
* meino.cra...@gmx.de meino.cra...@gmx.de [150727 23:07]:
[..SNIP..]
 I tried the stripped down version of wpa_supplicat.conf with mixed
 results. I changed it as follows:
 
 hw_mode=n # a simply means 2.4GHz
 channel=0 # the channel to use, 0 means the AP will search for 
 the channel with the least interferences 
 ieee80211d=1  # limit the frequencies used to those allowed in the 
 country
 country_code=DE   # the country code
 ieee80211n=1  # 802.11n support
 ieee80211ac=1 # 802.11ac support
 wmm_enabled=1 # QoS support
  
 ssid=somename # the name of the AP
 auth_algs=1   # 1=wpa, 2=wep, 3=both
 wpa=2 # WPA2 only
 wpa_key_mgmt=WPA-PSK 
 rsn_pairwise=CCMP
 wpa_passphrase=XX
 
 
 I changed hw_mode to n since a is not supported by the tablet PC
 which I want to connect to my PC.
 I set the password to something different as shown here... ;)
 
 The output is:
 Successfully initialized wpa_supplicant
 Line 1: unknown global field 'interface=wlan0'.
 Line 1: Invalid configuration line 'interface=wlan0'.
 Line 2: unknown global field 'hw_mode=n'.
 Line 2: Invalid configuration line 'hw_mode=n'.
 Line 3: unknown global field 'channel=0'.
 Line 3: Invalid configuration line 'channel=0'.
 Line 4: unknown global field 'ieee80211d=1'.
 Line 4: Invalid configuration line 'ieee80211d=1'.
 Line 5: unknown global field 'country_code=DE'.
 Line 5: Invalid configuration line 'country_code=DE'.
 Line 6: unknown global field 'ieee80211n=1'.
 Line 6: Invalid configuration line 'ieee80211n=1'.
 Line 7: unknown global field 'ieee80211ac=1'.
 Line 7: Invalid configuration line 'ieee80211ac=1'.
 Line 8: unknown global field 'wmm_enabled=1'.
 Line 8: Invalid configuration line 'wmm_enabled=1'.
 Line 10: unknown global field 'ssid=somename'.
 Line 10: Invalid configuration line 'ssid=somename'.
 Line 11: unknown global field 'auth_algs=1'.
 Line 11: Invalid configuration line 'auth_algs=1'.
 Line 12: unknown global field 'wpa=2'.
 Line 12: Invalid configuration line 'wpa=2'.
 Line 13: unknown global field 'wpa_key_mgmt=WPA-PSK'.
 Line 13: Invalid configuration line 'wpa_key_mgmt=WPA-PSK'.
 Line 14: unknown global field 'rsn_pairwise=CCMP'.
 Line 14: Invalid configuration line 'rsn_pairwise=CCMP'.
 Line 15: unknown global field 'wpa_passphrase=stardancer2107631'.
 Line 15: Invalid configuration line 'wpa_passphrase=X'.
 Failed to read or parse configuration 
 '/etc/wpa_supplicant/wpa_supplicant.conf'.
  *   start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant'
 [ !! ]
  * ERROR: net.wlan0 failed to start
 [1]4612 exit 1 /etc/init.d/net.wlan0 restart

This looks like your /etc/wpa_supplicant/wpa_supplicant.conf file is not
formatted correctly.

I believe most of the first things you're setting are defaulted, but
even so, I'd remove them to get the rest working first (I think
ieee80211d is enabled for Global Roaming so it won't transmit on
channels you shouldn't be in your country, but you could doublecheck if
you're really concerned.)

The lines starting with ssid=somename should be inside a:

network={
}

enclosure for network configuration.

Perhaps try with just a network block and see if wpa_supplicant likes it
OK.  And make sure there's no funny line endings or the like.

Also, you didn't  out your wpa_passphrase in the error message above
so hopefully it's a fake one or you've changed it by now.

Todd



Re: [gentoo-user] To Wifi or not to Wifi...

2015-07-28 Thread Todd Goodman
* meino.cra...@gmx.de meino.cra...@gmx.de [150728 11:28]:
[..SNIP..]
 Hi Todd,
 
 thanks for your help! :)
 
 I will to adjust the config file and see what will happen...
 Dont worry about the password...it is a fake one. If everything is
 running fine, if will choose a more random one.
 
 By the way...While tumbling down the google hole ;) I came across
 hostapd which exactly seems to be build for the purpose I want: An access 
 point.
 
 BUT:
 I could not decide, what tutorial is correct:
 Do I still need wpa_supplicant with hostapd or
 Don't I neeed wpa_supplicant?
 
 Thank you very much in advance for any help!
 Best regards,
 Meino

Hi Meino,

I don't think you need wpa_supplicant if you're using hostapd (unless
you need to also connect to a WAP in additional to being a WAP
yourself, and in that case I don't know if it requires a different
interface to do that.)

I think wpa_supplicant is a supplicant (i.e., client only) component.

But I could be wrong and hopefully someone else will chime in with more
hostapd experience than I have.

Regards,

Todd



Re: [gentoo-user] To Wifi or not to Wifi...

2015-07-28 Thread Todd Goodman
* meino.cra...@gmx.de meino.cra...@gmx.de [150728 13:25]:
 Todd Goodman t...@bonedaddy.net [15-07-28 19:08]:
  * meino.cra...@gmx.de meino.cra...@gmx.de [150728 11:28]:
  [..SNIP..]
   Hi Todd,
   
   thanks for your help! :)
   
   I will to adjust the config file and see what will happen...
   Dont worry about the password...it is a fake one. If everything is
   running fine, if will choose a more random one.
   
   By the way...While tumbling down the google hole ;) I came across
   hostapd which exactly seems to be build for the purpose I want: An 
   access point.
   
   BUT:
   I could not decide, what tutorial is correct:
   Do I still need wpa_supplicant with hostapd or
   Don't I neeed wpa_supplicant?
   
   Thank you very much in advance for any help!
   Best regards,
   Meino
  
  Hi Meino,
  
  I don't think you need wpa_supplicant if you're using hostapd (unless
  you need to also connect to a WAP in additional to being a WAP
  yourself, and in that case I don't know if it requires a different
  interface to do that.)
  
  I think wpa_supplicant is a supplicant (i.e., client only) component.
  
  But I could be wrong and hopefully someone else will chime in with more
  hostapd experience than I have.
  
  Regards,
  
  Todd
  
 
 Hi,
 
 Slowly but surely I got a lot of ants in my head...or it feels like.
 There are SO MANY tutorial out there and every doc says something
 different.
 
 No I got this:
 
 rfkill list
 1: phy1: Wireless LAN
   Soft blocked: yes
   Hard blocked: no
 
 Damn! This is the by far the most complicated thing which came across 
 my way with linux...
 
 
 Best regards,
 Meino
 
 

Hi Meino,

Since it's soft blocked I think you need an:

rfkill unblock wifi

But I haven't had to worry about rfkill before so might have it wrong.

Todd



Re: [gentoo-user] To Wifi or not to Wifi...

2015-07-28 Thread Todd Goodman
* meino.cra...@gmx.de meino.cra...@gmx.de [150728 14:44]:
[..SNIP..]
 Hi Todd,
 
 ok, I've fixed that...now it displays another error:
 
 /usr/sbin/hostapd /etc/hostapd/hostapd.conf
 Configuration file: /etc/hostapd/hostapd.conf
 wlan0: interface state UNINITIALIZED-COUNTRY_UPDATE
 Using interface wlan0 with hwaddr 14:cc:20:17:24:49 and ssid my ssid
 VLAN: vlan_set_name_type: SET_VLAN_NAME_TYPE_CMD name_type=2 failed: Package 
 not installed
 wlan0: interface state COUNTRY_UPDATE-ENABLED
 wlan0: AP-ENABLED 
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1)
 WPA: wpa_sm_step() called recursively
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to local deauth 
 request
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1)
 WPA: wpa_sm_step() called recursively
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to local deauth 
 request
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1)
 WPA: wpa_sm_step() called recursively
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to local deauth 
 request
 
 
 The vlan thingy seems to be a missing CONFIG in the kernel I use...I
 am currently backing a new one with this option set.
 
 But what is that
 WPA: wpa_sm_step() called recursively
 message telling me?
 The device accessing the AP is an ASUS Memo Pad 7 ME176CX tablet...
 
 Best regards,
 Meino

Hi Meino,

Looking at the code it looks like the WPA: wpa_sm_step() called
recursively message is due to the WPA state machine of hostapd
currently running a step in its state machine and that step then trying
to run another step in the state machine.  It seems like that's an a
hostapd problem, probably triggered by the authentication issues.

Can you post your hostapd.conf file (with passwords and other personal
information redacted?)

It still seems like something with authentication isn't quite right.

Also, have you seen https://github.com/oblique/create_ap

There's even Gentoo instructions for pulling it from an overlay.  It
might be interesting to see what kind of config file that script creates
(and if it works.)

Regards,

Todd




Re: [gentoo-user] To Wifi or not to Wifi...

2015-07-28 Thread Todd Goodman
* meino.cra...@gmx.de meino.cra...@gmx.de [150728 14:08]:
[..SNIP..]
 Hi Todd,
 
 I unblocked with rfkill and I am a step further:
 The SSID is shown on my tablet together with a 
 boobastic signal strength (no wonder: distance is below 30 cm...;)
 BUT: No connect...:
 
 I start hostapd by hand since wpa_supplicant seems to be hardcoded
 somewhere...
 
 Now I got this (stderr of hostapd)
 
 wlan0: interface state COUNTRY_UPDATE-ENABLED
 wlan0: AP-ENABLED 
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1)
 wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd
 wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session 
 55B7C32D-
 wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN)
 wlan0: AP-STA-DISCONNECTED ac:9e:17:e7:c7:bd
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: disassociated
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to inactivity 
 (timer DEAUTH/REMOVE)
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1)
 wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd
 wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session 
 55B7C32D-0001
 wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN)
 wlan0: AP-STA-DISCONNECTED ac:9e:17:e7:c7:bd
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: disassociated
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to inactivity 
 (timer DEAUTH/REMOVE)
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1)
 wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd
 wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session 
 55B7C32D-0002
 wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN)
 wlan0: AP-STA-DISCONNECTED ac:9e:17:e7:c7:bd
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: disassociated
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to inactivity 
 (timer DEAUTH/REMOVE)
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated
 wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1)
 wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd
 wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session 
 55B7C32D-0003
 wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN)
 
 What's happening here...?
 
 I am sure, it is a layer 8 failure ;)
 (me)
 
 Best regards,
 Meino

Hi Meino,

Again, I'm not sure, but it looks like hostapd is set up to do WPA with EAP
(WPA-Enterprise) which uses a RADIUS backend.

Is it possible that you want to make sure your hostapd configuration
file is configured for WPA-PSK (something like:)

auth_algs=1   # 1=wpa, 2=wep, 3=both
wpa=2 # WPA2 only
wpa_key_mgmt=WPA-PSK 
rsn_pairwise=CCMP
wpa_passphrase=somepassword

Sorry if you already posted that you have that already.  I've lost track
of what your hostapd configuration file has in it.

Regards,

Todd



Re: [gentoo-user] To Wifi or not to Wifi...

2015-07-28 Thread Todd Goodman
* meino.cra...@gmx.de meino.cra...@gmx.de [150728 15:31]:
[..SNIP..]
 Hi Todd,
 
 thanks for all your help and patience... :))
 
 The recursive(recursive(recursive).problem.).problem).problem has
 been solved by rebooting my PC (due to the new kernel) and restarting
 the tablet PC.
 
 Now I am fighting against dhcpd...as sson as I want to start that
 beast its telling me that dhcpd.ldap is missing. This was not 
 installed (at least as an example) by emerge. I have no idea what
 is to get into that file.
 
 I will check create_ap...may be it is more intelligent than me in 
 writing config-files ;)
 
 But unfortunately I have to stop my journey here for today...it is
 late here (9:00 pm) and I have to get out early tommorrow (4:00 am).
 
 But /I want/ to get this running finally.
 We will see. 
 As soon I have something new, I will post more of the contents
 of my harddisk ;)
 
 Best regards and thanks again! 8)
 Meino

Hi Meino,

You're welcome.  I'm sorry I couldn't be of more help (and get this
solved!)

I'm sure you will eventually.

Please let us know how it goes once you get back to it.

Good night,

Todd



Re: [gentoo-user] To Wifi or not to Wifi...

2015-07-27 Thread Todd Goodman
Hi Meino,

I don't think you need to worry about the rfkill: Cannot open RFKILL
control device message.

I believe that's for getting status of rfkill switches (the switches on
laptops to disable the WiFi radio.)

A USB WiFi-dongle doesn't generally have those (at least the ones I've
used) and neither does my custom hardware which also gets that warning
but works fine.

I think the bigger issue is the WARNING: net.wlan0 has started, but is
inactive.

I think the next step is trying to run wpa_supplicant by hand and see
what it has to say:

wpa_supplicant -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -dd

(replacing the location of the config file you want to use for the one
after the -c above.)  The -dd ups the debugging info displayed.

Regards,

Todd

* meino.cra...@gmx.de meino.cra...@gmx.de [150727 14:13]:
 Hi,
 
 shocked from over 1000 lines of configurational stuff in
 wpa_supplicant.conf I have manovered to this point
 
 The USB Wifi-dongle now is a TP-LINK WN722N with Atheros chipset  AR9271 
 802.11n
 (thanks for the hint!) which driver is by far easier to compile and
 use as the hassle with this other one...
 
 I started /etc/init.d/hostapd manually and the /etc/init.d/net.wlan0
 and got this here
 
 Successfully initialized wpa_supplicant
 rfkill: Cannot open RFKILL control device 
 [ ok ]
  *   Starting wpa_cli on wlan0 ...
 [ ok ]
  *   Backgrounding ... ...
  * WARNING: net.wlan0 has started, but is inactive
 
 
 I am confused by this...especially by rfkill: Cannot open RFKILL control 
 device...[OK].
 It's feeling like: Unexpected ERROR: SUCCESS
 
 
 What is the above text is trying to tell me?
 
 
 Thank you very much in advance for any help!
 Best regards,
 Meino
 
 
 
 
 
 PS:
 Is there any stripped down version of wpa_supplicant.conf 
 for AP use? Sawing that reminds me a little at manually configuring
 sendmail
 
 



Re: [gentoo-user] gru2-mkconfig tries to read the extended partition ??

2015-07-26 Thread Todd Goodman
* Jc García jyo.gar...@gmail.com [150726 11:28]:
 2015-07-26 8:38 GMT-06:00  gottl...@nyu.edu:
 
  My son wanted me to do that.  I didn't because
 
  Something else to learn (I don't run a vm).
 
  I didn't want to face dell support with linux and xen underneath the
  supported windows.
 
 That's an exaggeration, VirtualBox is just a few clicks and you get a
 VM, really easy and intuitive, common is what almost(even clueless
 people about computers) every noob uses, you should be able to have no
 problem with it  if you are capable of dealing with gentoo. you don't
 need to do  a cluster setup to run a vm.

I like and use VirtualBox a lot (and agree it's easy to use.)

But the performance and USB handling mean that I need Windows or other
OS' on bare metal most of the time.  I don't know how well Dell's crap^W
support stuff runs in a VM.

In the past when I get machine with Windows pre-installed I usually
shrink the Windows partition and then install linux in that space
(generally plenty of disk) if I need to keep Windows around for some
reason (sometimes just because it's a work machine that has Windows
requirements at times.)

It's definitely much better to have Windows installed first and then
Linux as Windows is poorly behaved and treats the entire disk as its
own touching things it has no business to touch.

Todd



Re: [gentoo-user] gru2-mkconfig tries to read the extended partition ??

2015-07-26 Thread Todd Goodman
* Jc García jyo.gar...@gmail.com [150726 12:06]:
 2015-07-26 9:33 GMT-06:00 Todd Goodman t...@bonedaddy.net:
 
  I like and use VirtualBox a lot (and agree it's easy to use.)
 
  But the performance and USB handling mean that I need Windows or other
  OS' on bare metal most of the time.  I don't know how well Dell's crap^W
  support stuff runs in a VM.
 
 The contrary experience here, USB has been the thing that got me to
 use VirtualBox many times, I have put usb drivers, printers, 3g
 modems, even adb trough the pass-trough feature of virtualbox, with no
 problems, in fact for some years for printing purposes I had to use a
 VM, and Virtualbox was the fastest to get working(click conect usb
 printer, install the windows drivers, print). I'm suspecting you also
 didn't run it with a very new computer, a server 2012 could run fine
 for testing some stuff, with 1 core limit and 512M RAM over here,
 using the virtualization capabilities of the processor. but I haven't
 dealt with DELL hardware.

It works OK sometimes with USB but I've had problems getting even USB
disks to be seen by the VM and forget it when the USB devices change a
lot dynamically.  It doesn't work at all in an environment like that.

And I use it with state of the art machines.  Recent quad core i7 machines with 
plenty of memory and using processor virtualization features.  Not just Dell
machines.

And on server machines we've had to move off VirtualBox due to
performance issues.

I'm not knocking VirtualBox.  I love it and continue to use it whenever
I can.

But there are still cases where a native boot is needed for me.

 
 BTW, to Alan, I have never had to call to support for any laptop, but
 do they really have someone that could know more than you to help? I
 would seriously suspect most cases you are just talking to a call
 center agent whom clearly isn't doing a job that requires much
 knowledge about computers, that may be just reading some general
 'reboot your pc' type instructions, and would likely suggest you to go
 to a professional technician at the arise of the slightest seemingly
 serious problem. But I might be wrong, and dell support could be
 awesome(I hardly think so, I know a lot of people who give support at
 call centers).

In the times I've had to deal with support it's usually about doing what
they ask so they finally believe that it's a hardware problem and will
generate the needed RMA # to get replacements.  Sometimes that's running
Dell Diagnostics and sometimes it's just running through something they
know how to do in Windows so they're convinced.



Re: [gentoo-user] Re: Anyone else having a problem with bash?

2015-07-08 Thread Todd Goodman
* Florian Gamböck m...@floga.de [150708 03:15]:
 Am 08.07.2015 um 02:48 schrieb walt:
  Next time this happens I'll include the output of stty -a. 
[..SNIP..]
 
 After a small `diff`, the following changes have been made:
 lnext from ^V to undef; icrnl, icanon, and echo from on to off (they 
 all got prefixed with a -).
 
 Any ideas what can cause this behavior?
 
 Regards,
 --Flo

A program can change terminal settings like this.  For example, when ssh
reads a password it can turn off echo so the password does not show up.

If you interrupt the program (^C) and it doesn't have a handler that
restores the original settings then this can happen.

I haven't looked for that specifically in the ssh source code though.

And it sounds like it's happening to people even without interrupting
programs so it's unlikely the cause of all the problems.

Todd



Re: [gentoo-user] any one using ubuntu phones?

2015-06-29 Thread Todd Goodman
* behrouz khosravi bz.khosr...@gmail.com [150629 11:45]:
 
  It sounds like your problem isn't with Android (which is mostly FOSS -
  or at least the parts you're dealing with here are), but with the
  bootloader on your phone (which is proprietary).
 
 
 No, actually my problem is that why an operating system
 can have decision on what types of apps can I have on my computer.
 if it is foss enough why I am not able to remove everything from my system
 easily.
 I believe when we have free operating system, when can aim for free
 hardware.
 I just hope ubuntu would be a help to open the mobile market like the way
 it helped in desktop.

I assume you mean that you can't remove system and OEM apps?

It's not really the OS that's keeping you from controlling everything,
it's the choices your OEM is making.

Make sure you have open hardware and then install your own firmware.  Look
at Cryogenmod (http://www.cyanogenmod.org/) if you don't want to roll it
all yourself or for examples.

Todd



Re: [gentoo-user] General weirdness - a tale of woe.

2015-05-28 Thread Todd Goodman
* Rich Freeman ri...@gentoo.org [150528 08:45]:
 On Wed, May 27, 2015 at 8:01 PM, Peter Humphrey pe...@prh.myzen.co.uk wrote:
[..SNIP..]
 UUIDs are often preferable in these kinds of configurations, because
 you're less likely to run into duplicate identifiers, they don't
 change, and so on.  If I mount root=UUID=foo, then my initramfs will
 try really hard to find that partition and mount it.  If I mount
 root=label=foo then it will still try hard, but if for some reason I
 have more than one device with that label I could end up booting from
 the wrong one.  If I mount root=/dev/sda1 then my boot may fail if I
 add a new drive, if the kernel behavior changes, if the udev behavior
 changes, and so on.
 
 I don't believe either the kernel or udev makes promises about device
 names being stable.  It often works out this way, but it isn't ideal
 to depend on this.
 
 -- 
 Rich

It's worse than just getting the wrong filesystem mounted if the wrong
filesystem gets mounted as /tmp.

OpenRC's bootmisc will wipe the /tmp directory at boot (and likely
systemd as well, but I haven't checked.)

This means if disk device names get shifted and something other than the
proper /tmp device gets mounted as /tmp then it's restore-from-backups
time.

This happened to me and wiped /home (the /dev/md* devices got renumbered
once.)

So I've switched to UUID mounts so that problem doesn't happen in the
future.

It's really unpleasant if that happens.

Todd



Re: [gentoo-user] Hard drive storage questions

2015-05-09 Thread Todd Goodman
* Rich Freeman ri...@gentoo.org [150509 09:00]:
[..SNIP..]
 One thing you can't cheaply do with Amazon is verify your backups.
 Duplicity will happily check the data files against the manifest
 hashes with a simple command, but it will cost you 10c/GB for whatever
 you verify, since it will need to be transferred out.  I guess another
 option is to launch an EC2 instance with duplicity on it and have it
 do the verify.  That would be an internal Amazon transfer which is
 both free and much faster, but it will cost you a few cents per hour
 for the CPU time.  I also don't know if duplicity can verify a backup
 without the encryption keys - if it can't then you'll have to upload
 your keys to EC2 which means Amazon could read your backups if they
 wanted to.  Otherwise duplicity is encrypting locally and all Amazon
 does is store a bunch of encrypted data and regurgitate it on demand.
 
 --
 Rich

Thanks for the great post Rich.

As for keys, you could use Amazon's AWS Key Management Service.
Of course they could be sitting there gathering keys, but at some point
you either have to trust they'll do what they say or simply decide not
to use them at all (IMNHO.)

You could also use AWS Key Management for backup data you want
reasonably secured and then your own keys for data you want more
highly secured (hopefully much smaller so the verify costs are more
reasonable.)

Todd



Re: [gentoo-user] grep -lr ignoring subdirs that start with dot (.)?

2015-04-17 Thread Todd Goodman
* Tanstaafl tansta...@libertytrek.org [150417 16:58]:
 Hi all,
 
 Ok, this is driving me crazy...
 
 I want to be able to quickly search an entire users Maildir for an email
 containing a certain string, but output just the filenames WITH THE
 DATE/TIMEs...
 
 So, from the target users top level Maildir:
 
 grep -lr searchstring * | xargs ls -lt
 
 ^^^ appears to work, and does return results for the cur and new
 subdirs, but seems to be ignoring the rest of the Maildirs. Maybe it has
 something to do with the fact that they start with dots (ie, .Sent,
 .Trash, etc)??
 
 Anyone have any idea why the above doesn't search them all?
 
 Thanks

Try?

grep -lr searchstring * | xargs ls -lta

Maybe?

Todd



Re: [gentoo-user] Re: configure.ac and Makefile.am easy_view ?

2015-03-28 Thread Todd Goodman
* Michael Orlitzky m...@gentoo.org [150328 12:11]:
 On 03/28/2015 10:36 AM, James wrote:
  James wireless at tampabay.rr.com writes:
  
  
  Often, I need to inspect and ponder these files: configure.ac and Makefile
  .am for a given ebuild. Is there an easy way to look at them with 
  compiling the ebuild ? 
  
  oops,
  
  Should be : Often, I need to inspect and ponder these files: configure.ac
  and Makefile.am for a given ebuild. Is there an easy way to look at them
  *without*  compiling the ebuild ? 
  
 
 Those files are part of the upstream tarball. The easiest way to fetch
 the sources without compiling them is with `emerge -f`. Then you can
 copy the tarball out of $DISTDIR and unpack it somewhere.
 
 Some ebuilds may patch configure.ac or Makefile.am -- in that case it's
 a little harder. I'm sure there's an elegant way to do it, but what I
 usually do is begin to emerge the package and Ctrl-C it when it starts
 compiling. Then you can find the sources under /var/tmp/portage.
 

Wouldn't 'ebuild ebuild_file_name prepare' do what you want without
trying to time a Ctrl-C?



Re: [gentoo-user] Strange network behaviour: NIC goes down, DHCP lease renewal fails

2015-03-05 Thread Todd Goodman
* Marc Joliet mar...@gmx.de [150305 04:47]:
[..SNIP..]
 1.) The NIC is brought up (some built-in Intel model).
 
 2.) A DHCP client configures it.
 
 3.) The network connection is lost at some point (the amount of time this 
 takes
 varies, but it can be as little as 20 minutes).
 
 4.) Eventually the lease runs out and the DHCP client tries to renew it, but
 gets no response.  Sometimes, after many hours (at least 6), it will get a
 DHCPACK, but that's it.  One of our sysadmins says that not only does
 the DHCP server never see the packets, but the managed switch that the PC
 is directly attached to *also* never does (again, except for when the
 occasional DHCPACK comes).
 
 4.) Restart the network device.  A reboot is not required, but it is necessary
 to terminate the DHCP client.  After that everything works again.
 
 5.) GOTO 3.
[..SNIP..]

Is this a WiFi NIC?

Is it possible the device is powering down?

I've had lots of problems with WiFi devices powering down (both driver
issues as well as just trying to disable the default setting of powering
down.)

Todd



Re: [gentoo-user] Report: Experience with f2fs

2015-02-24 Thread Todd Goodman
* Rich Freeman ri...@gentoo.org [150224 07:32]:
 On Tue, Feb 24, 2015 at 6:54 AM, Bob Wya bob.mt@gmail.com wrote:
  I would always recommend a secure erase of an SSD - if you want a fresh
  start. That will mark all the NAND cells as clear of data. That will
  benefit the longevity of your device / wear levelling.
 
 Not a bad idea, though if you're trimming your filesystem (and it
 supports this), that shouldn't be necessary, and of course a log-based
 filesystem like f2fs should promote excellent wear leveling
 automatically by design.  Granted, that doesn't help you if an f2fs
 bug eats your data.

Can you explain why a log-based filesystem like f2fs would have any
impact on wear leveling?

As I understand it, wear leveling (and bad block replacement) occurs on
the SSD itself (in the Flash Translation Layer probably.)

Of course the quality of those algorithms vary with device and are
pretty much a black box.

Todd



Re: [gentoo-user] Report: Experience with f2fs

2015-02-24 Thread Todd Goodman
* Rich Freeman ri...@gentoo.org [150224 10:19]:
 On Tue, Feb 24, 2015 at 8:11 AM, Todd Goodman t...@bonedaddy.net wrote:
 
  Can you explain why a log-based filesystem like f2fs would have any
  impact on wear leveling?
 
  As I understand it, wear leveling (and bad block replacement) occurs on
  the SSD itself (in the Flash Translation Layer probably.)
 
 
 Well, if the device has a really dumb firmware there is nothing you
 can do to prevent it from wearing itself out.  However, log-based
 filesystems and f2fs in particular are designed to make this very
 unlikely in practice.
 
 Log-based filesystems never overwrite data in place.  Instead all
 changes are appended into empty space, until a large region of the
 disk is full.  Then the filesystem:
 1.  Allocates a new unused contiguous region of the disk (which was
 already trimmed).  This would be aligned to the erase block size on
 the underlying SSD.
 2.  Copies all data that is still in use from the oldest allocated
 region of the disk to the new region.
 3.  Trims the entire old region, which was aligned to the erase block
 size when it was originally allocated.
 
 So, the entire space of the disk is written to sequentially, and the
 head basically eats the tail.  Every block on the drive gets written
 to once before the first block on the drive gets written to twice.
[..SNIP..]

Thanks for the info.

But the device is still doing wear leveling and bad block
replacement so you're beholden to those algorithms and what you think
you're allocating as sequential blocks of the flash are not necessarily so.

Of course any decent wear leveling algorithm is still going to work
fine, but it seems to me like the wear leveling is still occuring in the
device and the filesystem is beneficial for use on flash based devices
for other reasons.

I'm sure I'm still missing something though.

Thanks,

Todd



Re: [gentoo-user] Boot disk renames /dev/md6 to /dev/md127.

2015-02-03 Thread Todd Goodman
* Rich Freeman ri...@gentoo.org [150203 08:36]:
 On Tue, Feb 3, 2015 at 8:14 AM, Alan Mackenzie a...@muc.de wrote:
  So, what was it that chewed up my RAID configuration so badly that
  /dev/md6 got renamed to /dev/md127?  Can I change it back to /dev/md6,
  somehow?  Do I need to bother?
 
 I ran into similar issues a while back.  In my case some of my arrays
 were using older metadata (which was required at the time to boot
 without an initramfs).  I suspect that either this metadata lacked the
 info needed for a boot CD to assign the same ID, or perhaps the ID I
 was using was already allocated somehow and the boot CD chose another
 one and wrote that ID to the metadata so that it stuck.
 
 My solution was to move to using UUIDs or labels for everything and
 not relying on array numbering.  This of course requires an initramfs
 - personally I've found Dracut to be the best one out there.  It is
 just far less prone to breakage when some update causes stuff to move
 around like this.

I also had the same problem a while ago and like Rich I started using
UUIDs (actually I had started on another system where it mounted my
/home partition as /tmp and rm -rf'd it during startup because of the
/dev/md devices being scrambled around, but at that point I switched all
my systems to UUIDs.)

I also use dracut and aside from some problems with it starting up my
raid arrays, it works well and I don't think much about it.

Todd



Re: [gentoo-user] Re: Fresh gen too install - unsuccesful

2014-12-21 Thread Todd Goodman
* German gentger...@gmail.com [141221 07:31]:
[..SNIP..]
 Thanks for suggestion, Mick. Unfortunately I am not on a network and that is 
 only PC I have at the moment.
 Do you know if Knoppix allows UEFI boot?

I've used Fedora and Linux Mint install disks for UEFI booting (I don't
know about Knoppix.)

Todd



Re: [gentoo-user] Re: Fresh gen too install - unsuccesful

2014-12-21 Thread Todd Goodman
* German gentger...@gmail.com [141221 13:01]:
 On Sun, 21 Dec 2014 11:55:06 -0500
 Todd Goodman t...@bonedaddy.net wrote:
 
  * German gentger...@gmail.com [141221 07:31]:
  [..SNIP..]
   Thanks for suggestion, Mick. Unfortunately I am not on a network and that 
   is only PC I have at the moment.
   Do you know if Knoppix allows UEFI boot?
  
  I've used Fedora and Linux Mint install disks for UEFI booting (I don't
  know about Knoppix.)
  
  Todd
  
 
 BTW Todd, does Mint allow to boot only in console mode, i.e. without X and DE?
 
 -- 
 German gentger...@gmail.com

I'm sure there's a way to do so but I've always just let it boot all the way
up and then use a terminal.

I usually use a Fedora image if I want UEFI though just out of habit.

Todd



Re: [gentoo-user] New PC, new boot concepts

2014-12-19 Thread Todd Goodman
* Mick michaelkintz...@gmail.com [141219 10:22]:
[SNIP]
 I am trying to find out what is considered good practice as far as UEFI/MBR 
 and boot management goes.

FWIW, I've built recent machines with UEFI/GPT but I mostly build recent
machines using BIOS-mode/GPT or MBR.  It usually depends on how well the
mobo I'm using works with either.

Some of the mobos I've used have some seriously crummy UEFI
implementations that look like they installed Windows and that worked so
didn't bother testing any further.

I don't dual-boot windows so BIOS/GPT works OK (I believe windows still
assumes UEFI == GPT and BIOS == MBR but I don't know.)

Obviously I'm not using secure boot if I'm running in BIOS mode.

Just my $.02,

Todd



Re: [gentoo-user] New PC, new boot concepts

2014-12-19 Thread Todd Goodman
* Mick michaelkintz...@gmail.com [141219 11:13]:
 On Friday 19 Dec 2014 15:46:43 Todd Goodman wrote:
  * Mick michaelkintz...@gmail.com [141219 10:22]:
  [SNIP]
  
   I am trying to find out what is considered good practice as far as
   UEFI/MBR and boot management goes.
  
  FWIW, I've built recent machines with UEFI/GPT but I mostly build recent
  machines using BIOS-mode/GPT or MBR.  It usually depends on how well the
  mobo I'm using works with either.
  
  Some of the mobos I've used have some seriously crummy UEFI
  implementations that look like they installed Windows and that worked so
  didn't bother testing any further.
  
  I don't dual-boot windows so BIOS/GPT works OK (I believe windows still
  assumes UEFI == GPT and BIOS == MBR but I don't know.)
  
  Obviously I'm not using secure boot if I'm running in BIOS mode.
  
  Just my $.02,
 
 Thanks Todd,
 
 Are you saying that there is no benefit in moving to UEFI for Linux usage, if 
 the MoBo can boot in conventional BIOS mode?

I guess what I'm saying is that I've had problems with some mobos
running UEFI (and also BIOS) with any non-windows OS.

So I don't usually bother with UEFI mode anymore as I find it more
hassle than it's worth for me.

Someone else may (probably) has some reasons why running UEFI is more
beneficial, but I haven't noticed any.

But these machines are not booting any other OS aside from Gentoo.  If I
were dual-booting Windows then I'd go UEFI/GPT for sure.

Todd



Re: [gentoo-user] gcc 4.7.3 -- 4.8.3

2014-11-07 Thread Todd Goodman
* James wirel...@tampabay.rr.com [141107 12:47]:
 Ok 
 
 so I'm still on 4.7.3; but if I set 4.8.3
 as the default, should I rebuild @system ?
 
  # gcc-config -l
  [1] x86_64-pc-linux-gnu-4.7.3 *
  [2] x86_64-pc-linux-gnu-4.8.3
 
 
 I saw the news item about 4.8.3-SSP, which I think is a good idea, but 
 how deeply, if at all, do I need to rebuild packages ?
 Is there any special steps I should take now in prepartion for 4.9.x?
 caveats?
 
 @system ?
 @world  ?
 a specific list  of packages only ?
 
 
 
 James

If I remember correctly (and I may not) the only thing I *had* to
rebuild was webkit-gtk with 4.8 as I was getting errors with apps built
with 4.8 and webkit-gtk built by 4.7.

But I tend to set up a @world rebuild to run when I'm not on my machines
if I have any issues anyway so I may not have run into other problems I
might have had otherwise.

Todd



Re: [gentoo-user] Was Vim compiled with +eval feature?

2014-10-07 Thread Todd Goodman
* Gevisz gev...@gmail.com [141006 00:19]:
[SNIP]
 I am going to post the question about it in vim mailing list
 but I guess that the first question to me will be: Was your
 vim compiled with the +eval feature?
 
 I guess that the answer is yes but do not know it for sure.

You can see what features are compiled in by running vim --version

Mine does have eval compiled in.

Todd



Re: [gentoo-user] root on newest livedvd ?

2014-09-30 Thread Todd Goodman
* James wirel...@tampabay.rr.com [140930 09:10]:
 livedvd-amd64-multilib-20140826.iso
 
 
 The old livedvd, to get root access it was sudo su -
 
 which does not see to work. Ideas on the new
 syntax to get root access.
 
 
 Also, is it straightforward to install a secondary
 ebuild package on this latest livedvd that is not
 part of the iso?
 
 
 curiously,
 James

Doesn't just 'su -' (no sudo) work?



Re: [gentoo-user] Running a program on a headless computer ?

2014-09-28 Thread Todd Goodman
* meino.cra...@gmx.de meino.cra...@gmx.de [140928 10:14]:
 Hi,
 
 I want to run programs, which insist on haveing a terminal
 to write their status to and which are writing files which
 their results on a headless computer (beaglebone).
 
 I tried things like 
 
 my_program -o file.txt -parameter value  /dev/null 21 
 
 but this results in a idle copy of this process and a defunct
 child.
 
 The program does not use X11 in any way...
 
 Is there any neat trick to accomplish what I am trying to do here?
 
 Thank you very much in advance for any help!
 Best regards,
 mcc

You probably want 21 



Re: [gentoo-user] can not compile / emerge

2014-09-09 Thread Todd Goodman
* Joseph syscon...@gmail.com [140909 14:37]:
 I was installing an application gimp and all of a sudden I got an error:
[SNIP]
 configure: error: in 
 `/var/tmp/portage/media-gfx/gimp-2.8.10-r1/work/gimp-2.8.10':
 configure: error: C compiler cannot create executables
 See `config.log' for more details

What does 'gcc-config -l' show?



Re: [gentoo-user] setting boot flag on sda1

2014-09-05 Thread Todd Goodman
* Joseph syscon...@gmail.com [140905 12:14]:
 How to set a boot flag on sda1.
 I'm using fdisk from util-linux 2.24.1 and in order to set it I need version  
 2.22 or earlier
 
 -- 
 Joseph

If you're using GPT partitions then you should really be using gdisk or
recent parted (gparted.)

You'll see strange results if you use fdisk to look at GPT partitions (for
some definition of strange and depending upon if a hybrid configuration
is used.)

Todd



Re: [gentoo-user] setting boot flag on sda1

2014-09-05 Thread Todd Goodman
* Joseph syscon...@gmail.com [140905 13:37]:
 On 09/05/14 13:12, Todd Goodman wrote:
 * Joseph syscon...@gmail.com [140905 12:14]:
  How to set a boot flag on sda1.
  I'm using fdisk from util-linux 2.24.1 and in order to set it I need 
  version  2.22 or earlier
 
  --
  Joseph
 
 If you're using GPT partitions then you should really be using gdisk or
 recent parted (gparted.)
 
 You'll see strange results if you use fdisk to look at GPT partitions (for
 some definition of strange and depending upon if a hybrid configuration
 is used.)
 
 Todd
 
 Yes, it make more sense. 
 
 Will old BIOS boot GTP partition disk.  
 My system does not recognize boot sector.  It thinks there is no disk.  
 I can boot current disk with Systemrescue CD but BIOS does not see my boot 
 sector or the way it is installed. 
 
 
 -- 
 Joseph

What does 'gdisk -l /dev/sda' say about GPT and MBR (it usually says
whether you have a valid GPT and/or MBR before printing information
about the partitions.)

As others have mentioned, you need that BIOS boot partition for GRUB2 to
embed its core.img into since there's no post-MBR gap for it to use with
GPT.  This is different than the partition you mount as /boot.

Your BIOS should be able to boot GPT drives but it can be flaky
depending upon motherboard in my experience.

If using GPT drives to boot with BIOS you want a protective MBR which
encompasses the entire drive (or first 2.2TB if the drive is larger than
that as that's as big as MBR can handle.)  It has type 0xee.

You can create that gdisk (by going into the eXpert menu) or you can use
fdisk to create it.

With some motherboards you have to flag the protective MBR as bootable.
You can do this in fdisk with the 'a' command or in gdisk with the 'a'
command on the eXpert menu.

grub2 should have installed the correct target by default (i386-pc) but
you can force that with the --target command line option to
grub2-install ('grub2-install --target=i386-pc /dev/sda' for example)

So barring a really strange BIOS implementation you should be able to
boot a GPT partitioned drive on a BIOS-based computer but I have to ask
why you want to go through all the head-banging?

Since your BIOS isn't cooperating the only reason I could see is if your
drive is larger than 2.2TB (quite possible but I don't remember from
earlier in the thread.)

Todd



Re: [gentoo-user] Re: setting boot flag on sda1

2014-09-05 Thread Todd Goodman
* James wirel...@tampabay.rr.com [140905 15:58]:
 Todd Goodman tsg at bonedaddy.net writes:
 
  What does 'gdisk -l /dev/sda' say about GPT and MBR (it usually says
  whether you have a valid GPT and/or MBR before printing information
  about the partitions.)
 
 gfisk does not seem to be in the tree. That's the old name for the
 gptfdisk now in the portage tree. The name is now consistent
 with upstream.  (/sys-apps/gptfdisk)

Yes, that's the package that provides /usr/sbin/gdisk




Re: [gentoo-user] grub2 boots only older kernel

2014-05-21 Thread Todd Goodman
* wirel...@tampabay.rr.com wirel...@tampabay.rr.com [140519 21:25]:
[SNIP]
 It never tries to boot. Grub just sits there  withe phrase (did not copy 
 it down) where it says what version it will boot on the screen
 and it does nothing (locked up?) I have to cntlaltdel or push
 a manual reset. It never tries to load the kernel. Does not matter if
 I try a 3.13.7 or 3.14.x, I've rebuilt them quite a few times and did
 all the grub2 steps, but none of the newer kernels will boot.
 
 Nothing was done to the bios. The only change was to get rid of ATI 
 Frame buffer support as suggested upon a recent update:
 
 * Checking for suitable kernel configuration options...
  *   CONFIG_FB_RADEON:should not be set. But it is.
  * Please check to make sure these options are set correctly.
  * Failure to do so may cause unexpected problems.
 
 
 
 
 James

I've had problems like this with grub2 when it was trying to retain the
graphics mode (sorry, I don't remember the line in grub.cfg since I've
since removed it.)

I usually find grub problems by entering the grub command line and
typing the commands in the menuentry from /boot/grub/grub.cfg that
doesn't work one at a time.

Todd



Re: [gentoo-user] boot problems

2014-05-03 Thread Todd Goodman
* Stefan G. Weichinger li...@xunil.at [140503 08:09]:
 Am 03.05.2014 13:39, schrieb Stefan G. Weichinger:
 
  Booted with rd.auto=1 and now I also get a funny start job
  running/waiting for /dev/sda1 (/ on the SSD).
  
  Oh my! :-)
  
  pasta now.
 
 So, back from speed-lunch now ;-)
 
 While cooking the pasta I got a bit further:
 
 Box boots now with kernel 3.14.1 and with commented LVs in fstab.
 
 When I login and check there are no mdadm-raids assembled.
 
 When I mdadm -A --scan they get correctly assembled:
 
 
 # cat /proc/mdstat
 Personalities : [raid1]
 md4 : active raid1 sdb3[0] sdc6[2]
   52395904 blocks super 1.2 [2/2] [UU]
 
 md1 : active raid1 sdb6[0] sdc3[1]
   623963072 blocks [2/2] [UU]
 
 (Don't ask for the strange setup with sdb3/sdc6 and sdb6/sdc3,
 historically grown somehow ...)
 
 vgchange -ay then gets me all my LVs. Great so far.
 
 So the question is, what part of the whole setup should now assemble the
 arrays?
 
 I think, dracut, right?
 
 So I will now test booting with these funny rd.auto kernel line
 parameters ...
 
 Has mdadm.service to be enabled as well? Or is that redundant in a way?
 
 Stefan

FWIW, I have a similar problem with mdadm and dracut and do something
similarly to what's described in:

http://rich0gentoo.wordpress.com/2012/01/21/a-quick-dracut-module/

Todd



Re: [gentoo-user] boot problems

2014-05-03 Thread Todd Goodman
* J. Roeleveld jo...@antarean.org [140503 08:24]:
 On Saturday, May 03, 2014 08:17:37 AM Todd Goodman wrote:
 
 snipped
 
  FWIW, I have a similar problem with mdadm and dracut and do something
  similarly to what's described in:
  
  http://rich0gentoo.wordpress.com/2012/01/21/a-quick-dracut-module/
 
 After more than 2 years still necessary to do it like that?
 
 --
 Joost

I wouldn't think so, but when I set up a new server somewhat recently I
needed to do the same.

I've heard of others who don't need to do anything special so it's
likely some misconfiguration on my part.

Todd



Re: [gentoo-user] Re: OT: Regular v Ordinary

2014-04-30 Thread Todd Goodman
* walt w41...@gmail.com [140430 20:43]:
 On 04/30/2014 01:47 AM, Peter Humphrey wrote:
  It just annoys me when I'm offered a regular coffee, 
  when I would have said standard, or medium (size). It's happened 
  particularly 
  since our high streets were flooded with Starbucks and the like.
 
 If someone offered me a regular coffee I'd ask for a definition of regular
 because I wouldn't have a clue what's being offered.
 
 My impression is that many Merkin words entered the British argot during WWII,
 when, indeed, we referred to petrol(gasoline) as regular or leaded, a good
 example of our misuse of regular, and one I'd forgot(ten) about.
 
 You and Neil both mentioned regular guy, which I remember hearing most 
 recently
 in a movie about WWII, and not since.
 
 Our tasteless Merkin TV commercials used the word regular for decades to 
 describe
 our ideal bowel habits, so I share your immediate association with that word. 
  But
 I doubt anyone less than thirty years old would remember that era.  (Please 
 let me
 know if I'm wrong about that!)

You might want to check the definition for merkin...



Re: [gentoo-user] Systemd and ModemManager

2014-04-25 Thread Todd Goodman
* gottl...@nyu.edu gottl...@nyu.edu [140425 12:21]:
 journalctl -b | grep -i modem yields *many* of these lines
 
 Apr 25 12:10:18 e6510 dbus-daemon[254]: dbus[254]: [system] Activation via 
 systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit 
 dbus-org.freedesktop.ModemManager1.service failed to load: No such file or 
 directory.
 Apr 25 12:10:18 e6510 dbus[254]: [system] Activation via systemd failed for 
 unit 'dbus-org.freedesktop.ModemManager1.service': Unit 
 dbus-org.freedesktop.ModemManager1.service failed to load: No such file or 
 directory.
 
 I do have a (cable) modem, but presumably that is not visible to the
 system since the modem is behind a (linksys) router.
 
 I can't simply --depclean modemmanager since gnome-control-center-3.10.3
 requires it and the ebuild contains
 
 # FIXME: modemmanager is not optional
 
 thanks,
 allan
 

FWIW Allan I get those too (without any modem.)

I'm just ignoring them.

Todd



Re: [gentoo-user] World update and dev-lang/python-exec weirdness...

2014-03-08 Thread Todd Goodman
* Tanstaafl tansta...@libertytrek.org [140308 09:46]:
 Ok, I don't understand this...
 
 If I do an emerge -pvuDN world, it tells me I only need to update (among 
 a few other things) ONE version of dev-lang/python-exec: (2.0.1 to -r1).
 
 I then tried to selectively update just the kernel, and it complains 
 about python-exec-2.0.1 being masked, so I add that to the emerge command:
 
 emerge -pvuDN dev-lang/python-exec gentoo-sources
 
 This results in no blockers, BUT, NOW it wants to update TWO versions of 
 python-exec: dev-lang/python-exec 2.0.1 AND dev-lang/python-exec-0.3.1 
 (to -r1).
 
 First question is, why does a plain emerge -pvuDN world NOT want to 
 update both of these?
 
 Second questions is, do I even NEED both of these? Or can (or more 
 importantly, SHOULD) I just emerge -C dev-lang/python-exec-0.3.1?
 
 Thanks,
 
 Charles

Hi Charles,

dev-lang/python-exec is slotted (I have slot 0 and 2 on my system.)

I assume when you do the emerge -pvuDN world it only tells you about
slot 2 because there's only a dependency on slot 2.  When you ask it to
emerge dev-lang/python-exec it tries to emerge for all slots (I'm not
sure, someone please correct me if that's not what's happening.)

But I had a problem where something using python-exec needed to be
rebuilt.  Run an emerge -pvutDN world (add the -t option to see the tree
of dependencies) and look for what wants the masked python-exec.  Then
rebuild that manually.

I'm running ~x86 btw.

Regards,

Todd



Re: [gentoo-user] The meaning of number in brackets in /proc/cpuinfo power management?

2013-09-20 Thread Todd Goodman
* Pandu Poluan pa...@poluan.info [130920 03:45]:
 Hello list!
 
 Does anyone know the meaning of the 'number between brackets' in the
 power management line of /proc/cpuinfo?
 
 For instance (I snipped the flags line to not clutter the email:
 
 processor   : 0
 vendor_id   : AuthenticAMD
 cpu family  : 21
 model   : 2
 model name  : AMD Opteron(tm) Processor 6386 SE
 stepping: 0
 cpu MHz : 2800.110
 cache size  : 2048 KB
 fdiv_bug: no
 hlt_bug : no
 f00f_bug: no
 coma_bug: no
 fpu : yes
 fpu_exception   : yes
 cpuid level : 13
 wp  : yes
 flags   : --snip--
 bogomips: 5631.71
 clflush size: 64
 cache_alignment : 64
 address sizes   : 48 bits physical, 48 bits virtual
 power management: ts ttp tm 100mhzsteps hwpstate [9] [10]
 
 What's [9] and [10] supposed to mean?
 
 (Note: The OS is not actually Gentoo, but this list is sooo
 knowledgeable, and methinks the output of /proc/cpuinfo is quite
 universal...)

I don't know for sure but looking in arch/x86/cpu/{powerflags,proc}.c it
looks like your kernel doesn't have a text description for power flag
bits 9 and 10.

In Linux 3.11.1 they are:

[9] - cpb,  /* core performance boost */
[10] - eff_freq_ro, /* Readonly aperf/mperf */

Todd



Re: [gentoo-dev] Re: [gentoo-user] OpenRc-0.12 is coming soon

2013-08-16 Thread Todd Goodman
* Rich Freeman ri...@gentoo.org [130816 10:43]:
 On Fri, Aug 16, 2013 at 10:09 AM, Markos Chandras hwoar...@gentoo.org wrote:
  The package is now masked (openrc-0.12) because quite a few people
  lost their net configs
 
  So yep, ~arch being *this* broken is not so nice
 
 And hence the value of having a group of volunteer guinea pigs
 (anybody running ~arch) is demonstrated.  That said, masking big
 changes and calling for volunteers among the volunteers doesn't hurt.
 
 Seems like we need to be more careful with code that runs outside the
 sandbox.  Config protection is nice, but it is useless when code runs
 outside the sandbox.
 
 Rich

As one of those volunteer guinea pigs it all worked fine with the four
~x86 and three ~amd64 machines I've upgraded to openrc-0.12:0.

They vary in when they were installed from 2005 up to a couple months
ago and are generally updated daily.

All ~x86 are servers (though most have X, KDE, and Gnome installed,
they're only accessed remotely.)

Two of the ~amd64 machines are desktops (though they both run services
as servers.)

If I can help narrow anything down further I'm happy to help.  Or to
test anything.

Todd



Re: [gentoo-user] OpenRc-0.12 is coming soon

2013-08-14 Thread Todd Goodman
* Stefan G. Weichinger li...@xunil.at [130814 13:25]:
 Am 14.08.2013 18:24, schrieb Neil Bothwick:
 
  I lost conf.d/net too, but there is still a sample file, but it is
  owned by netifrc, which is now a dependency of openrc.
  
  Note to those using USE=-* I_WANT_TO_BREAK_MY_SYSTEM, you will
  break it when installing the new openrc because you won't get this
  package.
 
 For the records:
 
 this upgrade didn't hurt on my systemd-based installations.
 
 And it is always nice to have /etc inside a git-repo or similar (aside
 from backups).
 
 Stefan

Also for the record, I still have my conf.d/net after upgrading on three
~x86 machines.

Todd



Re: [gentoo-user] [~amd64] Anyone survive the big gnome update from this morning (July 25)?

2013-07-26 Thread Todd Goodman
* walt w41...@gmail.com [130725 21:12]:
 I'm very happy that I did the gnome update on a virtual gentoo
 machine instead of my real machine :)  The virtual gentoo is
 unusable at the moment because gnome is very sick indeed.
 
 I avoided the big update on my real machine when I saw that
 gnome-shell (I think it was) demanded the installation of
 systemd on my openrc-only system.
 
 Now, I've been running systemd on the virtual gentoo machine
 for months with no problems, so I wasn't worried about the
 big update on that machine.
 
 AFAICT the systemd update has nothing to do with gnome's sickness,
 systemd-206 seems to be working just fine on the virtual machine.
 
 The gnome desktop, however, is completely black except for one
 functioning gnome main-menu applet, which lets me open an xterm
 for potential debugging efforts.
 
 Running nautilus from the xterm prompt produces this error:
 
 GLib-GIO_ERROR: Settings schema 'org.gnome.desktop.background'
 does not contain a key named 'draw-background'
 Trace/breakpoint trap
 
 Has anyone else tried the same update yet?

I blocked the whole update by adding entries to package.mask (don't know
if there was an easier way) because I don't want systemd on my ~amd work
machines.

Todd



Re: [gentoo-user] KDE and NetworkManager

2013-07-16 Thread Todd Goodman
* Canek Peláez Valdés can...@gmail.com [130715 15:09]:
 On Mon, Jul 15, 2013 at 1:26 PM, Alan McKinnon alan.mckin...@gmail.com 
 wrote:
  unmerge nm and everything associated with it.
  Comment out all lines in /etc/conf.d/net
 
  emerge wicd with the USE flags of your choice.
 
  All your problems will instantly go away, stay away, and wicd will do
  the right thing always for networking. I promise.
 
 If the problem is that the user is not in the plugdev group, it will
 also happen with wicd, which makes this one of the worsts pieces of
 advice I have seen in this list. Which is a lot to say.

Hardly

 
  networkmanager is a horribly broken piece of shit that per user reports
  never seems to actually work for people.
 
 It works for me. In all kind of networks in several continents, with
 all kind of WEP, WPA, and WPA2 networks, connecting through my
 cellphone and obviously with ethernet too.

It seems to work for very simple network setups that don't change often.

 
 Funny you said that Alan, when was the last time you heard about a
 problem with NM in the list? I count less than 20 mails *mentioning*
 NM in the list in 2013, and none of them are (IIRC) direct problems
 with NM.

Most of us who have found out how horrible NM is have stopped using it
long ago so you don't see us posting with problems.

 
  You should not use software like that.
 
 You should do a little more research before saying something like that
 about a piece of software that just works most of the time.

As long as we're telling people what to do I'll tell you to step out
of your ivory tower once in a while to get a broader picture of the
world.

Todd



[gentoo-user] Can't Emerge gcc-4.7.3 on Multilib x86_64 Machine

2013-07-03 Thread Todd Goodman
I seem to have managed to fubar an amd64 multiboot machine I have as it fails
building gcc-4.7.3 and virtualbox.

Other amd64 machines are fine.

It looks like building anything with the -m 32 switch doesn't work
because ld doesn't like the libraries /lib/libc.so.6 and
/usr/lib/libc_nonshared.a.

I'm not sure why it's looking in those directories instead of /lib32 and
/usr/lib32 though since /lib is a symlink to /lib64 and /usr/lib is a
symlink to /usr/lib64.

The errors are the same:

/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /lib/libc.so.6
when searching for /lib/libc.so.6
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.6
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible
/usr/lib/libc_nonshared.a when searching for /usr/lib/libc_nonshared.a
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find /usr/lib/libc_nonshared.a

# gcc-config -l
 [1] x86_64-pc-linux-gnu-4.7.3 *
#

Anyone seen this before?

Or have any suggestions?

Thanks,

Todd



Re: [gentoo-user] alternate mta's

2013-05-05 Thread Todd Goodman
* Tanstaafl tansta...@libertytrek.org [130504 16:18]:
 On 2013-05-04 3:27 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
  On 04/05/2013 18:52, Tanstaafl wrote:
  Ok, I have msmpt installed and working just fine.
 
  Now, all of a sudden, emerge -pvuDN world wants to install mailx.
 
  equery depends mailx says rkhunter is pulling it in via virtual/mailx
 
  Why isn't this dependency satisfied by the presence of msmtp?
 
  And more importantly, how can I fix it without installing mailx?
 
  Simplest answer:
 
  It was never done because nobody did it.
 
  Whoever maintains virtual/mailx does so believing they have a decent set
  of implementations available for you to use. There was never any
  guarantee there that all possible satisfiers for virtual/mailx would be
  listed.
 
  File a feature request at b.g.o. if you feel msmtp satsifies virtual/mailx.
 
 Actually, I'm not really concerned about virtual/mails...
 
 My question is why does it want to install the full program 
 'net-mail/mailx'? That would mean I had two mta's on my system, which 
 should be a conflict, right? I know if I try to install postfix, it 
 complains about msmtp as a blocker.

mailx is an MUA, not an MTA.  You can have as many MUAs as you like.



Re: [gentoo-user] Using date/time variables in cronjobs?

2013-05-05 Thread Todd Goodman
* Tanstaafl tansta...@libertytrek.org [130505 14:32]:
 On 2013-05-05 2:18 PM, Neil Bothwick n...@digimed.co.uk wrote: On 
 Sun, 05 May 2013 14:07:50 -0400, Tanstaafl wrote:
   /home/user/mypg_backups/2013/May/Sun/pg_all-13:54.gz: No such file or
   directory
  
   So, it is expanding the variables properly, but apparently won't
   automatically create the directories? Is there some kind of flag
   I can add to the command to do that?
 
   mkdir -p $BACKUP_DIR/$PGyy/$PGmm/$PGdd/
 
 Thanks Neill...
 
 Tried changing the command in the script to:
 
  /usr/bin/pg_dumpall -U $PGUSER -o | gzip  mkdir -p 
  $BACKUP_DIR/$PGyy/$PGmm/$PGdd/pg_all-$PGtt.gz
 
 and got this error:
 
 # ./ecat_pgdump.sh
 gzip: invalid option -- 'p'
 
 Tried putting quotes around it like this:
 
  /usr/bin/pg_dumpall -U $PGUSER -o | gzip  mkdir -p 
  $BACKUP_DIR/$PGyy/$PGmm/$PGdd/pg_all-$PGtt.gz
 
 and got the original error with the added 'mkdir -p':
 
 # ./mypg_pgdumpall.sh
 ./mypg_pgdumpall.sh: line 10: mkdir -p 
 /home/user/mypg_backups/2013/May/Sun/ecat-14:26.gz: No such file or 
 directory
 
 I'm guessing I just need to know where to put the quotes?

You can't put it in that line.  Put it on it's own line before the
pg_dumpall line:

mkdir -p $BACKUP_DIR/$PGyy/$PGmm/$PGdd
/usr/bin/pg_dumpall -U $PGUSER -o | \
gzip $BACKUP_DIR/$PGyy/$PGmm/$PGdd/pg_all-$PGtt.gz

You could have it check first and only do the mkdir if the directory
didn't already exist:

[[ -d $BACKUP_DIR/$PGyy/$PGmm/$PGdd ]] || \
mkdir -p $BACKUP_DIR/$PGyy/$PGmm/$PGdd





Re: [gentoo-user] Re: Ethernet Machination

2013-01-02 Thread Todd Goodman
* james wirel...@tampabay.rr.com [130102 16:02]:
[..]
 
 Well is all works automatically, but udev did not create the
 files I thought it would upon reboot:
 
 
 rules.d # ls -alg
 total 12
 drwxr-xr-x 2 root  192 Jan  2 14:37 .
 drwxr-xr-x 4 root  152 Dec  9 23:26 ..
 -rw-r--r-- 1 root 1896 Sep 30 08:13 70-persistent-cd.rules
 -rw-r--r-- 1 root 2652 Aug 20  2010 70-persistent-cd.rules.old
 -rw-r--r-- 1 root  948 Dec  3 03:52 70-persistent-net.rules.31dec2012.old
 
 After deleting the 70-persistent-net.rule file
 
 udev does not re-create it. All is now fine with rc-status
 only showing net.eth0 which is set up how I like it
 per /etc/conf.d/net. All services are fine
 
 
 Move on, or hand edit the '70-persistent-net.rules' file?
 
 TIA,
 James

I don't know what version of udev you're running (sorry if I missed it,)
but the udev-186 elog says:

Upstream has removed the persistent-net and persistent-cd rules
 generator. If you need persistent names for these devices,
 place udev rules for them in /etc/udev/rules.d.

That doesn't explain why you got the 70-persistent-cd.rules re-created
and not 70-persistent-net.rules, but maybe one of the udev releases I
didn't install and that you're running just stopped recreating the
70-persistent-net.rules file but still re-created the
70-persistent-cd.rules file?

I went from udev-182-r3 to udev-186 it looks like.

Personally if it works without the 70-persistent-net.rules file and you
don't plug and unplug Ethernet interfaces (like with USB dongles) then I
wouldn't create one myself.

Regards,

Todd



Re: [gentoo-user] Re: 3.7.1 SATA errors -- SOLVED

2012-12-27 Thread Todd Goodman
* fe...@crowfix.com fe...@crowfix.com [121227 10:08]:
 On Wed, Dec 26, 2012 at 09:41:54PM -0800, fe...@crowfix.com wrote:
  
  I configured a minimal kernel to test it sooner, and it booted to a
  prompt.  Now I am compiling with my normal config, including encfs and
  a lot of other gorp, and will try it in the morning.
 
 My bloated fully-larded normal config version of the patched 3.7.1
 kernel also works.  dmesg logs match with the usual differences in USB
 assignments and a few messages which changed wording.
 
 The patch author says the patch is just waiting for the maintainers to
 approve it up the line.  I do not know if that means it will be in 3.7.2.
 
 Thanks to everyone who helped here, especially with git bisect.

Thank you for doing the git bisect and tracking this down (and Mark for
pointing to the bugzilla.kernel.org bug.)

Todd



Re: [gentoo-user] Re: Anyone switched to eudev yet?

2012-12-26 Thread Todd Goodman
* Bruce Hill da...@happypenguincomputers.com [121225 18:30]:
 On Tue, Dec 25, 2012 at 11:51:43AM -0500, Todd Goodman wrote:
   
   Same question ... initrd.gz and initramfs are *not* the same thing; and 
   there
   was a package called mkinitrd in Gentoo that was retired to attic some 
   time
   ago, before my exodus from Slackware to Gentoo; therefore, I don't know 
   it's
   history. Most distros still have a mkinitrd script, but not Gentoo. And 
   there
   are lots of resources online which can guide you in making an initrd or
   initramfs. I'm an old guy and don't care to learn too much new unless 
   someone
   very knowledgable in *nix (not just one distro) can give me a good reason 
   for
   doing so. No one has with initramfs to date.
  
  Try reading the kernel Documentation.  (e.g.,
  /usr/src/linux/Documentation/filesystems/ramfs-rootfs-initramfs.txt.)
  
  initramfs is an improvement over initrd.
  
  Todd
 
 Having read it years ago it still fails to give me a good reason for using it.

It gives plenty of good reasons.

If they aren't good for you then fine.

But if you read it you wouldn't be asking why initrd went away and was
replaced by initramfs.

Todd



Re: [gentoo-user] 3.7.1 SATA errors

2012-12-25 Thread Todd Goodman
* Florian Philipp li...@binarywings.net [121225 07:16]:
 Am 23.12.2012 20:23, schrieb fe...@crowfix.com:
  
  I have since had some time to explore this and find it related to the
  kernel; 3.6.10 works fine, while 3.7.1 fails.  If I reset during the
  3.7.1 boot while it is spewing its error messages, but before the
  kernel ultimately panics, I can reboot with 3.6.10, but if 3.7.1 goes
  all the way to the panic, I have to power off and wait a few minutes
  before a 3.6.10 reboot is succesful.  This is repeatable, but I
  haven't bothered to see how long the system must be off; a few
  minutes is enough.
  
  There are two error messages during the 3.7.1 boot, repeated for all
  SATA drives:
  
  ata5.00: qc timeout (cmd 0x2f) ata5.00: failed to set xfermode
  (err_mask=0x40)
  
 
 The code that prints these messages has not been changed since 2011 so I
 guess it is a driver issue. You never posted which driver you use
 exactly and your kernel config enables all. Therefore I cannot look further.
 
 The best way to find out what's wrong is to bisect the kernel, i.e.
 finding the exact commit that caused the issue to appear.
 
 http://wiki.gentoo.org/wiki/Kernel_git-bisect
 
 Unfortunately, there have been 1545 commits between 3.6 and 3.7. With
 blind bisection you need 39 kernels to find the issue. Maybe `git log`
 can give you a hint which commits might be relevant.
 
 Regards,
 Florian Philipp
 

A me too on the problem the original poster is seeing.

I too am seeing this on a server I have.  3.7.0 and 3.7.1 both don't work
but 3.6.10 works fine.

I'm using the sata_mv driver with a SuperMicro (two actually) cards with
Marvell MV88SX6081's.  These chips and their driver have had some issues
in the past.

I also looked for changes in the driver and didn't see any.  Though I
did see some libata changes.

I haven't had time to do a git bisect yet.

Todd




Re: [gentoo-user] Re: Anyone switched to eudev yet?

2012-12-25 Thread Todd Goodman
* Bruce Hill da...@happypenguincomputers.com [121224 21:17]:
 On Mon, Dec 24, 2012 at 04:54:08PM -0800, Mark Knecht wrote:
  On Mon, Dec 24, 2012 at 4:29 PM, »Q« boxc...@gmx.net wrote:
   On Mon, 24 Dec 2012 17:04:13 -0600
   Bruce Hill da...@happypenguincomputers.com wrote:
  
   Gentoo had mkinitrd once upon a time, but it's now in attic.
   Somewhere, sometime, for some reason, initramfs (inital ram
   filesystem) became vogue for the Gentoo camp, rather than initrd
   (initial ram disk image), and mkinitrd got retired.
  
   Is there Gentoo documentation for creating initramfs without using
   dracut?  I could only find documentation for doing it *with* dracut,
   and that procedure required using genkernel.  Surely Gentoo must have
   an initramfs guide for non-genkernel users, but I couldn't find one.
  
  
  
  I used this one (I think!!!) 6 months or a year ago. It worked first
  time but it was a bit of work getting there:
  
  http://en.gentoo-wiki.com/wiki/Initramfs
 
 Same question ... initrd.gz and initramfs are *not* the same thing; and there
 was a package called mkinitrd in Gentoo that was retired to attic some time
 ago, before my exodus from Slackware to Gentoo; therefore, I don't know it's
 history. Most distros still have a mkinitrd script, but not Gentoo. And there
 are lots of resources online which can guide you in making an initrd or
 initramfs. I'm an old guy and don't care to learn too much new unless someone
 very knowledgable in *nix (not just one distro) can give me a good reason for
 doing so. No one has with initramfs to date.

Try reading the kernel Documentation.  (e.g.,
/usr/src/linux/Documentation/filesystems/ramfs-rootfs-initramfs.txt.)

initramfs is an improvement over initrd.

Todd



Re: [gentoo-user] hard disk name changes within initramfs

2012-12-06 Thread Todd Goodman
* Helmut Jarausch jarau...@igpm.rwth-aachen.de [121206 09:27]:
 Hi,
 
 on one of several machines I have a problem with initramfs.
 
 The machine has a single SATA drive. When the kernel boots it shows  
 that it is called /dev/sda,
 Now, within the init script of my initramfs it tries to mount /dev/sda2  
 as root but fails.
 Since the initramfs spawns a shell (busybox) I can see the device files  
 for /dev/sda?
 but fdisk /dev/sda fails.
 As it turns out, the harddisk is now named /dev/sdb with /dev/sdb?  
 partition names.
[..]

I can't tell you why it changed but after my device names got messed
around with (after an upgrade) and the next boot mounted /home on /tmp
and an initscript blew away a bunch of home directories before I caught
it I switched to mounting via UUID.  Once you find the UUID to use it's
easy and alleviates lots of problems in the future.

Todd



Re: [gentoo-user] OT: How to make mutt open files by *EXTENSION*?

2012-07-24 Thread Todd Goodman
* Terry ny6...@gmail.com [120724 00:44]:
 
 I may be mistaken (away from computer atm) but doesn't mutt use mailcap? I 
 believe I use /etc/mailcap but you could also use per user files, 
 /home/user/.mailcap to adjust your attachment handling. There's lots of 
 guides on the web.
 
[..]

Hi Terry,

Yes, it uses mailcap (/etc/mailcap or ~/.mailcap.)

His problem is they've started sending his PDF as
application/octet-stream which needs further investigation to determine
what it really is.

Todd



Re: [gentoo-user] OT: How to make mutt open files by *EXTENSION*?

2012-07-23 Thread Todd Goodman
* Walter Dnes waltd...@waltdnes.org [120723 17:48]:
   My ISP emails invoices+receipts as PDF files.  Thay made a change in
 the mime type earlier this year that makes things more difficult...
 
 Before
 ==
 [-- Attachment #2: blah_blah_blah.pdf --]
 [-- Type: application/pdf, Encoding: base64, Size: 47K --]
 
 [-- application/pdf is unsupported (use 'v' to view this part) --]
 
 After
 =
 [-- Attachment #2: blah_blah_blah.pdf --]
 [-- Type: application/octet-stream, Encoding: base64, Size: 79K --]
 
 [-- application/octet-stream is unsupported (use 'v' to view this part) --]
 
   With Type: application/pdf I hit v and epdfview brought up the
 document.  With Type: application/octet-stream I have to save the
 attachment and manually open with epdfview.  Mime-type is useless in
 this situation.  Is there a way to force the file to be opened based on
 extension rather than mime type?
 
 -- 
 Walter Dnes waltd...@waltdnes.org

I think you could use something like mutt.octet.filter (There's a perl
version at http://www.davep.org/mutt/mutt.octet.filter.pl) to handle
application/octet-stream mime types.

It uses file to try to determine the proper type and can then use
whatever is in your mailcap to determine what to run.

It should be pretty easy to extend it to match on filename if you really
wanted to.

Todd



Re: [gentoo-user] GCC/Build Problems

2012-07-16 Thread Todd Goodman
* Christopher Lemire christopher.lem...@gmail.com [120716 08:08]:
[..]
 Making a simple Hello World and attempting to compile:
 
 bullshark@beastlinux ~ % cat hello.c
 #include stdio.h
 
 main() {
   printf(Hello Working GCC\n.);
 }
 bullshark@beastlinux ~ % gcc hello.c -o hello
 /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/as:
 symbol lookup error:
 /usr/lib/binutils/i686-pc-linux-gnu/2.21.1/libopcodes-2.21.1.so:
 undefined symbol: buffer_read_memory
 bullshark@beastlinux ~ %

You might need to run gcc-config.

Try gcc-config -l and make sure one of the selections has an * next to
it.

If not, run gcc-config cc profile
where cc profile is the name you see in the gcc-config -l output (like
i686-pc-linux-gnu-4.5.3, for example)

Todd



Re: [gentoo-user] [HEADSUP] New udev-186 breaks pulseaudio

2012-07-05 Thread Todd Goodman
* Neil Bothwick n...@digimed.co.uk [120705 11:53]:
 On Thu, 5 Jul 2012 09:40:15 -0500, Paul Hartman wrote:
 
   I backed down to udev-182-r3, which fixed the problem, but I had
   to run revdep-rebuild (again) to fix all the other packages that
   did build against libudev.so.1 and now had to be rebuilt a second
   time against libudev.so.0.  
  
  I ran into the same think. lvm2 also doesn't build against it, which I
  think could potentially result in an unbootable system in the right
  situation.
 
 Sync again, this has been fixed, at least for lvm2 and
 system-config-printer-common, I don't use pulseaudio. 
 
 https://bugs.gentoo.org/show_bug.cgi?id=424810

There's a new pulseaudio release coming along too:

https://bugs.gentoo.org/show_bug.cgi?id=423411

Todd



Re: [gentoo-user] grub2 in portage

2012-06-29 Thread Todd Goodman
* Allan Gottlieb gottl...@nyu.edu [120629 14:53]:
 Now that grub is slotted (slot:2 is grub2; slot:0 is legacy grub),
 an update world will merge grub-2.00 along side my current
 grub-0.97-r12.
 
 Am I correct in believing that, if I *do* the emerge but *not* do
 anything else with grub, I will continue to use legacy grub (-0.97-r12)
 whenever I boot?
 
 I realize I can add
 sys-boot/grub:2
 to package.mask
 
 thanks,
 allan

I believe that's the case.  Until you run grub2-install you'll still run
your old grub 0.92-r12.

Make sure you do the step mentioned in the emerge output though and get
grub:0 in your world file or else the next emerge --depclean will remove
your grub-0.97-r12.

Todd



Re: [gentoo-user] Are those green drives any good?

2012-05-10 Thread Todd Goodman
* Dale rdalek1...@gmail.com [120509 19:54]:
[..]
 Way back in the stone age, there was a guy that released a curve for
 electronics life.  The failure rate is high at the beginning, especially
 for the first few minutes, then falls to about nothing, then after
 several years it goes back up again.  At the beginning of the curve, the
 thought was it could be a bad solder job, bad components or some other
 problem.  At the other end was just when age kicked in.  Sweat spot is
 in the middle.

C. Gordon Bell has that curve in his book Computer Engineering.

Available online at:

http://research.microsoft.com/en-us/um/people/gbell/Computer_Engineering/index.html

for HTML and:

http://research.microsoft.com/en-us/um/people/gbell/CGB%20Files/Computer%20Engineering%207809%20c.pdf

for the PDF.

Todd



Re: [gentoo-user] Recommend a tftp server that works?

2012-05-08 Thread Todd Goodman
* Grant Edwards grant.b.edwa...@gmail.com [120507 23:34]:
 Can somebody recommend a tftp server that works?
 
 I've got atftp installed and have been using the client for some time
 (after fixing a number of bugs).
 
 But, the atftpd server just plain refuses to do anything other than
 print out the help text and exit.  It doesn't matter what options you
 specify or what root directory you give, it just prints the help text
 and exits.  No error messages, just the help text and you're done.
 
 After having worked with the atftp client code, I have no desire to
 wade into the server code to try to fix it as well.
 
 But, when I try to install one of the other tftp servers, emerge
 refuses.  How to I tell emerge to go ahead and install, for example,
 netkit-tftp even though atftp is already installed?


I use tftp-hpa and it works well for me.

Todd



Re: [gentoo-user] list of kernel modules

2012-04-06 Thread Todd Goodman
* Mark Knecht markkne...@gmail.com [120406 11:40]:
[..]
 To me it looks safe to emerge -C kmod and then emerge
 module-init-tools if you want to go that way. I'd do an equery files
 kmod and carefully study what you're getting with that package, or
 else push a bug request up to that package maintainer for providing a
 modprobe that's not 100% compatible.
 
 Good luck,
 Mark

udev-182-r2 and dracut depend on kmod.

So if the OP hasn't masked them then he needs kmod.

Todd



Re: [gentoo-user] list of kernel modules

2012-04-06 Thread Todd Goodman
* Mark Knecht markkne...@gmail.com [120406 12:16]:
 On Fri, Apr 6, 2012 at 9:03 AM, Todd Goodman t...@bonedaddy.net wrote:
  * Mark Knecht markkne...@gmail.com [120406 11:40]:
  [..]
  To me it looks safe to emerge -C kmod and then emerge
  module-init-tools if you want to go that way. I'd do an equery files
  kmod and carefully study what you're getting with that package, or
  else push a bug request up to that package maintainer for providing a
  modprobe that's not 100% compatible.
 
  Good luck,
  Mark
 
  udev-182-r2 and dracut depend on kmod.
 
  So if the OP hasn't masked them then he needs kmod.
 
  Todd
 
 
 I have the newer udev masked, but I do have dracut installed and don't
 need kmod here.
 
 My system is _mostly_ stable, not ~amd64, so possibly that's part of the 
 issue.
 
 - Mark

Hmm, I'd expect dracut to depend on virtual/modutils-0 then but
dracut-017-r3 sure doesn't seem to:

equery d kmod
sys-kernel/dracut-017-r3 (sys-apps/kmod-5[tools])

Wait, I looked at the ebuild and it depends on either module-init-tools
or kmod so that's why.

So it looks like just udev-182-r2 depends upon it.

Sorry for the misinformation.

Todd



Re: [gentoo-user] Anyone Else Ping-Ponging with fltk?

2012-04-03 Thread Todd Goodman
* Maxim Wexler maxim.wex...@gmail.com [120403 14:55]:
 
fltk-1.3 will handle what fltk-2.0 handled, unless you have some very
  hard-coded software.
 
  --
  Walter Dnes waltd...@waltdnes.org
 
  Thanks Walter for the description of what the real problem is here.
 
 
 from update -p world console o/p:
 
 ...
 [ebuild  NS] x11-libs/fltk-1.3.0 [2.0_pre6970-r1] USE=threads
 -cairo -debug -doc -examples -games -opengl -pdf -xft -xinerama 0 kB
 ...
 
 Now portage is repeating itself. This is what I saw last update last
 week. Getting big yawns on irc #gentoo. Does this mean nobody knows or
 nobody cares what's going on? Or is there a third alternative I
 haven't considered?
 
 MW

Hi Maxim,

Do you need fltk-2.0_pre6970-r1?

If your emerge -C it then everything should be happy with just
fltk-1.3.0 (which is actually *more recent* than 2.0_pre6970-r1
according to Walter.)

Regards,

Todd



  1   2   >