Re: A couple of random questions about login

2013-09-02 Thread Bryn M. Reeves
On 09/02/2013 04:42 PM, Bill Oliver wrote:
 My wife turned to me and said, If I were the bad guy, I'd just have the
 computer delete everything if someone entered the boat name, or at least
 send me a text.  The boat was an obvious guess, and I would never
 accidentally type it in.

This is pretty close to the concept of a duress code or panic password -
a special signal that you only give when under duress to covertly
indicate that fact:

  http://en.wikipedia.org/wiki/Duress_code

There's a problem with this idea though: anyone who knows or suspects
that you are using such a booby trap and has access to the system just
has to guess the right term and they can hose your data.

 My answer was That makes sense, but I have no clue about how to do it.

PAM (pluggable authentication modules for Linux) is generally how you
slip some new check into the existing login (or other) auth process:

  http://www.linux-pam.org/

For e.g. there are PAM modules for LDAP directories and fingerprint
scanners.

Someone created a pam_confused module a few years back that will check
passwords against a duress list and execute some pre-configured script
when one is entered. It's not been updated lately but it shows roughly
how you might do it:

https://confused.googlecode.com/svn/trunk/pam_confused/readme.txt

 1) What happens at a process level when one hits return after typing in
 a password?  Is everything handled by the kernel? Where is this described?

Check out the PAM faq and other documentation.

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: No sound for really old program

2013-08-14 Thread Bryn M. Reeves
On 08/14/2013 04:53 PM, Alan Evans wrote:
 Now I do remember years back that there was some sort of wrapper I could 
 execute 
 old programs in that would allow them to work with the latest (at the time) 
 sound architecture. But I don't remember what it was called. And in any case, 
 it 
 probably wouldn't work now either.

If it's expecting the OSS sound drivers (which'd be about right for RH6)
then you can use the padsp wrapper:

$ padsp $old-program

This will fake up the traditional OSS interface for the process run and
works with most of the ancient things I've tried it with - the main
caveat is that it uses LD_PRELOAD tricks so it won't work with
suid/static binaries.

The man page has more details and options for controlling the interface.

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: libpeerconnection.log

2013-07-17 Thread Bryn M. Reeves
On 07/17/2013 12:50 PM, Roger wrote:
 I would like to know too.
 I get it in my Rails4 development sites. It is always empty but
 frequently triggers a SELinux denial.
 Roger

Chrom{e,ium} according to various hits for 'libpeerconnection.log' on
google:

https://www.google.co.uk/search?q=libpeerconnection.log

Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Permissions on /var/log/ files

2013-07-17 Thread Bryn M. Reeves
On 07/17/2013 04:01 PM, Chris Adams wrote:

 Again, nope, at least for common log files.  logrotate copies the
 current ownership/permissions to the new files, unless otherwise
 configured (and only a few files have that set in the default config;
 they probably shouldn't either).

*if the configuration differs from the file system.*

I'm trying to help Suvayu understand what he's getting confused over.
Conflicts between logrotate and manual changes are certainly more likely
than something bad happened to syslog.

If you're unaware of the permissions control in the logrotate files it's
also somewhat mysterious to track down (I see many admins today who
don't even realise that it exists).

Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: upowerd

2013-06-18 Thread Bryn M. Reeves

On 06/18/2013 04:37 AM, lee wrote:

What does that mean?  When I look at [2], all it does seems to do is to
allow to know when power sources are added or removed --- which is
something that never happens.  I don't have any hot pluggable PSUs.


It's an abstraction for finding the power devices contained in the 
system and for interacting with them. For portable devices this includes 
batteries as well as the AC supply and controls are provided to suspend 
or hibernate the system as well as a QoS API for applications to declare 
their latency requirements.


This allows upowerd to control power use in the system and to favour 
either reduced latencies or lower power consumption.


The battery association makes it seem like a laptop/mobile thing but the 
documentation describes a number of server use-cases as well (where 
you're probably choosing power consumption over long latencies):


http://upower.freedesktop.org/
http://upower.freedesktop.org/docs/

Regards,
Bryn.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: systemd Unit - Modifying IPv4 parameters

2013-05-08 Thread Bryn M. Reeves

On 05/08/2013 05:44 PM, T.C. Hollingsworth wrote:

On Wed, May 8, 2013 at 9:33 AM, Tony Su ton...@su-networking.com wrote:

In the old days edits were made directly to the appropriate file
/proc/net/ipv4/...


Are you looking for /proc/sys/net/ip4?  AFAICT /proc/net hasn't
existed since everyone switched over to the 2.6 kernel (which happened
in Fedora Core 2 in 2004).


/proc/net (network status  stats) is still there, it's just not the 
same as /proc/sys/net (sysctl networking tunables), from man proc:


/proc/net
various net pseudo-files, all of which give the status of some
part of the networking layer.  These files contain ASCII structures
and are, therefore, readable with cat(1).  However, the standard
netstat(8) suite provides much cleaner access to these files.

/proc/sys
This  directory  (present since 1.3.57) contains a number of files
and subdirectories corresponding to kernel variables.  These
variables can be read and sometimes modified using the /proc file
system, and the (deprecated) sysctl(2) system call.

/proc/sys/net
This directory contains networking stuff.  Explanations for some of
the files under this directory can be found in tcp(7) and ip(7)

Persistent changes still go to /etc/sysctl.conf or you can now drop-in 
files to /etc/sysctl.d with systemd.


Regards,
Bryn.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: hackers

2013-04-25 Thread Bryn M. Reeves

On 04/25/2013 12:31 AM, Joe Zeff wrote:

On 04/24/2013 04:11 PM, Roger wrote:

Continuing to educate the masses is the only way that people will learn
the real meaning.


As you can see here, http://en.wikipedia.org/wiki/Geezer, the original
meaning of the term Geezer, as still used in the UK, is significantly
different from how it's used in the US.  Should we also be trying to get
people to go back to that meaning?  For that matter, how about the term
geek: http://en.wikipedia.org/wiki/Geek#Etymology  Language evolves, and
pretending that it doesn't isn't going to do anybody any good.  My
advice is to ignore it and move on.


Exactly - go back to the middle ages and all children, whether male or 
female, were called 'girls'. A son was a 'knave girl' and a daughter a 
'gay girl'.


'Gay' as the modern term started off as 'gai' in France and referred to 
'courtly love'. It was later applied to promiscuous men and women in the 
UK before morphing in the 20th century to its present definition.


Perhaps we should go back and educate the masses as to the true 
meanings of all these words too? :-)


Regards,
Bryn.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: hackers

2013-04-24 Thread Bryn M. Reeves

On 04/24/2013 03:42 AM, Richard Vickery wrote:

Of course, the media are infamous for abusing scientific terms, such as
calling the Higgs boson the god particle - a term scientists loathe - so
I out not lose too much sleep over it.


Actually the scientists (inc. prof. Higgs) are not so happy with 'Higgs 
boson' as a name either:


  http://www.bbc.co.uk/news/science-environment-22250092

I tend to think the 'hacker' vs. 'cracker' distinction is lost to 
history in the mainstream today. Among enlightened circles you can still 
make the distinction between the terms and be understood.


When communicating with broader audiences I think rigidly sticking to 
our preferred definition risks misunderstanding and further confusion 
for the listeners.


Regards,
Bryn.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Reliable way to determine native packaging system

2013-03-15 Thread Bryn M. Reeves

On 03/14/2013 06:27 PM, Theodore Papadopoulo wrote:

Interesting, I'll have a look. But the downside you mention is exactly
the one I want to avoid. Having to handle a mapping between
distributions and packaging systems. See the other message I just
posted...


I think that's the crux of this problem: you can either approach it via 
heuristics (check for presence of known package manager bits, e.g. 
/var/lib/rpm etc., even make some guess about 'rpm has X packages 
installed, deb has Y, XY: it's an RPM distro, for the unusual cases 
where more than one is present), or, you have to define and maintain the 
mapping by hand.


Either one could work out for a given use; it all depends on the 
consequences of getting it wrong or of not having a policy available for 
some environment where the tool runs.


Regards,
Bryn.


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Strange file appearing in HOME

2013-03-15 Thread Bryn M. Reeves

On 03/15/2013 04:28 PM, Frank McCormick wrote:

I have noticed lately on my F18 installation that this file:

C:\nppdf32Log\debuglog.txt


Ask Ubuntu :)

http://askubuntu.com/questions/144408/what-is-the-file-c-nppdf32log-debuglog-txt


keeps popping up in my HOME.

Anybody know the explanation or how to stop it ?


It's created by the Adobe Acrobat reader according to the Ubuntu bug. 
Recent browsers support PDF pretty well without the Adobe plug-in so if 
you don't need something specific it provides you could just remove it.


Regards,
Bryn.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: /var/lib

2013-03-11 Thread Bryn M. Reeves

On 03/11/2013 01:28 PM, Patrick Dupre wrote:

Quoting lun, 11 mar 2013 Reindl Harald h.rei...@thelounge.net:




Am 11.03.2013 14:18, schrieb Patrick Dupre:

I made a BIG mistake,
I removed /var/lib.


the machine is done


How can I reinstall it?


what do you imagine to reinstall
no way - /var/lib contains as example the complete RPM-database


In the past it was possible to recover the database with:
rpm --rebuilddb


That just rebuilds indexes from package headers - it's never been able 
to recreate a completely missing RPMDB.


Regards,
Bryn.


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Cannot unlock screen from the lock

2013-02-06 Thread Bryn M. Reeves

On 02/06/2013 11:04 AM, Jean Jacques wrote:


Has any one encountered the problem that the screen cannot back from
lock? The new lock screen does not unlock after the password has been
entered.




I've seen similar behaviour in a few situations: when the load on the 
box is extremely high it may take minutes (or tens of minutes if 
severely stressed) for the authentication to complete. I've seen this 
with runaway browsers and other processes chewing memory and CPU time. 
Typically in this case the password dialog is also slow to appear and 
the cursor may be laggy and unresponsive.


The other one that comes to mind is a problem with authentication itself 
- if using network auth then a problem with the network or backend 
service may cause unlock delays. This should be less of a problem with 
local authentication.


Finally, you might have a deadlock or task blocked on IO - for e.g. a 
kernel or driver bug or some storage device. I've seen this with file 
system bugs for e.g. when some IO never completes.


Depending on where things are stuck you may be able to switch to a 
virtual terminal, log in, and debug from there.


Regards,
Bryn.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: [OT?] question about external hd

2013-02-06 Thread Bryn M. Reeves

On 02/06/2013 06:33 PM, Andrew Haley wrote:

Should I be root to be
able to create/remove files/folder in my external hd??


No.  Create a scratch dir on the hd (as root) and do

chmod 1777 mydir

This will create a directory that any user can write to.


Or you could chown the root directory of the external drive's file 
system to the user that normally mounts it (this is what I do with most 
of my external storage).


Regards,
Bryn.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: system monitoring applet

2013-01-31 Thread Bryn M. Reeves

On 01/31/2013 09:53 AM, Raf Roger wrote:

i'm looking for a good system monitoring for fedora 18.
i found something about standard applet package called
gnome-shell-extension-system-monitor-applet rpm


I quite like this one and used it quite a bit.


but i was think is the one displayed on the theme
(http://forum.pinguyos.com/Thread-How-to-Use-Tint2-Instead-of-Docky-in-Shell)
on the right side bar is not the same.


Looks like Conky:

http://conky.sourceforge.net/screenshots.html

It's packaged in Fedora and quite a few people seem to have been running 
it successfully on F17 with Gnome3.


Regards,
Bryn.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Lack of things in Gimp

2013-01-29 Thread Bryn M. Reeves

On 01/29/2013 04:45 PM, Bill Davidsen wrote:

If the Fedora team saw this as a problem, they would arrange to have
rpmfusion keep drivers available for the obsolete kernels in the media
as well as the current kernels you get with upgrade. At least for
Broadcom and Ralink (net) and Radeon and Nvidia (video). Those are
probably the most widely used hardware bits, and without the driver
installed you can't upgrade and maybe your video only works in text
mode. Assuming you can even find a driver for the old kernels.


It would definitely be helpful for rpmfusion to preserve driver packages 
for the kernels shipped in the media although I thought they did this?


I just checked for F17 and they do appear to have kmod packages for the 
3.3.4-5 kernel that shipped on the media.


You could pre-download everything including dependencies and have it on 
a USB device available as a repo to the LiveCD or installer. There are 
tools that will do all that but it would be nice to have a very simple 
way to put it all together in advance to simplify this kind of install.


Regards,
Bryn.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: WTH is ntlvm2

2013-01-28 Thread Bryn M. Reeves

On 01/28/2013 04:49 PM, JOYCE POLZIN wrote:

Autofs in F18 won't work without it.


Presumably you meant NTLMv2 (NT LAN Manager Version 2, aka NTLM2).

It's an ancient Microsoft authentication protocol used with Windows file 
and print sharing and other Windows network services.


Sharing more details of what went wrong or how you fixed it might help 
you or other users hitting it.


Regards,
Bryn.


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: OT Motherboard max ram, dmidecode ?

2013-01-15 Thread Bryn M. Reeves

On 01/15/2013 11:57 AM, Frank Murphy wrote:

http://fpaste.org/jijW/  ctrl-f : this line

does this mean my board can take 16gb ram?

Their website says 8gb
http://www.msi.com/product/mb/P35-Platinum.html#/?div=Basic


It means your memory controller has enough pins to drive 16GiB of 
memory. Unfortunately that doesn't mean that the motherboard maker chose 
to implement it that way - they may not have provided enough DIMM slots 
to physically install that much memory or there may be firmware 
limitations on the upper limit of usable memory.


Check with the mb vendor that there are no updates available to raise 
that and that the information on the website is accurate - failing that 
you could try it out if you have DIMMs around but I would be cautious of 
buying new ones unless you can return them or have other uses for them.


Regards,
Bryn.


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: F-18/64 Install Methods -

2013-01-15 Thread Bryn M. Reeves

On 01/15/2013 05:29 PM, Thomas Dineen wrote:

Gentle People:

  My suggestion: Use Fedora 14 and immediately load all updates.

  Results from my testing:
  Fedora 17 x64   - Not usable way to many bugs.


Not sure what this has to do with F18 install methods but I'm using F17 
x86_64 daily in production (development laptop but it's a crucial 
environment for me and _has_ to work - it does).


Bug reports are more useful than it doesn't work.

Regards,
Bryn.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: tune2fs -E hash_alg=half_md4: safe for existing filesystems?

2013-01-09 Thread Bryn M. Reeves

On 01/09/2013 06:18 PM, Bill Davidsen wrote:

I would try this on something you can afford to lose... I just don't see
any more info on this than you did before asking. I am curious, since I


Changing hash_alg on an existing file system sets the default hash 
algorithm for newly created directories. It won't affect any existing 
directory inodes that are already present (even if you remove all the 
files within them - you need to remove and re-create the directory 
itself to switch algorithm).


File systems with mixed hash algorithms probably see a lot less testing 
than either one or the other but both options have been around for quite 
a while now.


You can test this easily enough on loopback devices if needed and 
there's no real storage available and use debugfs to inspect the hash 
used for a particular directory, e.g.:


debugfs htree foo
Root node dump:
 Reserved zero: 0
 Hash Version: 2
 Info length: 8
 Indirect levels: 0
 Flags: 0
Number of entries (count): 2
Number of entries (limit): 124
Entry #0: Hash 0x, block 1
Entry #1: Hash 0x896bc308, block 2
[...]

debugfs htree bar
Root node dump:
 Reserved zero: 0
 Hash Version: 1
 Info length: 8
 Indirect levels: 0
 Flags: 0
Number of entries (count): 2
Number of entries (limit): 124
Entry #0: Hash 0x, block 1
Entry #1: Hash 0x7aa4fee4, block 2
[...]

The hash versions are as follows:

#define EXT2_HASH_LEGACY0
#define EXT2_HASH_HALF_MD4  1
#define EXT2_HASH_TEA   2

It's probably somewhat more risky than re-making the file system with 
the preferred hash and restoring but you could progressively migrate a 
file system over (or at least do some testing to see if it's worth it or 
not) by copying and renaming existing trees after changing hash_alg.


Regards,
Bryn.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: building from kernel source rpm

2012-11-29 Thread Bryn M. Reeves
On 28/11/12 18:52, Rick Stevens wrote:
 I reiterate:
 
   1. Install the kernel source RPM.
 
   2. Navigate to your ~/rpmbuild/SPECS directory.
 
   3. Do rpmbuild -bp --target=x86_64 kernel.spec or
  rpmbuild -bp --target=i686 kernel.spec depending on your
  processor.
 
   4. Once that's complete, navigate to your
  ~rpmbuild/BUILD/kernel-3.6.fc17/linux-3.6.7-4.fc17.x86_64
  directory. Read the README file. I say again, read the
  README file!
 
   5. Run make nconfig or make xconfig or whatever
  make *config floats your boat and bugger the configuration
  as you see fit.
 
   6. Run make to build the kernel as you've specified. Follow
  the directions in the README file's COMPILING the kernel
  section.
 
 That README file is chock full of what you need to do. This is the way
 customized kernels are built. Always has been, probably always will be.

This is fine if you want a hand-built kernel and don't mind having to
manually save the config used for a given build and keep track of them
over time.

For development work that's normally convenient but if you're doing this
regularly to simply use the builds and want to keep track of your
changes and ensure they don't get mixed up or lost (what config options
did I enable in build x.y.z-foo??) using the SRPM and rpmbuild is easier
(you could also use a VCS but since the original question related to RPM
builds that doesn't seem to be the case).

Running an rpmbuild -ba will generate a new SRPM so as long as you keep
track of release numbers and preserve the SRPMs you can always go back
to see how a given binary RPM was configured (you also get the used
config-* included in it).

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: building from kernel source rpm

2012-11-28 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/28/2012 05:07 PM, JD wrote:
 The main point is that the build takes too darned long. On my
 unicore cpu, it takes almost 2 days. Building bazillions of useless
 modules is a great waste of time and machine.

If you want to change the set of modules enabled you'll have to do a
bit more as the kernel .config options aren't exposed in the spec file
in a way that you can control via rpmbuild options.

That said, you should check out Richard's suggestion as you may find
that it's the many variant (up/smp/pae/debug/debuginfo etc.)
sub-packages that are chewing up the time for you. If turning those
off gives you an acceptable build time it's less invasive than munging
the KConfig options to drop unneeded modules.

If you decide you do need to do that though you'll need to install the
SRPM (either with bare RPM build directory or via mock) so that you
can get access to the individual sources and patches that make it up.

If you're using the normal RPM directory layout then the files you're
interested in will end up in $rpmbuild/SOURCES (where $rpmbuild is
whatever RPM's %_topdir macro is set to).

For the kernel the interesting files are config-*-generic,
config-*-smp etc., Makefile.config and a perl script named merge.pl:

$ cd rpmbuild/SOURCES
$ ls config-* merge.pl Makefile.config
config-arm-generic  config-powerpc32-generic
config-arm-highbank config-powerpc32-smp
config-arm-imx  config-powerpc64
config-arm-kirkwood config-powerpc-generic
config-arm-omap-generic config-rhel-generic
config-arm-tegraconfig-s390x
config-debugconfig-sparc64-generic
config-generic  config-x86-32-generic
config-i686-PAE config-x86_64-generic
config-localconfig-x86-generic
config-nodebug  merge.pl
Makefile.config

The structure of the config files is fairly self-explanatory;
config-generic is the global catch-all and architectures and variants
(e.g. PAE, smp) can override specific values as needed.

If you just want to make a few local changes you can drop them into
config-local - this should have the highest precedence and is is
automatically merged by kernel.spec during %prep.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlC2TesACgkQ6YSQoMYUY979UACaA9xfSrM+sWT8c7FZsg+ecBwQ
8Z8AniFen3ow85YQrSO0B3YAb5a6LIXo
=PM95
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: lvm duplication

2012-10-26 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 10/26/2012 12:49 PM, Ian Chapman wrote:
 On 26/10/12 19:44, Patrick Dupre wrote:
 Hello,
 
 How can I manage such an issue?
 
 
 WARNING: Duplicate VG name VolGrpSys0: 
 s4LnbI-FRjU-fsPt-2W3d-XIIL-LT7o-uPsVfo (created here) takes
 precedence over 4Nyva1-5hZi-Mdgr-KnoK-7NMd-56y1-9jczSF WARNING:
 Duplicate VG name VolGrpUsr0: 
 wCV7BU-ulp2-GmUG-RHs7-OBRD-EMKG-Q5E4Zm (created here) takes
 precedence over v3dRcl-aILh-Qlji-qPMD-2Swq-Ay9Y-QqMzj7
 
 I guess by renaming your volume groups so you don't have duplicates
 (man vgrename). Be careful if one of them contains your / volume,
 you may need to rebuild the initrd and update your grub config if
 you rename it and update /etc/fstab if necessary.

Better to use the vgimportclone script as it takes care of the
numerous manual steps need to exclude one VG, re-UUID and re-name the
conflicting group.

# vgimportclone --help
Usage: vgimportclone [options] PhysicalVolume [PhysicalVolume...]
-n|--basevgname - Base name for the new volume group(s)
-i|--import - Import any exported volume groups found
-t|--test   - Run in test mode
--quiet - Suppress output
-v|--verbose- Set verbose level
-d|--debug  - Set debug level
--version   - Display version information
-h|--help   - Display this help message

The manual page has more usage details.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlCKfm8ACgkQ6YSQoMYUY95waACfXWlBJsRql2ijSIgQV3CvHmtk
aDEAnRZvrd0TL7wwECWIlzObljdLrLAr
=B7A6
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: how to disable unset HISTORY

2012-10-17 Thread Bryn M. Reeves
On 10/17/2012 12:06 AM, Mark LaPierre wrote:
 On 10/16/2012 02:52 AM, Tiziana Manfroni wrote:
 Hi, I have some users that delete .history file (in tcsh shell), so I
 can't see their commands.
 Can I disable the command unset history?
 If it is not possible, what can I do?

 Thanks in advance

 Tiziana
 
 If you are creative with scripting you may be able to use tail -f to 
 build a scraper.
 

There are a few examples of this sort of trick on the web but they are
just as fragile as HISTFILE itself. A determined user can easily escape
from the logging.

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: how to disable unset HISTORY

2012-10-16 Thread Bryn M. Reeves
On 10/16/2012 07:52 AM, Tiziana Manfroni wrote:
 Hi, I have some users that delete .history file (in tcsh shell), so I 
 can't see their commands.
 Can I disable the command unset history?
 If it is not possible, what can I do?

You can't really prevent a user from altering their environment (it's
just an instruction to their shell which is under their control).

If you need to keep a record of the commands that users are running you
could consider either forcing them to use sudo if it's mainly
administrative things you're interested in or use the audit subsystem to
record what is being executed on the system (although you won't get full
command line arguments).

Other than that there are things like snoopylog that use an
execve-wrapper to intercept calls to run commands and log full
arguments. This comes with some overhead though and would reveal e.g.
passwords typed in commands.

Recent versions of bash can also be compiled with syslog support by
defining SYSLOG_HISTORY but if your users are hooked on tcsh that
probably won't help (I don't think it's enabled in the Fedora builds
anyway).

Regards,
Bryn.


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: process group display?

2012-10-16 Thread Bryn M. Reeves
On 10/16/2012 05:21 PM, Jack Craig wrote:
 Thx! I knew there had to be a solution, ...

I'm also a big fan of ps ax --forest - it retains the ps fields while
still giving you an asciigram of the process tree:

$ ps ax --forest
  PID TTY  STAT   TIME COMMAND
2 ?S  0:00 [kthreadd]
3 ?S  0:01  \_ [ksoftirqd/0]
6 ?S5243:09  \_ [migration/0]
[...]
  933 ?Sl 0:00  \_ /usr/libexec/gdm-simple-slave
  953 tty1 Ss+   72:31  \_ /usr/bin/Xorg :0 -background none
 1271 ?Sl 0:01  \_ gdm-session-worker [pam/gdm-password]
 1372 ?Ssl0:12  \_ gnome-session
 1563 ?Sl 4:44  \_ /usr/libexec/gnome-settings-
 1619 ?Sl 1:19  \_ nm-applet
 1620 ?Sl 0:00  \_ zeitgeist-datahub
 1621 ?SNl0:05  \_ /usr/libexec/tracker-miner-fs
 1622 ?Sl 0:14  \_ gnome-screensaver
 1683 ?SLl0:04  \_ /usr/libexec/evolution
 1690 ?Sl 0:02  \_ abrt-applet
 1697 ?Sl 0:01  \_ /usr/libexec/deja-dup/deja-
17357 ?Sl22:06  \_ /usr/bin/gnome-shell
[...]

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Plans for anaconda LVM/RAID support

2012-10-15 Thread Bryn M. Reeves
On 10/15/2012 03:46 PM, Bill Davidsen wrote:
 Ian Pilcher wrote:
 I'm sure that this information is somewhere on the Fedora Wiki,
 but my search-fu apparently isn't up to the task of finding it.
 
 What are the plans for LVM and/or software RAID support?
 
 Currently (F18 Beta TC2), it seems to be impossible for those of
 us who have fully allocated our storage to either (or both) of
 these technologies to install Fedora 18 at all.
 
 How would that work? Not the install, but the boot? Unless your
 BIOS knows how to handle LVM/RAID or you think you can shoehorn
 them into a boot sector, doesn't the boot need to be a normal
 partition?

Mirroring is fairly straightforward since you just need a bootloader
on each bootable disk. Some BIOSes are less helpful than others when
it comes to booting with a failed drive but with the right system it's
possible to have a reliable set up (most of my server boxes use MD
mirrors for boot).

 Maybe I see too many dumb BIOS problems working with little ATOM
 and similar appliances, but getting them to boot anything seems an
 issue, and even with non-PC partitioning layouts I would expect to
 need one simple boot partition the BIOS could understand.

The BIOS only really needs to understand where to load a first stage
bootloader from - the traditional MBR protocol from the 80s (with a
few extras bolted on here and there). Different BIOSes are better or
worse in this area and some really are crap but that doesn't seem like
a reason to not support those layouts for systems where they do work.

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Software Removal....

2012-09-18 Thread Bryn M. Reeves
On 09/18/2012 05:37 AM, Eddie G. O'Connor Jr. wrote:
 namely ones that don't even functionsome title are: Tetravex - 
 Some sort of mutated Sudoku game, Nibbles some form of worm game and a 
 few others. I have tried going to the Add / Remove Software module but 
 it doesn't even find these games. So how can I get rid of them without 
 having to do a total reinstall? I tried having yum do it, but when I 

Slightly OT for your specific question and Frank's already provided a
solution but I keep a shell alias around in .bashrc to look up which
package owns a particular command. It just glues together rpm -qf and which:

qwhich () { if [ $1 ==  ]; then echo usage: qwhich cmd ; fi ;
rpm -qf `which $1` ;}

$ qwhich sol
aisleriot-3.2.3.2-2.fc17.x86_64

It's pronounced like quiche should not be.

The repoquery command from yum-utils can answer similar questions for
packages in remote repositories but it's much faster to just ask RPM for
things installed locally.

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Why did they f*ck with GIMP?

2012-09-14 Thread Bryn M. Reeves
On 09/13/2012 08:56 PM, Joe Zeff wrote:
 On 09/13/2012 12:41 PM, Fedora User wrote:
 People must have too much time on their hands. Add some features; maybe
 clean up some code. But why on earth make major UI changes to a program
 that consistently did exactly what it was supposed to do exactly as it
 was supposed to do it - - - and now doesn't. Ugh!

 
 Probably for the same reason they did pretty much the same thing to 
 Gnome 3: it's new, therefor it must be better.

What is it that you don't like in the new GIMP? For me the single window
interface is far preferable to the old lets-hunt-around-the-workspace
mode and it's optional if you do prefer the free-floating layout.

 is by substituting the name of the File System ChecKer for it, as in, 
 Why did they fsck with GIMP.  And, while I'm at it, when did it stop 
 being The GIMP[2]?

I don't recall the splash screens or about box calling it The GIMP in
a very long time (if ever) but the project website still lists the
expansion as GIMP is the GNU Image Manipulation Program. (side-note:
GIMP predates Gnome - GTK was originally the GIMP toolkit).

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Why did they f*ck with GIMP?

2012-09-14 Thread Bryn M. Reeves
On 09/13/2012 08:57 PM, Fedora User wrote:
 On Thu, 2012-09-13 at 15:41 -0400, Fedora User wrote:
 People must have too much time on their hands. Add some features; maybe
 clean up some code. But why on earth make major UI changes to a program
 that consistently did exactly what it was supposed to do exactly as it
 was supposed to do it - - - and now doesn't. Ugh!
 
 BTW, Fedora 17, GIMP 2.8.2. Unable to center multi-line text. Can no
 longer create a shape and then fill it with a color. Color ME
 frustrated.

I just tried these operations in 2.8.2 and they are working for me in
more-or-less the way I've always used them. There's sometimes more than
one way to achieve a result in Gimp so that may be why your experience
differs (or it could just be a bug/bugs).

To create and fill a shape I use the selection or path editing tools to
create an outline, stroke it and then the bucket-fill tool to fill it
with a pattern or solid colour.

For centred multi-line text I just use the text tool, click to place and
enter the text. The floating (cairo) dialog does not give you the
justification options but it's there in the tool options pane:

http://www.errorists.org/stuff/gimp-2.8.2-fill-and-text.png

If you turn single window mode off (Windows menu and uncheck
Single-Window mode) it'll be in the bottom half of the floating toolbox
window.

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Why did they f*ck with GIMP?

2012-09-14 Thread Bryn M. Reeves
On 09/14/2012 11:34 AM, Ian Malone wrote:
 On 14 September 2012 11:26, Bryn M. Reeves b...@redhat.com wrote:
 On 09/13/2012 08:56 PM, Joe Zeff wrote:
 
 
 And, while I'm at it, when did it stop
 being The GIMP[2]?

 I don't recall the splash screens or about box calling it The GIMP in
 a very long time (if ever) but the project website still lists the
 
 2.2 splash screen and window titles say 'the GIMP', and there's a help
 item 'the GIMP online'. (The about box doesn't have a program title,
 it's a sort of slideshow, a title may appear eventually, but I'm not
 going to sit and watch to find out.) And it is indeed the GNU image
 manipulation programme.
 

Thanks - I thought I vaguely remembered it saying it at some point but
the oldest one I could find to hand was 2.4 (2.2 is eight years old now!).

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Why did they f*ck with GIMP?

2012-09-14 Thread Bryn M. Reeves
On 09/14/2012 01:41 PM, Claude Jones wrote:
 On 09/14/2012 06:26 AM, Bryn M. Reeves wrote:
 What is it that you don't like in the new GIMP? For me the single window
 interface is far preferable to the old lets-hunt-around-the-workspace
 mode and it's optional if you do prefer the free-floating layout.
 
 I've always disliked the free floating windows but, I still have them. 
 How do I implement the single window interface? I've got 2.6
 

It was new in 2.7 so you'll need to update. F16 still has 2.6 but if you
can't update to F17 (which has 2.8.2) now you might find that Niels
Philippsen's gimp unstable repos for Fedora allow you to use a somewhat
newer version:

http://lists.fedoraproject.org/pipermail/devel/2011-September/156359.html

There are updates to the F16 packages from earlier this year but I don't
know how usable they are at the moment.

Building later gimp for earlier Fedora is tricky due to it depending on
newer gegl and babl packages.

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Why did they f*ck with GIMP?

2012-09-14 Thread Bryn M. Reeves
On 09/14/2012 02:57 PM, Heinz Diehl wrote:
 Gimp and single window interface? What Fedora are you actually on??
 I'm on a fully updated F17, and I don't have a single window interface
 in Gimp (wish I had)..

F17 as I've said more than once.

Look in the Windows menu perhaps? It should be the last entry
('Single-Window Mode' checkbox).

It was added in 2.7 so unless you have some very odd packages lying
around I've no idea why you'd not have it with the 2.8.2 that's current
for F17.

$ cat /etc/fedora-release
Fedora release 17 (Beefy Miracle)

$ rpm -q gimp
gimp-2.8.2-1.fc17.x86_64

$ yum info gimp
[snip]
Installed Packages
Name: gimp
Arch: x86_64
Epoch   : 2
Version : 2.8.2
Release : 1.fc17
Size: 59 M
Repo: installed
From repo   : updates
Summary : GNU Image Manipulation Program
URL : http://www.gimp.org/
License : GPLv3+
Description : GIMP (GNU Image Manipulation Program) is a powerful image
composition and editing program, which can be extremely useful for
creating logos and other graphics for webpages. GIMP has many of the
tools and filters you would expect to find in similar commercial
offerings, and some interesting extras as well.
GIMP provides a large image manipulation toolbox, including channel
operations and layers, effects, sub-pixel imaging and anti-aliasing, and
conversions, all with multi-level undo.

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Stemming a flood of kernel warnings

2012-09-10 Thread Bryn M. Reeves
On 09/10/2012 01:31 PM, Dave Ulrick wrote:
 Is there any possible way I could configure ABRT to stop nagging me about 
 this particular bug? Note this bug is really just a WARN()/assertion in 
 a kernel module (i915). Other than the annoyance caused by the frequent 
 bug reports, it causes no visible harm to the function of my system.

You could try adding a blacklist for the kernel package to
/etc/abrt/abrt-action-save-package-data.conf. I've not tried this for
the kernel package but it allows you to turn off analysis by package name.

Alternately you could disable the libreport event that abrt is
responding to - these are configured in /etc/libreport/events.d/.

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: To telnet or to netcat... that's the question

2012-08-31 Thread Bryn M. Reeves
On 08/31/2012 01:41 PM, NOSpaze wrote:
 But if I use nc and do...
 
 # nc 127.0.0.1 5038  EOF
  Action: Login
  ActionID: 1
  Username: youwanna
  Secret: uwanna
  
  EOF
 Asterisk Call Manager/1.0

Does the behaviour differ if you type or paste the lines in and then hit
Ctrl-D (or your keybinding for EOF) rather than use a shell here document?

I think this might cause nc to send one big packet with all the lines
which might not be what asterisk expects. I'd also expect telnet to turn
of nagling on the socket (so data is sent immediately rather than
buffering). I think nc doesn't do that although it does provide a
configurable send/receive delay interval (-i).

Failing that I would try a tethereal/tcpdump to see what's different in
the data going over the wire.

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Question about Preferred Applications

2012-08-20 Thread Bryn M. Reeves
On 08/19/2012 08:57 PM, Joe Zeff wrote:
 My sister uses Linux, and has Thunderbird installed.  However, her 
 primary email address is at gmail.  She'd like to be able to click on 
 mailto: links and have gmail come up instead of Thunderbird.  AFAICT, 
 there's no obvious way to do it.  Does anybody out there know how that 
 could be automated?  (My sister isn't technically oriented; something 
 that takes several steps every time probably won't work.  However, I can 
 either set it up for her or talk her through doing it, as long as the 
 end result is easy for her to use.)
 

You can create a new menu item for your browser (either manually or
using alacarte) that handles the correct mime types for mail and adds
the correct gmail URL to the command. I don't know how gmail's URL
schemes work but you may need a wrapper script to munge it somehow (it
looks like the requested URL is passed in as %u in the desktop files).

Put it in '.local/share/applications' for a single user or
'/usr/share/applications' to make it available to all users.

Will probably take some fiddling to get it working right but I use this
to run gnome-terminals with specific command line options.

You probably want at least these two:

MimeType=message/rfc822;x-scheme-handler/mailto;


Categories=Network;Email;

This is the .desktop I use for the terminal: http://fpaste.org/OIBt/

Regards,
Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Cargo Cult sysadmining

2012-08-06 Thread Bryn M. Reeves
On 08/05/2012 03:30 AM, Javier Perez wrote:
 Hi
 
 Is there any list of Cargo cult sysadmin practices for Fedora?

A perennial favourite:

* disable, remove and BURN WITH FIRE pulseaudio at the first sign of any
sound playback trouble. It doesn't matter if it caused it. It must be
purged and punished as an offering to the gods.

Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: remake /dev

2012-07-30 Thread Bryn M. Reeves
On Sat, 2012-07-28 at 15:50 +0300, Veli-Pekka Kestilä wrote:
 On 28.7.2012 15:07, Patrick Dupre wrote:
  My idea what to repair the installation from another installation.
  So, I mounted the defectuous installation, and I did a chroot to it.
  It works except that I have an error message:
  so such file or directory : /dev/urandom
 
  Same thing when I make a yum --version
  There is no files in /dev, I though that I should rebuild it
 
 If you really need some device nodes in chroot environment you can run 
 after chroot,  MAKEDEV /dev/urandom it should just create the device 
 (presuming the defective installation does still have MAKEDEV command in 
 sbin)

Or just bind mount the parent environment's file systems into the target
system before chrooting:

mount --bind /dev /mnt/sysimage/dev
mount --bind /proc /mnt/sysimage/proc
mount --bind /sys /mnt/sysimage/sys

Regards,
Bryn.


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: External disk problem.

2012-07-30 Thread Bryn M. Reeves
On Sun, 2012-07-29 at 20:13 -0700, ny6...@gmail.com wrote:
 That's not a disk problem. That's the disk failing to remount itself
 properly after the suspend. This is very common. In fact, I wrote a script
 (in Gentoo) to unmount external drives before a suspend operation, so that
 the numbering of disks in /dev don't become littered with 'zombie' drives.
 
 I'm sure there's a super-slick way of getting drives to remount themselves
 after a suspend, but mounting drives is relatively easy to do either with
 gui or cli tools, so I don't tear my hair over it.

An eSATA device should be able to suspend and resume properly (just like
the other ATA devices in your system).

Debugging it may be difficult unless you can get console logs showing
what's happening during the suspend/resume cycle (serial console or
possibly netconsole).

What state is the device in following a resume?
(/sys/block/sd*/device/state).

Regards,
Bryn.


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: External disk problem.

2012-07-30 Thread Bryn M. Reeves
On Mon, 2012-07-30 at 06:29 -0300, Fernando Cassia wrote:
 On Mon, Jul 30, 2012 at 12:13 AM,  ny6...@gmail.com wrote:
  This is very common. In fact, I wrote a script
  (in Gentoo) to unmount external drives before a suspend operation, so that
  the numbering of disks in /dev don't become littered with 'zombie' drives.
 
 It would be great if you could share it...

Do you see that happen a lot?

Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: External disk problem.

2012-07-30 Thread Bryn M. Reeves
On Mon, 2012-07-30 at 11:42 +0200, Erik P. Olsen wrote:
 On 30/07/12 10:44, Bryn M. Reeves wrote:
  What state is the device in following a resume?
  (/sys/block/sd*/device/state).
 
 What is that? I don't see anything near this path on my system. You probably 
 mean a faulty resume, in that case I'll have to wait til it happens again.

No, I meant what state the device is in following a resume.. It should
be running prior to the suspend (and at all times during normal
operation).

The above path is a sysfs attribute that indicates the state of the
block device.

E.g. for sda on my system:

$ cat /sys/block/sda/device/state 
running

Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: External disk problem.

2012-07-30 Thread Bryn M. Reeves
On Mon, 2012-07-30 at 17:47 +0800, Ed Greshko wrote:
 On 07/30/2012 04:44 PM, Bryn M. Reeves wrote:
  What state is the device in following a resume?
  (/sys/block/sd*/device/state).
 
 I am not so sure that is a good indication of anything.  I have 2 drives on 
 my system /dev/sda and /dev/sdb.

It's a fine indication of the state the kernel thinks the device is in
(that's what it's there for). If that file indicates the device is
running but in fact you can't issue I/O to it you'd suspect a problem in
the driver. If it's blocked or offlined you can look into what caused
that to happen.

 [egreshko@meimei block]$ cat /sys/block/sdd/device/state
 running

Are they working? What are you trying to prove? For an active, working
device this is the normal state.


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: External disk problem.

2012-07-30 Thread Bryn M. Reeves
On Mon, 2012-07-30 at 06:48 -0300, Fernando Cassia wrote:
 On Mon, Jul 30, 2012 at 6:32 AM, Bryn M. Reeves b...@redhat.com wrote:
  Do you see that happen a lot?
 
 Do you mean the error, or the sharing of scripts?

The error: it's an abnormal condition so if you are seeing that,
especially if it is happening frequently, there is a problem.

When a device is removed the kernel issues remove uevents that should be
picked up by udev and cause the device nodes to be removed.

Bryn.


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Linux or GNU/Linux

2012-07-30 Thread Bryn M. Reeves
On Mon, 2012-07-30 at 10:50 +0100, Phil Dobbin wrote:
 Interesting, I've never come across such a beast. Could you supply a URL
 to one that you'd recommend as I'd be fascinated to check one out?

Embedded systems may use considerably less GNU bits than we're used to
in a general purpose distribution: dietlibc/uClibc, busybox etc. You can
even compile the kernel with a non-GCC compiler if you really want to.

Going back in time, prior to glibc 2.0's widespread adoption by distros,
most used a Linux-specific glibc fork named Linux libc that was
maintained outside the GNU project.

For general purpose use on modern systems though the GNU components tend
to make much more sense than the alternatives.

Bryn.
 

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: External disk problem.

2012-07-30 Thread Bryn M. Reeves
On Mon, 2012-07-30 at 12:09 +0200, Erik P. Olsen wrote:
 On 30/07/12 11:51, Bryn M. Reeves wrote:
  On Mon, 2012-07-30 at 11:42 +0200, Erik P. Olsen wrote:
  On 30/07/12 10:44, Bryn M. Reeves wrote:
  What state is the device in following a resume?
  (/sys/block/sd*/device/state).
 
  What is that? I don't see anything near this path on my system. You 
  probably
  mean a faulty resume, in that case I'll have to wait til it happens again.
 
  No, I meant what state the device is in following a resume.. It should
  be running prior to the suspend (and at all times during normal
  operation).
 
  The above path is a sysfs attribute that indicates the state of the
  block device.
 
  E.g. for sda on my system:
 
  $ cat /sys/block/sda/device/state
  running
 
 It says running both before and after suspend/resume.

When the problem occurs? You'll also need to adjust the device for the
one that's showing the problem. I used sda as an example as I'm
currently on a single disk machine.

Bryn.


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: External disk problem.

2012-07-30 Thread Bryn M. Reeves
On Mon, 2012-07-30 at 18:04 +0800, Ed Greshko wrote:
 On 07/30/2012 05:59 PM, Bryn M. Reeves wrote:
  On Mon, 2012-07-30 at 17:47 +0800, Ed Greshko wrote:
  On 07/30/2012 04:44 PM, Bryn M. Reeves wrote:
  What state is the device in following a resume?
  (/sys/block/sd*/device/state).
  I am not so sure that is a good indication of anything.  I have 2 drives 
  on my system /dev/sda and /dev/sdb.
  It's a fine indication of the state the kernel thinks the device is in
  (that's what it's there for). If that file indicates the device is
  running but in fact you can't issue I/O to it you'd suspect a problem in
  the driver. If it's blocked or offlined you can look into what caused
  that to happen.
 
  [egreshko@meimei block]$ cat /sys/block/sdd/device/state
  running
  Are they working? What are you trying to prove? For an active, working
  device this is the normal state.
 
 
 
 There is no disk plugged into the SATA port.   As I said  I only have 2 
 sda and sdb.   There is no sdD.
 So, what is running? 

In this case a suggestion that for whatever reason the kernel hasn't
properly dealt with the removal of the device that had been assigned to
sdd (it presumably existed at some point for the sysfs path to have been
created).

If you're not getting entries in the logs when the problem happens you
can either look at other ways to get the logs out (e.g. serial console)
or you can try suspending and resuming from the console to see if
anything is printed (I have no idea if you are or not - you haven't
actually described the problem you are seeing so I'm just assuming it's
the same as Erik described since you are replying to his thread).

Bryn.


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: External disk problem.

2012-07-30 Thread Bryn M. Reeves
On Mon, 2012-07-30 at 18:20 +0800, Ed Greshko wrote:
 On 07/30/2012 06:16 PM, Bryn M. Reeves wrote:
  In this case a suggestion that for whatever reason the kernel hasn't
  properly dealt with the removal of the device that had been assigned to
  sdd (it presumably existed at some point for the sysfs path to have been
  created).
 
 Fresh install, 2 days ago  Never had a drive there...  And Never had a 
 drive in sdc either...

Do you have a card reader device?
 
  If you're not getting entries in the logs when the problem happens you
  can either look at other ways to get the logs out (e.g. serial console)
  or you can try suspending and resuming from the console to see if
  anything is printed (I have no idea if you are or not - you haven't
  actually described the problem you are seeing so I'm just assuming it's
  the same as Erik described since you are replying to his thread).
 
 I don't have *any* problems on my system  I never said I didcheck the 
 archive.

Not clear why you're replying to the thread then.

 I am simply dubious that this state has any valid meaning.

Supporting Linux storage configurations is my day job and I'd tend to
disagree. I guess the SCSI maintainers share that view since they've
chosen to maintain the file (and the internal state it maps to) for some
time.

Not knowing how debug from or interpret a particular piece of
information does not render that information useless.

Bryn.


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: External disk problem.

2012-07-30 Thread Bryn M. Reeves
On Mon, 2012-07-30 at 18:35 +0800, Ed Greshko wrote:
 On 07/30/2012 06:29 PM, Bryn M. Reeves wrote:
  Do you have a card reader device?
 
 Yes  And that is sde.

I would guess it's a multi-card reader device and those additional SCSI
device nodes correspond to empty slots within the reader (and you'll
probably find that the removable attribute is set on them).

 ?   What?   Only the OP with the problem is allowed?  You mean I can't 
 ask any questions or give my input?

Not at all but posts should be relevant to the thread and explain
anything that other readers might need to know (like the fact that you
don't have any problems, are running commands on a different type of
device that's also removable etc.).

Posting random output from your machine as though it proves something is
not helpful to anyone and just serves to confuse people.

Install sg3_utils and run sg_map -i if you really want to know (with
root privileges if you want the inquiries to succeed).

 Well...   Since it is your day job.   And I am sure you are willing to impart 
 your wisdom on folks

Fedora lists are something I do on my own time for fun and because I am
a user of the distribution. I don't get paid for that.
 
 If a drive is not plugged into a port, then what does running mean?  

In your case I would imagine that it's a removable SCSI device that has
no media present but you're asking us to investigate through a letterbox
- if you're interested in understanding something you need to post
enough information about it that readers can make an informed comment.

Bryn.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Configuring graphics(resolution) on Dell Vostro 460 i5

2012-07-30 Thread Bryn M. Reeves
On Mon, 2012-07-30 at 19:05 +0800, Ed Greshko wrote:
 I find the output of lspci a bit odd.   I thought that it would indicate the 
 card type.  Mine, for example, is ...
 
 1:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce GT 230] 
 (rev a2)

Getting numeric output indicates that the pci.ids database doesn't
contain an entry for this model (usually new devices that appeared
later).

 Do you know what model you have?  It may be that the card is not being 
 detected properly or the card is not support by the default NOUVEAU driver.

I think 0de2 is NVIDIA GeForce GT 420. You can get an updated PCI IDs
table using the update-pciids command (part of pciutils - note that this
will replace the one installed by the hwdata RPM so you may want to back
it up if you want to preserve the original).

This ID is defined in the current list but not the version present on my
F17 systems:

   0de2  GF108 [GeForce GT 420]

If it's a recent device that may explain why it's not known to nouveau
(if that's the case).

The X log should show whether it's using vesa or nouveau.

Bryn.


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: External disk problem.

2012-07-30 Thread Bryn M. Reeves
On Mon, 2012-07-30 at 05:55 -0700, ny6...@gmail.com wrote:
 On Mon, Jul 30, 2012 at 09:44:24AM +0100, Bryn M. Reeves wrote:
  On Sun, 2012-07-29 at 20:13 -0700, ny6...@gmail.com wrote:
   That's not a disk problem. That's the disk failing to remount itself
   properly after the suspend. This is very common. In fact, I wrote a script
   (in Gentoo) to unmount external drives before a suspend operation, so that
   the numbering of disks in /dev don't become littered with 'zombie' drives.
   
   I'm sure there's a super-slick way of getting drives to remount themselves
   after a suspend, but mounting drives is relatively easy to do either with
   gui or cli tools, so I don't tear my hair over it.
  
  An eSATA device should be able to suspend and resume properly (just like
  the other ATA devices in your system).
  
  Debugging it may be difficult unless you can get console logs showing
  what's happening during the suspend/resume cycle (serial console or
  possibly netconsole).
  
  What state is the device in following a resume?
  (/sys/block/sd*/device/state).
  
 
 Never knew about that file. Thanks!

It only shows the SCSI state of the device but it can be a useful check
when trying to narrow down the problem. If the SCSI layer was aware of
problems it will often have set the state to 'offline'. If the device is
out to lunch but the file still shows 'running' it suggests that there
is a problem lower down and that the upper layers have not been informed
of a problem.

Bryn.


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


gnome 3 extensions install fails silently

2012-07-20 Thread Bryn M. Reeves
Attempting to install the put windows extension for gnome3:

https://extensions.gnome.org/extension/39/put-windows/

I get the Download and install 'Put Window' from extensions.gnome.org?
dialog and OK it and the extension apparently fails to install
somewhere.

Couldn't find anything obvious (e.g. .xsession-errors) and I've managed
to install a couple of other extensions that are not currently
RPM-packaged in Fedora this way.

Any clues on how to debug this further?

Cheers,


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: How to debug high system load?

2012-07-12 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 07/12/2012 02:36 PM, Steven Stern wrote:
 On 07/12/2012 06:00 AM, Suvayu Ali wrote: rottled down and are at
 about 1%.
 
 So my question is since CPU usage is already so low, what could
 be driving up the system load? This is bugging me since I also
 see a general sluggishness compared to a much faster system early
 this year.
 
 Thanks for any ideas.
 
 
 Are you listening to music?  Doing background uploads or
 downloads?
 

That would normally also be reflected to some extent in CPU usage and
process activity as shown in top (unless the problem was buffering
them from a really slow network file system or something).

I would think Andrew is correct - the load is most likely being driven
up by processes that are waiting on I/O (D-state, aka uninterruptible
sleep).

On Linux the load average represents the 1m, 5m and 15m decaying
average of the number of processes that are either runnable (waiting
on a runqueue or actually executing on the CPU) /and/ the number of
processes blocked on I/O.

There's a fair bit of inaccurate information about the definition of
the load average on Linux floating around - this comes from the fact
that it's calculated slightly differently on the Sys V UNIXes and BSD
vs. Linux. Traditionally only the runqueue length (tasks running or
waiting to be scheduled) are counted as active.

On Linux the number of active processes includes both tasks on the
runqueue and tasks blocked on I/O; this means it's hard to compare the
numbers meaningfully between BSD/Solaris and Linux even when running
on the same hardware.

Even well-known Linux magazines have managed to print entire articles
that got this completely wrong in the past..

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/+3FwACgkQ6YSQoMYUY96EwgCgquBBvyp8Y5gc6NPirj/STDmw
fGcAoLwQzPw1gcVAUgVZuxdZas/08Wp4
=Mznf
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: How to debug high system load?

2012-07-12 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 07/12/2012 03:29 PM, Suvayu Ali wrote:
 Hi Bryn,
 
 On Thu, Jul 12, 2012 at 03:17:01PM +0100, Bryn M. Reeves wrote:
 
 That would normally also be reflected to some extent in CPU usage
 and process activity as shown in top (unless the problem was
 buffering them from a really slow network file system or
 something).
 
 
 I do have AFS (authenticated with Kerberos) on my laptop, although
 I'm not using it at the moment. There are no background jobs that
 should access it either. Only time AFS is used is when I explicitly
 run some jobs (through python scripts) for my research.
 

Hi Suvayu,

It's possible that you have processes spending brief periods in
D-state - short enough that they are hard to spot in top with the
default sample period but long enough to count toward the load average
(it's possible there's some other explanation though but that's what
I'd try to rule out first).

You could use tools like blktrace, iotop and latencytop to try to
investigate further or if you're willing to install systemtap you
could use the sleepingBeauties.stp script to look for processes
spending 10ms in this state (and dump their stacks when they do).

Regards,
Bryn.

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

iEYEARECAAYFAk/+4JAACgkQ6YSQoMYUY95XTACfWX2MwOa2GkWGujMC37NUVaOP
GDoAnjrWVT1pafqf7Qv/Yf1xs4tvta32
=FzSI
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Fedora 17 - Only one kernel

2012-07-10 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 07/10/2012 02:31 PM, Mateusz Marzantowicz wrote:
 On 10.07.2012 11:26, Dave Cross wrote:
 On 10 July 2012 10:15, Mateusz Marzantowicz
 mmarzantow...@osdf.com.pl wrote:
 
 Is it possible that broken kernel which won't boot or cause any
 other serious problems is released in Fedora 16 or 17? I know
 that in Rawhide something might go wrong, but in 16, 17?
 It's happened to me more often than I'd like. Probably once per 
 release (and I've been using Fedora right from the start).
 
 Lucky me, I can't remember going into such unpleasant situation
 with different Linux distros so I thought only one kernel will be
 enough.

I don't recall the last time that it happened to me but of course
everyone's mileage varies.

 Maybe having two kernels installed is more comfortable, you'll
 never know when something breaks. I must reconsider my initial
 idea. Thanks a lot for any thoughts.

This has long been considered best practice - when I was teaching RHCE
classes 8+ years ago we always advised a kernel update procedure like:

- - install new kernel
- - reboot to test
- - remove old kernel

That way you have a get out if for any reason the new kernel will not
boot or proves unreliable.

Of course, there's rarely any harm in skipping the last step and not
removing the kernel until later. This was back in the days of manual
updates with rpm -i/F but it carries over to yum equally well (there
was a yum plugin, installonlyn, that used to automate this but I don't
see it at the moment).

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/8M8wACgkQ6YSQoMYUY96/jQCfY3/IYz+cllJBxN1QxcT0QT29
W/UAoMTwWuAcG1Ki26YIY/2l0+HVOwYq
=lLbM
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mount usb camera as a disk

2012-07-09 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 07/09/2012 12:18 PM, Gergely Buday wrote:
 fedora did not automount my camera. So I tried lsusb, which has
 found it, but even in verbose mode it did not tell me any data that
 can be fed to mount. How can I mount then my camera?
 
 Bus 001 Device 004: ID 04b0:031d Nikon Corp.

Does this camera mount under other distributions?

You might find that the device doesn't support access via USB
mass-storage (or if it does that for some reason it isn't working).

The USB ID looks like a Nikon Coolpix L120 - I found some lsusb output
for that device that seems to suggest that it only implements the
Imaging interface class (so it will use Picture Transfer Protocol via
e.g. gphoto or shotwell rather than fs access via USB mass-storage).

Try the device with one of those programs and if that doesn't work
post the output of lsusb -vs bus:dev, e.g.:

  $ lsusb
  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching
  Hub
  Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate
  Matching Hub
  Bus 001 Device 022: ID 17ef:480f Lenovo Integrated Webcam [R5U877]
  Bus 001 Device 034: ID 0a5c:217f Broadcom Corp. Bluetooth Controller
This one:
  Bus 002 Device 045: ID 0781:556c SanDisk Corp.
  ^^^^^^

  $ lsusb -vs 002:045 | grep bInt
  Couldn't open device, some information will be missing
bInterfaceNumber0
bInterfaceClass 8 Mass Storage
bInterfaceSubClass  6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
  bInterval   0
  bInterval   1

Full output here:

  http://fpaste.org/U80k/

This is for a SanDisk USB flash key (so it definitely does have
mass-storage support ;).

The output I found for the L120 is here:

  http://tinyurl.com/7ytclk7 [sourceforge]

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/6w94ACgkQ6YSQoMYUY969FACg4a/40kPYyDxm7hY1j3umJOIa
aVAAn0OmFqWFx+MO01SZk1Dxnuihc3+n
=HYXW
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: mount usb camera as a disk

2012-07-09 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 07/09/2012 12:52 PM, Gergely Buday wrote:
 Bus 001 Device 004: ID 04b0:031d Nikon Corp. [gergoe@oldship
 regio_et_religio]$ lsusb -vs 001:004
 
 Interface Descriptor: bLength 9 bDescriptorType
 4 bInterfaceNumber0 bAlternateSetting   0 bNumEndpoints
 3 bInterfaceClass 6 Imaging bInterfaceSubClass  1 Still
 Image Capture bInterfaceProtocol  1 Picture Transfer Protocol
 (PIMA 15470)

So it certainly appears that your device reports the same information
as the other output I'd seen.

You can try looking in your camera's instructions to see if there is a
configuration option as Patrick suggested but failing that you will
need to use a PTP-capable import tool to get the pictures of the
camera (or remove the card and use a card reader attached to the PC).

Regards,
Bryn.

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

iEYEARECAAYFAk/62N0ACgkQ6YSQoMYUY944LACgoSWjoKJJiwtbIxIxeaYb0tEG
+ZMAoODVUDq2vtjhhY9xUTsE2TqastIN
=Mq5J
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: sda2 is corrupted

2012-07-06 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 07/06/2012 03:11 PM, Jim wrote:
 I run  dd if=/dev/sda2 of=/dev/sdb1  to copy, supposely a 26gb
 image to sdb1 but i do not see a image on  sdb1 .
 
 Confused ???

That writes a block-for-block image of the content of sda2 to the
device sdb1. It will overwrite any file system, LVM label, swap label
etc. on the device as well as the contents.

If you want to create an image of a device in a file system you need
something like:

dd if=/dev/sda2 of=/tmp/sda2.img

Where /tmp is any path to a mounted file system that you can write to
and that has enough free space for the entire device image. You can
compress these inline if you wish to save space.

Regards,
Bryn.


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

iEYEARECAAYFAk/289cACgkQ6YSQoMYUY94oDACfbdOh1MnFXt5/dnUbbrfJ0fW8
U5sAoNnz0hnAHcsWE5E0x5bJ1azNZAc+
=SE7B
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: sda2 is corrupted (HOWTO NOT HELP)

2012-07-06 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 07/06/2012 05:35 PM, Jim wrote:
 Thanks Rick I have done all that you have said but now I'm running
 into read-only file systems, what command would I use to change the
 ro to rw on external hard drive sdb1 ?
 

It was probably still mounted from your first attempt - when a file
system is placed in read-only mode it remains mounted until an
administrator either unmounts it manually to clean up, or the system
is rebooted.

Regards,
Bryn.

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

iEYEARECAAYFAk/3It4ACgkQ6YSQoMYUY96i+gCgjN/OMTAnz/P9/T1XeIpkFxrI
xiEAn3+hwQDTwe0Doq12zzRU1yZUqXnq
=SKXw
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: sda2 is corrupted (HOWTO NOT HELP)

2012-07-06 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 07/06/2012 05:35 PM, Jim wrote:
 Thanks Rick I have done all that you have said but now I'm running
 into read-only file systems, what command would I use to change the
 ro to rw on external hard drive sdb1 ?
 

Since the original dd command:

dd if=/dev/sda2 of=/dev/sdb1

Probably overwrote the file system that was on sdb1 (even though it
was mounted - Linux/UNIX will not stop you from doing that) this is
the most likely cause of the file system now being read only.

If you give dd the path of a block device (for e.g. /dev/sda2 or
/dev/sdb1) then it will write or read directly to or from the device.

This is useful for copying file system images between devices but is
probably not what you wanted here.

The if= argument to dd is the input file - where to read from - and
the of= argument is the output - where to write to. If this command
ran for any length of time it will have overwritten the file system on
sdb1.

When creating an image in another file system the if= argument must
be a device and the of= argument needs to be a path that refers to a
location on the target file system.

For instance, if I have /dev/sdc5 mounted on /home:

# mount | grep home
/dev/sdc5 on /home type ext3 (rw)

And if I want to take an image of /dev/sda2 and store it in a file
named sda2.img in my home directory I would run:

# dd if=/dev/sda2 of=/home/bmr/sda2.img

You need to do something similar but specifying a path that
corresponds to the correct mount path for your sdb1 file system. When
taking an image like this if is a device node in /dev and of is a
path in the mounted file system.

The reason your file system is now read-only is that when ext2/3/4 (or
other file systems) detect an inconsistency with what's expected to be
on the disk they will place the fs in read-only mode to prevent
further damage.

When the kernel started reading unexpected data from sdb1 it triggered
this mechanism and aborted the file system.

The file system on sdb1 is possible damaged beyond repair at this
point so if there was nothing valuable on it already you are probably
best off unmounting it and creating a new file system on the device.

You should take some time to make sure you have everything correct
this time and ask questions if you're unsure about the right commands
to use but assuming sdb1 did not contain anything you want to recover
you could create a new file system on it, mount it, and create the
image with steps like the following:

# umount /dev/sdb1[ ensure that the device is not mounted before
   proceeding ]

This umount is probably the step you missed if you're still seeing
read-only messages.

# mkfs.ext4 /dev/sdb1 [ or mke2fs -t ext3 as Rick suggested - they
will both give you the same result ]
# mount /dev/sdb1 /mnt
# dd if=/dev/sda2 of=/mnt/sda2.img

This will create a new file named sda2.img in the top-level directory
of the new file system on sdb1 that is mounted at /mnt.

You can check that the mount command worked by running:

# dmesg | tail
EXT4-fs (loop7): mounted filesystem with ordered data mode
SELinux: initialized (dev loop7, type ext4), uses xattr

The device name will be different but you should see the mount message.

If you try this and get any errors it's probably a good idea to check
them out before carrying on.

You can find an example of all these commands and their output in
fpaste here: http://fpaste.org/XYNU/

Don't expect the output to be identical on your system but it should
provide a guide (I've tried to highlight where you should see
something different).

Regards,
Bryn.
`
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/3I2cACgkQ6YSQoMYUY977BgCgmgUjvNItw7ZQnyOA2QWeVmhW
XkwAoJ35Dy24Wc7VoEBz5OkkVg0orJoH
=PUag
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Copying USB stick fails with device errors

2012-06-08 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/08/2012 04:03 PM, Alex wrote:
 Hi,
 
 Use an offset, e.g.
 
 # mount -o loop,offset=4 
 
 Thanks, I should have thought of that. Alas, it didn't work.
 
 # mount -o loop,offset=4 -t vfat myusb_sdb.dd /media/desktop/ 
 mount: wrong fs type, bad option, bad superblock on
 /dev/loop0, missing codepage or helper program, or other error 
 In some cases useful info is found in syslog - try dmesg | tail
 or so
 
 
 I believe the offset is in bytes, not sectors.  If I'm right,
 then you need: mount -o loop,offset=2048 -t vfat myusb_sdb.dd
 /media/desktop/
 
 That was it. Thanks so much. It's now mounted successfully.

If you're trying to access partitions within a disk image it's usually
much easier to use the loop device and kpartx (from multipath-tools
but installed in a separate sub-package in recent Fedora).

Bind the image to a loop device:

# losetup /dev/loop0 /tmp/sda.img
# kpartx -a /dev/loop0

This will map partitions defined in the image as new device-mapper
devices with names like /dev/mapper/loop0p1 (for the partition one)
and has the advantage of supporting all common partition tables and
making all partitions available with a single command.

The resulting device-mapper devices can then be mounted directly as
any other block device.

Options are available to control the delimiter ('p' by default) used
and whether to include it always or only when the device name ends in
a digit.

When done you can tear down a (non-busy) map with:

# kpartx -d /dev/loop0

If that fails for any reason (e.g. you removed the partition table
while the maps were active) then you can clean up manually with
dmsetup remove name.

If you find yourself working with partitioned images a lot then it's
worth taking a look at libguestfs and guestfish - these are tools
designed for working with VM images but they should work just as well
with any partitioned disk image.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/SIhYACgkQ6YSQoMYUY95BnQCfXhn83BajEd6u4licNlqBLcyH
PIkAn1FqCiCo9ZjXJ1EJu1386eENc1id
=HRlw
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Filesystem format for external hard disk

2012-06-06 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/01/2012 10:06 PM, Thibault Nélis wrote:
 On 06/01/2012 04:45 PM, Bryn M. Reeves wrote:
 Or is the ext4 code able to mount ext3 now (I didn't think so)?
 
 I'm pretty sure it is fully backward compatible yes, even with ext2
 from what I read.  It simply doesn't use all the new and fancy
 features obviously.

Actually checking it's a fairly new feature (originally ext4 went off
on its own for quite a while to avoid unsettling the older exts). It
was added upstream a couple of years ago:

commit 24b584240a0006ea7436cd35f5e8983eb76f1e6f
Author: Theodore Ts'o ty...@mit.edu
Date:   Mon Dec 7 14:08:51 2009 -0500

ext4: Use ext4 file system driver for ext2/ext3 file system mounts

And it was turned on in the Fedora kernels for f16:

* Thu Jul 21 2011 Chuck Ebbert cebb...@redhat.com  3.0-0.rc7.git10.1
- - 3.0-rc7-git10
- - Use ext4 for ext2 and ext3 filesystems (CONFIG_EXT4_USE_FOR_EXT23=y)

I'd not noticed it before as none of this gets built as modules now so
you don't see the separate lsmod entries.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/PI4EACgkQ6YSQoMYUY9632wCgsErFYBRVn4TLOt8Z+MjLc4d9
KroAn3GCrUGP9c9N4cFFiGinb7vu
=lx+y
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: jbd2 headache

2012-06-06 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/06/2012 04:19 AM, Doug Wyatt wrote:
 I have a 2TB HD with 1463 pending bad blocks, 0 reallocated so
 far. All the data has been moved to another HD, the problem HD
 unmounted. Full SMART scan verified the pending bad blocks.
 
 However, I can't run badblocks on /dev/sdc1 because it is
 apparently in use.  lsof tells me there are 3 instances of
 jbd2/sdc1.
 
 It should be no problem to use -f with badblocks in this case, but 
 is there any way to stop jdb2 from accessing the unmounted
 partition?

Sounds like bug 808795:

kernel leaks references to block devices

https://bugzilla.redhat.com/show_bug.cgi?id=808795

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/PUOsACgkQ6YSQoMYUY965XwCgwNTsuK7G3bHIjnWRa5yc7qg1
HBcAoIdICcgdX5PuGVFyoFH4v6ZiErP4
=5vIK
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Red Hat Will Pay Microsoft To Get Past UEFI Restrictions

2012-06-01 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/01/2012 04:56 AM, JD wrote:
 FWIW, perhaps - just perhaps - this is an attempt by MS and redhat 
 (and perhaps others like Oracle), to try an convince government
 customers that a system with a signed bootloader and kernel and
 modules, provides for such greater security, that the gov should
 spend the money to revamp all their installations.

Afaik it's the other way around. The government customers have
mandated (via updated security standards) that operating systems
qualified for use in certain environments and duties must support
strong verification including code signing and checking.

 Given the atmosphere we live in today (be it real or fabricated), 
 and if my supposition re: the motive for a signed bootloader are
 true, then it seems the strategy might just work - and the
 colluding parties will get rich off of the taxpayers of course.

I think Occam's razor applies here.

Regards,
Bryn.


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

iEYEARECAAYFAk/IoJ4ACgkQ6YSQoMYUY95ViwCfbke/24uaGfUoItaHixkKIgSg
R20An2tqrCZ5Xm8rzdLz/sE/3SlCLw+6
=sy3D
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Red Hat Will Pay Microsoft To Get Past UEFI Restrictions

2012-06-01 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/01/2012 12:15 PM, Alan Cox wrote:
 On Fri, 01 Jun 2012 11:59:42 +0100 Bryn M. Reeves
 b...@redhat.com wrote:
 
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
 On 06/01/2012 04:56 AM, JD wrote:
 FWIW, perhaps - just perhaps - this is an attempt by MS and
 redhat (and perhaps others like Oracle), to try an convince
 government customers that a system with a signed bootloader and
 kernel and modules, provides for such greater security, that
 the gov should spend the money to revamp all their
 installations.
 
 Afaik it's the other way around. The government customers have 
 mandated (via updated security standards) that operating systems 
 qualified for use in certain environments and duties must
 support strong verification including code signing and checking.
 
 Follow where that came from - this is all part of a long term plan
 some of these big companies and their lobbyists are playing. The
 push to mandate it came from the people wanting to make tons of
 cash selling it. That's how corporate lobbying works in all sorts
 of areas.

No disagreement at all but the number of crackpot conspiracy claims
that seem to be cropping up in these discussions makes it difficult to
discuss things rationally.

Bickering over who in the open source world has screwed who on this
(when it's really other groups who have all the puppet strings to play
with) just harms our chances of getting a strong response and actually
changing this.

 I think so likewise - there are there who aspire to it but 'secure
 boot' in its current form straight forward corporate greed and
 monopoly playbooks.

Ack. I am glad to not be responsible for any of it.

Regards,
Bryn.

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

iEYEARECAAYFAk/ItGUACgkQ6YSQoMYUY96lLgCfUu5BpK1l8Ewq39I+dQ4i1U7U
Pq8Anj3L1oioMyJ6fDxp0QgNcy7x7aDe
=EXd1
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Red Hat Will Pay Microsoft To Get Past UEFI Restrictions

2012-06-01 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/01/2012 12:18 PM, Sam Varshavchik wrote:
 Who gets to make a call what is trusted, and what even trusted
 means.

Slightly off-topic but a favourite Ken Thomson talk/paper of mine that
is very relevant to the discussion of trust in software systems:

http://cm.bell-labs.com/who/ken/trust.html

If you're a programmer and you've never written your own quine I'd
suggest giving it a crack before reading the source code. It's much
more fun to figure out on your own.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/ItNoACgkQ6YSQoMYUY97jLwCeLbTSwrLVfw43x6VdZBP5BUap
B28An1tKsSp2l8hRyghj39OOX1hXiqlg
=tC1F
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Filesystem format for external hard disk

2012-06-01 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/01/2012 01:14 PM, Alan Cox wrote:
 Aside from some clear performance wins for not-that-uncommon 
 workloads (deleting lots of large files, storing large images 
 etc) there's the fact that most of the attention upstream these 
 days is going into ext4 - - the earlier ext* file systems are 
 pretty much in maintenance mode today.
 
 You are also generally going to be using the ext4 code for ext3 
 file systems.

I thought there were some pretty big differences? E.g. jbd/jbd2,
dellaloc improvements only in ext4, metadata performance improvements etc.

Just looking at balloc.c in git I see ~2500 changed lines.

Or is the ext4 code able to mount ext3 now (I didn't think so)?

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/I1Z0ACgkQ6YSQoMYUY95ndwCgyDASnYWLvXPZFawNmdQ20X7A
mQAAmwbz+Tkpm6MR7QgjZgTTudgPlDGT
=JUQr
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: cannot create-md on DRBD with external meta-disk

2012-06-01 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/01/2012 03:55 PM, Lutz Griesbach wrote:
 Hi there
 
 Fedora17 with drbd 8.3.11 an i am trying to create a resource with 
 external meta-disk:
 
 resource cos62 { #meta-disk internal; meta-disk
 /dev/vg_drbd/lv-cos62-drbd-meta;

- From the parse error you're getting it seems like drbd is expecting an
index following the device parameter. According to the documentation
that should be optional:

meta-disk internal, meta-disk device, meta-disk device [index]

  http://www.drbd.org/users-guide/re-drbdconf.html

It shouldn't matter (imho) but I've usually seen resources like this
defined with disk appearing before meta-disk and with device defined
in the parent resource (it should get inherited by the two fed-17-*
blocks), or with nothing in the parent and device/disk/meta-disk
defined in volume sections on individual hosts.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/I2uQACgkQ6YSQoMYUY97q2QCeLddX30i9faabjB6T2Zpkb4tR
go0AoJR9ukhvk+j9zHtQ3BeE5HBy35MF
=v5Zw
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: cannot create-md on DRBD with external meta-disk

2012-06-01 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/01/2012 04:24 PM, Lutz Griesbach wrote:
 as you described but the parse error still appears.
 
 [root@fed17-2 drbd.d]# drbdadm create-md cos62 drbd.d/cos62.res:8:
 Parse error: '[' expected, but got ';' (TK 59)
 
 Also i am not sure, if the parse error is exactly the meta-disk,
 but the error is quoting line 8, wich is the meta-disk entry

Right: and the line/token in your first post also suggested it was
here. The only legitimate reason to expect a '[' here is for an index
argument to the meta-disk, only, those are supposedly optional.

It might be worth asking on the drbd mailing list or #drbd on Freenode
- - I haven't come across this error before but I've not run any
terribly complicated setups with DRBD.

Regards,
Bryn.

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

iEYEARECAAYFAk/I4AAACgkQ6YSQoMYUY95EHwCgj68oUkvQq2gwBMHo06KdiXp4
EPMAoJuUD40Vi/W/mxQAgF3j2u6ZhEDi
=Eupk
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: I do think the world is coming to a end

2012-05-31 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/31/2012 07:04 AM, Joe Zeff wrote:
 On 05/30/2012 08:01 PM, Tim wrote:
 On the one hand, it says calls do not pass through it (it just
 organises the two parties to connect to each other).  And, on the
 other hand, it talks about not exposing the calling party's IPs,
 which is an impossible thing to do for peer-to-peer.  The only
 way to hide the IPs is to have at least one proxy in the middle,
 where the entire call passes through.
 
 Before it can connect the two parties, it has to know both of their
 IP addresses even if the call is managed peer-to-peer once the
 connection is made.

Although skype probably has this requirement it's not true in the
general case. There are methods available that allow two
mutually-anonymous parties to set up a rendezvous via (also anonymous
and untrusted) third parties in such a way that no party can discover
the network identity of the others or eavesdrop on the resulting
communications.

The TOR hidden service model implements this via rendezvous and
introduction points that allow nodes to discover and connect to
published hidden services.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/HXTkACgkQ6YSQoMYUY961vACgxQwTPrAEHoPP/g5Rycj2jxm0
a1cAniAb39mT8LBQptGx1Y35R+UeO4+n
=91dr
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Filesystem format for external hard disk

2012-05-31 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/31/2012 12:15 PM, Paul Smith wrote:
 I have got a new external hard disk, which I would like to use as
 a mirror of my home directory (for backup purpose). What format for
 the external disk filesystem do you recommend? And what the proper
 command to accomplish the formatting?

If you need to access the backups from other non-Linux systems you may
be better off with something like FAT32 (or even NTFS) as these will
mount with no trouble or additional software on Windows and Mac
systems as well as just about any Linux or BSD distro.

You can store the backups in an archive format like tar which avoids
the problem of mapping Windows/DOS ownership and permissions to UNIX
notions.

You could also look at UDF for this (it's supported by most modern
systems now) but I'll admit I've never used it for writable volumes
personally.

If you don't care about compatibility with other platforms then you
can chose from the available local file systems. This more-or-less
boils down to ext4, xfs and btrfs these days.

I'm using a couple of 1TiB drives in a pair of eSATA cradles (one at
home, one at the office) with an LVM2 VG and XFS for this sort of use.
I add LVM just so that I can take snapshots of volumes on the disks.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/HcPQACgkQ6YSQoMYUY95xiwCgg7VwyzGFltMcU3/nbm1O9H2d
hfkAn1ujknEXGvTq0vb523nn3Bx2/x1s
=KrnU
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Filesystem format for external hard disk

2012-05-31 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/31/2012 02:35 PM, Jeff Gipson wrote:
 On Thu, May 31, 2012 at 12:15:58PM +0100, Paul Smith wrote:
 Dear All,
 
 I have got a new external hard disk, which I would like to use as
 a mirror of my home directory (for backup purpose). What format
 for the external disk filesystem do you recommend? And what the
 proper command to accomplish the formatting?
 
 
 ### End of Message from Paul Smith ###
 
 For best advice, more information would be helpful... For example, 
 what's your retention policy?  If you only need a single backup,
 and not historical backups *and* you are using LVM, you might
 consider just storing LVM snaphots on the backup drive. If you want
 a more flexible solution, you might try using rsync. Tar and dump
 are also still used.

That would mean you would need to add the external disk to the system
VG (in order to be able to snapshot logical volumes from the system).

Generally that's a bad idea: if you're spreading VGs over multiple
devices, especially with snapshotting, you typically want redundancy
below the VG (i.e. mirrored or RAIDed PVs). You could also use LVM
mirroring but then you're adding more complexity to the configuration.

Things can also get ugly here if the backup disk is not going to be
present at all times (for one thing if you do ever add one to your
system VG you'll probably need to update the initramfs to ensure it
contains the required modules for the external device).

 As far as your specific question, you need the name of the device,
 and I recommend creating a UDEV rule so that every time you plug in
 the external hard drivei, the partition you backup to gets the SAME
 link in /dev. This can save you from accidentally backing up to a
 thumbdrive that was also in the USB port, or maybe a different hard
 drive. Let's

You can also just set a label on it - udisks and the modern desktop
environments will then mount it under the media directory with a name
based on the label and this will propagate to other systems you may
use the device on without the need to copy rules files around the place.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/HeaUACgkQ6YSQoMYUY97YSwCfRNn5oMHAXYmon5nDqdRPTwzX
y7sAoMjsxEOUaExP5mIK1mDU/VDDdRsx
=GG12
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Filesystem format for external hard disk

2012-05-31 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/31/2012 03:58 PM, Jeff Gipson wrote:
 That's a good point. I guess now would be a good time to mention
 that a volume snapshot != backup (see below), however, I've heard
 of snapshots sometimes being used to create a still or
 point-in-time copy of the system, which itself is backed up,
 since backups can take a considerable amount of time.

Absolutely - this was the first practical use I made of snapshots with
LVM1. It effectively lets you widen the backup window by only having
to briefly pause services while the snapshot is created. The services
then resume while the backup proceeds from the snapshot device. The
cost is a performance impact from the snapshot (that is greater than a
normal backup's load but which allows the service to keep running).

 Labels are okay, but I dislike them because they are abitrary. If
 labels are used, then don't used a label like backups because
 it's too likely to have a naming collision. Use a label like
 red-rover red-rover which is less likely to have collisions.

Yeah, good point. I usually name things with my nick, then a roll and
then an instance number or index (e.g. bmr_data2). It's not perfect by
any means but does avoid many of the problems you mention.

 As far as using an external drive is concerned, for my backups, I
 opted not to do this, because when my house burns or gets blown
 away by a tornado, or is robbed (in which case the burgler is
 likely to take everything attached to the computer, too) that
 on-site backup isn't going to help very much; but the question was
 just about formatting a drive.

I've had a setup for about six or eight years where I have three sites
with DSL connections where I maintain systems. Important things get
backed up locally via a daily cron job and periodically get pushed to
one of the other sites (ssh with key authentication).

It's very crufty and the scripts are pretty crappy but it works OK for
the moment. Replacing it is one of the things I have vaguely in mind
for the next year or so.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/HiTgACgkQ6YSQoMYUY96TiwCfWcvpZL6kNJp9rwhMWTS8RFTb
Tw0Anj9ANYEMED2y76Y94g10BMryN528
=yyxM
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Filesystem format for external hard disk

2012-05-31 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/31/2012 04:01 PM, Jeff Gipson wrote:
 
 I have already an external disk formatted with ext3, but for
 safety reasons I am now wanting to have two external disks with
 the same backups. When I formatted the first external disk, I did
 not know about ext4 (only knew about ext3). So, from what you are
 suggestion, ext4 is superior to ext3?
 
 For your purposes, very most likely not.

I tend to encourage people to pick ext4 over ext3 on modern hardware
and software.

Aside from some clear performance wins for not-that-uncommon workloads
(deleting lots of large files, storing large images etc) there's the
fact that most of the attention upstream these days is going into ext4
- - the earlier ext* file systems are pretty much in maintenance mode today.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/Hib4ACgkQ6YSQoMYUY94x3wCfWZ+RDhJErg43RBSNwdI5ViBK
os4AoM9DoQyoWEYG4R5/jUBLS2M6wYi2
=B3gn
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Need more info: UEFI Secure Boot in Fedora

2012-05-31 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/31/2012 06:06 PM, Joe Zeff wrote:
 On 05/31/2012 03:31 AM, Alan Cox wrote:
 That will generally speaking exceed their profit margin on the
 board by quite a bit so will make them very keen to document it
 clearly for future users.
 
 Demanding your money back because the board doesn't work as
 advertised cuts even more deeply into their profit margin.

This might work with smaller retail suppliers and local shops but if
the board was advertised as supporting secure boot then you may find
that argument leaves you without much of a case particularly if a
means to disable it was provided and documented.

I've known vendors to blanket refuse to issue RMAs on the grounds that
the customer should have known what they were purchasing (not in the
secure boot case but relating to other hardware features that are
problematic for some OSs).

Much better to pester them with support calls. Long, tedious, where
is the 'any' key? type support calls.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/HpsUACgkQ6YSQoMYUY95IsQCfe5tapAwArhF4ivPopjUAzm2L
ix4An2aAhYviWhgMpOglN10OMt8/YHvJ
=qf68
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Built in SD card reader problem

2012-05-30 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/29/2012 07:50 PM, Arthur Dent wrote:
 # udevadm monitor monitor will print the received events for: UDEV
 - the event which udev sends out after rule processing KERNEL - the
 kernel uevent in KERNEL[183.649491] change
 /devices/pci:00/:00:1d.7/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:3/block/sdf
 (block) KERNEL[183.700490] change
 /devices/pci:00/:00:1d.7/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:3/block/sdf
 (block) KERNEL[183.701200] add
 /devices/pci:00/:00:1d.7/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:3/block/sdf/sdf1
 (block) UDEV  [183.966232] change
 /devices/pci:00/:00:1d.7/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:3/block/sdf
 (block) UDEV  [184.257171] change
 /devices/pci:00/:00:1d.7/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:3/block/sdf
 (block) UDEV  [184.532025] add
 /devices/pci:00/:00:1d.7/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:3/block/sdf/sdf1
 (block) out KERNEL[588.259613] change
 /devices/pci:00/:00:1d.7/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:3/block/sdf
 (block) UDEV  [588.288069] change
 /devices/pci:00/:00:1d.7/usb2/2-2/2-2:1.0/host4/target4:0:0/4:0:0:3/block/sdf
 (block)
 
 Moreover the Gnome notifier popped up asking me if I wanted to open
 the files in shotwell or in the file browser.
 
 All excited, I disentangled the SD card from the Pi and plugged
 that in instead. Nothing! Nothing at all in dmesg,
 /var/log/messages or udevadm.
 
 The two cards are identical form factor. The working one is made
 by Kingston, is 512Mb and does not have a class stamp on it
 (though it does have 3.3V printed in tiny letters). The one for the
 Pi is made by Integral, is 4Gb and is class 4.

How old is the laptop?

 So why does one work and the other not?

It's possible that your card reader is only able to read smaller SD
devices. The original SD spec was limited to 2GiB (some 4GiB cards
existed but I think they were non-compliant). SDHC extends this to
32GiB devices and SDXC allows up to 2TiB.

 Thanks again for all the help so far. Much appreciated...

That would be my first guess if you aren't even getting media change
events when the card is inserted - it sounds like the reader itself
does not recognise the card as valid media.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/F3v0ACgkQ6YSQoMYUY96+5QCg0chcio71NizkbyXaDhLnHh5E
xdQAmweKJpQstRVK0ibKFEVRAGOQfEyn
=ONbZ
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Can I remove sendmail?

2012-05-30 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/30/2012 03:23 PM, sergiocmailbox-fedoraus...@yahoo.com.br wrote:
 ..and I also figured it's required for some basic packages, so I'll
 just disable its service. Thanks.

I think things should depend on MTA or smtpdaemon rather than
sendmail itself. The MTA on Fedora systems is hooked into the
alternatives infrastructure so even if you install and enable postfix
or another MTA there is a /usr/sbin/sendmail pointing to an
appropriate binary that can be called in sendmail's place.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/GM/kACgkQ6YSQoMYUY96wXQCgyw53A4XDreTQW8fm6nRaT3dC
i2YAnRbkhtk4zydX395i0jWwSs/+ertY
=cBRH
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Can I remove sendmail?

2012-05-30 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/30/2012 04:06 PM, jdow wrote:
 On 2012/05/30 07:51, Bryn M. Reeves wrote:
 
 On 05/30/2012 03:23 PM, sergiocmailbox-fedoraus...@yahoo.com.br
 wrote:
 ..and I also figured it's required for some basic packages, so
 I'll just disable its service. Thanks.
 
 I think things should depend on MTA or smtpdaemon rather
 than sendmail itself. The MTA on Fedora systems is hooked into
 the alternatives infrastructure so even if you install and enable
 postfix or another MTA there is a /usr/sbin/sendmail pointing to
 an appropriate binary that can be called in sendmail's place.
 
 Regards, Bryn.
 
 That has been covered, Bryn.
 
 {^_^}

Umm, where, Jdow? I see five replies to the thread (not including this
one) but nobody mentioned alternatives or the virtual provides for
smtpdaemon/MTA which is kinda important in understanding how the
packaging of these components work on Fedora systems.

You can also use one of the simple smtp command packages (ssmtp,
esmtp) if you prefer not to have a receive-capable MTA installed on
the system. These provide /usr/sbin/sendmail and can be selected in
alternatives but do not provide smtpdaemon and cannot listen on the
network for incoming mail. They are a good choice for personal systems
or systems where you'd rather not administer a full-blown MTA.

For some reason the current ssmtp package doesn't list the
/usr/sbin/sendmail provide but it is included in the package. I
haven't checked to see if that would cause any problems while
attempting to remove any smtpdaemon.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/GOwwACgkQ6YSQoMYUY94mTACbBV8hErdHafuWK276cwBigd9P
ZrYAoLJmk1ArLWJndQO1IQV+6ge8Ui8L
=1c8U
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: I do think the world is coming to a end

2012-05-30 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/30/2012 05:19 PM, Jim wrote:
 I'm sorry that I may have posted this to the wrong location, but
 the Linux world has got to see this.

If it's the end of the world as we know it I feel fine. :-)

 Won't  Microsoft have a run in, with the GPL-3 ?
 
 http://arstechnica.com/business/2012/05/skype-replaces-p2p-supernodes-with-linux-boxes-hosted-by-microsoft/

I
 
don't see why you'd think that? Skype the app always was and is
proprietary so the platform it's hosted on makes no difference to the
license question - if they were violating something before they are
probably still violating it now and likewise if they were not.

The GPL (long before v3) has always been very careful not to restrict
downstream users regardless of their field of endeavour so nuclear
weapons scientists, lawyers and evil super geniuses are just as
welcome to use Linux as Microsoft (subject to local laws of course ;-).

I'm very happy to see a company like Microsoft selecting a superior
operating system platform for their public facing services.

Regards,
Bryn.


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

iEYEARECAAYFAk/GTAcACgkQ6YSQoMYUY97IeACdG/MY7Q/JOQO3Ib+B4xHFUff8
pgsAniFUpsZkFd5FNVErxc+H8EKjaQzX
=9rvE
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Can I remove sendmail?

2012-05-30 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/30/2012 05:31 PM, jdow wrote:
 It's been covered as a problem in that it is not a problem - at
 least

Who said it was a problem? It's just how it works..

 on the RHEL trees. SL2 has this sequence of links: $ ll
 /usr/sbin/sendmail lrwxrwxrwx. 1 root root 21 Jun  7  2011
 /usr/sbin/sendmail - /etc/alternatives/mta $ ll
 /etc/alternatives/mta lrwxrwxrwx. 1 root root 27 Jun  7  2011
 /etc/alternatives/mta - /usr/sbin/sendmail.sendmail

Well, yeah: that's what alternatives does. If you switch it to another
MTA the outer (generic name - /etc/alternatives) links stay the
same but the redirects within /etc/alternatives (pointing to the real
target) are updated to reflect the chosen option.

Same thing for java, ld and the other alternatives link groups used on
Fedora.

 So it's not a problem. All that happens is the mta link is
 redirected to which ever MTA is active.

Nobody suggested it was. Sergio asked about removing sendmail and
since this is handled in Fedora using alternatives and virtual
provides for MTAs and smtp daemons those topics are relevant to the
thread.

 So the potential problem has been covered and dealt with.

You've lost me I'm afraid. The thread was about removing sendmail: I
don't know what problem you are referring to.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/GUN0ACgkQ6YSQoMYUY96v9wCeMcAl+/Of+Lzm/u8mvMTMcu0A
79QAn3jn5Q43h4yWoo+k+4Ul2cokz9KF
=kTWM
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Built in SD card reader problem

2012-05-29 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/29/2012 03:26 PM, Arthur Dent wrote:
 So then I looked at lspci (see below). I may be wrong but I can't
 see anything which might be a card reader listed there. It's as if
 I don't actually have a card reader.

Most internal card readers are USB devices - try lsusb.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/E3R4ACgkQ6YSQoMYUY95cYACfSqYt3Mzmv7i/HgRsu27nbWAM
36UAoNx8YXTUgZ+7M5brtqMRjrpdfOC3
=5xGN
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Built in SD card reader problem

2012-05-29 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/29/2012 03:46 PM, Arthur Dent wrote:
 # lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root
 hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus
 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005
 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006
 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007
 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002
 Device 002: ID 0644:0200 TEAC Corp. All-In-One Multi-Card Reader 
 CA200/B/S Bus 006 Device 002: ID 413c:2003 Dell Computer Corp.
 Keyboard Bus 007 Device 002: ID 045e:0040 Microsoft Corp. Wheel
 Mouse Optical
 
 So there it is!
 
 So the next question is why won't it work? (or what do I need to do
 to get it to work?)

You could use udevadm's monitor feature to watch for events when
inserting/removing cards.

The usb-storage module should bind to the storage functions on the
card so it's also worth making sure that that's loaded (and figuring
out why it's not if that is the case).

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/E5MoACgkQ6YSQoMYUY95yYACfbPVkjkqOMTtlqM1DVBPYFUlo
PKEAoNhSieNNf+DVTZNgzlX3R3H0njN+
=AyPs
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Built in SD card reader problem

2012-05-29 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/29/2012 04:15 PM, Arthur Dent wrote:
 I have never used udevadm before. If I have read the man page
 correctly, all I need to do is to initiate udevadm monitor and
 then plug in the card, is that right?

Yes - just run the command as root and it will continue running and
printing events to the terminal until you interrupt it with Ctrl-C.

Here's some sample output showing an add/remove cycle for a USB flash
device (although this machine has an SD reader I don't have a card on
me right now so a USB stick was the closest I could get):

http://fpaste.org/UwHH

 I will have to do that when I get home this evening. I am SSH'd
 into the box at the moment, but it's a bit difficult to put a card
 in a slot from 35 miles away!

Been there :-)

 In the meantime is there anything else I can check from a SSH
 connection - drivers / modules etc?

Make sure the usb-storage module is loaded and check to see if a SCSI
host exists for the storage device. To do this you need to look for an
entry in /sys/class/scsi_host that corresponds to the USB bus address
of the card reader.

E.g. the key from the example above shows up like this:

$ ls -l /sys/class/scsi_host/ | sed 's/.*\ host/host/'
total 0
host0 - ../../devices/pci:00/:00:1f.2/host0/scsi_host/host0
host1 - ../../devices/pci:00/:00:1f.2/host1/scsi_host/host1
host2 - ../../devices/pci:00/:00:1f.2/host2/scsi_host/host2
host3 - ../../devices/pci:00/:00:1f.2/host3/scsi_host/host3
host4 - ../../devices/pci:00/:00:1f.2/host4/scsi_host/host4
host5 - ../../devices/pci:00/:00:1f.2/host5/scsi_host/host5
host9 -
../../devices/pci:00/:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/host9/scsi_host/host9

That last one is the one we're interested in.

$ ls -l /sys/class/scsi_host/host9
lrwxrwxrwx. 1 root root 0 May 29 17:07 /sys/class/scsi_host/host9 -
../../devices/pci:00/:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/host9/scsi_host/host9

If you've no other USB storage on the system this is easy enough to
spot. If you do then you'll need to look at the PCI addresses and USB
addresses to figure it out. If in doubt look at the info option to
udevadm - it can print out all the attributes it can find for a device
and often there's something in there that will identify the thing.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/E9gQACgkQ6YSQoMYUY97/ggCfdT9O+jZOrUXZBgJ29zsCOOZo
M+IAn3eekT6B/S0KjDikG293+Tz2jGUN
=tL7L
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Built in SD card reader problem

2012-05-29 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/29/2012 05:15 PM, Bryn M. Reeves wrote:
 On 05/29/2012 04:15 PM, Arthur Dent wrote:
 I have never used udevadm before. If I have read the man page 
 correctly, all I need to do is to initiate udevadm monitor and 
 then plug in the card, is that right?
 
 Yes - just run the command as root and it will continue running
 and printing events to the terminal until you interrupt it with
 Ctrl-C.
 
 Here's some sample output showing an add/remove cycle for a USB
 flash device (although this machine has an SD reader I don't have a
 card on me right now so a USB stick was the closest I could get):
 
 http://fpaste.org/UwHH

Ugh. Fpaste didn't like that first time:

http://fpaste.org/ga6d/

I added the plug and unplug lines to indicate when the
device was inserted/removed.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/E9u8ACgkQ6YSQoMYUY94HcQCgwOGxcaaRdhnQ0wYHm7R3UCiv
KVkAn0iWUUyBvqGFDRAqDJiftRUBf4uc
=nPWe
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: partition question

2012-05-28 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/27/2012 09:04 PM, Geoffrey Leach wrote:
 On 05/27/2012 12:45:45 PM, Phil Dobbin wrote: I went around that
 tree a few months back, and as far as I could discover there is no
 was to resize a partition. The parted documentation seemed to imply
 that resizing was supported, but at the end, no luck.
 

It's possible but there are a fair number of steps involved.

Use rescue mode (you'll need to in order to resize the rootfs and
partition containing the PV).

Boot into rescue mode and skip the file system detection option then
use lvresize or lvreduce to shrink the file system volumes and their
file systems (specify the --resizefs flag - otherwise you need to do
this as a two-step process, first shrink the file system with e.g.
resize2fs, then shrink the LV that contains it).

Once you've shrunk the LVs you can check to see if the PV can be
resized - use pvresize with the --setphysicalvolumesize option to set
the the PV to the intended size.

If this step fails it will be because there are still extents
allocated to some LVs that are using the space you want to free up
(this is unlikely with the default Fedora layout but can happen with
more complex VGs or VGs that have a lot of allocations taking place).
If this is the case you'll need to use pvmove to relocate those
extents elsewhere (see the pvmove man page).

Once the PV has been reduced in size you can shrink the partition.
Unfortunately there's no good automatic support for this today. Parted
still insists on resizing file systems (but doesn't work with most
common file systems..).

I normally use fdisk: you'll need to remove (delete) the partition you
want to resize and then re-create it with the same starting offset.
The easiest way to do this is to use sector mode (default now) and
make a note of the value in the start column before removing the original.

If you're using a GPT partition table then you can do the same
remove/re-add routine with parted but I prefer fdisk for MBR partition
tables (again, use sector units when modifying the partition).

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/DSL8ACgkQ6YSQoMYUY96NJACaAtX4udNORzZiKf71tF/36zCB
QbsAnRcGwTKEhBC99oRcWrt32GDjTBjZ
=mC1T
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: No Audio from media players

2012-05-09 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/09/2012 03:33 PM, JD wrote:
 May  8 22:07:44 localhost pulseaudio[31173]: bluetooth-util.c:
 Error from ListAdapters reply: org.freedesktop.systemd1.LoadFailed 
 May  8 22:07:44 localhost pulseaudio[31173]: module-ladspa-sink.c: 
 Master sink not found May  8 22:07:44 localhost pulseaudio[31173]:
 module.c: Failed to load module module-ladspa-sink (argument: 
 sink_name=ladspa_output.mbeq_1197.mbeq 
 master=alsa_output.pci-_00_02.7.analog-surround-51
 plugin=mbeq_1197 label=mbeq
 control=-11.6,-5.4,0,0,0,0,0,0,0,0,0,0,0,0,0): initialization
 failed.

Those messages refer to the LADSPA sink for pulseaudio. This is the
Linux Audio DSP Architecture, a framework for chainable audio
effects plugins (similar to Steinberg VST in some ways).

Do you use any LADSPA plugins or effects on this system?

Pulse is attempting to load a graph with a LADSPA multiband equalizer
configuration defined:

sink_name=ladspa_output.mbeq_1197.mbeq
master=alsa_output.pci-_00_02.7.analog-surround-51 plugin=mbeq_1197
label=mbeq control=-11.6,-5.4,0,0,0,0,0,0,0,0,0,0,0,0,0

The master sink it references doesn't appear to exist so it fails the
module load and gives up.

If you have configured any kind of EQ on the system then you might
want to try unconfiguring it.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+qhMAACgkQ6YSQoMYUY95b8wCeJ7kOLnGm+5mJxRSw4kUIg9M0
D1AAn1zkP3T2cmPN1u2L8TC5k80tbtoN
=TOuR
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: red hat?

2012-04-17 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/17/2012 08:36 AM, Hal wrote:
 Roger had the answer. The Romans used stale human URINE(Uric Acid)
 to was their togas and other things. No movies my friend.

More likely they were using stale urine for its high ammonia content.
Dried-on uric acid causes stains that are difficult to remove.

Regards,
Bryn.

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

iEYEARECAAYFAk+Nc0YACgkQ6YSQoMYUY94LRwCfZTR+bJDL+Y/V5AoH+nsHthaK
he0An2ZfT1oPZigXj5A0qc03suJaD8ka
=vg08
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: red hat?

2012-04-17 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/16/2012 09:20 PM, Hal wrote:
 On 4/16/2012 2:37 PM, jdow wrote:
 On 2012/04/16 07:28, fred smith wrote:
 On Mon, Apr 16, 2012 at 10:04:45AM +0100, Bryn M. Reeves
 wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
 On 04/13/2012 06:40 PM, jdow wrote:
 It might help if you washed them once and awhile.
 
 {O.O}   (You should know by not I lurk here and NO good 
 straight-line is safe.)
 
 Washing tends to make them fall apart faster, not slower
 (intense mechanical agitation and all that ;).
 
 I would think dry-cleaning would be the proper way to do it,
 no?
 
 I don't think I've ever tried to get a tee-shirt dry cleaned. It
 MIGHT work. Dry clean is a third best to actually washing the
 clothing in a suitable detergent. (Best is a phosphate bearing
 detergent if you can find one with phosphates in it and really
 want clean. Ditto for dish washing, too. That's once a year
 whether they need it or not, right? Sigh - hoists a glass
 saluting the good old days!)
 
 Now, how can we tie this back to Linux? Anybody made a Fedora
 controlled washing machine? Why not?
 
 Before the advent of soap/detergent what was used as a cleaning 
 component? How did a Roman keep their toga fresh and clean? :-)

With soap of course :-)

The word soap comes from the Latin sapo, The Romans certainly
understood saponification and I think there is evidence for soap
production dating back even earlier than that (Babylonian era):

  http://en.wikipedia.org/wiki/Soap#Roman_history

Regards,
Bryn.


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

iEYEARECAAYFAk+NcmsACgkQ6YSQoMYUY94D0wCginvnLPBhAv3xtATmnGY1S0wy
4U4An3Wwixu1UnKK+0o9lN1zS4kFzJ0a
=kdCR
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: red hat?

2012-04-16 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/13/2012 06:40 PM, jdow wrote:
 It might help if you washed them once and awhile.
 
 {O.O}   (You should know by not I lurk here and NO good
 straight-line is safe.)

Washing tends to make them fall apart faster, not slower (intense
mechanical agitation and all that ;).

Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+L4KwACgkQ6YSQoMYUY97DzACfcsb2+Kh4EkjigO4Osu6zsDHB
QLkAoNdQ8vJK4xM+v9wS/Pw+yT2D/2cs
=ZqZf
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: red hat?

2012-04-13 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/13/2012 11:30 AM, Alan Cox wrote:
 nono a physical wool felt hat I can put on my head to keep warm.
 
 Probably you have to buy a subscription to a hat nowdays ;-)
 
 Alan

I would gladly buy clothes by subscription if it was a good service
offering.

Mine always end up falling apart while I'm wearing them.

Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+IAxoACgkQ6YSQoMYUY976nwCfQ4pEpmfgJ3es2a+dIWXcRXVV
9zwAoLQHfqi5vrg2sGRfr0b10JKKNmde
=S+I6
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: FYI: how to prevent mysql from oom-killer

2012-04-13 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/13/2012 02:47 PM, Mihamina Rakotomandimby wrote:
 On 04/13/2012 03:17 PM, Reindl Harald wrote:
 with one single command you can protect processes from get
 killed i started to run this every 15 minutes to make sure it is
 also active after restarts
 
 I understand your issue, but isn'there a configuration way to just
 limit the memory usage of MySQL?
 

That won't affect the OOM killer's decision that mysqld is
unimportant. Influencing that using the oom_score_adj tunable is
exactly the right way to do this as Harald said, from
filesystems/proc.txt:

The value of /proc/pid/oom_score_adj is added to the badness score
before it is used to determine which task to kill. Acceptable values
range from -1000 (OOM_SCORE_ADJ_MIN) to +1000 (OOM_SCORE_ADJ_MAX).
This allows userspace to polarize the preference for oom killing
either by  always preferring a certain task or completely disabling
it. The lowest  possible value, -1000, is equivalent to disabling oom
killing entirely for that task since it will always report a badness
score of 0.

There are other tunables there (see proc.txt and the man page) but
this one gets the job done.

Regards,
Bryn.

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

iEYEARECAAYFAk+IMB8ACgkQ6YSQoMYUY94n4ACfe5hN6R5uKvZgpeDIDLk8arwj
p94AnjBEaSd4QdthfAlDMscSvoctl+/v
=8ocJ
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: [OT] Fedora 18 code name

2012-04-04 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/03/2012 07:21 PM, Darryl L. Pierce wrote:
 On Tue, Apr 03, 2012 at 02:07:28PM -0400, nu...@gmx.com wrote:
 
 On Fri, Mar 30, 2012 at 09:13:33PM -0400, Tom Horsley wrote:
 I think Fedora 18 should take a radical approach to code 
 names, one that no one would ever expect. How about:
 
 Fedora 18
 
 Fedora 17++
 
 Fedora 19 Beta??
 
 Fedora Core 3 with lots of fixes and updates. :)

Red Hat Linux 10.3

Bryn.

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

iEYEARECAAYFAk98D3wACgkQ6YSQoMYUY94h6wCguEccBzd0OTn3MGfcbqy3Psfu
V4QAn1NWde59QPxtAgyg6ExubyXffJlT
=crN4
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: [OT] Fedora 18 code name

2012-04-04 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/04/2012 10:19 AM, Frank Murphy wrote:
 On 04/04/12 10:08, Bryn M. Reeves wrote:
 Red Hat Linux 10.3
 
 Bryn.
 
 
 The Unnamed One
 
 

Well, we can't call it Yarrow again :)

Bryn.

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

iEYEARECAAYFAk98GTAACgkQ6YSQoMYUY97hRACfbn/WO0utiJ5aUnhm7TA9EoMB
E+EAnRJRhux0pcCHEzip0B0+q0FkBrbk
=QCaB
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: users, private groups, and The Unix Way (was, Re: Is it me or is it sudo?)

2012-04-03 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/03/2012 08:10 AM, Joel Rees wrote:
 On Tue, Apr 3, 2012 at 3:27 PM, Tim ignored_mail...@yahoo.com.au
 wrote: s/some/a lot of/
 
 if you set it up right.

It can still do a fair amount of nasty stuff.

 xhost local:subuser-id; sudo -u subuser-id does pretty well
 with current applications.

You're allowing the local sandbox user to connect to the local X
server so any process running in one of your sandboxes can start a
connection to X and start looking for vulnerabilities to exploit.

Due to the elevated privilege with which X runs this could include
privilege escalations. There have been vulnerabilities of this kind in
the past that allowed an attacker to quickly gain a root shell given
the ability to connect to the X server.

 Now, if I'm going to my bank site, I do log out and log in as a
 different user, just to be extra safe.

I think you'd be better off taking a look at Daniel Walsh's blog posts
on confining X applications with the SELinux sandbox. The first post
introduces and explains the general sandbox concept:

http://danwalsh.livejournal.com/28545.html

And the follow up looks at extending this to untrusted X applications
using a temporary xguest account (with dynamic $HOME and $TMP) and the
Xephyr X-on-X server to provide much stronger separation between the
sandbox and the rest of the system:

http://danwalsh.livejournal.com/31146.html

Fedora already provides contexts to use with the sandbox such as
sandbox_x_t, sandbox_web_t, sandbox_net_t etc. depending on the
particular resources you want to allow the sandbox to access.

The post discusses future improvements to simplify retrieving files
from the sandbox when the application exits but I'm not sure of the
current status of that work.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk96uScACgkQ6YSQoMYUY968AwCgnyewwjMMaCbla1i4hqiirUbI
gTgAn1m5CX/RoAY6h5cUOdd1VXfO0FcR
=6j1O
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: A bit OT: git - ridiculous memory requirements

2012-03-30 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/30/2012 04:13 AM, Vaclav Mocek wrote:
 Hi all,
 
 I have a cloned GCC git repository, on PC with 1.5GB of RAM and 3GB
 swap.
 
 When I run $git gc --aggressive, I will get after few hours an
 error:
 
 $ git gc --aggressive Counting objects: 1332887, done. Delta
 compression using up to 2 threads. fatal: Out of memory, malloc
 failed (tried to allocate 4838335 bytes) error: failed to run
 repack $
 
 4.5GB of memory is not enough, what is that?
 
 I wonder what git is internally doing, it seems to me as a pretty 
 non-optimal implementation. It is the first application I have
 which has been killed by OOM killer.

Are you sure it got oom-killed? It appears to have just received a
malloc failure and quit. You'd expect abnormal termination via a
signal for an oomkill.

It would also be interesting to see the /proc/pid/{s,}maps output or
even a top snapshot of the git process before this happens - the
failing allocation was only for a little over 4MiB.

You might also get better results trying git-repack or git-fsck on
your tree first (git-repack on a cluttered repo can speed things up
greatly although I don't know if you may run into similar memory
consumption problems there).

With that said I'm not sure the behaviour is that out of line
considering the description of --aggressive:

  --aggressive
 Usually git gc runs very quickly while providing good disk
 space utilization and performance. This option will cause
 git gc to more aggressively optimize the repository at the
 expense of taking much more time. The effects of this
 optimization are persistent, so this option only needs to be
 used occasionally; every few hundred changesets or so.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk91hFIACgkQ6YSQoMYUY95aQwCgzJQyBla5KRwQR4NF5BcVy70p
CEYAn0NWuCW7S271KHivb20OlfBUTPov
=DRP/
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Fedora disimprovements: am I alone?

2012-03-27 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/27/2012 12:12 PM, 夜神 岩男 wrote:
 That is not optimization, that is interface design. The two are 
 entirely different. The premature optimization bit is about 
 choosing implementation clarity (expression) at the expense of 
 execution speed over potentially confusing code that increases 
 performance at runtime (optimization).

The set of verbs and options systemctl accepts are the interface
design. I think you are stretching things beyond the plausible to try
to claim that a minor tweak to save 8 characters in a common
invocation is UI design. It's just optimizing a common case.

 The difference between .service being a permitted implication VS a 
 mandatory explication is one of interface and does not impact the 
 implementation of the subsystem. Its the same argument as
 requiring that everyone actually type self in 'def foo(self):' in
 Python. I think its silly, others think it is more clear to be
 explicit to that degree when programming.
 
 But pushing systemd around from the command line is not
 programming unless its part of a script, and then the explicit
 .service extension is entirely appropriate. And speaking of
 scripting the shell, we've had this debate before a very long time
 ago. It resulted in the tradition of providing GNU flag extensions
 in addition to the old-style terse single-dash switches for the
 vast majority of command line tools. In scripts it can be polite
 (well, used to be considered polite, if anyone would remember
 today...) to write 'cut --delimiter=- --fields=2,3 foo.txt'
 instead of 'cut -d - -f 2,3', but both are perfectly acceptable
 and this provides a way to be explicit for posterity yet terse for
 practical reasons.

No idea what point any of this is getting at. The systemd utilities
support both long and short options where it makes sense to do so.
It's almost as though someone designed it that way..

 Have we forgotten that CLI *is* an interface and hence worth 
 discussing? The I is there for a reason. And how on earth is it 
 possible that we've forgotten what a cultural rule-of-thumb as 
 important as premature optimization is the root of all evil 
 actually means?

Go ahead and discuss to your heart's content but flaming at people and
calling a UI unusable and implying that the authors of that
interface are not smart has no place in that discussion and should
not be accepted.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9xuBkACgkQ6YSQoMYUY94PoACgocSkp1anNoBK5hJgxMAV86U3
+e0AoMIQziOpLFqOS3rfWLgPHZ+ewyzD
=IDSg
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: is freedesktop.org dead? Any official desktop standard?

2012-03-23 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/22/2012 10:30 PM, Frantisek Hanzlik wrote:
 Bryn, thanks for info. http://www.freedesktop.org/ seems totally 
 inaccessible yet, what is suspicious too. I will waiting when this 
 site will be up.

It's working fine here (I get the redirect to the wiki home page which
has been the front page for as long as I remember).

You might want to check your network connectivity for other sites.
Sites like http://www.isup.me/ can be useful for testing connectivity
from a different network perspective.

Regards,
Bryn.

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

iEUEARECAAYFAk9sUnAACgkQ6YSQoMYUY97fsACWMJbk+teW8uy3ZdLgYLy9c+1S
EwCfbSsavLNP+cmehPXmehO0RXk3xDY=
=Hi9R
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Fedora disimprovements: am I alone?

2012-03-23 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/23/2012 07:38 AM, Reindl Harald wrote:
 systemctl restart httpd.service is a joke compared with service
 httpd restart - a msart developer would have made .service as
 default-fallback and only httpd.socket as example would need full
 qualified input

That would be optimisation. A very smart programmer once taught us
that premature optimisation is the root of all evil. Perhaps the
author felt that other work was of higher priority at the time?

Besides, I would expect any Linux admin worth paying who found this
syntax so troublesome to be able to create a wrapper to suit their
preferred invocation style with minimal effort.

alias oldservice () { systemctl $2 $1.service; }

That took about as long to think up as it did to type. I am sure you
could improve upon it with little work.

# oldservice httpd status
httpd.service - LSB: start and stop Apache HTTP Server
  Loaded: loaded (/etc/rc.d/init.d/httpd)
  Active: inactive (dead)
  CGroup: name=systemd:/system/httpd.service

# oldservice httpd start
#

I'm also sure that upstream would be happy to review patches to
improve usability and merge them if appropriate.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9sVggACgkQ6YSQoMYUY95x9wCgqEGFKjhE2dYeYU+hhPcJj1ea
jvUAn24OatuACwSoiiXr6upzi4781hXj
=PN3o
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Fedora disimprovements: am I alone?

2012-03-22 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/22/2012 01:05 PM, Aaron Konstam wrote:
 I'll say this. I recently went to read the grub2 documentation and
 found this product rather obtuse and complex. As an example trying
 to figure out the camparative roles of grub2-mkconfig and
 grub2-install.

The grub2-mkconfig command processes the templates in /etc/ and the
options specified in /etc/default/grub to generate a new grub config
file (Normally read from /boot/grub/grub.cfg and symlinked into /etc/
as /etc/grub2.cfg).

It produces output on stdout. Redirect it to the file to update it.

This is covered in the info manual, section 20 Invoking grub-mkconfig.

Updating the configuration with grub-mkconfig is analogous to editing
/boot/grub/grub.conf on prior releases.

 One would think that grub2-install wold have to run grub2-mkinstall
 but as far as I can see it doesn't. How confusing!

The grub2-install command installs the grub2 bootloader components to
a drive. It's exactly analogous to grub 1.x's grub-install script and
is documented in section 19 of the info manual, Invoking grub-install.

You only need to do that once unless something has overwritten it
(like another OS installer) or you replace disks.

You might also like to take a look at section 1.3, Differences from
previous versions and section 3, and 3.1; Installation and
Installing GRUB using grub-install.

I can't stand the info manual format personally and I'd much rather
have a well-written traditional man page but the information is there
and quite clear imho.

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9rKJ0ACgkQ6YSQoMYUY97nYwCfa2PrhiOTK4gzPBuJ2MQDVHS7
HGEAoKpfw0V21yS2hhSgoia7aBoOgFUh
=v0/w
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: is freedesktop.org dead? Any official desktop standard?

2012-03-22 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/22/2012 02:56 PM, Frantisek Hanzlik wrote:
 It seems as freedesktop.org site is unmaintained or dead. Thus,
 know anyone, when it is there any other recent actual standard
 about desktop things?

Does not appear dead according to:

http://www.freedesktop.org/wiki/RecentChanges

It might be better to report problems with dead links etc. to the site
administrators than fedora-list. Although some of the freedesktop folk
hang out here I doubt they are paying much attention for reports of
problems with the freedekstop site on this list.

Regards,
Bryn.

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

iEYEARECAAYFAk9rPtwACgkQ6YSQoMYUY95kZgCgxMNOSWdBF+QFsptRAr6Ipgoy
pRcAn151A2OXI5tVyK6KlEeAttnxTKEX
=IQ82
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: is freedesktop.org dead? Any official desktop standard?

2012-03-22 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/22/2012 03:23 PM, Christopher Svanefalk wrote:
 I don't think he wanted to report problems as much as inquire into
 whether someone here knew anything about the status of the 
 freedesktop.orgproject...seems legit to me at least, since it is 
 relevant to Fedora.

I didn't say it was irrelevant but the OP was looking for up-to-date
standards and fixes for broken links and search functionality. The
Fedora users list can't really help with that (and yes, afaik,
freedesktop.org is still the place to go for these).

The freedesktop folks have a mailing list for the standards and
specifications they produce, again, probably a better place to ask
than here:

  http://lists.freedesktop.org/mailman/listinfo/xdg

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9rSSoACgkQ6YSQoMYUY96iDQCeNaTSWjNkFkoApsInQe6FByoi
z9cAmwa/BGF+7QcJH7o1hdgZRvQiLuMi
=UQYN
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: PackageKit purpose?

2012-03-14 Thread Bryn M. Reeves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/14/2012 12:10 PM, Timothy Murphy wrote:
 What exactly is the purpose of PackageKit?

It's an abstraction over various package management and dependency
solving backends. The website has lots of information:

http://www.packagekit.org/

 Is it essential?

No. You can still use the underlying systems your distribution
provides even if PackageKit is installed. You might hit some
dependency problems trying to remove it but I have never needed to.

 It is used by yum in some way?

No, PackageKit uses yum (or some other dependency solver/updater
depending on what the distribution it's running on uses).

 I'm asking because I get an error message 
 --- Fetch Job Error - Plasma Desktop
 Shell
 
 Unknown error. (Unable to fetch item from backend) 
 --- whenever I login or wake from
 hibernation, and I saw somewhere a suggestion that this might be 
 related to PackageKit.

It's reported as happening on Ubuntu to plasma-bugs as well:

http://osdir.com/ml/plasma-bugs/2012-01/msg01513.html

And is tracked in KDE bug 292601 (with other reports from Arch users):

https://bugs.kde.org/show_bug.cgi?id=292601

These are within the first few hits on google for the error message
you quoted (right after your post to fedora-kde last month).

Regards,
Bryn.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9gwe8ACgkQ6YSQoMYUY97EJwCfakLZ8ADhqJdTQrozUkJ+Tvwq
gskAoJOKDPMDVn/P+8w3zbleAv0fjrDt
=vXog
-END PGP SIGNATURE-
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


  1   2   3   >