[gentoo-user] Re: can't start X as user

2023-06-14 Thread James Cloos
if nothing else works, this should:

  :; chmod 4711 /usr/bin/Xorg

that was changed to not be suid some time back, relying instead on
things like elogind.  but the old way should still work.

on gentoo the suid use flag for x11-base/xorg-server would do that
at merge time.

-JimC
-- 
James Cloos  OpenPGP: 0x997A9F17ED7DAEA6



[gentoo-user] amd64 (not ~) glibc SEGVs

2022-03-29 Thread James Cloos
Anyone else seeing a multitude of segv in libc on a stable box with
=sys-libs/glibc-2.34-r10?

not everything dies, but a lot of important stuff does, including
portage and gdb

profile on that box is:

profiles/default/linux/amd64/17.1/no-multilib/hardened

-JimC
-- 
James Cloos  OpenPGP: 0x997A9F17ED7DAEA6



[gentoo-user] Re: How to run X11 apps remotely?

2022-03-22 Thread James Cloos
ah, yes.  i completely forgot about xpra.

probabably a better solution than spice.

-JimC
-- 
James Cloos  OpenPGP: 0x997A9F17ED7DAEA6




Re: [gentoo-user] How to run X11 apps remotely?

2022-03-22 Thread James Cloos
unfortunately running the single application over app-emulation/spice
might be as good as it gets.

even over a local 1gig lan link those bugs you described are annoying.

-JimC
-- 
James Cloos  OpenPGP: 0x997A9F17ED7DAEA6



Re: [gentoo-user] emerge colors and light background

2018-04-19 Thread James Cloos
>>>>> "KE" == Klaus Ethgen <klaus+gen...@ethgen.de> writes:

KE> I use light background and many colors of emerge and other tools are
KE> simple unreadable (like light green).

I also use light backgrounds for my terminals.

For eix, I have this in a file in /etc/eixrc/:

BG0=none
BG1=none
BG2=none
BG3=none
COLORSCHEME0=3
COLORSCHEME1=3


That is not as good as eix did before the current 256-color schemes were
added, but it is not unreadable.

For portage, I find its color choices to be OK.

My environment includes:

COLORFGBG='0;15'
COLORTERM=rxvt

And in ~/.Xdefaults I have:

 URxvt*background: white
 URxvt*color3: chocolate4
URxvt*color11: chocolate2

For terms like xterm and the rxvts you can configure any X11 colors for
each of the numbered terminal colors.

URxvt's default colours are:

! color0 (black)  = Black
! color1 (red)= Red3
! color2 (green)  = Green3
! color3 (yellow) = Yellow3
! color4 (blue)   = Blue3
! color5 (magenta)= Magenta3
! color6 (cyan)   = Cyan3
! color7 (white)  = AntiqueWhite
! color8 (bright black)   = Grey25
! color9 (bright red) = Red
! color10(bright green)   = Green
! color11(bright yellow)  = Yellow
! color12(bright blue)= Blue
! color13(bright magenta) = Magenta
! color14(bright cyan)= Cyan
! color15(bright white)   = White
! foreground  = Black
! background  = White

I'm sure most terminals have some way of doing that sort of configuration.

-JimC
-- 
James Cloos <cl...@jhcloos.com> OpenPGP: 0x997A9F17ED7DAEA6



Re: [gentoo-user] Helvetica fonts

2017-03-08 Thread James Cloos
>>>>> "t" == thelma  <the...@sys-concept.com> writes:

t> Which package contain "Helvetica" font?
t> I'm using "flpsed" and apparently it is using Helvetica font, which
t> "eselect fontconfig list" is not showing anything that resemble "helvet"
t> "eix helvet" is not showing anything either.

t> The fonts in "flpsed" display are very rugged/pixelated, it is hard to
t> look at them.

I read a number of posts in this thread; few had anything useful to say...

First of all, FL_HELVETICA is a #define from fltk.

Cf http://www.fltk.org/doc-1.1/enumerations.html

So with which USE flags have you compiled fltk?

If you have eix installed, eix fltk will show them.

You probably want the xft and/or cairo flags enabled.

If you have xft, fltk will use fontconfig and client-side fonts.

And then running:

  :; fc-match helvetica

will show you which font fontconfig will use when asked for helvetica.

Also, try this:

  :; XFT_DEBUG=1 flpsed

If fltk uses xft, then that will show you which fonts it selected.

If nothing prints than fltk is compiled to use server-side fonts.
Which you probably prefer to avoid.

-JimC
-- 
James Cloos <cl...@jhcloos.com> OpenPGP: 0x997A9F17ED7DAEA6



[gentoo-user] ffmpeg cpu flags

2015-10-04 Thread James Cloos
I see that the ffmpeg ebuild requires that mmxext is set if sse is set.

Isn't mmxext amd-only?

And is there really any value from micromanaging things like that in an
ebuild?

-JimC
-- 
James Cloos <cl...@jhcloos.com> OpenPGP: 0x997A9F17ED7DAEA6



Re: [gentoo-user] Lable Printer for gLabels

2014-05-12 Thread James Cloos
 J == Joseph  syscon...@gmail.com writes:

J Does anybody know if there is any label printer that will work with
J gLabels 

For the benefit of the archive, net-print/dymo-cups-drivers works for
each of the Dymo label printers, and glabels ships with templates for
most (all?) of the supports label sizes.

-JimC
--
James Cloos cl...@jhcloos.com OpenPGP: 0x997A9F17ED7DAEA6




Re: [gentoo-user] Ext3 FS File Size Limits

2013-06-02 Thread James Cloos
 AM == Alan Mackenzie a...@muc.de writes:

AM Haven't a clue.  I would have expected the maximum file size to be a
AM number of blocks, which makes it seem strange that doubling the block
AM size multiplies max file size by 16.

Doubling the block size means that the structure specifying which blocks
are in use by a given inode is twice as long.  And the structure
supports indirect blocks, which contain references to the actual blocks
used by the file data.  So you get one doubling for the size of the
blocks, and another three for the number of blocks each file can use.

Most ext3 and ext4 filesystems use 4096 octet blocks.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] Seamonkey and path to internet

2013-05-21 Thread James Cloos
 D == Dale  rdalek1...@gmail.com writes:

D I thought about renaming my config to *.old and trying that.  Thing is,
D I have YEARS worth of emails on here that I don't want to lose or anything.

Start it with:

seamonkey -no-remote -ProfileManager

create a new profile and then start that profile.

Does it still stop working?

You might need to run:

seamonkey -P default

once after the experiment to ensure that starting seamonkey without args
defaults to the original profile again.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only

2013-04-26 Thread James Cloos
 J == Joseph  syscon...@gmail.com writes:

J In my pg_hba.conf I have:

J localall all trust
J hostall all 127.0.0.1/32trust

J I was under impression that this is configuration is for localhost 
127.0.0.1 access only.

That tells pg how to authenticate users using the unix domain socket and
users using tcp over the loopback interface.

To limit the listen_address, edit postgresql.conf in that directory.

You want to have:

  listen_addresses = 'localhost'

or:

  listen_addresses = '127.0.0.1'

to prevent any access attempts from any non-localhost ip addresses.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] -march=? for this cpu

2013-04-09 Thread James Cloos
 NG == Nilesh Govindrajan m...@nileshgr.com writes:

NG I have two Gentoo VMs at Hetzner and the CPU supports 64 bit (grep lm
NG /proc/cpuinfo = true).

NG model name  : QEMU Virtual CPU version 1.0

march=native does not work on a QEMU virtual.

In the past I had success doing this on such VMs:

gcc -dM -E - /dev/null |sort /tmp/arch-none
gcc -march=native -dM -E - /dev/null |sort /tmp/arch-native
diff -U0 /tmp/arch-none /tmp/arch-native 

gcc-4.4 and gcc-4.5 provide useful results from the formula;
4.6 and newer do not.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6




Re: [gentoo-user] Selecting a Linux compatible mobo for FX8350

2013-02-12 Thread James Cloos
 NG == Nilesh Govindrajan m...@nileshgr.com writes:

NG I'm searching for a mobo which is fully compatible with Linux and
NG supports AMD FX 8350.  Preferably, I'm looking for one with onboard
NG GFX, since I don't have any need for a big GFX for now.

The only boards I've seen which have an AM3 socket and onboard video
have the older chipsets which lack support for 1600 MHz and 8Gig dimms
or the boards intended for the opteron 3000 series.

I do not know whether the latter will work with an FX.

Supermicro's line of opteron 3000 boards is at:

http://www.supermicro.com/Aplus/motherboard/Opteron3000/

They seem to cost on the order of $300 w/o SAS o $400 with.

Otherwise onboard graphics means gx790 boards.

OTOH, it looks like a opteron 4300 chip or two with one of these boards:

http://www.supermicro.com/Aplus/motherboard/Opteron4000/

makes for a great atx or micro-atx compute box for only a bit more than
one would pay for a piledriver FX chip and fx990 board.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] Re: udev-197 moves from /usr/lib to /lib

2013-01-11 Thread James Cloos
Or, just:

:; find /var/db/pkg -name CONTENTS | xargs -0 grep -l /usr/lib/udev/ | awk -F/ 
'{print = $5 / $6}' | xargs emerge -pv

which should be fastest.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] serial in /sys

2012-11-29 Thread James Cloos
If you are looking for the serial number of a usb device, I find them at:

  /sys/bus/usb/devices/usb*/*/serial

NB that not all have them.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] Measuring USB packet loss

2012-11-06 Thread James Cloos
 CS == Chris Stankevitz chrisstankev...@gmail.com writes:

CS c) Can you recommend somewhere for me to ask this question where it
CS can be answered?

I'd try one of:

linux-...@vger.kernel.org
libusb-de...@lists.sourceforge.net
libusbx-de...@lists.sourceforge.net

They are on gmane.org as:

gmane.linux.usb.general
gmane.comp.lib.libusb.devel.general
gmane.comp.lib.libusbx.devel

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] qfile alternative?

2012-11-01 Thread James Cloos
 HJ == Helmut Jarausch jarau...@igpm.rwth-aachen.de writes:

HJ Hi,

HJ qfile doesn't find the corresponding packages all the time, e.g.
HJ qfile /usr/bin/pq_config showed nothing, but re-installing  
HJ dev-db/postgresql-base
HJ changed that file.

The package ownership of /usr/bin/pg_config isn't recorded in a way
which would allow such tools to find it.  That said, the file is a
symlink to one which is so recorded and can be found by q, et al.

A good first approximation of what you want would be a script which
calls stat(1) on the target and then calls qfile on the target and,
if it is a symlink, whatever the symlink points to.

Eg, calling:

  better-qfile /usr/bin/pg_config91

on a box which has dev-db/postgresql-base:9.1 installed would determine
that /usr/bin/pg_config91 links to /usr/lib64/postgresql-9.1/bin/pg_config
and would therefore run:

  qfile /usr/bin/pg_config91 /usr/lib64/postgresql-9.1/bin/pg_config

which would output the line:

  dev-db/postgresql-base (/usr/lib64/postgresql-9.1/bin/pg_config)

There still would be files managed by eselect(1) or similar tools which
wouldn't generate useful output.  But for a first approximation, 

You might want to open an RFE bug report for app-portage/portage-utils
suggesting that qfile gain the ability to do the (the logical equivilent
of) the above itself.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012-09-08 Thread James Cloos
If you want gcc's minor versions in their own slots, then you want the
mutislot use flag:

:; euses multislot
sys-devel/gcc:multislot - Allow for SLOTs to include minor version (3.3.4 
instead of just 3.3)

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] AMD Bulldozer cflags ?

2012-01-27 Thread James Cloos
 AC == Amar Cosic amar.co...@gmail.com writes:

AC Couple months ago I tried this
AC 
http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD#AMD_FX-8xxx.2F6xxx.2F4xxx_.28Bulldozer.29

Those flags are silly.

Specifying -march=bderv1 already enables all of the rest of those -m flags.

You will need to use gcc-4.6 or later to have -march=bderv1, otherwise
try -march=native and/or -march=amdfam10.

Iff you enable the graphite USE flag, you can add:

-floop-interchange -floop-strip-mine -floop-block

to enable the graphite optimizations.

If you do install gcc-4.6.2, try these to confirm what native offers:

  :; echo | gcc -dM -E - -march=bdver1 | sort gcc-info-bdver1
  :; echo | gcc -dM -E - -march=native | sort gcc-info-native

A diff(1) of those two files should be empty.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] Re: tabbed x11-terms/rxvt-unicode

2011-10-09 Thread James Cloos
AM USE=perl tells you squat, you don't even know what effect it will
AM have. You'd have to read the ebuild and the source to figure that out.

AM A MUCH better name is USE=tabs with a description like this Provide
AM multiple tabs, requires perl.

No, that is not a better name for the USE flag.

Anyone who has read the docs for rxvt-unicode knows that the perl
extension is just that, an *extension*.  It is perfectly valid to
configure rxvt-unicode with --disable-perl.  And on some smaller
boxen it may even be necessary.  (Sometimes conserving ram is more
important than extra functionality.)

perl is the right USE flag for rxvt-unciode, and should remain a
USE flag.  It enables much more functionality than just the tabbed
extension, but does so at an expense.  An expense which is easily
noticed on smaller boxen.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] Anyone got any older Portage snapshots kicking around?

2011-07-16 Thread James Cloos
I have a clone of the git conversion whose last commit is dated
Sun Apr 12 21:54:28 2009 +, if that is of any help.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] Is it possible to have perl-5 and perl-6 installed and in use concurrently?

2011-06-19 Thread James Cloos
 WK == William Kenworthy bi...@iinet.net.au writes:

WK Thats the one (mythtv-0.24_p20110524.ebuild) that wants
WK libwww-perl-6

libwww-perl-6 seems to refer to dev-perl/libwww-perl version 6.20.0,
as found in the main portage tree.

Ie, not libwww-perl for perl6 but rather version 6 of libww-perl for perl5.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] leafnode and xinetd?

2011-05-17 Thread James Cloos
 I == Indi  thebeelzebubtrig...@gmail.com writes:

Leafnode works fine here.

I Output of xinetd -d

Looks fine.

In addition to the other reply's suggestions, does running
/usr/sbin/leafnode from a root shell work?

Have you run fetchnews at least once?

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] -march=native

2010-07-04 Thread James Cloos
 BH == Beau Henderson b...@thehenderson.com writes:

BH The correct -march is being displayed, I just can't make sense of the
BH options showing as [disabled]. While the option may be implied by the
BH -march settings, it just makes sense to me that the option should show
BH as enabled. Indeed, with my core2 machine the majority of the options
BH do display as enable as expected, just not with my k8-see3 @native.

FWIW, a tests on -march=amdfam10 on both gentoo and debian also show odd
enabled/disabled results, as do debian k8-sse3 and core2 boxen.  The
fedora core2 box I have access to, however, shows reasonable enableds.

Odd.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6



Re: [gentoo-user] /etc/cron.d being ignored

2007-03-16 Thread James Cloos
 John == John covici [EMAIL PROTECTED] writes:

John Hi.  I am using sys-process/vixie-cron-4.1-r9 and I have
John discovered that the files in /etc/cron.d are not being
John processed.  Is this a known bug or does this version of
John cron not process that directory?

Paul (Vixie) added code some time back to ignore any files that
are not owned by root with 0600 perms.  (That also applies to
/etc/crontab, IIRC.)

I don't beleive the ebuild patches that out.

If that is the issue, it will show up in syslog.

-JimC (who didn't much like that change :-)
-- 
James Cloos [EMAIL PROTECTED] OpenPGP: 1024D/ED7DAEA6
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Overlay moved

2006-12-19 Thread James Cloos
My portage overlay has moved from git.jhcloos.org to freedesktop.org.

If you have a clone, please edit .git/remotes/origin and replace the
old URL with either of:

 git://people.freedesktop.org/~cloos/overlay.git
http://people.freedesktop.org/~cloos/overlay.git

(http is there for those who have a firewall blocking the native git
protocol; using git:// urls is faster, in my experience.)

-JimC
-- 
James Cloos [EMAIL PROTECTED] OpenPGP: 1024D/ED7DAEA6


-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: 6x13 font for gnome-terminal

2005-08-16 Thread James Cloos
 Allan == Allan Gottlieb [EMAIL PROTECTED] writes:

Allan ... I use what [the] 6x13 [bdf] font.
Allan Its [xlfd] name is
Allan -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1

Allan Is there some way I can tell gnome-terminal to use
Allan -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1

Yes, xft supports bitmap fonts and this one should be in the list.

It can be a bit of work to get the right fontconfig name for a given
xlfd name, so the best thing to do is to find the fonts.dir file that
matches the xlfd to a filename, and find that same filename in the
fonts.cache-1 file in that directory.

The font you want is in /usr/share/fonts/misc/6x13-ISO8859-1.pcf.gz
and that matches this line in /usr/share/fonts/misc/fonts-cache-1:

,
| 6x13-ISO8859-1.pcf.gz 0 Fixed-12:style=SemiCondensed:slant=0:
|  weight=100:width=87:pixelsize=13:spacing=110:foundry=Misc:
|  antialias=False:index=0:outline=False:scalable=False:dpi=75:
|  charset= |^1!|^1!|^1!P0oWQ |^1!|^1!|^1!:
|  lang=aa|...long-list...|zu:
|  fontversion=0:fontformat=PCF
`

I've manually broken that to fit in 80 cols, and elided the full list
of the lang attribute.

This means that the string from Fixed to PCF is the full fontconfig
name.  In practice you can leave out a lot of that.  This should let
you view the font:

:; xfd -fa 'Fixed-12:style=semicondensed:pixelsize=13:foundry=misc'

the equivalent invocation for that font as a server-side font is:

:; xfd -fn -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1

To get gnome-terminal to use that font you may need to manually edit
the gconf file.  I'd first make a named profile in gnome-terminal's
edit current profile dialog (from the right-click menu), and then
look for that profile's name in:

~/.gconf/apps/gnome-terminal/profiles/

The default profile is named Default, and its gconf file is:

~/.gconf/apps/gnome-terminal/profiles/Default/%gconf.xml

In that file, look for:

   entry name=font

and put the fontconfig name in the stringvalue container w/in that
entry.

There is also an x_font entry that appears to take an xlfd, so I'd
change that, too.

Depending on your dpi setting, you might even get lucky by using g-t's
dialog to choose Fixed, style=semicondensed and one of the offered
point sizes.  On my 133dpi screen -- with X actually using that dpi --
I was unable to get the dialog to match 6x13.

As an alternative, you can try Vera Mono or DevaVu Mono; they have
about the same aspect ratio as the bdf fixed fonts and look as good
if you have freetype installed w/o bindist in USE.  Ie, when using
the bycode interpreter, the hinting leaves the stems sharp and adds
just a hint of smoothing to the curves and diagonals.  It looks
especially sweet on an LCD w/ fontconfig setup w/ rgba.

-JimC
-- 
James H. Cloos, Jr. [EMAIL PROTECTED] http://jhcloos.com
-- 
gentoo-user@gentoo.org mailing list