Re: [gentoo-user] Anyone with experience viewing EXIF data in Dolphin?

2019-07-05 Thread Andrew Lowe

On 6/7/19 4:31 am, Mick wrote:

On Friday, 5 July 2019 21:22:31 BST Andrew Udvare wrote:

On 05/07/2019 15:37, Andrew Lowe wrote:

Hi all,
 I'm transferring my install from a spinning disk to an SSD and
decided to tidy up/customise/stuff up things as I go. I've recently
taken a lot of photo's whilst travelling and I have the Coords in the
EXIF data. What I would like is to be able to easily view this data.
There is a thingy called "ReImage"[1] which allows for a right click
within Dolphin and you can select an option to display the EXIF data in
a dialogue box.


I recall using an earlier version of this and it is a useful and easy submenu
option to apply ImageMagick on a file.



 I had to manually install this as I could find nothing on "Dolphin
Service Menus" within Portage, or the Gentoo wiki or basically on line
at all, so is there a Gentoo way of dealing with these in the first place?


Not really. You can submit a bug or PR though as some of these do make
into the tree sometimes.

$ eix --homepage store.kde.org


Shall do on this.




 Secondly, I then came across "kfilemetadata" in Portage. Without
installing this as well, does this give the same thing? If so, how do
you use this thing? Acutally, as I'm writing this, I'm still reserching
and api.kde.org[2] says it's a library, so what apps use it?


Not the same thing.

kfilemetadata is solely a library and should be pulled in by other
packages that need it.

You have to enable USE="semantic-desktop" to make Dolphin and others
pull it in and use it.


If a GUI is not necessary and a semantic database indexing is not required,
you can give exiftool a spin, which can be scripted with find to search your
files and store them according to any exif tag.



	I spent much time getting rid of the semantic desktop so that's that 
last thing I need. I've given exiftools a go before and it gave me all I 
needed so a combo of the right click and it will give me all I need.


Thanks for the comments,

Andrew




Re: [gentoo-user] version of portaudio conflicts with itsself?

2019-07-05 Thread Arve Barsnes
On Sat, 6 Jul 2019 at 01:46,  wrote:
> I see this or similiar from time to time:
>
> media-libs/portaudio:0
>
>   (media-libs/portaudio-19.06.00-r2:0/0::gentoo, ebuild scheduled for merge) 
> conflicts with
>  (media-sound/audacity-2.2.2:0/0::gentoo, installed)
>
> looks to me, like portaudion conflicts with itsself.

You're missing the little < sign there.

Portage would like to install portaudio-19.06.00-r2, but audacity
requires a version lower than that. I have the same output on my box,
waiting for an audacity release I guess.

Regards,
Arve



Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Paul Colquhoun
On Saturday, July 6, 2019 12:44:46 A.M. AEST Robin Atwood wrote:
> On Fri, 05 Jul 2019 15:34:18 +0100
> 
> Mick  wrote:
> > On Friday, 5 July 2019 15:30:06 BST Robin Atwood wrote:
> > > Thanks Vladimir, that sounds promising. Can you recommend any GPT
> > > programs (this is new to me)? However the dd utility failed when I
> > > tried to copy my old HD to the new one.
> > > 
> > > # dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
> > > dd: error writing '/dev/sdb': No space left on device
> > > 160+0 records in
> > > 159+0 records out
> > > 10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s
> > > 
> > > Cheers
> > > Robin
> > 
> > You can use gptfdisk, parted/gparted, etc.
> > 
> > To check the size as well as additional information you can use
> > smartmontools and run:
> > 
> > smartctl -i /dev/sda
> > 
> > It may also be worth checking if later firmware is available to
> > address any issues with it, like reporting the wrong size with some
> > tools.
> > 
> > However, the dd command failure sounds suspicious - as I understand
> > it dd should not fail unless the disk has run out of space.
> 
> OK panic over! I had shelled into the wrong system! The mystery is what
> I was trying to copy to, the machine only has one HD.


It would probably just have created a normal file called /dev/sdb which would 
have grown till it filled the empty space on the partition.


-- 
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/
  Asking for technical help in newsgroups?  Read this first:
 http://catb.org/~esr/faqs/smart-questions.html#intro






[gentoo-user] version of portaudio conflicts with itsself?

2019-07-05 Thread tuxic
Hi,

I see this or similiar from time to time:

media-libs/portaudio:0

  (media-libs/portaudio-19.06.00-r2:0/0::gentoo, ebuild scheduled for merge) 
conflicts with


Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Adam Carter
>
> OK panic over! I had shelled into the wrong system! The mystery is what
> I was trying to copy to, the machine only has one HD.
>

lsblk is nice

$ lsblk
NAMEMAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda   8:00 931.5G  0 disk
└─sda18:10 931.5G  0 part /var
nvme0n1 259:00   477G  0 disk
├─nvme0n1p1 259:10 1G  0 part
└─nvme0n1p2 259:20   476G  0 part /


Re: [gentoo-user] Human configurable boot loader, OR useful grub2 documentation

2019-07-05 Thread Grant Taylor

On 7/5/19 1:57 PM, Neil Bothwick wrote:
In the case of GRUB2 that is unlikely to be the case, as it is meant 
to do everything. That's why the auto-generated config files are so 
long and full of conditionals. On a system you have full control over, 
you can remove all the conditionals.


I had grub-mkconfig puke on me recently.  I've not spent time diagnosing 
why.


/boot was a local disk (/dev/sda1) per Gentoo install documents.

/ (root) was special in that it was /dev/nfs.

Grub (grub-mkconfig) tossed it's salad, saying:

/usr/sbin/grub-probe: error: failed to get canonical path of 
'192.0.2.1:/export/hostname/root'


With a return code of 1.

GRUB2 is incredibly bendy, if only the documentation were as compliant 
to the wishes of its users,


Sometimes I wonder just how bendy it really is.



--
Grant. . . .
unix || die



Re: [gentoo-user] Anyone with experience viewing EXIF data in Dolphin?

2019-07-05 Thread Mick
On Friday, 5 July 2019 21:22:31 BST Andrew Udvare wrote:
> On 05/07/2019 15:37, Andrew Lowe wrote:
> > Hi all,
> > I'm transferring my install from a spinning disk to an SSD and
> > decided to tidy up/customise/stuff up things as I go. I've recently
> > taken a lot of photo's whilst travelling and I have the Coords in the
> > EXIF data. What I would like is to be able to easily view this data.
> > There is a thingy called "ReImage"[1] which allows for a right click
> > within Dolphin and you can select an option to display the EXIF data in
> > a dialogue box.

I recall using an earlier version of this and it is a useful and easy submenu 
option to apply ImageMagick on a file.


> > I had to manually install this as I could find nothing on "Dolphin
> > Service Menus" within Portage, or the Gentoo wiki or basically on line
> > at all, so is there a Gentoo way of dealing with these in the first place?
> 
> Not really. You can submit a bug or PR though as some of these do make
> into the tree sometimes.
> 
> $ eix --homepage store.kde.org
> 
> > Secondly, I then came across "kfilemetadata" in Portage. Without
> > installing this as well, does this give the same thing? If so, how do
> > you use this thing? Acutally, as I'm writing this, I'm still reserching
> > and api.kde.org[2] says it's a library, so what apps use it?
> 
> Not the same thing.
> 
> kfilemetadata is solely a library and should be pulled in by other
> packages that need it.
> 
> You have to enable USE="semantic-desktop" to make Dolphin and others
> pull it in and use it.

If a GUI is not necessary and a semantic database indexing is not required, 
you can give exiftool a spin, which can be scripted with find to search your 
files and store them according to any exif tag.

-- 
Regards,

Mick

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


Re: [gentoo-user] Correct way to fight malicious .doc/.docx/.xls/xlsx/.ppt/.pptx email attachments

2019-07-05 Thread Hasan Ç .
Sure, i sent you bunch of malicious office attachments.

From: hasan.cali...@psauxit.com

Sorry for spam :)

5 Tem 2019 Cum 22:01 tarihinde Michael Orlitzky  şunu yazdı:

> On 7/5/19 2:18 PM, Hasan Ç. wrote:
> > Hi Michael,
> >
> > I quickly tested clamav with option "AlertOLE2Macros" enabled but not
> > worked as expected. ClamAV still marks malicious office attachments like
> > VBA macros as CLEAN.
>
> Would you mind sending the malicious attachment to my other address,
> mich...@orlitzky.com? I'd like to see if our mail system catches it (and
> if not, I'll have something to report to the ClamAV team).
>
>


Re: [gentoo-user] Anyone with experience viewing EXIF data in Dolphin?

2019-07-05 Thread Andrew Udvare
On 05/07/2019 15:37, Andrew Lowe wrote:
> Hi all,
> I'm transferring my install from a spinning disk to an SSD and
> decided to tidy up/customise/stuff up things as I go. I've recently
> taken a lot of photo's whilst travelling and I have the Coords in the
> EXIF data. What I would like is to be able to easily view this data.
> There is a thingy called "ReImage"[1] which allows for a right click
> within Dolphin and you can select an option to display the EXIF data in
> a dialogue box.
> 
> I had to manually install this as I could find nothing on "Dolphin
> Service Menus" within Portage, or the Gentoo wiki or basically on line
> at all, so is there a Gentoo way of dealing with these in the first place?

Not really. You can submit a bug or PR though as some of these do make
into the tree sometimes.

$ eix --homepage store.kde.org

> 
> Secondly, I then came across "kfilemetadata" in Portage. Without
> installing this as well, does this give the same thing? If so, how do
> you use this thing? Acutally, as I'm writing this, I'm still reserching
> and api.kde.org[2] says it's a library, so what apps use it?

Not the same thing.

kfilemetadata is solely a library and should be pulled in by other
packages that need it.

You have to enable USE="semantic-desktop" to make Dolphin and others
pull it in and use it.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Human configurable boot loader, OR useful grub2 documentation

2019-07-05 Thread Neil Bothwick
On Fri, 5 Jul 2019 09:32:33 -0600, Grant Taylor wrote:

> > it probably is worth taking the time to see if you can bend to the
> > tool rather than making the tool bend to you.  
> 
> At face value, this is antithetical to how computers should work.
> 
> Computers should do our bidding, NOT the other way around.
> 
> That being said, sometimes it's the case that if you're having to bend 
> to tool too much, you might be trying to do something the tool is not 
> meant to do, and as such you should re-think what you're trying to do.

In the case of GRUB2 that is unlikely to be the case, as it is meant to
do everything. That's why the auto-generated config files are so long
and full of conditionals. On a system you have full control over, you
can remove all the conditionals.
 
> After that brief sanity check, by all means, bend the tool to your 
> liking.  }:-)

GRUB2 is incredibly bendy, if only the documentation were as compliant to
the wishes of its users,


-- 
Neil Bothwick

Run with scissors. Remove mattress tags. Top post. Be a rebel.


pgp46ZPfVk4Dq.pgp
Description: OpenPGP digital signature


[gentoo-user] Anyone with experience viewing EXIF data in Dolphin?

2019-07-05 Thread Andrew Lowe

Hi all,
	I'm transferring my install from a spinning disk to an SSD and decided 
to tidy up/customise/stuff up things as I go. I've recently taken a lot 
of photo's whilst travelling and I have the Coords in the EXIF data. 
What I would like is to be able to easily view this data. There is a 
thingy called "ReImage"[1] which allows for a right click within Dolphin 
and you can select an option to display the EXIF data in a dialogue box.


	I had to manually install this as I could find nothing on "Dolphin 
Service Menus" within Portage, or the Gentoo wiki or basically on line 
at all, so is there a Gentoo way of dealing with these in the first place?


	Secondly, I then came across "kfilemetadata" in Portage. Without 
installing this as well, does this give the same thing? If so, how do 
you use this thing? Acutally, as I'm writing this, I'm still reserching 
and api.kde.org[2] says it's a library, so what apps use it?


	I hope this makes sense, it's 03:33 in Perth, Australia at the moment 
and I've knocked back a fair amount of chocolate, and one or two 
fermented beverages, whilst doing this work ;) Any thoughts are greatly 
appreciated,


Andrew

[1] https://store.kde.org/p/1231579/
[2]https://api.kde.org/frameworks/kfilemetadata/html/index.html



Re: [gentoo-user] Correct way to fight malicious .doc/.docx/.xls/xlsx/.ppt/.pptx email attachments

2019-07-05 Thread Michael Orlitzky
On 7/5/19 2:18 PM, Hasan Ç. wrote:
> Hi Michael,
> 
> I quickly tested clamav with option "AlertOLE2Macros" enabled but not
> worked as expected. ClamAV still marks malicious office attachments like
> VBA macros as CLEAN.

Would you mind sending the malicious attachment to my other address,
mich...@orlitzky.com? I'd like to see if our mail system catches it (and
if not, I'll have something to report to the ClamAV team).



[gentoo-user] Re: How do I get rid of colors (console and xterm)?

2019-07-05 Thread Nikos Chantziaras

On 04/07/2019 22:10, Christian Groessler wrote:
I'm new here. My question is how do I get rid of colors in "emerge", 
"man" and other command line programs.


Do you want to disable colors for everything, or only for specific tools?




Re: [gentoo-user] Correct way to fight malicious .doc/.docx/.xls/xlsx/.ppt/.pptx email attachments

2019-07-05 Thread Hasan Ç .
Hi Michael,

I quickly tested clamav with option "AlertOLE2Macros" enabled but not
worked as expected. ClamAV still marks malicious office attachments like
VBA macros as CLEAN.
On the other hand gmail detects the virus as soon as i add the file to
attachments and doesn't let me send it.

I envy it.

I am happy to hear that next version of spamassassin will have a plugin
that can detect office related attachments i hope it will do good job.

Thank you.

Michael Orlitzky , 5 Tem 2019 Cum, 19:53 tarihinde şunu
yazdı:

> On 7/5/19 11:59 AM, Hasan Ç. wrote:
> >
> > Rejecting all of them with postfix is not a option for me.
> >
> > I tried some spamassasian rules to give them high score but not worked
> > as expected.
> >
> > I would appreciate it if you share your experiences.
> >
>
> The next version of SpamAssassin will have a plugin that can detect and
> score these:
>
>
> https://svn.apache.org/repos/asf/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/OLEMacro.pm
>
> In the meantime, your best bet might be to turn on
>
>   AlertOLE2Macros yes
>
> in your clamd.conf. That will block any office documents that look like
> they contain VBA macros.
>
>


Re: [gentoo-user] Correct way to fight malicious .doc/.docx/.xls/xlsx/.ppt/.pptx email attachments

2019-07-05 Thread Michael Orlitzky
On 7/5/19 11:59 AM, Hasan Ç. wrote:
> 
> Rejecting all of them with postfix is not a option for me.
> 
> I tried some spamassasian rules to give them high score but not worked
> as expected.
> 
> I would appreciate it if you share your experiences.
> 

The next version of SpamAssassin will have a plugin that can detect and
score these:

https://svn.apache.org/repos/asf/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/OLEMacro.pm

In the meantime, your best bet might be to turn on

  AlertOLE2Macros yes

in your clamd.conf. That will block any office documents that look like
they contain VBA macros.



[gentoo-user] Correct way to fight malicious .doc/.docx/.xls/xlsx/.ppt/.pptx email attachments

2019-07-05 Thread Hasan Ç .
Hi all,

Nowadays, i find myself in trouble while protecting mail servers from
office related malicious email attachments.

ClamAV, even with unofficial signatures like sanesecurity, malwarepatrol
etc. can't filter correctly these kind of office attachments.

Rejecting all of them with postfix is not a option for me.

I tried some spamassasian rules to give them high score but not worked as
expected.

I would appreciate it if you share your experiences.

MTA:Postfix
Filtering: ClamAV (with clamsmtp & all unofficial signatures) + SpamAssassin
MDA=Dovecot (LMTP) + Sieve

Hasan.


Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Grant Taylor

On 7/5/19 8:40 AM, Vladimir Romanov wrote:
May be your motherboard or BIOS just too old, and it doesn't support 
such hard disks?


I remember a time when Linux would support large (multi-GB) drives when 
the BIOS would not support them.


Linux could bypass the BIOS and talk directly to the drives and utilize 
the drive's full capacity.


The idea that Linux can no longer do this with larger drives disheartens me.



--
Grant. . . .
unix || die



Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Robin Atwood
On Fri, 05 Jul 2019 15:47:04 +0100
Mick  wrote:

> On Friday, 5 July 2019 15:44:46 BST Robin Atwood wrote:
> 
> > OK panic over! I had shelled into the wrong system! The mystery is
> > what I was trying to copy to, the machine only has one HD.  
> 
> Cool, I hope you didn't overwrite useful data and you keep
> backups.  ;-)
> 

Me too, and yes!

-- 
--
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
 from "Mandalay" by Rudyard Kipling
--









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Re: [gentoo-user] Human configurable boot loader, OR useful grub2 documentation

2019-07-05 Thread Grant Taylor

On 7/5/19 8:04 AM, Rich Freeman wrote:
it probably is worth taking the time to see if you can bend to the tool 
rather than making the tool bend to you.


At face value, this is antithetical to how computers should work.

Computers should do our bidding, NOT the other way around.

That being said, sometimes it's the case that if you're having to bend 
to tool too much, you might be trying to do something the tool is not 
meant to do, and as such you should re-think what you're trying to do.


After that brief sanity check, by all means, bend the tool to your 
liking.  }:-)




--
Grant. . . .
unix || die



Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Mick
On Friday, 5 July 2019 15:44:46 BST Robin Atwood wrote:

> OK panic over! I had shelled into the wrong system! The mystery is what
> I was trying to copy to, the machine only has one HD.

Cool, I hope you didn't overwrite useful data and you keep backups.  ;-)

-- 
Regards,

Mick

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


Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Robin Atwood
On Fri, 05 Jul 2019 15:34:18 +0100
Mick  wrote:

> On Friday, 5 July 2019 15:30:06 BST Robin Atwood wrote:
> 
> > Thanks Vladimir, that sounds promising. Can you recommend any GPT
> > programs (this is new to me)? However the dd utility failed when I
> > tried to copy my old HD to the new one.
> > 
> > # dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
> > dd: error writing '/dev/sdb': No space left on device
> > 160+0 records in
> > 159+0 records out
> > 10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s
> > 
> > Cheers
> > Robin  
> 
> You can use gptfdisk, parted/gparted, etc.
> 
> To check the size as well as additional information you can use
> smartmontools and run:
> 
> smartctl -i /dev/sda
> 
> It may also be worth checking if later firmware is available to
> address any issues with it, like reporting the wrong size with some
> tools.
> 
> However, the dd command failure sounds suspicious - as I understand
> it dd should not fail unless the disk has run out of space.

OK panic over! I had shelled into the wrong system! The mystery is what
I was trying to copy to, the machine only has one HD.

Thanks
Robin
-- 
--
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
 from "Mandalay" by Rudyard Kipling
--









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Vladimir Romanov
May be your motherboard or BIOS just too old, and it doesn't support such
hard disks?

пт, 5 июл. 2019 г., 19:36 Robin Atwood :

> On Fri, 5 Jul 2019 19:31:39 +0500
> Vladimir Romanov  wrote:
>
> > Well, dd should work well in any case. May be your drive is broken
> > really?
> >
> > пт, 5 июл. 2019 г., 19:30 Robin Atwood :
> >
> > > On Fri, 5 Jul 2019 19:14:35 +0500
> > > Vladimir Romanov  wrote:
> > >
> > > > Fdisk can not work with drives larger than 2TB. Your drive may be
> > > > slightly (10 mb) larger than that, so the result. For such disks
> > > > you need not Fdisk, but GPT programs.
> > > >
> > > > пт, 5 июл. 2019 г., 19:12 Robin Atwood :
> > > >
> > > > > I just bought a new "2TB" Western Digital hard drive. Imagine my
> > > > > surprise when fdisk reports it is only 10MiB in capacity! Is
> > > > > there anything I can do to rectify this (of a technical
> > > > > nature)? I live in Bangkok so it is not unlikely the guy in the
> > > > > little shop where I bought it sold me a load of junk. But the
> > > > > device is in warranty until 2022 and looks convincing (I
> > > > > checked the serial number on the WD web site). Of course I can
> > > > > go to the WD service centre and get the HD exchanged but I
> > > > > thought I would see if there were any technical wheezes first.
> > >
> > > Thanks Vladimir, that sounds promising. Can you recommend any GPT
> > > programs (this is new to me)? However the dd utility failed when I
> > > tried to copy my old HD to the new one.
> > >
> > > # dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
> > > dd: error writing '/dev/sdb': No space left on device
> > > 160+0 records in
> > > 159+0 records out
> > > 10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s
>
> It looks like it. :(
>
> Robin
> --
> --
> Robin Atwood.
>
> "Ship me somewheres east of Suez, where the best is like the worst,
>  Where there ain't no Ten Commandments an' a man can raise a thirst"
>  from "Mandalay" by Rudyard Kipling
> --
>
>
>
>
>
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>


Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Robin Atwood
On Fri, 5 Jul 2019 19:31:39 +0500
Vladimir Romanov  wrote:

> Well, dd should work well in any case. May be your drive is broken
> really?
> 
> пт, 5 июл. 2019 г., 19:30 Robin Atwood :
> 
> > On Fri, 5 Jul 2019 19:14:35 +0500
> > Vladimir Romanov  wrote:
> >
> > > Fdisk can not work with drives larger than 2TB. Your drive may be
> > > slightly (10 mb) larger than that, so the result. For such disks
> > > you need not Fdisk, but GPT programs.
> > >
> > > пт, 5 июл. 2019 г., 19:12 Robin Atwood :
> > >
> > > > I just bought a new "2TB" Western Digital hard drive. Imagine my
> > > > surprise when fdisk reports it is only 10MiB in capacity! Is
> > > > there anything I can do to rectify this (of a technical
> > > > nature)? I live in Bangkok so it is not unlikely the guy in the
> > > > little shop where I bought it sold me a load of junk. But the
> > > > device is in warranty until 2022 and looks convincing (I
> > > > checked the serial number on the WD web site). Of course I can
> > > > go to the WD service centre and get the HD exchanged but I
> > > > thought I would see if there were any technical wheezes first.
> >
> > Thanks Vladimir, that sounds promising. Can you recommend any GPT
> > programs (this is new to me)? However the dd utility failed when I
> > tried to copy my old HD to the new one.
> >
> > # dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
> > dd: error writing '/dev/sdb': No space left on device
> > 160+0 records in
> > 159+0 records out
> > 10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s

It looks like it. :(

Robin
-- 
--
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
 from "Mandalay" by Rudyard Kipling
--









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Mick
On Friday, 5 July 2019 15:30:06 BST Robin Atwood wrote:

> Thanks Vladimir, that sounds promising. Can you recommend any GPT
> programs (this is new to me)? However the dd utility failed when I
> tried to copy my old HD to the new one.
> 
> # dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
> dd: error writing '/dev/sdb': No space left on device
> 160+0 records in
> 159+0 records out
> 10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s
> 
> Cheers
> Robin

You can use gptfdisk, parted/gparted, etc.

To check the size as well as additional information you can use smartmontools 
and run:

smartctl -i /dev/sda

It may also be worth checking if later firmware is available to address any 
issues with it, like reporting the wrong size with some tools.

However, the dd command failure sounds suspicious - as I understand it dd 
should not fail unless the disk has run out of space.
-- 
Regards,

Mick

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


Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Vladimir Romanov
Well, dd should work well in any case. May be your drive is broken really?

пт, 5 июл. 2019 г., 19:30 Robin Atwood :

> On Fri, 5 Jul 2019 19:14:35 +0500
> Vladimir Romanov  wrote:
>
> > Fdisk can not work with drives larger than 2TB. Your drive may be
> > slightly (10 mb) larger than that, so the result. For such disks you
> > need not Fdisk, but GPT programs.
> >
> > пт, 5 июл. 2019 г., 19:12 Robin Atwood :
> >
> > > I just bought a new "2TB" Western Digital hard drive. Imagine my
> > > surprise when fdisk reports it is only 10MiB in capacity! Is there
> > > anything I can do to rectify this (of a technical nature)? I live in
> > > Bangkok so it is not unlikely the guy in the little shop where I
> > > bought it sold me a load of junk. But the device is in warranty
> > > until 2022 and looks convincing (I checked the serial number on the
> > > WD web site). Of course I can go to the WD service centre and get
> > > the HD exchanged but I thought I would see if there were any
> > > technical wheezes first.
>
> Thanks Vladimir, that sounds promising. Can you recommend any GPT
> programs (this is new to me)? However the dd utility failed when I
> tried to copy my old HD to the new one.
>
> # dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync
> dd: error writing '/dev/sdb': No space left on device
> 160+0 records in
> 159+0 records out
> 10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s
>
> Cheers
> Robin
> --
> --
> Robin Atwood.
>
> "Ship me somewheres east of Suez, where the best is like the worst,
>  Where there ain't no Ten Commandments an' a man can raise a thirst"
>  from "Mandalay" by Rudyard Kipling
> --
>
>
>
>
>
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>


Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Robin Atwood
On Fri, 5 Jul 2019 19:14:35 +0500
Vladimir Romanov  wrote:

> Fdisk can not work with drives larger than 2TB. Your drive may be
> slightly (10 mb) larger than that, so the result. For such disks you
> need not Fdisk, but GPT programs.
> 
> пт, 5 июл. 2019 г., 19:12 Robin Atwood :
> 
> > I just bought a new "2TB" Western Digital hard drive. Imagine my
> > surprise when fdisk reports it is only 10MiB in capacity! Is there
> > anything I can do to rectify this (of a technical nature)? I live in
> > Bangkok so it is not unlikely the guy in the little shop where I
> > bought it sold me a load of junk. But the device is in warranty
> > until 2022 and looks convincing (I checked the serial number on the
> > WD web site). Of course I can go to the WD service centre and get
> > the HD exchanged but I thought I would see if there were any
> > technical wheezes first.

Thanks Vladimir, that sounds promising. Can you recommend any GPT
programs (this is new to me)? However the dd utility failed when I
tried to copy my old HD to the new one. 

# dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync  
dd: error writing '/dev/sdb': No space left on device
160+0 records in
159+0 records out
10481664 bytes (10 MB, 10 MiB) copied, 0.132944 s, 78.8 MB/s

Cheers
Robin
-- 
--
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
 from "Mandalay" by Rudyard Kipling
--









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




[gentoo-user] Re: Human configurable boot loader, OR useful grub2 documentation

2019-07-05 Thread Grant Edwards
On 2019-07-05, Francesco Turco  wrote:
> On Fri, Jul 5, 2019, at 08:05, mad.scientist.at.la...@tutanota.com wrote:

>> So, is there either a boot loader that a human can configure
>> manually that can handle LUKS partitions?  No uefi, but GPT would
>> be nice.
>
> I have a LUKS-encrypted system, GPT partitions, no UEFI, systemd,
> dracut, btrfs.
>
> I always manually create a /boot/grub/grub.cfg configuration file
> without using the grub-mkconfig command:  [...]

I used to hate grub2 with a passion and stuck with grub-legacy as long
as possible.  Then I realized that you can ignore the nightmarish
auto-magical modular AI configurator stuff.  Grub2 is still a bit
bloated for my taste, but it's just as easy to use as grub-legacy if
you configure it manually.  My grub.cfg files are just as trivial as
my grub-legacy config files were:

-grub.cfg--
timeout=10
root=hd0,1

menuentry 'vmlinuz-4.19.52-gentoo' {
linux /boot/vmlinuz-4.19.52-gentoo root=/dev/sda1
}

menuentry 'vmlinuz-4.14.83-gentoo' {
linux /boot/vmlinuz-4.14.83-gentoo root=/dev/sda1
}
---

I shudder when I contrast that with many hundreds of lines of cruft
that the mkconfig system would generate.

-- 
Grant Edwards   grant.b.edwardsYow! Inside, I'm already
  at   SOBBING!
  gmail.com




Re: [gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Vladimir Romanov
Fdisk can not work with drives larger than 2TB. Your drive may be slightly
(10 mb) larger than that, so the result. For such disks you need not Fdisk,
but GPT programs.

пт, 5 июл. 2019 г., 19:12 Robin Atwood :

> I just bought a new "2TB" Western Digital hard drive. Imagine my
> surprise when fdisk reports it is only 10MiB in capacity! Is there
> anything I can do to rectify this (of a technical nature)? I live in
> Bangkok so it is not unlikely the guy in the little shop where I bought
> it sold me a load of junk. But the device is in warranty until 2022
> and looks convincing (I checked the serial number on the WD web
> site). Of course I can go to the WD service centre and get the HD
> exchanged but I thought I would see if there were any technical
> wheezes first.
>
> Thanks
> Robin
> --
> --
> Robin Atwood.
>
> "Ship me somewheres east of Suez, where the best is like the worst,
>  Where there ain't no Ten Commandments an' a man can raise a thirst"
>  from "Mandalay" by Rudyard Kipling
> --
>
>
>
>
>
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>


[gentoo-user] Fdisk reports new HD as 10MiB

2019-07-05 Thread Robin Atwood
I just bought a new "2TB" Western Digital hard drive. Imagine my
surprise when fdisk reports it is only 10MiB in capacity! Is there
anything I can do to rectify this (of a technical nature)? I live in
Bangkok so it is not unlikely the guy in the little shop where I bought
it sold me a load of junk. But the device is in warranty until 2022
and looks convincing (I checked the serial number on the WD web
site). Of course I can go to the WD service centre and get the HD
exchanged but I thought I would see if there were any technical
wheezes first.   

Thanks
Robin
-- 
--
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
 from "Mandalay" by Rudyard Kipling
--









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Re: [gentoo-user] Human configurable boot loader, OR useful grub2 documentation

2019-07-05 Thread Rich Freeman
On Fri, Jul 5, 2019 at 4:10 AM Mick  wrote:
>
> On Friday, 5 July 2019 08:24:14 BST mad.scientist.at.la...@tutanota.com wrote:
> > Thank you!  Now I don't have to read all the grub2 manual right away.
>
> You could create manually a /boot/grub/grub.cfg file, but this is NOT how
> GRUB2 was meant to be used.  TBH, if you want to do this, then why bother with
> GRUB2 in the first place.  You could instead install sys-boot/grub-static from
> an overlay and use grub legacy by manually configuring its /boot/grub/
> grub.conf file.

The only people who would tell you not to use a manual config would
also tell you not to use the old version of grub.  There is really no
reason to use the old version, except for the fact that the
documentation for manual config files on the new one is pretty opaque.

The newer version is much more versatile in terms of support for newer
filesystems, etc.  It just has a preferred mode of operation that
basically generates config files that are practically a bootloader in
themselves.  The old version isn't even in the Gentoo repo, which
means that if you do run into problems you'll be using backchannel
support.  Given that somebody just posted a ready-to-use config file
I'd start there.

All that said, it probably is worth taking the time to see if you can
bend to the tool rather than making the tool bend to you.  If you use
the standard make install kernel filenames, and edit the grub config
files in /etc appropriately, chances are it will generate a nice menu
that just works.  I used to do it the way you're looking to do it, but
find that the tools work pretty well these days and it makes it
trivial to maintain a library of old kernel versions which has helped
out with the occasional regression.

While the autogen config files are a bit complex, they are actually
editable and readable.  If you skip through all the conditional logic
you'll get to the guts of the actual menu options.  You can always
autogen a config and not send the output to the actual config file if
you want to see what it wants to do for reference.

-- 
Rich



Re: [gentoo-user] Human configurable boot loader, OR useful grub2 documentation

2019-07-05 Thread Philip Webb
190705 mad.scientist.at.la...@tutanota.com wrote:
> So, is there either a boot loader that a human can configure manually
> that can handle LUKS partitions ?  No uefi, but GPT would be nice.

You might try Lilo, which is very simple & reliable.
I've always used it from before I started using Gentoo in 2003.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] How do I get rid of colors (console and xterm)?

2019-07-05 Thread wiicontroller
XTerm also includes a -cm option (colorMode resource) for ignoring control 
sequences that affect color.




Re: [gentoo-user] Human configurable boot loader, OR useful grub2 documentation

2019-07-05 Thread Mick
On Friday, 5 July 2019 08:24:14 BST mad.scientist.at.la...@tutanota.com wrote:
> Thank you!  Now I don't have to read all the grub2 manual right away.  

Hardly anyone needs to read the whole GRUB2 manual, unless you're interest to 
know the ins and outs of GRUB2.

However, it would be advisable to skim-read at least this wiki page, which 
explains which files you could/should edit to make GRUB2 do what you want it 
to do:

https://wiki.gentoo.org/wiki/GRUB2


> Works
> mostly like I thought but first attempt was to edit the mkconfig- grub.cfg
> and I failed to back it up Properly.  I should have tried it first on a
> system that didn't have 4 other distros laying around.

As per the above page, you could edit the /etc/default/grub file to define 
default variables, *then* run the grub-mkconfig command.  Depending on your 
needs you could also add files in /etc/grub.d/ or edit 40_custom.

You could create manually a /boot/grub/grub.cfg file, but this is NOT how 
GRUB2 was meant to be used.  TBH, if you want to do this, then why bother with 
GRUB2 in the first place.  You could instead install sys-boot/grub-static from 
an overlay and use grub legacy by manually configuring its /boot/grub/
grub.conf file.

https://gpo.zugaina.org/sys-boot/grub-static

Alternatively, there are other bootloaders to consider, with sys-boot/syslinux 
or extlinux featuring as lightweight alternatives.
-- 
Regards,

Mick

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


Re: [gentoo-user] Human configurable boot loader, OR useful grub2 documentation

2019-07-05 Thread mad.scientist.at.large
Thank you!  Now I don't have to read all the grub2 manual right away.  Works 
mostly like I thought but first attempt was to edit the mkconfig- grub.cfg and 
I failed to back it up Properly.  I should have tried it first on a system that 
didn't have 4 other distros laying around.

"Would you like to see us rule again, my friend?   All you have to do is follow 
the worms."  Pink Floyd, The Wall, Waiting for the worms




Jul 5, 2019, 1:18 AM by ftu...@fastmail.fm:

> On Fri, Jul 5, 2019, at 08:05, mad.scientist.at.la...@tutanota.com wrote:
>
>> So, is there either a boot loader that a human can configure manually 
>> that can handle LUKS partitions?  No uefi, but GPT would be nice.
>>
>
> I have a LUKS-encrypted system, GPT partitions, no UEFI, systemd, dracut, 
> btrfs.
>
> I always manually create a /boot/grub/grub.cfg configuration file without 
> using the grub-mkconfig command:
>
> timeout=-1
> menuentry 'Linux-libre 5.1.15' {
>  linux /@i3/vmlinuz-5.1.15-gnu 
> rd.luks.uuid=luks-e384faa4-d3ad-4171-b38e-8961bddab43f 
> root=UUID=90a73cbd-f378-4424-93d9-661cbfec9e5a rootfstype=btrfs 
> rootflags=subvol=@i3 init=/lib/systemd/systemd quiet loglevel=3 
> rd.vconsole.keymap=it
>  initrd /@i3/initramfs-5.1.15-gnu.img
> }
>
> It is pretty simple compared to what grub-mkconfig usually generates, and it 
> works pretty well.
>
> -- 
> https://fturco.gitlab.io/
>




Re: [gentoo-user] Human configurable boot loader, OR useful grub2 documentation

2019-07-05 Thread Francesco Turco
On Fri, Jul 5, 2019, at 08:05, mad.scientist.at.la...@tutanota.com wrote:
> So, is there either a boot loader that a human can configure manually 
> that can handle LUKS partitions?  No uefi, but GPT would be nice.

I have a LUKS-encrypted system, GPT partitions, no UEFI, systemd, dracut, btrfs.

I always manually create a /boot/grub/grub.cfg configuration file without using 
the grub-mkconfig command:

timeout=-1
menuentry 'Linux-libre 5.1.15' {
  linux /@i3/vmlinuz-5.1.15-gnu 
rd.luks.uuid=luks-e384faa4-d3ad-4171-b38e-8961bddab43f 
root=UUID=90a73cbd-f378-4424-93d9-661cbfec9e5a rootfstype=btrfs 
rootflags=subvol=@i3 init=/lib/systemd/systemd quiet loglevel=3 
rd.vconsole.keymap=it
  initrd /@i3/initramfs-5.1.15-gnu.img
}

It is pretty simple compared to what grub-mkconfig usually generates, and it 
works pretty well.

-- 
https://fturco.gitlab.io/



[gentoo-user] Human configurable boot loader, OR useful grub2 documentation

2019-07-05 Thread mad.scientist.at.large
So, is there either a boot loader that a human can configure manually that can 
handle LUKS partitions?  No uefi, but GPT would be nice.  The grub2 
"documentation"  Reads like someone in the later stages of alzheimers' trying 
to tell you how to get to the moon from scratch?  The grub "legacy" manual was 
at least usefull, the grub2 manual is incoherent and has no logical structure 
or explanations in it.  It's insane that a boot loader takes 60 pages to 
document without actually explaning itself, barely useful as a reference IF you 
new it anyway.

Grub2 produces insanely huge configuration files, stuffed with conditionals.  
It's obvious even the automatic tools don't know how to configure it, It can't 
figure out how to boot redcore, on the same drive though it thinks it can.  It 
thinks you might want to try one version of linux with the ram disk and kernel 
from another, which doesn't work very well and WHY?

any links to sane documentation or  sane bootloaders greatly appreciated, it'll 
be months before i can work on my own bootloader or extend one that makes sense 
out side of a corporate server farm or randomly assorted desktops that have to 
all work with the same config file (possibly because grub2 is deciding how to 
work every time it loads).

Yeah, I hate grub2.  I"m very willing to learn gentoo,  but it does make some 
sense and there are articles that actually explain things online.  I can't find 
anything usefull about grub2 other than "DON'T MANUALLY EDIT THIS FILE", if 
it's not human editable and understandable why even bother to have it in human 
readable text?


"Would you like to see us rule again, my friend?   All you have to do is follow 
the worms."  Pink Floyd, The Wall, Waiting for the worms