Re: the separate /usr subthread

2014-03-26 Thread David G . Miller
Matthew Miller mattdm at fedoraproject.org writes:

 
 On Tue, Mar 25, 2014 at 09:50:10AM -0700, Howard Howell wrote:
   It's important to realize that you *can* have a separate /usr -- it just
   really needs to be available at boot time. That means you can have
   separate mount options, filesystems, partition constraints, or whatever.
   It just doesn't work anymore to have it on a network share or (if anyone
   ever did this!) removable media added after initial boot.
  But in the modern business environment, users log in from multiple
  places.  How does that work if the user directory is local?  
 
 On modern Linux/Unix, the /usr directory holds system binaries and
 libraries -- it is not the user directory. On Fedora (and most Linux
 systems), that is /home. And there's no problem sharing that over the
 network.
 
The funny thing is that back in the earliest days of Unix, /usr is where
user directories lived.  When KR ran out of room in / for programs, they
looked to for a partition that had additional space available and it was
/usr.  Originally programs ended up in /usr/bin simply because there wasn't
room for them in /bin; not for some usage reason.

Cheers,
Dave

-- 
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: Do any systemd devs actually use it on a server?

2014-01-25 Thread David G . Miller
Tom Horsley horsley1953 at gmail.com writes:

 
 This bugzilla is absurd:
 
 https://bugzilla.redhat.com/show_bug.cgi?id=1043212
 
 I've just added a new entry to it because last night's
 disruption corrupted the binary format journal files
 and sent rsyslogd into a 100% cpu loop even after
 a reboot.
SNIP
 It seems pretty clear no testing of systemd has been
 done on systems that are up 24/7 and need to survive
 a run of cron.daily .
 
 Enterprise customers are gonna love RHEL 7...
SARCASM
But Tom, surely most desktop users of Fedora don't leave their systems up
24x7.  The easy solution is to remove cron.d daily.  After all, the scripts
it runs will probably just try to e-mail the results and there's no MTA
since desktop users don't need that either.
/SARCASM

Cheers,
Dave


-- 
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: Adding mail aliases

2014-01-07 Thread David G . Miller
Robert Moskowitz rgm at htt-consult.com writes:

 
 So I have been taught it is not enough to edit /etc/aliases, you also 
 have to run newaliases to update /etc/aliases.db.  Both these files 
 exist in the base install, along with mailx.  But newaliases does NOT 
 exist.  A 'quick' yum whatprovides shows that newaliases is installed 
 along with any of:  exim, sendmail, postfix, or ssmtp  :(
 
 So does mailx use /etc/aliases.db?  If it does, why no newaliases, and 
 how to install only newaliases, not a whole MTA?
 
 Well for now, I can quite live with root mail going to root's maildir.
 
From the mailx man page:

Personal and systemwide distribution lists

It is also possible to create a personal distribution lists so that, for
instance, the user can send mail to 'cohorts' and have it go to a group of
people. Such lists can be defined by placing a line like

alias cohorts bill ozalp jkf mark kridle@ucbcory

in the file .mailrc in the user's home directory. The current list of such
aliases can be displayed with the alias command in mailx. System wide
distribution lists can be created by editing /etc/aliases, see aliases(5)
and sendmail(8); these are kept in a different syntax. In mail the user
sends, personal aliases will be expanded in mail sent to others so that they
will be able to reply to the recipients. System wide aliases are not
expanded when the mail is sent, but any reply returned to the machine will
have the system wide alias expanded as all mail goes through sendmail. 

~~~

So, the answer is that you can create aliases in mailx but these are
different than /etc/aliases.  Sounds like a historical artifact that came
into existence when mailx was created as mail eXtended and it was reasonable
to just want to send mail to folks who resided on the same system as you
with no MTA involved.

Cheers,
Dave

-- 
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: F20 - Unintended consequences of no default MTA - How best to fix

2014-01-03 Thread David G . Miller
Chris Murphy lists at colorremedies.com writes:

 
 
 On Jan 2, 2014, at 3:42 PM, Lars E. Pettersson lars at homer.se wrote:
 
  On 01/02/2014 11:31 PM, Rahul Sundaram wrote:
  Yes, all critical notifications are supposed to stay persistent.  That
  is the right model to alert desktop users about anything relevant enough
  to bother them with.   Not emails.
  
  Works OK on a desktop, but how is the home server use case, where the
user is not logged in on the computer,
 supposed to be handled?
  
  Regarding emails. I still have not gotten any response from anyone on
how to handle the output from, as an
 example, cron, logwatch, etc. Hopefully someone could tell how that is
supposed top be taken care of now
 that the MTA is removed.
 
 If you like the MTA method of being notified, install an MTA. Simple. You
have been told this numerous times
 so don't say you haven't gotten any responses. 
 
  That would involve both adding to the journal, and notify the user,
and/or other actions. Shouldn't that
 have been addressed *before* removing the MTA?
 
 No because no one was getting messages with the MTA unless they went
looking for them in the first place. And
 now they merely have one more step which is installing the MTA of their
choice, which for a lot of Fedora
 users wasn't sendmail anyway.
 
 Sendmail was taking up space on the install media, on users computers, for
no benefit for the vast majority
 of users. I don't know how many times this has to be said - look at the
number of unique individuals involved
 in the conversation in this thread? It's less than a dozen. So we're
talking thousands of users, and less
 than 12 give a crap whether an MTA is installed by default or not. It's
really close to zero people care about it.
 
 Chris Murphy
Chris -

This is as close as I can get to the end of this discussion since I get
the digest so it will have to do.  I've seen you claim over and over that
no one uses e-mail for system notifications.  This is the exact opposite
of my experience (30+ years with computers, 25+ years with Unix systems and
15+ years with Linux including currently working as a Linux/Unix engineer).
 Do you have *ANY* independently verifiable numbers to back up your claim?  

My experience has been that Linux newbies don't know about root e-mail and
go whining on various discussion boards about how they didn't know that
there was a problem until someone points them to root e-mail and e-mail
aliases.  If these are the no one uses e-mail people you're claiming is
everyone then you're listening to the wrong people.  Or is it just that
these are the people you agree with?

Personally, I find the Windows practice of hiding notifications behind an
inscrutable event log interface to be far, far worse than getting e-mail
notifications.  I'll take logwatch e-mails any day over an event log since
it also lets me watch for trends or anomalies that may not break a reporting
threshold.  Likewise, I compare the typical event API notification to being
like the idiot lights most cars come with.  You know, the over
temperature light that comes one AFTER steam is coming out from under the
hood or the tire pressure warning light that comes on as you pull off the
road with a flat?

I have not had the displeasure of trying F-20 without an MTA yet.  When I
do, I will install an MTA so I can monitor the system the same way I monitor
my other systems.  I just hope I don't have to write a perl script to take
output from journalctl and e-mail me when something important happens.

Cheers,
Dave


-- 
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: f20 - gedit

2013-12-20 Thread David G . Miller
Patrick O'Callaghan pocallaghan at gmail.com writes:

 
 
 
 On Fri, Dec 20, 2013 at 11:09 AM, Tom Horsley horsley1953 at gmail.com
wrote:
 On Fri, 20 Dec 2013 00:35:45 -0300
 Germán A. Racca wrote:
  Anyway, it is safer to use something like VIM to edit files as root, I
  only tested gedit because I saw your email, but as root I use only VIM
  to edit files :)
 This again? Please give a link to the giant list of exploits
 that have actually happened because someone ran a GUI program
 as root. I keep seeing this warning, yet no one has ever
 provided an actual example of any kind of root exploit happening.
 
 IIRC most comments are about not running the desktop itself as root,
rather than specific apps.
 
 poc
 
I've found it isn't even something external or malicious.  More along the
lines of X won't start and one needs to edit xorg.conf (or its predecessors)
to fix it using vim or emacs.  I've seen people re-install because they
couldn't fix X without a GUI editor or broke it worse because they totally
jacked up xorg.conf using vi.

Cheers,
Dave



-- 
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: Fedora's audience

2013-12-04 Thread David G . Miller
Tim ignored_mailbox at yahoo.com.au writes:

 
 Allegedly, on or about 04 December 2013, Frank sent:
  Guess all the 'younger' members are afraid to reply :)
 
 Oi!  insert some rude/nice/amusing old person insult  I'm middle-aged.
 
 I've played with computers since before the PC days (sending punch cards
 in the post), ignored the C64 but used alternatives in the same era, had
 fun with the Amiga while avoiding the hideous DOS/Windows world that I
 saw at the school I worked at, got into Linux with Red Hat Linux 6 (the
 first one that would actually install on my hardware), then migrated
 over to Fedora when Red Hat changed the gameplan (and that did annoy a
 lot of people).
 
 I've dabbled with other Linuxes and BSD, enough to think they're much of
 a muchness (similar or balanced capabilities, limits, and annoyances),
 but different enough that I stuck with what I got used to.
 

How about I'm 57 and started with Red Hat Linux 5.0 in 1998 as my first
Linux install.  Before that I worked on HP-UX, Solaris (and when it was
still SunOS), CDCs, VAXen and IBM big iron.  I still have a punch card
around here some place.

I run CentOS or Scientific Linux on the boxes I need stable and Fedora on
more recent hardware or where I need something closer to bleeding edge. 
Dabbled with Ubuntu, Mint and Gentoo.  Didn't like them.

Cheers,
Dave


-- 
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: OT: C programs and architectures (use on Fedora)

2013-11-02 Thread David G . Miller
Mihai T. Lazarescu mtlagm at gmail.com writes:

 
 On Sat, Nov 02, 2013 at 05:55:37PM -0500, Ranjan Maitra wrote:
 
  Hi,
  
  I have obtained a set of open-source programs from 
  
  http://petertoft.dk/PhD/Recon2D.tar.gz
  
  uncompressed, etc, and it all goes through fine. 
  
  When I compile, the programs work fine on my old 32-bit machine
  (results make sense), however there is a segmentation fault on my
  64-bit laptop.
  
  I compile using:
  
  gcc -c -I../include -O3 -finline-functions -Winline -Wall
  -falign-loops=2 -falign-jumps=2 -falign-functions=2
  -Wstrict-prototypes .
  
  (Note that I had to fix the makefiles in there.) 
  
  Btw, I don't know if this could have anything to do with it, but this
  set of programs were written in 1996 (when 64-bit probably did not even
  exist at all). Also, all the code uses single-precision (floats) rather
  than my preferred doubles. (Which makes me ask: is it possible to go
  into all the many files and convert all the floats into doubles using
  some command? )
 
 You can add -m32 to gcc arguments.
 
 Mihai
I have to second Mihai's advice.  I'm currently doing some contract work
porting a rather large and very crufty C application from Solaris to Linux
for a national telecom.  The program actually was running under OS/2 at one
time and had it's roots on PrimOS.

We initially started out also going to 64 bit and had to backtrack.  See how
your program runs on the 64 bit box when compiled as a 32 bit application. 
Then decide whether to change the floats to longs first or to port it to 64
bit.  

The other advice on debugging is spot on.  Compile with -g and run it under
the debugger of your choice.  gdb works fine for this.

Cheers,
Dave



-- 
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: Laptop screen blank when using second monitor

2013-10-29 Thread David G . Miller
Oliver Ruebenacker curoli at gmail.com writes:


  Hello,
   Until this morning, my Lenovo Thinkpad T430 running KDE on Fedora 19 
was working fine sitting on a base with a second monitor attached. I 
removed it from the base and connected another second monitor (a 
projector) and things were still fine. When I put it back into the base, 
the laptop screen went blank, and it was using only the second screen. 
When I remove it from the base, it uses the built-in screen, but as soon 
as I put it into the base, it only uses the second screen. Interestingly, 
when I restart, it uses both screens properly until after I log in.
   Any advice? Thanks!
 
SNIP
I had an HP laptop that decided that the brightness of the built-in 
display should be set to zero when an external monitor was attached.  
Doesn't sound like the same thing because of the different behavior 
between KDE and Gnome.  You might try hitting the hardware brightness up 
button a few times just to see though.

Cheers,
Dave

-- 
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: Mouse button debouncing

2013-08-20 Thread David G . Miller
John Pilkington J.Pilk at tesco.net writes:

 
 On 19/08/13 21:22, David G. Miller wrote:
  Patrick O'Callaghan pocallaghan at gmail.com writes:
 
 
  I have a Logitech Bluetooth mouse which I'm fairly sure has a hardware
  problem. The left button frequently issues two click events in rapid
  succession when pressed only once. Is there a way to tell X that two
  such events in under some threshold should count as one? I've Googled
  and other people have had similar problems (not specifically with this
  mouse) but there are no clear answers. I'd rather not have to drop $50
  or so on a new BT mouse.
 
  Using KDE 4.10 under Fedora 19, up to date as of today.
 
  poc
 
  Interesting.  I have a USB Logitech mouse that I had assumed was
  just clicked out becuase it's doing the same thing.  Really tired of
  doing things like deleting more than one e-mail at a time because the
  mouse is sending multiple button action events for what is supposed to 
be
  a single click.  I've also had problems with drag and drop type 
actions
  (i.e., both a button down and a button up event appear to be sent even
  though I'm holding the button down) so just fixing the double click
  sensetivity isn't the end of your mouse problem.  Replace or, as per 
the
  other response, repair it (I'd probably burn the house down if I went
  after it with a soldering iron so I'll replace mine).
 
  Cheers,
  Dave
 
 
 This sounds very much like what I have been seeing recently.  It's 
 almost as if clicks are being fed into a buffer in groups and counted 
 out in groups of a different size; there seems to be something cyclical 
 about it.  I think it started around the time that I installed kde 
 4.10.5 on f17 immediately before f17 went EOL, in response to a plea for 
 karma from Rex.  Since then I've FedUp-ed to f18 and mouse control is 
 still workable but irritatingly unpredictable.  Gateway USB optical 
 mouse, ~2006.
 
 John P
 
Irritatingly unpredictable is exactly what I was seeing.  It would work 
fine for a while and then switch to ptoducing a random number of button 
events for a given click.  I could even see this if I was attempting 
to drag and drop something since the hand icon would litterally open and 
close even though the left button was being continuously held down.  I 
would have to wait until it setlled into a button down state before 
dragging whatever it was.  Even then it would sometimes randomly produce 
a button up event and the drag would end up someplace other than what I 
wanted.

New mouse installed last night.  Works great.  A click is a click is a 
click  It's some OEM brand I had never heard of but it was the only 
USB wired mouse that my local Best Buy had.  I usually buy hardware at our 
local Micro Center but that is about 15 miles away and I couldn't see 
going that far just to save a couple of bucks and get their never heard of 
before brnad OEM mouse.

Cheers,
Dave



-- 
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: Mouse button debouncing

2013-08-19 Thread David G . Miller
Patrick O'Callaghan pocallaghan at gmail.com writes:

 
 I have a Logitech Bluetooth mouse which I'm fairly sure has a hardware
 problem. The left button frequently issues two click events in rapid
 succession when pressed only once. Is there a way to tell X that two
 such events in under some threshold should count as one? I've Googled
 and other people have had similar problems (not specifically with this
 mouse) but there are no clear answers. I'd rather not have to drop $50
 or so on a new BT mouse.
 
 Using KDE 4.10 under Fedora 19, up to date as of today.
 
 poc
 
Interesting.  I have a USB Logitech mouse that I had assumed was 
just clicked out becuase it's doing the same thing.  Really tired of 
doing things like deleting more than one e-mail at a time because the 
mouse is sending multiple button action events for what is supposed to be 
a single click.  I've also had problems with drag and drop type actions 
(i.e., both a button down and a button up event appear to be sent even 
though I'm holding the button down) so just fixing the double click 
sensetivity isn't the end of your mouse problem.  Replace or, as per the 
other response, repair it (I'd probably burn the house down if I went 
after it with a soldering iron so I'll replace mine).

Cheers,
Dave



-- 
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: please discontinue to moderate Haralds posts

2013-07-23 Thread David G . Miller
Rick Stevens ricks at alldigital.com writes:

 
 On 07/23/2013 02:02 PM, Darryl L. Pierce issued this missive:
  On Tue, Jul 23, 2013 at 10:52:06PM +0200, Reindl Harald wrote:
  Am 23.07.2013 22:39, schrieb Darryl L. Pierce:
  On Tue, Jul 23, 2013 at 04:35:44PM +0200, Reindl Harald wrote:
 
 I'm snipping all of this tripe.
 
 Gang, can we PLEASE drop this thread? It's degenerated into a he said
 this, the other guy said that diatribe. It serves no useful purpose for
 the forum and simply wastes bandwidth. I, for one, am now adding a
 filter to /dev/null all messages with this subject.

Hear! Hear!

Gentle-people of the list, the problem of perceived ill behavior is probably
as old as the original Usenet.  Terms like flaming, flame war and flamebait
were around long before Linus created his first program, let alone gave us
Linux.

There will always be responses you perceive as being rude, nasty and
uncalled for.  Some such behavior can be traced to cultural differences,
some to miss-communication and. sometimes, some people just take pleasure in
being a know-it-all jerk.  

If you get individual e-mails from the list, feel free to set up a rule in
your mail client to route e-mails from people you perceive as fitting this
last category to /dev/null.  Please, do not ask the moderators to play God
and distinguish a valid but harsh response from flamage.  For those of us
who receive the digest, I find a glass of wine or a beer helps when dealing
with those who contribute too much noise and not enough content.

Now, can we drop this thread?

Cheers,
Dave

-- 
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: Proposal: Fedora should install with IPv6 disabled by default [was: Re: Disabling ipv6]

2013-07-12 Thread David G . Miller
Fernando Lozano fernando at lozano.eti.br writes:

 
 Hi,
 
  [As I changed the subject, let me clear: IPv6 still compiled in the 
kernel. Just the network interfaces configs
SNIP

Perhaps Fedora is the wrong distribution for you. 

The whole idea behind Fedora is for it to be an engineering proving 
ground where new technologies (like IPv6) are rolled out for real world 
use.  In the case of IPv6, this includes hopefully providing the tools 
required for users to be able to securely run a Fedora system with IPv6 
enabled.  If there is a problem with the tools provided then the answer is 
to fix the tools and/or provide additional tools; not pull back from a 
technology that IS coming.

Cheers,
Dave

-- 
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: Scanner recommendations needed

2013-07-10 Thread David G . Miller
Philippe LeCavalier support at plecavalier.com writes:

 
 
 
 On Wed, Jul 10, 2013 at 8:00 AM, Tom Horsley horsley1953 at 
gmail.com wrote:I remember I once went through the entire list of 
supported
 scanners on the sane web site and searched for each one
 on the office depot and staples web sites. Not a single
 scanner in the supported list was actually sold in a
 store you could walk into and buy one from .
 
 +1 I was doing some work which required scanning and went through that 
same. I eventually just asked a buddy who owns a retail store and he 
grabbed one out of his graveyard of parts and I've relied on it ever 
since. People don't really buy standalone scanners anymore.
 
 
Snicker.  Using:

[dave@waste ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 02 Lun: 00
  Vendor: HP   Model: C5110A   Rev: 3638
  Type:   ProcessorANSI SCSI revision: 02

Got it at what was for all intents and purposes a yard sale about 10 years 
ago for $10.  Still works great using Xsane.  Kind of goofy to still 
populate a box with an Adaptec SCSI adapter just so I can hang a scanner 
off of it.

Cheers,
Dave

-- 
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


F19 xfce bug or SL6 KVM bug?

2013-07-03 Thread David G . Miller
Just installed F19 as a KVM guest with Scientific Linux 6.4 as the host OS.
 Here's the oddity.  The mouse cursor is invisible from the time the GUI
comes until I start a terminal window.  I can login with no problems since
the login window gets focus on start up.  I can make a reasonable guess at
how I need to move the mouse to get to the start terminal icon and click it.
 Or I can move the mouse around until some other hot spot highlights and
click that.  So far no other application has caused the cursor to reveal
itself.  Once it's visible, it works fine.

Same behavior after install F19 from the Xfce spin image and after doing a
yum update.  The cursor behaves normally when I boot from the spin iso.  SL
6.4 host is current on updates.

Cheers,
Dave

-- 
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: Hard drive warning at boot time

2013-06-22 Thread David G . Miller
Paul Smith phhs80 at gmail.com writes:

 
 On Sat, Jun 22, 2013 at 6:48 AM, David G. Miller dave at davenjudy.org
wrote:
  Chiming in with some additional information that only *partially*
  contradicts certain things that have been said in this thread.  First off
  though, the advice that drives are cheap and data is expensive is absolutely
  correct.  Do NOT let anything I say talk you out of making sure any critical
  data on this drive is backed up.
 
SNIP.
 
 Thanks, Dave, for your very clarifying answer. Should I conclude from
 your words that I have already some corrupted files? If so, is there
 some way to identify them?
 
 Paul

Paul -

Finding the files that may have been corrupted by a block going bad is a
fairly long and involved process described here:

http://smartmontools.sourceforge.net/badblockhowto.html

For almost anything other than text files, finding the file that has a
corrupted block doesn't do you any good unless you have a backup copy.  But,
if you don't, at least you know which file is probably not usable anymore.

For any installed application or OS files, you can always just re-install
the package.

Cheers,
Dave


-- 
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: Hard drive warning at boot time

2013-06-21 Thread David G . Miller
Chiming in with some additional information that only *partially*
contradicts certain things that have been said in this thread.  First off
though, the advice that drives are cheap and data is expensive is absolutely
correct.  Do NOT let anything I say talk you out of making sure any critical
data on this drive is backed up.

Given that tee-up, smartctl/smartd reports that the disk has an
uncorrectable bad sector when there is a read error from the drive for a
sector.  The error is uncorrectable because the sector cannot be read. 
Note that the detection of a bad read (or write) takes place at the physical
and drive firmware level when the CRC is checked.  The only thing that the
drive has to work with is that there was an attempt to read a sector and
that read resulted in a CRC error.  

The bad sector is part of a file and only you, the user, can make a
determination as to whether the rest of the file is still good or if the bad
sector is throwing a CRC error but the file is still usable.  That's also
why the error is uncorrctable.  The drive doesn't have enough information
to fix it and it can't silently remap the sector since it can't read the
data.  If it did, you would end up with a file with a null sector somewhere
in it at the location that corresponds to the bad sector's data.

Write errors the drive takes care of through the reallocation process
mentioned earlier in the thread (since data is being written, any existing
data is being replaced so the data can be written to a remapped sector). 
Read errors the drive can only report the problem since the read error
implies that data cannot be retrieved.

My advice: buy a new drive but run badblocks -w on the old drive once you
have your data safely off of it.  You will probably find that the badbloocks
write test (-w) lets the drive see the bad sector being written to and then
remaps the bad sector and you end up with a drive that is now completely
usable again.  Be absolutely sure you have your data off of the drive before
running badblocks -w.  It will overwrite any data on the drive.

I have recovered several drives by doing this.  I've also had some that
threw errors all over the place.  Those became targets.

Cheers,
Dave

-- 
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] Failure to boot .... This could happen to you.

2013-05-16 Thread David G . Miller
Ed Greshko Ed.Greshko at greshko.com writes:

 
 This was a bizarre coincidence but given the lesson I thought I'd offer
it up.
 
 I had not updated this one system for a while so I ran yum update. 
Noticed that the list of updates included a
 kernel update and x11-drivers.  Upon rebooting the system stopped/hung at
Starting GNOME display
 manager. 
 
 Everything had been running perfectly fine prior to the update.  So, of
course, I assumed an update was to blame.
 
 It took a bit of time, but I finally tracked down the problem to the DVI
cable which had been chewed on by one of
 my cats.  (Doing dental impressions now to find the culprit.)  Replaced
cable, all is well.  Need to wrap my
 cables in chain mail.  
 
Had a similar problem when I used point-to-point wireless for my internet
connectivity.  A squirrel chewed through the network cable that provided
power and data connectivity to the antenna on our roof.  The little beggar
was smart enough to only chew through the data lines and not the power lines
so my ISP could still talk to the processor for the antenna.  They
eventually came out and replaced the line at which time I painted the
cable with an oil based extreme hot sauce called Gold Cap (hated to
waste the hot sauce).  It worked though.

Cheers,
Dave



-- 
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: Monitor turns off on normal boot

2013-05-02 Thread David G . Miller
Anthony Papillion anthony at papillion.me writes:

 
 On 05/01/2013 09:57 AM, David G. Miller wrote:
  Anthony Papillionanthonyat  papillion.me  writes:
 
 
  Hello Everyone,
 
  I'm having trouble getting Fedora (or Ubuntu or Windows) to do a
  normal boot.
 
  When I try to boot Windows or Ubuntu in normal mode, it gets to a
  certain point then the monitor turns off and nothing more happens.
  SNIP
 
  Try the brightness adjust buttons on your laptop.  You didn't say what brand
  of laptop you have but I used an HP laptop at my previous job that would set
  the brightness of the laptop's display to essentially off when it booted.
  Since there were no errors, there were no messages.  I forget how I finally
  discovered I just needed to hit the brighter button a few times and the
  display was there.
 
 Hi Dave,
 
 It's not the brightness settings, already checked that as I'd run into 
 something similar with a Debian install a few years ago. In my case, the 
 monitor is going into power saving mode. I'm back to Fedora 14 and I'm 
 having no problems there. But the minuite I upgrade to 17, it will go 
 back to kicking the monitor into PS mode on boot.
 
 Any other ideas?
 
 Thanks,
 Anthony
For some reason I was thinking laptop.  Probably because I had the problem
with mine.  A different suggestion: let the system come up (just wait a
while) and then request an alternate console with CTRL-ALT-F2 (or whatever
you favorite alternate console number is).  This should work around any
video mode issues for a graphic display since you get a text console.

If you get a text console then the issue is probably an incompatible video
mode when running in graphical mode.  If you don't get a text console then
your video card isn't being recognized.  I'm assuming you see normal POST
activity before the OS boots.

Cheers,
Dave



-- 
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: Monitor turns off on normal boot

2013-05-01 Thread David G . Miller
Anthony Papillion anthony at papillion.me writes:

 
 Hello Everyone,
 
 I'm having trouble getting Fedora (or Ubuntu or Windows) to do a  
 normal boot.
 
 When I try to boot Windows or Ubuntu in normal mode, it gets to a  
 certain point then the monitor turns off and nothing more happens.
SNIP

Try the brightness adjust buttons on your laptop.  You didn't say what brand
of laptop you have but I used an HP laptop at my previous job that would set
the brightness of the laptop's display to essentially off when it booted. 
Since there were no errors, there were no messages.  I forget how I finally
discovered I just needed to hit the brighter button a few times and the
display was there.

Cheers,
Dave



-- 
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 configure yum to not check for free inodes?

2013-04-24 Thread David G . Miller
Clemens Eisserer linuxhippy at gmail.com writes:

 
 Hi again,
 
 I found out that the issue is within rpm, not yum.
 When installing rpm packages with the --ignoresize option, rpm
 installs fine while otherwise it complains about not enough available
 inodes.
 
 What I am looking for is a way to make yum pass --ignoresize to rpm
 automatically. Is this possible somehow?
 
 Thank you in advance, Clemens
 
 2013/4/24 Clemens Eisserer linuxhippy at gmail.com:
SNIP
As a workaround you can set rpm options through /etc/rpmrc.  You'll have to
do the research to find out how to set it but it would then be used for all
rpm transactions.

Cheers,
Dave



-- 
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 configure yum to not check for free inodes?

2013-04-24 Thread David G . Miller
poma pomidorabelisima at gmail.com writes:

 
 On 24.04.2013 16:58, David G. Miller wrote:
  Clemens Eisserer linuxhippy at gmail.com writes:
 
 […]
  What I am looking for is a way to make yum pass --ignoresize to rpm
  automatically. Is this possible somehow?
 
  Thank you in advance, Clemens
 
  2013/4/24 Clemens Eisserer linuxhippy at gmail.com:
  SNIP
  As a workaround you can set rpm options through /etc/rpmrc.  You'll have to
  do the research to find out how to set it but it would then be used for all
  rpm transactions.
  
  Cheers,
  Dave
 
 rpmbuild != rpm :)
 
 poma
 
Actually, /etc/rpmrc is used by rpm; not rpmbuild.  Frpmthe rpm man page:

FILES
   rpmrc Configuration
   /usr/lib/rpm/rpmrc
   /usr/lib/rpm/redhat/rpmrc
   /etc/rpmrc
   ~/.rpmrc

and from /usr/lib/rpm/rpmrc:

[root@bend ~]# cat /usr/lib/rpm/rpmrc
#/*! \page config_rpmrc Default configuration: /usr/lib/rpm/rpmrc
# \verbatim
#
# This is a global RPM configuration file. All changes made here will
# be lost when the rpm package is upgraded. Any per-system configuration
# should be added to /etc/rpmrc, while per-user configuration should
# be added to ~/.rpmrc.
#
#

Both rpm and rpmbuild use the same rc files.  Probably not the best design
but take it up with the rpm project folks.

Cheers,
Dave



-- 
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: F18 fails to install on Toshiba Satellite M860

2013-04-14 Thread David G . Miller
Abu Attar Musharih abuattar.musharih at gmail.com writes:

 
 
 
 On Mon, Apr 15, 2013 at 8:05 AM, Ed Greshko Ed.Greshko at greshko.com
wrote:
 Not very familiar with it since I've got older hardware  But, can
you try disabling EFI/UEFI booting in your BIOS?
 
 
  The  EFI/UEFI boot is the boot option under the  menu of advanced.
Unfortunately, there is no option for disabling it.  It is there  as a
single option, so can not be changed.  Is there any other option to try?
Thanks in advance for any help.
 
 
 Regards, AAM
 

Try Google with:

Toshiba Satellite disable uefi

Lots of links; just none for the M860.  Might give you a hint as to how to
turn off EFI/UEFI.  Your best bet is to look for instructions for another
system that's as close as you can find to your M860.

Went through the same thing on my wife's HP laptop with Windows 8.  Finally
found it and it runs F18 just fine from an external hard disk so she can
keep her Windows installation. 

Cheers,
Dave


-- 
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: Problem with cron

2013-03-22 Thread David G . Miller
Joe Zeff joe at zeff.us writes:

 
 I have my computers registered with the Linux Counter, and my main 
 desktop machine is supposed to update its status once a week, using a 
 cron job:
 
 # added by lico-update.sh version 0.3.14
 58 11 * * 4 /home/joe/bin/lico-update.sh -m
 
 The permissions on the script are right, and if run manually, it works. 
   This worked fine under Fedora 16, but doesn't now that I'm running F 
 17.  Does anybody know what's happened, or how to find out?
From the crontab man page:

The cron jobs could be allow or disallow for different users. For  classical 
crontab  there exists  cron.allow  and cron.deny files.  If cron.allow file
exists, then you must be listed therein in order to be allowed to use this
command.  

Perchance you're not in crontab.allow?

Cheers,
Dave


-- 
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: Creating an rpm from scratch

2013-03-14 Thread David G . Miller
Bill Davidsen davidsen at tmr.com writes:

 
 I am happy to say the last rpm I had to create was back during 2.5 development
 testing days. Now I would find it convenient to roll another, and I'm hoping 
 there's by now a better tools to help create an rpm from scratch, something 
 more intuitive than the man page in one window and vi in the other.
 
 Is there?
 
Maximum RPM is still the definitive work on how to build RPMs:

http://www.rpm.org/max-rpm/

Be aware that rpm tends to evolve over time and rpmbuild is not necessarily
backwards compatible.  You need to use the version of rpmbuild that matches
the oldest distribution you want to install on.  My last gig had a lot of people
on RHEL 5.X so I had to build on an RHEL 5.X platform.  The resulting rpm still
worked on RHEL 6 and Fedora.

Cheers,
Dave


-- 
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: Multiboot question

2013-02-28 Thread David G . Miller
Christopher Meng cickumqt at gmail.com writes:

SNIP
 sd3.    55GB not parted
 sd4.    32GB not parted
 Now I want to install Fedora 17 on sd3 or sd4, but I don't know howto. From 
Anaconda I failed evrrytime for not enough space or some other reasons.
 So any hints availabe? I think two lvm is the way of installing dual Fedora, 
isn't it? 

I was hoping someone else who actually remembered how to do this would respond
to your question.  That hasn't happened so I'll give it my best shot.

I run Fedora from a 400GB external hard disk for my laptop (long story). I more
or less divide the disk between the current Fedora release and the previous
release.  That way, by the time the previous release is no longer supported,
there is a new release to try and the current release is relatively stable.  So,
currently, I have FC 18 on one partition set and FC 17 on the other.

It took several tries to find where the option is hidden but there is a button
on option of some kind on the partition screen that allows you to install over
existing partitions.  Unfortunately, I don't remember exactly where it is or the
label.  I just remember that it wasn't at all obvious.

Restart your installation.  Poke around on the partitioning screen.  There is a
well hidden option for installing to existing partitions.  Once you find that,
you get the familiar installer partition tool for assigning partitions to mount
points and the option to format the partition or not.

Cheers,
Dave



-- 
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: Odd Question, Wifi

2013-02-19 Thread David G . Miller
Jim binarynut at comcast.net writes:

 
 Is there any way a Unsecure Wifi connection,  one can determine how to 
 contact the owner about his connection.
 
 I can't visualise how , but I just thought I would just ask.
Use nmap to find the actual host IP addresses of systems on his network and then
use the -M option of smbclient to try sending a Windows pop-up:

-M|--message NetBIOS name
 This options allows you to send messages, using the WinPopup protocol,
 to another computer. Once a connection is established you then type your
 message, pressing ^D (control-D) to end.

 If the receiving computer is running WinPopup the user will receive the 
 message and probably a beep. If they are not running WinPopup the message 
 will be lost, and no error message will occur.

 The message is also automatically truncated if the message is over 1600 
 bytes, as this is the limit of the protocol.

 One useful trick is to pipe the message through smbclient. For example: 
 smbclient -M FRED  mymessage.txt will send the message in the file 
 mymessage.txt to the machine FRED.

 You may also find the -U and -I options useful, as they allow you to 
 control the FROM and TO parts of the message.

Lots of ways this won't work but you get an actual pop-up window with the
message if it does.

Cheers,
Dave





-- 
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: util-linux /mount / df broken most of the time

2013-02-04 Thread David G . Miller
may I suggest:

rpm -q --whatprovides `which df`

and let us know what comes back?

Cheers,
Dave




-- 
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: util-linux /mount / df broken most of the time

2013-02-04 Thread David G . Miller
Reindl Harald h.reindl at thelounge.net writes:

 
 
 Am 04.02.2013 19:29, schrieb David G.Miller:
  may I suggest:
  
  rpm -q --whatprovides `which df`
  
  and let us know what comes back?
  
  Cheers,
  Dave
 
 [harry at srv-rhsoft:~]$ rpm -q --whatprovides `which /usr/bin/df`
 coreutils-8.17-8.fc18.x86_64
 
 but since libraries may play in this game...
 
Yes.  So the next rpm command to try is:

rpm -vv --verfiy coreutils | less

You'll need to look through the relocations section and verify that df matches
what coreutils rpm installed down in the list of programs.

Cheers,
Dave



-- 
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: util-linux /mount / df broken most of the time

2013-02-04 Thread David G . Miller
Michael Schwendt mschwendt at gmail.com writes:

 
 On Mon, 04 Feb 2013 22:42:20 +0100, Reindl Harald wrote:
 
  coreutils is reinstalled and clean
  
  i found out that binutils was borked and ld not found anymore
  ld is OK after yum reinstall binutils but df still does not
  show the rootfs
 
 How is that different from bug 887763?
 
 https://bugzilla.redhat.com/887763 : The output of the command df (without
 any param) omits the line for the root filesystem
 
Could be the same but interesting that not everyone (including me) sees it.  The
bug suggests looking at the output of:

stat --printf %d\t%n\n / /var/lib/nfs/rpc_pipefs

If the numbers for both / and /var/lib/nfs/rpc_pipefs are the same, df doesn't
output a line for /.  If they're different, no problem.  

Apparently, /var/lib/nfs/rpc_pipefs has something to do with the implementation
of nfs but just enabling an nfs export  and starting the service doesn't cause
the problem.  I'll have to try rebooting the box with nfs server enabled at
start up and see if I can reproduce the problem.

Cheers,
Dave


-- 
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: what's with the 'i'?

2013-02-02 Thread David G . Miller
Antonio Olivares wingators at inbox.com writes:

  And, on a more international note, if somebody just mentions the war,
  which war do you think of first?  

 War between the States!(Civil War)

I used to work with a gentleman who grew up in northern Virginia.  He said it
wasn't until he was in high school that he realized that the Civil War and
The War of Northern Aggression were two different names for the same event.

I'd swear that one of the most valuable contributions I make to any project I
work on is making sure that all of the people involved have the same
understanding of what we're doing and how we're going about doing it (frequently
that even entails me changing my view of what that is).  My vote is for anything
that promotes clear communication and solidly against anything that makes clear
communication more difficult.

Cheers,
Dave




-- 
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: what's with the 'i'?

2013-02-01 Thread David G . Miller
Joe Zeff joe at zeff.us writes:

 As an example, does anybody reading 
 this know what I mean by an identical cousin?

Yes and now I have the d**n jingle from the show going through my head but
they're cousins, identical cousins...

AAGGH!

Cheers,
Dave

-- 
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: what's with the 'i'?

2013-01-31 Thread David G . Miller
Joe Zeff joe at zeff.us writes:

 
 On 01/31/2013 08:34 AM, Andras Simon wrote:
  I'd think it's the coolness thing.
 
 What's cool about looking like an ignoramus?
I just go with these are the same people who aren't intelligent enough to
operate a baseball cap so they end up wearing it backwards.

(Not original.  Don't recall who the comedian was that used this in a 
monologue).

Cheers,
Dave



-- 
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: Holding down the power button when the systems freezes

2013-01-29 Thread David G . Miller
Max Pyziur pyz at brama.com writes:

 
 On Tue, 29 Jan 2013, Paul Smith wrote:
 
  On Tue, Jan 29, 2013 at 4:24 AM, David G. Miller dave at davenjudy.org
wrote:
  When the systems freezes, is it safe to hold down the power button to
  power off the machine? If not, what alternatives do you suggest?
 
  Simple test: if CapsLock and/or NumLock and/or ScrollLock still work 
(keyboard
  light reflects change in state), you have a shot at the Alt-SysReq-≤key 
stuff.
SNIP
  Thanks, David and all other respondents. In case lights works, how can
  one get a console?
 
 Ok, I'll play.
 
SNIP
 If you're running a LAN/home network and you have other machines on the 
 network, and provided those machines have some ssh/telnet client software, 
 and the (blanket-wrapped) frozen machine is running a telnet/ssh daemon 
 and set to receive requests, you try accessing the (supposedly) frozen 
 machine by ssh/telnet client.
SNIP
CTRL+ALT+F2 through CTRL+ALT+F6 (where F# = Function key #) will bring up an
alternate console.  Hold down Control and Alt then pick a function key.  Get
back to the GUI with CTRL+ALT+F1 on Fedora or CTRL+ALT+F7 on RHEL and clones. 
If the system is busy, you may have to wait a little while for it to respond. 

Another choice is CTRL+ALT+Backspace to kill the GUI.  If you start in graphical
mode, the GUI will restart.  If you start in text mode, you'll get back to your
original login session.

Cheers,
Dave

-- 
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: telnetd mystery ....

2013-01-29 Thread David G . Miller
Ed Greshko Ed.Greshko at greshko.com writes:

 
 On 01/29/2013 10:19 PM, Matthew Miller wrote:
  On Tue, Jan 29, 2013 at 11:46:58AM +0800, Ed Greshko wrote:
SNIP
  Has anyone configured telnetd for use on F18?
SNIP
  I just did, and I didn't add -D, but I did change disabled = yes to no
  in the telnet xinetd config. And it just worked.
 
 Thanks for testing.  
 
 That is what I did too  And it fails as described.   I'm stumped.
 
Seeing the same problem here that Ed saw.  I am seeing one interesting twist
that Ed didn't mention.  If I start the telnet server on my F18 box with
something like server_args = -D report, I can login locally.  If I try to log
in from a different box, I get a no route to host message which is bogus since
I can ping the F18 system or ssh to it.  I messed with hosts.allow and
hosts.deny but didn't see any change.

Maybe the problem isn't in telnetd but in tcp wrappers instead.

All testing is being done with iptables stopped and SELinux in permissive mode.

Cheers,
Dave



-- 
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: Holding down the power button when the systems freezes

2013-01-28 Thread David G . Miller
Paul Smith phhs80 at gmail.com writes:
 When the systems freezes, is it safe to hold down the power button to
 power off the machine? If not, what alternatives do you suggest?
Simple test: if CapsLock and/or NumLock and/or ScrollLock still work (keyboard
light reflects change in state), you have a shot at the Alt-SysReq-key stuff.
 The keyboard lights are actually controlled by the O/S (keyboard driver
specifically).  If the O/S is dead, the lights won't change state when you push
whatever.  

I've had fairly good luck with this test.  Lights work -- be patient and see if
you can get an alternate console, shell in, etc.  Lights don't work -- power
key time.

Cheers,
Dave



-- 
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: F18: post-friday updates + ssh ports + iptables

2013-01-28 Thread David G . Miller
Ranjan Maitra maitra.mbox.ignored at inbox.com writes:

 So, I have a strange problem which I can't figure out. After Friday's
 updates, I was unable to ssh into the machine with a nonstandard port.
 I changed the port to the default and was able to get in. I was able to
 resolve this only after stopping and starting iptables service.

Possible simple explanation: Do you have an iptables rule that restricts access
to the target system to a specific host?  If so, did you specify the system to
allow in using a host name (or FQDN) or did you use that system's IP address? 
If the host name can't be resolved at startup but resolves once the system is
fully up, you could have an explanation for the behavior you're seeing.  

I think I've also seen this with a slow DNS or a resolv.conf that includes an
unavailable DNS server.

Cheers,
Dave




-- 
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: Where is the detailed docs on firewalld?

2013-01-21 Thread David G . Miller
Patrick O'Callaghan pocallaghan at gmail.com writes:

 
Lots of SNIPPING
 From
 https://fedoraproject.org/wiki/FirewallD?rd=FirewallD/#Direct_options
 
 The arguments args of the passthrough option are the same as
 the corresponding iptables, ip6tables and ebtables arguments.
 
 poc
 
So, could I just write a shell script that reads my /etc/sysconfig/iptables file
and does a passthrough call for each rule?  And then go through the dainbramage
to get systemctl to execute rc.local to get it executed at startup?

I'm not so much worried about normal rules like opening a specific port as
custom rules like filtering malformed packets, disallowing multiple connect
attempts from the same IP address, etc.

Somehow I don't see the GUI as letting me craft rules like:

# The next two rules prevent non-standard TCP packets from evading the firewall.

-A INPUT -p tcp --tcp-flags SYN,FIN SYN,FIN -j LOG --log-prefix packet with
FIN+SYN rec'd: 
-A INPUT -p tcp --tcp-flags SYN,FIN SYN,FIN -j DROP

Cheers,
Dave



-- 
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: Install FC18 on laptop? Wifi woes

2013-01-18 Thread David G . Miller
Bill Davidsen davidsen at tmr.com writes:

 
 I'm trying to update a laptop to FC18, but that does not seem to be an 
 option, 
 because the Broadcom WiFi is still not supported. 
SNIP
 
 Suggestions?
 
I just did a modprobe b43 and the b43 module loaded without requiring any
additional files or packages.  Clicked on the NetworkMangler status widget and
picked my wireless AP.  Provided the password and connected right up.

I have a fairly old laptop with the BCM4306 chipset and my F18 install is fairly
pristine but I do have a wired connection to the same laptop and did a yum
update so the kernel is current.  I previously had F16 working on the same
laptop and still have a working install of F17 on another partition set.

Cheers,
Dave



-- 
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: Install FC18 on laptop? Wifi woes

2013-01-18 Thread David G . Miller
Bill Davidsen davidsen at tmr.com writes:

 
 David G. Miller wrote:
  Bill Davidsen davidsen at tmr.com writes:
  I'm trying to update a laptop to FC18, but that does not seem to be an 
  option,
SNIP
  I just did a modprobe b43 and the b43 module loaded without requiring any
  additional files or packages.
SNIP
 The wired connection would be nice, I had hoped to avoid that, as upgrading 
 laptops is probably not going to be a once in a lifetime event. Finding a way 
 without wires is more fun than bringing a laptop to a wire, since then you 
can't 
 easily justify working on the wireless solution for all the other laptops.
 
I just checked and I'm getting the broadcom firmware (under /lib/firmware/brcm)
from the linux-firmware rpm.  Here's what yum info says about it:

[root@petard ~]# yum info linux-firmware
Loaded plugins: langpacks, presto
Installed Packages
Name: linux-firmware
Arch: noarch
Version : 20120925
Release : 0.3.git236367d.fc18
Size: 34 M
Repo: installed
From repo   : koji-override-0
Summary : Firmware files used by the Linux kernel
URL : http://www.kernel.org/
License : GPL+ and GPLv2+ and MIT and Redistributable, no modification 
permitted
Description : Kernel-firmware includes firmware files required for some devices 
: to operate.

Unfortunately, I have the rpmfusion repo enabled so it's possible that I picked
this up from there on an update (but I doubt it).  Also, I started from the xfce
respin CD.  I think the repo being koji-override-0 is an artifact of the xfce
respin but it could make a difference.

Cheers,
Dave



-- 
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: Reconfiguring packages

2013-01-03 Thread David G . Miller
Frank McCormick beacon at videotron.ca writes:
 On 02/01/13 04:22 AM, Michael Schwendt wrote:
  On Tue, 01 Jan 2013 20:03:33 -0500, Frank McCormick wrote:
  On 01/01/2013 04:26 PM, Michael Schwendt wrote:
  On Tue, 01 Jan 2013 15:37:11 -0500, Frank McCormick wrote:
 Having come from Debian unstable, the switch to YUM from Aptitude
  is a bit disconcerting for me. So far I have managed but i have a
question.
 
  In Debian, a package can be reconfigured (package such as console-setup)
  using dpkg-reconfigure. Can the same thing be accomplished
  in Fedora. I have 2 Fedora installations, 17 and 18.

SNIP

  No. As I wrote, _something like_ that is not used by RPM packages

SNIP

 
There actually are a couple of possibilities but I'd suggest getting used to
Fedora out of the box first.  You will probably find that whatever you wanted
to change at install time can be changed through a configuration file or is a
one time action that you can take care of after the installation. 

There are two levels of customization that rpm and rpm packages support outside
of yum:

1) Look at the man page for rpm.  It's possible that whatever customization you
want can be accomplished by downloading the rpm(s) and then using rpm command
line switches to override the package defaults.

2) Even more intrusive: rpm packages can be disassembled using cpio.  You can
then reassemble the package anyway you want using rpmbuild.  This is definitely
not for the feint of heart.

As usual, if you break it, you get to keep the pieces.  The packages and any
dependent packages assume the standard installation.  Any changes you make can
break these dependencies in strange and not obvious ways.

Cheers,
Dave

-- 
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: Multi-Threaded make

2012-11-29 Thread David G . Miller
Gabriel VLASIU gabriel at vlasiu.net writes:

 
 
 On Thu, 29 Nov 2012, JD wrote:
 
  That does not make sense.
 
  I have a unicore!! An old Athlon64 3700+,
 In this case %{?_smp_mflags} is expanded to -j1 or  and you will have 
 exactly only one cc1.
 
SNIP
  and yet ps -ef shows up to 4 makes running at a time.
 Read the previous mail again.
 
 Gabriel
 
Make is much more constrained by disk I/O than by CPU load.  Setting -j to be
equal to the number of cores/CPUs is just playing it safe.  This is especially
true when building a rpm which involves not just compiles and link but also
packaging, dependency resolution and documentation tasks which are even more
disk I/O intensive than compiles.  Chances are that several of these operations
that not dependent on successfully compiling the code are fired off in parallel
rather than doing them sequentially and that old workhorse make gets the task of
managing each of these tasks.  Thus, you end up with multiple copies of make
running at the same time even on a single core/CPU system to perform these 
tasks.

Now just to totally blow your mind...  while working with the 2.5.X development
kernels prior to the release of 2.6.0 I was doing at least one kernel build for
each new point release (sometimes more if there were build issues to resolve). 
At that time my primary desktop was a dual CPU (back in the day before multiple
cores) Athlon rig.  Since I had all sorts of time and plenty of trials to
experiment with I played around with the setting of -j for kernel builds.  My
best results were with -j 12.

Cheers,
Dave



-- 
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: Multi-Threaded make

2012-11-29 Thread David G . Miller
JD jd1008 at gmail.com writes:

 For the last time:
 rpmbuild has no -j anything  option!!!
 
JD -

Calm down.  Have a glass of wine or a beer or whatever.  Noone is saying
rpmbuild has a -j option.  Several of us are trying to explain to you that
programs like rpmbuild can do things that the end user may not realize are
happening.  If you wish to learn from our experience, we'll attempt to answer
your questions.  If not, don't expect much help.

Back to the question at hand.  Depending on the nature of the rpm being built,
rpmbuild may spawn several make processes that run in parallel.  You are seeing
this when you run ps during your build.  You probably have no control over this
although there MAY be options for invoking rpmbuild that control this.  

What I was attempting to explain is that tasks with significant I/O can
frequently run in parallel even though there are fewer CPUs than tasks.  Several
tasks can be waiting on I/O and the CPU is idle which means doing something else
MAY decrease the overall time the rpm build takes.  I used the example of
building the kernel to illustrate this; nothing more.

Cheers,
Dave


-- 
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: Hack attacks

2012-11-18 Thread David G . Miller
Roger arelem at bigpond.com writes:

 
 Is there any way to trace ip addresses back past the originating ISP.
 I've been using whois but it seems limited.
 
 Thanks in advance
 Roger
 

Chances are that any sort of multi-host attack will use zombies as proxies. 
Even if you are able to chase the IP address to someone, chances are that their
system has been hacked and they have nothing to do with your attack (other than
providing the zombie).  And they'll deny it's their system causing the problem.

Cheers,
Dave


-- 
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: Laptop doesn't know which display to use when docked.

2012-10-19 Thread David G . Miller
Terry Polzin foxec208 at wowway.com writes:

 
 I am running xfce on F17 completely patched and current.
 
 My laptop is a HP probook 6460b.  When I boot it docked the grub screen
 appears on the external display.  When the boot has completed the
 background screen is displayed on the external display. I get no login
 prompt on the external display.  I press enter a couple of times the
 login display will appear and I'll log in then the external display goes
 dark.  I open up the laptop and it's display has the desktop on it and I
 have to manually switch to the external display and discontinue use of
 the laptop display.  If both displays are selected for use the whole
 thing wants to act like a twin head setup which I don't want.
 
 What do I have to do to get the laptop to use the external display when
 docked and it's own display when it isn't automagically. To undock the
 laptop I have to reverse the display procedure of course.  This also
 makes it impossible to undock and run without making manual changes as
 to which display to use.
 

I had the opposite problem.  When I am at work I run my laptop in dual head
mode.  If I'm travelling, I just have the laptop.  The laptop (HP Pavilion G7)
seemed to think that the external monitor was always attached and would not
switch to just the internal display.  This is with FC-16 and xfce.

My first work-around was to boot in graphical mode.  All I had to do was wait
until the system had put up the login screen and then I could hit the screen
brightness (brighter) adjustment button a few times and there was my login
screen.  Hitting the button prior to X starting had no effect (good or bad). I
had a completely black screen until X was up and then I could adjust the
brightness.  Likewise, the system would only use the external monitor, if
attached, while booting but, since I could see the boot progress on it, I knew
when I could adjust the brightness of the laptop's internal monitor.  Also, the
display select button had no effect.

I did some digging and finally found a bug report that mentioned setting a
couple of kernel parameters: acpi_backlight=vendor acpi_osi=linux
video.brightness_switch_enabled=1.  You might try playing with these to see if
they have any affect on your issue.

Cheers,
Dave


-- 
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: enable second monitor in F14?

2012-10-19 Thread David G . Miller
Dave Stevens geek at uniserve.com writes:

 
 I tried to uninstall OpenOffice before installing LibreOffice and  
 found that my proprietary ATI X driver was uninstalled too. After  
 sorting that out I wound up sticking with OO after all. But now my  
 monitors mirror each other and I don't see where/how to change to the  
 pan view I had before with independent display content. Suggestions?
 
 Dave
 

xrandr: 

http://www.thinkwiki.org/wiki/Xorg_RandR_1.2#Using_xrandr_to_do_useful_things

Start with xrandr with no arguments to see which displays are detected.  I use:

xrandr --output VGA-0 --left-of LVDS

to sort out which display is where for me.  Seems to be more reliable than the
GUI tools.

Cheers,
Dave

-- 
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 is a .txt file being run as a php script?

2012-10-08 Thread David G . Miller
Tom Horsley horsley1953 at gmail.com writes:

 
 On my local system I have apache running so I can test web pages
 before I upload them to my ISP.
 
 I have a sample .php script which I explicitly named with
 a .php.txt suffix so it would be treated as a plain text
 file, not a php script.
 
 Yet apache is clearly running the php script rather than just
 uploading the plain text copy of the script when I click
 on the link to the .php.txt file.
 
 Anyone have any clue what is causing this to happen?
 I can't imagine this is something that would be desirable
 behavior .
 
 I made it stop by turning off php completely in the
 subdirectory holding the pages, but I still what to
 understand what on earth was making it run the script
 in the first place.

Just guessing but what is the first line of the file?  It's probably:

?php

Apache reads the file, hits the ?php line and processes it as a php file.  It's
a feature.  *nix (not just Linux) don't use the file extension to determine what
to do with a file.

Cheers,
Dave

-- 
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: possible problem with scp/ssh/telnet

2012-08-13 Thread David G . Miller
Paul Allen Newell pnewell at cs.cmu.edu writes:

 
 [inline]
 
 On 8/12/2012 4:12 PM, David G. Miller wrote:
  Paul Allen Newell pnewell at cs.cmu.edu writes:
  SNIP
 
 
 I checked ifconfig/ipconfig, plus verified the hosts file on both 
 machines. I also checked the tcp/ip settings on the Windows side. 
 Everything looks correct and certainly has not changed.
 
You would be surprised at how many networking connectivity problems are simply
because of DNS errors.  Check the easy things first.

SNIP
  is service (or port) 23.  Your log entries are to port 138 so, again, 
nothing to
  do with ssh or telnet.
 
 Okay, more confusion as I am not seeing any port 22.
SNIP

The rules in /etc/sysconfig/iptables are processed sequentially.  When a packet
matches a rule the rule is applied.  ACCEPT rules tell iptables to hand off the
packet to the corresponding service.

# more /etc/sysconfig/iptables
# Generated by iptables-save v1.4.12 on Sat Aug 11 23:29:10 2012
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT

The next line in your iptables file is your ACCEPT rule for connections to
port 22.  iptables stops processing the packet and hands it off to sshd at this
point.

-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -s 127.0.0.1/32 -d 192.168.2.0/24 -p udp -m state --state NEW -m udp --
dport 631
-A INPUT -s 127.0.0.1/32 -d 192.168.2.0/24 -p tcp -m state --state NEW -m tcp --
dport 631

Here's your logging line.  Since packets coming in to port 22 have already been
handed off to sshd, this rule is never hit for them.

-A INPUT -j LOG --log-prefix IPTABLES: LOG REJECT 
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Sat Aug 11 23:29:10 2012
[root at yoyo ~]#
+++

I use logging rules like this a lot.  The only thing you need to be careful
about is putting a blanket logging rule too early in your iptables file.  You
can get swamped with too much data really easily.

Cheers,
Dave


-- 
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: possible problem with scp/ssh/telnet

2012-08-12 Thread David G . Miller
Paul Allen Newell pnewell at cs.cmu.edu writes:

 Up until recently, I have been able to scp/ssh from my F16 box to my 
 WinXP under cygwin without problem. Today, it appears that isn't the case.

SNIP

it is logging errors and I see the following:
 
 Aug 11 23:43:43 yoyo kernel: [ 779.725071] IPTABLES: LOG REJECT 
 IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:1e:8c:c3:21:d6:08:00 
 SRC=192.168.2.14 DST=192.168.2.255 LEN=229 TOS=0x00 PREC=0x00 TTL=128 
 ID=33554 PROTO=UDP SPT=138 DPT=138 LEN=209

SNIP
 

Just a quick lesson in reading IP tables logs.  For first level connection
debugging I find the following pieces of information in the log to be most 
useful:

SRC=IP address of the sending system
DST=IP address of the destination system

Do an ifconfig (Linux) or ipconfig (Windows) to see what the IP address is for
both end points.  Verifying these lets you make sure the problem isn't DNS.

PROTO=The protocol for the communication.  Typically one of UDP, TCP or ICMP. 
ssh and telnet  use TCP so these log entries are for something else.

SPT=Source port.  Can be interesting if you have outbound firewall filter rules
(most people don't).
DPT=Destination port.  Identifies the service requested at the destination. 
Look in /etc/services for definitions.  ssh is service (or port 22) and telnet
is service (or port) 23.  Your log entries are to port 138 so, again, nothing to
do with ssh or telnet.

Cheers,
Dave

-- 
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: F17 External Monitor on 945GM

2012-07-24 Thread David G . Miller
Philippe LeCavalier support at plecavalier.com writes:

 
 
 On Thu, Jul 19, 2012 at 9:14 AM, Philippe LeCavalier support at
plecavalier.com wrote:
 Hi Everyone.
...
 A yes. The infamous Intel 945 chipset...I waded through the whole sluggish
feel issues of the 2048 res issue. Then an update appeared to have addressed
all my issues(no idea which one because the one that was supposed to fix it
didn't). 
...
 
 So here are the symptoms: if I connect an external monitor(VGA) it won't light
up at all. My LCD flickers and comes back to it's original state. Fine. The
display settings reflect that one was connected and typically ids it properly.
Again, fine. I then set an appropriate resolution and placement for both and hit
apply. At this point the screen flickers again and my laptop comes back but the
monitor does nothing(orange light). I can however, bring my cursor passed the
LCD to where the monitor is but it's not lit so no joy there. If I let the
time run out on the dialog everything goes back to normal. No harm no foul. If I
play with any of the kbd combo keys to force the external monitor gnome-shell
freaks out and I'm forced to recover using the console. The only thing I can
successfully accomplish is Fn+F5 resulting in the external monitor only-type
setup. Recovering from that without restarting X is not possible. If I toggle
back to my LCD the screen flickers and spins. Same goes for disconnecting the
VGA cable. At this point I can't go back to the monitor either. I have no choice
but to open a console and restart Gnome-Shell. The odd time I can't even do that
and must power off(ouch! haven't had to do that in Linux for years)
 

 -- Thanks,
 Phil
 
 
Hi Phil -

I had some similar problems with FC16 on an HP laptop with the i915 chip set.  X
still starts goofy with an external monitor attached but a simple:

xrandr --output VGA1 --left-of LVDS1

sorts out how much of the display should be on each monitor.  

The trivial oddity that I have is that, for some reason, this laptop monitor
always comes up at zero brightness.  Have you tried adjusting the screen
brightness on the laptop once everything is up?  I have to wait until X is up
for this to work.  The text output from booting goes to the external monitor and
I can pound on the laptop's screen brightness key and nothing happens.  After X
starts, it behaves as expected.  This drove me nuts getting FC16 working since
there weren't any errors; just no display.

I'm running FC16 from a bootable, external hard disk.  The i915 laptop is in my
office and I have an older HP laptop with an ATI chipset at home.  I boot the
home laptop from the external hard disk and the display is duplicated until X
starts and then I get the same slightly goofy overlap I see on my work laptop. 
A slightly different xrandr (xrandr --output VGA-0 --left-of LVDS) sorts out
those displays.

A couple of other suggestions are to turn off graphical boot and quiet mode so
you can see what's going on as the system boots.  Also, switch to booting in the
equivalent to runlevel 3 (multiuser target) and then start X from the command
line with startx.

Cheers,
Dave

-- 
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: NetworkManager strange stuff -

2012-07-10 Thread David G . Miller
Bob Goodwin - Zuni, Virginia, USA bobgoodwin at wildblue.net writes:

 
 On 10/07/12 17:37, Steven Stern types:
  On 07/10/2012 04:28 PM, Bob Goodwin - Zuni, Virginia, USA wrote:
  This is F-17/64 bit.
 
  The dd-wrt router assigns dhcp addresses on our LAN. However this
  computer 192.168.1.9., if I let NetworkManager assign an address via
  dhcp it insists on assigning 192.168.1.10, the next unused dhcp
  address no matter what I enter under NM edit Automatic. If I go to
  NM edit and assign the address as Manual it becomes 192.168.1.9 as
  expected. Obviously the simple solution is to stay with the latter 
  case.
 
  My question then is, is this to be expected due to two dhcp servers
  trying to assign an address, or am I doing something wrong?.
SNIP
 
 Ok, so there's nothing I can do without changing my system address
 assignments which began before I started using NetworkManager. I
 will just assign the NM address manually.
 
 It works either way but I like to see the device names I have
 assigned in the DHCP client list and when it assigns a new address I
 lose the name, it's blank.
 
 Thanks for the help.
 
 Bob
 
You will find that *BOTH* the DHCP client and DHCP server cache previous
addresses.  A client that has had an address will request the same address. 
Even if the client doesn't ask for the same address, the server will check its
cache to see if a particular address was previously assigned and will re-assign
the same address.

Found this out the hard way when trying to get DHCPv6 working.  Still have some
similar oddities to you that I need to clean out caches to make go away.

Cheers,
Dave



-- 
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 it possible to setup read-only root ?

2012-07-02 Thread David G . Miller
John Wendel jwendel10 at comcast.net writes:

 
 On 07/01/2012 12:17 PM, jdow wrote:
  [SNIP]
 
  The equivalent is done with live CDs you know.
 
  {^_^}
 
 I think you just supplied the answer! I didn't think of it, but the 
 equivalent of a live CD is exactly what I need. Now I just need to 
 figure out how to build a live CD like system, minus the compressed 
 filesystem stuff and I should be there.
 
 I should have mentioned earlier that this box is going to be a dedicated 
 media player, with the compact flash drive as it's only disc. I know I 
 should probably just use openelec or geexbox, but that would take all 
 the fun out of it. I will try to steal the init system from one of these 
 dedicated distributions, but I really want to build the system with 
 Fedora packages as much as possible.
 
 Thanks everyone for sharing your knowledge.
 
 John
 

The live CD systems that I've dealt with have all created a minimal, in-RAM /
(or root) using ramfs.  Just boot with your favorite live CD distro, open a
terminal and run mount.  It does mean that the image of / can be read-only and
it takes surprisingly little RAM to have the bits of Linux in RAM that are
actually volatile.

Cheers,
Dave


-- 
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: Changing MB and CPU - reinstall of Fedora needed?

2012-06-11 Thread David G . Miller
Christopher Svanefalk christopher.svanefalk at gmail.com writes:

 
 
 I will be moving from an AMD FX-8120 to an Intel i7 3930K, which of course
means I will be changing my motherboard as well. All other relevant system
components will stay the same (including the HDD and any data on it).I just
wondered if Fedora can accomodate the new hardware directly, or if there are any
procedures I should go through after booting again? Could a reinstall be needed?
I am guessing I will not have a problem booting, since Grub is installed on the
MBR of the drive, and I believe the new MB will search this first for a
bootloader.Thanks in advance for all help!
 -- Best,
 Christopher Svanefalk
 
 
 

I pretty much do this every day.  I have FC 16 installed on an external hard
drive.  I have a system at home and a system at work that are both set up to
boot from an external drive.  The work system has an Intel i3 CPU, Intel
graphics, etc.  The home system has an AMD Athlon CPU, ATI graphics, etc.  Not
sure about the sound hardware but the work system is from 2005 while the work
system is recent so little likelihood it's the same.  About the only part that's
not transparent is I have to run xrandr after I startx to get things to display
on the right monitors.

Carrying the external hard drive between locations definitely beats lugging a
system back and forth.

Cheers,
Dave


-- 
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: Broken network hdw/softw

2012-06-03 Thread David G . Miller
David Highley dhighley at highley-recommended.com writes:

 
 After power cycle on system the line drivers for the network interface
 seemed to die, no link connection and no light. This is a mother board
 interface and dmesg still shows hardware discovery.
 
 Bought a PCI Express card and installed it. Then modified the mac
 address in the /etc/sysconfig/networking-scripts/ifcfg- file. Still
 no joy. Noticed that the dev name changed so I move the file to match
 the new dev name and edited the device name in the file.
 
 Still no joy. 
SNIP
Silly question but are you showing link lights with the PCI card?  If you are,
can you move the network connection to a different port on your switch and try
again?  Also, while you're there, verify that the lights on the switch are what
you expect.

Cheers,
Dave




-- 
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: rc.local not loaded on boot

2012-03-27 Thread David G . Miller
Aaron Konstam akonstam at sbcglobal.net writes:

 
 On Sun, 2012-03-25 at 17:34 +, David G. Miller wrote: 
   Quite a bit more to it than just putting a script there:
  
  http://forums.fedoraforum.org/showthread.php?t=272075
  
  Cheers,
  Dave

 I can't make head of tail of the discussion in the web site you mention.
 
 On my machine any systemctl statement that includes rc.local.service
 returns a statement that rc.local.service does not exist.
 
 What do you get from the web site?
The thread contains an extensive troubleshooting discussion of how to get
rc.local functionality working.  There are quite a few things to check and the
thread covers most of them.

Cheers,
Dave



-- 
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: rc.local not loaded on boot

2012-03-25 Thread David G . Miller
Bruno Martins bmomartins at gmail.com writes:

 
 Hello list,
 
 I can read here:

http://docs.fedoraproject.org/en-US/Fedora/16/html/Release_Notes/sect-Release_Notes-Changes_for_Sysadmin.html
 
 the following:
 
 3.2.4. rc.local no longer packaged
 
SNIP

You need to enable the service through systemctl.  Here's a long discussion that
looks at quite a few of the things that can affect getting rc.local functional.
 Quite a bit more to it than just putting a script there:

http://forums.fedoraforum.org/showthread.php?t=272075

Cheers,
Dave



-- 
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: Help with sound on Fc16

2012-03-24 Thread David G . Miller
don fisher hdf3 at comcast.net writes:

 
 I am trying to find documentation on the alsa/pulse audio system. My 
 goal is to set it up independent of gnome or KDE.
SNIP
 
 Thanks,
 don
I ran into a similar problem with my FC16 installation of the Xfce re-spin.  The
solution I finally came up with was to remove pulse audio and just go with ALSA.
 This was based on running into more than a few posting with that suggestion. 
When pulse works, it's great.  When it doesn't work it just gets in the way.

Cheers,
Dave 



-- 
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: READ ME: When replying to users digest...

2012-03-21 Thread David G . Miller
Bruno Wolff III bruno at wolff.to writes:

 
 On Wed, Mar 21, 2012 at 11:48:29 +,
Phil Dobbin bukowskiscat at gmail.com wrote:
 
 Digest mode is perfectly acceptable for use when searching for
 relevant topics but a bore when replying.
SNIP
 
 That are two available formats for digests. The nice one includes each
 message as an attachment. In this form you can reply to individual
 attachments. The other form mashes all of the messages together in one
 text/plain part, that makes it pretty much impossible to do correct
 replies to messages.
I'll also point out using an service such as Gmane
(http://dir.gmane.org/gmane.linux.redhat.fedora.general) when replying if you
receive digest mode.  It takes a few minutes to find hit their web site and find
the message but sometimes having time to think before applying fingers to
keyboard can be a feature.

Cheers,
Dave



-- 
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 16 black screen with Radeon HD 6470M: partially solved?

2012-02-20 Thread David G . Miller
M. Fioretti mfioretti at nexaima.net writes:

 
 On Thu, Dec 08, 2011 20:18:21 PM +0100, Marco Fioretti wrote:
 
  I've got a HP G6 1273SL laptop with this chipset and a live cd of
  Fedora 16 x86_64, KDE spin... when I [boot] the screen goes
  completely black.
  
  if I... add to its initrd line the two parameters
 
  acpi_osi=Linux acpi_backlight=vendor
  
  Fedora boots without problems, but the laptop is quite warm.
 
 If I check the graphich chips status, I get:
 
 # cat  /sys/kernel/debug/vgaswitcheroo/switch
 0:IGD:+:Pwr::00:02.0
 1:DIS: :Pwr: etc etc...
 
 so, if I understand correctly, I MUST also disable the discrete
 graphic chip with a script like this:
 
 #
 #! /bin/bash
 
 modprobe radeon
 echo IGD  /sys/kernel/debug/vgaswitcheroo/switch
 echo OFF  /sys/kernel/debug/vgaswitcheroo/switch
 #
 
 and then add to /etc/rc/rc.local
 Is this 
 
Same problem with this video hardware:

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core
Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA
controller])
Subsystem: Hewlett-Packard Company Device 1671
Flags: bus master, fast devsel, latency 0, IRQ 41
Memory at c000 (64-bit, non-prefetchable) [size=4M]
Memory at b000 (64-bit, prefetchable) [size=256M]
I/O ports at 4000 [size=64]
Expansion ROM at unassigned [disabled]
Capabilities: access denied
Kernel driver in use: i915
Kernel modules: i915

and responded to the same kernel parameter fix.  Thanks.  I encountered this on
a HP Pavilion gz-1279dx.

The next interesting question is this.  My Fedora installation is VERY portable.
 I have it installed on an external USB drive.  This way I keep my environment
with me whether I'm at work, working from home or working someplace else.  I
just plug in the external drive and boot the system to my FC16 installation. 
So, the question is, will adding the kernel parameters mess with my ability to
boot on systems that don't require them?

Cheers,
Dave



-- 
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