[gentoo-user] resizing multiple images with adding a frame as needed

2015-06-23 Thread hw

Hi,

suppose I have a number of images that need to be displayed side by side 
in a nice layout.  The images are of different sizes and have different 
aspect ratios.


To fit the images into the layout, I can scale the images either by 
height or width or by percantage, and they will look messy in the layout 
because I need to keep their aspect ratio when scaling them.


So what I need to do is put a frame around each image just as needed 
when scaling it so that I will end up with all the images having the 
same size while maintaining their aspect ratio.


I guess 'convert' (from imagemagick) or 'ffmpeg' can do this, yet I 
couldn't find out how.



(In this particular case, I would set a default size to scale all images 
to rather than doing something more complicated like examine all images 
in advance to compute a good size to use from the largest or smallest 
one or from their average dimensions.)



Any ideas how to do this?



Re: [gentoo-user] necessary use flgas

2015-06-23 Thread Neil Bothwick
On Tue, 23 Jun 2015 16:45:58 +0200, David Haller wrote:

 You can also start USE with -* in make.conf to turn everything off then
 set your own choices. This is the ideal setup for those who prefer to
 spend more time fixing their computer than using it.  
 
 Hah!

 Hey, I got no printer, had others print about 5 pages for me in ~10
 years. Why would I want cups?

You do know that only the desktop profiles include cups as a default USE
flag? The one I recommended does not.


-- 
Neil Bothwick

WindowError:01B  Illegal error. Do NOT get this error.


pgpnBgF7RIvxW.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] resizing multiple images with adding a frame as needed

2015-06-23 Thread wabenbau
hw h...@gartencenter-vaehning.de wrote:

 Hi,
 
 suppose I have a number of images that need to be displayed side by
 side in a nice layout.  The images are of different sizes and have
 different aspect ratios.
 
 To fit the images into the layout, I can scale the images either by
 height or width or by percantage, and they will look messy in the
 layout because I need to keep their aspect ratio when scaling them.
 
 So what I need to do is put a frame around each image just as needed
 when scaling it so that I will end up with all the images having the
 same size while maintaining their aspect ratio.
 
 I guess 'convert' (from imagemagick) or 'ffmpeg' can do this, yet I
 couldn't find out how.
 
 
 (In this particular case, I would set a default size to scale all
 images to rather than doing something more complicated like examine
 all images in advance to compute a good size to use from the largest
 or smallest one or from their average dimensions.)
 
 
 Any ideas how to do this?

You maybe can use media-gfx/graphicsmagick or media-gfx/imagemagick 
for that purpose (I prefer graphicsmagick because it's faster).

With the composite command and it's repage parameter it should be 
possible to do what you want. But I'm not sure about this, I never
done this by myself.

--
Regards
wabe




Re: [gentoo-user] necessary use flgas

2015-06-23 Thread David Haller
Hello,

On Tue, 23 Jun 2015, Neil Bothwick wrote:
On Tue, 23 Jun 2015 17:35:10 +0430, behrouz khosravi wrote:
 I really like to have control over my machine as much as possible. In
 this way I will learn a lot, so I am trying to remove all the default
 use flags and control them manually.
[..]
You can also start USE with -* in make.conf to turn everything off then
set your own choices. This is the ideal setup for those who prefer to
spend more time fixing their computer than using it.

Hah!

# find /usr/local/portage/*/ -mindepth 1 -maxdepth 1 -type d | wc -l
55

Hey, I got no printer, had others print about 5 pages for me in ~10
years. Why would I want cups? And BTW: qtwebkit:5 compiles just fine
without leveldb (with a little -D help)...


--- /usr/portage/dev-qt/qtwebkit/qtwebkit-5.4.2.ebuild   2015-06-17 
17:24:04.0 +0200
+++ /usr/local/portage/dev-qt/qtwebkit/qtwebkit-5.4.2.ebuild 2015-06-23 
07:05:01.823067740 +0200
@@ -14,13 +14,13 @@
 
 # TODO: qttestlib, geolocation, orientation/sensors
 
-IUSE=gstreamer gstreamer010 multimedia opengl printsupport qml udev webp
+IUSE=gstreamer gstreamer010 multimedia opengl printsupport qml udev webp 
leveldb
 REQUIRED_USE=?? ( gstreamer gstreamer010 multimedia )
 
 RDEPEND=
dev-db/sqlite:3
dev-libs/icu:=
-   =dev-libs/leveldb-1.18-r1
+   leveldb? ( =dev-libs/leveldb-1.18-r1 )
dev-libs/libxml2:2
dev-libs/libxslt
=dev-qt/qtcore-${PV}:5[icu]
@@ -88,6 +88,9 @@
use webp || sed -i -e '/config_libwebp: WEBKIT_CONFIG += 
use_webp/d' \
Tools/qmake/mkspecs/features/features.prf || die
 
+   use leveldb || sed -i -e 
's/ENABLE_INDEXED_DATABASE=1/ENABLE_INDEXED_DATABASE=0/' \
+   Tools/qmake/mkspecs/features/features.pri || die
+
# bug 458222
sed -i -e '/SUBDIRS += examples/d' Source/QtWebKit.pro || die


As I hate cmake, I don't know if there's a better way to inject that
ENABLE_INDEXED_DATABASE=0 or something to that into the build process.
It works, I'm happy ;) Oh, and BTW, mozillen (via mozconfig) work just
fine without a spellchecker. Which I hate and never use. They distract
more and introduce errors that anything else, so I patch
eclass/mozconfig-*.eclass. BTW2: how can I overlay my eclass stuff
over the /usr/portage one? ATM, I just copy it over after each sync.

-dnh, minimalist, obviously ;)

-- 
my other signature is more intellectual



Re: [gentoo-user] One Time Passwords

2015-06-23 Thread Michael Schwartzkopff
Am Dienstag, 23. Juni 2015, 14:49:41 schrieb Helmut Jarausch:
 Hi,
 
 I'd like to log into my Gentoo system from my smartphone.
 But I don't trust Google (Android's parents).
 Therefore I need a OTP solution for loggin into my Gentoo system.
 
 Can anybody recommend a solution?

I set up a RADIUS/OTP system with mOTP. This works with android.

Perhaps you also have a look at http://www.multiotp.net for different OTP 
schemems.

Mit freundlichen Grüßen,

Michael Schwartzkopff

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

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


Re: [gentoo-user] mount -o bind /dev /mnt/gentoo/dev

2015-06-23 Thread David Haller
Hello,

On Tue, 23 Jun 2015, Alan McKinnon wrote:
On 23/06/2015 09:27, Ran Shalit wrote:
 I am a beginner with Gentoo.
 I have followed the instruction for the installation, and tried to see
 that I really  understand all of them.
 There is the command:
 mount -o bind /dev /mnt/gentoo/dev
 Which I'm not sure I really understand.
[..]
 2. Another thing I've noticed is that some tutorial add to the above
 also bind to sys folder , and other do not include it.
 mount -o bind /sys /mnt/gentoo/sys

The handbook says to do it, and it makes sense to do it.

Any tutorial that doesn't say it, is wrong/outdated or it's author
doesn't understand.

If the official handbook says to do it, and some other post from Joe
Random Blogger says not to, which one you gonna believe?

 Therefore I would like to ask if it is really required ?

Yes

ACK. There's more actually. Currently, I run Gentoo mostly in a chroot
from my old system[1], and also updated it that way[2]. Currently, I
use this script to chroot into gentoo:

 /root/bin/chrooter 
#!/bin/bash
root=$1
shift

### those test -e check for files/subdirs to not bind-remount if I
### chroot in more than one xterm, /dev/shm/dh is just a subdir I
### create via a custom boot-script on the old system, you'll have to
### revert to grepping /proc/mounts for ${root}/dev/shm if your
### /dev/shm is empty, and mind you: I use /Gentoo as $root, but it
### appears as /root_ssd2 in /proc/mounts!
test -e ${root}/proc/kcore || mount --bind /proc/ ${root}/proc
test -e ${root}/sys/block  || mount --bind /sys/ ${root}/sys
test -e ${root}/dev/zero   || mount --bind /dev/ ${root}/dev
test -e ${root}/dev/shm/dh || mount --bind /dev/shm ${root}/dev/shm
test -e ${root}/dev/pts/0  || mount --bind /dev/pts/ ${root}/dev/pts

### convenient way to mount further stuff outside the chroot (with the
### appropriate fstab entries). Ran, you should just ignore these lines
for d in $@; do
grep -q $d /proc/mounts || mount $d
done

### adjust the environment (old system still uses iso8859-15)
export LANG=en_US.utf8
unset LC_CTYPE

### finally do the chroot
cd $root
chroot $root


So, basically, I bind-mount the usual /proc, /sys, /dev plus /dev/shm
and /dev/pts.

IIRC compiling some stuff barfed when /dev/shm was not available
(icedtea?) and /dev/pts gives proper terminals (cf. output of 'tty').

HTH  have fun,
-dnh

[1] have not migrated/tested my much used programs under gentoo yet
and too much to do, but most stuff runs from the chroot (even X
stuff once I copied my ~/.Xauthority :)

[2] from a 2010 install not touched since then! Had to use the
unpacked stage3 a couple of times setting PATH/LD_LIBRARY_PATH
to the stage3 directory (due to emerge/glibc stuff), I definitely
do _NOT_ recommend this ;) Was fun though and I learned a lot
about the inner workings of emerge/gentoo :)

-- 
No, it's a small country on the South American Ivory Coast, just to
the left of the Caucasus, with penguin wool and yucca meat as primary
exports.  -- H. Ekker on the question if Austria is in Europe



Re: [gentoo-user] One Time Passwords

2015-06-23 Thread Helmut Jarausch
On 06/23/2015 02:55:35 PM, Michael Schwartzkopff wrote:
 Am Dienstag, 23. Juni 2015, 14:49:41 schrieb Helmut Jarausch:
  Hi,
  
  I'd like to log into my Gentoo system from my smartphone.
  But I don't trust Google (Android's parents).
  Therefore I need a OTP solution for loggin into my Gentoo system.
  
  Can anybody recommend a solution?
 
 I set up a RADIUS/OTP system with mOTP. This works with android.
What's that?

Many thanks,
Helmut.




[gentoo-user] One Time Passwords

2015-06-23 Thread Helmut Jarausch
Hi,

I'd like to log into my Gentoo system from my smartphone.
But I don't trust Google (Android's parents).
Therefore I need a OTP solution for loggin into my Gentoo system.

Can anybody recommend a solution?

Many thanks,
Helmut




Re: [gentoo-user] Gnu Common Lisp / cl-ppcre and ... sbcl???

2015-06-23 Thread David Mattli
meino.cra...@gmx.de writes:

 It would be THAT nice to get sbcl running, since it is very activilky
 supported and maintained and it is what I run on my Beaglebone Black
 (another somehow bigger embedded system) and my PC.

 Any Way out of this ?

 Best regards,
 Meino

Sorry! It seems you're right. SBCL requires vfp, softfp just means the
abi is compatible with the soft abi.

My last suggestion is ECL. It has a package on Debian's soft float port.

https://common-lisp.net/project/ecl/

--David




Re: [gentoo-user] necessary use flgas

2015-06-23 Thread Neil Bothwick
On Tue, 23 Jun 2015 17:35:10 +0430, behrouz khosravi wrote:

 I really like to have control over my machine as much as possible. In
 this way I will learn a lot, so I am trying to remove all the default
 use flags and control them manually.
 
 I just don't know which global use flags are absolutely necessary to
 the system to make it snappier or secure.
 What do you recommend ?

Use a minimal profile like default/linux/amd64/13.0 which will 
set only the USE flags most people need. From there you can disable
individual flags if you think you don't need them.

You can also start USE with -* in make.conf to turn everything off then
set your own choices. This is the ideal setup for those who prefer to
spend more time fixing their computer than using it.


-- 
Neil Bothwick

A man needs a mistress - just to break the monogamy


pgpw9mjcLypNH.pgp
Description: OpenPGP digital signature


[gentoo-user] necessary use flgas

2015-06-23 Thread behrouz khosravi
Hello everyone.

I really like to have control over my machine as much as possible. In this
way I will learn a lot, so I am trying to remove all the default use flags
and control them manually.

I just don't know which global use flags are absolutely necessary to the
system to make it snappier or secure.
What do you recommend ?

Thanks


Re: [gentoo-user] purchasing a dell laptop

2015-06-23 Thread Christopher Jones


Sent from my iPhone

 On Jun 21, 2015, at 3:16 PM, gottl...@nyu.edu wrote:
 
 I am seriously thinking of updating my dell 6430s laptop purchased 3
 years ago.  NYU has an arrangement with dell so that is the only maker
 I am considering.  This machine will be essentially gentoo only (I
 configure my computers to dual boot some version of windows for ease
 in dealing with dell support).
 
 The hardest decision is size vs performance, but I know you can't help
 with that.  I have pretty much decided on the dell 7450.  My questions
 concern three options: Graphics, Wireless, Screen.  But would appreciate
 any other advice you have.
 
 I will definitely get
  * 16GB ram (2 x 8GB)
  * 512GB solid state disk
  * most powerful CPU compatible with the options chosen
 
 1. Graphics.
I can afford a high-end graphics co-processor, but prefer the
software/administrative simplicity of intel graphics.  I do not
play high speed games or otherwise run graphics intensive
applications. Am I correct in believing that Linux (the kernel)
supports (the dell option)
   Intel Core i7-5600U Processor, UMA graphics, Smart Card
directly with no extra gentoo package needed?
 
 2. Wireless.
 
My current home router/wireless-access-point (linksys WRT54G)
supports 10/100 wired and 802.11bg wireless.  I have no problems
with this device or our home network, but I could upgrade to a
1-gigabit version if deemed important.
 
Currently I must install net-wireless/broadcom-sta.  This has caused
no problems to date, but a wireless chip supported directly by linux
would be preferable.
 
I would appreciate help choosing among the following dell options
(the prices are about the same).
a. Intel Tri Band Wireless-AC 17265 802.11AC
   Wi-Fi + Wi-Gig + BT 4.0 LE Wireless Card
b. Dell Wireless 1707 802.11n Single Band
   Wi-Fi + BT 4.0LE Wireless Card
c. Dell Wireless 1560 (802.11ac 2x2, WiFi  BT)
d. Intel Dual Band Wireless-AC 7265 802.11AC
   Wi-Fi + BT 4.0 LE Wireless Card (2X2)
 
 3. Screen
   I am only considering 1920x1080 (best available) with a camera.
   a. Touch is available for $160.
  Are touch screens supported on gentoo/gnome?
   b. Some screens (including touch) are WiGig capable.
  This requires option 2a above (Tri Band Wireless-AC).
  Is WiGig valuable and is it easy to administer?
 
 Thanks in advance,
 allan
 
 
Regarding the touch screens/tablets, Gentoo has drivers for them. I've been 
using Gentoo on my tablet PC for years now. However there's no swipe 
capability. I've read someone who did it but that was just one person and 
couldn't figure out how he did it. I think they used KDE's Plasma. 





Re: [gentoo-user] necessary use flgas

2015-06-23 Thread Neil Bothwick
On Tue, 23 Jun 2015 18:35:32 +0200, David Haller wrote:

 You do know that only the desktop profiles include cups as a default
 USE flag? The one I recommended does not.
 
 Try compiling icedtea, libreoffice, scribus and whatnot without
 pulling in cups, no matter the use-flags. And sabotaging the ebuild
 and buildsystem to not use cups leads to failed builds, BT,TriedThat :((

The OP wanted to set up a snappier system. Java and LibreOffice are
not the first programs that spring to mind when I think snappier...
 
 Why does a GUI (a USER INTERFACE Toolkit fer f*** sake! Not a Printer
 Interface!) _ALWAYS_ be able to print (if I interpret the AWT right)? 
 That's just dumb.

No argument there.

 [1] speaking of that: I noticed, that when I bork[2] an ebuild in
 /usr/local/portage, it gets silently(!) ignored and the one from
 /usr/portage is used. The only indication is the flag on the
 package e.g. ::gentoo vs. ::local. Only once I move the gentoo
 ebuilds into e.g. the .attic subfolder, emerge tells me what's
 actually wrong with my ::local ebuild in /usr/local/portage. Have
 I overlooked an option of emerge or is that a bug?

ebuild /usr/local/portage/cat/pkg/pkg-x.y.ebuild merge

will use the specific ebuild you give it.


-- 
Neil Bothwick

Got kleptomania? Be sure to take something for it.


pgpIWvnAOgb58.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] mount -o bind /dev /mnt/gentoo/dev

2015-06-23 Thread Christopher Jones


Sent from my iPhone

 On Jun 23, 2015, at 10:31 AM, David Haller gen...@dhaller.de wrote:
 
 Hello,
 
 On Tue, 23 Jun 2015, Alan McKinnon wrote:
 On 23/06/2015 09:27, Ran Shalit wrote:
 I am a beginner with Gentoo.
 I have followed the instruction for the installation, and tried to see
 that I really  understand all of them.
 There is the command:
 mount -o bind /dev /mnt/gentoo/dev
 Which I'm not sure I really understand.
 [..]
 2. Another thing I've noticed is that some tutorial add to the above
 also bind to sys folder , and other do not include it.
 mount -o bind /sys /mnt/gentoo/sys
 
 The handbook says to do it, and it makes sense to do it.
 
 Any tutorial that doesn't say it, is wrong/outdated or it's author
 doesn't understand.
 
 If the official handbook says to do it, and some other post from Joe
 Random Blogger says not to, which one you gonna believe?
 
 Therefore I would like to ask if it is really required ?
 
 Yes
 
 ACK. There's more actually. Currently, I run Gentoo mostly in a chroot
 from my old system[1], and also updated it that way[2]. Currently, I
 use this script to chroot into gentoo:
 
  /root/bin/chrooter 
 #!/bin/bash
 root=$1
 shift
 
 ### those test -e check for files/subdirs to not bind-remount if I
 ### chroot in more than one xterm, /dev/shm/dh is just a subdir I
 ### create via a custom boot-script on the old system, you'll have to
 ### revert to grepping /proc/mounts for ${root}/dev/shm if your
 ### /dev/shm is empty, and mind you: I use /Gentoo as $root, but it
 ### appears as /root_ssd2 in /proc/mounts!
 test -e ${root}/proc/kcore || mount --bind /proc/ ${root}/proc
 test -e ${root}/sys/block  || mount --bind /sys/ ${root}/sys
 test -e ${root}/dev/zero   || mount --bind /dev/ ${root}/dev
 test -e ${root}/dev/shm/dh || mount --bind /dev/shm ${root}/dev/shm
 test -e ${root}/dev/pts/0  || mount --bind /dev/pts/ ${root}/dev/pts
 
 ### convenient way to mount further stuff outside the chroot (with the
 ### appropriate fstab entries). Ran, you should just ignore these lines
 for d in $@; do
grep -q $d /proc/mounts || mount $d
 done
 
 ### adjust the environment (old system still uses iso8859-15)
 export LANG=en_US.utf8
 unset LC_CTYPE
 
 ### finally do the chroot
 cd $root
 chroot $root
 
 
 So, basically, I bind-mount the usual /proc, /sys, /dev plus /dev/shm
 and /dev/pts.
 
 IIRC compiling some stuff barfed when /dev/shm was not available
 (icedtea?) and /dev/pts gives proper terminals (cf. output of 'tty').
 
 HTH  have fun,
 -dnh
 
 [1] have not migrated/tested my much used programs under gentoo yet
and too much to do, but most stuff runs from the chroot (even X
stuff once I copied my ~/.Xauthority :)
 
 [2] from a 2010 install not touched since then! Had to use the
unpacked stage3 a couple of times setting PATH/LD_LIBRARY_PATH
to the stage3 directory (due to emerge/glibc stuff), I definitely
do _NOT_ recommend this ;) Was fun though and I learned a lot
about the inner workings of emerge/gentoo :)
 
 -- 
 No, it's a small country on the South American Ivory Coast, just to
 the left of the Caucasus, with penguin wool and yucca meat as primary
 exports.  -- H. Ekker on the question if Austria is in Europe
 
Ok what was the point of you posting all this?? Are you trying to confuse the 
OP who is new to Gentoo? Or just trying to show off that you use Gentoo in a 
non-practical way foreign to the average user? 

If you're going to add such non-sense as a reply that doesn't contribute to 
really helping someone new to how this all works, best be adding explanations 
of what all your mess is doing and means. 


[gentoo-user] Re: [OT} Intel D2700 processor + NM10 chipset - how to kernel config?

2015-06-23 Thread Francisco Ares
Hi again.

I've found something, it looks like Intel had outsourced the video graphics
part of this family of processors to Imagination Technologies, using their
PowerVR technology.

Besides this, there are recent posts in a few forums that talks about an
open source driver, on the way.

In Intel's website, I could only find a 32-bit driver, and the hint that it
was extracted from an older SDK.

Meanwhile:

http://community.imgtec.com/developers/powervr/graphics-sdk/

I guess that inside the SDK package there might be its driver also, as
suggested by Intel, going to try it right now.

Best regards,
Francisco


2015-06-23 8:40 GMT-03:00 Francisco Ares fra...@gmail.com:

 Hi,

 I have bought a cheap mini ITX board with an embedded Intel D2700
 processor and NM10 chipset, and the kernel I have built a few months ago
 doesn't even allow text mode console - meanwhile, among other things, I'm
 trying to find and strip out any frame buffer entries in the kernel
 configuration, so that at least a plain text console might be visible.

 Also meanwhile, a live CD (kubuntu) managed to get a VGA KDE running (no
 pure text mode console), but only using a large screen monitor, and
 exclusively using HDMI port (the same monitor did not work on VGA, and the
 board does not support DVI), so that at least I could check the full
 specification of the processor (`cat /proc/cpuinfo`) and all of the
 peripherals (`lspci -k`), so that I could build a better suited kernel.

 Any specifics on your minds about this hardware?

 Thanks!
 Francisco



Re: [gentoo-user] Re: purchasing a dell laptop

2015-06-23 Thread gottlieb
On Sun, Jun 21 2015, James wrote:

 Alan McKinnon alan.mckinnon at gmail.com writes:

 Allan Gottlieb writes:

  The hardest decision is size vs performance, but I know you can't help

 Maybe, maybe not.

Perhaps I was unclear.  I simply meant that clearly higher performance
is better and so is a smaller/lighter laptop.  The trade-off seems to be
a matter for personal preference.

  1. Graphics.
  I can afford a high-end graphics co-processor, but prefer the
  software/administrative simplicity of intel graphics.  I do not
  play high speed games or otherwise run graphics intensive
  applications. Am I correct in believing that Linux (the kernel)
  supports (the dell option)
 Intel Core i7-5600U Processor, UMA graphics, Smart Card
  directly with no extra gentoo package needed?

 Cuda on nvidia is well seasoned, but expensive. Gentoo distros such as
 Pentoo, use cuda for smokin fast passwd cracking. Many/most apps
 will benefit, in the near future, with the deployment of GCC-5.x as RDMA via
 gcc% will allow for using that smoking GPU (a simd processor) and the DDR5
 ram as if it was part of the CPU/ram resources.  If you read up on all the
 advances with GCC 5 you will  see most gpu (amd, Intel etc) will/should be
 supported. How long for stabilization, is unknown, at this time. But
 for very few dollars it's the biggest thing to hit hardware, since the FPU
 was integrated onto the same die, imho. YMMV.

 Check whatever GPU you select for the amount of its own (discrete) DDR5
 memory on the GPU (card).

 So on the whole, my experience with higher-end Dell is that hardware is
 pretty much well-supported across the boards with very few gotchas. The
 only two exceptions would be wifi cards (cheap to fix) and maybe GPU
 co-processor (if you are unlucky to get an unsupported cutting edge one
 and need to wait a bit for Linux support to catch up).

 I'd check around on the precise details of the GPU before purchase.
 Some GPU use the general system ram, and that is a severe
 (buss-bandwidth) bottleneck that really dampens performance on many
 softwares. The looming gcc-5 is a game changer on using video
 resources, as general system resources...

I doubt that gcc 5 (or 6) will extract much parallelism that Cuda can
exploit for my primary use cases: compiling (largely gentoo) sources and
running emacs.

I have learned that the high end graphic coprocessors (or GPUs as they
are now called) carry a significant administrative overhead, at least
for gentoo.

Thanks for responding,
allan



[gentoo-user] Re: necessary use flgas

2015-06-23 Thread James
David Haller gentoo at dhaller.de writes:



  You can also start USE with -* in make.conf to turn everything off 
  then set your own choices. This is the ideal setup for those who 
  prefer to spend more time fixing their computer than using it.  

Huh?
There is an entire universe of embedded devices out there. Vendors refer to
this as the 'internet of things', for commercialization and mindshare
purposes. It is actually just embedded devices, with tcp/ip/udp...
So there are trillions of reasons for gentoo folks to pursue minimization
all the way down to a stripped (optimized) linux kernel to the point of
running embedded linux. Just take a look at Linaro.

  Hey, I got no printer, had others print about 5 pages for me in ~10
  years. Why would I want cups?

 You do know that only the desktop profiles include cups as a default USE
 flag? The one I recommended does not.

 Try compiling icedtea, libreoffice, scribus and whatnot without
 pulling in cups, no matter the use-flags. And sabotaging the ebuild
 and buildsystem to not use cups leads to failed builds, BT,TriedThat :((


One of the (I guess not so obvious) purposes of my recent thread on profiles
is for the community to discuss profiles that are less than the default
profile for a given arch.  We should be able to readily move up (from an
embedded) and down (from a default profile), on each and every arch, with
just the minimal flags, configs and such. Default is not even close to
minimal. I'm just surprised (mildly disappointed :: but not really) that one
of our embedded devs has not already championed this issue.


David is just pointing out yet another reason for a different minimization
need, but still in-line with what I outlined. I just think that  the gentoo
community should not have to go it  individually alone when such
minimizations are desired.


Beside just as gentoo teaches one the basics of linux, so do does one learn
about hardware issues, when you run an embedded system on a given platform.
However, I do understand that *everyone with any sort of embedded expertise*
is now mostly focused on the possibilities with the new arm64 SoCs about to
appear on the market.


hth,
James




Re: [gentoo-user] necessary use flgas

2015-06-23 Thread David Haller
Hello,

On Tue, 23 Jun 2015, Neil Bothwick wrote:
On Tue, 23 Jun 2015 16:45:58 +0200, David Haller wrote:
 You can also start USE with -* in make.conf to turn everything off then
 set your own choices. This is the ideal setup for those who prefer to
 spend more time fixing their computer than using it.  

 Hey, I got no printer, had others print about 5 pages for me in ~10
 years. Why would I want cups?

You do know that only the desktop profiles include cups as a default USE
flag? The one I recommended does not.

Try compiling icedtea, libreoffice, scribus and whatnot without
pulling in cups, no matter the use-flags. And sabotaging the ebuild
and buildsystem to not use cups leads to failed builds, BT,TriedThat :((

ATM, I just juggle it around. Install cups/cups-filter/ghostscript
with cups-flag, build icedtea/libreoffice/scribus, remove
cups/cups-filter, rebuild ghostscript without cups and ignore any
dependency errors on cups ;-P I do not care one bit about printing not
working, as long as the programs run.

Speaking of that, is there a gentoo-way, to link _some_ specific libs
(cups) statically to a program that won't run without it? I don't care
about a 'emerge cups/build program and link statically to cups/unmerge
cups' cycle.

Oh, yes, I did search on gentoo.org and generally, apparently, icedtea
just won't build without cups. icedtea-bin also yammers for cups:

!!! existing preserved libs:
 package: net-print/cups-2.0.2-r1
 *  - /usr/lib64/libcups.so.2
 *  used by /opt/icedtea-bin-7.2.5.3/jre/lib/amd64/headless/libmawt.so 
(dev-java/icedtea-bin-7.2.5.3)
 *  used by /opt/icedtea-bin-7.2.5.3/jre/lib/amd64/xawt/libmawt.so 
(dev-java/icedtea-bin-7.2.5.3)
 *  used by /usr/bin/scribus (app-office/scribus-1.5.0-r1)
 *  used by 2 other files

As long as programs run, I'll get the big stick ;) Scribus seems to
work. Still gotta test the Java stuff ... Moving stuff to a subfolder
like .attic works nicely though in such cases, also inside
*/portage/*[1] for ebuilds ;)

All this is not a problem with gentoo, it's a problem with upstream.

Why does a GUI (a USER INTERFACE Toolkit fer f*** sake! Not a Printer
Interface!) _ALWAYS_ be able to print (if I interpret the AWT right)? 
That's just dumb. Oh well, not your problem, but I fear the patch to
remove the cups dep would be large and tedious at best to maintain
which is why the icedtea maintainers gave up on it, as far as I've
found. *sigh* Anyway, I still got some questions about JDKs on gentoo,
but that's for another day and another thread.

BTW: I might sound like an ass demanding stuff, it's just that I'm a
old-time (15+ years) of roll-your-own-package guy, just not
really on gentoo thus far. Actually, systemd beyond an init was
the point where I said to myself: no way. I've been reading this
list for quite a while now (a bit in 2010, then very little, and
now quite a lot), and I've already got e.g. you and Neil (just
from today) on my like list, so to speak, always helpful,
patient ... Been doing that kind of support elsewhere for a long
time too, so I much appreciate you doing it here and help me with
pointers.

Sorry, I'm having such a go at you, feel free to point me to
documentation (even vaguely, just a good search word), to another
thread etc. pp. I admit, I haven't searched for [1][2], but the other
stuff I did at least a site search on gentoo.org.

Thanks,
-dnh

PS: I hope I'll soon get into the roll and co-maintain that odd
package here or there ;) I've been maintaining packages elsewhere,
and ebuild stuff looks quite straightforward, I'm just still
running into details a bit too often for my taste.

[1] speaking of that: I noticed, that when I bork[2] an ebuild in
/usr/local/portage, it gets silently(!) ignored and the one from
/usr/portage is used. The only indication is the flag on the
package e.g. ::gentoo vs. ::local. Only once I move the gentoo
ebuilds into e.g. the .attic subfolder, emerge tells me what's
actually wrong with my ::local ebuild in /usr/local/portage. Have
I overlooked an option of emerge or is that a bug?

[2] trivial stuff. Using 'foo? ( =libfoo-1.2.3 )' without adding foo to
IUSE, or missing the () around the dep after the useflag... That's
those I run into most often so far ;) And emerge even tells you
about it once you disable the ::gentoo main portage ;)

-- 
Getting a penguin to pee on demand is _messy_.  -- Linus Torvalds



Re: [gentoo-user] purchasing a dell laptop

2015-06-23 Thread gottlieb
On Sun, Jun 21 2015, Alan McKinnon wrote:

 On 21/06/2015 21:16, gottl...@nyu.edu wrote:
 I am seriously thinking of updating my dell 6430s laptop purchased 3
 years ago.  NYU has an arrangement with dell so that is the only maker
 I am considering.  This machine will be essentially gentoo only (I
 configure my computers to dual boot some version of windows for ease
 in dealing with dell support).
 
 The hardest decision is size vs performance, but I know you can't help
 with that.  I have pretty much decided on the dell 7450.  My questions
 concern three options: Graphics, Wireless, Screen.  But would appreciate
 any other advice you have.

 I've used nothing bur Dell laptops for 10 years (currently on #5), and
 I've yet to run into any hardware support issues.

Same here (but 20+ years).  However, some friends and my children did
have problems.  I believe the difference is NYU buys many dells, whereas
the friends/children were individual purchasers.

 I will definitely get
   * 16GB ram (2 x 8GB)
   * 512GB solid state disk
   * most powerful CPU compatible with the options chosen
 
 1. Graphics.
 I can afford a high-end graphics co-processor, but prefer the
 software/administrative simplicity of intel graphics.  Am I
 correct in believing that Linux (the kernel) supports
 (the dell option)
Intel Core i7-5600U Processor, UMA graphics, Smart Card
 directly with no extra gentoo package needed?

 All intel cards I've ever seen are supported.

Good.  I will get the Core i7-5600U

 2. Wireless.
 
 I would appreciate help choosing among the following dell options
 (the prices are about the same).
 a. Intel Tri Band Wireless-AC 17265 802.11AC
Wi-Fi + Wi-Gig + BT 4.0 LE Wireless Card
 b. Dell Wireless 1707 802.11n Single Band
Wi-Fi + BT 4.0LE Wireless Card
 c. Dell Wireless 1560 (802.11ac 2x2, WiFi  BT)
 d. Intel Dual Band Wireless-AC 7265 802.11AC
Wi-Fi + BT 4.0 LE Wireless Card (2X2)

 Intel wifi cards OTH, seem to Just Work. I recommend you go with an
 intel card, or swap it out later (they are fairly cheap).

OK.  I guess I will choose a. over d. above for the (stupid/naive)
reason that tri band is better than dual band.

 3. Screen
I am only considering 1920x1080 (best available) with a camera.
a. Are touch screens supported on gentoo/gnome?

 No idea, never used one.

b. Is WiGig valuable and is it easy to administer?

 Never heard of it :-)

OK.  I will (shudder) ask dell which 1920x1080 w/ camera screen to get.

 So on the whole, my experience with higher-end Dell is that hardware is
 pretty much well-supported across the boards with very few gotchas. The
 only two exceptions would be wifi cards (cheap to fix) and maybe GPU
 co-processor (if you are unlucky to get an unsupported cutting edge one
 and need to wait a bit for Linux support to catch up).

I've had similar experiences but very much appreciate the confirmation
and your comments.

allan



Re: [gentoo-user] purchasing a dell laptop

2015-06-23 Thread gottlieb
On Tue, Jun 23 2015, Christopher Jones wrote:

 Sent from my iPhone

 Regarding the touch screens/tablets, Gentoo has drivers for them. I've
 been using Gentoo on my tablet PC for years now. However there's no
 swipe capability. I've read someone who did it but that was just one
 person and couldn't figure out how he did it. I think they used KDE's
 Plasma.

Thanks.  I use gnome and would make little use of the touch screen
capability if it were available.  As a result I decided against it for
this purchase since it appears the admin overhead would exceed the very
modest use I would make of it.  Hopefully in 3 years, when I buy my next
laptop it will be well supported and just works in gnome.

thanks again,
allan



Re: [gentoo-user] mount -o bind /dev /mnt/gentoo/dev

2015-06-23 Thread David Haller
Hello,

On Tue, 23 Jun 2015, Christopher Jones wrote:
Sent from my iPhone

That figures.

 On Jun 23, 2015, at 10:31 AM, David Haller gen...@dhaller.de wrote:
[..]
  /root/bin/chrooter 
[..]
 ### convenient way to mount further stuff outside the chroot (with the
 ### appropriate fstab entries). Ran, you should just ignore these lines
[..]
 

Ok what was the point of you posting all this?? Are you trying to
confuse the OP who is new to Gentoo? Or just trying to show off that
you use Gentoo in a non-practical way foreign to the average user?

I showed how *I* did a ton of stuff chrooted and clearly wrote that
was how just I did it, and that /dev/shm and /dev/pts might be needed
and how I wrapped all that up into one convenient command.

And, do you think I have that Ran, ... comment in my actual script?

My real script has not _one_ comment actually! So, you proved, you
have not actually read what I mailed.

If you're going to add such non-sense as a reply that doesn't
contribute to really helping someone new to how this all works, best
be adding explanations of what all your mess is doing and means.

What is useful or helpful to the OP, or any other (but you), what
contributes, is not for you to decide!

So just shut it if you've nothing to contribute, will ya?

And effing READ what is written. My explanations are there! And the OP
is always welcome to ask for more (unless explicitly told otherwise)! 
That's what this list is for or is it?

-dnh, as a newbie to this list, reigning himself in

-- 
If a 'train station' is where a train stops, what's a 'workstation'?



Re: [gentoo-user] necessary use flgas

2015-06-23 Thread David Haller
Hello,

On Tue, 23 Jun 2015, Neil Bothwick wrote:
On Tue, 23 Jun 2015 18:35:32 +0200, David Haller wrote:
 You do know that only the desktop profiles include cups as a default
 USE flag? The one I recommended does not.
 
 Try compiling icedtea, libreoffice, scribus and whatnot without
 pulling in cups, no matter the use-flags. And sabotaging the ebuild
 and buildsystem to not use cups leads to failed builds, BT,TriedThat :((

The OP wanted to set up a snappier system. Java and LibreOffice are
not the first programs that spring to mind when I think snappier...

Well, I use LaTeX anyway for office, but one needs stuff that mom is
used to, so one can talk her through stuff, eh? And Java? There's e.g. 
tvbrowser and MediathekView. No need to talk about snappy but I
digressed from the OP anyway already. I just happily jumped on the
topic of leaving stuff out that one doesn't need. And generally stuff
you don't have installed cannot be attacked, esp. such ubiquitously
used stuff as cups (used by MacOS/iOS too), is an important attack
vector less installed.

Actually: mom uses libreoffice-calc to edit a .csv file, that is then
fed to a perl-script by me (via a couple of links on the XFCE/formerly
WinXP Desktop (via a .cmd batch) calling it differently), that
generates a LaTeX file using labels.sty that is fed to pdflatex and
spits out a PDF to be printed on labels, and even starting a
pdf-viewer to check it before printing ;) Worked just like a charm
for, ah, about 7+ years without any maintanece required, but
recentenly, mom must've borked up the charset on saving multiply,
probably due to changed defaults in libreoffice, looked like double
encoded utf8, but was borked even beyond that. Manually fixing it
turned out to be the least work. *Gah*. As mom wanted to weed out
outdated stuff anyway, she did it, but we talked about it and I'd had
done it.

Except from that, mom writes her letters and stuff with -writer, and
has been doing so since 199x (then with StarOffice).
 
 Why does a GUI (a USER INTERFACE Toolkit fer f*** sake! Not a Printer
 Interface!) _ALWAYS_ be able to print (if I interpret the AWT right)? 
 That's just dumb.

No argument there.

*MEH* :) Yeah, there's a couple of dumb deps by upstream, that are
not configurable and not even easily patched out (I think I have one
where I could patch, but usually, it's too hardwired in, so to speak). 
Makes you want to grab a fish (fresh from Lutetia), and slap the
culprit around the head with it ... And boy! Are we in for something
getting systemd hardwired as a dep ... *cringe*

 [1] speaking of that: I noticed, that when I bork[2] an ebuild in
 /usr/local/portage, it gets silently(!) ignored and the one from
 /usr/portage is used. The only indication is the flag on the
 package e.g. ::gentoo vs. ::local. Only once I move the gentoo
 ebuilds into e.g. the .attic subfolder, emerge tells me what's
 actually wrong with my ::local ebuild in /usr/local/portage. Have
 I overlooked an option of emerge or is that a bug?

ebuild /usr/local/portage/cat/pkg/pkg-x.y.ebuild merge

will use the specific ebuild you give it.

Got to alias/script that! But it is a clumsy workaround. As your local
overlay (or any with a higher precedence) should override the base,
emerge should at least tell you about the problem with the overlay,
and then e.g. ask to emerge the base (/usr/portage), or abort. How
about it? I consider it a bug (unless I and Neil overlooked a switch
to emerge, and even then, I'd be for a different default of that, as
hey, if I do an overlay, I want to be told if I borked anything there,
not just almost quietly ignored, but anyways not told the actual
error, until I remove the /usr/portage version (again: missed option
to emerge?))

@all: What's your take on this? Have I (and Neil?) missed an option?
or has emerge a sort of a bug?

-dnh, who has not yet ever looked at emerge code, but guessing it
should not be much of a problem emitting the errors in the overlay
and some simple handling afterwards ;)

-- 
vi, pr.n.
  A computer program designed to stress-test the use of modal bleeping.



Re: [gentoo-user] Google Chrome and audio capture

2015-06-23 Thread Dale
Neil Bothwick wrote:
 On Tue, 23 Jun 2015 05:26:31 -0500, Dale wrote:

 Take from that what you will. Note, the issues are for chromium and
 not for Google Chrome, shouldn't make a difference for what you want
 to know though.
 

 Thanks.  That was what I was looking for.  I guess they did do this
 then.  This may be the first time I checked into a story from that site
 and it be true.  It seems google did sort of sneak some code in there.
 o_O

 There is a now a USE flag to specifically enable this. It defaults to
 disabled but if you previously emerged chromium before the flag as added,
 you will still have it. Using --newuse will cause a world update to
 re-emerge chromium, but if you use --changed-use it doesn't, so re-emerge
 chromium if you want to get rid of this.



I use Seamonkey and Firefox.  I tried that thing once and I didn't like
it. I just saw this posted on a social site I'm on and the site the
article is on sometimes has good stories but a lot of the time, they are
questionable at least.  I just wanted to see if it was somewhat accurate
before folks started going all goofy over it.  It seems each distro is
patching a fix for this.  I don't know when people are going to learn
that enabling something like this by default and not mentioning it to
the users is going to create a dust storm.  A lot of people really watch
for things like this and they get upset when it happens.  This is why I
don't have a microphone or camera on my puter and never have.  I most
likely, never will.

Dale

:-)  :-)



Re: [gentoo-user] Re: necessary use flgas

2015-06-23 Thread David Haller
Hello,

On Tue, 23 Jun 2015, James wrote:
David Haller gentoo at dhaller.de writes:
[..]
 Try compiling icedtea, libreoffice, scribus and whatnot without
 pulling in cups, no matter the use-flags. And sabotaging the ebuild
 and buildsystem to not use cups leads to failed builds, BT,TriedThat :((
[..]
David is just pointing out yet another reason for a different minimization
need, but still in-line with what I outlined. I just think that  the gentoo
community should not have to go it  individually alone when such
minimizations are desired.

Yeah, that's an extra aspect for the same want: What's some random
server or a RasPi or whatnot, needing one Java app, need Cups for? Or
some other lib that's superfluous? Sad thing is, upstream is making it
extra hard. Upstream deps often are weird (to choose a harmless
expression) and to often extremely hard to patch out, if at all.[0]

-dnh

PS: I'm not sure how many David's are here, if in doubt, refer to me
as 'dnh', as I'm used to it anyways, ok? Oh, darn it, I've not
adjusted my mail yet. My fault.

[0] I know I repeat myself today, but, a fresh fish from Lutetia,
slapped around the head of the responsible ... would at times be
quite satisfactory :)

-- 
 / panic(Fod fight!);   \
 \   -- /usr/src/linux/drivers/scsi/aha1542.c /



Re: [gentoo-user] purchasing a dell laptop

2015-06-23 Thread Daniel Frey
On 06/23/2015 10:50 AM, gottl...@nyu.edu wrote:
 On Tue, Jun 23 2015, Christopher Jones wrote:
 
 Sent from my iPhone

 Regarding the touch screens/tablets, Gentoo has drivers for them. I've
 been using Gentoo on my tablet PC for years now. However there's no
 swipe capability. I've read someone who did it but that was just one
 person and couldn't figure out how he did it. I think they used KDE's
 Plasma.
 
 Thanks.  I use gnome and would make little use of the touch screen
 capability if it were available.  As a result I decided against it for
 this purchase since it appears the admin overhead would exceed the very
 modest use I would make of it.  Hopefully in 3 years, when I buy my next
 laptop it will be well supported and just works in gnome.
 
 thanks again,
 allan
 

I discovered another mark against touchscreens - I tried to repair a
friend's laptop with a touch screen (not a Dell) and found that the
supply chain for parts for repair is slim to none. They do break and in
a couple years you may not be able to find a digitizer (or if you do you
can't get it separate from the laptop screen assembly - camera, screen,
digitizer). And if you are really unlucky you'll find that the
connectors are different from the non-touch to the touch models so
swapping in a plain screen won't work.

Dan



Re: [gentoo-user] mount -o bind /dev /mnt/gentoo/dev

2015-06-23 Thread Mike Gilbert
On Tue, Jun 23, 2015 at 5:14 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On 23/06/2015 09:27, Ran Shalit wrote:
 Hello,

 I am a beginner with Gentoo.
 I have followed the instruction for the installation, and tried to see
 that I really  understand all of them.
 There is the command:
 mount -o bind /dev /mnt/gentoo/dev
 Which I'm not sure I really understand.


 It's a bind mount, not a regular mount. A regular mount takes a
 volume/block device/whatever and mounts it somewhere.

 A bind mount makes a copied mount that is already present on your system
 and makes it also available somewhere else.

 You do not want /dev/ and /sys mounted twice - they are core system
 directories and bad things can happen if you mount them twice then
 change one of them. You get sync issues for one thing. Much much easier
 to use bind mounts and potential problems just go away

Err... that's not actually true. You can mount as many instances of
devtmpfs as you like; they all point to the same memory and contain
the same files. Add a file to one and it will appear in all other
instances. This is a distinction between tmpfs and devtmpfs.

sysfs is even more straightforward; the kernel maintains all of the
files in sysfs, so mounting it multiple times is no issue at all.



Re: [gentoo-user] mount -o bind /dev /mnt/gentoo/dev

2015-06-23 Thread Paul Tobias
 test -e ${root}/dev/zero   || mount --bind /dev/ ${root}/dev
 test -e ${root}/dev/shm/dh || mount --bind /dev/shm ${root}/dev/shm
 test -e ${root}/dev/pts/0  || mount --bind /dev/pts/ ${root}/dev/pts

no need to separately mount shm and pts,  just use --rbind,  as the install
doc recommends https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base


Re: [gentoo-user] purchasing a dell laptop

2015-06-23 Thread gottlieb
On Tue, Jun 23 2015, Daniel Frey wrote:

 On 06/23/2015 10:50 AM, gottl...@nyu.edu wrote:
 On Tue, Jun 23 2015, Christopher Jones wrote:
 
 Sent from my iPhone

 Regarding the touch screens/tablets, Gentoo has drivers for them. I've
 been using Gentoo on my tablet PC for years now. However there's no
 swipe capability. I've read someone who did it but that was just one
 person and couldn't figure out how he did it. I think they used KDE's
 Plasma.
 
 Thanks.  I use gnome and would make little use of the touch screen
 capability if it were available.  As a result I decided against it for
 this purchase since it appears the admin overhead would exceed the very
 modest use I would make of it.  Hopefully in 3 years, when I buy my next
 laptop it will be well supported and just works in gnome.
 
 thanks again,
 allan
 

 I discovered another mark against touchscreens - I tried to repair a
 friend's laptop with a touch screen (not a Dell) and found that the
 supply chain for parts for repair is slim to none. They do break and in
 a couple years you may not be able to find a digitizer (or if you do you
 can't get it separate from the laptop screen assembly - camera, screen,
 digitizer). And if you are really unlucky you'll find that the
 connectors are different from the non-touch to the touch models so
 swapping in a plain screen won't work.

 Dan

Thanks.  I will wait until next cycle for a touchscreen.

allan



[gentoo-user] repos.conf

2015-06-23 Thread James
Hello,


So I nuked the /var/lib/layman/make.conf file. I have a list of sites (repos)
I want to keep. Noodling around I figured out that I cannot use laymen to
add git
repos. bummer.


So is there a tool/interface where I type something like
'layman -a java' and it writes out the file to
/etc/portage/repos.conf/new.conf

Layman -S pucked. So after following all the guides I must
have missed something.


Take java:

* Warnings:
 * --
 * The source of the overlay java seems to have changed.
 * You currently sync from
 * 
 *   git://git.overlays.gentoo.org/proj/java.git
 * 
 * while the remote lists report
 * 
 *   1. git://anongit.gentoo.org/proj/java.git
 *   2. git+ssh://g...@git.gentoo.org/proj/java.git
 *   3. https://anongit.gentoo.org/git/proj/java.git
 * 
 * as correct locations.
 * Please consider removing and re-adding the overlay.


I tried this (layman -d java; layman -a java) but it
just does the ond /var/lib/layman/ entry.


No tool to select a git repo and make the new.conf file in 
/etc/portage/resos.conf/  dir?

I'd prefer a default file created that I just then edit, or one
big repo.conf file for overlays (formerly overlays not gits)
for all the repos I want to add.


Maybe a few examples of /etc/portage/repos.conf to look at?

Note the gentoo and local is fine. I keep /usr/local/portage
for my stuff alone, so I guess I can just use the old layman
dir stucture (/var/lib/layman) for my collection of exteranal
repos?


maybe something like:

/var/lib/repos/devs/ultrabug/

and /var/lib/repos/sot/unknown-hacker/

I really like to keep the gentoo dev repos separate for the at large
gentoo repos now using git. I probably should not use this old
/var/lib/layman/ sturcture for the new git repos..?


Will those layman svn sites be going away? or just the ones run by gentoo-devs?

Suggests on a sane schema for all of this is most welcome.
(how are other organizing/labeling ad wide collect of repos, gentoo
dev repos and their own (code)fiefdom?

naming and location strategies are most welcome.


Lacking organization on repos,
James






Re: [gentoo-user] resizing multiple images with adding a frame as needed

2015-06-23 Thread Mick
On Wednesday 24 Jun 2015 01:02:35 waben...@gmail.com wrote:
 hw h...@gartencenter-vaehning.de wrote:
  Hi,
  
  suppose I have a number of images that need to be displayed side by
  side in a nice layout.  The images are of different sizes and have
  different aspect ratios.
  
  To fit the images into the layout, I can scale the images either by
  height or width or by percantage, and they will look messy in the
  layout because I need to keep their aspect ratio when scaling them.
  
  So what I need to do is put a frame around each image just as needed
  when scaling it so that I will end up with all the images having the
  same size while maintaining their aspect ratio.
  
  I guess 'convert' (from imagemagick) or 'ffmpeg' can do this, yet I
  couldn't find out how.
  
  
  (In this particular case, I would set a default size to scale all
  images to rather than doing something more complicated like examine
  all images in advance to compute a good size to use from the largest
  or smallest one or from their average dimensions.)
  
  
  Any ideas how to do this?
 
 Look here:
 
 http://stackoverflow.com/questions/1787356/use-imagemagick-to-place-an-imag
 e-inside-a-larger-canvas
 
 You must add a resize paremeter as this example is only for placing an
 image inside a larger canvas. :-)
 
 You can easily find more examples in the Internet.
 
 --
 Regards
 wabe

Give this a spin, or modify accordingly to suit your needs:


#!/bin/bash
for i in *.JPG; do
  name=${i%.JPG}
  convert -resize 900x675 ${i} ${name}_s.jpg
done


-- 
Regards,
Mick


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


Re: [gentoo-user] mount -o bind /dev /mnt/gentoo/dev

2015-06-23 Thread Alan McKinnon
On 23/06/2015 09:27, Ran Shalit wrote:
 Hello,
 
 I am a beginner with Gentoo.
 I have followed the instruction for the installation, and tried to see
 that I really  understand all of them.
 There is the command:
 mount -o bind /dev /mnt/gentoo/dev
 Which I'm not sure I really understand.


It's a bind mount, not a regular mount. A regular mount takes a
volume/block device/whatever and mounts it somewhere.

A bind mount makes a copied mount that is already present on your system
and makes it also available somewhere else.

You do not want /dev/ and /sys mounted twice - they are core system
directories and bad things can happen if you mount them twice then
change one of them. You get sync issues for one thing. Much much easier
to use bind mounts and potential problems just go away

 2. Another thing I've noticed is that some tutorial add to the above
 also bind to sys folder , and other do not include it.
 mount -o bind /sys /mnt/gentoo/sys

The handbook says to do it, and it makes sense to do it.

Any tutorial that doesn't say it, is wrong/outdated or it's author
doesn't understand.

If the official handbook says to do it, and some other post from Joe
Random Blogger says not to, which one you gonna believe?

 Therefore I would like to ask if it is really required ?

Yes

 Thank you,
 Ran
 


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




Re: [gentoo-user] Google Chrome and audio capture

2015-06-23 Thread Simon Thelen
On 15-06-23 at 03:06, Dale wrote:
 Howdy,
 
 Is this for real?  I question the source and figure with all the Linux
 geeks we have here, someone here would know about this story and if it
 is real or not.
 
 http://beforeitsnews.com/alternative/2015/06/got-chrome-google-just-silently-downloaded-this-onto-your-computer-3173880.html
  
 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786909
https://security-tracker.debian.org/tracker/TEMP-0786909-A21526
https://code.google.com/p/chromium/issues/detail?id=491435

Take from that what you will. Note, the issues are for chromium and not
for Google Chrome, shouldn't make a difference for what you want to know
though.

-- 
Simon Thelen



Re: [gentoo-user] PPPoE ADSL modem choice

2015-06-23 Thread Neil Bothwick
On Mon, 22 Jun 2015 23:08:03 +0100, Mick wrote:

  That's one of the benefits of using OpenWRT/DD-WRT. You can ask on the
  forums or search the Wiki to see what features are available - or even
  RTF(online)M. As long as you pick a fully supported device, all the
  features of either OS should be available.  
 
 DD-WRT are supporting many Asus routers, so the question to the
 forums/ML is if their firmware supports yours.  I couldn't see it here,
 but if the chipset is the same with say RT-N13U (Ralink) then it could
 do the trick:
 
 https://www.dd-wrt.com/site/support/router-database

You can also search the forums. My router didn't appear in the database
but a search showed up a beta firmware for it that has worked flawlessly.


-- 
Neil Bothwick

How is it that we put man on the moon before we figured out it would be a
good idea to put wheels on luggage?


pgpA5ZjmIyrPM.pgp
Description: OpenPGP digital signature


[gentoo-user] mount -o bind /dev /mnt/gentoo/dev

2015-06-23 Thread Ran Shalit
Hello,

I am a beginner with Gentoo.
I have followed the instruction for the installation, and tried to see
that I really  understand all of them.
There is the command:
mount -o bind /dev /mnt/gentoo/dev
Which I'm not sure I really understand.
1. What is the difference between doing thses mount to just copy the
contents of /dev into /mnt/gentoo/dev?
2. Another thing I've noticed is that some tutorial add to the above
also bind to sys folder , and other do not include it.
mount -o bind /sys /mnt/gentoo/sys
Therefore I would like to ask if it is really required ?

Thank you,
Ran



[gentoo-user] Google Chrome and audio capture

2015-06-23 Thread Dale
Howdy,

Is this for real?  I question the source and figure with all the Linux
geeks we have here, someone here would know about this story and if it
is real or not.

http://beforeitsnews.com/alternative/2015/06/got-chrome-google-just-silently-downloaded-this-onto-your-computer-3173880.html
 


Dale

:-)  :-) 



Re: [gentoo-user] PPPoE ADSL modem choice

2015-06-23 Thread Peter Humphrey
On Tuesday 23 Jun 2015 07:30:22 Neil Bothwick wrote:
 On Mon, 22 Jun 2015 23:08:03 +0100, Mick wrote:
   That's one of the benefits of using OpenWRT/DD-WRT. You can ask on the
   forums or search the Wiki to see what features are available - or even
   RTF(online)M. As long as you pick a fully supported device, all the
   features of either OS should be available.
  
  DD-WRT are supporting many Asus routers, so the question to the
  forums/ML is if their firmware supports yours.  I couldn't see it here,
  but if the chipset is the same with say RT-N13U (Ralink) then it could
  do the trick:
  
  https://www.dd-wrt.com/site/support/router-database
 
 You can also search the forums. My router didn't appear in the database
 but a search showed up a beta firmware for it that has worked flawlessly.

OK. Thanks to all who've replied.

-- 
Rgds
Peter




[gentoo-user] [OT} Intel D2700 processor + NM10 chipset - how to kernel config?

2015-06-23 Thread Francisco Ares
Hi,

I have bought a cheap mini ITX board with an embedded Intel D2700 processor
and NM10 chipset, and the kernel I have built a few months ago doesn't even
allow text mode console - meanwhile, among other things, I'm trying to find
and strip out any frame buffer entries in the kernel configuration, so that
at least a plain text console might be visible.

Also meanwhile, a live CD (kubuntu) managed to get a VGA KDE running (no
pure text mode console), but only using a large screen monitor, and
exclusively using HDMI port (the same monitor did not work on VGA, and the
board does not support DVI), so that at least I could check the full
specification of the processor (`cat /proc/cpuinfo`) and all of the
peripherals (`lspci -k`), so that I could build a better suited kernel.

Any specifics on your minds about this hardware?

Thanks!
Francisco


Re: [gentoo-user] Google Chrome and audio capture

2015-06-23 Thread Dale
Simon Thelen wrote:
 On 15-06-23 at 03:06, Dale wrote:
 Howdy,

 Is this for real?  I question the source and figure with all the Linux
 geeks we have here, someone here would know about this story and if it
 is real or not.

 http://beforeitsnews.com/alternative/2015/06/got-chrome-google-just-silently-downloaded-this-onto-your-computer-3173880.html
  

 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786909
 https://security-tracker.debian.org/tracker/TEMP-0786909-A21526
 https://code.google.com/p/chromium/issues/detail?id=491435

 Take from that what you will. Note, the issues are for chromium and not
 for Google Chrome, shouldn't make a difference for what you want to know
 though.


Thanks.  That was what I was looking for.  I guess they did do this
then.  This may be the first time I checked into a story from that site
and it be true.  It seems google did sort of sneak some code in there. 
o_O 

Dale

:-)  :-) 



Re: [gentoo-user] Google Chrome and audio capture

2015-06-23 Thread Neil Bothwick
On Tue, 23 Jun 2015 05:26:31 -0500, Dale wrote:

  Take from that what you will. Note, the issues are for chromium and
  not for Google Chrome, shouldn't make a difference for what you want
  to know though.
   
 
 Thanks.  That was what I was looking for.  I guess they did do this
 then.  This may be the first time I checked into a story from that site
 and it be true.  It seems google did sort of sneak some code in there. 
 o_O 

There is a now a USE flag to specifically enable this. It defaults to
disabled but if you previously emerged chromium before the flag as added,
you will still have it. Using --newuse will cause a world update to
re-emerge chromium, but if you use --changed-use it doesn't, so re-emerge
chromium if you want to get rid of this.


-- 
Neil Bothwick

Time is an illusion but never so much as when you're using a modem.


pgpXGLFdjYsbx.pgp
Description: OpenPGP digital signature


[gentoo-user] Re: Google Chrome and audio capture

2015-06-23 Thread walt
On Tue, 23 Jun 2015 03:06:10 -0500
Dale rdalek1...@gmail.com wrote:

 Howdy,
 
 Is this for real?  I question the source and figure with all the Linux
 geeks we have here, someone here would know about this story and if it
 is real or not.
 
 http://beforeitsnews.com/alternative/2015/06/got-chrome-google-just-silently-downloaded-this-onto-your-computer-3173880.html
  

Thanks for pointing this out.  Like you, I don't have mics or cameras
connected to my desktops, but I do have a google tablet and I've used
the Okay Google feature before, so I knew about it.

But, I never thought about what I say when I have the tablet stuck in my
pocket, supposedly in power-saving sleep mode.  No doubt in my mind
that the mic could still be listening if google wants it to be.





Re: [gentoo-user] Re: Google Chrome and audio capture

2015-06-23 Thread Neil Bothwick
On Tue, 23 Jun 2015 15:26:06 -0700, walt wrote:

 But, I never thought about what I say when I have the tablet stuck in my
 pocket, supposedly in power-saving sleep mode.  No doubt in my mind
 that the mic could still be listening if google wants it to be.

I have my phone on a stand by the bed at night, as an alarm clock. Good
luck to whoever tries to make sense of the noises that picks up!


-- 
Neil Bothwick

The sum of all human intelligence is constant, only the number of humans
increases.


pgp8gR6CH3cyV.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] One Time Passwords

2015-06-23 Thread Rich Freeman
On Tue, Jun 23, 2015 at 8:49 AM, Helmut Jarausch jarau...@skynet.be wrote:
 Hi,

 I'd like to log into my Gentoo system from my smartphone.
 But I don't trust Google (Android's parents).
 Therefore I need a OTP solution for loggin into my Gentoo system.

 Can anybody recommend a solution?


You'll laugh at the irony, but my /etc/pam.d/sshd:
auth   include  system-remote-login
auth required pam_google_authenticator.so
accountinclude  system-remote-login
password   include  system-remote-login
sessioninclude  system-remote-login

The Google Authenticator PAM module comes from
sys-auth/google-authenticator, and accepts OTPs from the Google
Authenticator app, or any other app that uses the same algorithm
(which is fairly standard I believe).  It is FOSS, and doesn't give
Google access to anything.

That one line is all it takes to block anybody not using an OTP from
logging in.  To actually set the key for an account there is a utility
that will generate a key and give you the seed for your OTP generator.
It stores a file in your home directory with the seed, which the PAM
module reads.

It is very simple to set up, and very effective.  Note that public key
authentication with sshd normally bypasses PAM and doesn't require the
code - I don't know offhand if you can have both.

-- 
Rich



Re: [gentoo-user] mount -o bind /dev /mnt/gentoo/dev

2015-06-23 Thread Rich Freeman
On Tue, Jun 23, 2015 at 10:31 AM, David Haller gen...@dhaller.de wrote:
 ACK. There's more actually. Currently, I run Gentoo mostly in a chroot
 from my old system[1], and also updated it that way[2]. Currently, I
 use this script to chroot into gentoo:

You might consider running Gentoo Prefix instead based on what you're
doing.  It is a bit like Gentoo in a chroot, without the chroot.  I
haven't played with it too recently but getting it running on another
linux distro is about the easiest way to use it.  Getting it running
on Solaris, on the other hand, was a bit more fun.

-- 
Rich



Re: [gentoo-user] resizing multiple images with adding a frame as needed

2015-06-23 Thread wabenbau
hw h...@gartencenter-vaehning.de wrote:

 Hi,
 
 suppose I have a number of images that need to be displayed side by
 side in a nice layout.  The images are of different sizes and have
 different aspect ratios.
 
 To fit the images into the layout, I can scale the images either by
 height or width or by percantage, and they will look messy in the
 layout because I need to keep their aspect ratio when scaling them.
 
 So what I need to do is put a frame around each image just as needed
 when scaling it so that I will end up with all the images having the
 same size while maintaining their aspect ratio.
 
 I guess 'convert' (from imagemagick) or 'ffmpeg' can do this, yet I
 couldn't find out how.
 
 
 (In this particular case, I would set a default size to scale all
 images to rather than doing something more complicated like examine
 all images in advance to compute a good size to use from the largest
 or smallest one or from their average dimensions.)
 
 
 Any ideas how to do this?

Look here:

http://stackoverflow.com/questions/1787356/use-imagemagick-to-place-an-image-inside-a-larger-canvas

You must add a resize paremeter as this example is only for placing an
image inside a larger canvas. :-) 

You can easily find more examples in the Internet.

--
Regards
wabe