Re: [gentoo-user] Fonts and bad eyes

2014-05-21 Thread Benjamin Lee
On Sat, 17 May 2014 02:17:17 -0500, Dale  wrote:
> I'm just curious.  Just reply and let me know what you use.  I think I
> need to change mine to something better. 

For monospace, Source Code Pro [1] (media-fonts/source-pro).

For proportional, I prefer Helvetica (non-free) but among free options
Liberation Sans (media-fonts/liberation-fonts).

[1] http://blog.typekit.com/2012/09/24/source-code-pro/


-- 
Benjamin Lee
http://www.b1c1l1.com/


signature.asc
Description: PGP signature


Re: [gentoo-user] Tell cron to send email using sender:passwd@host:587 syntax?

2013-11-16 Thread Benjamin Lee
On Sat, 16 Nov 2013 09:05:52 -0500, Tanstaafl  wrote:
[...]
> I think all I need to do is figure out how to tell cron to send emails 
> the same way as portage using sender:pas...@smtp.example.com:587 (using 
> TLS), but alas, my google-fu is failing on this one... I can't find a 
> single mention anywhere of alternate examples of sending emails with 
> cron, much less using sender:passwd@host:587 syntax...
> 
> So... anyone? I can't imagine it isn't possible... ?

You're asking about cron, which is the wrong question.

Run a local MTA and have it relay everything through the remote SMTP
server.  This is 3 lines in a Postfix configuration file [1] (only 1
line if you don't require authentication).  Any MTA can do this, as it
is a very common setup.

Then all programs (not just cron) that use the sendmail binary or relay
to localhost:25 will work automatically.

[1] http://www.postfix.org/SOHO_README.html#client_sasl_enable


-- 
Benjamin Lee
http://www.b1c1l1.com/


signature.asc
Description: PGP signature


Re: [gentoo-user] grub2 on macbook pro

2013-01-22 Thread Benjamin Lee
On 01/20/2013 08:04 PM, Douglas J Hunley wrote:
> I'm completely stuck on getting Grub2 to work with the EFI on a new
> macbook pro. I have grub2 emerged w/o issue, and efibootmg as well.
> I've looked at both the Grub2 wiki and the Macbook wiki and the
> various directions are just /not/ clicking for me. Anyone have any
> clue how to actually get the EFI on macbook to boot Grub from
> /dev/sda1?

Have you made your EFI image with grub-mkimage?

Once that's done tar up your GRUB directory and extract it to /efi/grub
in Mac OS.  I have rEFIt installed as well so I can select EFI GRUB
among other boot options (like legacy BIOS emulation mode and Mac OS).

blee@supra /mnt/macos/efi $ ls
grub  rEFIt License.rtf  rEFIt ReadMe.rtf  refit  tools
blee@supra /mnt/macos/efi $ ls grub/grub.efi grub/grub.cfg
grub/grub.cfg  grub/grub.efi


-- 
Benjamin Lee
http://www.b1c1l1.com/



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] sed/awk question

2011-11-21 Thread Benjamin Lee
On 11/21/2011 06:52 PM, Adam Carter wrote:
> Hi All,
> 
> I need to cut a string, which happens to be a filename, using the
> first dash that's followed by a numeral, so cut -f 1 -d"-" fails if
> the filename has an extra dash. How do i do this?

Here's a Bourne parameter expansion:

blee@eclipse ~ $ foo="net-snmp-5.3.2.2-5.cp843034001.i386.rpm"
blee@eclipse ~ $ echo ${foo%%-[0-9]*}
net-snmp


-- 
Benjamin Lee
http://www.b1c1l1.com/



signature.asc
Description: OpenPGP digital signature