[gentoo-user] How can i use GRUB to boot my windows?

2012-03-09 Thread 赵佳晖
   Hello , everyone , just now , i have installed gentoo from ubuntu 11.10
, And when i install the grub with the command : grub-install --no-floppy
/dev/sda . And when i reboot , i aware that i have

override my MBR.  And Now how can i edit my grub in the gentoo to boot my
windows 7 on /dev/sda1 ?

   For my windows boot manager has been override , should i use a windows
live CD , and go to DOS to execute the command : " fdisk /mbr " ,  after
that ,add the ubuntu and gentoo to the windows

 boot manager ?

   Can i boot the windows 7 from GRUB dircetly?

 PS: my grub version in gentoo is : GNU GRUB 0.97
-- 
好好学习,天天向上!!!


Re: [gentoo-user] photo viewer other than gthumb?

2012-03-09 Thread YoYo Siska
On Thu, Mar 08, 2012 at 10:48:30PM -0500, Daddy wrote:
> On March 8, 2012 at 10:34 PM Michael Mol  wrote:
> 
> > On Thu, Mar 8, 2012 at 10:14 PM, Daddy 
> wrote:
> > >
> > >
> > >
> > > On March 8, 2012 at 9:20 PM Grant  wrote:
> > >
> > >> Can anyone recommend a photo browser/viewer other than gthumb which is
> > >> in portage or an overlay?
> > >>
> > >> - Grant
> > >>
> > >
> > > media-gfx/gqview
> >
> > gqview became geeqie, FWIW. I don't recall the full story, but IIRC,
> > gqview stagnated, and geeqie is a fork.
> >
> > --
> > :wq
> 
> 
> Thanks ... I'm an old CLI dinosaur and display has been working for me fine
> for so many years. Something recently changed where it's not going from one
> file to the next in a directory. Also, there was something else I used to
> generate thumbnails, but I forgot. Just emerge geeqie ... btw ... gqview
> was just recommended to me 2 days ago in #gentoo ;)

For quick commandline viewing I use  xv, it is simple, just shows the
image, can show multiple images (space, backspace to go through them, q
to quit,) and  a few other resize / rotate options, if you rightclick on
the image, you get a 'menu' window with all the options and a list of
the images...


yoyo




Re: [gentoo-user] How can i use GRUB to boot my windows?

2012-03-09 Thread Marian Habrun
Hello,

grub --version
grub (GNU GRUB 0.97)

You can make this entry in /boot/grub/grub.conf (menu.lst symlinks to this 
file):

title Windows 7
rootnoverify (hd0,0)
chainloader +1

Have a nice day.

~Hello , everyone , just now , i have installed gentoo from ubuntu 11.10
~ , And when i install the grub with the command : grub-install --no-floppy
~ /dev/sda . And when i reboot , i aware that i have
~ 
~ override my MBR.  And Now how can i edit my grub in the gentoo to boot my
~ windows 7 on /dev/sda1 ?
~ 
~For my windows boot manager has been override , should i use a windows
~ live CD , and go to DOS to execute the command : " fdisk /mbr " ,  after
~ that ,add the ubuntu and gentoo to the windows
~ 
~  boot manager ?
~ 
~Can i boot the windows 7 from GRUB dircetly?
~ 
~  PS: my grub version in gentoo is : GNU GRUB 0.97
~ -- 
~ 好好学习,天天向上!!!
~ 



Re: [gentoo-user] How can i use GRUB to boot my windows?

2012-03-09 Thread YoYo Siska
On Fri, Mar 09, 2012 at 04:12:40PM +0800, 赵佳晖 wrote:
>Hello , everyone , just now , i have installed gentoo from ubuntu 11.10
> , And when i install the grub with the command : grub-install --no-floppy
> /dev/sda . And when i reboot , i aware that i have
> 
> override my MBR.  And Now how can i edit my grub in the gentoo to boot my
> windows 7 on /dev/sda1 ?
> 
>For my windows boot manager has been override , should i use a windows
> live CD , and go to DOS to execute the command : " fdisk /mbr " ,  after
> that ,add the ubuntu and gentoo to the windows
> 
>  boot manager ?
> 
>Can i boot the windows 7 from GRUB dircetly?
> 
>  PS: my grub version in gentoo is : GNU GRUB 0.97

Windows has (should have in a standard install ;) its own 'boot loader'
in its partition, it usually only installs a simple 'select the active
partition and boot from that' loader to the MBR, so in 99% it is enough
to just add 

title Windows
rootnoverify (hd0,0)
chainloader +1
makeactive


to /boot/grub/grub.conf, change (hd0,0) to whatever your windows
partition is ( hd0,0 is /dev/sda1, in hdX,Y  X is the disk number
(sda -> 0, sdb ->1, ..), Y is the partition number, counted from 0, ie
sda4 -> hd0,3)


yoyo




Re: [gentoo-user] photo viewer other than gthumb?

2012-03-09 Thread Neil Bothwick
On Thu, 8 Mar 2012 21:26:46 -0500, Michael Mol wrote:

> I typically use geeqie.

+1


-- 
Neil Bothwick

Some day my ship will come in, but with my luck, I'll be at the airport.


signature.asc
Description: PGP signature


Re: [gentoo-user] photo viewer other than gthumb?

2012-03-09 Thread Neil Bothwick
On Thu, 8 Mar 2012 22:38:43 -0500, Philip Webb wrote:

> I use Gwenview to review collections & Feh to browse from a terminal:
> I've used them a long time & strongly recommend both;
> if you're allergic to KDE, Geeqie mb a useable alternative.

I like KDE but I still prefer Geeqie


-- 
Neil Bothwick

Top Oxymorons Number 29: Soft rock


signature.asc
Description: PGP signature


Re: [gentoo-user] How can i use GRUB to boot my windows?

2012-03-09 Thread 赵佳晖
I have tried that , but it didn't work . But it comes the error : "Error
11: Unrecognized device string". I can't figure out why it comes...

2012/3/9 Marian Habrun 

> Hello,
>
> grub --version
> grub (GNU GRUB 0.97)
>
> You can make this entry in /boot/grub/grub.conf (menu.lst symlinks to this
> file):
>
> title Windows 7
> rootnoverify (hd0,0)
> chainloader +1
>
> Have a nice day.
>
> ~Hello , everyone , just now , i have installed gentoo from ubuntu
> 11.10
> ~ , And when i install the grub with the command : grub-install --no-floppy
> ~ /dev/sda . And when i reboot , i aware that i have
> ~
> ~ override my MBR.  And Now how can i edit my grub in the gentoo to boot my
> ~ windows 7 on /dev/sda1 ?
> ~
> ~For my windows boot manager has been override , should i use a windows
> ~ live CD , and go to DOS to execute the command : " fdisk /mbr " ,  after
> ~ that ,add the ubuntu and gentoo to the windows
> ~
> ~  boot manager ?
> ~
> ~Can i boot the windows 7 from GRUB dircetly?
> ~
> ~  PS: my grub version in gentoo is : GNU GRUB 0.97
> ~ --
> ~ 好好学习,天天向上!!!
> ~
>
>


-- 
好好学习,天天向上!!!


Re: [gentoo-user] How can i use GRUB to boot my windows?

2012-03-09 Thread Daddy
On March 9, 2012 at 7:08 AM "赵佳晖"  wrote:

> I have tried that , but it didn't work . But it comes the error : "Error
> 11: Unrecognized device string". I can't figure out why it comes...


Post your /etc/fstab and grub.conf please.

Re: [gentoo-user] How can i use GRUB to boot my windows?

2012-03-09 Thread 赵佳晖
OK,
/etc/fstab:

/dev/sda8 / ext3   noatime   0 1
/dev/cdrom   /mnt/cdrom autonoauto,ro 0,0

grub.conf:
default 0
timeout 30
splashimage=(hd0,7)/boot/grub/splash.xpm.gz

 title Gentoo
 root(hd0,7)
 kernel /boot/kernel-3.2.1-gentoo-r2
 root=/dev/sda8

 title Windows 7
 rootnoverify hd(0,0)
 makeactive
 chainloader +1

2012/3/9 Daddy 

> **
>  On March 9, 2012 at 7:08 AM "赵佳晖"  wrote:
>
> > I have tried that , but it didn't work . But it comes the error : "Error
> > 11: Unrecognized device string". I can't figure out why it comes...
>
> Post your /etc/fstab and grub.conf please.
>



-- 
好好学习,天天向上!!!


Re: [gentoo-user] How can i use GRUB to boot my windows?

2012-03-09 Thread Mick
On Friday 09 Mar 2012 12:40:45 赵佳晖 wrote:
> OK,
> /etc/fstab:
> 
> /dev/sda8 / ext3   noatime   0
> 1 /dev/cdrom   /mnt/cdrom autonoauto,ro 0,0
> 
> grub.conf:
> default 0
> timeout 30
> splashimage=(hd0,7)/boot/grub/splash.xpm.gz
> 
>  title Gentoo
>  root(hd0,7)
>  kernel /boot/kernel-3.2.1-gentoo-r2
>  root=/dev/sda8
> 
>  title Windows 7
>  rootnoverify hd(0,0)
>  makeactive
>  chainloader +1

You may want to try:

  rootnoverify hd(0,1)
  
because depending on the OEM installation of MSWindows the boot files may be on 
a different partition.  I have a Dell here which has a Dell recovery partition 
on /dev/sda1, the boot partition on /dev/sda2 and the MSWindows OS partition 
on /dev/sda3.

If you look at fdisk -l you should see which partition has the boot * flag.

-- 
Regards,
Mick


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


Re: [gentoo-user] How can i use GRUB to boot my windows?

2012-03-09 Thread 赵佳晖
i changed hd(0,0) to hd(0,1) , and it also comes Error 11, and when i run
the command : fdisk -l  .The /dev/sda1 has the boot * flag ..

2012/3/9 Mick 

> On Friday 09 Mar 2012 12:40:45 赵佳晖 wrote:
> > OK,
> > /etc/fstab:
> >
> > /dev/sda8 / ext3   noatime
> 0
> > 1 /dev/cdrom   /mnt/cdrom autonoauto,ro 0,0
> >
> > grub.conf:
> > default 0
> > timeout 30
> > splashimage=(hd0,7)/boot/grub/splash.xpm.gz
> >
> >  title Gentoo
> >  root(hd0,7)
> >  kernel /boot/kernel-3.2.1-gentoo-r2
> >  root=/dev/sda8
> >
> >  title Windows 7
> >  rootnoverify hd(0,0)
> >  makeactive
> >  chainloader +1
>
> You may want to try:
>
>  rootnoverify hd(0,1)
>
> because depending on the OEM installation of MSWindows the boot files may
> be on
> a different partition.  I have a Dell here which has a Dell recovery
> partition
> on /dev/sda1, the boot partition on /dev/sda2 and the MSWindows OS
> partition
> on /dev/sda3.
>
> If you look at fdisk -l you should see which partition has the boot * flag.
>
> --
> Regards,
> Mick
>



-- 
好好学习,天天向上!!!


Re: [gentoo-user] How can i use GRUB to boot my windows?

2012-03-09 Thread YoYo Siska
On Fri, Mar 09, 2012 at 09:15:20PM +0800, 赵佳晖 wrote:
> i changed hd(0,0) to hd(0,1) , and it also comes Error 11, and when i run
> the command : fdisk -l  .The /dev/sda1 has the boot * flag ..
> 
> 2012/3/9 Mick 
> 
> > On Friday 09 Mar 2012 12:40:45 赵佳晖 wrote:
> > > OK,
> > > /etc/fstab:
> > >
> > > /dev/sda8 / ext3   noatime
> > 0
> > > 1 /dev/cdrom   /mnt/cdrom autonoauto,ro 0,0
> > >
> > > grub.conf:
> > > default 0
> > > timeout 30
> > > splashimage=(hd0,7)/boot/grub/splash.xpm.gz
> > >
> > >  title Gentoo
> > >  root(hd0,7)
> > >  kernel /boot/kernel-3.2.1-gentoo-r2
> > >  root=/dev/sda8
> > >
> > >  title Windows 7
> > >  rootnoverify hd(0,0)
> > >  makeactive
> > >  chainloader +1

it should be "(hd0,0)" and not "hd(0,0)"

that would explain the Error 11, which means the string describing the
disc is wrong / cannot be parsed...

yoyo




Re: [gentoo-user] tracking IT work

2012-03-09 Thread Stefan Schmiedl

Am 08.03.2012 20:00, schrieb Stefan G. Weichinger:


oh, sorry, vi(m) here :-P


I'm using a plain text file (ok |-separated values) for this and a 
single macro:


  imap m \| "=strftime("%Y-%m-%d %H:%M")pa¶

Then, in insert mode \m appends " | " after the cursor,
and you have just fixed the start or stop time for the entry.

My work log looks like this:

client | item | start | stop

and once it's been run through my billing script, the billed items
are tagged

client | item | start | stop | billed

s.



Re: [gentoo-user] How can i use GRUB to boot my windows?

2012-03-09 Thread 赵佳晖
yes.. i'm too careless , thank you ...

2012/3/9 YoYo Siska 

> On Fri, Mar 09, 2012 at 09:15:20PM +0800, 赵佳晖 wrote:
> > i changed hd(0,0) to hd(0,1) , and it also comes Error 11, and when i run
> > the command : fdisk -l  .The /dev/sda1 has the boot * flag ..
> >
> > 2012/3/9 Mick 
> >
> > > On Friday 09 Mar 2012 12:40:45 赵佳晖 wrote:
> > > > OK,
> > > > /etc/fstab:
> > > >
> > > > /dev/sda8 / ext3   noatime
> > > 0
> > > > 1 /dev/cdrom   /mnt/cdrom autonoauto,ro 0,0
> > > >
> > > > grub.conf:
> > > > default 0
> > > > timeout 30
> > > > splashimage=(hd0,7)/boot/grub/splash.xpm.gz
> > > >
> > > >  title Gentoo
> > > >  root(hd0,7)
> > > >  kernel /boot/kernel-3.2.1-gentoo-r2
> > > >  root=/dev/sda8
> > > >
> > > >  title Windows 7
> > > >  rootnoverify hd(0,0)
> > > >  makeactive
> > > >  chainloader +1
>
> it should be "(hd0,0)" and not "hd(0,0)"
>
> that would explain the Error 11, which means the string describing the
> disc is wrong / cannot be parsed...
>
> yoyo
>
>
>


-- 
好好学习,天天向上!!!


Re: [gentoo-user] photo viewer other than gthumb?

2012-03-09 Thread Todd Goodman
* Michael Mol  [120308 21:31]:
> I typically use geeqie.
> 
> On Thu, Mar 8, 2012 at 9:20 PM, Grant  wrote:
> > Can anyone recommend a photo browser/viewer other than gthumb which is
> > in portage or an overlay?
> >
> > - Grant
> >
> 
> 
> 
> -- 
> :wq

+1 on geeqie

Todd



Re: [gentoo-user] How can i use GRUB to boot my windows?

2012-03-09 Thread m...@trausch.us
On 03/09/2012 07:40 AM, 赵佳晖 wrote:
> grub.conf:
> default 0
> timeout 30
> splashimage=(hd0,7)/boot/grub/splash.xpm.gz
> 
>  title Gentoo
>  root(hd0,7)
>  kernel /boot/kernel-3.2.1-gentoo-r2 
>  root=/dev/sda8
> 
>  title Windows 7
>  rootnoverify hd(0,0)
>  makeactive
>  chainloader +1

The error is present right there.  Compare your root and rootnoverify
lines.  Your rootnoverify line should read "rootnoverify (hd0,0)".

--- Mike

-- 
A man who reasons deliberately, manages it better after studying Logic
than he could before, if he is sincere about it and has common sense.
   --- Carveth Read, “Logic”



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Disk usage during emerge

2012-03-09 Thread Paul Hartman
On Fri, Mar 9, 2012 at 12:38 AM, Bryan Gardiner  wrote:
> On Thu, 08 Mar 2012 17:56:18 +0200
> Nikos Chantziaras  wrote:
>
>> I discovered this nifty little tool recently that tells you if any
>> deleted files are currently being kept open by running processes:
>> "app-admin/checkrestart".  I usually run it after world updates so I
>> can tell whether I need a restart or not.
>
> Because I'm too lazy to unkeyword and emerge it...  Does this program
> show how much space is being used by deleted files?  Or, is there a way
> to access more information about or even recover such a zombie file?
> lsof gives its inode number, but I have no idea how to access it from
> there.

I just ran it, here's the output:

Found 22 processes using old versions of upgraded files
(15 distinct programs)
(14 distinct packages)

Of these, 10 seem to contain init scripts which can be used to restart them:
The following packages seem to have init scripts that could be used
to restart them:
sys-apps/smartmontools:
5082/usr/sbin/smartd
sys-auth/consolekit:
4384/usr/sbin/console-kit-daemon
app-text/dictd:
4834/usr/sbin/dictd
sys-fs/mdadm:
3742/sbin/mdadm
net-dns/unbound:
4507/usr/sbin/unbound
net-print/cups:
4767/usr/sbin/cupsd
sys-apps/dbus:
4369/usr/bin/dbus-daemon
net-misc/ntp:
4975/usr/sbin/ntpd
net-fs/samba:
5015/usr/sbin/smbd
5045/usr/sbin/smbd
5021/usr/sbin/nmbd
app-crypt/ekeyd:
4851/usr/libexec/ekeyd

These are the init scripts:
/etc/init.d/smartd restart
/etc/init.d/consolekit restart
/etc/init.d/dictd restart
/etc/init.d/mdraid restart
/etc/init.d/mdadm restart
/etc/init.d/unbound restart
/etc/init.d/cupsd restart
/etc/init.d/dbus restart
/etc/init.d/ntpd restart
/etc/init.d/ntp-client restart
/etc/init.d/samba restart
/etc/init.d/ekey-egd-linux restart
/etc/init.d/ekeyd restart

These processes do not seem to have an associated init script to restart them:
sys-fs/udisks:
5357/usr/libexec/udisks-daemon
5350/usr/libexec/udisks-daemon
sys-apps/util-linux:
5223/sbin/agetty
5221/sbin/agetty
5222/sbin/agetty
5225/sbin/agetty
5224/sbin/agetty
27330   /sbin/agetty
sys-power/upower:
5327/usr/libexec/upowerd
sys-auth/polkit:
4467/usr/libexec/polkitd



Re: [gentoo-user] photo viewer other than gthumb?

2012-03-09 Thread Paul Hartman
On Thu, Mar 8, 2012 at 8:20 PM, Grant  wrote:
> Can anyone recommend a photo browser/viewer other than gthumb which is
> in portage or an overlay?

Assuming you are including viewers which require X :) I use geeqie for
browsing whole directories of images, pqiv for viewing single images
(typically called from midnight commander)



Re: [gentoo-user] photo viewer other than gthumb?

2012-03-09 Thread Frank Steinmetzger
On Thu, Mar 08, 2012 at 10:25:09PM -0800, Bryan Gardiner wrote:

> > gwenview. Part of KDE suite and depends on KDE libraries. Also,
> > F-Spot (It's a photo manager I guess).
> > 
> 
> Here's another vote for Gwenview...  Once it's set up to have all of
> Gthumb's keyboard shortcuts ;).

The only thing I don't really like about gwenview is its low speed. It takes a
few seconds to load when I just want to see an image, and also needs some time
to render the next image. For that purpose, kuickshow is a better alternative.
It also pages through images much faster, at the cost of quality (though this
can be configured) and a little jerkiness when the image gets displayed.
-- 
Gruß | Greetings | Qapla'
I forbid any use of my email addresses with Facebook services.

There are those and those.  But there are more of those than those.


pgp8ViKDD6Jzy.pgp
Description: PGP signature


Re: [gentoo-user] Re: Disk usage during emerge

2012-03-09 Thread Bryan Gardiner
Okay that looks helpful.  You just convinced me to install it :).  That
goes into a lot more depth than I'd imagined.

Thanks!

- Bryan

On Fri, 9 Mar 2012 09:33:04 -0600
Paul Hartman  wrote:

> On Fri, Mar 9, 2012 at 12:38 AM, Bryan Gardiner 
> wrote:
> > On Thu, 08 Mar 2012 17:56:18 +0200
> > Nikos Chantziaras  wrote:
> >
> >> I discovered this nifty little tool recently that tells you if any
> >> deleted files are currently being kept open by running processes:
> >> "app-admin/checkrestart".  I usually run it after world updates so
> >> I can tell whether I need a restart or not.
> >
> > Because I'm too lazy to unkeyword and emerge it...  Does this
> > program show how much space is being used by deleted files?  Or, is
> > there a way to access more information about or even recover such a
> > zombie file? lsof gives its inode number, but I have no idea how to
> > access it from there.
> 
> I just ran it, here's the output:
> 
> Found 22 processes using old versions of upgraded files
> (15 distinct programs)
> (14 distinct packages)
> 
> Of these, 10 seem to contain init scripts which can be used to
> restart them: The following packages seem to have init scripts that
> could be used to restart them:
> sys-apps/smartmontools:
> 5082/usr/sbin/smartd
> sys-auth/consolekit:
> 4384/usr/sbin/console-kit-daemon
> app-text/dictd:
> 4834/usr/sbin/dictd
> sys-fs/mdadm:
> 3742/sbin/mdadm
> net-dns/unbound:
> 4507/usr/sbin/unbound
> net-print/cups:
> 4767/usr/sbin/cupsd
> sys-apps/dbus:
> 4369/usr/bin/dbus-daemon
> net-misc/ntp:
> 4975/usr/sbin/ntpd
> net-fs/samba:
> 5015/usr/sbin/smbd
> 5045/usr/sbin/smbd
> 5021/usr/sbin/nmbd
> app-crypt/ekeyd:
> 4851/usr/libexec/ekeyd
> 
> These are the init scripts:
> /etc/init.d/smartd restart
> /etc/init.d/consolekit restart
> /etc/init.d/dictd restart
> /etc/init.d/mdraid restart
> /etc/init.d/mdadm restart
> /etc/init.d/unbound restart
> /etc/init.d/cupsd restart
> /etc/init.d/dbus restart
> /etc/init.d/ntpd restart
> /etc/init.d/ntp-client restart
> /etc/init.d/samba restart
> /etc/init.d/ekey-egd-linux restart
> /etc/init.d/ekeyd restart
> 
> These processes do not seem to have an associated init script to
> restart them: sys-fs/udisks:
> 5357/usr/libexec/udisks-daemon
> 5350/usr/libexec/udisks-daemon
> sys-apps/util-linux:
> 5223/sbin/agetty
> 5221/sbin/agetty
> 5222/sbin/agetty
> 5225/sbin/agetty
> 5224/sbin/agetty
> 27330   /sbin/agetty
> sys-power/upower:
> 5327/usr/libexec/upowerd
> sys-auth/polkit:
> 4467/usr/libexec/polkitd
> 




Re: [gentoo-user] photo viewer other than gthumb?

2012-03-09 Thread Grant
> I typically use geeqie.

Love it!  Thanks everyone!

- Grant


>> Can anyone recommend a photo browser/viewer other than gthumb which is
>> in portage or an overlay?
>>
>> - Grant



Re: [gentoo-user] photo viewer other than gthumb?

2012-03-09 Thread Bryan Gardiner
On Fri, 9 Mar 2012 17:28:43 +0100
Frank Steinmetzger  wrote:

> The only thing I don't really like about gwenview is its low speed.
> It takes a few seconds to load when I just want to see an image, and
> also needs some time to render the next image. For that purpose,
> kuickshow is a better alternative. It also pages through images much
> faster, at the cost of quality (though this can be configured) and a
> little jerkiness when the image gets displayed.

I'll have to give Kuickshow a shot then.  Gwenview could use a Clone
Window command too, but at least it still has an editable location
bar.

- Bryan



Re: [gentoo-user] Re: Disk usage during emerge

2012-03-09 Thread Mark Knecht
On Fri, Mar 9, 2012 at 7:33 AM, Paul Hartman
 wrote:
> On Fri, Mar 9, 2012 at 12:38 AM, Bryan Gardiner  wrote:
>> On Thu, 08 Mar 2012 17:56:18 +0200
>> Nikos Chantziaras  wrote:
>>
>>> I discovered this nifty little tool recently that tells you if any
>>> deleted files are currently being kept open by running processes:
>>> "app-admin/checkrestart".  I usually run it after world updates so I
>>> can tell whether I need a restart or not.
>>
>> Because I'm too lazy to unkeyword and emerge it...  Does this program
>> show how much space is being used by deleted files?  Or, is there a way
>> to access more information about or even recover such a zombie file?
>> lsof gives its inode number, but I have no idea how to access it from
>> there.
>
> I just ran it, here's the output:
>
> Found 22 processes using old versions of upgraded files
> (15 distinct programs)
> (14 distinct packages)
>

Is there a way inside of checkrestart to determine exactly which
processes it's telling you about? When I installed it at on Niko's
suggestion I had one package but I couldn't figure out which it was. A
reboot fixed that.

Thanks,
Mark



[gentoo-user] The keyboard didn't work when i startx

2012-03-09 Thread 赵佳晖
hello, everyone , i have just install the Xorg-server with the xorgserver
handbook . And when i startx , i find my keyboard didn't work ? How did it
happen ?
my xorg.conf :   http://paste.pocoo.org/show/563397/
make.conf:http://paste.pocoo.org/show/563399/
And my keyboard is USB

-- 
好好学习,天天向上!!!


Re: [gentoo-user] The keyboard didn't work when i startx

2012-03-09 Thread Florian Philipp
Am 09.03.2012 18:14, schrieb 赵佳晖:
> hello, everyone , i have just install the Xorg-server with the
> xorgserver handbook . And when i startx , i find my keyboard didn't work
> ? How did it happen ?
> my xorg.conf :   http://paste.pocoo.org/show/563397/ 
> make.conf:http://paste.pocoo.org/show/563399/ 
> And my keyboard is USB
> 
> -- 
> 好好学习,天天向上!!!

Rename your xorg.conf to something else so it is no longer found by
xorg. Then try again. Nowadays, most systems work better with
auto-configuration.

But before you do this, append "evdev" to INPUT_DEVICES in your
make.conf. That's the preferred mouse+keyboard driver.

Hope this helps,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] The keyboard didn't work when i startx

2012-03-09 Thread Florian Philipp
Am 09.03.2012 18:44, schrieb Florian Philipp:
> Am 09.03.2012 18:14, schrieb 赵佳晖:
>> hello, everyone , i have just install the Xorg-server with the
>> xorgserver handbook . And when i startx , i find my keyboard didn't work
>> ? How did it happen ?
>> my xorg.conf :   http://paste.pocoo.org/show/563397/ 
>> make.conf:http://paste.pocoo.org/show/563399/ 
>> And my keyboard is USB
>>
>> -- 
>> 好好学习,天天向上!!!
> 
> Rename your xorg.conf to something else so it is no longer found by
> xorg. Then try again. Nowadays, most systems work better with
> auto-configuration.
> 
> But before you do this, append "evdev" to INPUT_DEVICES in your
> make.conf. That's the preferred mouse+keyboard driver.
> 
> Hope this helps,
> Florian Philipp

Oh, and of course, re-emerge x11-base/xorg-drivers after adding evdev.



signature.asc
Description: OpenPGP digital signature


[gentoo-user] [OT]: Need help with a Makefile

2012-03-09 Thread meino . cramer
Hi,

I am trying to compile a linux-kernel for an embedded system.
There is an (older) build environment. 
The kernel is based on a 2.4er linux kernel.
When doing a 
make menuconfig
I get:

make menuconfig
Makefile:441: *** mixed implicit and normal rules.  Stop.
[1]8814 exit 2 make menuconfig

The according part of the makefile is:

include $(srctree)/arch/$(ARCH)/Makefile
export KBUILD_DEFCONFIG

441 config %config: scripts_basic outputmakefile FORCE
$(Q)mkdir -p include/linux
$(Q)$(MAKE) $(build)=scripts/kconfig $@
$(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease



I marked the according line with its number.

Unfortunately I am not familiar with makefiles...

I am using the make of the gentoo system, which is
GNU make 3.82...

What is wrong here?

Thank you very much in advance for any help!
Best regards,
mcc





Re: [gentoo-user] [OT]: Need help with a Makefile

2012-03-09 Thread Todd Goodman
* meino.cra...@gmx.de  [120309 14:54]:
> Hi,
> 
> I am trying to compile a linux-kernel for an embedded system.
> There is an (older) build environment. 
> The kernel is based on a 2.4er linux kernel.
> When doing a 
> make menuconfig
> I get:
> 
> make menuconfig
> Makefile:441: *** mixed implicit and normal rules.  Stop.
> [1]8814 exit 2 make menuconfig
> 
> The according part of the makefile is:
> 
> include $(srctree)/arch/$(ARCH)/Makefile
> export KBUILD_DEFCONFIG
> 
> 441 config %config: scripts_basic outputmakefile FORCE
> $(Q)mkdir -p include/linux
> $(Q)$(MAKE) $(build)=scripts/kconfig $@
> $(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease
> 
> 
> 
> I marked the according line with its number.
> 
> Unfortunately I am not familiar with makefiles...
> 
> I am using the make of the gentoo system, which is
> GNU make 3.82...
> 
> What is wrong here?
> 
> Thank you very much in advance for any help!
> Best regards,
> mcc
> 
> 

Hi Meino,

Unfortunately GNU Make changed the rules on Makefiles (or decided to
enforce a rule that wasn't previously enforced, I don't know which) and
the kernel Makefiles were caught out by it.

The later kernels have the changes made that are necessary but if you're
building an older kernel with a newer make then you'll run into this
problem.

You can look at newer kernel source to find the changes necessary.

In the case above, the imlicit rule is the %config target and the normal
rule is the config target.

You can just separate those into two separate rules with the same
recipes.

For example:
  config: scripts_basic outputmakefile FORCE
 $(Q)mkdir -p include/linux
 $(Q)$(MAKE) $(build)=scripts/kconfig $@
 $(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease
  
  %config: scripts_basic outputmakefile FORCE
 $(Q)mkdir -p include/linux
 $(Q)$(MAKE) $(build)=scripts/kconfig $@
 $(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease

Regards,

Todd



Re: [gentoo-user] [OT]: Need help with a Makefile

2012-03-09 Thread Sebastian Pipping
Hello,


zhe troublesome changes occured between 3.81 and 3.82.  There is a
tracker bug on related breakage in case you are interested:

  https://bugs.gentoo.org/show_bug.cgi?id=gmake-3.82

Best,



Sebastian



Re: [gentoo-user] [OT]: Need help with a Makefile

2012-03-09 Thread meino . cramer
Sebastian Pipping  [12-03-09 23:16]:
> Hello,
> 
> 
> zhe troublesome changes occured between 3.81 and 3.82.  There is a
> tracker bug on related breakage in case you are interested:
> 
>   https://bugs.gentoo.org/show_bug.cgi?id=gmake-3.82
> 
> Best,
> 
> 
> 
> Sebastian
> 

...which means to me and the problems I have: Reemerge make 3.81
???or...

Best regards,
mcc





[gentoo-user] replacement for aftp?

2012-03-09 Thread meino . cramer
Hi,

for transferring data to an embedded linux system I am looking for 
a replacement for aftp, which been removed from portage a longer
time ago.

Security does not matter that much, since everything is connected
locally and in reach of my arms :) 

Any suggestions?

Thank you very much for any help in advance!
Have a nice weekend!
Best regards,
mcc





Re: [gentoo-user] [OT]: Need help with a Makefile

2012-03-09 Thread Sebastian Pipping
On 03/09/2012 11:29 PM, meino.cra...@gmx.de wrote:
> ...which means to me and the problems I have: Reemerge make 3.81
> ???or...

I would prefer a patch to the Makefile (like Tood Goodman proposed
earlier) over a downgrade of make.  I just meant to provide more
information about the issue.  Let us know if you have trouble patching
that very Makefile.

Best,



Sebastian



Re: [gentoo-user] replacement for aftp?

2012-03-09 Thread Sebastian Pipping
On 03/10/2012 02:53 AM, meino.cra...@gmx.de wrote:
> Hi,
> 
> for transferring data to an embedded linux system I am looking for 
> a replacement for aftp, which been removed from portage a longer
> time ago.

The only trace of atfp in Gentoo I find is

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

Gentoo CVS doesn't have deleted ebuilds for net-ftp/aftp, no idea.


To be sure: net-ftp/atftp is not what you want?
 ^
Best,



Sebastian



Re: [gentoo-user] Re: Disk usage during emerge

2012-03-09 Thread Bryan Gardiner
On Fri, 9 Mar 2012 09:09:37 -0800
Mark Knecht  wrote:
> On Fri, Mar 9, 2012 at 7:33 AM, Paul Hartman
>  wrote:
> >
> > I just ran it, here's the output:
> >
> > Found 22 processes using old versions of upgraded files
> > (15 distinct programs)
> > (14 distinct packages)
> >
> 
> Is there a way inside of checkrestart to determine exactly which
> processes it's telling you about? When I installed it at on Niko's
> suggestion I had one package but I couldn't figure out which it was. A
> reboot fixed that.
> 
> Thanks,
> Mark
> 

From Paul's output:
> sys-apps/smartmontools:
> 5082/usr/sbin/smartd
> sys-auth/consolekit:
> 4384/usr/sbin/console-kit-daemon

This gives the package name, filename, and PID.  Are you looking for
something else?

- Bryan



[gentoo-user] LVM, /usr and really really bad thoughts.

2012-03-09 Thread Dale
Howdy,

Well, this is what I am thinking about jumping into.  Ya'll ready for
this?  I'm thinking about redoing my partition layout.  I'm wanting to
keep / (root) on a normal ext4 file system.  I want to put /usr, /var,
/home, and such on LVM.  I been using that dracut thingy to build the
init thingy.  Sorry, I'm full of thingys tonight.  Maybe I need my meds?
 Anyway, the init thingy seems to be working, I think.  I asked a while
back how to tell for sure but it didn't get any replies so I am not real
sure it is.  I do get this tho:

root@fireball / # dmesg | grep init
[0.00] Command line: root=/dev/sda3 init=/sbin/init
[0.00] initial memory mapped : 0 - 2000
[0.00] init_memory_mapping: -bfc91000
[0.00] init_memory_mapping: 0001-00044000
[0.00] Kernel command line: root=/dev/sda3 init=/sbin/init
[0.00] Memory: 16387452k/17825792k available (6262k kernel code,
1052572k absent, 385768k reserved, 6647k data, 4852k init)
[0.003045] Security Framework initialized
[0.388120] SCSI subsystem initialized
[0.410739] pnp: PnP ACPI init
[0.787822] Trying to unpack rootfs image as initramfs...
[0.867787] Freeing initrd memory: 5084k freed
[0.880111] audit: initializing netlink socket (disabled)
[0.880439] type=2000 audit(1331081750.879:1): initialized
[0.912626] fuse init (API version 7.17)
[1.258561] ehci_hcd :00:12.2: init command 0010005 (park)=0
ithresh=1 period=512 RUN
[1.270152] ehci_hcd :00:13.2: init command 0010005 (park)=0
ithresh=1 period=512 RUN
[1.583458] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19)
initialised: dm-de...@redhat.com
[4.258421] init-early.sh used greatest stack depth: 3696 bytes left
[4.503735] init.sh used greatest stack depth: 3576 bytes left
root@fireball / # dmesg | grep dracut
[3.018189] dracut: Checking reiserfs: /dev/sda3
[3.018531] dracut: issuing reiserfsck -a  /dev/sda3
[3.033879] dracut: Reiserfs super block in block 16 on 0x803 of
format 3.6 with standard journal
[3.034463] dracut: Blocks (total/free): 4883760/2502678 by 4096 bytes
[3.034781] dracut: Filesystem is clean
[3.035210] dracut: Remounting /dev/sda3 with -o ro
[3.082413] dracut: Mounted root filesystem /dev/sda3
[3.158322] dracut: Switching root
root@fireball / #

And grub looks like this:

title=Initramfs-new_kernel
root (hd0,0)
kernel /boot/bzImage-3.2.2-1 root=/dev/sda3 init=/sbin/init
initrd /initramfs-3.2.2-1.img

Does anyone think dracut is not working?  I need to make certain before
diving into the next step.

I have a second drive that is plenty large enough.  Thanks Kashani.  I
plan to move everything currently to the larger drive then just sort of
do a fresh install on my regular OS drive.

One question I have right off the bat, how do I tell dracut to mount
/usr?  I think it used to have a usr USE flag but that seems to have
disappeared during a upgrade.  Is it magic?  Does it need to mount /var
as well for logging?

Just for the record, dracut is the only way I could get a init thingy to
build and let me boot.  I tried different ways and they just didn't
work.  At least I think dracut is working which is a good start.  ;-)

I hope there is a few dracut users on here that have at least /usr on a
separate partition.

Thanks.

Dale

:-)  :-)

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

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



Re: [gentoo-user] Re: Disk usage during emerge

2012-03-09 Thread Bryan Gardiner
On Fri, 9 Mar 2012 18:46:53 -0800
Bryan Gardiner  wrote:

> On Fri, 9 Mar 2012 09:09:37 -0800
> Mark Knecht  wrote:
> > 
> > Is there a way inside of checkrestart to determine exactly which
> > processes it's telling you about? When I installed it at on Niko's
> > suggestion I had one package but I couldn't figure out which it
> > was. A reboot fixed that.
> > 
> > Thanks,
> > Mark
> > 
> 
> From Paul's output:
> > sys-apps/smartmontools:
> > 5082/usr/sbin/smartd
> > sys-auth/consolekit:
> > 4384/usr/sbin/console-kit-daemon
> 
> This gives the package name, filename, and PID.  Are you looking for
> something else?
> 
> - Bryan
> 

(Actually I thought this was file size on first glance, exactly what
was asked for in the original question :)



Re: [gentoo-user] LVM, /usr and really really bad thoughts.

2012-03-09 Thread Canek Peláez Valdés
On Fri, Mar 9, 2012 at 8:48 PM, Dale  wrote:
> Howdy,
>
> Well, this is what I am thinking about jumping into.  Ya'll ready for
> this?  I'm thinking about redoing my partition layout.  I'm wanting to
> keep / (root) on a normal ext4 file system.  I want to put /usr, /var,
> /home, and such on LVM.  I been using that dracut thingy to build the
> init thingy.  Sorry, I'm full of thingys tonight.  Maybe I need my meds?
>  Anyway, the init thingy seems to be working, I think.  I asked a while
> back how to tell for sure but it didn't get any replies so I am not real
> sure it is.  I do get this tho:
>
> root@fireball / # dmesg | grep init
> [    0.00] Command line: root=/dev/sda3 init=/sbin/init
> [    0.00] initial memory mapped : 0 - 2000
> [    0.00] init_memory_mapping: -bfc91000
> [    0.00] init_memory_mapping: 0001-00044000
> [    0.00] Kernel command line: root=/dev/sda3 init=/sbin/init
> [    0.00] Memory: 16387452k/17825792k available (6262k kernel code,
> 1052572k absent, 385768k reserved, 6647k data, 4852k init)
> [    0.003045] Security Framework initialized
> [    0.388120] SCSI subsystem initialized
> [    0.410739] pnp: PnP ACPI init
> [    0.787822] Trying to unpack rootfs image as initramfs...
> [    0.867787] Freeing initrd memory: 5084k freed
> [    0.880111] audit: initializing netlink socket (disabled)
> [    0.880439] type=2000 audit(1331081750.879:1): initialized
> [    0.912626] fuse init (API version 7.17)
> [    1.258561] ehci_hcd :00:12.2: init command 0010005 (park)=0
> ithresh=1 period=512 RUN
> [    1.270152] ehci_hcd :00:13.2: init command 0010005 (park)=0
> ithresh=1 period=512 RUN
> [    1.583458] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19)
> initialised: dm-de...@redhat.com
> [    4.258421] init-early.sh used greatest stack depth: 3696 bytes left
> [    4.503735] init.sh used greatest stack depth: 3576 bytes left
> root@fireball / # dmesg | grep dracut
> [    3.018189] dracut: Checking reiserfs: /dev/sda3
> [    3.018531] dracut: issuing reiserfsck -a  /dev/sda3
> [    3.033879] dracut: Reiserfs super block in block 16 on 0x803 of
> format 3.6 with standard journal
> [    3.034463] dracut: Blocks (total/free): 4883760/2502678 by 4096 bytes
> [    3.034781] dracut: Filesystem is clean
> [    3.035210] dracut: Remounting /dev/sda3 with -o ro
> [    3.082413] dracut: Mounted root filesystem /dev/sda3
> [    3.158322] dracut: Switching root
> root@fireball / #
>
> And grub looks like this:
>
> title=Initramfs-new_kernel
> root (hd0,0)
> kernel /boot/bzImage-3.2.2-1 root=/dev/sda3 init=/sbin/init
> initrd /initramfs-3.2.2-1.img
>
> Does anyone think dracut is not working?  I need to make certain before
> diving into the next step.
>
> I have a second drive that is plenty large enough.  Thanks Kashani.  I
> plan to move everything currently to the larger drive then just sort of
> do a fresh install on my regular OS drive.
>
> One question I have right off the bat, how do I tell dracut to mount
> /usr?  I think it used to have a usr USE flag but that seems to have
> disappeared during a upgrade.  Is it magic?  Does it need to mount /var
> as well for logging?
>
> Just for the record, dracut is the only way I could get a init thingy to
> build and let me boot.  I tried different ways and they just didn't
> work.  At least I think dracut is working which is a good start.  ;-)
>
> I hope there is a few dracut users on here that have at least /usr on a
> separate partition.

I keep my /usr partition in /, but seeing the modules from dracut, the
"magic" happens at:

/usr/lib/dracut/modules.d/98usrmount/mount-usr.sh

Basically, it seems that if /usr is specified in /etc/fstab, then
dracut will mount it. It says nothing about LVM, but that is taken
care of in the scripts at:

/usr/lib/dracut/modules.d/90lvm

I'm not familiar with LVM, but it seems simple enough. And you can
create and modify your own dracut modules, of course.

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



Re: [gentoo-user] LVM, /usr and really really bad thoughts.

2012-03-09 Thread Dale
Canek Peláez Valdés wrote:

> I keep my /usr partition in /, but seeing the modules from dracut, the
> "magic" happens at:
> 
> /usr/lib/dracut/modules.d/98usrmount/mount-usr.sh
> 
> Basically, it seems that if /usr is specified in /etc/fstab, then
> dracut will mount it. It says nothing about LVM, but that is taken
> care of in the scripts at:
> 
> /usr/lib/dracut/modules.d/90lvm
> 
> I'm not familiar with LVM, but it seems simple enough. And you can
> create and modify your own dracut modules, of course.
> 
> Regards.


I thought is was magic.  lol  I'm glad to get confirmation of this.
Also, does it look to you like it is using the init thingy now?  From
what I see in dmesg it looks like it is working.

Thanks for the reply.  It's a start.

Dale

:-)  :-)

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

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



Re: [gentoo-user] LVM, /usr and really really bad thoughts.

2012-03-09 Thread Canek Peláez Valdés
On Fri, Mar 9, 2012 at 10:16 PM, Dale  wrote:
> Canek Peláez Valdés wrote:
>
>> I keep my /usr partition in /, but seeing the modules from dracut, the
>> "magic" happens at:
>>
>> /usr/lib/dracut/modules.d/98usrmount/mount-usr.sh
>>
>> Basically, it seems that if /usr is specified in /etc/fstab, then
>> dracut will mount it. It says nothing about LVM, but that is taken
>> care of in the scripts at:
>>
>> /usr/lib/dracut/modules.d/90lvm
>>
>> I'm not familiar with LVM, but it seems simple enough. And you can
>> create and modify your own dracut modules, of course.
>>
>> Regards.
>
>
> I thought is was magic.  lol  I'm glad to get confirmation of this.
> Also, does it look to you like it is using the init thingy now?

From:

[0.787822] Trying to unpack rootfs image as initramfs...

I would say it's using an initramfs; if you only specify the dracut
created one in grub or lilo, that should be the one.

And from /usr/lib/dracut/modules.d/98usrmount/mount-usr.sh:36, you
should grep for the string "Mounting /usr" in your logs. It seems that
the loglevel is info, so it should pop up by default.

Finally, and it's none of my bussines, but reiserfs? Seriously?

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



Re: [gentoo-user] LVM, /usr and really really bad thoughts.

2012-03-09 Thread Dale
Canek Peláez Valdés wrote:
> On Fri, Mar 9, 2012 at 10:16 PM, Dale  wrote:
>> Canek Peláez Valdés wrote:
>>
>>> I keep my /usr partition in /, but seeing the modules from dracut, the
>>> "magic" happens at:
>>>
>>> /usr/lib/dracut/modules.d/98usrmount/mount-usr.sh
>>>
>>> Basically, it seems that if /usr is specified in /etc/fstab, then
>>> dracut will mount it. It says nothing about LVM, but that is taken
>>> care of in the scripts at:
>>>
>>> /usr/lib/dracut/modules.d/90lvm
>>>
>>> I'm not familiar with LVM, but it seems simple enough. And you can
>>> create and modify your own dracut modules, of course.
>>>
>>> Regards.
>>
>>
>> I thought is was magic.  lol  I'm glad to get confirmation of this.
>> Also, does it look to you like it is using the init thingy now?
> 
> From:
> 
> [0.787822] Trying to unpack rootfs image as initramfs...
> 
> I would say it's using an initramfs; if you only specify the dracut
> created one in grub or lilo, that should be the one.
> 
> And from /usr/lib/dracut/modules.d/98usrmount/mount-usr.sh:36, you
> should grep for the string "Mounting /usr" in your logs. It seems that
> the loglevel is info, so it should pop up by default.
> 
> Finally, and it's none of my bussines, but reiserfs? Seriously?
> 
> Regards.


Well, that is one of the things I want to change.  I have several
reasons for wanting to change this mess.  One is a file system change
and the other is to use LVM for stuff.  I basically want LVM for
everything but root itself and /boot of course.  Right now, /usr is
still on the root file system.  I have portage on a separate partition
tho.

So far, reiserfs has not gave me any problems, not OS wise anyway.  I
did have a large drive that gave me issues but I'm not sure if it was
the file system or not, tho it could very well have been.  It now has
ext4 tho.  lol

I'm going to beat some sense into this other drive and make a few
partitions.  I may not do this tonight but then again, I might.  ;-)

Dale

:-)  :-)

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

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



Re: [gentoo-user] replacement for aftp?

2012-03-09 Thread meino . cramer
Sebastian Pipping  [12-03-10 03:12]:
> On 03/10/2012 02:53 AM, meino.cra...@gmx.de wrote:
> > Hi,
> > 
> > for transferring data to an embedded linux system I am looking for 
> > a replacement for aftp, which been removed from portage a longer
> > time ago.
> 
> The only trace of atfp in Gentoo I find is
> 
>   https://bugs.gentoo.org/show_bug.cgi?id=25440
> 
> Gentoo CVS doesn't have deleted ebuilds for net-ftp/aftp, no idea.
> 
> 
> To be sure: net-ftp/atftp is not what you want?
>  ^
> Best,
> 
> 
> 
> Sebastian
> 

Hi Sebastian,

yes, you are right..it had made a typo... :)

But could swear, that I saw a message saying that atftp will be
removed from portage.

But...better to know, that I was wrong and atftp is still in portage
as the other wy round... :)

Thanks fpr pointing me into the right direction!

Have a nice weekend!
mcc