[gentoo-user] Gnome 3: GL_MAX_TEXTURE_SIZE is too small.

2011-11-30 Thread Maximilian Bräutigam
Dear all,

I'd really like to switch to or at least test Gnome 3, but not the
fallback version. But that's everything I get.

Running /usr/libexec/gnome-session-check-accelerated-helper gives me the
clue:
gnome-session-is-accelerated: GL_MAX_TEXTURE_SIZE is too small.

Searching for it in the internet is not very helpful, just some Spanish
Debian mailing list entries. The Gentoo Gnome upgrade guide is not
helpful as well and I did everything according to this guide, i.e.

(1) I'm using open source xserver driver x11-drivers/xf86-video-intel
with VIDEO_CARDS=intel and mesa with use of video_cards_intel.

(2) Mesa is built with gallium and it is enables using eselect.

(3) direct rendering is enabled:
# glxinfo | grep rendering
direct rendering: Yes

You can find my emerge --info here:

http://paste.pocoo.org/show/514796/

BTW, VGA controller is according to lspci just VGA compatible
controller: Intel Corporation Core Processor Integrated Graphics
Controller (rev 02) and the processor is Intel(R) Core(TM) i3.

My question is, whether it is possible to increase this
GL_MAX_TEXTURE_SIZE or not and if so, how.

Thank you very much in advance for your help.
Kind regards,
der Max



Re: [gentoo-user] binutils failed to compile

2011-11-30 Thread ted
meino.cra...@gmx.de writes:
 Hi,

Hello,

 after update binutil receives a patch from gentoo. The following
 compilations failes:
...

 x86_64-pc-linux-gnu-gcc: yes: No such file or directory
...J

 It seems, that yes is missed.
 Whatever this means... 
 
 Best regards,
 mcc

It turned out to be a bug in the ebuild scripts. If you re-sync
now all should be well. What impressed me was that Gentoo devs
had confirmed, generalised and fixed it, all within 40 minutes
of it being reported. Not bad eh? :-/

Ted.



Re: [gentoo-user] Gnome 3: GL_MAX_TEXTURE_SIZE is too small.

2011-11-30 Thread Michael Schreckenbauer
Hi,

Am Mittwoch, 30. November 2011, 10:11:04 schrieb Maximilian Bräutigam:
 My question is, whether it is possible to increase this
 GL_MAX_TEXTURE_SIZE or not and if so, how.

GL_MAX_TEXTURE_SIZE is limited by your video-card. Afaik, there's no way to 
increase it as it's given by the HW.
What does
glxinfo -l | grep MAX_TEXTURE_SIZE
give?

 Thank you very much in advance for your help.
 Kind regards,
 der Max

Best,
Michael




Re: [gentoo-user] Gnome 3: GL_MAX_TEXTURE_SIZE is too small.

2011-11-30 Thread Albert W. Hopkins
On Wed, 2011-11-30 at 10:11 +0100, Maximilian Bräutigam wrote:
 (2) Mesa is built with gallium and it is enables using eselect.

AFAIK intel drivers didn't work (well) with gallium, at least I
checked[1].

Anyway you might want to try the classic.  Works for me.

[1] http://www.phoronix.com/scan.php?page=news_itempx=ODE0OQ





[gentoo-user] [OT] max size of bash variable value

2011-11-30 Thread pat
Hi all,

Sorry for this off topic post, but I've been asked how/where to find maximum
size of bash variable value. I've search and found 4M, 1k, 4k ... . But didn't
found how/where this limit is set. I know, that for C it's e.g. sizeof(int),
but for bash?

Thanks for help

 Pat


Freehosting PIPNI - http://www.pipni.cz/



Re: [gentoo-user] [OT] max size of bash variable value

2011-11-30 Thread Michael Schreckenbauer
Am Mittwoch, 30. November 2011, 13:19:56 schrieb pat:
 Hi all,
 
 Sorry for this off topic post, but I've been asked how/where to find maximum
 size of bash variable value. I've search and found 4M, 1k, 4k ... . But
 didn't found how/where this limit is set. I know, that for C it's e.g.
 sizeof(int), but for bash?

afaik you can query that value with
getconf ARG_MAX
How to set it, I have no idea.

 Thanks for help
  Pat

Best,
Michael




Re: [gentoo-user] Re: no keyboard activity in gnome

2011-11-30 Thread Aljosha Papsch
Am Dienstag, den 29.11.2011, 21:03 -0500 schrieb cov...@ccs.covici.com:
 I can't get startx to work at all, here is what I get when I try it.
 xauth:  file /home/covici/.serverauth.21638 does not exist
 
 
 X.Org X Server 1.11.2
 Release Date: 2011-11-04
 X Protocol Version 11, Revision 0
 Build Operating System: Linux 2.6.32-gentoo-r2 x86_64 Gentoo
 Current Operating System: Linux ccs.covici.com 2.6.32-gentoo-r2 #3 SMP
 Sat Apr 9 23:17:27 EDT 2011 x86_64
 Kernel command line: BOOT_IMAGE=2.6.32-gentoo ro root=100 init=/linuxrc
 ramdisk=8192 real_root=/dev/mapper/linux--files-64--root udev
 video=uvesafb:1280x1024 speakup.synth=spkout vmalloc=256M dolvm
 Build Date: 27 November 2011  05:14:42PM
 
 Current version of pixman: 0.24.0
 Before reporting problems, check http://wiki.x.org
 to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
 (++) from command line, (!!) notice, (II) informational,
 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: /var/log/Xorg.0.log, Time: Tue Nov 29 21:00:16 2011
 (==) Using config file: /etc/X11/xorg.conf
 (==) Using system config directory /usr/share/X11/xorg.conf.d
 (EE) Failed to load module dri (module does not exist, 0)
 (EE) Failed to load module dri2 (module does not exist, 0)
 (EE) NVIDIA: Failed to load module dri2 (module does not exist, 0)
 [dix] Could not init font path element unix/:7100, removing from list!
 which: no keychain in
 
 (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3:/usr/local/freeswitch/bin:/usr/sbin:/sbin:/home/covici/bin)
 /etc/X11/xinit/xinitrc: line 59: twm: command not found
 /etc/X11/xinit/xinitrc: line 63: exec: xterm: not found
 xinit: connection to X server lost
 
 waiting for X server to shut down Server terminated successfully
 (0). Closing log file.
 
 I am not sure why this is happening.

You don't have twm and xterm installed. But that's just the default to
start for X11. Edit ~/.xinitrc and put only the following in it:
exec gnome-session
Make sure that you have dbus started.




Re: [gentoo-user] [OT] max size of bash variable value

2011-11-30 Thread pat
On Wed, 30 Nov 2011 14:18:35 +0100, Michael Schreckenbauer wrote
 Am Mittwoch, 30. November 2011, 13:19:56 schrieb pat:
  Hi all,
  
  Sorry for this off topic post, but I've been asked how/where to find maximum
  size of bash variable value. I've search and found 4M, 1k, 4k ... . But
  didn't found how/where this limit is set. I know, that for C it's e.g.
  sizeof(int), but for bash?
 
 afaik you can query that value with
 getconf ARG_MAX
 How to set it, I have no idea.
 
  Thanks for help
   Pat
 
 Best,
 Michael

Thanks a lot that's exactly they looking for ... I hope :-)

Thanks

 Pat


Freehosting PIPNI - http://www.pipni.cz/



Re: [gentoo-user] Re: Beta test Gentoo with mdev instead of udev; version 2

2011-11-30 Thread Pandu Poluan
On Mon, Nov 21, 2011 at 17:47,  waltd...@waltdnes.org wrote:


- 8 snip

 3) In the bootloader append line, include init=/sbin/linuxrc where
   the file /sbin/linuxrc consists of *AT LEAST*...

 #!/sbin/busybox ash
 mount -t proc proc /proc
 mount -t sysfs sysfs /sys
 exec /sbin/init

   This should be enough for most users.  If you have an unusual setup,
   you may need additional stuff in there.  If you're using lilo remember
   to re-run lilo to implement the changes.


- 8 snip

BTW, which busybox returns /bin/busybox instead of /sbin/busybox

In other words, all this time /sbin/linuxrc *didn't* run on my boxen,
but the kernel is smart enough to run with the defaults, whatever
that is (I forgot to write down the exact error message in dmesg).

After fixing the hashbang line, I can now insert the line mount -o
remount,rw / at the 2nd line...

... and I no longer have the two red asterisks! Yay!!

Rgds,
-- 
FdS Pandu E Poluan
~ IT Optimizer ~

 • LOPSA Member #15248
 • Blog : http://pepoluan.tumblr.com
 • Linked-In : http://id.linkedin.com/in/pepoluan



Re: [gentoo-user] Re: no keyboard activity in gnome

2011-11-30 Thread covici
Aljosha Papsch papsch...@googlemail.com wrote:

 Am Dienstag, den 29.11.2011, 21:03 -0500 schrieb cov...@ccs.covici.com:
  I can't get startx to work at all, here is what I get when I try it.
  xauth:  file /home/covici/.serverauth.21638 does not exist
  
  
  X.Org X Server 1.11.2
  Release Date: 2011-11-04
  X Protocol Version 11, Revision 0
  Build Operating System: Linux 2.6.32-gentoo-r2 x86_64 Gentoo
  Current Operating System: Linux ccs.covici.com 2.6.32-gentoo-r2 #3 SMP
  Sat Apr 9 23:17:27 EDT 2011 x86_64
  Kernel command line: BOOT_IMAGE=2.6.32-gentoo ro root=100 init=/linuxrc
  ramdisk=8192 real_root=/dev/mapper/linux--files-64--root udev
  video=uvesafb:1280x1024 speakup.synth=spkout vmalloc=256M dolvm
  Build Date: 27 November 2011  05:14:42PM
  
  Current version of pixman: 0.24.0
  Before reporting problems, check http://wiki.x.org
  to make sure that you have the latest version.
  Markers: (--) probed, (**) from config file, (==) default setting,
  (++) from command line, (!!) notice, (II) informational,
  (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
  (==) Log file: /var/log/Xorg.0.log, Time: Tue Nov 29 21:00:16 2011
  (==) Using config file: /etc/X11/xorg.conf
  (==) Using system config directory /usr/share/X11/xorg.conf.d
  (EE) Failed to load module dri (module does not exist, 0)
  (EE) Failed to load module dri2 (module does not exist, 0)
  (EE) NVIDIA: Failed to load module dri2 (module does not exist, 0)
  [dix] Could not init font path element unix/:7100, removing from list!
  which: no keychain in
  
  (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3:/usr/local/freeswitch/bin:/usr/sbin:/sbin:/home/covici/bin)
  /etc/X11/xinit/xinitrc: line 59: twm: command not found
  /etc/X11/xinit/xinitrc: line 63: exec: xterm: not found
  xinit: connection to X server lost
  
  waiting for X server to shut down Server terminated successfully
  (0). Closing log file.
  
  I am not sure why this is happening.
 
 You don't have twm and xterm installed. But that's just the default to
 start for X11. Edit ~/.xinitrc and put only the following in it:
 exec gnome-session
 Make sure that you have dbus started.
 

OK, it did seem to start, but sound is disabled and it started orca
several times -- and orca is my screen reader, so I could not tell much
from that.

Here is what came through the terminal:

xauth:  file /home/covici/.serverauth.28940 does not exist


X.Org X Server 1.11.2
Release Date: 2011-11-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32-gentoo-r2 x86_64 Gentoo
Current Operating System: Linux ccs.covici.com 2.6.32-gentoo-r2 #3 SMP
Sat Apr 9 23:17:27 EDT 2011 x86_64
Kernel command line: BOOT_IMAGE=2.6.32-gentoo ro root=100 init=/linuxrc
ramdisk=8192 real_root=/dev/mapper/linux--files-64--root udev
video=uvesafb:1280x1024 speakup.synth=spkout vmalloc=256M dolvm
Build Date: 27 November 2011  05:14:42PM

Current version of pixman: 0.24.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Wed Nov 30 09:56:27 2011
(==) Using config file: /etc/X11/xorg.conf
(==) Using system config directory /usr/share/X11/xorg.conf.d
(EE) Failed to load module dri (module does not exist, 0)
(EE) Failed to load module dri2 (module does not exist, 0)
(EE) NVIDIA: Failed to load module dri2 (module does not exist, 0)
[dix] Could not init font path element unix/:7100, removing from list!
GNOME_KEYRING_CONTROL=/tmp/keyring-5SzLWj
GPG_AGENT_INFO=/tmp/keyring-5SzLWj/gpg:0:1
GNOME_KEYRING_CONTROL=/tmp/keyring-5SzLWj
GPG_AGENT_INFO=/tmp/keyring-5SzLWj/gpg:0:1
GNOME_KEYRING_CONTROL=/tmp/keyring-5SzLWj
GPG_AGENT_INFO=/tmp/keyring-5SzLWj/gpg:0:1
GNOME_KEYRING_CONTROL=/tmp/keyring-5SzLWj
GPG_AGENT_INFO=/tmp/keyring-5SzLWj/gpg:0:1
SSH_AUTH_SOCK=/tmp/keyring-5SzLWj/ssh
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
Window manager warning: Failed to load theme Clearlooks: Failed to
find a valid file for theme Clearlooks

Unable to open desktop file epiphany.desktop for panel launcher
Unable to open desktop file evolution.desktop for panel launcher
Failed to play sound: Sound disabled
Initializing nautilus-gdu extension

(nautilus:29042): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed



-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



[gentoo-user] Full disk encryption

2011-11-30 Thread czernitko
Hello!
I would like to set up an encrypted partition for my /home directories on
Gentoo Hardened. Which approach do you recommend?
Thanks, Peter


Re: [gentoo-user] Full disk encryption

2011-11-30 Thread Neil Bothwick
On Wed, 30 Nov 2011 16:19:18 +0100, czernitko wrote:

 I would like to set up an encrypted partition for my /home directories
 on Gentoo Hardened. Which approach do you recommend?

Do you want a single encrypted filesystem, or separately encrypted home
directories for each user. for the former, emerge cryptsetup, use it to
create the encrypted block device and set it up in /etc/conf.d/dmcrypt.

For individually encrypted home directories, using ecryptfs on top of a
standard filesystem, as used by Ubuntu, is probably the best way.


-- 
Neil Bothwick

You want us to do WHAT? - Ancient Chinese wall engineer.


signature.asc
Description: PGP signature


Re: [gentoo-user] Full disk encryption

2011-11-30 Thread czernitko
Hello, thanks for your response, Neil!
As for dmcrypt usage, what do you think about truecrypt or pgp whole disk
encryption as alternatives to dmcrypt?
I would like to have only one partition with all home directories on it,
and I would like to avoid usage of initrd as I don't use it now and I would
like to keep it that way if possible.

Peter


2011/11/30 Neil Bothwick n...@digimed.co.uk

 On Wed, 30 Nov 2011 16:19:18 +0100, czernitko wrote:

  I would like to set up an encrypted partition for my /home directories
  on Gentoo Hardened. Which approach do you recommend?

 Do you want a single encrypted filesystem, or separately encrypted home
 directories for each user. for the former, emerge cryptsetup, use it to
 create the encrypted block device and set it up in /etc/conf.d/dmcrypt.

 For individually encrypted home directories, using ecryptfs on top of a
 standard filesystem, as used by Ubuntu, is probably the best way.


 --
 Neil Bothwick

 You want us to do WHAT? - Ancient Chinese wall engineer.



Re: [gentoo-user] Full disk encryption

2011-11-30 Thread Felix Kuperjans
Hello Peter,

dmcrypt works perfectly without initrd as long as you do not encrypt the
root filesystem.

So for encrypted home directories, you can just create and use a LUKS
volume with dmcrypt (AFAIK the fastest and easy-to-use way).

Regarding other techniques like gpg or truecrypt, you should keep in
mind, that dmcrypt works directly in the kernelspace, so it may be a lot
faster with the same encryption strength (but it don't know any
benchmark about that).

Regards,
Felix

Am 30.11.2011 16:40, schrieb czernitko:
 Hello, thanks for your response, Neil!
 As for dmcrypt usage, what do you think about truecrypt or pgp whole
 disk encryption as alternatives to dmcrypt?
 I would like to have only one partition with all home directories on
 it, and I would like to avoid usage of initrd as I don't use it now
 and I would like to keep it that way if possible.

 Peter


 2011/11/30 Neil Bothwick n...@digimed.co.uk mailto:n...@digimed.co.uk

 On Wed, 30 Nov 2011 16:19:18 +0100, czernitko wrote:

  I would like to set up an encrypted partition for my /home
 directories
  on Gentoo Hardened. Which approach do you recommend?

 Do you want a single encrypted filesystem, or separately encrypted
 home
 directories for each user. for the former, emerge cryptsetup, use
 it to
 create the encrypted block device and set it up in
 /etc/conf.d/dmcrypt.

 For individually encrypted home directories, using ecryptfs on top
 of a
 standard filesystem, as used by Ubuntu, is probably the best way.


 --
 Neil Bothwick

 You want us to do WHAT? - Ancient Chinese wall engineer.




Re: [gentoo-user] Full disk encryption

2011-11-30 Thread czernitko
Ok, it seems I'll stick with dmcrypt using
http://en.gentoo-wiki.com/wiki/DM-Crypt.
Thanks for your responses guys!
Peter

2011/11/30 Felix Kuperjans fe...@desaster-games.com

  Hello Peter,

 dmcrypt works perfectly without initrd as long as you do not encrypt the
 root filesystem.

 So for encrypted home directories, you can just create and use a LUKS
 volume with dmcrypt (AFAIK the fastest and easy-to-use way).

 Regarding other techniques like gpg or truecrypt, you should keep in mind,
 that dmcrypt works directly in the kernelspace, so it may be a lot faster
 with the same encryption strength (but it don't know any benchmark about
 that).

 Regards,
 Felix .

 Am 30.11.2011 16:40, schrieb czernitko:

 Hello, thanks for your response, Neil!
 As for dmcrypt usage, what do you think about truecrypt or pgp whole disk
 encryption as alternatives to dmcrypt?
 I would like to have only one partition with all home directories on it,
 and I would like to avoid usage of initrd as I don't use it now and I would
 like to keep it that way if possible.

 Peter


 2011/11/30 Neil Bothwick n...@digimed.co.uk

 On Wed, 30 Nov 2011 16:19:18 +0100, czernitko wrote:

  I would like to set up an encrypted partition for my /home directories
  on Gentoo Hardened. Which approach do you recommend?

  Do you want a single encrypted filesystem, or separately encrypted home
 directories for each user. for the former, emerge cryptsetup, use it to
 create the encrypted block device and set it up in /etc/conf.d/dmcrypt.

 For individually encrypted home directories, using ecryptfs on top of a
 standard filesystem, as used by Ubuntu, is probably the best way.


 --
 Neil Bothwick

 You want us to do WHAT? - Ancient Chinese wall engineer.





[gentoo-user] Re: Full disk encryption

2011-11-30 Thread Jack Byer
czernitko wrote:


 I would like to have only one partition with all home directories on it,
 and I would like to avoid usage of initrd as I don't use it now and I
 would like to keep it that way if possible.

You don't need an initramfs but you might want to reconsider not using one 
at some point. I avoided them for a long time but when I wanted to do whole 
disk encrypted I learned how to make my own (not particularly difficult) and 
later started using dracut which basically just works.




Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread Dale

Jack Byer wrote:

czernitko wrote:



I would like to have only one partition with all home directories on it,
and I would like to avoid usage of initrd as I don't use it now and I
would like to keep it that way if possible.

You don't need an initramfs but you might want to reconsider not using one
at some point. I avoided them for a long time but when I wanted to do whole
disk encrypted I learned how to make my own (not particularly difficult) and
later started using dracut which basically just works.






Did you use a howto for Dracut?  If so, have a link you could post?  I 
tried making a init thingy and after about 20 failed reboots, I scraped 
the idea.  I was trying to follow the howto on the Gentoo wiki I think.  
The unofficial wiki.


Thanks.

Dale

:-)  :-)

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




Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread czernitko
Yup, establishing encrypted partition for /home was easy as a pie using
cryptsetup. I was considering using truecrypt as it offers multiplatform
support, so I could access encrypted partition even from my dualbooted
windoze, but I didn't want to put effort into something not as well
documented (how-toed) as dmcrypt.
As for initrd, I believe it has a lot of advantages, but as long as I can
avoid it, I don't see any reason why to spend time learning that stuff and
making my kernel deployment more complicated. I know that one day I will
have to learn that stuff. But as far as it is not today, it makes my day
even better :)

Thanks for all your responses!

Peter


Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread Neil Bothwick
On Wed, 30 Nov 2011 12:31:00 -0600, Dale wrote:

 Did you use a howto for Dracut?  If so, have a link you could post?  I 
 tried making a init thingy and after about 20 failed reboots, I scraped 
 the idea.  I was trying to follow the howto on the Gentoo wiki I
 think.  

That worked for me (dracut didn't). If it fails, make sure you have set
ity to drop you into a rescue shell as described on the wiki. Adding a
few echo and ls commands to the init script helps too.


-- 
Neil Bothwick

Blessed be the pessimist for he hath made backups.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread Aljosha Papsch
Am Mittwoch, den 30.11.2011, 19:32 +0100 schrieb czernitko:
 Yup, establishing encrypted partition for /home was easy as a pie
 using cryptsetup. I was considering using truecrypt as it offers
 multiplatform support, so I could access encrypted partition even from
 my dualbooted windoze, but I didn't want to put effort into something
 not as well documented (how-toed) as dmcrypt.

You can use FreeOTFE[0] for that. I don't use Windows, so I can't tell
whether you need to install the filesystem driver for Windows.

[0] http://www.freeotfe.org/




[gentoo-user] Re: Re: Full disk encryption

2011-11-30 Thread Jack Byer
Dale wrote:

 Did you use a howto for Dracut?  If so, have a link you could post?  I
 tried making a init thingy and after about 20 failed reboots, I scraped
 the idea.  I was trying to follow the howto on the Gentoo wiki I think.
 The unofficial wiki.
 

I had some difficulties because the way I was doing things before with my 
homebrew solution was... non-standard.

The problem areas that I remember from the transition were: setting the USE 
flags correctly to build the modules I needed, initially confusing 
dracutmodules and add_dracutmodules in dracut.conf (actually you probably 
don't even need to edit that file at all), making sure to have a sane 
/etc/fstab line for the root file system and passing the right root= kernel 
command line. root=UUID=... works the best in my experience.




Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread Dale

Neil Bothwick wrote:

On Wed, 30 Nov 2011 12:31:00 -0600, Dale wrote:


Did you use a howto for Dracut?  If so, have a link you could post?  I
tried making a init thingy and after about 20 failed reboots, I scraped
the idea.  I was trying to follow the howto on the Gentoo wiki I
think.

That worked for me (dracut didn't). If it fails, make sure you have set
ity to drop you into a rescue shell as described on the wiki. Adding a
few echo and ls commands to the init script helps too.




I did.  It failed so badly even the rescue didn't work.  I did get some 
flashing lights and introduced to the reset button tho.  We all know 
what happened the last time I had to hit the reset button.  :/


Dale

:-)  :-)

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




Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread czernitko
I wonder whether it is posible to simply resize the dm-crypt encrypted
partition? Or do I have to create new, bigger partition with required size
and move the data?

Peter


Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread David W Noon
On Wed, 30 Nov 2011 12:31:00 -0600, Dale wrote about Re: [gentoo-user]
Re: Full disk encryption:

[snip]
 I tried making a init thingy and after about 20 failed reboots, I
 scraped the idea.  I was trying to follow the howto on the Gentoo
 wiki I think. The unofficial wiki.

I posted a couple of months ago that you should watch this space for a
small and simple initramfs solution.  That still applies.

I have a working initramfs layout, but currently it is too large
(32MiB) for my /boot partition.  The problem package is e2fsprogs, as
it requires dynamic linkage and, consequently, a full-sized glibc.
This sucks, so I need to patch the Makefile(s) to build a more sensible
set of executables for an initramfs.

All of the code I have written myself compiles and links statically,
typically using klibc, so my finished code is tiny.

I haven't been working on this for a couple of months now, because the
need for it is not really pressing.  The assertion that udev would
require /usr and /var (plus the kitchen sink) really soon is unfounded,
at least for those of us who run more elderly hardware.

Anyhow, when I'm finished there will be a zsh script that will build an
initramfs image, and even install it to /boot, with a single command.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwn...@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread Neil Bothwick
On Wed, 30 Nov 2011 21:19:51 +0100, czernitko wrote:

 I wonder whether it is posible to simply resize the dm-crypt encrypted
 partition? Or do I have to create new, bigger partition with required
 size and move the data?

Enlarge the partition then use cryptsetup resize to enlarge the encrypted
device (man cryptsetup has the details). Then resize the filesystem to
fit.


-- 
Neil Bothwick

Keyboard: (n.) a device used by programmers to write software for a mouse
or joystick and by operators for playing games such as 'word processing.'


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread Neil Bothwick
On Wed, 30 Nov 2011 20:28:28 +, David W Noon wrote:

 I have a working initramfs layout, but currently it is too large
 (32MiB) for my /boot partition.  The problem package is e2fsprogs, as  
 it requires dynamic linkage and, consequently, a full-sized glibc.

Why do you need e2fsprogs on an initramfs?


-- 
Neil Bothwick

mpeg@11..


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread David W Noon
On Wed, 30 Nov 2011 21:47:33 +, Neil Bothwick wrote about Re:
[gentoo-user] Re: Full disk encryption:

 On Wed, 30 Nov 2011 20:28:28 +, David W Noon wrote:
 
  I have a working initramfs layout, but currently it is too large
  (32MiB) for my /boot partition.  The problem package is e2fsprogs,
  as it requires dynamic linkage and, consequently, a full-sized
  glibc.
 
 Why do you need e2fsprogs on an initramfs?

One needs e2fsck to do a preen prior to mounting the required
volume(s).
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwn...@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread Neil Bothwick
On Wed, 30 Nov 2011 22:07:35 +, David W Noon wrote:

  Why do you need e2fsprogs on an initramfs?  
 
 One needs e2fsck to do a preen prior to mounting the required
 volume(s).

Why not mount root read-only, just like in a non-initramfs system?

Any e2fsck commands will be run during the boot runlevel, before
remounting root rw.


-- 
Neil Bothwick

Top Oxymorons Number 21: Now, then ...


signature.asc
Description: PGP signature


Re: [gentoo-user] USB Drive Mount

2011-11-30 Thread sean

On 11/27/2011 04:02 PM, Mark Knecht wrote:





I have something like 10 USB drives here at home. 9 of those drives
works perfectly in 5 machines in the house. 1 drive works when
attached to 4 of the machines but produces a similar error when
attached to my most expensive i7-980x machine.

I've never determined what causes it and have sort of decided it's
just some weird incompatibility...

- Mark



Mark,

	I swapped to a very short USB cable to connect the drives to my system. 
It cured the problem here.


Sean



Re: [gentoo-user] USB Drive Mount

2011-11-30 Thread Mark Knecht
On Wed, Nov 30, 2011 at 3:36 PM, sean tech.j...@myfairpoint.net wrote:
 On 11/27/2011 04:02 PM, Mark Knecht wrote:



 I have something like 10 USB drives here at home. 9 of those drives
 works perfectly in 5 machines in the house. 1 drive works when
 attached to 4 of the machines but produces a similar error when
 attached to my most expensive i7-980x machine.

 I've never determined what causes it and have sort of decided it's
 just some weird incompatibility...

 - Mark


 Mark,

        I swapped to a very short USB cable to connect the drives to my
 system. It cured the problem here.

                        Sean


That's good news. Is that the external USB cable or something inside a
drive case?

I'd suspect something like a slightly suspect USB controller
somewhere. Changing the cable probably shifted the electrical
parameters on the cable just enough that it started working.

I should give that a try here and see if I get so lucky!

Cheers,
Mark



[gentoo-user] CLI DVD copy?

2011-11-30 Thread Mark Knecht
I've got 1 DVD that for some reason fails to rip using Handbrake. I
then tried it in dvd::rip and it said it couldn't read the table of
contents. However after all of that the DVD plays fine in xine as well
as on my DVD player so I doubt there is anything truly wrong with the
DVD itself.

I was considering making a copy of this DVD to keep for bug testing in
the future. I'm wondering how to make a copy of a DVD movie at the
command line? All the things I'm finding in Google point to dvd::rip
or other GUI apps. I tried a simple dd copy, ala

dd if=/dev/dvd of=Movie.iso

but that fails also.

Thanks,
Mark



Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread David W Noon
On Wed, 30 Nov 2011 23:26:56 +, Neil Bothwick wrote about Re:
[gentoo-user] Re: Full disk encryption:

 On Wed, 30 Nov 2011 22:07:35 +, David W Noon wrote:
 
   Why do you need e2fsprogs on an initramfs?  
  
  One needs e2fsck to do a preen prior to mounting the required
  volume(s).
 
 Why not mount root read-only, just like in a non-initramfs system?
 
 Any e2fsck commands will be run during the boot runlevel, before
 remounting root rw.

Unfortunately, the system does not work that way.  When running inside
an initramfs, one cannot load executable content from mount points --
only from within the initramfs.  So, while it is perfectly possible to
do ls /mnt/root/sbin/e2fsck (assuming the root partition has been
mounted ro as /mnt/root), it is not possible to load and execute that
program. [And, yes, I have adjusted the PATH and LD_LIBRARY_PATH shell
variables to address the program and library directories on the mounted
root partition.] After performing a switch_root to the actual root
partition, this restriction is lifted.

When running without (or with the default) initramfs, the root
partition itself becomes the active filesystem, so loading programs
from /sbin or /bin and libraries from /lib works as expected.

This might be one of Dale's problems, if he was trying to use commands
from the root filesystem within the initramfs.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwn...@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread Dale

David W Noon wrote:
This might be one of Dale's problems, if he was trying to use commands 
from the root filesystem within the initramfs. 


I don't think that was the issue.  I had nano, busybox and that was it.  
Basically, I just wanted it to be able to load enough that it could boot 
even if /usr and /var was on a separate partition.  Nothing real fancy, 
just the basics.  I was going to save the fancy stuff for later.


Still, it didn't work.  I fixed one error only to have another.  The 
last error, I couldn't find a fix for.  I don't even recall what it was 
now.


Dale

:-)  :-)

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




Re: [gentoo-user] CLI DVD copy?

2011-11-30 Thread Paul Hartman
On Wed, Nov 30, 2011 at 5:53 PM, Mark Knecht markkne...@gmail.com wrote:
 I've got 1 DVD that for some reason fails to rip using Handbrake. I
 then tried it in dvd::rip and it said it couldn't read the table of
 contents. However after all of that the DVD plays fine in xine as well
 as on my DVD player so I doubt there is anything truly wrong with the
 DVD itself.

 I was considering making a copy of this DVD to keep for bug testing in
 the future. I'm wondering how to make a copy of a DVD movie at the
 command line? All the things I'm finding in Google point to dvd::rip
 or other GUI apps. I tried a simple dd copy, ala

 dd if=/dev/dvd of=Movie.iso

 but that fails also.

dvdunauthor /dev/dvd
(from media-video/dvdauthor)

or

vobcopy -m /dev/dvd
(from media-video/vobcopy)

one of those should do the trick



Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread Michael Mol
Stupid question...Would using LZMA and a tarball reduce the size of your
initeamfs?

ZZ
On Nov 30, 2011 7:30 PM, David W Noon dwn...@ntlworld.com wrote:

 On Wed, 30 Nov 2011 23:26:56 +, Neil Bothwick wrote about Re:
 [gentoo-user] Re: Full disk encryption:

  On Wed, 30 Nov 2011 22:07:35 +, David W Noon wrote:
 
Why do you need e2fsprogs on an initramfs?
  
   One needs e2fsck to do a preen prior to mounting the required
   volume(s).
 
  Why not mount root read-only, just like in a non-initramfs system?
 
  Any e2fsck commands will be run during the boot runlevel, before
  remounting root rw.

 Unfortunately, the system does not work that way.  When running inside
 an initramfs, one cannot load executable content from mount points --
 only from within the initramfs.  So, while it is perfectly possible to
 do ls /mnt/root/sbin/e2fsck (assuming the root partition has been
 mounted ro as /mnt/root), it is not possible to load and execute that
 program. [And, yes, I have adjusted the PATH and LD_LIBRARY_PATH shell
 variables to address the program and library directories on the mounted
 root partition.] After performing a switch_root to the actual root
 partition, this restriction is lifted.

 When running without (or with the default) initramfs, the root
 partition itself becomes the active filesystem, so loading programs
 from /sbin or /bin and libraries from /lib works as expected.

 This might be one of Dale's problems, if he was trying to use commands
 from the root filesystem within the initramfs.
 --
 Regards,

 Dave  [RLU #314465]
 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
 dwn...@ntlworld.com (David W Noon)
 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



Re: [gentoo-user] CLI DVD copy?

2011-11-30 Thread Frank Steinmetzger
On Wed, Nov 30, 2011 at 03:53:10PM -0800, Mark Knecht wrote:

 I was considering making a copy of this DVD to keep for bug testing in
 the future. I'm wondering how to make a copy of a DVD movie at the
 command line? All the things I'm finding in Google point to dvd::rip
 or other GUI apps. I tried a simple dd copy, ala
 
 dd if=/dev/dvd of=Movie.iso

vobcopy comes to mind. And if that fails also, you could try ddrescue and then
perhaps vobcopy on the created copy.
-- 
Gruß | Greetings | Qapla'
I forbid any use of my email addresses with Facebook services.

I’m not bothered by dreaming in English.
What pisses me off are the subtitles.



Re: [gentoo-user] Re: Full disk encryption

2011-11-30 Thread David W Noon
On Wed, 30 Nov 2011 19:39:11 -0500, Michael Mol wrote about Re:
[gentoo-user] Re: Full disk encryption:

[snip]
Stupid question...Would using LZMA and a tarball reduce the size of
your initeamfs?

Not really.  I am already using gzip -9, and binaries don't compress
especially well.  Moreover, the archiver *must* be cpio, not tar.
-- 
Regards,

Dave  [RLU #314465]
==
dwn...@ntlworld.com (David W Noon)
==


signature.asc
Description: PGP signature


[gentoo-user] Changing names of LOTS of files, adding to them actually.

2011-11-30 Thread Dale

Greets,

I ran into a problem.  I been downloading a lot of TV shows.  I forgot 
to put a sort of important part in the names.  This is what I have with 
the full path:


/data/Movies/TV_Series/Person of Interest/Season 1, Episode 1 - Pilot.mp4

This is what I need it to be:

/data/Movies/TV_Series/Person of Interest/Person of Interest - Season 1, 
Episode 1 - Pilot.mp4


Basically, I need to add the name of the show to the name of the file.  
They will all be added to the front of the names.  They also almost all 
contain spaces, which means some fancy footwork with the \.


Is there a way to do this?  I have room to copy them to another 
directory if needed.  I would sort of actually prefer it that way since 
if it messes up, I got the originals at least.


Sorry I'm not real good at gawk, sed and all those things.  I suspect 
those will be used tho.  I am familiar with | and grep tho.  ;-)


Thoughts?

Dale

:-)  :-)

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




Re: [gentoo-user] Changing names of LOTS of files, adding to them actually.

2011-11-30 Thread Frank Steinmetzger
On Wed, Nov 30, 2011 at 07:49:26PM -0600, Dale wrote:

 I ran into a problem.  I been downloading a lot of TV shows.  I forgot 
 to put a sort of important part in the names.  This is what I have with 
 the full path:
 
 /data/Movies/TV_Series/Person of Interest/Season 1, Episode 1 - Pilot.mp4
 
 This is what I need it to be:
 
 /data/Movies/TV_Series/Person of Interest/Person of Interest - Season 1, 
 Episode 1 - Pilot.mp4
 
 Basically, I need to add the name of the show to the name of the file.  
 They will all be added to the front of the names.  They also almost all 
 contain spaces, which means some fancy footwork with the \.
 
 Is there a way to do this?  I have room to copy them to another 
 directory if needed.  I would sort of actually prefer it that way since 
 if it messes up, I got the originals at least.
 
 Sorry I'm not real good at gawk, sed and all those things.  I suspect 
 those will be used tho.  I am familiar with | and grep tho.  ;-)
 
 Thoughts?

I can’t remember right now what graphical environment you use, but for KDE
there is KRename. But if you want it quick and efficient, I suggest
renameutils. You give it a list of files and it opens $EDITOR containing two
columns with the list. The first is the old name, and in the second you can
enter the new name.

It’s basically a mass renamer for the console, powered by your favorite
features of your favorite editor. With the recursive flag -R you can even do
what you want for many dirs at once and then insert the Series name using
search and replace with regular expressions.

But your particular example could be done simply with:

cd /data/Movies/TV_Series/Person of Interest
for i in *.mp4; do mv -n $i Person of Interest - $i; done
-- 
Gruß | Greetings | Qapla'
I forbid any use of my email addresses with Facebook services.

The advantage of smartness is that one can pretend to be stupid.
The opposite is far more difficult.


pgpWw8AuFv2mi.pgp
Description: PGP signature


Re: [gentoo-user] Changing names of LOTS of files, adding to them actually.

2011-11-30 Thread Francisco Ares
I use the following script to remove parts of downloaded videos, I guess it
wont't be hard to figure out how to change it to your needs. It also
creates a text file with the name of the file and, expecting it to be a
video file, it uses midentify, part of the mplayer package, to read the
duration of the video in a form that LibreOffice is able to import directly.



#! /bin/bash
for i in *unwantedString.???   # it can be a MP4 or a FLV
do
   if [ $i != *unwantedString.??? ]   # this checks if the list is empty
   then
   j=`echo $i | sed s/\ \-\ unwantedString//`
   # echo $j
   mv $i $j
   fi
done

for i in *.mp4 *.flv  # this removes duplicated file extension
do
   if [ $i != *.mp4 ]  [ $i != *.flv ]
   then
  j=`echo $i | sed -e s/\.mp4\.mp4/\.mp4/ -e s/\.flv\.flv/\.flv/`
  # echo $j
  if [ $i != $j ]
  then
 mv $i $j
  fi
   fi
done

if [ -e contents.txt ]
then
   rm contents.txt
fi
for i in *.mp4 *.flv
do
   if [ $i != *.mp4 ]  [ $i != *.flv ]
   then
  j=`midentify $i | grep ID_LENGTH | cut -d\= -f 2`
  k=`echo $i | sed -e s/\.mp4//g -e s/\.flv//g`
  echo -e $k \\t 00:00:`echo $j | cut -d\. -f1`,`echo $j | cut -d \.
-f2`  contents.txt
   fi
done

Hope it helps
Francisco




On Wed, Nov 30, 2011 at 11:49 PM, Dale rdalek1...@gmail.com wrote:

 Greets,

 I ran into a problem.  I been downloading a lot of TV shows.  I forgot to
 put a sort of important part in the names.  This is what I have with the
 full path:

 /data/Movies/TV_Series/Person of Interest/Season 1, Episode 1 - Pilot.mp4

 This is what I need it to be:

 /data/Movies/TV_Series/Person of Interest/Person of Interest - Season 1,
 Episode 1 - Pilot.mp4

 Basically, I need to add the name of the show to the name of the file.
  They will all be added to the front of the names.  They also almost all
 contain spaces, which means some fancy footwork with the \.

 Is there a way to do this?  I have room to copy them to another directory
 if needed.  I would sort of actually prefer it that way since if it messes
 up, I got the originals at least.

 Sorry I'm not real good at gawk, sed and all those things.  I suspect
 those will be used tho.  I am familiar with | and grep tho.  ;-)

 Thoughts?

 Dale

 :-)  :-)

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





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


[gentoo-user] Re: CLI DVD copy?

2011-11-30 Thread Grant Edwards
On 2011-11-30, Mark Knecht markkne...@gmail.com wrote:

 I was considering making a copy of this DVD to keep for bug testing
 in the future. I'm wondering how to make a copy of a DVD movie at the
 command line? All the things I'm finding in Google point to dvd::rip
 or other GUI apps. I tried a simple dd copy, ala

 dd if=/dev/dvd of=Movie.iso

 but that fails also.

That will only work with unencrypted DVDs.

I use dvdbackup, and it hasn't failed me yet.

-- 
Grant






Re: [gentoo-user] Changing names of LOTS of files, adding to them actually.

2011-11-30 Thread bill.longman
Take a look at rename, Dale.Its usage syntax wasn't obvious to me at first but after using it a few times I got the hang of it.Bill-- Sent from my HP TouchPad which is really braindead when trying not to toppost.On Nov 30, 2011 5:50 PM, Dale rdalek1...@gmail.com wrote: Greets,

I ran into a problem.  I been downloading a lot of TV shows.  I forgot 
to put a sort of important part in the names.  This is what I have with 
the full path:

/data/Movies/TV_Series/Person of Interest/Season 1, Episode 1 - Pilot.mp4

This is what I need it to be:

/data/Movies/TV_Series/Person of Interest/Person of Interest - Season 1, 
Episode 1 - Pilot.mp4

Basically, I need to add the name of the show to the name of the file.  
They will all be added to the front of the names.  They also almost all 
contain spaces, which means some fancy footwork with the \.

Is there a way to do this?  I have room to copy them to another 
directory if needed.  I would sort of actually prefer it that way since 
if it messes up, I got the originals at least.

Sorry I'm not real good at gawk, sed and all those things.  I suspect 
those will be used tho.  I am familiar with | and grep tho.  ;-)

Thoughts?

Dale

:-)  :-)

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




Re: [gentoo-user] Changing names of LOTS of files, adding to them actually.

2011-11-30 Thread Pandu Poluan
On Dec 1, 2011 8:54 AM, Dale rdalek1...@gmail.com wrote:

 Greets,

 I ran into a problem.  I been downloading a lot of TV shows.  I forgot to
put a sort of important part in the names.  This is what I have with the
full path:

 /data/Movies/TV_Series/Person of Interest/Season 1, Episode 1 - Pilot.mp4

 This is what I need it to be:

 /data/Movies/TV_Series/Person of Interest/Person of Interest - Season 1,
Episode 1 - Pilot.mp4

 Basically, I need to add the name of the show to the name of the file.
 They will all be added to the front of the names.  They also almost all
contain spaces, which means some fancy footwork with the \.

 Is there a way to do this?  I have room to copy them to another directory
if needed.  I would sort of actually prefer it that way since if it messes
up, I got the originals at least.

 Sorry I'm not real good at gawk, sed and all those things.  I suspect
those will be used tho.  I am familiar with | and grep tho.  ;-)

 Thoughts?


'find' and 'mv' should do the job.  With some help from 'dirname' and
'basename'.  E. g.

find $PATHTOMOVIES -name *. mp4 -exec mv {} \$(dirname {})/$(basename
$(dirname {})) - $(basename {})

Not tested, though. So you'd better use 'echo' instead of 'mv' for a dry
run.

Rgds,


Re: [gentoo-user] Changing names of LOTS of files, adding to them actually.

2011-11-30 Thread Francisco Ares
Sorry, did not read your message to the end.

So the sixth line on that script, on your case, instead of:

  j=`echo $i | sed s/\ \-\ unwantedString//`

should be:

  j=Person of Interest - $i

I guess that's it. You will have to open a console at the directory where
your movies are in.

Francisco



On Thu, Dec 1, 2011 at 12:19 AM, Francisco Ares fra...@gmail.com wrote:

 I use the following script to remove parts of downloaded videos, I guess
 it wont't be hard to figure out how to change it to your needs. It also
 creates a text file with the name of the file and, expecting it to be a
 video file, it uses midentify, part of the mplayer package, to read the
 duration of the video in a form that LibreOffice is able to import directly.



 #! /bin/bash
 for i in *unwantedString.???   # it can be a MP4 or a FLV
 do
if [ $i != *unwantedString.??? ]   # this checks if the list is
 empty
then
j=`echo $i | sed s/\ \-\ unwantedString//`
# echo $j
mv $i $j
fi
 done

 for i in *.mp4 *.flv  # this removes duplicated file extension
 do
if [ $i != *.mp4 ]  [ $i != *.flv ]
then
   j=`echo $i | sed -e s/\.mp4\.mp4/\.mp4/ -e s/\.flv\.flv/\.flv/`
   # echo $j
   if [ $i != $j ]
   then
  mv $i $j
   fi
fi
 done

 if [ -e contents.txt ]
 then
rm contents.txt
 fi
 for i in *.mp4 *.flv
 do
if [ $i != *.mp4 ]  [ $i != *.flv ]
then
   j=`midentify $i | grep ID_LENGTH | cut -d\= -f 2`
   k=`echo $i | sed -e s/\.mp4//g -e s/\.flv//g`
   echo -e $k \\t 00:00:`echo $j | cut -d\. -f1`,`echo $j | cut -d \.
 -f2`  contents.txt
fi
 done

 Hope it helps
 Francisco




 On Wed, Nov 30, 2011 at 11:49 PM, Dale rdalek1...@gmail.com wrote:

 Greets,

 I ran into a problem.  I been downloading a lot of TV shows.  I forgot to
 put a sort of important part in the names.  This is what I have with the
 full path:

 /data/Movies/TV_Series/Person of Interest/Season 1, Episode 1 - Pilot.mp4

 This is what I need it to be:

 /data/Movies/TV_Series/Person of Interest/Person of Interest - Season 1,
 Episode 1 - Pilot.mp4

 Basically, I need to add the name of the show to the name of the file.
  They will all be added to the front of the names.  They also almost all
 contain spaces, which means some fancy footwork with the \.

 Is there a way to do this?  I have room to copy them to another directory
 if needed.  I would sort of actually prefer it that way since if it messes
 up, I got the originals at least.

 Sorry I'm not real good at gawk, sed and all those things.  I suspect
 those will be used tho.  I am familiar with | and grep tho.  ;-)

 Thoughts?

 Dale

 :-)  :-)

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





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




-- 
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] Changing names of LOTS of files, adding to them actually.

2011-11-30 Thread Pandu Poluan
On Dec 1, 2011 9:22 AM, Pandu Poluan pa...@poluan.info wrote:


 On Dec 1, 2011 8:54 AM, Dale rdalek1...@gmail.com wrote:
 
  Greets,
 
  I ran into a problem.  I been downloading a lot of TV shows.  I forgot
to put a sort of important part in the names.  This is what I have with the
full path:
 
  /data/Movies/TV_Series/Person of Interest/Season 1, Episode 1 -
Pilot.mp4
 
  This is what I need it to be:
 
  /data/Movies/TV_Series/Person of Interest/Person of Interest - Season
1, Episode 1 - Pilot.mp4
 
  Basically, I need to add the name of the show to the name of the file.
 They will all be added to the front of the names.  They also almost all
contain spaces, which means some fancy footwork with the \.
 
  Is there a way to do this?  I have room to copy them to another
directory if needed.  I would sort of actually prefer it that way since if
it messes up, I got the originals at least.
 
  Sorry I'm not real good at gawk, sed and all those things.  I suspect
those will be used tho.  I am familiar with | and grep tho.  ;-)
 
  Thoughts?
 

 'find' and 'mv' should do the job.  With some help from 'dirname' and
'basename'.  E. g.

 find $PATHTOMOVIES -name *. mp4 -exec mv {} \$(dirname
{})/$(basename $(dirname {})) - $(basename {})

 Not tested, though. So you'd better use 'echo' instead of 'mv' for a dry
run.


Whoopsies. I certainly must've made some mistakes with the escaping
there...

Oh well,  just write a short script containing this:

mv $1 $(dirname $1)/$(basename $(dirname $1)) - $(basename $1)

and feed that script (after chmod +x,  of course) to the -exec part of
find, e.g.

find ... -exec scriptname.sh {} \;

Rgds,


Re: [gentoo-user] Changing names of LOTS of files, adding to them actually.

2011-11-30 Thread Dale

Frank Steinmetzger wrote:

On Wed, Nov 30, 2011 at 07:49:26PM -0600, Dale wrote:


I ran into a problem.  I been downloading a lot of TV shows.  I forgot
to put a sort of important part in the names.  This is what I have with
the full path:

/data/Movies/TV_Series/Person of Interest/Season 1, Episode 1 - Pilot.mp4

This is what I need it to be:

/data/Movies/TV_Series/Person of Interest/Person of Interest - Season 1,
Episode 1 - Pilot.mp4

Basically, I need to add the name of the show to the name of the file.
They will all be added to the front of the names.  They also almost all
contain spaces, which means some fancy footwork with the \.

Is there a way to do this?  I have room to copy them to another
directory if needed.  I would sort of actually prefer it that way since
if it messes up, I got the originals at least.

Sorry I'm not real good at gawk, sed and all those things.  I suspect
those will be used tho.  I am familiar with | and grep tho.  ;-)

Thoughts?

I can’t remember right now what graphical environment you use, but for KDE
there is KRename. But if you want it quick and efficient, I suggest
renameutils. You give it a list of files and it opens $EDITOR containing two
columns with the list. The first is the old name, and in the second you can
enter the new name.

It’s basically a mass renamer for the console, powered by your favorite
features of your favorite editor. With the recursive flag -R you can even do
what you want for many dirs at once and then insert the Series name using
search and replace with regular expressions.

But your particular example could be done simply with:

cd /data/Movies/TV_Series/Person of Interest
for i in *.mp4; do mv -n $i Person of Interest - $i; done


Oh heck yea.  Krename did a wonderful job.  It renamed them in place.  I 
tested it on a small directory with just a few files at first.  This is 
cool.  I didn't know KDE had this and it wasn't installed either.


No grep, gawk or sed in the command line for this?  Wow.  I thought 
there would be at least a couple of those in there.  lol


Thanks for the info.  I didn't even think there would be a GUI for 
this.  o_O


Dale

:-)  :-)

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




[gentoo-user] Re: Re: Full disk encryption

2011-11-30 Thread Jack Byer
David W Noon wrote:

 I have a working initramfs layout, but currently it is too large
 (32MiB) for my /boot partition.  The problem package is e2fsprogs, as
 it requires dynamic linkage and, consequently, a full-sized glibc.
 This sucks, so I need to patch the Makefile(s) to build a more sensible
 set of executables for an initramfs.
 
 All of the code I have written myself compiles and links statically,
 typically using klibc, so my finished code is tiny.
 
 I haven't been working on this for a couple of months now, because the
 need for it is not really pressing.  The assertion that udev would
 require /usr and /var (plus the kitchen sink) really soon is unfounded,
 at least for those of us who run more elderly hardware.
 
 Anyhow, when I'm finished there will be a zsh script that will build an
 initramfs image, and even install it to /boot, with a single command.

When I made my own initramfs I was operating under the RAM and disk space 
are cheap assumption and did it the easiest way possible:

I included the *entirety* of /etc, /bin, /lib{32,64} and /sbin

Then I wrote a small bash script for /init

Throw the kernel and initramfs on a USB stick, install GRUB on said USB 
stick and call it a day. If anything breaks, well I've got all the command 
like repair tools included so it's no big deal to fix as long as the bash 
script sends me to a command line if it has any problems.




Re: [gentoo-user] Changing names of LOTS of files, adding to them actually.

2011-11-30 Thread Frank Steinmetzger
On Wed, Nov 30, 2011 at 06:22:18PM -0800, bill.long...@gmail.com wrote:

 […]
 Sent from my HP TouchPad which is really braindead when trying not to toppost.

…and at providing a plaintext version. Stupid modern fingery-touchy-swipey
gloss-only facebook interface devices.

(Nothing against you or you buying it, it’s just my observation on the general
course which modern technology is taking right now)
-- 
Gruß | Greetings | Qapla'
I forbid any use of my email addresses with Facebook services.

The situation is hopeless, but not serious.


pgpBummHlNh2c.pgp
Description: PGP signature


Re: [gentoo-user] Re: CLI DVD copy?

2011-11-30 Thread Mark Knecht
On Wed, Nov 30, 2011 at 6:20 PM, Grant Edwards
grant.b.edwa...@gmail.com wrote:
 On 2011-11-30, Mark Knecht markkne...@gmail.com wrote:

 I was considering making a copy of this DVD to keep for bug testing
 in the future. I'm wondering how to make a copy of a DVD movie at the
 command line? All the things I'm finding in Google point to dvd::rip
 or other GUI apps. I tried a simple dd copy, ala

 dd if=/dev/dvd of=Movie.iso

 but that fails also.

 That will only work with unencrypted DVDs.

 I use dvdbackup, and it hasn't failed me yet.

 --
 Grant

Thanks to all three of you for your answers. Seeing them I remember
Neil suggesting vobcopy when I was first looking into ripping DVDs to
play on my Kindle.

I need to study all the suggestions. If it wasn't clear, being that
this problem with handbrake crashing occurs when it attempts to rip a
physical CD I'll also want to determine how to recreate a new physical
CD that causes the same problem so that I can evaluate fixes to
handbrake whenever they come along.

Again, thanks for your inputs.

Cheers,
Mark



Re: [gentoo-user] Changing names of LOTS of files, adding to them actually.

2011-11-30 Thread Dale

Dale wrote:

Greets,

I ran into a problem.  I been downloading a lot of TV shows.  I forgot 
to put a sort of important part in the names.  This is what I have 
with the full path:


/data/Movies/TV_Series/Person of Interest/Season 1, Episode 1 - Pilot.mp4

This is what I need it to be:

/data/Movies/TV_Series/Person of Interest/Person of Interest - Season 
1, Episode 1 - Pilot.mp4


Basically, I need to add the name of the show to the name of the 
file.  They will all be added to the front of the names.  They also 
almost all contain spaces, which means some fancy footwork with the \.


Is there a way to do this?  I have room to copy them to another 
directory if needed.  I would sort of actually prefer it that way 
since if it messes up, I got the originals at least.


Sorry I'm not real good at gawk, sed and all those things.  I suspect 
those will be used tho.  I am familiar with | and grep tho.  ;-)


Thoughts?

Dale

:-)  :-)




I got them all changed, about 250 or so of them.  Thanks to *all* for 
the replies.  I got to save and review some of the command line ones 
too.  May learn something.  Sort of reminds me of my old Vic-20.  O_O


Thanks much.

Dale

:-)  :-)

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




Re: [gentoo-user] Re: Re: Full disk encryption

2011-11-30 Thread Dale

Jack Byer wrote:

Dale wrote:


Did you use a howto for Dracut?  If so, have a link you could post?  I
tried making a init thingy and after about 20 failed reboots, I scraped
the idea.  I was trying to follow the howto on the Gentoo wiki I think.
The unofficial wiki.


I had some difficulties because the way I was doing things before with my
homebrew solution was... non-standard.

The problem areas that I remember from the transition were: setting the USE
flags correctly to build the modules I needed, initially confusing
dracutmodules and add_dracutmodules in dracut.conf (actually you probably
don't even need to edit that file at all), making sure to have a sane
/etc/fstab line for the root file system and passing the right root= kernel
command line. root=UUID=... works the best in my experience.






I did change the USE flags for the packages it said to.  I think some 
things have changed or something, maybe openrc?, and the script I was 
copying and working with just didn't work.  Maybe it needs updating or 
something.  I'm hoping to see a up-to-date howto or someone will post a 
good up-to-date howto for dracut.  Something even a idiot could follow.  
I think it will work for me then.  lol


Dale

:-)  :-)

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




[gentoo-user] Re: Re: Re: Full disk encryption

2011-11-30 Thread Jack Byer
Dale wrote:

 Jack Byer wrote:
 Dale wrote:

 Did you use a howto for Dracut?  If so, have a link you could post?  I
 tried making a init thingy and after about 20 failed reboots, I scraped
 the idea.  I was trying to follow the howto on the Gentoo wiki I think.
 The unofficial wiki.

 I had some difficulties because the way I was doing things before with my
 homebrew solution was... non-standard.

 The problem areas that I remember from the transition were: setting the
 USE flags correctly to build the modules I needed, initially confusing
 dracutmodules and add_dracutmodules in dracut.conf (actually you probably
 don't even need to edit that file at all), making sure to have a sane
 /etc/fstab line for the root file system and passing the right root=
 kernel command line. root=UUID=... works the best in my experience.



 
 
 I did change the USE flags for the packages it said to.  I think some
 things have changed or something, maybe openrc?, and the script I was
 copying and working with just didn't work.  Maybe it needs updating or
 something.  I'm hoping to see a up-to-date howto or someone will post a
 good up-to-date howto for dracut.  Something even a idiot could follow.
 I think it will work for me then.  lol
 
 Dale
 
 :-)  :-)

 
I can tell you how mine is set up.

emerge -v dracut

These are the packages that would be merged, in order:

[ebuild   R   ~] sys-kernel/dracut-013-r2  USE=-debug (-selinux) 
DRACUT_MODULES=btrfs crypt lvm -biosdevname -caps -crypt-gpg -dmraid -
dmsquash-live -gensplash -iscsi -livenet -mdraid -multipath -nbd -nfs -
plymouth -syslog -xen 0 kB

I don't use any of the other modules so all I enable are btrfs, crypt and 
lvm.

/etc/dracut.conf has no changes from the default except for the line:

add_dracutmodules+=crypt dm lvm

but I'm about 80% sure even that isn't necessary and you could just leave 
the default values alone. One of these days I'll get around to testing that.

I make an initramfs with the following command:

dracut --lzma hostname.dracut.lzma kernel version

(obviously change --lzma to whatever type of compression your kernel 
expects 
to use and name the file whatever you want. Make sure to include the kernel 
version just like it appears in your /lib/modules/ directory so that dracut 
includes the correct kernel modules)

Then I make grub.conf look something like this:

root (hd0,0)
kernel /hostname root=UUID=08b00d7f-b633-4c03-98fe-dd5942a8fb7e 
initrd /hostname.dracut.lzma

I like to name my kernels and initramfs files by the hostname of the 
computer since I have three that I manage but use whatever you want and 
just 
make sure you put the right filenames in grub.conf.

You can obtain the UUID of your root filesystem by a number of methods, but 
the easiest is to use ls -l /dev/disks/by-uuid/

That's really all there is to it. Dracut will boot up and load the modules 
it is compiled with and search through the disks, logical volumes, and 
dmcrypt containers until it finds a filesystem with the UUID you specify. 
Once it finds the root filesystem it mounts it with whatever options you've 
specified in /etc/fstab and then hands control over to OpenRC.

If it has the necessary modules (kernel and dracut) and you pass the right 
root= option then it Just Works.




Re: [gentoo-user] Re: Re: Re: Full disk encryption

2011-11-30 Thread Dale

Jack Byer wrote:

I can tell you how mine is set up.

emerge -v dracut

These are the packages that would be merged, in order:

[ebuild   R   ~] sys-kernel/dracut-013-r2  USE=-debug (-selinux)
DRACUT_MODULES=btrfs crypt lvm -biosdevname -caps -crypt-gpg -dmraid -
dmsquash-live -gensplash -iscsi -livenet -mdraid -multipath -nbd -nfs -
plymouth -syslog -xen 0 kB

I don't use any of the other modules so all I enable are btrfs, crypt and
lvm.

/etc/dracut.conf has no changes from the default except for the line:

add_dracutmodules+=crypt dm lvm

but I'm about 80% sure even that isn't necessary and you could just leave
the default values alone. One of these days I'll get around to testing that.

I make an initramfs with the following command:

dracut --lzmahostname.dracut.lzmakernel version

(obviously change --lzma to whatever type of compression your kernel
expects
to use and name the file whatever you want. Make sure to include the kernel
version just like it appears in your /lib/modules/ directory so that dracut
includes the correct kernel modules)

Then I make grub.conf look something like this:

root (hd0,0)
kernel /hostname  root=UUID=08b00d7f-b633-4c03-98fe-dd5942a8fb7e
initrd /hostname.dracut.lzma

I like to name my kernels and initramfs files by the hostname of the
computer since I have three that I manage but use whatever you want and
just
make sure you put the right filenames in grub.conf.

You can obtain the UUID of your root filesystem by a number of methods, but
the easiest is to use ls -l /dev/disks/by-uuid/

That's really all there is to it. Dracut will boot up and load the modules
it is compiled with and search through the disks, logical volumes, and
dmcrypt containers until it finds a filesystem with the UUID you specify.
Once it finds the root filesystem it mounts it with whatever options you've
specified in /etc/fstab and then hands control over to OpenRC.

If it has the necessary modules (kernel and dracut) and you pass the right
root= option then it Just Works.



 Dale copies to his Important folder 

I'm going to give this way a shot next time.  I'm downloading a lot of 
TV shows right now so can't reboot very often.


Thanks much for posting this tho.  This helps me a LOT.  With all the 
time I have on my hands, I really need to learn how to add things to all 
these wiki sites.


Dale

:-)  :-)

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




[gentoo-user] installing gentoo (multiple OS)

2011-11-30 Thread srini srini
Hello,

I need some advise here as I am trying to install gentoo along with
different other OS'es including windows.
As I am new to this field I would need some guidance as to ho to go about
and to know the subtleties between LILO and GRUB.

Can anyone help me about this.

TIA
--SR--