PAM: External radius for password / internal LDAP for the rest

2012-12-06 Thread Denny Schierz
hi,

at the moment we importing every day students from a external LDAP server and 
copy them into our local LDAP tree. So we have a own password database, in 
LDAP. Now we have access to the main radius for the whole university so we can 
authenticate most of our users via the radius, but not all. 

The plan is:

1. Use Radius for the password only
2. Check if the user exists in our LDAP, if not -> no access
3. If the radius password isn't accepted, test the same on LDAP userPassword
4. Use LDAP for $HOME/ $SHELL/ $UIDNumber/ $Gidnumber 

The third point is for local users only (system accounts icinga/otrs ) and 
guests, also for the smoothness migration, from our password to the radius. Old 
users can still use the old password, new users take the radius one.

I've installed a local FreeRadius server in proxy mode which works.

So, my question is, can I do it with PAM? How does it look like?

cu denny

--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/97184e1b-ab3a-4e4c-bdc2-7db9a681a...@4lin.net



Re: Webcam Problem

2012-12-06 Thread Darac Marjal
On Wed, Dec 05, 2012 at 03:25:32PM -0500, Stephen P. Molnar wrote:
> Debian 64 bit Wheezy/sid in a VM on my Dell Laptop. I know that he
> webcam works in Linux. 
> 
> When I attempt to apply Camera default settings in Kamerka I get the
> message 'Could not connect to V4L device!' 
> 
> I have found
> http://wiki.debian.org/AtiHowTo#Installing_proprietary_firmware but am
> not sure about implementing the instructions.
> 
> I have found lspci -v | grep VGA
> 00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH
> VirtualBox Graphics Adapter (prog-if 00 [VGA controller])

OK. You're barking up the wrong tree here. This isn't your webcam; this
is your graphics card. In other words, that's your video-out device, not
your video-in device.

Try the following page http://wiki.debian.org/Webcam. In particular,
note the parts that say "If you're using a stock kernel, everything
should be okay" and "EasyCam is a utility to automate webcam
installation: https://help.ubuntu.com/community/EasyCam";.

Hope that points you in the right direction.



signature.asc
Description: Digital signature


Copy 2 partitions to .img file

2012-12-06 Thread Hélder Pinheiro
Hello all,

I have a memory card with 16GB of size, but only 4GB are partitioned
through 2 partitions (sdb1 and 2).

I want to copy the content of both partitions into a .img file, in order to
be able to flash it on another 4GB memory card..
I tried with dd command, but I am only able to copy one partition each time
or the entire 16 GB.

Could you help me copying only the two partitions?

Cumprimentos,
Hélder Pinheiro


Re: Copy 2 partitions to .img file

2012-12-06 Thread Darac Marjal
On Thu, Dec 06, 2012 at 01:00:38PM +, Hélder Pinheiro wrote:
>Hello all,
> 
>I have a memory card with 16GB of size, but only 4GB are partitioned
>through 2 partitions (sdb1 and 2).
> 
>I want to copy the content of both partitions into a .img file, in order
>to be able to flash it on another 4GB memory card..
>I tried with dd command, but I am only able to copy one partition each
>time or the entire 16 GB.
> 
>Could you help me copying only the two partitions?

You COULD append the second partition to the first one, but then you
have a problem of where does one partition end and the other finish? Why
not make a separate image for each partition and then, if you really
must have one file, tar them together?



signature.asc
Description: Digital signature


Re: Copy 2 partitions to .img file

2012-12-06 Thread François TOURDE
Le 15680ième jour après Epoch,
Hélder Pinheiro écrivait:

> Hello all,
>
> I have a memory card with 16GB of size, but only 4GB are partitioned
> through 2 partitions (sdb1 and 2).
>
> I want to copy the content of both partitions into a .img file, in order to
> be able to flash it on another 4GB memory card..
> I tried with dd command, but I am only able to copy one partition each time
> or the entire 16 GB.
>
> Could you help me copying only the two partitions?

You could try the seek= and/or skip= options of dd to create only one
.img file, but why not create 2 .img files?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87fw3js325@tourde.org



Re: Copy 2 partitions to .img file

2012-12-06 Thread Pertti Kosunen

On 6.12.2012 15:00, Hélder Pinheiro wrote:

I want to copy the content of both partitions into a .img file, in order
to be able to flash it on another 4GB memory card..
I tried with dd command, but I am only able to copy one partition each
time or the entire 16 GB.


dd if=/dev/sdb of=4GB.img bs=1M count=4k

Copies 4096 times 1 megabyte blocks.


For exact size image(?):

sudo fdisk -l /dev/sdd

Disk /dev/sdd: 7969 MB, 7969177600 bytes
246 heads, 62 sectors/track, 1020 cylinders, total 15564800 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a8206

   Device Boot  Start End  Blocks   Id  System
/dev/sdd12048  206847  1024006  FAT16
/dev/sdd2  20684813314047 6553600   83  Linux


dd if=[Input Device] of=[Output File] bs=[Sector size] count=[End of 
last partition]

dd if=/dev/sdd of=8GB.img bs=512 count=13314047

Using small block size could be really slow.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50c0b63b.80...@pp.nic.fi



raid recomendation

2012-12-06 Thread Roberto Scattini
hi, i have a new dell r720 server with 5 600gb disks.
his function will be a postgresql server (the size of the databases is
really small with 600gb we should be fine for a long time).

which raid configuration would you recommend?
i was thinking in raid 5 with all five disks but i am not a expert.

i prefer redundandcy against size (i mean, i can sacrifice space). and i
dont want performance degradation for doing raid with an incorrect number
of disks.

thanks in advance!

-- 
Roberto Scattini


Re: Copy 2 partitions to .img file

2012-12-06 Thread Dom

On 06/12/12 15:14, Pertti Kosunen wrote:

On 6.12.2012 15:00, Hélder Pinheiro wrote:

I want to copy the content of both partitions into a .img file, in order
to be able to flash it on another 4GB memory card..
I tried with dd command, but I am only able to copy one partition each
time or the entire 16 GB.


dd if=/dev/sdb of=4GB.img bs=1M count=4k

Copies 4096 times 1 megabyte blocks.


For exact size image(?):

sudo fdisk -l /dev/sdd

Disk /dev/sdd: 7969 MB, 7969177600 bytes
246 heads, 62 sectors/track, 1020 cylinders, total 15564800 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a8206

Device Boot Start End Blocks Id System
/dev/sdd1 2048 206847 102400 6 FAT16
/dev/sdd2 206848 13314047 6553600 83 Linux


dd if=[Input Device] of=[Output File] bs=[Sector size] count=[End of
last partition]
dd if=/dev/sdd of=8GB.img bs=512 count=13314047


That should be count=13314048 as the sector number starts at 0, so from 
sector 0 to sector 13314047 is 13314048 sectors. It will only be an 
issue if the last sector is used though.


--
Dom


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50c0c97e.6050...@rpdom.net



Re: raid recomendation

2012-12-06 Thread Pedro Eugênio Rocha
On Thu, Dec 6, 2012 at 2:18 PM, Roberto Scattini  wrote:

> hi, i have a new dell r720 server with 5 600gb disks.
> his function will be a postgresql server (the size of the databases is
> really small with 600gb we should be fine for a long time).
>
> which raid configuration would you recommend?
> i was thinking in raid 5 with all five disks but i am not a expert.
>

Hi Roberto,

A RAID 5 volume including the 5 drives should work fine for you. A question
you should consider when you are taking this decision is: how fast can you
replace a failed drive? You must know that in the meanwhile you'd be
vulnerable, since an additional failure could lead to data loss. If you
can't exchange the drive fast enough, maybe you should use an spare drive
or thinking about RAID 6 (I've never used it though).


>
> i prefer redundandcy against size (i mean, i can sacrifice space). and i
> dont want performance degradation for doing raid with an incorrect number
> of disks.
>

Another think you could consider is creating a separate volume for the OS.
Particularly, I'd go for a 2 disks RAID 1 for the OS and a 3 disks RAID 5
for the database, since capacity isn't a problem. This configuration
ensures that the database I/O traffic does not competes with the OS (when
swapping and stuff). But that also depends on your hardware configuration.


Best,


>
> thanks in advance!
>
> --
> Roberto Scattini
>
>
-- 
Pedro Eugênio Rocha


Re: raid recomendation

2012-12-06 Thread François TOURDE
Le 15680ième jour après Epoch,
Roberto Scattini écrivait:

> hi, i have a new dell r720 server with 5 600gb disks.
> his function will be a postgresql server (the size of the databases is
> really small with 600gb we should be fine for a long time).
>
> which raid configuration would you recommend?
> i was thinking in raid 5 with all five disks but i am not a expert.
>
> i prefer redundandcy against size (i mean, i can sacrifice space). and i
> dont want performance degradation for doing raid with an incorrect number
> of disks.

In this case, avoid RAID5 and choose RAID1 or RAID10. Use 4 disks on the
RAID10 array and the 5th as a spare one, for example.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/8738zjrur7@tourde.org



Re: raid recomendation

2012-12-06 Thread Stefan
Hello,
for databases its recommended to use raid10, cause of the speed


regards 
Stefan




Re: raid recomendation

2012-12-06 Thread Federico Alberto Sayd

On 06/12/12 13:18, Roberto Scattini wrote:

hi, i have a new dell r720 server with 5 600gb disks.
his function will be a postgresql server (the size of the databases is 
really small with 600gb we should be fine for a long time).


which raid configuration would you recommend?
i was thinking in raid 5 with all five disks but i am not a expert.

i prefer redundandcy against size (i mean, i can sacrifice space). and 
i dont want performance degradation for doing raid with an incorrect 
number of disks.


thanks in advance!

--
Roberto Scattini

If you want performance and redundancy at cost to reduce your storage 
capacity think in RAID 10.


Regards

Federico


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50c0d39a.2030...@uncu.edu.ar



Re: raid recomendation

2012-12-06 Thread Martin Steigerwald
Am Donnerstag, 6. Dezember 2012 schrieb Roberto Scattini:
> hi, i have a new dell r720 server with 5 600gb disks.
> his function will be a postgresql server (the size of the databases is
> really small with 600gb we should be fine for a long time).
> 
> which raid configuration would you recommend?
> i was thinking in raid 5 with all five disks but i am not a expert.
> 
> i prefer redundandcy against size (i mean, i can sacrifice space). and i
> dont want performance degradation for doing raid with an incorrect number
> of disks.

Additionally to what has been written by the other posters:

http://baarf.com

:)

-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201212062022.04928.mar...@lichtvoll.de



Re: "apt-get BUG" OR "OPERATOR Error"?

2012-12-06 Thread Richard Owlett

Richard Owlett wrote:

Andrei POPESCU wrote:

On Ma, 04 dec 12, 21:25:08, Richard Owlett wrote:

Though I might be classed as a *nix newbie, I've been
doing a series
of manual "expert installs" with the eventual goal of
determining
what *I* might want in a preseed.cfg file for some automated
experimental *MINIMALISTIC* installs.;/

When I get to "Select and Install software", I chose *ONLY*
"Standard system utilities" and completing install with
defaults.


Is this squeeze or wheezy?


Debian GNU/Linux 6.0.5 "Squeeze" - Official i386 DVD
Binary-1 20120512-13:45




My APPARENT problem begins after the initial reboot.

If my initial logon is followed by [ su  password
 apt-get
install gdm gedit] there is NO problem after
following reboot.

*HOWEVER*

If my initial logon is followed by [ su  password
 apt-get
install gdm gedit gnome-terminal] a reboot dumps me
at a root
terminal screen with apparently no way to get a gnome
screen.


Sounds like something is missing.


ME or DEBIAN at fault?


How about diffing the output of 'dpkg --get-selections'
for both
situations?


Will do.


I did so. I'm not sure of the usefulness of the output.

CASE1
Did a fresh install on a drive where ALL partitions had been 
removed with Gparted [LiveCD].

After reboot and user login
 su  password  apt-get install gdm gedit
 apt-get install gnome-terminal
 dpkg --get-selections > /home/case1

The file was 726 lines long.


CASE2
Did another fresh install on a drive where ALL partitions 
had been removed with Gparted [LiveCD].

After reboot and user login
 su  password  apt-get install gdm gedit 
gnome-terminal

 dpkg --get-selections > /home/case2

The file was 533 lines long.

I've saved the files to a USB drive. If you wish the output 
of diff, tell me which options you would like specified and 
I'll email the resulting file. I hesitate to send it to the 
whole list.


CASE1 works. I'll  just use it.

I was apparently in error saying that when I rebooted I got 
a root terminal. It is a user terminal. Gedit could be 
invoked and apparently operated normally.







Kind regards,
Andrei







--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50c0f35d.3050...@cloud85.net



Re: "apt-get BUG" OR "OPERATOR Error"?

2012-12-06 Thread Richard Owlett

Andrei POPESCU wrote:

On Mi, 05 dec 12, 06:12:48, Richard Owlett wrote:


Could you elaborate on this? Is this a linux console or a graphical
screen with a terminal in the upper left corner?


It was "graphical screen with a terminal in the upper left corner".


Ok, this means you don't have any window manager/desktop environment
installed, but it's funny that you would get this result by installing
gnome-editor in the same run.

Also, are you sure it's a root terminal? You can tell by the prompt,
root by default has a '#', non-root users get a '$'. Or just run 'id' ;)


My error - it was for normal user. Gedit could be launched 
and apparently behaved normally.




Kind regards,
Andrei




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50c0f436.5070...@cloud85.net



Re: "apt-get BUG" OR "OPERATOR Error"?

2012-12-06 Thread Andrei POPESCU
On Jo, 06 dec 12, 13:34:53, Richard Owlett wrote:
> >Andrei POPESCU wrote:
> >>
> >>How about diffing the output of 'dpkg --get-selections'
> >>for both
> >>situations?
... 
> CASE1
> Did a fresh install on a drive where ALL partitions had been removed
> with Gparted [LiveCD].
> After reboot and user login
>  su  password  apt-get install gdm gedit
>  apt-get install gnome-terminal
>  dpkg --get-selections > /home/case1
> 
> The file was 726 lines long.
> 
> 
> CASE2
> Did another fresh install on a drive where ALL partitions had been
> removed with Gparted [LiveCD].
> After reboot and user login
>  su  password  apt-get install gdm gedit
> gnome-terminal
>  dpkg --get-selections > /home/case2
> 
> The file was 533 lines long.
> 
> I've saved the files to a USB drive. If you wish the output of diff,
> tell me which options you would like specified and I'll email the
> resulting file. I hesitate to send it to the whole list.

Both files should be only about 50k and less than 10k gziped. You can 
send them to me, maybe I'll look at them tomorrow (EET).

> I was apparently in error saying that when I rebooted I got a root
> terminal. It is a user terminal. Gedit could be invoked and
> apparently operated normally.

Ok.

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: Informazioni Log Analyzer Postfix

2012-12-06 Thread Gilles Mocellin

Le 06/12/2012 02:59, Stan Hoeppner a écrit :

On 12/5/2012 5:54 PM, Hans van Kranenburg wrote:


The ultimate goal should be to be able to have some sort of log database
for troubleshooting purposes containing the analyzed mail log files of
the last X days/weeks on which a query could be done for a message id, a
from or to address, some date/time or a remote server name,


This is so easily done with grep that it's not worth the time/effort to
develop what you describe.


to be able
to quickly lookup how often delivery of X to Y fails etc...


Knowing how often delivery fails is irrelevant.  I.e. trends of failures
for the same sender or destination are irrelevant.  Knowing WHY each one
failed is important, and this is supplied in the SMTP rely code.  Odds
are that repeat failures for the same source/destination will have the
same reason, again making such a database pretty useless.


Disclaimer: it's only some ideas and step 1 of a proof of concept, but
it already shows me that it's not an easy job.


Yeah. And it's trivial with a little grepping, which is what nearly
everyone does currently, at least at small/medium scale.  For operations
that have a dozen in/out relays they may be doing something different.
Then again they're probably simply using a syslog server and grepping there.


Grep will not show you all the lines concerning a mail.
Have you really already managed a mail server with 
antspam/antivirus/greylisting ?


The IDs are changing each time you pass from a SMTP/LMTP server to 
another (postfix to amavisd, policyd-weight, postrgrey...).

The email is not on all logs...




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50c1215a.2010...@nuagelibre.org



Re: Informazioni Log Analyzer Postfix

2012-12-06 Thread Gilles Mocellin

Le 06/12/2012 00:54, Hans van Kranenburg a écrit :

On 12/04/2012 02:42 PM, Gilles Mocellin wrote:

Le 04/12/2012 13:45, Jason Fergus a écrit :

On Tue, 2012-12-04 at 11:35 +0100, Gilles Mocellin wrote:

Le 27/11/2012 11:53, Zattara Stefano a écrit :

This is really a must have tool.


I've had the same idea for some time, and I even started to write a
small proof of concept to see how easy or difficult it would be to parse
complete /var/log/mail.log contents (or realtime streaming from syslog)
and combine all lines into information objects representing what
happened to a single email traversing different mail servers, spam
filter etc...

The ultimate goal should be to be able to have some sort of log database
for troubleshooting purposes containing the analyzed mail log files of
the last X days/weeks on which a query could be done for a message id, a
from or to address, some date/time or a remote server name, to be able
to quickly lookup how often delivery of X to Y fails etc... and as a
result get all log lines about the queried whatever.

So after reading this thread, I just uploaded what I already had to:
https://github.com/knorrie/maillogpoc

Disclaimer: it's only some ideas and step 1 of a proof of concept, but
it already shows me that it's not an easy job.

Hans


There's certainly a reason if such a tool does not already exist !
It is a difficult task.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50c1227a.1030...@nuagelibre.org



Re: Copy 2 partitions to .img file

2012-12-06 Thread Marc Auslander
If you just copy the first 4GB, which includes the partition table,
and put it on a 4GB drive, you will have a bogus partitions table (I
think). Maybe it will just "work" as long as you don't try to make new
partitons.  Alternately, I don't know what it would take to repair it
although I'm sure it can be done.  Thus the alternative of dumping
each partition may be safer.

However, note that if you dump each partition, you will have to deal with
putting a correct partition table and MBR on the new drive.  If the
drive is bootable, this will probably involve re-running the boot
loader install process.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/874njy1w76@aptiva.optonline.net



show open applications in Gnome Classic

2012-12-06 Thread Rob Owens
I've been evaluating Gnome 3 "Classic" for the past couple hours, and I
still can't figure out how to display all the open applications.
Anybody know?

If the answer involves the Super key, could you also tell me either:

1)  How to change that

or 

2)  How to send the Super key in a Virtualbox session

Thanks

-Rob


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121207020639.ga16...@aurora.owens.net



Re: Copy 2 partitions to .img file

2012-12-06 Thread Rob Owens
On Thu, Dec 06, 2012 at 08:34:53PM -0500, Marc Auslander wrote:
> If you just copy the first 4GB, which includes the partition table,
> and put it on a 4GB drive, you will have a bogus partitions table (I
> think). Maybe it will just "work" as long as you don't try to make new
> partitons.  Alternately, I don't know what it would take to repair it
> although I'm sure it can be done.  Thus the alternative of dumping
> each partition may be safer.
> 
I think all you'd have to do is use fdisk to delete the bogus
partitions.  But test it first with data that you don't care about!

-Rob


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121207020806.gb16...@aurora.owens.net



Apt-get hangup

2012-12-06 Thread Gary Roach
I just had to do a major restore on one of my systems and am having 
trouble with updates. Openoffice.org seems to be the biggest problem. 
There is a whole bunch of partially configured packages and I can't seem 
to do any of the aptitude, apt-get, dpkg-reconfigure or apt-cache 
functions. A example of the terminal output is pasted below.


   Reading package lists...
   Building dependency tree...
   Reading state information...
   0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
   18 not fully installed or removed.
   After this operation, 0 B of additional disk space will be used.
   Setting up openoffice.org-core (1:3.2.1-11+squeeze8) ...
   /usr/lib/ure/bin/javaldx: error while loading shared libraries:
   libstlport_gcc.so.4.6: cannot open shared object file: No such file
   or directory
   /usr/lib/ure/bin/regcomp.bin: error while loading shared libraries:
   libstlport_gcc.so.4.6: cannot open shared object file: No such file
   or directory
   dpkg: error processing openoffice.org-core (--configure):
 subprocess installed post-installation script returned error exit
   status 127
   dpkg: dependency problems prevent configuration of python-uno:
 python-uno depends on openoffice.org-core (= 1:3.2.1-11+squeeze8);
   however:
  Package openoffice.org-core is not configured yet.
   dpkg: error processing python-uno (--configure):
 dependency problems - leaving unconfigured
   dpkg: dependency problems prevent configuration of
   openoffice.org-emailmerge:
 openoffice.org-emailmerge depends on python-uno; however:
  Package python-uno is not configured yet.
   dpkg: error processing openoffice.org-emailmerge (--configure):
 dependency problems - leaving unconfigured
   Setting up doc-base (0.9.5) ...
   /var/lib/dpkg/info/doc-base.postinst: 45: install-docs: not found
   dpkg: error processing doc-base (--configure):
 subprocess installed post-installation script returned error exit
   status 127
   Setting up menu (2.1.44) ...
   chmod: cannot access `/usr/bin/update-menus': No such file or directory
   dpkg: error processing menu (--configure):
 subprocess installed post-installation script returned error exit
   status 1
   dpkg: dependency problems prevent configuration of
   openoffice.org-base-core:
 openoffice.org-base-core depends on openoffice.org-core (=
   1:3.2.1-11+squeeze8); however:
  Package openoffice.org-core is not configured yet.
   dpkg: error processing openoffice.org-base-core (--configure):
 dependency problems - leaving unconfigured
   dpkg: dependency problems prevent configuration of
   openoffice.org-writer:
 openoffice.org-writer depends on openoffice.org-core (=
   1:3.2.1-11+squeeze8); however:
  Package openoffice.org-core is not configured yet.
 openoffice.org-writer depends on openoffice.org-base-core (=
   1:3.2.1-11+squeeze8); however:
  Package openoffice.org-base-core is not configured yet.
   dpkg: error processing openoffice.org-writer (--configure):
 dependency problems - leaving unconfigured
   dpkg: dependency problems prevent configuration of openoffice.org-calc:
 openoffice.org-calc depends on openoffice.org-core (=
   1:3.2.1-11+squeeze8); however:
  Package openoffice.org-core is not configured yet.
 openoffice.org-calc depends on openoffice.org-base-core (=
   1:3.2.1-11+squeeze8); however:
  Package openoffice.org-base-core is not configured yet.
   dpkg: error processing openoffice.org-calc (--configure):
 dependency problems - leaving unconfigured
   dpkg: dependency problems prevent configuration of openoffice.org-draw:
 openoffice.org-draw depends on openoffice.org-core (=
   1:3.2.1-11+squeeze8); however:
  Package openoffice.org-core is not configured yet.
   dpkg: error processing openoffice.org-draw (--configure):
 dependency problems - leaving unconfigured
   dpkg: dependency problems prevent configuration of
   openoffice.org-impress:
 openoffice.org-impress depends on openoffice.org-core (=
   1:3.2.1-11+squeeze8); however:
  Package openoffice.org-core is not configured yet.
 openoffice.org-impress depends on openoffice.org-draw (=
   1:3.2.1-11+squeeze8); however:
  Package openoffice.org-draw is not configured yet.
   dpkg: error processing openoffice.org-impress (--configure):
 dependency problems - leaving unconfigured
   dpkg: dependency problems prevent configuration of openoffice.org-math:
 openoffice.org-math depends on openoffice.org-core (=
   1:3.2.1-11+squeeze8); however:
  Package openoffice.org-core is not configured yet.
   dpkg: error processing openoffice.org-math (--configure):
 dependency problems - leaving unconfigured
   dpkg: dependency problems prevent configuration of openoffice.org-base:
 openoffice.org-base depends on openoffice.org-core (=
   1:3.2.1-11+squeeze8); however:
  Package openoffice.org-core is not configured yet.
 openoffice.org-base depends on ope

Re: Apt-get hangup

2012-12-06 Thread Bob Proulx
Gary Roach wrote:
> I just had to do a major restore on one of my systems
> and am having trouble with updates.

What happened?  And what did you do when you say you did a major
restore?

>Setting up openoffice.org-core (1:3.2.1-11+squeeze8) ...
>/usr/lib/ure/bin/javaldx: error while loading shared libraries:
>libstlport_gcc.so.4.6: cannot open shared object file: No such file
>or directory
>/usr/lib/ure/bin/regcomp.bin: error while loading shared libraries:
>libstlport_gcc.so.4.6: cannot open shared object file: No such file
>or directory

Look at that error message more closely.  It is concerning on a couple
of different levels.  It is trying to open libstlport_gcc.so.4.6 but
it fails.  Start there.  Why isn't that library available?  (But why is
it looking for that library at all?)

  $ ldd -d -r /usr/lib/ure/bin/javaldx
linux-vdso.so.1 =>  (0x7c39f000)
libuno_sal.so.3 => /usr/lib/ure/bin/../lib/libuno_sal.so.3 
(0x7f979b384000)
libjvmfwk.so.3 => /usr/lib/ure/bin/../lib/libjvmfwk.so.3 
(0x7f979b168000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f979ae42000)
  ...

The lines will go on and on for that program.  Do they all resolve?
Any errors?  If so then what are the reasons for those errors?

But why is it looking for libstlport_gcc?  It isn't one of the
libraries used by that program.

  $ ldd -d -r /usr/lib/ure/bin/javaldx | grep libstlport_gcc
  ...nothing...

I can only guess that your restore was not completely successful.

Bob


signature.asc
Description: Digital signature


Re: Copy 2 partitions to .img file

2012-12-06 Thread Bob Proulx
Hélder Pinheiro wrote:
> I have a memory card with 16GB of size, but only 4GB are partitioned
> through 2 partitions (sdb1 and 2).

I understand that:

  sdb1 is 2G
  sdb2 is 2G
  Total of 4G

> I want to copy the content of both partitions into a .img file, in order to
> be able to flash it on another 4GB memory card..

Okay.  Then copy each of the partitions off.  Then copy each of the
partitions onto the new device.  Right?

> I tried with dd command, but I am only able to copy one partition each time
> or the entire 16 GB.

Right.  But isn't that what you want?

> Could you help me copying only the two partitions?

  dd if=/dev/sdb1 of=sdb1.img
  dd if=/dev/sdb2 of=sdb2.img

Then partition the new device with two 2G partitions, the same size as
the previous partitions.  If you need help doing this ask.  I would
use 'sfdisk -d' to dump the previous and 'sfdisk' again to write the
new partitions.  This is the only tricky part of things.  Then copy
the saved data off to the new partitions.

  dd if=sdb1.img of=/dev/sdb1
  dd if=sdb2.img of=/dev/sdb2

If the above just isn't going to work for you then if the file size is
only 4G in total then you could simply copy the data off the
filesystem and then copy the data back onto the new device.

  mount /dev/sdb1 /mnt
  rsync -a /mnt/ ./backupdir/sdb1/
  umount /mnt
  mount /dev/sdb2 /mnt
  rsync -a /mnt/ ./backupdir/sdb2/
  umount /mnt

Then mount the new device:

  mount /dev/sdb1 /mnt
  rsync -a ./backupdir/sdb1/ /mnt/
  umount /mnt
  mount /dev/sdb2 /mnt
  rsync -a ./backupdir/sdb2/ /mnt/

Note the trailing '/' characters on the rsync command args are
intentional and important.

Bob


signature.asc
Description: Digital signature


partition table not sticky

2012-12-06 Thread J. B

Hello,

I have tried to partition a new HDD. fidsk reports

``

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF 
disklabel
Building a new DOS disklabel with disk identifier 0x3d9b1a92.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x of partition table 4 will be corrected by w(rite)



After "w" it reports

`
Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
``

And next time fdisk again suggest "Device contains neither a valid DOS 
partition table, nor Sun, SGI or OSF disklabel"

I have repeatedly do the same but no luck. no luck with cfdisk. Changes are not 
stored !!!

only gparted is successful but it makes my 320 GB HDD to 280 GB. 40GB lost !!!

What is the problem with fdisk and cfdisk ???


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121207130617.6c203...@shiva.selfip.org



Re: Squeeze: sometimes, bind times out (backgrounded) at boot time - Solved

2012-12-06 Thread Bob Proulx
Joao Roscoe wrote:
> > Using it with NIS/YP is not so common so I think it
> > not unlikely that there is a bug related to it there.
> ...
> > Try this experiment.  At the last point in the /etc/init.d/nis startup
> > script add a short sleep.  That will give the daemons time to finish
> > and get ready to go.  It is possible that they are not yet quite ready
> > yet and so immediately after the end of the script the next one to run
> > hits them too early.
>
> Bingo  Haven't done exactly that, but your suggestion helped me to
> understand NIS init script a bit better. So, I just increased the already
> existent "wait for bind to succeed" loop maximum count, from 10 seconds to
> 20 seconds, and that did the trick. Even the slowest or our machines boot
> properly now. The change was as shown below:

Sorry but I came late to this discussion.  If you are still open to
experimenting then I have another one for you.  In the
/etc/network/interfaces file do you have the interface listed?  Or is
it left to NetworkManager?  If it is listed is it listed as
"allow-hotplug eth0"?  Try this.  Change that to "auto eth0" instead.
that will change the startup from being event driven to being
synchronous at boot time.

On my Squeeze nis/yp systems I had to change to "auto" in order for
the system to boot and bind successfully.

Bob


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121207074518.gc12...@hysteria.proulx.com



Re: partition table not sticky

2012-12-06 Thread Bob Proulx
J. B wrote:
> I have repeatedly do the same but no luck. no luck with
> cfdisk. Changes are not stored !!!
> 
> only gparted is successful but it makes my 320 GB HDD to 280
> GB. 40GB lost !!!
> 
> What is the problem with fdisk and cfdisk ???

Can you report the disk information from either smartctl or hdparm?

  # smartctl -i /dev/sda

  # hdparm -I /dev/sda

hdparm output is more detailed and will report more information about
the drive.

Bob


signature.asc
Description: Digital signature