Re: [gentoo-user] [lame logrotate Q]

2009-12-21 Thread Alan McKinnon
On Monday 21 December 2009 05:52:55 Dale wrote:
 Harry Putnam wrote:
  Can anyone show me how to write a logrotate rule that will rotate on
  either size or age?
 
  I use some very simple scripting for yrs but don't really see how to
  rotate on more than one condition.
 
  I'd like to rotate a certain log weekly or over 7000k and keep no more
  than 12 rotations for whatever reason.
 
  /var/log/debug.log {
 create 0600 reader wheel
  weekly || size=7000k
  rotate 12
  postrotate
/etc/init.d/rsyslog reload  /dev/null 21 || true
  endscript
  }
 
  Is clearly NOT the right way to go.
 
  Any know how to do it?
 
 man logrotate has a few examples that may help.  Here is one.
 
/var/log/httpd/access.log /var/log/httpd/error.log {
rotate 5
mail w...@my.org
size 100k
sharedscripts
postrotate
/usr/bin/killall -HUP httpd
endscript
}
 
 
 I notice that the size part is on its own line which may be the issue.

That will rotate his log when it gets to 100k, and only when it gets to 100k.
The OP wants to rotate when either the log file is a certain size, or every 
week, whichever comes first.

Logrotate does not support that feature.

-- 
alan dot mckinnon at gmail dot com



[gentoo-user] SRC_URI=mirror://sourceforge- how to find out

2009-12-21 Thread Helmut Jarausch
Hi,

I'd like to change the ebuild for media-gfx/keyjnote
to that of the successor 
http://impressive.sourceforge.net/

Unfortunately, I cannot find out the SRC_URI for the ebuild (to be
created in my overlay tree).

Does anybody know to find out how to do this.
(I have seen that SRC_URI is quite different for different
projects hosted by Sourceforge.)

Many thanks for a hint,
Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



[gentoo-user] Changing subject and from lines of cron emails

2009-12-21 Thread Stroller

'Sup Gentoo?

I'm working on a daily cron job to email me daily. It happens to be  
details of new shows available for download on the BBC's iPlayer  
website. OMG! get_iplayer rocks!


If I have the following in my crontab:

0 8 * * *	/usr/local/bin/get_iplayer -z Daily Summary 21 | grep -v  
^Added


Then the email's subject is ugly.

A bit of Googling [1] shows me that:

0 8 * * *	/usr/local/bin/get_iplayer -z Daily Summary 21 | grep -v  
^Added | mailx -s iPlayer Daily Summary stroller


which gives a neater subject line.

However the from:  address is strol...@host.long.domain, which I  
feel is a little untidy.


It's probably OCD of me to care, but I would prefer the mails to  
appear in my mail client as from iPlayer.


Can anyone suggest a better solution than writing a wrapper script as  
described at:

   http://www.mail-archive.com/freebsd-questi...@freebsd.org/msg223401.html
please?

This is a great answer, but it means I have extra wrapper scripts  
cluttering up my system, and since I will probably want multiple  
summaries (say weekly reports of drama and comedy categories,  
delivered on different days) it would mean I need either multiple  
wrapper scripts, or a single much more complicated one.


I am probably making my life complicated just for the pernicketyness  
of it, but any suggestions gratefully received.


Stroller.



[1] 
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1261393668323+28353475threadId=886847





Re: [gentoo-user] SRC_URI=mirror://sourceforge- how to find out

2009-12-21 Thread Amit Dor-Shifer
http://downloads.sourceforge.net/project/impressive/Impressive/0.10.2/Impressive-0.10.2.tar.gz 
works for me:


amit0 # wget 
http://downloads.sourceforge.net/project/impressive/Impressive/0.10.2/Impressive-0.10.2.tar.gz
--2009-12-21 14:07:18--  
http://downloads.sourceforge.net/project/impressive/Impressive/0.10.2/Impressive-0.10.2.tar.gz

Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: 
http://garr.dl.sourceforge.net/project/impressive/Impressive/0.10.2/Impressive-0.10.2.tar.gz 
[following]
--2009-12-21 14:07:19--  
http://garr.dl.sourceforge.net/project/impressive/Impressive/0.10.2/Impressive-0.10.2.tar.gz

Resolving garr.dl.sourceforge.net... 193.206.140.34
Connecting to garr.dl.sourceforge.net|193.206.140.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 137193 (134K) [application/x-gzip]
Saving to: `Impressive-0.10.2.tar.gz'

100%[=] 
137,193  258K/s   in 0.5s


2009-12-21 14:07:20 (258 KB/s) - `Impressive-0.10.2.tar.gz' saved 
[137193/137193]


Though I've no experience with writing any official portage ebuild that 
d/l from sourceforge.


Amit



Helmut Jarausch wrote:

Hi,

I'd like to change the ebuild for media-gfx/keyjnote
to that of the successor 
http://impressive.sourceforge.net/


Unfortunately, I cannot find out the SRC_URI for the ebuild (to be
created in my overlay tree).

Does anybody know to find out how to do this.
(I have seen that SRC_URI is quite different for different
projects hosted by Sourceforge.)

Many thanks for a hint,
Helmut.

  




[gentoo-user] Re: SRC_URI=mirror://sourceforge- how to find out

2009-12-21 Thread Nikos Chantziaras

On 12/21/2009 01:08 PM, Helmut Jarausch wrote:

Hi,

I'd like to change the ebuild for media-gfx/keyjnote
to that of the successor
http://impressive.sourceforge.net/

Unfortunately, I cannot find out the SRC_URI for the ebuild (to be
created in my overlay tree).

Does anybody know to find out how to do this.
(I have seen that SRC_URI is quite different for different
projects hosted by Sourceforge.)


If you change the name of the ebuild to reflect the new name of the 
project, it will change automatically.  If you want to keep the ebuild 
name, you need to use:


  mirror://sourceforge/impressive/Impressive-${PV}.tar.gz

This however will still keep the version number of the ebuild.

The general form of sourceforge SRC_URIs is:

  mirror://sourceforge/projectname/filename

Since projectname is usually the same as the ebuild name, you use ${PN}.




[gentoo-user] Re: [lame logrotate Q]

2009-12-21 Thread reader
Alan McKinnon alan.mckin...@gmail.com writes:

 I notice that the size part is on its own line which may be the issue.

 That will rotate his log when it gets to 100k, and only when it gets to 100k.
 The OP wants to rotate when either the log file is a certain size, or every 
 week, whichever comes first.

 Logrotate does not support that feature.

Thanks Alan... saved me dicking around with it endlessly.




[gentoo-user] Re: Changing subject and from lines of cron emails

2009-12-21 Thread reader
Stroller strol...@stellar.eclipse.co.uk writes:

 However the from:  address is strol...@host.long.domain, which I
 feel is a little untidy.

Hopefully you use sendmail as mta.  If so either, Masquerading or
generics table can rewrite in or out going mail far as from field.

I'm familiar only with sendmail and masquerading.  Sendmail can be
made to masquerade as a certain doemain fairly painlessly... If
interersted I can provide details.




[gentoo-user] Problem with old nvidia-drivers-71.86.11 (depending x11-base/xorg-server vanished form portage-tree)

2009-12-21 Thread Christian Könitzer

Hi list,

I'm using a quite old NVIDIA card aqnd it worked well but since a few 
days it seams to be deprecated. After a eix --sync I got this:

emerge -DuN world
Calculating dependencies... done!

emerge: there are no ebuilds to satisfy x11-base/xorg-server-1.4.99.
(dependency required by x11-drivers/nvidia-drivers-71.86.11 [installed])
(dependency required by world [argument])


And eix tells me:
 eix x11-drivers/nvidia-drivers
[D] x11-drivers/nvidia-drivers
 Available versions:  [M]71.86.09!s [M]71.86.11!s [m]96.43.13!s 
[m](~)96.43.14!s [m]173.14.20!s [m](~)173.14.20-r1!s [m](~)173.14.22!s 
[m]180.60!s [m]185.18.36!s [m](~)185.18.36-r1!s [m](~)190.29!s 
[m](~)190.42-r2!s [m](~)190.42-r3!s {acpi custom-cflags gtk 
kernel_FreeBSD kernel_linux multilib userland_BSD}
 Installed versions:  71.86.11!s(10:52:39 23.10.2009)(acpi gtk 
kernel_linux -custom-cflags -kernel_FreeBSD -multilib -userland_BSD)

 Homepage:http://www.nvidia.com/
 Description: NVIDIA X11 driver and GLX libraries

and:
eix x11-base/xorg-server
[I] x11-base/xorg-server
 Available versions:  1.5.3-r6 1.6.3.901-r2 1.6.5-r1 ~1.7.3 
~1.7.3.901 ~1.7.3.901-r1 {3dfx debug dmx hal input_devices_acecad 
input_devices_aiptek input_devices_citron input_devices_elographics 
input_devices_evdev input_devices_fpit input_devices_hyperpen 
input_devices_joystick input_devices_keyboard input_devices_mouse 
input_devices_mutouch input_devices_penmount input_devices_synaptics 
input_devices_tslib input_devices_virtualbox input_devices_vmmouse 
input_devices_void input_devices_wacom ipv6 kdrive minimal nptl sdl 
tslib video_cards_apm video_cards_ark video_cards_ast video_cards_chips 
video_cards_cirrus video_cards_dummy video_cards_epson video_cards_fbdev 
video_cards_geode video_cards_glint video_cards_i128 video_cards_i740 
video_cards_impact video_cards_intel video_cards_mach64 video_cards_mga 
video_cards_neomagic video_cards_newport video_cards_nv 
video_cards_nvidia video_cards_r128 video_cards_radeon 
video_cards_radeonhd video_cards_rendition video_cards_s3 
video_cards_s3virge video_cards_savage video_cards_siliconmotion 
video_cards_sis video_cards_sisusb video_cards_sunbw2 
video_cards_suncg14 video_cards_suncg3 video_cards_suncg6 
video_cards_sunffb video_cards_sunleo video_cards_suntcx 
video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng 
video_cards_v4l video_cards_vesa video_cards_via video_cards_virtualbox 
video_cards_vmware video_cards_voodoo video_cards_xgi xorg}
 Installed versions:  1.6.5-r1(09:35:40 12.12.2009)(hal nptl sdl 
xorg -debug -dmx -ipv6 -kdrive -minimal -tslib)

 Homepage:http://xorg.freedesktop.org/
 Description: X.Org X servers


As descriped by the user guid I'm not doing wrong:
http://www.gentoo.org/doc/en/nvidia-guide.xml

In /etc/portage/package.mask i added:
...
=sys-kernel/gentoo-sources-2.6.28
=sys-apps/baselayout-1.12.13
=x11-drivers/nvidia-drivers-87.00
...

In /etc/portage/package.keywords I added:
...
x11-drivers/nvidia-drivers ~x86
...

So for me it looks like the xorg server which is required by my 
nvidia-card (x11-drivers/nvidia-drivers-71.86.11) isn't longer in the 
portage-tree...


Don't know what to do now - do I need to buy a newer graphiccard? :O ;) 
Hopefully not...

cheers Chris




Re: [gentoo-user] {OT} Preparing a laptop for sale

2009-12-21 Thread Grant
 Is there a quick way to install a bootloader manually, so I can see if
 that works?  I tried to adapt this but couldn't come up with a
 procedure I though would be correct:

 Don't know about the distro you were trying to install, but when I
 need a bootable USB disk with utils, I usually go with System Rescue
 CD

 http://www.sysresccd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick

Great success!  Thank you for that link.  Here's what I needed to do:

'cfdisk /dev/sdb' and select type LBA FAT32
'mkfs.vfat -F 32 -n DSLinux /dev/sdb1'
'dd if=/usr/share/syslinux/mbr.bin of=/dev/sdb'
'sync'

Maybe that dd would have been sufficient, I'm not sure.  I was using
ext3 before.

New problem: Booted into DSLinux, my HD does not appear so I can't
wipe it.  blkid and fdisk -l only show the USB stick assigned to
/dev/sda which is how I accidentally wiped it in the first place.
I'll try another distro on the USB stick.

- Grant



Re: [gentoo-user] Re: Trying to make portage use puf instead of wget

2009-12-21 Thread Paul Hartman
On Sat, Dec 19, 2009 at 8:08 AM, Ronan Mainbourg
ronan.mainbo...@gmail.com wrote:
 Download work great when I type directly:

 puf http://download.videolan.org/pub/libdvbpsi/0.1.6/libdvbpsi5-0.1.6.tar.bz2'

 Any help please ?

Like I said for me it fails when run as root. What happens if you run
it as root/sudo?



Re: [gentoo-user] {OT} Preparing a laptop for sale

2009-12-21 Thread Willie Wong
On Mon, Dec 21, 2009 at 09:01:38AM -0800, Penguin Lover Grant squawked:
 New problem: Booted into DSLinux, my HD does not appear so I can't
 wipe it.  blkid and fdisk -l only show the USB stick assigned to
 /dev/sda which is how I accidentally wiped it in the first place.
 I'll try another distro on the USB stick.

If DSLinux is what I think it is, it may have been (on hindsight)
rather obvious that it may not support the block device your system HD
is on or the filesystem used. The DS, afterall, has fairly predictable
hardware. 

Something like DBAN or SysResCD will have a better chance of
supporting a wider array of hardware. 

Cheers, 

W
-- 
The problem is that the LHC has caused the production of strange moron
particles, which seem to bump into normal people and turn them into
more strange morons. The collective outgassing of stupidity causes a
supernova brain implosion.  ~David Gerard (12369) /. cid:25200015
Sortir en Pantoufles: up 1109 days, 17:17



Re: [gentoo-user] {OT} Preparing a laptop for sale

2009-12-21 Thread Dale

Willie Wong wrote:

On Mon, Dec 21, 2009 at 09:01:38AM -0800, Penguin Lover Grant squawked:
  

New problem: Booted into DSLinux, my HD does not appear so I can't
wipe it.  blkid and fdisk -l only show the USB stick assigned to
/dev/sda which is how I accidentally wiped it in the first place.
I'll try another distro on the USB stick.



If DSLinux is what I think it is, it may have been (on hindsight)
rather obvious that it may not support the block device your system HD
is on or the filesystem used. The DS, afterall, has fairly predictable
hardware. 


Something like DBAN or SysResCD will have a better chance of
supporting a wider array of hardware. 

Cheers, 


W
  


I'm not sure if he is wanting to just use this to wipe the drive and 
then be done with it or what but couldn't he just put the Gentoo CD 
image on the stick and boot that up?  Would that work?  It has the dd 
command I think and would most likely recognize his hardware as well.


Just thinking.  I been into a lot lately and only vaguely recall the 
purpose of this.


Dale

:-)  :-)



Re: [gentoo-user] {OT} Preparing a laptop for sale

2009-12-21 Thread Grant
 New problem: Booted into DSLinux, my HD does not appear so I can't
 wipe it.  blkid and fdisk -l only show the USB stick assigned to
 /dev/sda which is how I accidentally wiped it in the first place.
 I'll try another distro on the USB stick.

DSLinux couldn't find my HD because it needs the sata boot parameter
explicitly passed.  However, after doing that it crashes while loading
the sata module.  This is discussed online with no solution presented.

 If DSLinux is what I think it is, it may have been (on hindsight)
 rather obvious that it may not support the block device your system HD
 is on or the filesystem used. The DS, afterall, has fairly predictable
 hardware.

 Something like DBAN or SysResCD will have a better chance of
 supporting a wider array of hardware.

The problem with those two is I need something that can install to the
HD after wiping it.  I also need something that can install on a 512MB
USB key since my 8GB key does not seem to be bootable.  DSLinux was a
flop as described above, so I'm downloading Puppy Linux now.  It's
about 100MB, and it has the Puppy Universal Installer which should
install to my HD.  Hopefully it fares better with my SATA hardware
than DSLinux did.

Also, in case it helps anyone in the future, unetbootin has a very
annoying habit of failing to download the selected ISO, returning no
error, and in fact reporting installation success.  The symptom of
this is a boot menu with only Default available, which goes nowhere.
 The solution is to download the ISO manually and point unetbootin to
it.

I'll report back with Puppy Linux results.

- Grant



Re: [gentoo-user] {OT} Preparing a laptop for sale

2009-12-21 Thread Grant
 New problem: Booted into DSLinux, my HD does not appear so I can't
 wipe it.  blkid and fdisk -l only show the USB stick assigned to
 /dev/sda which is how I accidentally wiped it in the first place.
 I'll try another distro on the USB stick.


 If DSLinux is what I think it is, it may have been (on hindsight)
 rather obvious that it may not support the block device your system HD
 is on or the filesystem used. The DS, afterall, has fairly predictable
 hardware.
 Something like DBAN or SysResCD will have a better chance of
 supporting a wider array of hardware.
 Cheers,
 W


 I'm not sure if he is wanting to just use this to wipe the drive and then be
 done with it or what but couldn't he just put the Gentoo CD image on the
 stick and boot that up?  Would that work?  It has the dd command I think and
 would most likely recognize his hardware as well.

The problem with that is there doesn't seem to be a Gentoo ISO which
will fit on a 512MB USB key.  I tried to make it work once and failed.
 The other thing is going through the entire Gentoo installation just
to sell the laptop.  I'm not sure if the graphical installer is
working these days.

- Grant



[gentoo-user] compiz and intel driver

2009-12-21 Thread Arnau Bria
Hi all.

I'm reading http://en.gentoo-wiki.com/wiki/Compiz-Fusion and I'd like
to configure an intel graph card and I use xfce.

it says:

Intel GMA

Intel GMA PC owners should start compiz with some more parameters (INTEL_BATCH 
 LIBGL_ALWAYS_INDIRECT  --indirect-rendering) set before starting compiz:
LIBGL_ALWAYS_INDIRECT=1 INTEL_BATCH=1 compiz --replace --indirect-rendering 
--sm-disable ccp

But where do I have to set those params?
is /home/username/.start-compiz the right place?

something like:
#!/bin/bash

export LIBGL_ALWAYS_INDIRECT=1 
export INTEL_BATCH=1 
compiz --replace --indirect-rendering --sm-disable ccp
emerald --replace


TIA,
Arnau



[gentoo-user] Re: Problem with old nvidia-drivers-71.86.11 (depending x11-base/xorg-server vanished form portage-tree)

2009-12-21 Thread walt

On 12/21/2009 08:48 AM, Christian Könitzer wrote:

Hi list,

I'm using a quite old NVIDIA card aqnd it worked well but since a few days it 
seams to be deprecated. After a eix --sync I got this:
emerge -DuN world
Calculating dependencies... done!

emerge: there are no ebuilds to satisfy x11-base/xorg-server-1.4.99.
(dependency required by x11-drivers/nvidia-drivers-71.86.11 [installed])


Hm.  I used that driver until very recently, when my brother-in-law
upgraded his video card and gave the old one for free.  His timing
is not usually that good.  :o)

You can still use the nv driver, if that's adequate for your needs.

If the nv driver isn't good enough, then I'd say it's time upgrade your
video card after all these years.  I never really noticed any difference
between the nvidia and nv drivers when I still used the old TNT card.




Re: [gentoo-user] Problem with old nvidia-drivers-71.86.11 (depending x11-base/xorg-server vanished form portage-tree)

2009-12-21 Thread Alan McKinnon
On Monday 21 December 2009 18:48:25 Christian Könitzer wrote:
 Hi list,
 
 I'm using a quite old NVIDIA card aqnd it worked well but since a few
 days it seams to be deprecated. After a eix --sync I got this:
 emerge -DuN world
 Calculating dependencies... done!
 
 emerge: there are no ebuilds to satisfy x11-base/xorg-server-1.4.99.
 (dependency required by x11-drivers/nvidia-drivers-71.86.11 [installed])
 (dependency required by world [argument])
 
 
 And eix tells me:
   eix x11-drivers/nvidia-drivers
 [D] x11-drivers/nvidia-drivers
   Available versions:  [M]71.86.09!s [M]71.86.11!s [m]96.43.13!s
 [m](~)96.43.14!s [m]173.14.20!s [m](~)173.14.20-r1!s [m](~)173.14.22!s
 [m]180.60!s [m]185.18.36!s [m](~)185.18.36-r1!s [m](~)190.29!s
 [m](~)190.42-r2!s [m](~)190.42-r3!s {acpi custom-cflags gtk
 kernel_FreeBSD kernel_linux multilib userland_BSD}
   Installed versions:  71.86.11!s(10:52:39 23.10.2009)(acpi gtk
 kernel_linux -custom-cflags -kernel_FreeBSD -multilib -userland_BSD)
   Homepage:http://www.nvidia.com/
   Description: NVIDIA X11 driver and GLX libraries

Your version of nvidia-drivers is listed as hardmasked in 
profiles/package.mask:

# Mask nvidia-drivers-71.x.y since it will not work
# with xorg-server-1.5 and later which are the only
# available versions in the tree
x11-drivers/nvidia-drivers-72.0.0

You will need to find an ebuild for the version of xorg you need in an overlay 
somewhere, or search the gentoo attic

You'll have to google for the URL for the attic, it's one of those things I 
can never remember...

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] [lame logrotate Q]

2009-12-21 Thread Neil Bothwick
On Mon, 21 Dec 2009 08:42:43 +0200, Alan McKinnon wrote:

 That will rotate his log when it gets to 100k, and only when it gets to
 100k. The OP wants to rotate when either the log file is a certain
 size, or every week, whichever comes first.
 
 Logrotate does not support that feature.

What happens if you set up two separate rules, one to rotate at 100K and
one at 7 days?


-- 
Neil Bothwick

Gravity isn't easy, but it's the law.


signature.asc
Description: PGP signature


Re: [gentoo-user] {OT} Preparing a laptop for sale

2009-12-21 Thread Neil Bothwick
On Mon, 21 Dec 2009 13:31:31 -0500, Willie Wong wrote:

 If DSLinux is what I think it is, it may have been (on hindsight)
 rather obvious that it may not support the block device your system HD
 is on or the filesystem used. The DS, afterall, has fairly predictable
 hardware. 

DS = Damn Small, not Dual Screen.

I don't know if anyone has installed Gentoo on the DS you were thinking
of ;-)


-- 
Neil Bothwick

He who laughs last thinks slowest!


signature.asc
Description: PGP signature


Re: [gentoo-user] Problem with old nvidia-drivers-71.86.11 (depending x11-base/xorg-server vanished form portage-tree)

2009-12-21 Thread Dale

Alan McKinnon wrote:

On Monday 21 December 2009 18:48:25 Christian Könitzer wrote:
  

Hi list,

I'm using a quite old NVIDIA card aqnd it worked well but since a few
days it seams to be deprecated. After a eix --sync I got this:
emerge -DuN world
Calculating dependencies... done!

emerge: there are no ebuilds to satisfy x11-base/xorg-server-1.4.99.
(dependency required by x11-drivers/nvidia-drivers-71.86.11 [installed])
(dependency required by world [argument])


And eix tells me:
  eix x11-drivers/nvidia-drivers
[D] x11-drivers/nvidia-drivers
  Available versions:  [M]71.86.09!s [M]71.86.11!s [m]96.43.13!s
[m](~)96.43.14!s [m]173.14.20!s [m](~)173.14.20-r1!s [m](~)173.14.22!s
[m]180.60!s [m]185.18.36!s [m](~)185.18.36-r1!s [m](~)190.29!s
[m](~)190.42-r2!s [m](~)190.42-r3!s {acpi custom-cflags gtk
kernel_FreeBSD kernel_linux multilib userland_BSD}
  Installed versions:  71.86.11!s(10:52:39 23.10.2009)(acpi gtk
kernel_linux -custom-cflags -kernel_FreeBSD -multilib -userland_BSD)
  Homepage:http://www.nvidia.com/
  Description: NVIDIA X11 driver and GLX libraries



Your version of nvidia-drivers is listed as hardmasked in 
profiles/package.mask:


# Mask nvidia-drivers-71.x.y since it will not work
# with xorg-server-1.5 and later which are the only
# available versions in the tree
x11-drivers/nvidia-drivers-72.0.0

You will need to find an ebuild for the version of xorg you need in an overlay 
somewhere, or search the gentoo attic


You'll have to google for the URL for the attic, it's one of those things I 
can never remember...


  


Is this it?

http://sources.gentoo.org/viewcvs.py/

Dale

:-)  :-)



[gentoo-user] Re: Changing subject and from lines of cron emails

2009-12-21 Thread walt

On 12/21/2009 03:35 AM, Stroller wrote:


OMG! get_iplayer rocks!


Very cool, thanks.  I can't answer your question, but I'm listening to
A Celtic Heartbeat from Radio Wales just 15 minutes after I saw this,
so thanks for the tip and happy holidays :o)




Re: [gentoo-user] {OT} Preparing a laptop for sale

2009-12-21 Thread Dale

Grant wrote:

New problem: Booted into DSLinux, my HD does not appear so I can't
wipe it.  blkid and fdisk -l only show the USB stick assigned to
/dev/sda which is how I accidentally wiped it in the first place.
I'll try another distro on the USB stick.



If DSLinux is what I think it is, it may have been (on hindsight)
rather obvious that it may not support the block device your system HD
is on or the filesystem used. The DS, afterall, has fairly predictable
hardware.
Something like DBAN or SysResCD will have a better chance of
supporting a wider array of hardware.
Cheers,
W

  

I'm not sure if he is wanting to just use this to wipe the drive and then be
done with it or what but couldn't he just put the Gentoo CD image on the
stick and boot that up?  Would that work?  It has the dd command I think and
would most likely recognize his hardware as well.



The problem with that is there doesn't seem to be a Gentoo ISO which
will fit on a 512MB USB key.  I tried to make it work once and failed.
 The other thing is going through the entire Gentoo installation just
to sell the laptop.  I'm not sure if the graphical installer is
working these days.

- Grant
  


Oh, I was thinking about the 8Gb or whatever size it was.  Isn't there a 
old CD that didn't have a full blown setup that was sort of small?  I 
found this:


ftp://mirror.datapipe.net/gentoo/releases/x86/2008.0/installcd

It's a small one but a bit outdated.  Of course, you don't want to 
install from that I guess so it may not help any.


Dale

:-)  :-)



Re: [gentoo-user] Changing subject and from lines of cron emails

2009-12-21 Thread Etaoin Shrdlu
On Monday 21 December 2009, Stroller wrote:

 A bit of Googling [1] shows me that:
 
 0 8 * * * /usr/local/bin/get_iplayer -z Daily Summary 21 | grep -v
 ^Added | mailx -s iPlayer Daily Summary stroller
 
 which gives a neater subject line.
 
 However the from:  address is strol...@host.long.domain, which I
 feel is a little untidy.
 
 It's probably OCD of me to care, but I would prefer the mails to
 appear in my mail client as from iPlayer.

Some (don't know about gentoo's) versions of the mail command have a -r 
switch that lets you specify the from address.

In any case, if, instead of mail/mailx, you use a sendmail-compatible agent 
like ssmtp, there you'll definitely have a -r option.



Re: [gentoo-user] {OT} Preparing a laptop for sale

2009-12-21 Thread Grant
 New problem: Booted into DSLinux, my HD does not appear so I can't
 wipe it.  blkid and fdisk -l only show the USB stick assigned to
 /dev/sda which is how I accidentally wiped it in the first place.
 I'll try another distro on the USB stick.

 DSLinux couldn't find my HD because it needs the sata boot parameter
 explicitly passed.  However, after doing that it crashes while loading
 the sata module.  This is discussed online with no solution presented.

 If DSLinux is what I think it is, it may have been (on hindsight)
 rather obvious that it may not support the block device your system HD
 is on or the filesystem used. The DS, afterall, has fairly predictable
 hardware.

 Something like DBAN or SysResCD will have a better chance of
 supporting a wider array of hardware.

 The problem with those two is I need something that can install to the
 HD after wiping it.  I also need something that can install on a 512MB
 USB key since my 8GB key does not seem to be bootable.  DSLinux was a
 flop as described above, so I'm downloading Puppy Linux now.  It's
 about 100MB, and it has the Puppy Universal Installer which should
 install to my HD.  Hopefully it fares better with my SATA hardware
 than DSLinux did.

 Also, in case it helps anyone in the future, unetbootin has a very
 annoying habit of failing to download the selected ISO, returning no
 error, and in fact reporting installation success.  The symptom of
 this is a boot menu with only Default available, which goes nowhere.
  The solution is to download the ISO manually and point unetbootin to
 it.

 I'll report back with Puppy Linux results.

Puppy Linux has wiped the HD and installed to /dev/sda3, but I can't
get it to install GRUB to /dev/sda1.  I get:

I couldn't mount '/dev/sda1' read-write!

Working on it

- Grant



[gentoo-user] Writing a bash script or thinking about it anyway.

2009-12-21 Thread Dale

Hi folks,

Me again.  I'm thinking about writing a bash script that backs up my 
/home directory.  I found a guide but before I read all that stuff and 
muddy up the waters, is this thing current and will it work fine with 
the bash Gentoo uses?  Links to a even better guide would be good too.  
The guide I found is here:


http://tldp.org/LDP/abs/html/

I'm going to try to do this myself but as most of you know, it takes me 
a bit to grasp things.  I may be back for advice on this as well.  Who 
knows, maybe one day I can be a dev.  LOL  Well, most likely not really 
but anyway.


Thanks.

Dale

:-)  :-)



Re: [gentoo-user] Writing a bash script or thinking about it anyway.

2009-12-21 Thread Francisco Ares
I probably didn't  get the point, but what about a simple tar?

#! /bin/bash
tar -cjvpf /tmp/home.tbz /home
mv /tmp/home.tbz /some/where/else

unless you're thinking on incremental back up, and more sophisticated things.

Francisco

On Tue, Dec 22, 2009 at 1:22 AM, Dale rdalek1...@gmail.com wrote:
 Hi folks,

 Me again.  I'm thinking about writing a bash script that backs up my /home
 directory.  I found a guide but before I read all that stuff and muddy up
 the waters, is this thing current and will it work fine with the bash Gentoo
 uses?  Links to a even better guide would be good too.  The guide I found is
 here:

 http://tldp.org/LDP/abs/html/

 I'm going to try to do this myself but as most of you know, it takes me a
 bit to grasp things.  I may be back for advice on this as well.  Who knows,
 maybe one day I can be a dev.  LOL  Well, most likely not really but anyway.

 Thanks.

 Dale

 :-)  :-)





-- 
If you have an apple and I have an apple and we exchange apples then
you and I will still each have one apple. But if you have an idea and
I have one idea and we exchange these ideas, then each of us will have
two ideas. - George Bernard Shaw



Re: [gentoo-user] off-topic: logitech mice (MX1000)

2009-12-21 Thread Allan Gottlieb
At Sun, 20 Dec 2009 21:04:12 -0800 John Campbell jdc@cox.net wrote:

 On 12/15/2009 11:11 AM, Allan Gottlieb wrote:
 It seems to me that this mouse sends two button events for some of the
 physical buttons.  For example moving the wheel to the left reports
button press 13
button press 6
button release 6
button release 13
 
 Similar results for the many other buttons on the beast.
 
 Is this what the device actually does or does it signify a faulty X
 setup on my part?
 
 I have the evdev driver in my kernel.
 
 I use xorg.conf and have
 Section InputDevice
 Identifier Logitech MX1000
 Driver evdev
 Option Device /dev/input/event2
 EndSection
 
 gottl...@allan /dev/input/by-id $ ls -l 
 /dev/input/by-id/usb-Logitech_USB_Receiver-event-mouse 
 lrwxrwxrwx 1 root root 9 Dec 15 11:20 
 /dev/input/by-id/usb-Logitech_USB_Receiver-event-mouse - ../event2

 As I recall, the fix for this problem is a sys-adm/lomoco.

 Logitech mice actually produce those double events...  lomoco allows you
 tell the mouse to stop.  I've got a udev rule for it, I think lomoco put
 it there, but I've had logitech MX mice for years and lomoco is a fork
 of a fork and may no longer contain the udev script.

 You also might look into imwheel from the Mandrake distrabution as it
 contains patches to deal with more than 10 buttons.

Magnificent!! I did really think the mouse could be sending
button events for two different logical buttons when only one physical
button was pushed.  That got me looking at xorg.conf to see where I
screwed up.  But, as you said, the MX mice do send events for two
buttons.

As you also said lomoco fixes it.

sudo lomoco --nosms is now in my startup script.

Thank you very much !

allan



Re: [gentoo-user] Writing a bash script or thinking about it anyway.

2009-12-21 Thread Dale

Francisco Ares wrote:

I probably didn't  get the point, but what about a simple tar?

#! /bin/bash
tar -cjvpf /tmp/home.tbz /home
mv /tmp/home.tbz /some/where/else

unless you're thinking on incremental back up, and more sophisticated things.

Francisco

  
Well, I want to start off making a small script.  Maybe get a little 
more complicated later on.  I do want to do incremental backups, at 
least at first.  I may later on use tar and something to keep say two 
copies and then delete the older ones. 

Just trying to get my feet wet here.  Trying to be simple at first and 
go from there.  If I try to cram to much in my head at one time, I get 
brain lock.


Thanks.

Dale

:-)  :-)



Re: [gentoo-user] Writing a bash script or thinking about it anyway.

2009-12-21 Thread Francisco Ares
On Tue, Dec 22, 2009 at 2:16 AM, Dale rdalek1...@gmail.com wrote:
 Francisco Ares wrote:

 I probably didn't  get the point, but what about a simple tar?

 #! /bin/bash
 tar -cjvpf /tmp/home.tbz /home
 mv /tmp/home.tbz /some/where/else

 unless you're thinking on incremental back up, and more sophisticated
 things.

 Francisco



 Well, I want to start off making a small script.  Maybe get a little more
 complicated later on.  I do want to do incremental backups, at least at
 first.  I may later on use tar and something to keep say two copies and then
 delete the older ones.
 Just trying to get my feet wet here.  Trying to be simple at first and go
 from there.  If I try to cram to much in my head at one time, I get brain
 lock.

 Thanks.

 Dale

 :-)  :-)



Well, there are a couple of tools to make your script quite simple:

http://www.linuxhowtos.org/Tips%20and%20Tricks/unison.htm
http://www.linuxjournal.com/article/7712
http://www.novell.com/coolsolutions/trench/16061.html
http://webtools.live2support.com/linux/rsync.php
http://www.linuxquestions.org/questions/linux-general-1/sync-a-usb-flash-drive-with-hd-folders-possible-522875/
http://www.linux.com/news/enterprise/storage/8200-back-up-like-an-expert-with-rsync
http://www.unixtutorial.org/2008/09/how-to-synchronize-directories-with-rsync/

Hope this helps
Francisco

-- 
If you have an apple and I have an apple and we exchange apples then
you and I will still each have one apple. But if you have an idea and
I have one idea and we exchange these ideas, then each of us will have
two ideas. - George Bernard Shaw



Re: [gentoo-user] Writing a bash script or thinking about it anyway.

2009-12-21 Thread Neil Walker
Dale wrote:
 Me again.  I'm thinking about writing a bash script that backs up my
 /home directory.

I use a simple rsync cron job to backup entire servers every hour. Does
the job for me. ;)


Be lucky,

Neil
http://www.the-workathome.com





Re: [gentoo-user] Re: Trying to make portage use puf instead of wget

2009-12-21 Thread Xi Shen
i always run in root when doing emerge. every thing is ok.


On Tue, Dec 22, 2009 at 1:06 AM, Paul Hartman
paul.hartman+gen...@gmail.com wrote:
 On Sat, Dec 19, 2009 at 8:08 AM, Ronan Mainbourg
 ronan.mainbo...@gmail.com wrote:
 Download work great when I type directly:

 puf 
 http://download.videolan.org/pub/libdvbpsi/0.1.6/libdvbpsi5-0.1.6.tar.bz2'

 Any help please ?

 Like I said for me it fails when run as root. What happens if you run
 it as root/sudo?





-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/



Re: [gentoo-user] {OT} Preparing a laptop for sale

2009-12-21 Thread Alan McKinnon
On Tuesday 22 December 2009 04:59:02 Grant wrote:

  I'll report back with Puppy Linux results.
 
 Puppy Linux has wiped the HD and installed to /dev/sda3, but I can't
 get it to install GRUB to /dev/sda1.  I get:
 
 I couldn't mount '/dev/sda1' read-write!
 
 Working on it

You cannot install grub to /dev/sda1 and expect it to work - that is a 
partition, not a device. 

Grub goes into the MBR of the device, and the various stage 1.5 and stage 2 
support files are put into /boot/grub/. The install app can find those dirs 
just fine as it is a Linux app running on a full mounted Linux system. But, it 
has no clue which MBR you want to be used:

grub-install /dev/sda

If you need grub installed on some other device (not the current machine's own 
boot drive), then mount that drive's /boot somewhere and do something like 
this

grub-install --root-directory=/mnt/boot /dev/device


-- 
alan dot mckinnon at gmail dot com