Re: [gentoo-user] Re: stage3 only for i486?

2013-04-04 Thread Joshua Murphy
I


On Thu, Apr 4, 2013 at 5:06 AM, Alan McKinnon alan.mckin...@gmail.comwrote:

 On 04/04/2013 10:15, Yuri K. Shatroff wrote:
  Well, an installer certainly would find its users. But none is perfect,
  and writing another (imperfect) one exclusively for Gentoo is sort of
  wasting time. A true Gentoo way IMO would be a selection of installers
  on the installation medium ;-) But AFAICT it is this idea that wouldn't
  be popular, rather than leaving no-installer at all.

 A true GentooWay installer would be any installer of your own choice
 that launches the shell of your chosing, accepts any stage3 tarball that
 you want and gotten from anywhere you choose to get it, and unpacked any
 place you feel like putting it. It will then run the software of your
 choice and install whatever you tell it to.

 That's an awful lot of your choices :-)



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



Isn't that exactly what the guide itself is? The only thing it doesn't make
explicit is the choice of package manager and choice of shell, though that
itself could be considered an advanced feature available to those
experienced enough to know they want the choice, who are, I would
hope, knowledgeable enough to make and enact that choice at the appropriate
point in the install. The only feature the guide lacks is a pretty point
and click interface that either over-clutters the user with options or
denies them choices they might want, which I might add, the same could be
said of portage itself.

-- 
Poison [BLX]
Joshua M. Murphy


Re: [gentoo-user] Updating our live servers. I'm scared!

2013-03-28 Thread Joshua Murphy
On Thu, Mar 28, 2013 at 11:38 AM, Nick Khamis sym...@gmail.com wrote:

 Hello Everyone,

 Just got a ticket assigned to me where we need to update our production
 servers.

 uname -a
 Linux noun 3.4.9-gentoo #2 SMP Sat Oct 13 09:35:07 EDT 2012 x86_64
 Intel(R) Xeon(TM) CPU 3.60GHz GenuineIntel GNU/Linux

 eselect
 [18]  hardened/linux/amd64 *

 I don't think they have been updated since the initial install and
 wanted to get a little feedback on some safe practices and methods
 that should be performed before and while doing so.

 Thanks in Advance,

 Nick.


Personally, I would recommend pulling an rsync (databases and such might
cause a hiccup with that) of one of them to a nonessential system and
testing updating there, building packages (assuming matching use flags,
etc, across your systems), documenting the pitfalls you run into as you go.
After you're up to date there, run through and test it again from a base
copy, then test the actual services to ensure changes to them don't hose
your environment's configuration, and once that's good, it then depends
entirely on what failover, or downtime allowances you have available. If
you have no failover to rely on, and can't afford enough downtime to update
the system in place from the packages you've built, clone each off, update,
then migrate the changes that've occured in the time between... time
consuming, and requires a lot of care, but doable.

-- 
Poison [BLX]
Joshua M. Murphy


Re: [gentoo-user] Gentoo speed comparison to other distros

2013-03-16 Thread Joshua Murphy
On Thu, Mar 14, 2013 at 4:15 AM, Dale rdalek1...@gmail.com wrote:

 Howdy,

 I was wondering.  Has anyone ever seen where a test as been done to
 compare the speed of Gentoo with other distros?  Maybe Gentoo compared
 to Redhat, Mandrake, Ubuntu and such?

 Also, I read that Nasdaq runs a modified version of Gentoo.  Do any
 other large corps run it that we know of?

 I googled a bit but couldn't find anything.  Maybe my search terms
 wasn't good enough.

 Links would be nice.

 Dale

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



While I'll start by backing up everything said by others regarding the
differences being nearly negligible in a truly equal test, same feature set
from source vs the feature set provided by a binary distro, and even a loss
in terms of total time when you include the compile times involved, I do
have a bit of anecdotal evidence in Gentoo's favor.

On the majority of x86 or x86_64 hardware there's very little room for
across the board gains in performance over otherwise standard cflags. On
slightly less 'normal' hardware, like, say, an Atom N270 based netbook with
1GB of ram, however, a few cflags go a *long* way towards having a usable
system. My Mini9 shipped with a variant of Ubuntu that's actually built
with general optimizations to make it usable on that hardware, and having
run the same version of Ubuntu without those optimizations for a day or two
on it, the amount of stutter and stalling was almost unbearable. Then, with
the help of a desktop (or three) to handle the bulk of the compilation, I
moved to Gentoo on it. I hadn't sorted out what cflags would be best, and
simply built what I needed to get back to work on it with fairly minimal
use flags, and I was rather frustrated to find that it still ran worse than
the factory install, once programs had started (though that process
was noticeably faster, as it generally is with so much less running in the
background). Once I adjusted to the appropriate cflags, the stutter cleared
up, things didn't stall frequently, and the system was simply more
responsive. I could even watch flash videos full screen without it
stuttering, which I'd given up on as a possibility on the system. A vast
majority of the gains I saw were simply from clearing away the 80% of
Ubuntu's features I have no use for, but when you have a processor that
approaches things just a little differently, like an Atom, you really can
gain a bit from letting the compiler put things in an order the processor
will agree with better.

-- 
Poison [BLX]
Joshua M. Murphy


Re: [gentoo-user] OT: Fighting bit rot

2013-01-08 Thread Joshua Murphy
On Tue, Jan 8, 2013 at 2:06 PM, Florian Philipp li...@binarywings.net wrote:
 Am 08.01.2013 18:35, schrieb Volker Armin Hemmann:
 Am Dienstag, 8. Januar 2013, 08:27:51 schrieb Florian Philipp:
 Am 08.01.2013 00:20, schrieb Alan McKinnon:
 On Mon, 07 Jan 2013 21:11:35 +0100

 Florian Philipp li...@binarywings.net wrote:
 Hi list!

 I have a use case where I am seriously concerned about bit rot [1]
 and I thought it might be a good idea to start looking for it in my
 own private stuff, too.

 [...]

 [1] http://en.wikipedia.org/wiki/Bit_rot
 [...]
 If you mean disk file corruption, then doing it file by file is a
 colossal waste of time IMNSHO. You likely have 1,000,000 files. Are
 you really going to md5sum each one daily? Really?

 Well, not daily but often enough that I likely still have a valid copy
 as a backup.

 and who guarantees that the backup is the correct file?


 That's why I wanted to store md5sum (or sha2sums).

 btw, the solution is zfs and weekly scrub runs.


 Seems so.


And, while it's not exceptionally likely, there's always a possibility
that the checksum table, rather than the file being checked itself, is
the location of the corruption, meaning you have to verify that as
well when discrepancies occur. The likelihood of the perfect few bits
flipping to match the corrupted data with a corrupted hash, within the
time between checks, however, I would think is low enough to gamble on
never seeing it in a reasonable lifetime.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: Anyone switched to eudev yet? - what was wron with SysVInit?

2012-12-25 Thread Joshua Murphy
On Tue, Dec 25, 2012 at 3:01 AM, Canek Peláez Valdés can...@gmail.com wrote:
 [ snip ]
 * Really simple service unit files: The service unit files are really
 small, really simple, really easy to understand/modify. Compare the 9
 lines of sshd.service:

 $ cat /etc/systemd/system/sshd.service
 [Unit]
 Description=SSH Secure Shell Service
 After=syslog.target

 [Service]
 ExecStart=/usr/sbin/sshd -D

 [Install]
 WantedBy=multi-user.target

 with the 84 of /etc/init.d/sshd (80 without comments).

[snip]

 Hope it helps.

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


I've not yet made the leap, as the benefit of faster boot really
doesn't affect me between systems that're always on and laptops that
typically spend 75% of their time asleep, rather than ever getting
turned off, so I'm in no position to speak for or against the whole of
systemd's changes... but one issue I've had with the claimed benefits
is the reduction in size compared to startup scripts like
/etc/init.d/sshd ... based on that service declaration above, it's a
horribly unfair comparison. /etc/init.d/sshd is doing a lot more than
simply starting/stopping the service and dropping all of that
functionality, then claiming these few lines serve the same purpose
isn't an equal comparison. It would still be a (notable, at that) drop
in size if the shell script was redone to provide exactly the same set
of features, then compared, but that size difference wouldn't have the
same shock value as the comparison against 80+ lines. The argument
that those functions should be handled by the service rather than the
service handler is for another day, 'course.

I'll eventually get around to switching to play with systemd, at the
very least to learn its quirks enough to work with it, and it's very
helpful to have a clearly stated set of _favorable_ comments on it
(compared to the majority of less favorable commentary) to look
forward to, so don't take my having one issue with the list as
anything against either the list as a whole or your effort in putting
all that together, as both are very much appreciated.

Happy holidays.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] serial in /sys

2012-11-30 Thread Joshua Murphy
On Fri, Nov 30, 2012 at 10:47 PM, Walter Dnes waltd...@waltdnes.org wrote:
 On Fri, Nov 30, 2012 at 09:58:10AM +, Jorge Almeida wrote
 By the way, I don't suppose there is a mailing list to talk about these
 matters (mdev/ udev-alternative/ udev-fork related)? This is really
 distro-agnostic stuff...

   For mdev-related questions, the best place I know of is the busybox
 mailing list http://lists.busybox.net/mailman/listinfo/busybox  mdev is
 part of busybox.

 --
 Walter Dnes waltd...@waltdnes.org


And, while auto-mounting might be a bit beyond the 'official' scope of
it, I've seen a fair bit of recent chatter on the LFS mailing lists on
the general topic of device management, alongside a bit of grumbling
about the kitchen sink approach being taken with systemd/udev/etc.
Might be worth glancing through their archives to see if anything on
this particular question crops up, and if nothing else, it shouldn't
hurt much if you toss the question towards the lfs-chat list.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Users hi!

2012-11-14 Thread Joshua Murphy
On Wed, Nov 14, 2012 at 4:30 PM, Dale rdalek1...@gmail.com wrote:

  BRM wrote:

 snip spam


 Hey,

 Check this out:

 List-Unsubscribe: mailto:gentoo-desktop+unsubscr...@lists.gentoo.org

 Bye.

 Dale

 :-)  :-)


 P.S.  I wonder if he will get the hint.  LOL

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


Probably not, since it looks like a fairly hands-off spam attempt, but I
have to say, I'm rather amused by the attempt to spoof a Microsoft based
site (in url and content) while spamming a Linux mailing list. It's
first-line bait to pull someone into an 'online employment' scam, by the
looks of it, with the added benefit of ad revenue from those who load that
page with a standard browser.

-- 
Poison [BLX]
Joshua M. Murphy


Re: [gentoo-user] access Linux X from android tablet

2012-11-04 Thread Joshua Murphy
On Sat, Nov 3, 2012 at 9:54 PM, Joseph syscon...@gmail.com wrote:

 On 11/04/12 03:13, Alan McKinnon wrote:

 [snip]

  I'm running OpneVPN server/client configuration on Linux machines but
 I'm not sure which setting to select on Android to talk to OpneVPN

 Android 4 comes with VPN type:
 PPTP
 L2TP/IPSec PSK
 L2TP/IPSec RSA
 IPSec Xauth PSK
 IPSec Xauth RSA
 IPSec Hybrid RSA

 Which one is compatible with OpenVPN?

 My preference would be to connect to an existing session shadow



 Why do you think OpenVPN will give you an X server and let you share
 a desktop?

 Hint: it won't. You might be able to export X apps to the tablet over
 OpenVPN, but you don;t have an X server there that can display anything.


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


 Android is more compatible with Windows than Linux, even tough is based on
 Linux kernel.
 Yes, I know I would an application like nxclient on Android that doesn't
 exist :-/

 Wouldn't: ssh -Y user@IP-address work ?
 But even if it did, it would be very, very slow.

 --
 Joseph


As an important note, the answer is a resounding NO to the last question...
there's not an X server running on the tablet/phone, typically. I've seen
Xvnc setups on (very rooted) android devices running native X based linux
software on the device with a VNC app displaying the local Xvnc session,
but that's the closest to X natively deployed on android I've seen (that
was an implementation of BackTrack on a friend's phone, amusing toy, but
not what I'd want for real work).

If all you want a VPN for is to tunnel a display across to the device, you
might be best off with an ssh app (I personally use connectbot) to tunnel
the port and a vnc app to handle the display. No rooting needed. For more
complex network access outside of the VNC session, however, a VPN might
actually be worth the work.

-- 
Poison [BLX]
Joshua M. Murphy


Re: [gentoo-user] Which tool to diagnose wireless connection problem?

2012-10-11 Thread Joshua Murphy
On Thu, Oct 11, 2012 at 1:20 PM, Chris Stankevitz
chrisstankev...@gmail.com wrote:
 Hello,

 I never really understood wireless in linux, it has always just
 worked.  I use wicd although I don't really even know what that
 means.  I have no clue what is a wpa supplicant, ndis, etc.

 I now have a problem.  Please point me toward the tools I should use
 to diagnose and fix the problem.  I tried to fix this problem by
 running wicd-client from the command line hoping to see some stderr
 messages to help diagnose, but no luck.  Also dmesg is not helpful.

 Problem:

 I used a linksys router for years.  It appeared as a single SSID that
 I connected to. Configured with wicd-client.  Everything worked great
 under gentoo.

 I throw away the linksys and purchase a new apple airport express.
 This router works fine with my apple machines.  On gentoo, wicd-client
 shows two SSIDs with identical names for this one router!  One is on
 channel 11 and one is on channel 157.  Not sure this matters.  I
 specify my password for both of them and specify one of them to
 connect automatically.  The connection with one (or both?) of the
 SSIDs stays live for 5-10 minutes, then disconnects.  I can get it to
 reconnect by simply opening wicd-client, highlighting one of the two
 SSIDs, and clicking connect.  Repeat every 5-10 minutes.

 Question: What tools or logs can I use to understand why my wireless
 connection disconnects every 5-10 minutes?

 FYI this is what dmesg says during one of these disconnect/reconnect cycles:

 [55519.603007] cfg80211: Calling CRDA to update world regulatory domain
 [55520.041137] iwlwifi :03:00.0: L1 Enabled; Disabling L0S
 [55520.041381] iwlwifi :03:00.0: Radio type=0x0-0x3-0x1
 [55520.195568] ADDRCONF(NETDEV_UP): wlan0: link is not ready
 [55520.494633] e1000e :00:19.0: irq 44 for MSI/MSI-X
 [55520.595455] e1000e :00:19.0: irq 44 for MSI/MSI-X
 [55520.598916] ADDRCONF(NETDEV_UP): eth0: link is not ready
 [0.414298] iwlwifi :03:00.0: L1 Enabled; Disabling L0S
 [0.414523] iwlwifi :03:00.0: Radio type=0x0-0x3-0x1
 [0.551957] ADDRCONF(NETDEV_UP): wlan0: link is not ready
 [55966.719991] iwlwifi :03:00.0: L1 Enabled; Disabling L0S
 [55966.720250] iwlwifi :03:00.0: Radio type=0x0-0x3-0x1
 [55966.863374] ADDRCONF(NETDEV_UP): wlan0: link is not ready
 [55967.147380] e1000e :00:19.0: irq 44 for MSI/MSI-X
 [55967.248317] e1000e :00:19.0: irq 44 for MSI/MSI-X
 [55967.251736] ADDRCONF(NETDEV_UP): eth0: link is not ready
 [55967.301004] iwlwifi :03:00.0: L1 Enabled; Disabling L0S
 [55967.301252] iwlwifi :03:00.0: Radio type=0x0-0x3-0x1
 [55967.452333] ADDRCONF(NETDEV_UP): wlan0: link is not ready
 [55969.637135] wlan0: authenticate with 7c:d1:c3:cd:b9:be
 [55969.641690] wlan0: send auth to 7c:d1:c3:cd:b9:be (try 1/3)
 [55969.643564] wlan0: authenticated
 [55969.643873] wlan0: associate with 7c:d1:c3:cd:b9:be (try 1/3)
 [55969.647304] wlan0: RX AssocResp from 7c:d1:c3:cd:b9:be (capab=0x431
 status=0 aid=1)
 [55969.654396] wlan0: associated
 [55969.657270] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

 Thank you,

 Chris

Check the log in /var/log/wicd for errors. Also, inside of wicd's
configuration there's a debug option... enabling that increases the
messages dumped into the log(s) there quite a bit, if what's already
there doesn't say anything useful.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Gentoo is the best linux distro

2012-09-12 Thread Joshua Murphy
On Wed, Sep 12, 2012 at 11:15 AM, Michael Mol mike...@gmail.com wrote:
 On Wed, Sep 12, 2012 at 10:55 AM, Alan McKinnon alan.mckin...@gmail.com
 wrote:

 On Wed, 12 Sep 2012 16:00:34 +0200
 Alex Schuster wo...@wonkology.org wrote:

  Michael Mol writes:
 
   On Wed, Sep 12, 2012 at 9:33 AM, Neil Bothwick n...@digimed.co.uk
   mailto:n...@digimed.co.uk wrote:
 
   Instead we get, try USE=-* :P
  
   Try MAKEOPTS='-j1'
 
  Which in fact often helps... especially for me, I am using
  MAKEOPTS=-j --load=4, and I often experience build problems that
  are not reproducible with a fixed number of jobs, regardless how
  large.

 Yes indeed, and that one is good advice.

 Not every Makefile out there is safe for -j  1, so running it as one
 job is valid debugging. It's the correct thing to do with weird build
 failures as it tests if a specific condition is true or not.


 Yeah, except I've already gone that route, or otherwise ruled it out, before
 I ask. That's why it's grating. (Even more grating when I have to spend the
 time building a package again, just to convince someone that, no, it's not
 MAKEOPTS that's the problem.)

 It's like Have you tried turning it off and back on again.

snip

And yet, for many who're in the daily job of working on other people's
systems, notably on-site, the first recommendation for many problems
is simply 'turn it off and back on again' because it does the trick
often enough to be worth it (and can avoid going out to the system
around 50% of the time, depending on the environment). Also, if you've
already gone that route, and ruled that out as a resolution, stating
as much generally tends to sidestep the initial few steps.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Having the possibility to set the system-wide locale settings

2012-09-09 Thread Joshua Murphy
On Sun, Sep 9, 2012 at 9:47 PM, Chris Stankevitz
chrisstankev...@gmail.com wrote:
 Hello,

 Section 8c of the handbook tells me:

 ===

 You now have the possibility to set the system-wide locale settings in
 the /etc/env.d/02locale file:

 ===

 Code Listing 3.8: Setting the default system locale in /etc/env.d/02locale
 LANG=de_DE.UTF-8
 LC_COLLATE=C

 ===

 Q1: Do I have the possibility to set the system-wide locale settings?
 A1: YES [I knew the answer to this one!]

 Q2: Should I?
 A2: ?

 Q3: If yes, what should I set them to? [The example sets them to a
 magical value that seems to be related to code listing 3.6, but it is
 not exactly the same.  I am in the united states and I speak english
 if that helps answer this one.]
 A3: ?

 Thank you!

 Chris

 PS: In case it is not clear already I have no idea what a locale is
 and have no preference or what it is so long as gentoo and all my apps
 are happy.

A 'locale' is a collection of character set, language, date/time
format, currency format, etc [1].  For US English, Dale's response
pretty well covers it.  As for whether you 'should' set a system-wide
locale, it's dependent on the system.  If it's a system used
exclusively by people with a common choice of locale, it potentially
saves on per-user configuration.  If it's a system used by people from
around the globe, it can break their expectations of how a 'default'
system should act before they configure their own account for their
own locale.  I believe, in the event a locale isn't specified, it
defaults to POSIX.  Of course, all of this also depends on the
software involved actually honoring the setting, but luckily enough
(for selfish people like me, that is), US English tends to be the de
facto standard even when things don't honor the locale.

[1] 
http://www.linuxtopia.org/online_books/programming_books/gnu_libc_guide/Effects-of-Locale.html

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] [Offtopic] Lightweight server distro for an old motherboard

2012-08-29 Thread Joshua Murphy
On Wed, Aug 29, 2012 at 9:24 AM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Wed, 29 Aug 2012 11:41:54 +0800
 Andrew Lowe a...@wht.com.au wrote:

 On 08/29/12 11:35, Michael Mol wrote:
  On Tue, Aug 28, 2012 at 10:57 PM, Andrew Lowe a...@wht.com.au
  wrote:
  Hi all,
   Anyone got any suggestions for a lightweight server
  distro for an old motherboard? I've got one of the VIA mini-ITX
  boards, SP13000, and want to whack something light onto it. It
  will be working as a file/media server and will be headless, hence
  will be fiddled via ssh. Obviously there are the usual suspects,
  debian, centos, but does anyone have any recommendations viv a vis
  a stripped down distro, sort of like Lubuntu is to Ubuntu?
 
   Any thoughts greatly appreciated,
snip
 There's also DamnSmallLinux but if you ask me that's going too far to
 the other extreme. Yeah, it fits inside 50M but cripes, it has to use
 weird package management to do it.

 If not FreeBSD, then something Arch-based is probably your best step 1.
 Arch is a bit like *buntu in many ways, once you've decided to go that
 route, there's not really much difference between all the variants.
 It's not the base that's resource heavy, it's KDE and Gnome.




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

Although, if DSL *isn't* too far in the tiny direction, it's a bit
much of a desktop oriented system to tweak for headless use, when a
large part of that work was already done... TinyCore and MicroCore are
pretty much a bare minimal desktop and a bare minimal CLI only setup,
respectively, though they have very similar packaging setups to DSL.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Compile program with older libraries

2012-05-29 Thread Joshua Murphy
On Mon, May 28, 2012 at 7:16 AM, Marko Košmerl mark...@gmail.com wrote:
 I was able to find suitable gentoo stage 3 tarball:
 http://88.191.254.16/gentoo/releases/x86/2007.0/stages/

 Chrooted, compiled the source and tried to run binary it in old system. And
 it worked!



Glad you got it working! I was worried you might have to go the long
way around...

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] How can I control size of /run (tmpfs)?

2012-05-26 Thread Joshua Murphy
On Sun, May 27, 2012 at 3:06 AM, Dale rdalek1...@gmail.com wrote:
 Pandu Poluan wrote:

 On May 27, 2012 7:19 AM, Dale rdalek1...@gmail.com


 What I was saying tho, since it appears to be needed now, since /var may
 not be mounted yet, it was created and is used during booting up.  Since
 it is there, why not use it, even AFTER the system is booted.  After
 all,  the files are already there since they were put there during boot
 up.  No need moving them and all that when they are already created and
 available.

 Plus, as someone said, I think it was you in another reply, what if /var
 fails to mount at all?  At that point, it still works since /run is
 there already.  Since /run is on tmpfs, if it fails to mount for some
 reason, you got issues already.  ;-)

 I don't mind it being there, I just hope udev, or whatever else may use
 it later on, doesn't get memory hungry.   Actually, maybe some other
 small directories could be placed there as well.  The lock files would
 be a good one to start with.  Just thinking.  May want to duck tho.  lol


 You mean /var/lock ? Hasn't it transmogrified to /run/lock now?

 Rgds,


 Well, the /run/lock directory is there but there is nothing in it on
 mine.  It does look to me like they would move the files from /var/lock,
 or any other lock files, there tho.  They appear to be small here since
 it takes up so little space.

 root@fireball / # du -shc /var/lock/
 32K     /var/lock/
 32K     total
 root@fireball / #

 That would total up to be less than 300K for what is there and /var/lock
 on my machine.

 I dunno.  Just makes sense to me.

 Dale

 :-)  :-)

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

 Miss the compile output?  Hint:
 EMERGE_DEFAULT_OPTS=--quiet-build=n

Well, given that it's there, it cleans up after itself, and it avoids
issues in the instance where /var isn't available early on, is there
much reason _not_ to link /var/run and /var/lock over to their
respective equivalents on /run? And both with and without /var mounted
(so they exist and are writable even if /var doesn't come up)? If I
recall its purpose properly, /var exists to hold data that _needs_ to
be writable in an actively running system, logs, lock files, caches,
etc.. but as tmpfs didn't exist back when it was thought up, no
separation was explicitly defined between persistent and
non-persistent data. With /run around now, there's an explicitly
defined lack of persistence that would suit /var/run and /var/lock
rather well, since stale service pids, lock files, and the like can
wreak havoc on an unplanned restart (which tends to be bad enough with
the prospect of, say, a failed UPS as it is). Also, any
inconsistencies in the above rambling curiosity (as well as the
rambling itself, I should note) are the result of having been awake
far too early for a Saturday, and still being awake for the start of
Sunday, so apologies may be required on my part.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] How can I control size of /run (tmpfs)?

2012-05-26 Thread Joshua Murphy
On Sun, May 27, 2012 at 4:51 AM, Dale rdalek1...@gmail.com wrote:
 Joshua Murphy wrote:
snip

 Well, I don't see why not.  As you say, lack of a proper clean up after
 a bad shutdown can cause problems.  Anything in /run would disappear
 after a shutdown, clean or not, since it is in tmpfs.   It doesn't seem
 to use much ram either.  I really don't know of a reason why it couldn't
 be set that way.  I'm not the sharpest tool in the shed tho.  lol

 As for one of us setting it to do that manually, I guess one could do
 that.  If I recall correctly, /var/lock is *supposed* to be cleaned up
 when booting but that was a good long while ago.  This may be something
 the devs are already getting ready for.  I get the feeling that they are
 taking what I call baby steps.  I noticed a upgrade to baselayout and I
 think OpenRC as well not long ago.  I'm not sure what decided to put
 stuff in /run.  I would think it would be one of those but it could be
 some other package.  I guess udev could be one that could have made it
 as well.  It does have a directory in there that has stuff in it.  The
 rest are empty.

 I'd wait for a serious guru to reply before changing anything tho, just
 to be safe.  ;-)

 You think being up late at night is bad.  You should see me when my meds
 are making me goofy.  lol

 Dale

 :-)  :-)


I would try it right now, but

a) the only proper 'desktop' I have running is a windows box, the rest
of my systems, netbook, laptops, and servers, are stripped down to the
bare essentials and are likely to continue skipping along smoothly for
a long while regardless of what I do to them, hardly a useful test for
something that could potentially cause catastrophic breakage for more
'normal' systems, and

b) if it *did* break, I would dread it as I went about trying to
remember my exact steps to get there after I wake up tomorrow,
especially with the fact that I'm aiming to head to the office when I
wake, rather than toy around with fixing things here at home.

Maybe tomorrow evening on a couple systems, if the idea itself doesn't
bring about any don't do this, you'll break x responses between
now and then (and, depending on the severity of the potential
breakage, may still have to poke it with a stick).

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Compile program with older libraries

2012-05-25 Thread Joshua Murphy
On Thu, May 24, 2012 at 9:15 AM, Marko Košmerl mark...@gmail.com wrote:
 Hi!

 I have some program which I am using in a thin client  which has Gentoo
 stage 3 root fs (kernel 2.6.39.4),
 lets call it system A.
 I've also compiled that program chroot-ed in this stage 3 fs from my
 personal computer.

 I have an other thin clients which have older system (B) on it which is
 older linux kernel 2.6.16.27.
 Library version which are needed are of course different and for that reason
 my program
 can not be run in this sistem.

 System A:
 Linux redondo 2.6.39.4 #18 Mon Mar 19 13:14:32 CET 2012 i586 i586 i386
 GNU/Linux
 /lib/libc-2.12.2.so
 gcc version 4.0.3

 System B:
 Linux carlos  2.6.16.27 #1 Sun Mar 25 11:09:40 CEST 2007 i586 i586 i386
 GNU/Linux
 /lib/libc-2.3.6.so
 gcc version 4.0.3

 Shared libraries that my binary uses are (in system A):
 linux-gate.so.1 =  (0xe000)
 libpthread.so.0 = /lib/libpthread.so.0 (0xf76d6000)
 libuuid.so.1 = /lib/libuuid.so.1 (0xf76d1000)
 libstdc++.so.6 = /usr/lib/gcc/i486-pc-linux-gnu/4.4.5/libstdc++.so.6
 (0xf75da000)
 libm.so.6 = /lib/libm.so.6 (0xf75b2000)
 libc.so.6 = /lib/libc.so.6 (0xf7468000)
 /lib/ld-linux.so.2 (0xf76f3000)
 libgcc_s.so.1 = /usr/lib/gcc/i486-pc-linux-gnu/4.4.5/libgcc_s.so.1
 (0xf7449000)

 If i try to compile my program using '-static' directive, I still have a
 problem with 4 functions:
 -initgroups,
 -getpwnam,
 -getaddrinfo,
 -gethostbyname.

 If I got that right, they use functions which are located in NSS shared
 libraries.

 I am looking for a way of compiling my program so that I can run it in
 system B.
 I have libraries available from system B and that is all that I have.

 I need help on getting this done.
 I guess gcc versions are the same and as well libgcc_s.so.1 shared library.

 My questions are:
 Can I pull those libraries from system B and use it in compilatin process?
 Would that work?
 I would still need to get include source files of that version, right?
 Is there some archive site where I can find so old version of linux kernel
 source?
 One thing that pops in to my mind is also trying to find gentoo stage 3
 tarball of the kernel version 2.6.16.27
 and compile the program there...I tried to search that but no luck in
 that...

 Any help would be welcomed!

Well, you could use a chroot on system A to build it against an older
copy of the library. I can't find a stage3 with that range of glibc,
though if you can still track down sources to piece together a
toolchain, LFS 6.2 [1] is from right around that time frame (around
'06-'07). If anyone has a 2007.1 range stage3 laying around, though,
all the hard work's already done for setting up a perfect chroot as
long as it plays well with a newer kernel (or if you can do the build
in said chroot on system B), I've had issues with a too-new set of
libraries on older kernels more than once, not sure I've tried the
other direction.

[1] http://www.linuxfromscratch.org/lfs/view/6.2

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: make of gentoo-sources-3.2.12 fails

2012-05-20 Thread Joshua Murphy
On Thu, May 17, 2012 at 4:50 PM, Hinnerk van Bruinehsen
h.v.bruineh...@fu-berlin.de wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 17.05.2012 22:13, Michael Scherer wrote:


 1) make output:

 CHK     include/linux/version.h CHK
 include/generated/utsrelease.h CALL    scripts/checksyscalls.sh CHK
 include/generated/compile.h LD      init/mounts.o ls -Al -m
 elf_x86_64 -r -o init/mounts.o init/do_mounts.o
 init/do_mounts_initrd.o init/mounts.o: No such file or directory
 make[1]: *** [init/mounts.o] Error 1 make: *** [init] Error 2

 There is an LD, the ls line is part of the error message.



 contains a directive to build mounts.o, see second last line, but
 it for some reason this is ignored. Maybe there is a flaw in that
 command, only I can't find it.

 regards, michael



 Have you tried a make clean on your sourcetree?

 CHK     include/linux/version.h

 IS for me one of the first lines I get at all. It seems strange to me
 that you get a call to the linker (LD) before even a call to the
 compiler (CC).

 I'd suggest you try a make clean first and try to build again
 afterwards (with -j1 or without a statement for jobs) to rule out race
 conditions.

 If that doesn't help, move your kernel sources to another directory
 and reemerge the sources. Copy your .config (ideally one of a working
 tree) and try again. If that doesn't help, try to get a working
 default config (like from /proc/config.gz from a live distro).

 WKR

 Hinnerk
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.19 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iQEcBAEBAgAGBQJPtWSXAAoJEJwwOFaNFkYc8tAH/iV59mb5MsH0pJ28dXUqe0X6
 tcbKB18vIQYmjG9gecGX4lVtgXCIhTqVeHEKbQVN4xRMo9u7D7FxygHtRY7sfYrk
 dvR9fs4RfIoykVeCF/0uVSNZnoXhixarYtr8FGvIKCxvUJnY/ws4W+k5tP8Ju8lJ
 wM5ldQ/eD8H4vFm4fIStQheTGERZlueNBVf77cLx8K/8p0XBvVM85V/epg+fC4I4
 bfWG1JtXrh1MUmaE+Y26aNOXGkUZiHax49CBiOUQLZNjk6f5idGppWV03HTL4mCV
 +dI6lNaUqU0AhnoG3yIOK8lY4kFu3QmNw4h1r+OCctASMJe8dUOTnF53TjJzYQk=
 =TguL
 -END PGP SIGNATURE-


I'd be more active and vocal in trying to help sort this out, but it's
been a busy week since the 1k mile trip to get a car and working on
getting it into the shape I want it in... that aside, I *did* manage
to, without any changes, drop in the config provided at the start of
all this into a gentoo-sources 3.2.12 tree (after a quick mrproper)
and it built without issues. To me, that indicates that the toolchain,
particular copy of the sources, or hardware have an issue. That the
problem is as consistent as it is while the rest of the system isn't
failing in horrifying ways implies it's not the hardware. The
resulting modules and kernel from my building it can be grabbed from
http://poisonbl.freeshell.org/3.2.12_test.tar.bz2

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] why is it using OpenDNS?

2012-05-10 Thread Joshua Murphy
On Thu, May 10, 2012 at 4:20 AM, Grant emailgr...@gmail.com wrote:
 Try appending this into your /etc/conf.d/net

    dns_servers_wlan0=208.67.222.222 208.67.220.220

 with or without quotes and brackets I am not really sure.

    dns_servers_wlan0=( 208.67.222.222 208.67.220.220 )

 Hope this helps!

 Thanks, but I'm actually trying to figure out why the system is using
 OpenDNS.  I don't see any OpenDNS settings anywhere and yet
 resolv.conf has OpenDNS IPs even after a reboot.  Shouldn't the
 192.168.0.2 system have 192.168.0.1 in resolv.conf after DHCP?

 - Grant


Well, given that question, I would jump to the guess that your
router's DHCP (assuming a home setup) is giving you those rather than
itself when it gives DNS addresses.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] make of gentoo-sources-3.2.12 fails

2012-05-10 Thread Joshua Murphy
On Thu, May 10, 2012 at 9:01 PM, Michael Scherer
a6702...@unet.univie.ac.at wrote:
 I'm always replying to gentoo-user@lists.gentoo.org and I'm not aware I ever
 used
 one of the addresses you mentioned below. I'm rather new to this forum, so
 it's
 entirely possible I did something wrong somewhere, so please tell me where
 else
 I should post my replies.
 And if you feel the urge to correct me on my postings you might as well post
 some
 advice on my problem too.


 michael

 --
 Michael Scherer
 Univ.klinik f. Psychiatrie
 email: michael.sche...@meduniwien.ac.at
 phone: +43 6991 941 22 54

 - Original Message - From: Stroller
 strol...@stellar.eclipse.co.uk
 To: gentoo-user@lists.gentoo.org
 Sent: Thursday, 10 May, 2012 23:08

 Subject: Re: [gentoo-user] make of gentoo-sources-3.2.12 fails



 On 10 May 2012, at 15:20, Michael Scherer wrote:


 References: 4faa2f0d.8080...@gmail.com
        4faa595a.4040...@libertytrek.org

  cak2h+ec30vq09u22vac72hsqbjb2zn5b25snh6-d3cdxrre...@mail.gmail.com

  caa2qdgw8uuf3h-cbiqn48f+pboj3ahct2whdd1swze-g7z_...@mail.gmail.com

 after downloading the 3.2.12-sources everything went fine
 for a couple of weeks, I compiled them a couple of times,
 but suddenly, maybe because of some world-updates, errors
 started to accumulate, …



 Please don't hijack threads like this:
 http://en.wikipedia.org/wiki/Thread_hijacking
 http://groups.google.com/group/linux.gentoo.user/msg/8a540add45e7e9b8?

 It is irritating for people using thread-aware e-mail clients...
 In case you didn't know, it happens when you use reply for sending
 a new question instead of composing a new message.

 Stroller.



He pulled those addresses from the message headers that went out with
your initial question, which it appears you sent, aiming to start a
new thread of discussion on, by hitting reply in the midst of
[gentoo-user] Are those green drives any good? and changing the
subject. It's a quick way to get a message headed towards the list,
but it *does* throw clients that are better at thread tracking for a
bit of a loop (and makes it easy for your question to get lost in an
already 40+ message long thread). As for your initial question,
building from your config on a clean (distclean, no ccache, etc)
3.1.12 gentoo patched tree built rather quick and problem free on my
box here (using -j5 at that. My first guess was a race issue in a
parallel build)... You might find something notably different in your
versions of things, so here's what I'm running on there.

lanos linux-3.2.12-gentoo # emerge --info
Portage 2.1.10.49 (default/linux/amd64/10.0, gcc-4.5.3,
glibc-2.14.1-r3, 3.2.1-gentoo-r2-lanos x86_64)
=
System uname: 
Linux-3.2.1-gentoo-r2-lanos-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 07 May 2012 17:30:01 +
app-shells/bash:  4.2_p20
dev-lang/python:  2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/pkgconfig:   0.26
sys-apps/baselayout:  2.0.3
sys-apps/openrc:  0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf:   2.13, 2.68
sys-devel/automake:   1.11.1
sys-devel/binutils:   2.21.1-r1
sys-devel/gcc:4.5.3-r2
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool:2.4-r1
sys-devel/make:   3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:   2.14.1-r3

If you're running something newer somewhere, or vanilla-sources, or
somesuch I can poke around a bit and see if I can replicate your
troubles here, but I can't guarantee short timeframes... I've around
1k miles of travelling this weekend, half of which will be learning
quickly whether the car I just grabbed on ebay was a good idea or not.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] SCP bash script

2012-05-03 Thread Joshua Murphy
On Thu, May 3, 2012 at 7:44 AM, LiangYun Gong kit...@gmail.com wrote:
 Hi guys,

 I have a problem with scp bash script. I was trying to automate scp command
 to copy files in and out, and I was trying to avoid key in the password
 myself.

 So I attempt to use the here string feature of bash, it didn't work with
 scp.

 And those server I am working with, they don't have expect package
 installed. :-(

 ps. I am not supposed to change the configuration of the servers( includes
 setup openssh keys, or install expect)

 You guys have any idea that can help this case?

 Thanks  Regards,
 kit393

Well, expect is generally used client-side and doesn't require a
server-side counterpart, assuming you're pulling files to, or pushing
from, a machine you do have actual control of.  SSH keys are the usual
means, since they don't involve writing a password somewhere in plain
text, but lacking those, expect on your own machine would do the
trick.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: USB sticks now mounting on /run/media instead of /media ?

2012-05-03 Thread Joshua Murphy
On Thu, May 3, 2012 at 7:00 PM, walt w41...@gmail.com wrote:
 On 05/03/2012 02:48 PM, Canek Peláez Valdés wrote:
 On Thu, May 3, 2012 at 3:18 PM, walt w41...@gmail.com wrote:
 On 04/13/2012 05:19 PM, walt wrote:

  A recent update
 (udev?) on my ~amd64 machines is now mounting removable drives
 on /run/media instead of /media.


 Ha! I should have suspected Lennart from the beginning:

 http://cgit.freedesktop.org/systemd/systemd/commit/?id=231931ffba1bca9d8759bbd6f797e56f8c6971fa

 The link you posted has nothing to do with this; that's only a
 systemd-specific change in response to a change in udisks2. In other
 words, Lennart has nothing to do with this change, the responsible is
 David Zeuthen, udisks2 maintainer:

 https://plus.google.com/u/0/110773474140772402317/posts/NqPUifsFUYH

 Thanks for the correction.

 And it's actually a pretty reasonable change (IMHO): now in multiseat
 configurations each user can plug a USB drive and only him/she will
 see it

 I've thought that for a long time.  Mounting my own personal mount on
 a system directory never made any sense to me.  However, /run/media is
 still a system directory, so it still doesn't make any sense to me.

 I think /home/wa1ter/media is a more logical choice.  But I'm not doing
 the coding in this bazaar ;)

 The upstream dev(s) seem intent on mounting removable media on a tempfs
 for some reason.  Do you know why?

 I understand completely the reason for inventing /run and making it a
 tempfs (I think Lennart *was* involved in that), but why use /run when
 it's not necessary or (IMHO) logical?

In my completely uninformed guess... a) tmpfs automatically 'cleans
up' every reboot, making sure old folders aren't sitting around stale
even if something did go wrong, and/or b) it's guaranteed writable for
the service that needs to make those mount points. I could probably
come up with a 'c', but I'd likely have to actually do a bit of
reading on the topic before rising looking even more foolishly un-read
on the topic than I already do! :-P

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] libreoffice color

2012-04-30 Thread Joshua Murphy
On Mon, Apr 30, 2012 at 08:06, Stephane Guedon steph...@22decembre.eu wrote:
 Le lundi 30 avril 2012 12:50:48 Neil Bothwick a écrit :
 On Mon, 30 Apr 2012 12:36:54 +0200, Stephane Guedon wrote:
  In libreoffice, which I have had compiled several months ago, the small
  help text is not readable. It appears in grey, as you can see in the
  caption.

 Are you using KDE?

  I don't know how to solve it !

 There's a tweak in KDE's systemsettings, although I can't remember what I
 had to do now.

 Yes, i am in kde. And libreoffice have the useflag.
 --
 Stéphane Guedon  |  www.22decembre.eu

 Protegez vos courriers sur internet aussi, utilisez gpg !
 http://www.22decembre.eu/2012/02/27/proteger-vos-courriels-avec-gpg/

Well, for a shot in the dark, lacking both kde and libreoffice on this
system to check,

System Settings.
Application Appearance - Colours - Colours - Colour set:Tooltip -
Normal Background 

source: https://bbs.archlinux.org/viewtopic.php?id=123684

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Please help, kernel can not load root

2012-04-29 Thread Joshua Murphy
On Sun, Apr 29, 2012 at 14:35, Ignas Anikevičius anikevic...@gmail.com wrote:
 Hello,

 it's been several since I have tried to make my machine boot again without
 any live CDs and I could not narrow the main issue down. The problem is that
 the kernel can not mount the root partition.

 Some info about my system:
 running ~amd64
 kernel: gentoo-sources-3.3.3
 bootloader: grub2- (grub.cfg generated with grub2-mkconfig -o
 /boot/grub2/grub.cfg)
 root partition is ext4, but ext4 is built into kernel
 I have a separate /boot partition

 my grub.cfg can be found here:
 http://pastebin.com/nm6HCkpM

 I have written down some log messages from the last boot. Sorry if something
 is not 100% accurate as I took a crappy picture with my phone and tried to
 rewrite everything:
 http://pastebin.com/0zQN6X5t

 I would very appreciate someones help.

 Thanks,
 Ignas A.

At a glance, looks like your kernel doesn't include a driver for your
drive controller, given the panic you're getting. If you have another
kernel sitting around on your /boot, you can edit your grub entry on
the fly, boot to that, and give your kernel config for the new kernel
a quick check for whichever driver it is you should be running.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: Please help, kernel can not load root

2012-04-29 Thread Joshua Murphy
On Sun, Apr 29, 2012 at 20:11, Ignas Anikevičius anikevic...@gmail.com wrote:
 On 29 April 2012 18:35, Ignas Anikevičius anikevic...@gmail.com wrote:

 Hello,

 it's been several since I have tried to make my machine boot again without
 any live CDs and I could not narrow the main issue down. The problem is that
 the kernel can not mount the root partition.

 Some info about my system:
 running ~amd64
 kernel: gentoo-sources-3.3.3
 bootloader: grub2- (grub.cfg generated with grub2-mkconfig -o
 /boot/grub2/grub.cfg)
 root partition is ext4, but ext4 is built into kernel
 I have a separate /boot partition

 my grub.cfg can be found here:
 http://pastebin.com/nm6HCkpM

 I have written down some log messages from the last boot. Sorry if
 something is not 100% accurate as I took a crappy picture with my phone and
 tried to rewrite everything:
 http://pastebin.com/0zQN6X5t

 I would very appreciate someones help.

 Thanks,
 Ignas A.


 Hello to everybody once more. I gave it ago and installed drivers for all
 storage related controllers, but nothing has changed. As I understand, the
 hdd is recognized, so I do not know where to look now.

 The log can be see in this image:
 http://s10.postimage.org/hieljd661/29042012017.jpg

 I tried to rewrite it here:
 ==
 ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
 ata1.00: ACPI cmd ...
 ...
 ata1.00: configured for UDMA/133
 scsi 0:0:0:0: Direct-Access ATA WDC WD3200...
 ...
 ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
 ata2.00: ACPI cmd ...
 ata2.00: ATAPI: Optiarc DVD RW AD-...
 ..
 ata2.00: configured for UDMA/100
 scsi 1:0:0:0: CD-ROM
 registered taskstats version 1
     Magic number...
 pci_link ... : hash matches
 console ... enabled
 netconsole: network logging started
 Root-NFS: no NFS server address
 VFS: Unable to mount root fs via NFS, trying floppy
 VFS: Cannot open root device sda7 or unknown-block(2,0)
 Please append a correct root= boot option: here are the available
 partitions:
 Kernel panic - not syncing: VFS: Unable to mount root fs on
 unknown-block(2,0)
 Pid: 1, comm: swapper/0 Not tainted 3.3.3-gentoo #7
 Call Trace:
     ... panic
     ... ? printk
     ... mount_block_root
     ... mount_root
     ... prepare_namespace
     ... kernel_init
     ... kernel_thread
     ... ? start_kernel
     ... ? gs_change
 panic occured, switching back to text console
 ==

 Thanks,
 Ignas


Well, going through the list that comes to mind after that... the
block device itself, since the scsi layer sees the device but the VFS
layer doesn't see the block device:
CONFIG_BLOCK=y
CONFIG_BLK_DEV_SD=y


-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] kwin opengl compositing w/ nouveau?

2012-04-17 Thread Joshua Murphy
On Tue, Apr 17, 2012 at 21:25, Doug Hunley doug.hun...@gmail.com wrote:
 Me again ;)

 I just ran 'startx' on my machine for the first time in a dog's age
 and had to switch the rendering engine to XRender from OpenGL to get a
 usable desktop (couldn't see the desktop. was a bunch of black
 squares). I'm not sure what changed, and the online wiki/forum  pages
 I just spent two hours reading were stale and of little help. Anyone
 see anything stupid herein:
 -- make.conf --
 VIDEO_CARDS=nouveau

 -- eselect --
 # for i in mesa opengl qtgraphicssystem
 do
 eselect $i list
 done
 i915 (Intel 915, 945)
 i965 (Intel 965, G/Q3x, G/Q4x)
 r300 (Radeon R300-R500)
 r600 (Radeon R600-R700, Evergreen, Northern Islands)
 sw (Software renderer)
  [1]   classic
  [2]   gallium *
 Available OpenGL implementations:
  [1]   xorg-x11 *
 Available Qt Graphics Systems:
  [1]   native
  [2]   opengl (experimental)
  [3]   raster (default) *

 -- eix --
 kde-meta - 4.8.2(4){tbz2}(02:36:00 PM 04/05/2012)(nls semantic-desktop
 -accessibility -aqua -sdk)
 kwin - 4.8.2(4){tbz2}(05:36:26 AM 04/05/2012)(opengl -aqua -debug
 -gles -xinerama)

 qt-opengl - 4.8.1(4){tbz2}(04:54:00 AM 03/30/2012)(exceptions
 qt3support -aqua -c++0x -debug -egl -pch -qpa)
 qt-gui - 4.8.1-r1(4){tbz2}(03:43:46 AM 04/05/2012)(accessibility dbus
 exceptions gif glib mng qt3support tiff xv -aqua -c++0x -cups -debug
 -egl -gtkstyle -nas -nis -pch -qpa -trace -xinerama)

 mesa - 8.0.2{tbz2}(04:52:19 AM 03/30/2012)(classic egl gallium llvm
 nptl shared-glapi video_cards_nouveau -bindist -d3d -debug -g3dvl -gbm
 -gles1 -gles2 -kernel_FreeBSD -openvg -osmesa -pax_kernel -pic
 -selinux -shared-dricore -vdpau -video_cards_i915 -video_cards_i965
 -video_cards_intel -video_cards_r100 -video_cards_r200
 -video_cards_r300 -video_cards_r600 -video_cards_radeon
 -video_cards_vmware -wayland -xa -xvmc)

 xf86-video-nouveau - 0.0.16_pre20120322{tbz2}(03:30:39 AM 03/23/2012)
 xorg-server - 1.12.0-r1{tbz2}(03:32:48 AM 03/21/2012)(ipv6 nptl udev
 xorg -dmx -doc -kdrive -minimal -selinux -static-libs -tslib -xnest
 -xvfb)

 ~ # uname -r
 3.3.2-gentoo

 ~ # egrep -i 'nouveau|drm' /boot/config-3.3.2-gentoo
 CONFIG_DRM=y
 CONFIG_DRM_KMS_HELPER=y
 CONFIG_DRM_TTM=y
 # CONFIG_DRM_TDFX is not set
 # CONFIG_DRM_R128 is not set
 # CONFIG_DRM_RADEON is not set
 # CONFIG_DRM_MGA is not set
 # CONFIG_DRM_VIA is not set
 # CONFIG_DRM_SAVAGE is not set
 # CONFIG_DRM_VMWGFX is not set
 # CONFIG_DRM_GMA500 is not set
 CONFIG_DRM_NOUVEAU=y
 # CONFIG_DRM_NOUVEAU_BACKLIGHT is not set
 # CONFIG_DRM_NOUVEAU_DEBUG is not set
 # CONFIG_DRM_I2C_CH7006 is not set
 # CONFIG_DRM_I2C_SIL164 is not set

 ~ # lspci -v|grep -i nvid
 01:00.0 VGA compatible controller: NVIDIA Corporation G92 [GeForce
 9800 GT] (rev a2) (prog-if 00 [VGA controller])

 At this point, I don't care if it's OpenGL or OpenGL ES (kwin_gles)
 that we get working.. I just want to use something 'better' than
 XRender again (it lags badly for me)

 Thanks!

 --
 Douglas J Hunley (doug.hun...@gmail.com)
 Twitter: @hunleyd                                               Web:
 douglasjhunley.com
 G+: http://goo.gl/sajR3


Two things come to mind, given some recent trouble I've had on the
radeon side of the coin here, and with an intel system or two in the
past. The DRM related drivers seem to be prone to misbehaving when
they're not configured as modules. I haven't managed to sort out why,
so you may see if a change there helps, though it'll likely cause mode
changes throughout the booting process. The second thing that comes to
mind is that you don't include any relevant entries from glxinfo
(glxinfo | grep ender) or Xorg.?.log (notably anything flagged as an
error, 'grep EE /var/log/Xorg.0.log' grabs that, plus a bit of cruft),
notably from a session where things aren't working properly, as the
majority of issues trace back to direct rendering being disabled due
to some incompatibility that gets noted in the log (often in
delightfully cryptic prose).

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] list of kernel modules

2012-04-06 Thread Joshua Murphy
On Fri, Apr 6, 2012 at 10:02 AM, András Csányi sayusi.a...@sayusi.hu wrote:
 Dear All,

 I'm a little bit confused regarding modprobe command. As far as I
 remember I used the command below to list all of kernel modules
 independently it's loaded or not.
 modprobe -l or modprobe -L

 But now I can see that there is no -l or -L for this command. When
 have changed this command or my memories are failed? On the other
 hand, I would like to ask that how can I list all of kernel modules?

 Thanks in advance!

 András

 --
 --  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
 http://facebook.com/andras.csanyi
 --  Trust in God and keep your gunpowder dry! - Cromwell

From 'man modprobe' here (module-init-tools version 3.16):
-l --list
List all modules matching the given wildcard (or * if no
wildcard is given).  This option is provided for backwards
compatibility and  may go away in future: see find(1) and basename(1)
for a more flexible alternative.


And, found this handy little 'replacement' of sorts (in .bashrc or
such, not tested by me):

fkm() {
  local kver=$(uname -r) arg=${1//[-_]/[-_]}
  find /lib/modules/$kver -iname *$arg*.ko* \
-exec bash -c 'mods=(${@##*/}); printf %s\n ${mods[@]%.ko*}' _ {} +

  if [[ ! -e /lib/modules/$kver/kernel ]]; then
echo reboot! 2
  fi
}

(source: https://bbs.archlinux.org/viewtopic.php?id=134393 )

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] ppp-gentoo woes cont'd [SOLVED-sorta]

2012-03-28 Thread Joshua Murphy
On Wed, Mar 28, 2012 at 4:05 PM, Maxim Wexler maxim.wex...@gmail.com wrote:

 with ppp connections you are not using a dhcp client, pppd gets the
 nameserver ip addressess as part of the connection negotiation (if
 peerdns is set) and the aforemetioned script in
 /etc/ppp/ip-up.d/40-dns.sh writes those to /etc/resolv.conf

 This is at the top of /etc/resolv.conf
 # Generated by dhcpcd
 # /etc/resolv.conf.head can replace this line
 # /etc/resolv.conf.tail can replace this line

 But according to /var/log/messages:

 Mar 28 13:24:01 lumby pppd[16825]: primary   DNS address 75.153.176.1
 Mar 28 13:24:01 lumby pppd[16825]: secondary DNS address 75.153.176.9

 But whatever is in resolv.conf is overwritten with blanks AFTER I
 connect. Which creates this odd situation where I can ping numbers,
 ie, 8.8.8.8 but not com, net, org etc.

 Once I connect I have to echo the DNS addresses into resolv.conf
 before I can reach anything.

 Also, I notice whenever I set up a route to my router those numbers
 get wiped. Is that the default behavio(u)r?. NB, I have nothing in the
 way of services other than ppp configured at all. Maybe later after I
 sort it all out I'll rig up something automatic.

 Thanks for everybody's hlp

 MW

 ps:  according to /etc/ppp/ip-up.d/40-dns.sh:

 ---

 #!/bin/sh

 # Handle resolv.conf generation when usepeerdns pppd option is being used.
 # Used parameters and environment variables:
 # $1 - interface name (e.g. ppp0)
 # $USEPEERDNS - set if user specified usepeerdns
 # $DNS1 and $DNS2 - DNS servers reported by peer

 if [ $USEPEERDNS ]; then

        if [ -x /sbin/resolvconf ]; then
                {
                        echo # Generated by ppp for $1
                        [ -n $DNS1 ]  echo nameserver $DNS1
                        [ -n $DNS2 ]  echo nameserver $DNS2
                } | /sbin/resolvconf -a $1
        else
                # add the server supplied DNS entries to /etc/resolv.conf
                # (taken from debian's usepeerdns)

                # follow any symlink to find the real file
                REALRESOLVCONF=$(readlink -f /etc/resolv.conf)

                if [ $REALRESOLVCONF != /etc/ppp/resolv.conf ]; then

                        # merge the new nameservers with the other options 
 from the old configuration
                        {
                                grep --invert-match '^nameserver[[:space:]]' 
 $REALRESOLVCONF
                                cat /etc/ppp/resolv.conf
                        }  $REALRESOLVCONF.tmp

                        # backup the old configuration and install the new one
                        cp -dpP $REALRESOLVCONF $REALRESOLVCONF.pppd-backup
                        mv $REALRESOLVCONF.tmp $REALRESOLVCONF

                        # correct permissions
                        chmod 0644 /etc/resolv.conf
                        chown root:root /etc/resolv.conf
                fi
        fi

 fi

 

 the software is aware of two resolv.confs, one under /etc/, one under
 /etc/ppp. /etc/ppp/resolv.conf is correctly filled in, but the other
 is wiped. Can anyone see why?

 MW


If I recall, this was my guess as the real problem you were running
into. As for what's making the last change to /etc/resolv.conf...
aside from kernel-level auditing, there's nothing I'm aware of that
can tell you. Since /etc/ppp/resolv.conf is correct but
/etc/resolv.conf isn't, one of three things is happening:

a) 40-dns.sh is running, making the changes it needs to, and they're
being promptly overwritten by something else... unlikely and
excessively hard to diagnose,
b) 40-dns.sh is running but isn't actually updating /etc/resolv.conf
properly... it looks fine, matches the default I have here (which
works on my pppoe setup at least), but could happen if one of the
assumptions it makes is wrong (or if, say, if [ $USEPEERDNS ]; is
coming up false), or...
c) 40-dns.sh is not even running, meaning /etc/resolv.conf never gets
updated by pppd... this would have been my first guess, except for the
fact that /etc/ppp/ip-up just outright sources all *.sh in
/etc/ppp/ip-up.d/ so... shouldn't be that (and I saved myself from
looking a bit silly, checking that beforehand).

The first step to tracking it down would probably be stepping through
that script and comparing it to your situation. Does
/etc/resolv.conf.pppd-backup exist? If so, it *is* at least making
changes to the original. I recall usepeerdns is set, so is
/sbin/resolvconf an existing, executable, file? If not, and since they
differ, I suspect it's failing somewhere in merging them. You might
add some echo calls writing out to a file in /tmp to 40-dns.sh so you
can track what, if anything, it does (and what values it's using in
the process).


Re: [gentoo-user] ppp-gentoo woes cont'd

2012-03-20 Thread Joshua Murphy
On Tue, Mar 20, 2012 at 7:48 PM, Maxim Wexler maxim.wex...@gmail.com wrote:

 yoyo

 Thanks for your response. I did some research(ppp documentation is
 OLD!) and saved a bunch of likely files across the partition from
 ubuntu, and rebooted into gentoo.

 Just for the heck of it I made myself root right from the boot console
 and ran pon isp without touching anything else, and boom! I was
 connected. The only difference from last time was that I ran pon right
 from the boot console instead of what I usually do, namely running
 startx, opening a terminal making myself root etc. I cannot fathom how
 that would make a difference. Can anybody out there in gentoo-world?
 Didn't even have to rmmod the wifi and ethx drivers.

 MW


Since route and other things *are* getting set, I have the same strong
suspicion Bill and YoYo have... DNS is likely not getting set properly
in /etc/resolv.conf and, barring that, something may be amiss with
routing itself, which would be far less likely, but would be exposed
by YoYo's recommendations there. As for why it works if handled very
early, but not if brought up later, that seems odd to me, but...
saved a bunch of likely files across the partition from ubuntu ...
did that include dropping them into place on the Gentoo side, and was
resolv.conf included in that?

-- 
Joshua M. Murphy



Re: [gentoo-user] Initramfs or move /usr to /, oh my...

2012-03-20 Thread Joshua Murphy
On Mon, Mar 19, 2012 at 9:28 PM, Sebastian Pipping sp...@gentoo.org wrote:
 On 03/18/2012 06:44 PM, Tanstaafl wrote:
snip
 On that note - is it possible, and if so, does anyone have any decent
 detailed How-to's on how I might be able to convert a separate /user to
 one on directly on / on a running system?

 From my current understanding (please double-check, no warrenties):

  0. Make backups

  1. Boot some sort of live/rescue CD
    (so you can fiddle with /usr without shooting your foot)

 (2. Enlarge space on partition/device root (the one holding /))

 (3. Enlarge file system sitting on partition/device root)

  4. Make a new folder root/usr

  5. Copy content from usr/ to root/usr/

    - Watch out for use of Xattr (extended file attributes)

    - Watch out for use of POSIX ACLs

    - Use something like --archive with cp/rsync to maintain attributes

  6. Update root/etc/fstab

  7. Reboot

  8. Resolve partition usr

 Good luck.

 Best,



 Sebastian


That would work, and is among the safer routes, but it also means
taking the system down for a fair while. If your root has enough free
space to hold all of /usr already, without any resizing, you actually
can do everything with only a single reboot along the way (and while
that, too, *can* be avoided with a lazy unmount in place of the reboot
[see notes at the bottom if you're feeling adventurous], I don't dare
test it when a reboot's far from likely to hurt me), as long as you
can resist making changes to files in /usr between starting and your
reboot. The difficulty you run into is that you can't copy from /usr/*
(the data on the usr partition) directly into /usr (a folder acting as
a mount point on the root partition). What you *can* do, however, is
bind mount your root partition somewhere else, and your usr partition
too if you like, make the copy (using tar, rsync, or cp with the
appropriate flags to preserve all the important details), adjust
fstab, and then reboot into the adjusted system, after which, you can
go about pondering what to do with your old /usr partition.
Incidentally, this general method also works fairly well for taking
snapshots of a live root partition (accepting that the contents of
anything prone to change mid-copy could be anything, like /tmp, most
of /var, bits of /etc), catching the static files hidden by mounting
done at boot time, like the base set of device nodes in /dev too...

As root, obviously, and you may include --acls or --xattrs  on the
rsync call, if they suit your system's needs (I have quite a bit
turned off on the machine I'm testing this on as I write it up):

1) make backups and... 1.a) verify backups... consider this my disclaimer...
2) mkdir /mnt/root-bind/ /mnt/usr-bind/
3) mount --bind / /mnt/root-bind/
4) mount --bind /usr/ /mnt/usr-bind/
5) rsync --archive --hard-links --sparse --progress /mnt/usr-bind/
/mnt/root-bind/usr/
6) edit fstab ...
7) cross fingers and reboot ...
8) rm -r /mnt/root-bind/ /mnt/usr-bind/

While 9 can be done before the reboot, this way doesn't depend on
fighting with unmounting outside of the reboot itself.

And some background on my test system...
Before Copy
# df -h
Filesystem  Size  Used Avail Use% Mounted on
rootfs  7.9G  128M  7.7G   2% /
/dev/root   7.9G  128M  7.7G   2% /
rc-svcdir   1.0M   56K  968K   6% /lib64/rc/init.d
udev 10M  176K  9.9M   2% /dev
shm 2.0G 0  2.0G   0% /dev/shm
/dev/sda1   505M   15M  465M   3% /boot
/dev/sda815G  845M   14G   6% /var
/dev/sda720G  2.0G   18G  10% /usr
/dev/sda949G  3.2G   46G   7% /home
tmpfs   2.0G  4.0K  2.0G   1% /tmp

After copy (extras trimmed)
 # df -h
Filesystem  Size  Used Avail Use% Mounted on
rootfs  7.9G  2.1G  5.8G  27% /
/dev/sda720G  2.0G   18G  10% /usr

After reboot

# df -h
Filesystem  Size  Used Avail Use% Mounted on
rootfs  7.9G  2.0G  5.9G  26% /
/dev/root   7.9G  2.0G  5.9G  26% /
rc-svcdir   1.0M   56K  968K   6% /lib64/rc/init.d
udev 10M  176K  9.9M   2% /dev
shm 2.0G 0  2.0G   0% /dev/shm
/dev/sda1   505M   15M  465M   3% /boot
/dev/sda815G  844M   14G   6% /var
/dev/sda949G  3.2G   46G   7% /home
/dev/sda10  141G  7.9G  133G   6% /data
tmpfs   2.0G 0  2.0G   0% /tmp

And... at least for my own, copied, rebooted, and working as though
nothing's changed (aside from a presently unused 20G partition sitting
around on the drive). I do admit, my 8G existing root partition is a
bit on the large size.. this system transitioned from a desktop to a
'server', losing X as well as a number of hefty things that were in
/opt ... leaving me with both a lot of free space on / and a much more
slim /usr so it's a rare thing to be able to so easily drop things in
place. It did manage a downtime of all of about a minute, though,
rather than booting a secondary OS to do all of that.

[notes regarding a potentially bad idea follow]

Re: [gentoo-user] Re: systemd? [ Was: The End Is Near ... ]

2012-03-17 Thread Joshua Murphy
On Sat, Mar 17, 2012 at 10:12 PM, Nikos Chantziaras rea...@gmail.com wrote:
 On 18/03/12 03:45, Canek Peláez Valdés wrote:

snip
 [...]

 * It tries to unify Linux behaviour among distros (some can argue that
 this is a bad thing): Using systemd, the same
 configurations/techniques work the same in every distribution. No more
 need to learn /etc/conf.d, /etc/sysconfig, /etc/default hacks by
 different distros.


 Out of the things you listed, this strikes me as the most important. Linux
 really needs standards.  When I install software on Windows, it knows how to
 add its startup services.  On Linux, this is all manual work if your distro
 isn't supported, especially on Gentoo.  If there's no ebuild for it, you
 spend your whole day trying to make it work.



My day job's on the windows side of things... and as true as it is
that the application developer knows the approach they're going to use
today to get their piece of software to start when windows does (as
often as not, doing so without the knowledge of the user), there's a
*massive* range of ways to do just that, and they *do* vary as you
move from one version of windows to the next... and tracking down
what's actually starting at boot (and why) without tools explicitly
created to give that information is an incredible amount of work on
the side of the user and even the usual admin. I'm not sure I'd cite
that as a positive benefit on the windows side of things...

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] netcat - which?

2012-03-07 Thread Joshua Murphy
On Wed, Mar 7, 2012 at 2:03 AM, Pandu Poluan pa...@poluan.info wrote:
 eix netcat returned net-analyzer/gnu-netcat and net-analyzer/netcat

 What's the difference? Which one should I emerge?

 Rgds,
 --
 FdS Pandu E Poluan
 ~ IT Optimizer ~

  • LOPSA Member #15248
  • Blog : http://pepoluan.tumblr.com
  • Linked-In : http://id.linkedin.com/in/pepoluan


For a third, unasked, option... if you're not using any of the more
extravagant features, you practically always have busybox on hand
already...

$ busybox nc
BusyBox v1.19.3 (2012-02-21 22:48:14 EST) multi-call binary.

Usage: nc [OPTIONS] HOST PORT  - connect
nc [OPTIONS] -l -p PORT [HOST] [PORT]  - listen

-e PROG Run PROG after connect (must be last)
-l  Listen mode, for inbound connects
-p PORT Local port
-s ADDR Local address
-w SEC  Timeout for connects and final net reads
-i SEC  Delay interval for lines sent
-n  Don't do DNS resolution
-u  UDP mode
-v  Verbose
-o FILE Hex dump traffic
-z  Zero-I/O mode (scanning)

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Clone live system as a simple backup?

2012-03-07 Thread Joshua Murphy
On Wed, Mar 7, 2012 at 8:55 AM,  gand...@d-danks.co.uk wrote:
 Hi,
    I'm interested in the idea of cloning a live, complicated hardware
 system onto a single external hard drive as a simple backup. I would
 like this external drive to be completely bootable. What's the best
 way to approach doing this? I was considering just doing a Gentoo
 install from scratch but figured maybe there's a way to clone enough
 of the live system to get me there less painfully?

    The system I'm playing with has five 500MB hard drives with most
 partitions in linked together in various forms of RAID. (1, 5  6)
 That said, the total storage that this system presents KDE and the
 users is about 600GB.

    I have an external 1TB eSATA drive which is therefore large enough
 to hold everything on this system, albeit without the reliability of
 RAID which is fine for this purpose.

    The system looks more or less like:

 /dev/sda1 - /boot (50MB)
 /dev/sdb1 - /boot copy
 /dev/sdc1 - /boot copy

 c2stable ~ # df
 Filesystem     1K-blocks      Used Available Use% Mounted on
 rootfs          51612920  31862844  17128276  66% /
 /dev/root       51612920  31862844  17128276  66% /
 rc-svcdir           1024        92       932   9% /lib64/rc/init.d
 udev               10240       476      9764   5% /dev
 shm              6151284         0   6151284   0% /dev/shm
 /dev/md7       389183252 350247628  19166232  95% /VirtualMachines
 tmpfs            8388608         0   8388608   0% /var/tmp/portage
 /dev/sda1          54416     29516     22091  58% /boot
 c2stable ~ # cat /proc/mdstat
 Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5]
 [raid4]
 md6 : active raid5 sdb6[1] sdc6[2] sda6[0]
       494833664 blocks super 1.1 level 5, 64k chunk, algorithm 2 [3/3]
 [UUU]

 md7 : active raid6 sdb7[1] sdc7[2] sda7[0] sdd2[3] sde2[4]
       395387904 blocks super 1.2 level 6, 16k chunk, algorithm 2 [5/5]
 [U]

 md3 : active raid6 sdb3[1] sdc3[2] sda3[0] sdd3[3] sde3[4]
       157305168 blocks super 1.2 level 6, 16k chunk, algorithm 2 [5/5]
 [U]

 md126 : active raid1 sdc5[2] sda5[0] sdb5[1]
       52436032 blocks [3/3] [UUU]

 unused devices: none
 c2stable ~ #

    /dev/md3 is a second Gentoo installation that doesn't need to be
 backed up at this time. md6 is an internal RAID used to back up md7
 daily. It doesn't need to be backed up, but if the machine totally
 failed killing all the drives that wouldn't survive so currently I
 back up md126 to md6 daily, and then back up md6 weekly to an external
 eSATA drive.

    What I'd like to do is clone

 1) /boot (sda1) including grub and everything required to make it bootable
 2) back up the system portions of dev/md126 (/ )
 3) Add some swap space on the external drive
 4) back up /dev/md7 which is all of my VMs
 5) back up /home to a separate partition on the external drive
 6) back up some special things like /var/lib/portage/world and
 /usr/portage/packages

 My thought is that this drive is basically bootable, but over time
 gets out-of-sync with the system. However should the system fail I've
 got a bootable external drive with all the binary packages required to
 get it running again quickly. However I can always boot the drive, do
 an emerge -ek @world, and basically be back to where I am as of the
 last backup.

 The external drive will look something like:

 /dev/sdg1 - /boot
 /dev/sdg2 - swap
 /dev/sdg3 - / (not including /home, /usr/portage/distfiles, etc)
 /dev/sdg5 - /usr/portage/packages
 /dev/sdg6 - /dev/md7

 etc

    I will of course have to modify grub.conf and /etc/fstab to work
 from this drive but that's no big deal.

    What are folks best ideas about how to approach doing something like
 this?

 Thanks,
 Mark


 Hi,
    Why don't you something like bind mount the folders you want to copy
 and rsync them to the eSATA disk, after creating a similar partition
 layout on it. Remember to exclude system files like /proc/*, /dev/*
 and /sys/* as well as the ones you want to exclude yourself from the
 rsync. When you want to sync the clone again just do the same again
 and rsync the changes.

 Regards,
 Derek



As an added note on this, rsync's --one-file-system (-x) flag is handy
for avoiding grabbing unneeded things, but will typically leave you
without the base few device nodes needed to boot the backup, those can
either be grabbed from a stage3, or created with (courtesy of Linux
From Scratch's section 6.2.1. Creating Initial Device Nodes):

mknod -m 600 ${backup}/dev/console c 5 1
mknod -m 666 ${backup}/dev/null c 1 3

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: Gentoo on a Dell XPS 13 Ultrabook

2012-03-05 Thread Joshua Murphy
On Mon, Mar 5, 2012 at 11:00 AM, Alex Schuster wo...@wonkology.org wrote:
 Grant writes:

  The performance is only impacted if the sector size is something other
   than 512 bytes. The newer 4K sector size used by some higher density
  drives requires that you start partitions on a sector boundary or they
  will perform badly. There isn't an actually performance need to
  actually start on 2048 but the fdisk-type developer folks are doing
  that to be more compatible with newer Windows installations.

 All my drives says this from fdisk:

 Units = sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes

 Neither fdisk nor hdparm seem to get the correct sector size, at least
 not always. That's what I read somewhere (and not only once), and it's
 true for my own 2TB drive which I know to have a 4K sector size. I'd say
 you have to look up the specs on the vendor's web size to be sure.

 So it doesn't matter where the first partition starts?

 If you have 4K sectors (and not a Seagate drive with SmartAlign [*]), it
 does.

 BTW, here's some benchmarks I just stumbled upon:
 http://hothardware.com/Articles/WDs-1TB-Caviar-Green-w-Advanced-Format-Windows-XP-Users-Pay-Attention/?page=2

 [*] I don't want to sound like I'm advertising for Seagate here, but at
 least it seems that with SmartAlign the performance impact will be
 much less, so it might not be worth the trouble of re-partitioning drives
 that are already being used.

        Wonko

Also, it counts with SSDs, where alignment,or lack therof, with the
erase block becomes noticeable on write performance. Finding the
actual size of an erase block for most SSDs is rather difficult, but
1MB tends to be a reliable guess as a multiple of *that* as well.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: Gentoo on a Dell XPS 13 Ultrabook

2012-03-03 Thread Joshua Murphy
On Sat, Mar 3, 2012 at 1:13 PM, Pandu Poluan pa...@poluan.info wrote:

 On Mar 4, 2012 12:54 AM, Grant emailgr...@gmail.com wrote:

  I just received the new Dell XPS 13 Ultrabook and I'm trying to
  install Gentoo but I can't get install-amd64-minimal-20120223.iso to
  boot via a USB key.
 
  Have you tested your boot USB keys on another machine?
 
  Gentoo is installed but I can't get my USB-ethernet adapter to bring
  up an eth0 (or any other) interface.  It works if I boot the Kubuntu
  USB key.  I've definitely built the correct driver into the kernel
  (mcs7380).  I'm going through an emerge world right now to bring
  everything up to date.  Is there anything else I might need to do?
 
  - Grant

 I enabled some more kernel options under USB Network Adapters and it's
 working now.  The install is about done but there were a few
 peculiarities:

 1. fdisk won't let me specify a start block before 2048 even though I
 deleted all partitions.


 That's normal. It's a long story, but Windows Vista and Windows 7 expects
 the first partition to start at sector 2048.

 You can force a lower number by toggling DOS compatibility; this should
 let you start the first partition as low as sector 63.

 HOWEVER, make sure that all partitions begin at multiples of 8 (e.g., 64,
 72, 80, and so on); this will save you a lot of grief if it happens that the
 hard disk you're using has 4KiB-sectors. [1]

snip the rest

From what I recall of looking at that toy's specs, it's running on an
SSD, so it becomes even more important, performance-wise, to have
things aligned properly so any one write doesn't cause two full erase
blocks to be cycled. The 1MB alignment is, if I recall, a balance
Microsoft struck as the midpoint between multiple hardware vendors to
work well on any of them... raid arrays, SSDs, advanced format hard
drives with 4k sectors on-disk, etc.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] screen locker

2012-02-19 Thread Joshua Murphy
On Sun, Feb 19, 2012 at 3:35 PM, Grant emailgr...@gmail.com wrote:
 Has anyone found a screen locker they like?  I'd like to move away
 from xscreensaver.  It seems bloated plus it isn't working right for
 me anymore.

 slimlock looks interesting but the ebuild in the miramir overlay fails with:

 !!! Fetched file: slimlock-.tar.gz VERIFY FAILED!
 !!! Reason: Filesize does not match recorded size
 !!! Got:      21746
 !!! Expected: 21479

 and the comments in this bug aren't encouraging:

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

 - Grant


I find I like slock, though it's possibly a bit excessively on the
'minimalist' side for many people. Flat blanked screen, just type the
user's password and hit enter to unlock... there's no visual cues at
all. It also doesn't auto-enable on a timer by itself.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] [OT] Linux Live CD to perform hardware audit?

2012-02-08 Thread Joshua Murphy
On Wed, Feb 8, 2012 at 10:58 PM, Pandu Poluan pa...@poluan.info wrote:
 Excuse me for starting an off-topic thread,

 But do any of you guys/gals know of a Live CD distro that can perform
 hardware audit? i.e., detect installed processor model, RAM parameters 
 layout, etc.

 It's gotta be a Live CD because the boxes currently installed are running
 either VMware or XenServer and I am reluctant to open them up. So I guess
 I'll just shutdown the box, boot using the Live CD, record all important
 info, and reboot into the hypervisor.

 Rgds,

Pretty much any livecd that'll boot can do the job... lspci -vv,
/proc/cpuinfo, /proc/meminfo, and fdisk -l (which'll catch any drives
the running kernel sees at least) are pretty standard, and it wouldn't
take much to include a script that calls those, dumps the output
somewhere, then reboots. For more extensive info, dmidecode and lshw
tend to give more detail, but are a little less 'standard'. Notably,
dmidecode gives things like per-slot ram information.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] From where the word 'gentoo' came?

2011-12-21 Thread Joshua Murphy
On Wed, Dec 21, 2011 at 7:32 AM, LinuxIsOne reall...@hmamail.com wrote:
 On Wed, Dec 21, 2011 at 5:58 PM, Daniel Troeder dan...@admin-box.com wrote:

 Also (ir)relevant: bug report concerning the mascot Larry the cow:
 https://bugs.gentoo.org/show_bug.cgi?id=27727

 But your links shows untrusted connection in my browser!


That would likely be because cacert.org isn't a trusted' authority by
default and that is the issuer for B.G.O., making the certificate
throw up a red flag if you choose not to add cacert.org to your
trusted authorities.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] From where the word 'gentoo' came?

2011-12-21 Thread Joshua Murphy
On Wed, Dec 21, 2011 at 10:24 AM, LinuxIsOne reall...@hmamail.com wrote:
 On Wed, Dec 21, 2011 at 8:29 PM, Joshua Murphy poiso...@gmail.com wrote:

 That would likely be because cacert.org isn't a trusted' authority by
 default and that is the issuer for B.G.O., making the certificate
 throw up a red flag if you choose not to add cacert.org to your
 trusted authorities.

 And finally there is no security risk in adding cacert.org to the
 trusted authorities?


Well, that's up to whether you trust that issuer not to give out
certificates to people using falsified credentials, setting up
phishing sites, etc. Any time you choose to allow a person outside of
yourself to decide who or what you trust, there's some element of
risk. That the Gentoo devs trust cacert.org to be their issuer for
b.g.o. is enough for me to feel that risk is worth it in my case, but
that's as much as I can really say.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] please explain this contradictory(?) emerge dependency

2011-12-18 Thread Joshua Murphy
On Sun, Dec 18, 2011 at 8:34 PM, Allan Gottlieb gottl...@nyu.edu wrote:
 I get dependency problems in my normal update world that I can't
 understand.  The entire output is below.

 As far as I can tell gnome-2.32.1-r1 (which is installed) is requiring
 packages from gnome-3, which must be wrong.  I don't see any such
 dependencies in the ebuild for gnome-2.32.1-r1 and there is an official
 mask list (which I am using) for those of us who want to
 delay installing gnome-3 for a while.

 My conclusion that gnome-2... is requiring gnome-3 packages (which I
 know is wrong) comes from two points in the output below.

 1.  The indenting of the --tree --verbose output seems to say this
    (e.g., the first two lines say gnome-2... depends on nautilus-3)

 2.  The comments related to mask changes at the bottom say
    evince-3... is required by gnome-2...

 Please help.
 thanks,
 allan


Without doing any digging (I'm 100mi away from my Gentoo boxes and
sitting on satellite internet, so SSH is painful), I would presume the
packages pulling in those dependencies aren't specifying a maximum
version, so it's not that they're requiring gnome 3 packages,
they're requiring gnome packages and are choosing to use the newest,
which happens to be part of 3, meaning the gnome 2 ebuilds would need
updated to require version  3.0 to avoid it automatically, and
possibly block on mixing 2 and 3 if the mixing really does give
issues.

In /etc/portage/package.mask (untested, for the aforementioned reasons), add:
=gnome-base/nautilus-3
=app-text/evince-3

-- 
Joshua M. Murphy
Poison [BLX]



Re: [gentoo-user] Re: can one tell me: gentoo vs opensuse

2011-12-06 Thread Joshua Murphy
On Tue, Dec 6, 2011 at 5:04 PM,  ny6...@gmail.com wrote:
 And yet the documentation is clear enough for anyone to follow along. Which
 leads me to my next point: the Gentoo documentation is far and away the best
 of any distro I have tried. Whoever writes these docs deserves a heap of
 accolades for his efforts.

 Terry

This doesn't get pointed out enough. I started out on Mandrake myself
and as soon as I ran into a problem, there was such a drastic learning
curve, dealing with RPMs was horrendous at the time, it just wasn't
worth it to me to dig to find what was below the pretty layer when the
pretty layer didn't cut it. Then I used Slackware, which was great for
me, did exactly what I wanted when I asked and absolutely nothing I
didn't ask for... but it wasn't until I jumped into LFS that I really
learned a great deal about *how* Linux actually works. Gentoo is the
only place I've found comparable documentation to LFS, and even when
dealing with other distros I find myself relying on Gentoo and LFS
documentation more *each* than all others combined.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] New gentoo installation fails when trying to install syslog-ng

2011-09-14 Thread Joshua Murphy
On Wed, Sep 14, 2011 at 12:48 PM, Trifu Catalin Florin
sviatov...@yahoo.com wrote:
 Hi Michael
 I have 1.9GB left and it works to create a new file.
 BTW: What means don't top-post if possible?
 
 From: Michael Schreckenbauer grim...@gmx.de
 To: gentoo-user@lists.gentoo.org
 Sent: Wednesday, September 14, 2011 7:12 PM
 Subject: Re: [gentoo-user] New gentoo installation fails when trying to
 install syslog-ng

 On Wednesday, 14. September 2011 09:00:02 Trifu Catalin Florin wrote:
 Hi

 the version of portage:

 Portage 2.1.10.11 (default/linux/x86/10.0/desktop, gcc-4.4.5,

 2.1.10.11 is the latest. So no error here

 glibc-2.12.2-r0, 2.6.19-gentoo-r5 i686)

 USE=-emacs emerge -av1 sys-devel/autoconf - ir doesn't work; same error

 Is there space left on the device?
 If so, does something like
 touch /var/tmp/portage/foo.stamp
 (as root) work?

 Nilesh, can you please be more explicite?

 Thank you!

 Best,
 Michael

 BTW: please don't top-post if possible.

 
 From: Michael Schreckenbauer grim...@gmx.de
 To: gentoo-user@lists.gentoo.org
 Sent: Wednesday, September 14, 2011 6:27 PM
 Subject: Re: [gentoo-user] New gentoo installation fails when trying to
 install syslog-ng

 Hi,

 On Wednesday, 14. September 2011 08:01:56 Trifu Catalin Florin wrote:
  Hi everyone!
 
  I have a big problem trying to install Gentoo. I have completed all the
  steps from the manual, as I have did it so many times, and I'm stuck
  trying to install syslog-ng. The machine is very old, it has an Athlon
  processor and 256MB of RAM, but it worked fine with gentoo. The error
  can be seen bellow:
  snip
  The same error I get for vixie-cron.

 this is sys-devel/autoconf failing, building some emacs related things.
 Try
 USE=-emacs emerge -av1 sys-devel/autoconf

 If that works, add
 sys-devel/autoconf -emacs
 to /etc/portage/package.use

  Some other things worth mentioning:
  - portage didn't request for an update

 What version is installed?

  - mirrorselect -i -o faild with error: cannot download a list of mirrors
  or something similar.

 No idea.

  I will really appreciate your help as my server is down for two days
  now. Thank you!
  Best regards!

 Regards,
 Michael





Top posting refers to adding your reply to an email above the quoted
text from what you're replying to. Bottom posting is the standard on
many mailing lists because it allows a more natural flow of
conversation to progress down the set of nested replies, so context is
provided before the response being given. That preference, along with
a preference for plain-text rather than HTML mail, is generally
overlooked when a particular mail client is incapable of one or the
other (common on phone-based clients, primarily).

-- 
Poison [BLX]
Joshua M. Murphy



Re: OT: Re: [gentoo-user] X Freezes With Firefox on Many Post 2.6.38 Kernels

2011-07-31 Thread Joshua Murphy
On Sat, Jul 30, 2011 at 8:53 PM, Peter Humphrey
pe...@humphrey.ukfsn.org wrote:
 On Saturday 30 July 2011 15:50:11 Dale wrote:
 Peter Humphrey wrote:
  One thing's certain: it's a good test of the USB disk! I just hope your
  power incident doesn't happen to me too.   :-)

 That would suck.  I sure did hate to lose my videos.  I bet ATT does to
 since I have to go find them and download them again.  :/

 I hope you're pleased to know the process finished. 23 hours to move a
 partition! Never heard anything like it.

 All I have to do now is to persuade Win-XP to find the disk. No luck so
 far...

 --
 Rgds
 Peter           Linux Counter 5290, 1994-04-23

Ouch... that's a case of a read-write-verify with small blocks over
USB showing just how slow USB really is, I think. Parted does things
the safest way it can, and verifies things every step of the way, and
I've even had it take several hours to transition a third or so as
much data on an internal sata disk. Add in the limitations on speed of
a USB bus and... well, 23hrs sounds about right to me...

-- 
Poison [BLX]
Joshua M. Murphy



Re: OT: Re: [gentoo-user] X Freezes With Firefox on Many Post 2.6.38 Kernels

2011-07-31 Thread Joshua Murphy
On Sun, Jul 31, 2011 at 7:13 AM, Mick michaelkintz...@gmail.com wrote:
 On Sunday 31 Jul 2011 09:49:33 Dale wrote:
 Mick wrote:
  On Sunday 31 Jul 2011 01:53:39 Peter Humphrey wrote:
  I hope you're pleased to know the process finished. 23 hours to move a
  partition! Never heard anything like it.
 
  Not unheard of.  If you have too small/large bs and the disk is
  relatively large it will take quite some hours to get it transfered bit
  by bit.

 How do you know what size bs to use?  I didn't specify one when I did
 mine.  Is there a auto option maybe?

 Just curious.

 Sorry I was thinking of using dd to move/clone a partition, which allows you
 to set bs.  Not sure how parted does it - it could potentially default to
 bs=512 for all but the latest large disks, which would make things slower I
 guess.
 --
 Regards,
 Mick


Well, GParted, if I recall, does a couple checks to guess 'best' block
size when cloning or moving a partition, but I'm really not sure how
it does things when shrinking and shifting it sideways to a spot that
overlaps with where it started... but based on the above, I would
guess it really does do a bs of 512, or ar best, the cluster size of
the file system it is moving (usually 4k), since it's moving the data
stored there, not the whole partition, block for block.

-- 
Poison [BLX]
Joshua M. Murphy



Re: OT: Re: [gentoo-user] X Freezes With Firefox on Many Post 2.6.38 Kernels

2011-07-31 Thread Joshua Murphy
On Sun, Jul 31, 2011 at 9:51 AM, Peter Humphrey
pe...@humphrey.ukfsn.org wrote:
 On Sunday 31 July 2011 14:15:20 Joshua Murphy wrote:

 Well, GParted, if I recall, does a couple checks to guess 'best' block
 size when cloning or moving a partition, but I'm really not sure how
 it does things when shrinking and shifting it sideways to a spot that
 overlaps with where it started... but based on the above, I would
 guess it really does do a bs of 512, or ar best, the cluster size of
 the file system it is moving (usually 4k), since it's moving the data
 stored there, not the whole partition, block for block.

 In fact it did run those tests, and it settled on a value of, I think, 16MB
 blocks. It then ran a read-only test of the entire file system, and only then
 started copying it. As it was moving the partition upwards by about half its
 occupied size, there was considerable overlap. That must mean that it
 started with the highest-numbered block and worked steadily (very!)
 downwards.

 I don't know where in the partition it ran its speed tests, but on a
 partition that occupies almost all the physical disk, as it did, there must
 be a considerable speed difference between its two ends.

 --
 Rgds
 Peter           Linux Counter 5290, 1994-04-23



There probably is a fair chunk of difference in maximum speed the disk
can work at on each end (I've even seen around a 20MB/s difference on
several 160GB drives I've dealt with), but outside of some older
drives that've been heavily abused in their lives, I'm not sure I've
seen a sata drive that I've used my usual drive test (MHDD on a
Hiren's bootable USB) on register below around 60MB/s on the slow end,
and USB2's *theoretical* limit is 480Mb/s (60MB/s) ... real-world
implementations rarely reach, let alone top, around 40MB/s, so disk
speed variation across the disk is an unlikely source of the slowdown.
More likely, it's the fact that parted has to start from the end, and
work its way backwards, reading, writing, and verifying in separate
rotations of the disk with no benefit from the drive's ability to
stream a larger block into cache, since the whole process is backwards
compared to the streaming read most drives are optimized for. Of
course, this is all off the cuff conjecture on my part, including my
assumptions about how parted approaches the whole task... mixed with a
bit of anecdotal evidence on my end... but, makes for amusing
conversation and contemplation, if nothing more substantial. I will
point out that the newer advanced format WD 500GB blue's I've worked
recently with pulled a consistent 120-110MB/s speed from end to end...
when their older 320s usually peaked at around 85 or so.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Running out of space on /var partition

2011-07-27 Thread Joshua Murphy
On Wed, Jul 27, 2011 at 5:51 PM, Dale rdalek1...@gmail.com wrote:
 Michael Mol wrote:

 On Wed, Jul 27, 2011 at 5:07 PM, Dalerdalek1...@gmail.com  wrote:


 Neil Bothwick wrote:


 On Wed, 27 Jul 2011 10:58:28 -0500, Dale wrote:



 I have 16Gbs here.  It's not like I'm going to run out or anything.  I
 can
 put half on tmpfs and still have 8Gbs left.  That is more than enough to
 compile even OOo with no space problems.

 Thoughts?


 This is Gentoo, where all us users are reputed to spend their days
 passing around benchmarks of emerge -e world, right?

 Try it. :)




 Yep, we do that.  Mine is about 12 hours.  I would post it but I got a
 Blocker instead.  I'll work on that and post it later.  lol

 Point is, I have more than enough memory to test the theory that putting
 portage's work directory on tmpfs is faster/slower than a hard drive.  I
 tested it and it really didn't make much difference.  Most of the time it
 was slower but a couple times it was faster but only by a few seconds.

 I guess drives are just a lot faster nowadays or at least fast enough.  I
 dunno.

 Dale

 :-)  :-)



I would hazard a guess here that, rather than it being a benefit from
improvement in drive speeds, it's moreso an improvement in the
kernel's file caching. As I understand it (likely incorrectly) tmpfs
essentially does little more than inject the given file into the
filesystem cache, with a 'keep this here' flag attached to it. As
files are accessed on the disk, they're pulled into the filesystem
cache anyhow, and they stay there as long as they're being used and
there's room to keep them. With tmpfs, every file you put into it
stays until explicitly removed, wheras letting the kernel handle the
selected list of files in the cache only keeps the ones the kernel
feels are worth keeping. I am curious, though, whether *not* using
-pipe will actually improve performance when building in tmpfs, as
you're already sidestepping most of the overhead of creating files
with tmpfs, so piping data rather than using intermediate files just
creates extra memory usage overhead (which, while cheaper than disk
i/o and filesystem metadata updates, is still overhead).

Another likely source of performance loss in using tmpfs over physical
disk to hold the build is that, by design, tmpfs occupies a portion of
the filesystem cache. During a build, every header imported, every
library linked, and every process that runs to make it all come
together gets touched. When you touch files on disk, some or all of
them get pulled into the filesystem cache, so keeping the entire build
tree in the cache may well leave more frequently used files being
dropped from cache to trade back and forth between one another.

Again, all of this comes with a I likely have no idea what I'm
talking about, but it sounds convincing disclaimer.

:-)

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: Managing multiple Gentoo systems

2011-07-12 Thread Joshua Murphy
On Tue, Jul 12, 2011 at 2:23 PM, Grant emailgr...@gmail.com wrote:
 Have you considered using PXE to network boot your systems? you can
 have various configurations set up based on mac addresses to address
 different hardware issues. I recommend trying out SystemRescueCD to
 experiment with PXE booting for the client and server.

 That sounds like exactly what I need.  So, I could set up a Gentoo
 server and a bunch of completely diskless clients which would all PXE
 boot from the server?  Would the clients basically each control a
 different virtual terminal on the server?

 Each machine can pull a copy of the master boot image to make updates
 a lot simpler. The SystemRescueCD PXE boot mechanism just pushes out a
 copy of the CD to all the machines to boot them. to update the boot
 image just update the files in one location to update all machines.
 the machines act as separate fully functioning machine. Check out
 http://www.sysresccd.org/Sysresccd-manual-en_PXE_network_booting to
 see how to setup the PXE boot environment.

 I think I get it now and it sounds great, exactly what I'm looking for.

 Everything can be done in RAM, no disks required?

 Can PXE boot be done wirelessly?  Maybe only if the wireless is
 onboard?  I tried to Google this but the info returned is terribly
 outdated for some reason.

 Do you think SystemRescueCD is the best boot image for clients that
 only need a browser?

 What sort of machine would work well as a client?  Should I just put
 together a bunch of motherboards with onboard video and ethernet,
 CPUs, RAM, PSUs, and small cases?  Is there a prebuilt system that
 works well for this?  Maybe an ARM-15 system as Tampa Bay James
 referenced, although I think that isn't released yet.

 - Grant

Well, the first thing you need to decide is whether you want each
client running that browser locally, or whether you want each client
to merely provide an interface to the server, and every user's browser
(and every other application) running on the server itself. If your
clients boot, then run all their own software locally, your server's
under only under load during boot-time and your clients need to be
able to handle that work (not much, but it's more than nothing, just
try running a modern Firefox on 64MB of ram). On the other hand, if
your clients merely boot into a remote connection to the server, a la
VNC or NX, the client does *very* little locally, can run on next to
nothing hardware-wise (a true 'thin client'), and the entirety of the
workload is offloaded to the server. If you want responsive 'eye
candy', 3D graphics work/play, or any form of particularly 'smooth'
animation, you will want that work to be handled on hardware closer to
the user (requiring a far faster processor, more ram, a capable video
device, and likely local storage for swap at the least), while serving
up a simple browser to the user is far more forgiving.

As for wired vs wireless, true hardware PXE booting is generally
limited to wired scenarios, but it would be entirely possible (though
not truly 'diskless') to deploy a minimal kernel+initramfs that
handles initial booting, joining WiFi, pulling down of the system
'image' from your server, and handing control off to that in the same
way your run of the mill kernel+initramfs loads hardware drivers until
it can find the harddrive, attaches to the root partition, and hands
off control to init from there. Changes to the wireless configuration
would require directly visiting each client, and client-side kernel or
initramfs updates easily could as well, if things don't go as planned
(but, since all the user-side software is either run on the server or
loaded from it at boot-time, changes to the client's loader
shouldn't be frequent).

There's also the option of pre-made hardware thin clients that
typically boot from internal flash and simply provide a remote
interface to a central server (though most are geared towards RDP or
Citrix), and some are even WiFi capable.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] bridge

2011-07-10 Thread Joshua Murphy
On Sun, Jul 10, 2011 at 10:50 AM, Daniel Hilst Selli
danielhi...@gmail.com wrote:
 Hi people, I'm using brctl to create bridges for some qemu guests...

 I create a br0 with brctl addbr br0
 the I attach my wireless card to it with brctl addif br0 eth1

 Then some times I get right ip with dhcpcd br0 (after doing 'ifconfig br0
 promisc up')
 but some times I got an strange ip
 The questions are
 What the promisc means?

 I can't understand for really the bridge concepts .. I just know that you
 attach
 cards to it, but can't understand how it route things

 cheers
 --
 Do or do not... there is no try Yoda Master

Well, in principle, a bridge acts like a switch or a hub, so there's
no real 'routing', though when it knows which 'port' a given MAC
address is on the other end of, it'll likely avoid sending traffic
headed towards that MAC to the other endpoints (as a switch does).

With regard to the trouble you're seeing, I've had more issues than I
can clearly recall with bridging and wireless cards when I've tried,
and it may be a similar roadblock that you're running into there. If
you don't need each VM to be 'local' to the network you're on, you
might be better off using NAT to interface the internal network of VMs
with the outside world.

'promisc' means that the interface is in promiscuous mode. Promiscuous
mode recieves every ethernet frame to handle them rather than only
accepting frames that are targetted for the interface's MAC address,
which then allows all of that traffic to be forwarded across the
bridge to other networks.

There's a very good writeup on bridges, how they work, common issues,
and a fairly extensive FAQ at the link below:

[1] http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: Thunderbugs

2011-07-09 Thread Joshua Murphy
On Sat, Jul 9, 2011 at 8:23 PM, Dale rdalek1...@gmail.com wrote:
 Nikos Chantziaras wrote:

 On 07/10/2011 12:59 AM, john wrote:

 Help.

 I have tried everything to remove thunderbugs which are causing havoc
 behind my screen. Small black mites have taken over xorg-server!

 rm -r thunderbugs
 srm -r thunderbugs
 emerge -C thunderbugs
 emerge --depclean
 revdep-rebuild

 = no use

 There is no mention of thunderbugs package in world, and python-updater
 seems to be of no use. Clamav cannot recognise them. There are no
 references to this in BUGzilla.

 Any suggestions will be appreciated apart from calling in ACME.

 I'm having trouble understanding what the issue is.  I assume you're not
 talking about insects stuck on the TFT panel of your monitor.  That what
 exactly are you talking about?



 I was wondering the same thing.  I was to chicken to ask because I thought
 it might be some fancy new software that I haven't heard about yet.  Could
 it be thunderbird?  That's the only thing I could find in the portage tree.

 At least I wasn't the only one confused.  Sort of had that a lot here
 lately.  :/

 Dale

 :-)  :-)

I thought about asking myself, but... the mention of ACME just makes
me think it's a joke I missed somewhere along the way, and I didn't
want to be the first to admit to missing it...

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: Firefox and kernel panics.

2011-07-09 Thread Joshua Murphy
On Sat, Jul 9, 2011 at 11:31 PM, Dale rdalek1...@gmail.com wrote:
 Mark Knecht wrote:

 On Sat, Jul 9, 2011 at 6:36 PM, Dalerdalek1...@gmail.com  wrote:
 SNIP


 It works as long as I don't open Firefox.  If I open Firefox, poof!!  No
 more trapped smoke.  lol

 Dale


 So I had suggested running it in gdb and someone else suggested
 running it in strace. Did you have a chance to try either of those?

 Not sure how much info you'll get from either but might be worth a try.

 - Mark




 I don't know what gdb is.  If my machine locks up, I won't be able to see
 what strace does.  I'm not sure that will help.

 Dale

 :-)  :-)



gdb is the GNU Debugger. As for the usability of strace in your case,
if you can see the last few calls before the lock-up occurs, it could
help narrow things down a bit. Also, if you SSH into the machine and
run firefox through strace via that (drawing to the machine's local
screen, not the SSH client's), you will have anything it can give in a
workable form, even after the system hangs. You might also test
whether it crashes while running Firefox via SSH and drawing to a
different machine, which (if it does) would allow you to sit on a real
terminal on the main system and see the kernel's output in the instant
of the crash or (if it doesn't) would narrow it down to X being a key
factor.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] [OT]: Powering off Windows XP, crashing NTFS with a Live CD.

2011-07-04 Thread Joshua Murphy
On Mon, Jul 4, 2011 at 9:15 AM, Neil Bothwick n...@digimed.co.uk wrote:
 On Mon, 4 Jul 2011 12:12:03 +, Alan Mackenzie wrote:

   o - Do live CDs actually mount filesystems on HDDs?

  Only when you ask them to.

 I'm stupid.  Of _course_ a live CD can't mount HDD filesystems at boot.
 To do this it would need /etc/fstab, for which it would need to be told
 the root partition.  A live CD doesn't get this.

 A live CD can mount partitions automatically at boot, some do. all it
 needs to do is scan the disk partition tables, create the mount points
 and mount them.

 Knoppix has been doing the first two for years, and writing the details
 to /etc/fstab to allow the user to mount them easily.


 --
 Neil Bothwick

 A computer without Microsoft is like a chocolate cake without mustard.


And to further complicate it, many also use a similar technique for
finding themselves, mounting one filesystem after another until they
find some distinct marker file to identify where to find the rest of
their data. Others auto-mount and poke around for auto-loading of
extensions unless such features are disabled by a boot-time option.

-- 
Joshua M. Murphy



Re: [gentoo-user] [OT]: Powering off Windows XP, crashing NTFS with a Live CD.

2011-07-04 Thread Joshua Murphy
On Mon, Jul 4, 2011 at 12:00 PM, Mick michaelkintz...@gmail.com wrote:
 On Monday 04 Jul 2011 15:48:06 Joshua Murphy wrote:
 On Mon, Jul 4, 2011 at 9:15 AM, Neil Bothwick n...@digimed.co.uk wrote:
  On Mon, 4 Jul 2011 12:12:03 +, Alan Mackenzie wrote:
o - Do live CDs actually mount filesystems on HDDs?
  
   Only when you ask them to.
 
  I'm stupid.  Of _course_ a live CD can't mount HDD filesystems at boot.
  To do this it would need /etc/fstab, for which it would need to be told
  the root partition.  A live CD doesn't get this.
 
  A live CD can mount partitions automatically at boot, some do. all it
  needs to do is scan the disk partition tables, create the mount points
  and mount them.
 
  Knoppix has been doing the first two for years, and writing the details
  to /etc/fstab to allow the user to mount them easily.
 
 
  --
  Neil Bothwick
 
  A computer without Microsoft is like a chocolate cake without mustard.

 And to further complicate it, many also use a similar technique for
 finding themselves, mounting one filesystem after another until they
 find some distinct marker file to identify where to find the rest of
 their data. Others auto-mount and poke around for auto-loading of
 extensions unless such features are disabled by a boot-time option.

 I've only come across LiveCDs which scan the drive and create mount points -
 but not mount any device unless explicitly asked to do so by the user.

 However, I wouldn't be surprised if some more recent installation CDs go
 further than that, as Joshua claims.

 Joshua, which LiveCDs behave in the way you describe by automounting
 partitions and searching fs?

 --
 Regards,
 Mick


I haven't seen any install cds that do that, but DSL and, if I recall,
TinyCore/MicroCore look for extensions in a default path on the local
filesystems. One thing I'm fairly sure on, though, is that without the
-f flag, mount won't take the risk on an unclean NTFS, and instead
just tosses an are you sure? message, which would make me presume
even those livecds that do look for extensions wouldn't risk the
damage there.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: about boot with framebuffer

2011-07-04 Thread Joshua Murphy
On Mon, Jul 4, 2011 at 7:45 PM, Mark Knecht markkne...@gmail.com wrote:
 On Mon, Jul 4, 2011 at 2:34 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Monday 04 July 2011 14:15:12 Mark Knecht did opine thusly:
 SNIP
 I'm curious, however, about my Gentoo VMs. Can KMS run on a VM's
 kernel and do anything useful there? This is more for learning and
 not about any practical need at this time.

 From my understanding, this topic gets yucky. There's a whole bunch of
 ways this could be done, from software emulation to para-
 virtualization to full virtualization. Emulation is easy - KMS in the
 guest sees what looks for all the world like hardware so everything
 works if KMS supports the emulated card (albeit slowly). For
 everything else, you'd need kernel drivers intercepting efforts to
 talk to the hardware and be traffic cop. My brain is already spinning
 on this so please excuse me while I go dunk my head in a bucket and
 not think about it anymore :-)


 So I'm wondering if the Virtualbox graphics driver
 (xf86-video-virtualbox) is a framebuffer local to the VM or something
 else?

 My NVidia GFX465 running the NVidia driver does about 11,000 FPS in
 glxgears in Linux. glxgears running in the VM does about 130FPS, or
 around 1% of the performance outside. Yes, it's 'slow', depending on
 how we define slow. It's faster then machine I ran native in Linux 5
 years ago, and it's very usable for things like browsers, etc.

 I don't know what tool to use to measure graphics performance on
 Windows but my Windows XP VM is more than fast enough to watch Netflix
 full screen at 1920x1080 without any major amount of tearing, so
 Virtualbox graphics performance there is fine.

 Anyway, just data.

 Thanks,
 Mark



GLX is also doing OpenGL 3D rendering which, outside the VM is
hardware accelerated while inside of it the driver has no true,
direct, access to hardware, though if you're one of the very lucky,
there's a chance of halfway workable pass-through via the guest
additions and such, but even that's slow (and I'm not certain it's
available to a *nix guest).

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Howzat!

2011-04-17 Thread Joshua Murphy
On Sun, Apr 17, 2011 at 9:44 PM, Dale rdalek1...@gmail.com wrote:
 Peter Humphrey wrote:

 Hello list,

 How's this for sheer persistence and grit?

 $ genlop -c

  Currently merging 321 out of 368

  * www-client/chromium-10.0.648.204

        current merge time: 11 hours, 41 minutes and 9 seconds.
        ETA: any time now.

 This is my Atom N270 LAN server box.



 I got a very old Compaq rig with quad 200Mhz CPUs and 128Mbs of ram.  I have
 always wondered how long it would take to compile OOo on that thing.  12
 hours to compile a browser does take patience.  I hope you don't have a
 power failure right at the end.  o_O

 How long does it take to open it when it gets done?  Seconds?  Minutes?

 Dale

 :-)  :-)



Assuming a reasonable 1GB ram on the box (pretty well standard to low
with an Atom), and considering what my netbook does (the same single
core 1.6GHz with HT turned on for responsiveness in my case), about
2-3 seconds... but then I'm on a little SSD too. I should admit my
netbook's running Debian at the moment, though. Didn't want to abuse
the SSD too much with writes, and it's tedious to install things
through an intermediary system all the time. The fullsize laptop, when
it gets its rebuild over the next week (it's been a windows 2k3 server
development system lately)

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] New installation and problem with rp-pppoe

2011-03-31 Thread Joshua Murphy
2011/3/30 Andrzej Styczeń styczen_andr...@o2.pl:
 Hello,

 I try today install Gentoo on my PC. Every thing go well until to install
 net-dialup/rp-pppoe
 then I got:
=x11-libs/cairo-1.10.0 [-qt4]

 How to resolve. If I add the 'qt4' flag to USE in
 /etc/portage/package.use
 this not work. If I set it globally in make.conf USE=qt4 - still not work.

 What for is 'cario' and 'qt' needed if I install 'ppp' or 'rp-pppoe' in
 console. I will be later install whole KDE (and then maybe is needed)  but not
 now, I think (?).

 I select profile for KDE, x86 machine.


 Greetings,
 Andrzej



I believe the line immediately following:

=x11-libs/cairo-1.10.0 [-qt4]

should state rather clearly something close to the below block (if it
doesn't, you may need to run with --verbose to get that, I have
verbose set as default in make.conf)...

!!! One of the following packages is required to complete your request:
- x11-libs/cairo-1.10.2-r1 (Change USE: -qt4)
(dependency required by x11-libs/qt-gui-4.6.3-r2 [ebuild])
(dependency required by x11-libs/cairo-1.10.2-r1 [ebuild])
(dependency required by x11-libs/pango-1.28.3 [ebuild])
(dependency required by x11-libs/gtk+-2.20.1-r1 [ebuild])
(dependency required by net-dialup/ppp-2.4.4-r25 [ebuild])
(dependency required by net-dialup/rp-pppoe-3.8-r2 [ebuild])
(dependency required by rp-pppoe [argument])

Which tells me, A) it's failing because the qt4 USE flag *is* set, and
that adding it more places won't help, and B) you should add an entry
in /etc/packages.use for net-dialup/ppp to disable gtk.

rp-pppoe is pulling in ppp.
ppp (because of the gtk use flag) is pulling in gtk+2.
gtk+2 is pulling in pango.
pango is pulling in cairo with the qt4 use flag (because of your profile).
Something, somewhere, in that list is incompatible with qt4.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] tmux first impression

2011-03-04 Thread Joshua Murphy
On Fri, Mar 4, 2011 at 12:53 AM, Dale rdalek1...@gmail.com wrote:
 Walter Dnes wrote:

 On Wed, Mar 02, 2011 at 06:48:47PM -0600, Dale wrote



 I read that but still would love to here of someone else's experience.
  From that link tho, it sounds . . . interesting.


   I emerged tmux a couple of hours ago and have been playing around with
 it.  It looks like fun.  I have a 24 LCD monitor.  I prefer console text
 mode for non-graphic stuff (e.g. email).  Here's what I've done so
 far...
 1) grep 1280 /var/log/Xorg.0.log
    This gives me a list of 1280xwhatever modes that my monitor supports.
 In my case, it's 1280x720 and 1280x960 and 1280x1024.

 2) I entered the line

 CONSOLEFONT=lat1-14

 in /etc/conf.d/consolefont

 3) and also video=1280x720 in the append line of /etc/lilo.conf

 4) I entered the line

 set -g prefix C-a

 in ~/.tmux.conf because every site on the web that reviewed it said that
 was the way to go.  Apparently, the developer uses {CONTROL-B} as the
 default hotkey to avoid colliding with {CONTROL-A} which screen uses.
 But everyone agrees that {CONTROL-B} is badly placed on the keyboard.

 5) Then I rebooted

   The text console mode is now 1280 pixels x 720 pixels as per the
 video= parameter.  The consolefont sets 8x14 (EGA) font.  A bit of
 division gives...
 1280 / 8 = 160
 720 / 14 = 51 plus a bit.
   So I have a 160 x 51 text console.  I fired up tmux, and split the
 screen vertically.  I now have 2 panes.  The first one is 80 x 50 and
 the second is 79 x 50.  This is after allowing for the vertical dividing
 line (one column) and the status bar at the bottom.  The 14-pixel high
 font is quite nice.  And on a 24 monitor it's very readable.  If you
 prefer, you could go with the 16-pixel high (VGA) font.  That gives 720
 / 16 = 45 rows, or 44 working rows plus the status line.  Both text
 pages are in portrait mode, i.e. they're higher than they are wide.
 Sort of like 2 facing pages of a book.  This could be useful for
 editing a program in one pane, and then compile and execute in another.

   If your eyesight is better than mine, you could try video=1280x960
 and 16-pixel high font, which will give a 160 x 60 text console.

   I like it.  One of these days, when desktop monitors hit 30, I'll set
 the video to 1920x1080 and have 3 pages across.G



 I installed it too.  It seems a lot like screen to me and screen seems to do
 what I need.  I did hit ctrl a several times tho.  lol  I was wondering what
 would happen if you started tmux then started a screen session inside it.

 My 22 LCD monitor is 1920x1080.  Since my glasses are sort of old, I would
 rather have a slightly smaller screen.  I need new glasses for sure.
  Anyway, I got everything set up for this size now.

 I may play with tmux some more tho.  I do like the little status thingy at
 the bottom.  I had that on screen on my old rig but forgot to copy it over
 to my new rig.

 Thanks for the post and the tips.

 Dale

 :-)  :-)

I've just taken a day to play with it, if only a little, yesterday and
I have to say, I do like it so far, but I'll have to put some work
into mapping keys to match what I'm used to from using both screen and
ratpoison together. The lack of escape key+space to jump to the next
by default was the biggest catch for me so far, and I also generally
use key+w for a rapid reminder of what's where when I'm hopping
through larger numbers of terminals, a habit that slows me down a lot
when I walk face first into a selection menu rather than just a quick
flash of information, so it's a habit that would need to change. I
don't often use the split, even screen's horizontal, as it doesn't do
much good for me on a little 9in screen.

In the end, it's very promising, has a lot of great information that'd
take a fair amount of configuring to get from screen (And as much as I
don't like the binding for that menu, I do like the feature), but
would require me either breaking habits or working around them with
the configuration quite a bit. I think, were it not for ratpoison
taking screen's shortcut keys wholesale with only a few additions, I'd
be a lot quicker to pick up tmux. As it is, I suspect I'm as stuck on
my habits as a heavy windows user is theirs. Screen on it's default of
control+a, ratpoison on a straight windows key tap.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: Emerge Problems...

2011-02-01 Thread Joshua Murphy
On Tue, Feb 1, 2011 at 12:20 PM, Dale rdalek1...@gmail.com wrote:
 Neil Bothwick wrote:

 On Tue, 1 Feb 2011 05:48:32 -0800 (PST), BRM wrote:



 If the machine is not fast enough - mine is a PII 233 w/160 MB RAM,
 takes a while do to updates - then you really have to separate out what
 you are hosting from what you are using. Otherwise you end up in the
 situation that you have started one system update (or software
 install), have a build failure for whatever reason, and then can't
 complete the same one due to changes in the local copy of portage.


 You can still use emerge -sync instead of a home brewed script. In make
 conf, set SYNC to localhost, then in your cron job, do

 SYNC=some gentoo rsync mirror emerge --sync



 So, even if your system fell into the first situation - where it is
 fast enough
 - then I would still recommend doing the little extra to run as the
 second situation. It's just far easier to maintain.


 I've been using a single portage tree to serve a LAN and for use by the
 host for years with no hint of any of the problems you suggest. I just
 make sure the cron job on the server syncs earlier than the rest of the
 LAN and everything is up to date.



 I used to have four computers a good while back.  Back then, I synced my
 main rig then synced the others off it.  This was several years ago.  I
 don't use a cron job or anything to do this, just some old fashioned typing.
  I don't recall ever having trouble with it syncing to my main rig.  Did I
 mention it was a very old Compaq 200MHz CPU machine with a whopping 128MBs
 of ram?  Thing looks like a filing cabinet.

 To me, it seems the OP is making something complicated when it is just not
 needed.  If you want to use cron jobs, set the main rig to sync a hour
 before the others would be set to sync against it.  If the rig that syncs to
 Gentoo servers is to slow, set them two hours apart.  From my understanding,
 you get the same tree all the way around.

 Giving some more thought, I once put /usr/portage on nfs.  I sync once and
 all the systems used the same copy of the tree.  The other way worked out to
 be easier tho.  I seem to recall the need for running emerge --metadata too.
  That took a while on the old Compaq.  lol

 Dale

 :-)  :-)

The trick I've been using for... a couple years now, across various
machines (no cron involved), is syncing one box that shares portage
*and* my distfiles on nfs, portage R/O, distfiles R/W, then when it's
done syncing and starts its own metadata update, hop across all the
others and do an emerge --metadata. Once each one finishes, run
through their individual updates. Because distfiles is shared, and
portage's distfile locking is done right... I download each tarball of
sources exactly once, even when 5-6 machines might share the same one.
I've been quite pleased by that... even more handy is the shared git
pull of wine that I build against on 3 different boxes (I tend to
stagger those rebuilds though, haven't risked finding out if that
would clash).

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Firefox and noscript... (maybe off-topic)

2010-08-26 Thread Joshua Murphy
On Thu, Aug 26, 2010 at 12:29 PM, pk pete...@coolmail.se wrote:
 Hi,

 I'm using firefox together with noscript which has worked fine for quite
 a while now and I don't have a real problem with it... Although in the
 latest update, I've discovered that it always connects to 188.121.36.239
 (which belongs to Go Daddy Netherlands) during start up (I've set mine
 to show a blank page on start). I have no knowledge of Go Daddy but I
 read that they are some kind of web hosting firm. Question is, does
 anyone else run noscript in firefox and see this connection? Opinions
 welcome...

 Best regards

 Peter K

Sounds like it's probably this:
http://forums.informaction.com/viewtopic.php?f=7t=4743

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Yahoo and strange traffic.

2010-08-25 Thread Joshua Murphy
On Tue, Aug 24, 2010 at 10:36 PM, Dale rdalek1...@gmail.com wrote:
 BRM wrote:

 Wireshark will show you the raw packet data, and decode only a little of
 it -
 enough to identify the general protocol, senders, etc.
 So to understand the packet, you will need to understand the application
 layer
 protocol - in this case HTTP - yourself as Wireshark won't help you there.

 But yet, Wireshark, nmap, and nessus security scanner are the tools, less
 so
 nessus as it really is more of a port scanner/security hole finder than a
 debug
 tool for applications (it's basically an interface for nmap for those
 purposes).

 HTH,

 Ben




 If finally did it again, and is doing it as I type.  I captured some of the
 traffic with Wireshark.  Can someone tell me what to do with it now?  This
 is one frame of it:

 Frame 4 (881 bytes on wire, 881 bytes captured)
    Arrival Time: Aug 24, 2010 21:03:35.518314000
    [Time delta from previous captured frame: 0.000383000 seconds]
    [Time delta from previous displayed frame: 0.000383000 seconds]
    [Time since reference or first frame: 0.010995000 seconds]
    Frame Number: 4
    Frame Length: 881 bytes
    Capture Length: 881 bytes
    [Frame is marked: False]
    [Protocols in frame: eth:ip:tcp:http]
    [Coloring Rule Name: HTTP]
    [Coloring Rule String: http || tcp.port == 80]
 Ethernet II, Src: ArchtekT_81:d5:d3 (00:01:53:81:d5:d3), Dst:
 Motorola_aa:96:e4 (00:1d:6b:aa:96:e4)
    Destination: Motorola_aa:96:e4 (00:1d:6b:aa:96:e4)
        Address: Motorola_aa:96:e4 (00:1d:6b:aa:96:e4)
         ...0     = IG bit: Individual address (unicast)
         ..0.     = LG bit: Globally unique address
 (factory default)
    Source: ArchtekT_81:d5:d3 (00:01:53:81:d5:d3)
        Address: ArchtekT_81:d5:d3 (00:01:53:81:d5:d3)
         ...0     = IG bit: Individual address (unicast)
         ..0.     = LG bit: Globally unique address
 (factory default)
    Type: IP (0x0800)
 Internet Protocol, Src: 192.168.1.2 (192.168.1.2), Dst: 98.136.112.30
 (98.136.112.30)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
         00.. = Differentiated Services Codepoint: Default (0x00)
         ..0. = ECN-Capable Transport (ECT): 0
         ...0 = ECN-CE: 0
    Total Length: 867
    Identification: 0xe5fb (58875)
    Flags: 0x02 (Don't Fragment)
        0.. = Reserved bit: Not Set
        .1. = Don't fragment: Set
        ..0 = More fragments: Not Set
    Fragment offset: 0
    Time to live: 64
    Protocol: TCP (0x06)
    Header checksum: 0xbd48 [correct]
        [Good: True]
        [Bad : False]
    Source: 192.168.1.2 (192.168.1.2)
    Destination: 98.136.112.30 (98.136.112.30)
 Transmission Control Protocol, Src Port: 43281 (43281), Dst Port: http (80),
 Seq: 0, Ack: 1, Len: 815
    Source port: 43281 (43281)
    Destination port: http (80)
    [Stream index: 1]
    Sequence number: 0    (relative sequence number)
    [Next sequence number: 815    (relative sequence number)]
    Acknowledgement number: 1    (relative ack number)
    Header length: 32 bytes
    Flags: 0x18 (PSH, ACK)
        0...  = Congestion Window Reduced (CWR): Not set
        .0..  = ECN-Echo: Not set
        ..0.  = Urgent: Not set
        ...1  = Acknowledgement: Set
         1... = Push: Set
         .0.. = Reset: Not set
         ..0. = Syn: Not set
         ...0 = Fin: Not set
    Window size: 92
    Checksum: 0x0d09 [validation disabled]
        [Good Checksum: False]
        [Bad Checksum: False]
    Options: (12 bytes)
        NOP
        NOP
        Timestamps: TSval 177975147, TSecr 3960038659
    [SEQ/ACK analysis]
        [Number of bytes in flight: 815]
 Hypertext Transfer Protocol
    GET /v1/displayImage/custom/yahoo/screen name was here?redirect=0
 HTTP/1.1\r\n
        [Expert Info (Chat/Sequence): GET
 /v1/displayImage/custom/yahoo/screen name was here?redirect=0
 HTTP/1.1\r\n]
            [Message: GET /v1/displayImage/custom/yahoo/screen name was
 here?redirect=0 HTTP/1.1\r\n]
            [Severity level: Chat]
            [Group: Sequence]
        Request Method: GET
        Request URI: /v1/displayImage/custom/yahoo/screen name was
 here?redirect=0
        Request Version: HTTP/1.1
    Host: rest-img.msg.yahoo.com\r\n
    Connection: close\r\n
    User-Agent: Mozilla/5.0 (compatible; Konqueror/4.4; Linux
 2.6.30-gentoo-r8; X11; i686; en_US) KHTML/4.4.5 (like Gecko)\r\n
    Accept: text/html, image/jpeg;q=0.9, image/png;q=0.9, text/*;q=0.9,
 image/*;q=0.9, */*;q=0.8\r\n
    Accept-Encoding: x-gzip, x-deflate, gzip, deflate\r\n
    Accept-Charset: iso-8859-1, utf-8;q=0.5, *;q=0.5\r\n
    Accept-Language: en-US, en\r\n
    [truncated] Cookie: B=ailkv295qsqnrb=3s=dn;
 Y=v=1n=bt77n8119ils3l=30b4a_rzwx/op=m2316qt01300jb=16|47|r=eglg=en-USintl=usnp=1;
 

Re: [gentoo-user] Yahoo and strange traffic.

2010-08-25 Thread Joshua Murphy
On Wed, Aug 25, 2010 at 9:21 AM, BRM bm_witn...@yahoo.com wrote:
 - Original Message 

 Joshua Murphy wrote:
  Well, glancing at the GET request it's making  there, as well as the
  API google points me to when I look it  up...
 
   http://developer.yahoo.com/messenger/guide/ch03s02.html#d4e4628
 
   You're right that it's after an image from their profile, but the
  cause  of the failure appears to be related to some sort of credentials
  Yahoo  wants the messenger to provide. You might poke Kopete's
  bugtracker to  see if they've a related bug on file already, and if
  they don't, throw  one their way.
 
  The API Yahoo appears to be using there (based on  a response I got
  back in poking lightly) is, or is based on, OAuth,  which according to
  this:
 
   http://oauth.net/core/1.0/#http_codes
 
  specifies that a request  should give a 401 response (Authorization
  Required vs Unauthorized is  purely the choice of phrase used in the
  program decoding the numerical  code, i.e. wireshark in your example of
  it there) in the following  cases:
 
  HTTP 401 Unauthorized
     * Invalid  Consumer Key
     * Invalid / expired Token
      * Invalid signature
     * Invalid / used nonce
 
   Yahoo, essentially, *does* give a bugger off!! with that response,
  but  Kopete simply takes it, considers it a brief instant, then decides
   Maybe the answer will change if I try again *now*!... at which point
   it proceeds to introduce its proverbial cranium to the proverbial
  brick  and mortar vertical surface one might term the wall.
   Repeatedly.
 
 

 I was sort of figuring that it  was trying to get something and Yahoo
 wasn't liking it.  At least now  we know for sure.

 I went to bug.kde and searched but I didn't see  anything.  Of course,
 I'm not really sure what the heck to look for  since I don't know what is
 failing, other than  Kopete.

 Best bet would probably be to check with the Kopete devs on IRC or mailing 
 list
 (kopete-devel).

 Ben

Yep, but... just from a glance at their bug tracker and their commits
list... they made quite a few changes to the Yahoo plugin's handling
of avatars and such in January that're in 4.4... so their go-to answer
on Yahoo avatar related issues seems to be Try it on 4.4, then come
back if it's still broken.

So... to save a little time and effort when that answer's thrown
around... might be best to test with that. I don't have QT or anything
that depends on it on any of my boxes (the only box I actually have X
on right now's my netbook, so adding's not even a feasable option) and
my yahoo account went dead a few years ago, so I'm not much use for
testing.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] OT: hard disk access and recovery impossible under linux ?

2010-07-31 Thread Joshua Murphy
On Sat, Jul 31, 2010 at 12:14 PM, Mick michaelkintz...@gmail.com wrote:
 On Saturday 31 July 2010 16:33:18 Dale wrote:
 Kacper Kopczyński wrote:
  Dnia 2010-07-31, o godz. 16:15:51
 
  Volker Armin Hemmannvolkerar...@googlemail.com  napisał(a):
  On Samstag 31 Juli 2010, Kacper Kopczyński wrote:
  Hi,
 
  My problem is really strange - I can't access my hard drive from
  linux, but it works from windows without problems. It has some bad
  blocks.
 
  it has a lot of bad blocks and a fucked up firmware it seems. No way
  it is working 'without problems'.
 
  Well total space taken by bad blocks according to chkdsk is less than
  1MB, windows is still able to access all data. Linux is only able to
  see partition table for a while - as you can see in dmesg.
 
  If firmware is broken then how it is possible that windows is able to
  use this disk?

 Maybe windoze is ignoring the problem?  It's not like windoze has never
 done that before right?

 Just a thought.

 Couldn't it be that the MSWindows partition has no bad blocks, while Linux
 does?

 --
 Regards,
 Mick


Not likely, though just looking at *how* it fails, if the data'd not
already been backed up, I'd hold at least a little hope that it's not
really a problem with the on-disk data, aside from what's been
corrupted since the problems started, but rather just the controller
and firmware. If I had a spare drive from the same batch, I'd swap in
the not-dying controller card and see if that got me anywhere. Since
the drive's already backed up, though... that one's a new paperweight
for the desk, and if the data's anything sensitive, physical
destruction of the drive's the way I'd go to 'secure' it before it
goes out with the trash.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: Blurred bold characters in urxvt

2010-06-07 Thread Joshua Murphy
On Sat, Jun 5, 2010 at 3:09 PM, Mick michaelkintz...@gmail.com wrote:
 On Saturday 05 June 2010 19:13:24 Mick wrote:
 Hi All,

 I emerged rxvt-unicode because aterm which I have been using faithfully for
 years does not do UTF8, but as you can see in the attachment all bold
 characters look distorted.  In xterm and aterm they look nice and clear
  when bold.

 How can I fix this?

 It seems that it was a limitation of the fixed font that I had defined for
 aterm in .Xresources:

 aterm*font:-*-fixed-*-*-*-*-20-*-100-*-*-*-*-*

 Setting a different font and using xft seems to overcome this problem:

 /usr/bin/urxvt -pe tabbed -fn x:Bitstream Vera Sans Mono:pixelsize=15

 No idea why aterm copes with fixed font and urxvt does not ...

 --
 Regards,
 Mick

The 'why' I can answer. Aterm doesn't do antialiasing for the fonts
while urxvt does, and the 'fixed' font wasn't made to be able to
handle antialiasing cleanly.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Gentoo initrd docs?

2010-06-06 Thread Joshua Murphy
On Sun, Jun 6, 2010 at 11:25 AM, Mark Knecht markkne...@gmail.com wrote:
 Hi,
   Does there happen to be a Gentoo doc anywhere that goes through
 creating an initrd from scratch?

   If not Gentoo, then any good web site would be a big help. I'm
 interested in booting from RAID - or at least investigating it - so I
 need to learn about this.

 Thanks,
 Mark

genkernel is the 'official' way, and I at least use it on my netbook.
Maintaining an up to date kernel with an integrated initramfs with
little effort on my own part, while Gentoo itself sits on an encrypted
partition was just too much to pass up.

The guide for it is here:
http://www.gentoo.org/doc/en/genkernel.xml

Alternatively, gentoo-wiki.com has guides on most anything I've ever
decided I wanted to look up how to do, and the forums also tend to
have a good how-to here and there.

I've not looked over these two myself, so I can't vouch for them...

http://en.gentoo-wiki.com/wiki/Initramfs
http://forums.gentoo.org/viewtopic.php?t=193273

And last idea I have, as it's where I've learned more about how to
make Linux do *anything* I might want it to do... LFS and the other
projects it's spawned, as the principles used there tend to be low
level enough to work on any linux system I've tried them on (though
the specific, explicit, instructions make assumptions about where
things are and such, of course).

http://www.linuxfromscratch.org/hints/downloads/files/initramfs.txt

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] rsync to a USB stick

2010-05-29 Thread Joshua Murphy
On Sat, May 29, 2010 at 5:39 AM, Steven apartment...@gmail.com wrote:


 On Sat, May 29, 2010 at 2:01 AM, Mick michaelkintz...@gmail.com wrote:

 Hi All,

 I run:

  rsync -a -l --delete -v /mnt/Business_dir /media/sdf1

 to back up a directory from a PC to a USB stick.  However, from a cursory
 look
 this *seems* to copy the complete directory (every time I run it) and
 overwrites the USB stick.  Carrying on like this it will life-expire the
 USB
 stick in no time, plus it takes ages to complete as it copies over every
 single file again and again.

 Is there a cleverer option I can add to rsync so that it only copies new
 files, overwrites older versions of the same and only deletes any files or
 directories that have been deleted from the source directory?
 --
 Regards,
 Mick

 Short answer man rsync
 You'll find everything you need.
 It is possible to sync files incrementally with rsync I just can't remember
 how right now
 Sorry really tired right now. Im sure someone will come a long with a more
 appropriate answer.


Notably...
--checksum
--recursive

And *not* using (due to the limitations of FAT and FAT32)...
--archive (implies several others)
--perms
--times
--group
--owner
--whole-file

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] in-memory database

2010-02-11 Thread Joshua Murphy
On Thu, Feb 11, 2010 at 1:45 PM, Helmut Jarausch
jarau...@igpm.rwth-aachen.de wrote:
 On 11 Feb, Hung Dang wrote:
 Hi all,

 I am looking for an open source in-memory database for data mining purpose.
 I have tried to look into /usr/portage/dev-db/ and have not found any
 in-memory package. Any suggestion?


 You might use dev-db/sqlite and put its files on a tmpfs directory.
 Helmut.

 --
 Helmut Jarausch

 Lehrstuhl fuer Numerische Mathematik
 RWTH - Aachen University
 D 52056 Aachen, Germany

Or, even, just use SQLite's support for in-memory databases... a
little about that's here:
http://www.sqlite.org/cvstrac/wiki?p=InMemoryDatabase

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] RAM installed vs reported

2010-01-04 Thread Joshua Murphy
2010/1/3 Thanasis thana...@asyr.hopto.org:
 on 01/04/2010 01:10 AM Krzysztof Halasa wrote the following:
 Thanasis thana...@asyr.hopto.org writes:


 Hmm..., but are EMBEDDED options suitable for a netbook like the A110L ?

 This EMBEDDED just means don't touch these unless you really know
 what you're doing.

 BTW I remember using VMSPLIT 2 GB : 2 GB on server-class machines,
 before they were upgraded to x86-64.

 Do you mean that I should try it? Is there any gain over using
 CONFIG_HIGHMEM4G ?

Likely nothing noticeable, but here's a bit of a good coverage of the topic:

http://kerneltrap.org/node/6067

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] All those helpful post emerge messages...

2009-12-30 Thread Joshua Murphy
On Wed, Dec 30, 2009 at 4:07 AM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 On Mittwoch 30 Dezember 2009, Jon Hardcastle wrote:
 Guys,

 I have just done an emerge -eva system and it has
  installed/reinstalled/upgraded ~102 packages. When it finished i noticed
  some of them had some helpful YOU MUST DO THIS steps and i am wondering do
  they all have those or does emerge cleverly put all the messages at the
  end where they can be seen and digested?


 emerge elogv
 read /usr/share/portage/config/make.conf.example and learn how to set up elog.
 no message is lost ever again.

 but if haven't done it already, you are out of luck.

Not necessarily... at least on my netbook here (running ~x86), with a
very minimal make.conf and not a single line in it regarding elog, I
have

/var/log/portage/elog/summary.log

... which just so happens to have every important emerge generated
message since 2009-10-09 (which I believe was my original start to
this one's build.)

So... I do believe it might be default behavior now to keep, at the
least, a summary log of everything.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: dd - bytes at a time

2009-12-20 Thread Joshua Murphy
On Sat, Dec 19, 2009 at 10:15 AM, Neil Bothwick n...@digimed.co.uk wrote:
 On Sat, 19 Dec 2009 12:11:27 +, Stroller wrote:

  Incidentally, if you want to use dd, adding bs=4096 speeds it up quite
  significantly.

 Thank you. I have always wondered what the optimal bs might be.
 And why - could you possibly explain that, please?

 Is bs=4096 best for all disk-based operations?

 Many filesystems are set up with 4K blocks, so matching this with dd is
 more efficient. The default is 512 byte blocks and anything larger
 than this is good, I sometimes use 40960 but that isn't significantly
 faster. I prefer to avoid using dd on hard disks altogether, it's just
 so damn slow for large amounts of data.


 --
 Neil Bothwick

 You can't teach a new mouse old clicks.


My *completely uneducated* guess would be that, for a raw disk level
copy (on a normal spinning disk) or write a bs that is *at the least*
divisible into the drive's cache size, and at best *is* the drive's
cache size, would be best. For SSDs, if you have some strange reason
to need to use dd with one (I'd avoid it simply because a: you'll
never guarantee an overwrite of what's really there now and b: you'll
be put at least a small dent in the lifespan of the drive) the minimum
erase block size would be best, since that'd allow both a full erase
and a full write of a block, rather than risking 2 erases to get all
of one block written.

I do reiterate that this is all mere conjecture, and is based in my
likely flawed conceptual understanding of the drives.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] {OT} Preparing a laptop for sale

2009-12-18 Thread Joshua Murphy
On Fri, Dec 18, 2009 at 12:08 PM, Grant emailgr...@gmail.com wrote:
 dd if=/dev/zero of=/dev/sda (or what ever)

 After reading over all the info here, I think I'm going to go with dd
 since the data isn't too sensitive.

 I created a 9.1_Live_x64 USB key with unetbootin, but the laptop
 won't boot to it.  I have another 512MB USB key that it boots to just
 fine.  Could my 8GB key be non-bootable?  The laptop's CD drive isn't
 working so I need another way to install an easy copy of Linux after I
 dd.

  - Grant

I've dealt with many systems that flatly refuse to boot from *some*
usb keys but not from others.. and some even vary based on what's
being booted into on those usb keys.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] High load, idle CPU?

2009-12-18 Thread Joshua Murphy
On Fri, Dec 18, 2009 at 2:38 PM, Florian Philipp
li...@f_philipp.fastmail.net wrote:
 Hi list!

 My virtual server seems to have a problem and I don't know how to find it.

 Today, while trying to create a new postgresql database I noticed that
 certain system operations seem to take ages. Normal work on the shell
 works just fine but for example accessing the postgresql server through
 psql, restarting tomcat, postgresql or zope all show the very same behavior:
 Execution freezes, the load average climbs to 1-1.9 and after a few
 minutes (maybe longer) the task finishes correctly. During all this
 time, top reports that the CPUs are 100% idle.

 Other services, for example rsyncd or openvpn, work normally. I also
 tried restarting the VM. Shutdown took maybe 10 or 15 minutes. Booting
 was much faster with only a few minutes until all services were up and
 running. However, it didn't solve the problem.

 So, my question is: How can I find out what is causing this? Can I
 somehow trace it? Find out why a process waits?

 Keep in mind that this is a virtual server. I have no control over the
 kernel. Oh, and before you ask: The only recent update was rkhunter from
 1.2.9-r1 to 1.3.4-r2. I also enabled the chkrootkit weekly cronjob.

 Thanks in advance!
 Florian Philipp

Well... it'll cause a MASS of output to sift through .. but strace is
likely the most powerful tool for the job of simply seeing what a
process is calling and when (notably, what call is left waiting to
return as the whole process blocks). I'd also take a look at iotop,
though the fact that top shows the cpu as idle rather than sitting in
iowait makes me doubt that iotop would tell you too much.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Where is my /dev/fd0?

2009-12-17 Thread Joshua Murphy
On Thu, Dec 17, 2009 at 7:45 PM, Marcus Wanner marc...@cox.net wrote:
 On 12/17/2009 5:16 PM, Neil Bothwick wrote:

 On Thu, 17 Dec 2009 16:21:28 -0500, Marcus Wanner wrote:



 It's not IDE (IDE/ATAPI floppy support is for things like LS-120
 drives), but CONFIG_BLK_DEV_FD, found in Device Drivers -   Block
 devices -   Normal floppy disk support. If it's compiled as a module,
 maybe you just need to modprobe floppy?



 I looked at that path in the config, it turns out that it was disabled
 (by default! why?).


 For the same reason that support for punched card readers is disabled by
 default.


 But they're so useful...and the computer we got a year ago had one. Do
 things really go obsolete like that after decades of prevalence?

 Marcus

Yep... why deal with floppies when you can get a tiny little stick
that'll hold about 5688 times as much (8GB), read and write faster, is
more portable, and costs about $20 US on Newegg (without shopping
around even a little to find one on sale). Windows XP is the last big
reason I've dealt with floppy drives in the past 2/3 of a decade or so
now, and that's only because the only other option in getting screwy
chipset drivers at install time is to rebuild the install media
(nforce fake raid on Dell XPSes, more often than not).

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] {OT} Preparing a laptop for sale

2009-12-16 Thread Joshua Murphy
On Wed, Dec 16, 2009 at 6:36 PM, Dale rdalek1...@gmail.com wrote:
 Mick wrote:

 On Wednesday 16 December 2009 18:49:07 Grant wrote:


 I'm about to sell my old laptop and I'd like to wipe out the data and
 install any flavor of Linux via USB (the CD drive doesn't work any
 more).  I've got a bootable USB key that will get me into Gentoo.  How
 would you take it from there?  I'm looking for something quick and
 easy.  My data isn't too sensitive, but I'd like to do some type of
 wiping so it isn't all just sitting there with a deleted flag or
 however that works.


 First I'd mount the partitions and then emerge/use shred:

 # shred -v -n 25 -z -u /mnt/a_partition

 Then I would delete old partitions, create new partitions and format them
 as required.  If you're really paranoid about your data (which from what
 you're telling me you're not) you can also use dd to randomly overwrite
 partition tables, but I would probably not bother.

 Now, there may be more modern tools to do all this with a single button,
 but I haven't looked into it in any detail.

 HTH.


 Also note that shred, at least the last I read, doesn't work to well on some
 file systems.  I know this used to be true for reiserfs and some other
 journalized file systems.

 I'm thinking the dd thing may be the best way here.  I don't think it cares
 about file systems when it does its thing.

 Dale

 :-)  :-)


That is, of course, when shredding individual files, where the final
location and initial locations for them may not wind up being the same
place on disk. When 'shredding' a whole partition, though, the file
system itself ceases to matter, as it in itself is being overwritten
as well as all the data it provides a means of indexing for.

Incidentally, I believe the oft referenced here DBAN uses shred
internally, last I looked.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Can I (partially) rebuild a package with emerge?

2009-12-16 Thread Joshua Murphy
2009/12/16 Jesús Guerrero i92gu...@terra.es:
 On Wed, 16 Dec 2009 20:44:29 +, Alan Mackenzie a...@muc.de wrote:
 Hi, gentoo,

 I've just emerged xorg-x11, and noticed that I had a wrong setting for
 VIDEO_CARDS in /etc/make.conf.  Does emerge have a facility to rebuild
 only those portions of xorg-x11 dependent on that setting, or do I have
 to start again from scratch?  I've perused the emerge man page, but not
 found this situation addressed.

 What you failed to see if that VIDEO_CARDS flags are just an special type
 of USE flags. Using -auDvN world will fix everything. Truly speaking,
 xorg-server wouldn't even need to be recompiled (though that's what portage
 will do). As far as I know, all these special USE flags for xorg-server
 just push one of another xf86-video-* package(s) as dependencies, which in
 turn install the required driver(s).

 The rest of Xorg components do not relate to this, you shouldn't need to
 recompile anything else unless it also depends on VIDEO_CARDS (only several
 packages do, like DirectFB if I remember right).

 --
 Jesús Guerrero

Actually, as I ran across on my ~x86 systems, x11-base/xorg-drivers is
now a separate ebuild from
 xorg-server, keeping the latter from trying to be rebuilt every time
you change what drivers you want to have built... and looking at
gentoo-portage.com, xorg-drivers-1.6 is stable on both amd64 and x86.
It really is a much more sensible approach, and appears to work rather
well.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] gmonstart / jvregisterclasses in tons of binaries with commands,malware?

2009-12-16 Thread Joshua Murphy
On Wed, Dec 16, 2009 at 9:01 PM,
whereislibertyandjust...@safe-mail.net wrote:
 In linux binaries, in any linux distro, I've discovered the same strings
 which I believe may be due to a virus or trojan.

 Yet, clamav, rkhunter, chkrootkit do not detect abnormalities.

 Whether I run 'strings' on the binary files or view with vim or gedit, here
 is what is always seen inside the binaries:


 __gmon_start__

http://lists.debian.org/debian-arm/2001/03/msg00034.html

poi...@chicane /data/distfiles $ /lib/libc.so.6 --version
GNU C Library stable release version 2.9, by Roland McGrath et al.
snip

hmm... it could be an issue, I suppose... but given I'm on a version
of glibc far newer than the 2.1 to 2.2 transition that caused issues
regarding that relocation, according to the mail referenced above... I
think I'm safe, don't you? And... that's on my x86 *stable* system.

 _Jv_RegisterClasses


http://gcc.gnu.org/ml/gcc/2002-06/msg00112.html

 Followed by commands which differ within each binary.

 If, by some luck, I've downloaded a fresh Linux ISO where binaries do not
 include the above two strings followed by commands, after I run an update
 the updated binaries suddenly contain the above two strings and other, what
 I believe to be, rogue strings. I've avoided the possible infection with an
 OpenBSD install, yet all the Linux installations and burned ISOs contain
 binaries with the above two strings followed by commands.

 Search using find within your bin and sbin directories for those two strings
 and see how many positives you find. Now use a text editor like vi or gedit
 and search through the gibberish, locate these strings and isolate the
 commands, if any, which follow them. Searching for gmonstart, gmon,
 registerclasses, jv, etc. variations of works. If you find results in your
 binaries, please copy/paste the commands following the gmonstart and
 jvregisterclasses strings so I may compare them to mine.

 I've purchased Linux CDs from brick + mortar stores, downloaded ISOs from
 different physical locations and found some CDs contained these strings
 in the binaries and one or two rare ones did not, but when installed/updated
 on a network connection the binaries replaced in the update process would
 show these strings!! These strings are not alone by themselves in the
 binaries they follow with commands with a @ mark before each command.

 Google results are vague, some suggest shell backdoors, every Linux user
 I've asked to date calls me paranoid while at the same time this knowledge
 comes as a surprise to them, too, when they search their binaries and find
 the same strings. I'm amazed by how quickly some rush to judgement and call
 you a paranoid for being curious about the files on your system. The strings
 may/may not be common, but in comparing commands which follow these strings
 I've noticed some which seem down right malicious!

 Maybe they're right, I'm just paranoid, but what am I seeing and why
 are these strings so common across Linux distros binaries, esp. the
 Jv (java?) reference? Please, any help?


They're so common because they're binaries compiled with the same
compiler against the same libc implementation, for the most part, and
there will *always* be very similar strings resulting from BOTH of
those states across anything they've had a hand in. Yes, of course,
it's reasonable to be security concious, but both of the links I found
for those strings are first page on Google. There's also the confusing
fact that you look so heavily at the binaries while failing to take a
look at the things that would be sensible reasons for the same strings
between them... and grep is your friend if you're going to do any
sensible auditing...

you have...
1) Their own source code (may or may not have a reference)
2) Toolchain (and, really, it's the source code for these you'll want
to look through)
  2a) Compiler - gcc suite
  2b) Linker - ld from binutils
  2c) Assembler - Also binutils
3) Libraries - Anything *all* of them link to. ldd is an amazingly
handy tool...
  3a) libc.so.6 - glibc
  3b) linux-gate.so.1 - part of the the kernel (not a real file on the system)
  3c) /lib/ld-linux.so.2 - runtime component for the linker (which
would be ld from binutils)

And... when your own phrasing of things shows you don't even know
*what* these two strings you found *do* or are *really* related to...
cross posting to gentoo-security is really not necessary, though I
can't guarantee the actual security experts on that list would
agree... I get that feeling.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] {OT} Preparing a laptop for sale

2009-12-16 Thread Joshua Murphy
On Wed, Dec 16, 2009 at 9:49 PM, Dale rdalek1...@gmail.com wrote:
 Joshua Murphy wrote:
 That is, of course, when shredding individual files, where the final
 location and initial locations for them may not wind up being the same
 place on disk. When 'shredding' a whole partition, though, the file
 system itself ceases to matter, as it in itself is being overwritten
 as well as all the data it provides a means of indexing for.

 Incidentally, I believe the oft referenced here DBAN uses shred
 internally, last I looked.



 That makes sense.  So, the OP shouldn't mount the drives but shred the disk
 itself?

 Dale

 :-)  :-)

I'm not at all sure *how* running shred on a mount point, as is
mentioned in one of the responses, would really work... as I can't
imagine it would have direct access to the underlying filesystem, and
as it's pointed at, as far as it ought to care, a folder... I don't
think it would do much of anything... but since my curiosity's
piqued...

chicane ~ # dd if=/dev/zero of=tmp.img bs=1M count=20
20+0 records in
20+0 records out
20971520 bytes (21 MB) copied, 0.102701 s, 204 MB/s
chicane ~ # mkfs.ext3 tmp.img
mke2fs 1.41.9 (22-Aug-2009)
tmp.img is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
5136 inodes, 20480 blocks
1024 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=20971520
3 block groups
8192 blocks per group, 8192 fragments per group
1712 inodes per group
Superblock backups stored on blocks:
8193

Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 23 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
chicane ~ # mount -o loop tmp.img test/
chicane ~ # echo hello  test/test.txt
chicane ~ # shred test/
shred: test/: failed to open for writing: Is a directory
chicane ~ # shred -v -n 25 -z -u ~/test/
shred: /root/test/: failed to open for writing: Is a directory
chicane ~ # umount test
chicane ~ # shred -v -n 25 -z -u tmp.img
shred: tmp.img: pass 1/26 (random)...
shred: tmp.img: pass 2/26 (924924)...
shred: tmp.img: pass 3/26 (6db6db)...
shred: tmp.img: pass 4/26 (22)...
shred: tmp.img: pass 5/26 (55)...
shred: tmp.img: pass 6/26 (aa)...
shred: tmp.img: pass 7/26 (77)...
shred: tmp.img: pass 8/26 (db6db6)...
shred: tmp.img: pass 9/26 (dd)...
shred: tmp.img: pass 10/26 (11)...
shred: tmp.img: pass 11/26 (492492)...
shred: tmp.img: pass 12/26 (249249)...
shred: tmp.img: pass 13/26 (random)...
shred: tmp.img: pass 14/26 (88)...
shred: tmp.img: pass 15/26 (cc)...
shred: tmp.img: pass 16/26 (ee)...
shred: tmp.img: pass 17/26 (33)...
shred: tmp.img: pass 18/26 (44)...
shred: tmp.img: pass 19/26 (bb)...
shred: tmp.img: pass 20/26 (99)...
shred: tmp.img: pass 21/26 (00)...
shred: tmp.img: pass 22/26 (b6db6d)...
shred: tmp.img: pass 23/26 (ff)...
shred: tmp.img: pass 24/26 (66)...
shred: tmp.img: pass 25/26 (random)...
shred: tmp.img: pass 26/26 (00)...
shred: tmp.img: removing
shred: tmp.img: renamed to 000
shred: 000: renamed to 00
shred: 00: renamed to 0
shred: 0: renamed to 
shred: : renamed to 000
shred: 000: renamed to 00
shred: 00: renamed to 0
shred: tmp.img: removed

(note that for 'special files' like real block devices, it doesn't do
the rename/remove that it does for normal files)

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Broken upgrade from udev troubles.

2009-12-16 Thread Joshua Murphy
On Wed, Dec 16, 2009 at 10:07 PM, Tom Bennet twben...@gmail.com wrote:
 I spent the day recovering from a Gentoo upgrade, and thought I'd document
 the experience in case it helps someone else.

 I'm running a custom kernel 2.6.25-gentoo-r7 on amd64, though I don't think
 the rarer hardware is relevant.

 I tend to put off upgrading my Gentoo box because anytime I do, something
 breaks.  I'm afraid I haven't changed my opinion about that.  Anyway, I did
 emerge --update --deep world and plugged my ears. Some 600-odd packages
 (and a few simpler problems) later, the system seemed to be doing okay.  So
 I thought I'd see if it could survive a reboot.  No, it couldn't.

 On boot it failed checking the root file system and dropped into the repair
 shell.  The reason the fsck failed is that the root pseudo device file
 /dev/md0, didn't exist.  The root file system was actually, fine, though.
 Inside the repair shell, I could see all the files from my root, but there
 wasn't much in /dev.  (I have the md stuff compiled in to the kernel, and
 don't use an initrd, so it wasn't an initrd problem.)

 Short Solution

 The problem was with udev, the facility which automatically populates the
 /dev directory.  During the upgrade, emerge noted that my kernel version was
 a bit early, but acceptable.  What was missing, apparently, was the signalfd
 syscall, which that kernel version either doesn't have or I hadn't
 configured.  Apparently, udev has only started using signalfd recently, so
 the solution was to downgrade to an older version of udev (udev-141 to be
 precise).

 What I Actually Did To Get There

 Of course, I didn't know that at first.  Just had a fun unbootable system.
 I might have been able to simply emerge the downgrade from the repair shell
 (the network did come up), but I didn't know to try that yet.  I figured I
 wanted to find some way to make the system boot.  Since the failing file
 check is done from /etc/init.d/checkroot, I added a mknod command to create
 the device node before trying to run the file check.  At the start of the
 start() method:

     if [ ! -e /dev/md0 ] ; then
    mknod -m 0660 /dev/md0 b 9 0
     fi

 It's a hack, not a solution, but it did make the system boot, to a rather
 crippled state.  Since there were a lot of devices missing, a lot of
 services wouldn't start.  (If you're using a more boring root partition, it
 might be something like mknod -m 0660 /dev/sda1 b 8 1)

 So I had managed by now to gather that udev wasn't working, but I didn't
 know why.  My first thought was to try /etc/init.d/udev start, to see if
 it would start.  But it told me that the script is written for baselevel-2,
 and I shouldn't use it on baselevel-1.  Following a bit of googling about
 what the heck a baselevel is, I gathered that I was using baselevel-1, and
 so the service wasn't supposed to be started that way.   So it wasn't a bug
 that it wouldn't start that way.  Another page suggested trying to run it
 directly, with /sbin/udevd --daemon, which gave the message error getting
 signalfd.  That told my why it didn't start. This message was also in the
 logs, but for some reason I didn't look there until later.

 So back to Google, and I found a message on a Debian board noting that udev
 had started using signalfd recently.  This suggested an old version might do
 the trick.  I tried one, and it did.

I really only have two things to say, after reading this... First, and
this really does overshadow the second in weight, thank you for the
excellently presented writeup of problem *and* solution, as more often
than ever should be (less so here, but across the net as a whole),
problems are mentioned, solutions are offered, and rarely does a good,
clear, this worked follow. Secondly... it's been my experience, with
Gentoo, that things break far more often when I allow longer delays
between updating than when I keep up to date with everything, and it's
held true for me on both x86 and ~x86 systems (as has the headache
when I've put updates off).

And.. I reiterate a part of the first... Thank you for the writeup.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] building your own stage3?

2009-12-14 Thread Joshua Murphy
On Mon, Dec 14, 2009 at 12:35 AM, Keith Dart ke...@dartworks.biz wrote:
 Does anybody here know how a stage3 tarball is made? I'd like to mode
 one myself.

 -- Keith Dart

 --

 -- ~
   Keith Dart ke...@dartworks.biz
   public key: ID: 19017044
   http://www.dartworks.biz/
   =

Your own.. from scratch, or merely a packaging of the changes you tend
to make to the base stage3 when you start a build? From scratch, I
believe the tool you're looking for is called catalyst (see link [1]
below). Otherwise, all a stage3 is... in the long run... is a tarred
up copy of a system without anything mounted (no proc, dev, sys, etc).
A common thing many people tend to do is oft referred to as a 'stage4'
(link [2]), in which they merely make all their changes, install their
choice software, and then archive the whole pristine build before
going on with actual use of the system.

[1] http://www.gentoo.org/proj/en/releng/catalyst/
[2] http://en.gentoo-wiki.com/wiki/Custom_Stage4

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] X11 start breaks

2009-12-14 Thread Joshua Murphy
On Mon, Dec 14, 2009 at 10:29 AM, GerhardosG gerhard.goe...@allgaeu.org wrote:
 Hi ,

 My graphics-card is a GeForce 7600 GT

 X11 start breaks with this messages in /var/log/Xorg.0.log :


 (II) Initializing built-in extension DAMAGE
 (II) Initializing extension GLX
 (II) config/hal: Adding input device AT Translated Set 2 keyboard
 (II) LoadModule: evdev
 (II) Loading /usr/lib/xorg/modules/input//evdev_drv.so
 (II) Module evdev: vendor=X.Org Foundation
       compiled for 1.6.5, module version = 2.3.1
       Module class: X.Org XInput Driver
       ABI class: X.Org XInput driver, version 4.0
 (**) AT Translated Set 2 keyboard: always reports core events
 (**) AT Translated Set 2 keyboard: Device: /dev/input/event2
 (II) AT Translated Set 2 keyboard: Found keys
 (II) AT Translated Set 2 keyboard: Configuring as keyboard
 (II) XINPUT: Adding extended input device AT Translated Set 2 keyboard
 (type: KEYBOARD)
 (**) Option xkb_rules evdev
 (**) Option xkb_model evdev
 (**) Option xkb_layout us
 (II) config/hal: Adding input device Power Button
 (**) Power Button: always reports core events
 (**) Power Button: Device: /dev/input/event1
 (II) Power Button: Found keys
 (II) Power Button: Configuring as keyboard
 (II) XINPUT: Adding extended input device Power Button (type: KEYBOARD)
 (**) Option xkb_rules evdev
 (**) Option xkb_model evdev
 (**) Option xkb_layout us
 (II) config/hal: Adding input device Power Button
 (**) Power Button: always reports core events
 (**) Power Button: Device: /dev/input/event0
 (II) Power Button: Found keys
 (II) Power Button: Configuring as keyboard
 (II) XINPUT: Adding extended input device Power Button (type: KEYBOARD)
 (**) Option xkb_rules evdev
 (**) Option xkb_model evdev
 (**) Option xkb_layout us
 (II) Power Button: Close
 (II) UnloadModule: evdev
 (II) Power Button: Close
 (II) UnloadModule: evdev
 (II) AT Translated Set 2 keyboard: Close
 (II) UnloadModule: evdev



 tux ~ # lsmod

 Module                  Size  Used by
 test_nx                 1824  0
 psmouse                37980  0
 nvidia               9574140  0


 What is wrong ???

Firstly, error lines in the Xorg.0.log start with (EE). Secondly, most
aren't entirely meaningful without the context around them. With the
information we have in your mail here, none of us is likely to to
divine what the source of your issue is. Given the whole Xorg.0.log,
we might be able to see something, though.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] X11 start breaks

2009-12-14 Thread Joshua Murphy
On Mon, Dec 14, 2009 at 4:08 PM, GerhardosG gerhard.goe...@allgaeu.org wrote:
 Hi ,

 recompile the evdev driver solved the problem NOT.



 In the console, the output looks like this:




 tux / # startx

 xauth:  creating new authority file /root/.serverauth.3072

 X.Org X Server 1.6.5
 Release Date: 2009-10-11
 X Protocol Version 11, Revision 0
 Build Operating System: Linux 2.6.31-gentoo-r6 i686
 Current Operating System: Linux tux 2.6.31-gentoo-r6 #2 Mon Dec 14 21:40:46
 GMT 2009 i686
 Build Date: 12 December 2009  07:57:34PM

       Before reporting problems, check http://wiki.x.org
       to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
       (++) from command line, (!!) notice, (II) informational,
       (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: /var/log/Xorg.0.log, Time: Mon Dec 14 22:03:42 2009
 (==) Using config file: /etc/X11/xorg.conf

 (EE) Failed to load module type1 (module does not exist, 0)
 (EE) Failed to load module freetype (module does not exist, 0)
 (EE) Failed to load module dri (module does not exist, 0)
 (EE) Failed to load module dri2 (module does not exist, 0)
 expected keysym, got XF86TouchpadToggle: line 122 of inet
 expected keysym, got XF86TouchpadToggle: line 122 of inet
 expected keysym, got XF86TouchpadToggle: line 122 of inet
 expected keysym, got XF86TouchpadToggle: line 122 of inet
 /etc/X11/xinit/xinitrc: line 58: twm: command not found
 /etc/X11/xinit/xinitrc: line 59: xclock: command not found
 /etc/X11/xinit/xinitrc: line 60: xterm: command not found
 /etc/X11/xinit/xinitrc: line 61: xterm: command not found
 /etc/X11/xinit/xinitrc: line 62: exec: xterm: not found

 waiting for X server to shut down

 tux / #


Aha! The problem's found, now. The full Xorg.0.conf made me suspect
it, but that output makes me certain. What window manager or desktop
environment do you use? The quick and dirty resolution to your
problem, at least for the current user you're logged in as, is simply:

For Fluxbox (as a simple example that I know works... and only because
of the error you received am I assuming this file doesn't already
exist):
echo exec startfluxbox  ~/.xinitrc

And... many other redundant examples of the same principle.
Alternatively, its looking for twm and friends tells me that it's
trying to run the default from /etc/X11/xinit/xinitrc ... which means
you don't have a preferred session defined. While it *used* to be
defined in /etc/rc.conf is now 'properly' defined in /etc/env.d/, as
is discussed in this thread:

http://www.linux-archive.org/gentoo-user/294751-rc-conf-no-longer-used-gentoo-baselayout-1-12-13-a.html

That, of course, is why Mick asked about your use of /etc/rc.conf
around here somewhere.

Also, as an aside, to have X still work in such an instance (while
still not giving you the environment you want), don't build xinit with
the minimal use flag. Without that use flag, it depends on xterm, twm,
etc... which would then not be missing, and in turn would allow X to
start a client rather than closing back to the terminal, where it
looks like an X problem rather than a Session problem.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] X11 start breaks

2009-12-14 Thread Joshua Murphy
On Mon, Dec 14, 2009 at 3:28 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Monday 14 December 2009 20:25:25 GerhardosG wrote:
 Hi,

 My graphics-card is a GeForce 7600 GT


 tux ~ # lsmod

 Module                  Size  Used by
 test_nx                 1824  0
 psmouse               1980  0
 nvidia               9574140  0



 X11 start breaks with this messages in /var/log/Xorg.0.log :

 X.Org X Server 1.6.5
 Release Date: 2009-10-11
 X Protocol Version 11, Revision 0
 Build Operating System: Linux 2.6.31-gentoo-r6 i686
 Current Operating System: Linux tux 2.6.31-gentoo-r6 #1 Fri Dec 11
 15:05:30 GMT 2009 i686
 Build Date: 12 December 2009  07:57:34PM

         Before reporting problems, check http://wiki.x.org
         to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: /var/log/Xorg.0.log, Time: Mon Dec 14 10:19:46 2009
 (==) Using config file: /etc/X11/xorg.conf
 (==) ServerLayout Main Layout
 (**) |--Screen Screen MGA1 (0)
 (**) |   |--Monitor Generic Monitor
 (==) No device specified for screen Screen MGA1.
         Using the first device section listed.
 (**) |   |--Device nVidia GeForce
 (**) |--Screen Screen MGA2 (1)
 (**) |   |--Monitor Generic Monitor
 (==) No device specified for screen Screen MGA2.
         Using the first device section listed.
 (**) |   |--Device nVidia GeForce
 (**) |--Input Device Mouse1
 (**) |--Input Device Mouse2
 (**) |--Input Device Keyboard1
 (**) Option BlankTime 10
 (**) Option StandbyTime 20
 (**) Option SuspendTime 30
 (**) Option OffTime 60
 (==) Automatically adding devices
 (==) Automatically enabling devices
 (WW) The directory /usr/share/fonts/local does not exist.
         Entry deleted from font path.
 (WW) The directory /usr/share/fonts/misc does not exist.
         Entry deleted from font path.
 (WW) The directory /usr/share/fonts/Type1 does not exist.
         Entry deleted from font path.
 (WW) The directory /usr/share/fonts/TTF does not exist.
         Entry deleted from font path.
 (WW) The directory /usr/share/fonts/75dpi does not exist.
         Entry deleted from font path.
 (WW) The directory /usr/share/fonts/100dpi does not exist.
         Entry deleted from font path.
 (WW) The directory /usr/share/fonts/misc/ does not exist.
         Entry deleted from font path.
 (WW) The directory /usr/share/fonts/TTF/ does not exist.
         Entry deleted from font path.
 (WW) The directory /usr/share/fonts/OTF does not exist.
         Entry deleted from font path.
 (WW) The directory /usr/share/fonts/Type1/ does not exist.
         Entry deleted from font path.
 (WW) The directory /usr/share/fonts/100dpi/ does not exist.
         Entry deleted from font path.
 (WW) The directory /usr/share/fonts/75dpi/ does not exist.
         Entry deleted from font path.
 (**) FontPath set to:

 (==) ModulePath set to /usr/lib/xorg/modules
 (WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or
 'vmmouse' will be disabled.
 (WW) Disabling Mouse1
 (WW) Disabling Mouse2
 (WW) Disabling Keyboard1

 Ah, yes.

 What we have here boys and girls is the old I tell Xorg I don't have a
 keyboard or a pointing device and yet I still expect Xorg to function
 correctly trick 

 Please post xorg.conf



 --
 alan dot mckinnon at gmail dot com

Actually, I believe all those disabling messages are just X shutting
down... he gave the error messages he gets at the terminal in another
mail here, which show that he's failing to start any clients (gmail
didn't thread that one in with this line here for me, and likely
missed it on your end too).

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] emerge is loosing memory?

2009-12-13 Thread Joshua Murphy
On Sun, Dec 13, 2009 at 9:30 AM,  meino.cra...@gmx.de wrote:
 Volker Armin Hemmann volkerar...@googlemail.com [09-12-13 15:24]:
 On Sonntag 13 Dezember 2009, meino.cra...@gmx.de wrote:
  Volker Armin Hemmann volkerar...@googlemail.com [09-12-13 14:28]:
   On Sonntag 13 Dezember 2009, meino.cra...@gmx.de wrote:
Volker Armin Hemmann volkerar...@googlemail.com [09-12-13 13:40]:
 On Sonntag 13 Dezember 2009, meino.cra...@gmx.de wrote:
  Hi,
 
  it seems, something has screwed up my system.
 
  The symptoms are: Updateing a certain package with emerge (which
  successfully compile and install that package) has no effect.
  Next time exactly the same package is reported again as to be
  updated.
 
  And qsearch reports that my metadatabase has gone with the wind
  and I have to do a 'w -m' as root, which helps for that moment,
  but next it is again not present. I think (read:dont know for sure)
  that the
      eix-sync  emerge -pv --verbose --update --deep world
  has killed it.
 
  Unfortunately I am not that deeply involved in the internal
  data handling of the gentoo package manager to have an idea
  what is going wrong here.
 
  What can I do to fix this problem ?
 
  Kind regards and have a nice weekend!
  mcc

 fsck your partition containing /var.
   
Hi,
   
as soon I do the command sequence described above, qsearch fails with
   
   
opening '/usr/portage/metadata/cache/.metadata.x' failed: Permission
denied search: initialize_flat(): You should run this command as root:
q -m
   
and an
   
    sudo ls /usr/portage/metadata/cache/.metadata.x
   
fails with
   
    ls: cannot access /usr/portage/metadata/cache/.metadata.x: No such
file or directory
   
There is no symlink to /var and subfolders as far as I can see...
   
What part/file is on /var/... which gets corrupted in case of an
filesystem damage ?
  
   how long are you using linux?
 
  15 years ... but what does this matter?
 

 then you should know where /var is. or /usr/portage.

 fsck /var, fsck the partition containing /usr/portage


 ...and you read posting more carefully: I wrote part not part. ...

 --
 Please don't send me any Word- or Powerpoint-Attachments
 unless it's absolutely neccessary. - Send simply Text.
 See http://www.gnu.org/philosophy/no-word-attachments.html
 In a world without fences and walls nobody needs gates and windows.

/var/db/pkg
/var/lib/portage

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: went from x86 to ~x86: no more X11

2009-12-12 Thread Joshua Murphy
On Sat, Dec 12, 2009 at 8:21 AM, Stefan G. Weichinger li...@xunil.at wrote:
 Am 11.12.2009 19:15, schrieb Joshua Murphy:

 I am now trying to use your solution, I just have to find a way to make
 it work with my pam_mount-based setup. Working on it ;-)

 Hmm... that'd certainly complicate it... since mine bypasses any auth
 of the user ;)

 Played around with it, then decided to turn it off again.
 Shut down the system yesterday.

 Now I booted up again, expecting the same problems to persist and you
 know what? gdm showed up OK for the first time since I went to ~x86.
 Logged in and everything works OK as it did back then with stable x86.

 I don't *know* what the problem was (or is?) but it works for now. The
 only tiny issue is that the battery-applet of gnome doesn't use the
 correct icon ... but that doesn't matter much to me now.

 Thanks for your suggestions anyway,
 Stefan

Anytime, and glad to hear that you're back up and working happily again! :)

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: went from x86 to ~x86: no more X11

2009-12-11 Thread Joshua Murphy
On Fri, Dec 11, 2009 at 11:55 AM, Stefan G. Weichinger li...@xunil.at wrote:
 Am 10.12.2009 05:41, schrieb Joshua Murphy:

 Respawns on close/crash... doesn't allow attempts to start more than
 once (hence the 'lockfile' type hack in the script), doesn't break on
 a stale lockfile, and does whatever the user ('myuser' should be
 replaced with a real username) wishes in terms of WM/desktop by way of
 the user's ~/.xinitrc ... and all without ever asking me for a user
 password.

 I am now trying to use your solution, I just have to find a way to make
 it work with my pam_mount-based setup. Working on it ;-)

 thanks, S

Hmm... that'd certainly complicate it... since mine bypasses any auth
of the user ;)

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: went from x86 to ~x86: no more X11

2009-12-10 Thread Joshua Murphy
On Thu, Dec 10, 2009 at 3:32 AM, Stefan G. Weichinger li...@xunil.at wrote:
 Am 10.12.2009 05:41, schrieb Joshua Murphy:

 # auto_start_x.sh

 Thanks for that! I will maybe set that up but shouldn't gdm work as
 well? I mean it doesn't crash for *all* ~x86-users, correct?

 ;-) Stefan

I'd expect it to be a lot noisier around here if it did ... but beyond
that, I dunno... I don't use it!

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Problems setting up sshd on an installation kernel

2009-12-10 Thread Joshua Murphy
On Thu, Dec 10, 2009 at 10:27 AM, Willie Wong ww...@math.princeton.edu wrote:
 On Thu, Dec 10, 2009 at 10:36:41AM +, Penguin Lover Alan Mackenzie 
 squawked:
 How did this breakage happen?  I would guess that at the time the
 installation procedure was devised, this line

     # mount -o bind /dev /mnt/gentoo/dev

 worked perfectly OK, since /dev didn't have any subdirectories.  Some
 time recently, /dev acquired subdirectories (e.g. /dev/pts), but nobody
 realised this would render the chrooted system less capable.

 Just to be pedantic.

 Not subdirectories. 'mount --bind' binds the directory tree. What /dev
 picked up was submounts, which is why you issued 'mount --rbind' as a
 workaround. (The mount manpage I think has something about devpts.)

 I wonder if 'mount -t devpts devpts /dev/pts' is a better workaround
 for your problem, though.

 Cheers,

 W

 --
 M: Hot almond milk. Best stuff on earth.
 Sortir en Pantoufles: up 1098 days, 14:03

That one only works if the kernel of your install disk is configured
to allow multiple instances of devpts to be mounted
(CONFIG_DEVPTS_MULTIPLE_INSTANCES) ... I'm in no way certain if that's
enabled on the Gentoo generated livecds, currently.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] problem with install-x86-minimal-20091103

2009-12-10 Thread Joshua Murphy
On Thu, Dec 10, 2009 at 3:05 PM, Valmor de Almeida val.gen...@gmail.com wrote:


 On Thu, Dec 10, 2009 at 12:02 AM, Stroller strol...@stellar.eclipse.co.uk
 wrote:

 On 10 Dec 2009, at 03:07, Valmor de Almeida wrote:

 ...

 I just burned the install-x86-minimal-20091103 iso on a cd and tried to
 boot a relatively old machine with it.

 Here is where it stops

 ...

 Have you tried SystemRescueCD?
 http://www.sysresccd.org/Download

 Thanks; never tried; always used the gentoo minimal

 Also, somewhere at the top of the screen output during the boot process it
 says this is a LiveCD? I am confused here. Wasn't the minimal iso not Live
 in the past?

 I think this may depend upon your definition of a LiveCD. To me it is an
 operating system which boots from CD  which requires no hard-drive.
 Stroller.


 Right. I meant the Live version that comes with a X Window login manager,
 etc.

 Thanks,

 --
 Valmor


One note about sysresccd, while I do nearly all of my installs from it
(working from a likely out of date copy, so unsure how much this still
applies) anymore, I've run across a small issue between its use of zsh
and emerging some packages. Most recently, it bit me while getting one
of the dependencies to nfs-progs built so my new system would be able
to get to my portage tree share on its own after the reboot. This bug
(closed as RESOLVED - INVALID, since it's not actually a bug with
Gentoo in the eyes of the Devs):
http://bugs.gentoo.org/show_bug.cgi?id=271942  details it further and
gives a couple options on fixing it, should you run into it at all.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: went from x86 to ~x86: no more X11

2009-12-09 Thread Joshua Murphy
On Wed, Dec 9, 2009 at 11:22 AM, Stefan G. Weichinger li...@xunil.at wrote:
 Am 09.12.2009 16:31, schrieb walt:

 So it seems more gdm/gnome-related to me, right?

 That would be my guess.  I don't use gdm so I don't know how to fix it.
 I use startx with exec /etc/X11/Sessions/gnome in my ~/.xinitrc. You
 could try that to see if gnome starts correctly.

 Yep, that works!

 So I could see how to always start X via startx or research where gdm
 fails. Thanks for helping me this step further ...

 S

Well, on my netbook, where I have to give a passphrase to access the
encrypted root anyhow (and am, therefore, not terribly interested in
typing yet more passwords moments later), I have this...

in /etc/inittab:
...
c6:2345:respawn:/sbin/agetty 38400 tty6 linux
c7:345:respawn:/usr/sbin/auto_start_x.sh
...

and /usr/sbin/auto_start_x.sh:
#!/bin/bash
ASXFILE=/var/run/asx.pid
if [ ! -r /etc/nologin ] ; then
  if [ -f $ASXFILE ] ; then
XPID=`head -1 $ASXFILE`
if NAME=`ps -p $XPID -o command=` ; then
  OLDNAME=`tail -1 $ASXFILE`
  if [ $NAME == $OLDNAME ] ; then
sleep 5
exit 1
  else
rm -f $ASXFILE /dev/null
  fi
else
  rm -f $ASXFILE /dev/null
fi
  fi

  /bin/su myuser -l -c startx /dev/null 21 
  XPID=$!
  NAME=`ps -p $XPID -o command=`
  echo $XPID  $ASXFILE
  echo $NAME  $ASXFILE
  wait $XPID
  exit $?
fi
# ** End auto_start_x.sh


Respawns on close/crash... doesn't allow attempts to start more than
once (hence the 'lockfile' type hack in the script), doesn't break on
a stale lockfile, and does whatever the user ('myuser' should be
replaced with a real username) wishes in terms of WM/desktop by way of
the user's ~/.xinitrc ... and all without ever asking me for a user
password.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] went from x86 to ~x86: no more X11

2009-12-08 Thread Joshua Murphy
On Tue, Dec 8, 2009 at 2:26 PM, Stefan G. Weichinger li...@xunil.at wrote:

 Greets, gentoo-users,

 I wanted to go to full ~x86 on my thinkpad these days, so I started with
 an emerge -avu system and after a successful reboot I did emerge
 -avuDN world.

 X11 didn't come up anymore ... I even tried a emerge -e world, just to
 get it right but still no luck.

 See my Xorg.0.log: http://dpaste.com/130873/

 I regenerated xorg.conf by running nvidia-xconfig, I removed xorg.conf
 for a test (leads to a segfault!) ... I for sure rebuilt all my
 xf86-drivers. No luck so far.

 Any idea on what to try? That RECORD-extension topic seems to just be a
 warning, correct?

 Thanks, Stefan

Looking at that log, my first question is... does your thinkpad run
1680x1050? The RECORD disable shouldn't make a difference on X
actually loading, based on the message it gives, and the (EE) lines
about dri/dri2 shouldn't be an issue with nvidia drivers if I recall
(my box with an nvidia card's down at the moment, and it's on a
slightly older version of X and nvidia drivers, old hardware as it
is). Also, is this with or without hal  dbus? newest few versions of
X were finicky with me about running -hal, but work fine with +hal (as
long as hal is running as well).

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Problems setting up sshd on an installation kernel

2009-12-06 Thread Joshua Murphy
On Sun, Dec 6, 2009 at 11:59 AM, Florian Philipp
li...@f_philipp.fastmail.net wrote:
 Alan Mackenzie schrieb:
 Hi, folks!

 I'm trying to get sshd working on an embryonic Gentoo installation on my
 laptop.  The reason is that I want to ssh from my nice comfy desktop
 system into this laptop to do the rest of the installation stuff.

 The installation kernel with which I'm having problems is:
 Linux livecd 2.6.30-gentoo-r8 #1 SMP Tue Nov 3 11:40:51 UTC 2009.

 Having started sshd on my laptop, when I do

     ssh -lroot 192.168.2.101

 from my desktop, I get prompted for my ssh key's pass phrase, which I
 enter.  Thereafter, nothing happens, and it continues to happen for a
 long, long time.

 [...]

 Clearly openpty (a C function) is failing to find some file.  Don't you
 just love error messages like No such file or directory which forget
 to identify the filename?  I'm guessing that the file it can't find is
 the device file for the new pty.

 Is there anything I can do to get sshd working from this kernel (and if
 so, what?), or is there something fundamentally wrong with the kernel
 configuration?


 Where did you start sshd, in the chrooted environment or on the live cd
 itself?

My first thought as well... I'd guess, just at a glance, that sshd was
started in the chroot, and that /mnt/gentoo/dev/ is bind mounted
properly, but /mnt/gentoo/dev/pts/ isn't.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Problems setting up sshd on an installation kernel

2009-12-06 Thread Joshua Murphy
On Sun, Dec 6, 2009 at 1:36 PM, Walter Dnes waltd...@waltdnes.org wrote:
 On Sun, Dec 06, 2009 at 02:48:36PM +, Alan Mackenzie wrote
 Hi, folks!

 I'm trying to get sshd working on an embryonic Gentoo installation on my
 laptop.  The reason is that I want to ssh from my nice comfy desktop
 system into this laptop to do the rest of the installation stuff.

 The installation kernel with which I'm having problems is:
 Linux livecd 2.6.30-gentoo-r8 #1 SMP Tue Nov 3 11:40:51 UTC 2009.

 Having started sshd on my laptop, when I do

     ssh -lroot 192.168.2.101

 from my desktop, I get prompted for my ssh key's pass phrase, which I
 enter.  Thereafter, nothing happens, and it continues to happen for a
 long, long time.

  Has your install gotten to the stage where you can chroot and emerge
 and unmerge.  If so, I would suggest the following...
  1) unmerge pam.  *DO NOT LOGOUT OR REBOOT*
  2) put the line
 sys-libs/pam
     in /etc/portage/package.mask Create the file if it doesn't exist.
  3) emerge shadow *BEFORE YOU LOG OUT OR REBOOT*.

  Pam is an extra-high-security option that makes sense on a public
 server with lots of people being able to log in.  On a personal laptop
 it is overkill.  There was a comedy album once that was called...
 Everything You Know Is Wrong.  That describes Pam.  The security
 settings for various services are in totally different files and
 locations than normal.

  Are you still booting from the install CD? The way you are running
 sshd is not how the install manual suggests to do it.  The webpage...
 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1chap=2
 shows that you can pass the kernel options...

 dosshd passwd=temppassword

 at bootup, where temppassword is a temporary password.  This allows
 you to log in by typing the temporary password.

 --
 Walter Dnes waltd...@waltdnes.org

None of which would affect (failing) pty allocation... while I share
the disdain for PAM, it doesn't likely do a whole lot to fix the
problem at hand.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] python-updater failure

2009-12-06 Thread Joshua Murphy
On Sun, Dec 6, 2009 at 10:49 PM, Michael P. Soulier
msoul...@digitaltorque.ca wrote:
 So I ran a big emerge --update world and it picked up Python 2.6 from 2.5.
 It'd be nice if python-updater ran automatically when this happens but it
 doesn't, but gcompris failing to build was a nice reminder that it needed to
 be done.

 So I ran it...

 msoul...@anton:~$ sudo python-updater
 Password:
  * Starting Python Updater from 2.5 to 2.6 :
  *   Adding to list: =net-p2p/bittorrent-5.0.9-r1
  *   Adding to list: =app-admin/webapp-config-1.50.16-r1
  *   Adding to list: =dev-util/scons-1.2.0-r1
  *   Adding to list: =sys-libs/cracklib-2.8.13
  *   Adding to list: =gnome-extra/libgsf-1.14.11
  *   Adding to list: =media-libs/mutagen-1.15
  *   Adding to list: =media-libs/lcms-1.18-r1
  *   Adding to list: =media-libs/pdflib-7.0.2_p8
  *   Adding to list: =dev-libs/boost-1.35.0-r2
  *   Adding to list: =dev-libs/libxslt-1.1.24-r1
  *   Adding to list: =dev-libs/libgamin-0.1.10-r2
  *   Adding to list: =dev-python/numeric-24.2-r6
  *   Adding to list: =dev-python/lxml-2.2.1
  *   Adding to list: =dev-python/cython-0.11.2
  *   Adding to list: =dev-python/numpy-1.2.1
  *   Adding to list: =dev-python/pygobject-2.16.1
  *   Adding to list: =dev-python/pycairo-1.8.2
  *   Adding to list: =dev-python/gnuplot-py-1.8
  *   Adding to list: =dev-python/twisted-web-8.1.0
  *   Adding to list: =dev-python/pycrypto-2.0.1-r8
  *   Adding to list: =dev-python/pyopenssl-0.9
  *   Adding to list: =dev-python/pyopengl-3.0.0
  *   Adding to list: =dev-python/dnspython-1.6.0
  *   Adding to list: =dev-python/twisted-8.1.0
  *   Adding to list: =dev-python/pyxml-0.8.4-r1
  *   Adding to list: =dev-python/wxpython-2.6.4.0-r2
  *   Adding to list: =x11-libs/vte-0.17.4-r3
  *   Adding to list: =net-zope/zope-interface-3.5.1
  *   Adding to list: =app-portage/layman-1.2.3
  *   Adding to list: =dev-java/java-config-1.3.7-r1

 These are the packages that would be merged, in order:

 Calculating dependencies... done!

 emerge: there are no ebuilds to satisfy =dev-python/lxml-2.2.1.

 Umm... now what?

 Mike
 --
 Michael P. Soulier msoul...@digitaltorque.ca
 Any intelligent fool can make things bigger and more complex... It takes a
 touch of genius - and a lot of courage to move in the opposite direction.
 --Albert Einstein


umm, well, I've not synced too awefully recently on the box I have
handy, but I'm seeing these two ebuilds for lxml:

lxml-2.2.2.ebuild  lxml-2.2.3.ebuild

I'd guess, offhand, that you should install a newer version, since the
one it's looking for (likely due to that being the already installed
version) doesn't appear to exist in the tree anymore.

Also, if you run into errors actually installing any of that list
there, take a glance at http://bugs.gentoo.org/230205 ... down in the
comments there's mention of needing to prod eselect to fix things.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: Baffled by Perl dependancies

2009-12-05 Thread Joshua Murphy
On Sat, Dec 5, 2009 at 9:16 PM, daid kahl daid...@gmail.com wrote:
 On 12/4/2009 10:21 PM, Dale wrote:

 Thanks goodness for Konsole and being able to scroll up.

 Where I come from, we use  | less :p

 Meh, just  into /tmp and use anything you want to view it if you
 really want to be hardcore.

 Less is really crappy for emerges at console-login.  It requires you
 to hold down the page-down button pretty much (unless there is some
 option I don't know about?  Does captial G do it like in vi?)  I also
 don't like that less makes my colors disappear.  Sure, it's not really
 important, but I mostly say this so someone can tell me I'm wrong and
 how to fix it.

In less, pressing F will put it in follow mode, to act like tail.
Not sure how that'd work for monitoring emerges and such on the fly
(never really used that feature, just know of it), but less is, in
general, very handy for sifting through emerge --pretend.

emerge --color y ... will override disabling color when the output
isn't a tty (which is the default because it doesn't know whether
you're piping to something that can handle the color codes or not).

 This matters sometimes if I'm doing work at console to unbreak my
 system and I'm getting an emerge error (not the colors, but the lack
 of auto-refresh or tailing).

Color's sometimes helpful too, since it provides added visual queues
so you can process what you're looking at just a hair faster ;)

 Regards,
 daid

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: Sound card is only usable by one application at a time

2009-12-04 Thread Joshua Murphy
On Fri, Dec 4, 2009 at 4:43 PM, walt w41...@gmail.com wrote:
 On 12/03/2009 09:08 PM, Joshua Murphy wrote:
 ...

 Lately, I've had zero issues with alsa pretty much configuring itself
 properly, given I'm using the in kernel alsa drivers for my systems...
 and it hasn't required any manual configuration of dmix or similar to
 function properly. Last time I used a separate sound daemon (aside
 from a short stent with Ubuntu on my netbook that, I think, had me
 using pulseaudio), I was running esound to manage audio from a
 headless box over my network... and ESD was playing nicely with other
 straight alsa apps on the same box...

 I discovered a few weeks ago that I could completely delete all traces
 of arts, pulse, *and* esd, and still I can listen to a podcast from
 npr.org with firefox and play an mp3 using audacious at the same time.
 (Which drives me totally nuts, BTW, and I did it only as a test.)

 As you say, alsa seems to DTRT by itself these days.  The only thing
 I'm not sure about is whether the gnome-panel volume/mixer applet is
 now doing what esound used to do.

 If you still have esound installed you can try it yourself.  Just
 remove the arts, esd, and pulse USE flags first, then remove any/all
 of those packages from the machine and revdep-rebuild.  It's amazing
 how many packages are linked against esound and AFAICT they no longer
 need to be.  (This applies to gnome, of course.)

 OTOH, I haven't tested every sound-related app on my machine, so I
 might be missing some important exceptions.

All Gnome's volume/mixer applet does, AFAIK, is the same as alsamixer,
on a less cli/ncurses interface... just volume control for the
channels the card tells the driver to tell the alsa subsystem it has
;) ... it doesn't have anything more, really, to do with the actual
'mixing' than that, and it works just as well without it, as evidenced
by my netbook with ratpoison, no arts, esd, pulseaudio, etc...
listening to a radio stream on one aterm that's running mplayer
(outputting to bare alsa) and getting prompt and proper alerts from
Skype at the same time.

'Course, all the anecdotal evidence in the world won't make the
problem the OP is seeing.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Valve Steam on gentoo

2009-12-03 Thread Joshua Murphy
On Thu, Dec 3, 2009 at 9:25 AM, Kirill Lipatov kirilllipa...@gmail.com wrote:
 I do have an NVIDIA card. Moreover, I have the very same version of wine on
 Ubuntu and all of the games are running with no problem. It is only on
 gentoo, where I have this problem.

 Kirill


That makes me wonder a bit... you might see if you can't compare the
configuration you have for wine on both to see that they're the same,
and the use flags you have on gentoo compared to the compile time
options ubuntu used... but I'm not sure where to track those down.

Beyond that... any errors on a terminal when the games fail to load?
You might look into the WINEDEBUG variable to get a little more detail
on what's happening, but just running winecfg for a few seconds with
WINEDEBUG=all gives me about 45MB of output.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Re: Sound card is only usable by one application at a time

2009-12-03 Thread Joshua Murphy
On Thu, Dec 3, 2009 at 8:12 PM, walt w41...@gmail.com wrote:
 On 12/03/2009 01:23 PM, Yoav Luft wrote:

 Hi,
 On my dell Vostro 1520, with intel hda ICH9 82801I sound card
 (xSTAC92HD71B3, according to /proc/asound/card0/codec), only one
 application can access the sound card at a time...

 I hope Nikos's suggestion will help you, but just in case it doesn't:

 Most people don't have any need for more than one application to use
 the sound card at the same time.  Do you have a special purpose in
 mind, such as mixing multiple sound tracks, professional-quality
 sound editing, film editing with special sound effects, or something
 similar?

 If you do, then you will be one of the very few people who actually
 needs to use pulseaudio, because it will allow multiple applications
 to use one sound card at the same time.  That is the purpose of
 pulseaudio.  But, as I said, very few people really need it.

 Can you explain more about what you are trying to do?

I'm not the OP, but it's been my experience that, when things aren't
configured to handle multiple processes using audio, you can't even
pause a movie in, say, mplayer to check out the youtube video a friend
just pointed you towards... which nowadays, is far from an uncommon
thing for a person to expect their computer to handle.

Lately, I've had zero issues with alsa pretty much configuring itself
properly, given I'm using the in kernel alsa drivers for my systems...
and it hasn't required any manual configuration of dmix or similar to
function properly. Last time I used a separate sound daemon (aside
from a short stent with Ubuntu on my netbook that, I think, had me
using pulseaudio), I was running esound to manage audio from a
headless box over my network... and ESD was playing nicely with other
straight alsa apps on the same box.

As a bit of a tip to the OP, since I'm going on about it all working,
while for them it isn't... 1) make sure you're using the alsa drivers
for your card and not oss (checking lspci -k) and 2) enable oss
emulation in the kernel (makes even OLD oss based software work
without much argument, in my experience).

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] tunneling or redirect attack?

2009-12-01 Thread Joshua Murphy
On Tue, Dec 1, 2009 at 2:53 PM, laurent laur...@logiquefloue.org wrote:
 Helmut Jarausch a écrit :

 On  1 Dec, laurent wrote:


 Hi,

 Is it a common thing, or really easy to do,  to redirect the content from
 a server to another one?

 Like launching an lil app telling the port to listen and then get all
 data travelling there??



 You might consider ssh tunneling

 google for these 2 words, e.g. you get

 http://www.revsys.com/writings/quicktips/ssh-tunnel.html
 https://calomel.org/firefox_ssh_proxy.html
 http://members.shaw.ca/nicholas.fong/vnc/

 and many more.

 Helmut.



 So it means I could always connect to internet through my remote server.
 Anywhere I am on this planet I connect to my server and it/he get the
 content for me.
 Kinda sweet.
 Does it mean it could balance/regulate and augmente my bandwith power for my
 workstation?

 Laurent

Well, if you mean always connect to internet through your remote
server in terms of bypassing a firewall or silent proxy, possibly but
not guaranteed (and likely against whatever agreement you have that
put you in a position to be behind that firewall or proxy anyhow). To
use it for that purpose, you would have to be able to, at the least,
get to your remote server... which is just somewhere else on the
internet itself.

As for augmenting bandwidth for your local system, using the remote
one... not really, no. Whatever link you use to get to the remote
server is likely to be the same you're going to use to get to anywhere
else on the internet, and it's that last link that tends to be the
most limiting factor on speed. I have, however, used a slow link to
connect to a system I had on a faster link somewhere, downloaded the
files I wanted on that system, then pulled them off onto a usb drive
when I was physically with that system the next time... but trying to
pull from that system to where I was controlling it from would have
been the same as, if not slower than, pulling those files directly
from the original source.

So an all around yes, but no, answer ;)

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] fsck won't work if ac cord not attached?!

2009-12-01 Thread Joshua Murphy
On Tue, Dec 1, 2009 at 6:18 PM, Maxim Wexler maxim.wex...@gmail.com wrote:
 We just want to help you -- that's what the police say before they tase your 
 ass

 On 12/1/09, Maxim Wexler maxim.wex...@gmail.com wrote:
 meh, you got nothing

 On 12/1/09, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Tuesday 01 December 2009 22:19:24 Neil Bothwick wrote:
 On Tue, 1 Dec 2009 11:57:58 -0700, Maxim Wexler wrote:
  Fine, then read what I say and, until you know better, believe it.

 OK, you're right, everyone else is wrong and there's no point in any of
 us trying to help you.


 Wise Chinese man say: young tempestuous fellow need to bang head on rock
 many
 more time before lesson be learned. Allow young man to bang head,
 obviously
 he
 like. Maybe he get head rush?

 One day he'll realise that he has installed a combination of software
 packages
 that just does not do what suits him best. Then he will change it. Until
 then,
 well, many happy non-booting returns!


 --
 alan dot mckinnon at gmail dot com

I *almost* feel sorry for you, after several people here have tried to
help, even WITHOUT you giving an actual direct error message that
you're receiving beyond the *expected* behavior of the fsck being
skipped on boot, and even despite your being belligerent toward
several of the most helpful people I've seen on the list overall. What
I do fail to understand, though, is why a person would post, asking
for help, disregard every bit of help given, and *both* act as though
they're being forced to listen to help they didn't ask for *and* as
though they're not getting any help at all. If someone gives you an
answer that is wrong for the situation as you see it, it typically
means one of two things... 1) you didn't give all the details needed
for them to understand what you're seeing and to know WHY the answer
they're giving isn't correct, which  2) you're overlooking or ignoring
something that they're trying to point out in their answer and,
despite what you may want to hear, they are in fact correct. Now,
a-typically, it's possible you know what's wrong, what's causing it,
and the solution, so you can instantly know that answers you're
receiving are wrong... but in my experience, in those cases, people
don't waste other people's time asking for help.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] fsck won't work if ac cord not attached?!

2009-11-29 Thread Joshua Murphy
On Sat, Nov 28, 2009 at 8:37 PM, Maxim Wexler maxim.wex...@gmail.com wrote:
 Hi group,

 When my netbook boots under battery power w/o the ac adapter connected
 I get this warning msg in the boot  window: 'Skipping fsck due to not
 being an ac adapter'. Chaos ensues. The warning appears in
 /etc/init.d/fsck.

 How do I fix this? Some option in /etc/conf.d/fsck?

 If you look for gentoo bug 291654 you get to a page that's difficult
 to read, something wonky with the xml, but it describes this problem
 and adds that it's fixed upstream.

 I'm using ext2 with the journal option, openrc and baselayout-2. My
 latest world update was two days ago.

 maxim

Skipping fsck at boot, when the system's on battery, would appear to
be hard coded in /etc/init.d/fsck ... and the function it uses to
check is completely independent of userspace tools related to PM. The
only thing it checks is the /proc tree. You can make it ignore all of
that and force a check by booting with forcefsck on your kernel
command line or by creating the file /forcefsck (simply using touch
should suffice).

You say Chaos ensues ... in what way? Further errors, failure to
boot, file system corruption, or...? The problem isn't likely rooted
in the fact that it doesn't run an fsck when the system's booting on
battery, but rather that you have some more pressing problem that
should be addressed.

-- 
Poison [BLX]
Joshua M. Murphy



Re: Gentoo for many servers (was: Re: [gentoo-user] executing commands on lots of servers at once)

2009-11-15 Thread Joshua Murphy
On Sat, Nov 14, 2009 at 5:09 PM, Alex Schuster wo...@wonkology.org wrote:
 Alan McKinnon writes:

 On Saturday 14 November 2009 19:36:06 Alex Schuster wrote:
 Alan McKinnon wrote:

 clusterssh will let you log into many machines at once and run emerge
 -avuND world everywhere
 This is way cool. I just started using it on eight Fedora servers I am
 administrating. Nice, now this is an improvement over my 'for $h in
 $HOSTS; do ssh $h yum install foo; done' approach.

 I feel your pain :-)

 We used to have the same problem adding new admins to 87 machines. Now
 we have a bespoke provisioner that does it all.

 Sorry, I just do not get 'bespoke provisioner'. Some sort of software,
 like clusterssh? Or a person, one admin instead of many?


 What do you guys think about using Gentoo for servers? At the institute
 I partially work we chose Fedora. There is no special reason for that -
 we already had some Fedora machines, the setup seemed to work, the
 reputation was good, so we kept it. That was okay for me, why choose
 many different environments and learn everything again. I mentioned
 Gentoo, but did not really suggest to actually use it. Maybe I should
 have.

 I'm a huge fan of Gentoo

 Now who would have thought of that!

 and all my personal machines (except the new netbook have run it for the
 last 5 years.

 But I will never install Gentoo on a production server at work.

 Why?

 Because it is too time consuming, because no two machines are set up the
 same, because I can't trust that other admins used the flags they should
 have. So updates become a case of logging into 80+ machines individually
 and doing emerge world by hand. Gentoo allows you to customize things to
 the nth degree - that is it's strength - so people WILL use this one
 discriminating factor.

 If OTOH I had a server farm of 80+ machines, all identical, I'd put
 Gentoo on them in a flash. But I don't have that

 Of our 8 machines, 7 are essentially the same and differ only in hard
 drive space and CPU speed. The other machine is Intel, not AMD, and needs
 different IDE drivers. At the moment it has a different initrd (I set up a
 minimal fedora install to generate it after the cloned system did not
 boot), the rest is - apart from some config files - identical.

 So I would make sure that about everything is exactly the same, well,
 maybe except for hostnames, udev net-persistent-rules, ssh keys... what
 more?
 The last, a little different machine is a problem though. With optimized
 CFLAGS, this one would have to compile all stuff again, while for the
 others I could use binpkgs. Updating them all with clusterssh should not
 be much more work than updating a single one. Well, not completely true, I
 would have the double work, as I would upgrade one server first to test if
 there are problems, and then do it for the others. Maybe I could use the
 special machine to test stuff, and then update all the others.

 If they would differ, Gentoo would of course be too much work. I already
 have this problem now... there is my desktop machine, my notebook running
 a Gentoo VM, a second desktop machine at my other home, the living-room
 machine of my flat share, the machine of a fried I also administrate, the
 server of my flat share I need to set up again... and clusterssh is no
 option here.

My potentially ill informed thoughts on the above issues/ideas:

1) Pick one machine to host both your make.conf as well as your
portage tree and distfiles, potentially splitting them into separate
nfs mounts shared out for the rest of the hosts (having the portage
tree itself ro on all but its owning machine forces centralization of
syncing).

2) /etc/make.conf should simply be a symlink to the centrally located
copy. If you must use binpackages, set march to something that will
run on every machine involved, then set mcpu to whatever machine is
most common if you want to get just a bit more performance here or
there. If you don't mind compiling on every host, though, set portage
niceness to something friendly to your users and march to native (if
you plan to use distcc, this is a BAD idea, use the binpackages).

3) use a replaceable (otherwise identical to the others, and therefore
able to be brought back online by just cloning it over) system for
your testing and keep frequent scheduled backups of whichever system
plays host to your portage tree, binpackages, and distfiles.

4) build your kernel with built in drivers for every piece of
boot-time essential hardware in your systems. You'll still be on a far
cleaner setup than a mass produced distro provided kernel, you'll only
need to maintain one for all your systems, and you'll only have one
kernel to worry about building against if you need any out-of-kernel
modules as well.

5) script the changing of ssh host keys (or even redistribution of
them, if you ), removal of persistent net rules, and prompting for the
setting of host name and you'll have a nice, tiny, postinstall tool
for the rare 

Re: [gentoo-user] return of SOD

2009-11-14 Thread Joshua Murphy
On Fri, Nov 13, 2009 at 10:21 PM, Maxim Wexler maxim.wex...@gmail.com wrote:
 Hi group,

 That's (S)creen (O)f (D)eath. I thought I had fixed this problem on my
 eee. I would get these SODs, black usually, but sometimes white and
 once green while connected to the web(don't know if that's
 significant). At first I thought it was the browser, so I tried
 firefox-3.0, firefox-3.5, opera-10. Same story, so I replaced xfce4
 with fluxbox, no screen savers, no icons, widgets, just the default
 bar at the bottom of the screen and there was no problem for several
 days until this morning the desktop went totally black and wouldn't
 respond to mouse or keyboard.

  I did #tail /var/log/Xorg.0.log immediately from a spare console but
 there was no sign of trouble.

 I can get back to the start console, ctl-c and run startx again but
 the desktop remains black. To get back the desktop I have to reboot.

 Anybody guess what's happening here?

 Maxim

From the sound of it, that'd be X itself (less likely because
restarting X should resolve any direct X issues), a video driver
(which doesn't, to my knowledge, get completely unloaded on closing
X), or hardware issue. Since it doesn't mess with plain console, which
is rendered through a different driver than X video, I'd guess that
it's not hardware (I'd expect video corruption to persist through VT
switching with a hardware issue). Still, could be any of the three, or
something else entirely, but by the sound of it, try changing version
on your video driver.

-- 
Poison [BLX]
Joshua M. Murphy



Re: [gentoo-user] Block root user from login on xorg GUI

2009-11-14 Thread Joshua Murphy
On Fri, Nov 13, 2009 at 7:24 PM, Mick michaelkintz...@gmail.com wrote:
 On Thursday 12 November 2009 23:08:18 Iain Buchanan wrote:
 On Thu, 2009-11-12 at 22:18 +, Mick wrote:
  On Thursday 12 November 2009 22:09:01 Alan McKinnon wrote:
   Gdm itself has a config option to disallow root logins
 
  Ahh, unfortunately I can only access it remotely via ssh at this stage.
  Hopefully the pam method will work fine.

 You don't need anything more to configure gdm than ssh access - this is
 Linux after all  a good program has text based configurations :)

 Edit /etc/X11/gdm/custom.conf

 In the section [security] add:
 AllowRoot=false

 Thanks for this!  :-)

 You may then have to restart xdm.

 However, if someone has the root password to log in to X, then what's to
 stop them changing anything you do now?

 Know how?
 --
 Regards,
 Mick

Approach security a little more sanely and don't give untrusted users
root access? If you have to take steps to restrict the root account,
you need to rethink who has use of it. Preventing damage in the event
that the system *does* get compromised is one thing, but trying to
control someone who is *given* access to root on the software side is
the wrong approach, in my incredibly non-humble opinion.

-- 
Poison [BLX]
Joshua M. Murphy



  1   2   >