Andrew J. Barr | 1 Aug 01:25 2007
Picon

Re: Debian Linux in Chroot

On 7/31/07, Matthew K Poer <matthewpoer <at> gmail.com> wrote:
> My understanding of chroot is extremely limited, right now. I have searched
> around, but can anyone point me to anything specific that they know to be a
> good tutorial/explanation or how chroot works and what its capabilities are?

chroot is a system call that causes all descended processes to treat a
directory in the filesystem as the root directory (/). When you do
this to an interactive Bash shell, you then have the ability to launch
programs and do development work, etc. from this chroot.

Debian has good tools for doing this sort of thing--debootstrap and
friends can install a new system (etch, lenny, sid, and more) in a
folder for you, and you can even install an entire 32-bit userland on
a 64-bit system, which is useful for running 32-bit Firefox with stuff
like the non-free Adobe Flash plugin (FYI-if you're going to point out
nspluginwrapper, please also tell me how to make sound with PulseAudio
work in that setup). Then there are tools like schroot (apt-get
install schroot) which can be configured to launch programs from
inside the chroot in one command line, complete with 32-bit uname()
emulation if so desired.

--

-- 
Andrew Barr

We matter more than pounds and pence,
your economic theory makes no sense...

Keith Bates | 1 Aug 01:27 2007
Picon

Re: Using Wine to do my Tax (Australia)

On Tue, 31 Jul 2007 17:04:23 +1000
Keith Bates <keith <at> new-life.org.au> wrote:

> On Mon, 30 Jul 2007 10:29:20 -0500
> "Mumia W.." <paduille.4061.mumia.w+nospam <at> earthlink.net> wrote:
> 
> > On 07/30/2007 05:35 AM, Keith Bates wrote:
> > > Hi, 
> > > 
> > > I wonder if anyone using the Australian Taxation Office's infamous
> > > e-tax package has been able to get it going under wine.
>
> > > 
> > > Error saving data: Access violation at address 0055521C in module
> > > 'etax2007.exe'. Read of address 00000008
> > > 
> > > I've made sure that every folder and file in my .wine folder has
> > > 777 permissions, but I still get the error.
> > > 
> > > I've done a search of both the wine site and the internet but
> > > haven't been able to find a solution.
> > > 
> > > Does anyone know how to get the program to work? Or will I have to
> > > comply with the ATO's "Windows only" agenda?
> > > 
> > > Thanks!
> > > 
> > 
> > It partially seems to work for me.
> > 
(Continue reading)

Martin Marcher | 1 Aug 01:34 2007
Picon

PAM + LDAP and SSH

and now for everyone else too :)

---------- Forwarded message ----------
From: Martin Marcher <martin.marcher <at> gmail.com>
Date: Aug 1, 2007 1:33 AM
Subject: Re: PAM + LDAP and SSH
To: Ron Peterson <rpeterso <at> mtholyoke.edu>

hello,

On 7/31/07, Ron Peterson <rpeterso <at> mtholyoke.edu> wrote:
> 2007-07-31_12:51:35-0400 Allan Senna Porto <allan.porto <at> gmail.com>:
> > Hi,
> >          Anyone know about problems with /etc/security/access.conf and
> > SSH in Etch?
> >          I'm trying to block ldap users to access my servers, but
> > everything that I made don't block user to loggin.
> >          If I use this to /etc/pam.d/login and /etc/pam.d/gdm, the
> > user can't loggin.
>
> It would help others to help you to see what you actually did.

this is how i do it:

# ldapsearch -x -LLL -b 'ou=people,dc=example,dc=com'\
 '(&(objectClass=sambaSamAccount))' dn host
dn: uid=will.waldo,ou=accounts,ou=people,dc=example,dc=com
host: havanna.example.com
host: kairo.example.com
host: novosibirsk.example.com
(Continue reading)

Martin Marcher | 1 Aug 01:40 2007
Picon

Re: Swap configuration for 16GB of RAM, 8 cores

hello,

On 7/31/07, Ron Johnson <ron.l.johnson <at> cox.net> wrote:
> On 07/31/07 15:18, agenkin <at> gmail.com wrote:
> > What are the current best practices with regards to swap partitions?
> > Is it
> > better to create one big, or several smaller swap partitions?  Is the
> > rule
> > of thumb still RAM*2 for the total size?

i dropped the "rule of thumb" advices for swap long ago. usually i
watch load (uptime), htop and free as closely as possible (let it mail
to you about every 30 minutes the first few weeks) and decide how much
swap you need.

i know these are really basic tools (especially free only reporting
specific points in time) but they are available everywhere and usable
everywhere. once you got used to initially calculating the stats by
hand it's not that bad at all. monitoring software can be added later
on when everything runs stable.

> Create swap *files* instead.  See "man mkswap" for the technique.
> Put them on /.

personally I stay with LVM. I found it a lot easier to manage
(probably just being a habit) as it is the _single_ source of storage
for me (as in I try to avoid using other storage techniques as loop
mounting, swap files in this case, yadda yadda as much as possible)

hth
(Continue reading)

Mumia W.. | 1 Aug 02:16 2007
Picon
Picon

Re: Disabling Print Screen key

On 07/31/2007 04:18 PM, Luis Finotti wrote:
> [...]
> On the other hand, I still don't see why the key wasn't disabled by
> the "xmodmap -e" command...  Is that a bug??
> 
> Thanks again,
> 
> Luis
> 
> 

What about this:

xmodmap -e "keycode 111 = BackSpace"

or

xmodmap -e "keycode 111 ="

Phill Atwood | 1 Aug 02:08 2007

Re: ntfs mount errors

> > > 
> > > Further to my problem of not being able to automatically mount my
> > > windows xp partition and cd to it as a regular user.
> > > 
> > > >from dmesg:
> > > 
> > > NTFS driver 2.1.27 [Flags: R/W MODULE].
> > > NTFS volume version 3.1.
> > > NTFS-fs warning (device sda1): load_system_files(): Unsupported volume
> > > flags 0x4000 encountered.
> > > NTFS-fs warning (device sda1): load_system_files(): Volume has
> > > unsupported flags set.  Will not be able to remount read-write.  Run
> > > chkdsk and mount in Windows.
> > 
> > ----
> > 
> > Hi there,
> > 
> > I have no information about what was discussed before, but to me this looks like: Boot into windoze. Click
on Start->Execute (don't know how this is exactly called on English windoze) or open a command window
(cmd.exe). There, type: chkdsk /f . Tell windoze you want it to check the disk at reboot. Reboot into
windoze, and let chkdsk repair the disk. Then reboot into linux and see what happens.
> > 
> > Cheers,
> > 
> > Stephan

You were right.  I did this.  I ended up having to use fsutil to force
the partition to be dirty to get windoze to check it.  It did.  There
were no errors.  However, when I rebooted to Linux I still have the same
(Continue reading)

Phill Atwood | 1 Aug 02:15 2007

Re: ntfs mount errors

On Tue, 2007-31-07 at 21:14 +0200, Stephan Hachinger wrote:
> On Tue, 31 Jul 2007 14:26:41 -0400
> Phill Atwood <me <at> phillatwood.name> wrote:
> 
> > 
> > Further to my problem of not being able to automatically mount my
> > windows xp partition and cd to it as a regular user.
> > 
> > >from dmesg:
> > 
> > NTFS driver 2.1.27 [Flags: R/W MODULE].
> > NTFS volume version 3.1.
> > NTFS-fs warning (device sda1): load_system_files(): Unsupported volume
> > flags 0x4000 encountered.
> > NTFS-fs warning (device sda1): load_system_files(): Volume has
> > unsupported flags set.  Will not be able to remount read-write.  Run
> > chkdsk and mount in Windows.
> 
> ----
> 
> Hi there,
> 
> I have no information about what was discussed before, but to me this looks like: Boot into windoze. Click
on Start->Execute (don't know how this is exactly called on English windoze) or open a command window
(cmd.exe). There, type: chkdsk /f . Tell windoze you want it to check the disk at reboot. Reboot into
windoze, and let chkdsk repair the disk. Then reboot into linux and see what happens.
> 
> Cheers,
> 
> Stephan
(Continue reading)

David Fox | 1 Aug 03:17 2007
Picon

Re: lenny: getting non-free nvidia drivers issue



On 7/30/07, Alan Ianson <agianson <at> gmail.com> wrote:


Have you run apt-get update, and is your mirror up to date? I just switched to
2.6.21 from 2.6.22 an hour ago and had no problem with the same version of
the nvidia-kernel-source.

Sure have. I'm using  ftp.debian.org, and I just went there and found under debian/pool/n
this stuff: I ran apt-get update (or rather aptitude update) yesterday, and updated a few things in the
process.
 
Looking at a debian ftp site that I use (#1 listing in my sources.list) I see:


debian/pool/non-free/n > ls -l nvi*
drwxr-sr-x 2 1176 1176 4096 Jul 7 08:35 nvidia-graphics-drivers
drwxr-sr-x 2 1176 1176 4096 Dec 7 2006 nvidia-graphics-drivers-legacy
drwxr-xr-x 2 1176 1176 4096 Jun 21 20:34 nvidia-graphics-drivers-legacy-71xx
drwxr-xr-x 2 1176 1176 4096 Jun 21 20:34 nvidia-graphics-drivers-legacy-96xx
drwxr-xr-x 2 1176 1176 4096 Jun 22 08:42 nvidia-graphics-legacy-71xx-modules-amd64
drwxr-xr-x 2 1176 1176 4096 Jun 25 20:30 nvidia-graphics-legacy-71xx-modules-i386
drwxr-xr-x 2 1176 1176 4096 Jun 25 20:30 nvidia-graphics-legacy-96xx-modules-amd64
drwxr-xr-x 2 1176 1176 4096 Jun 25 20:30 nvidia-graphics-legacy-96xx-modules-i386
drwxr-xr-x 2 1176 1176 4096 Jun 27 08:34 nvidia-graphics-legacy-modules-amd64
drwxr-sr-x 2 1176 1176 4096 Jun 27 08:34 nvidia-graphics-legacy-modules-i386
drwxr-xr-x 2 1176 1176 4096 Jun 27 08:34 nvidia-graphics-modules-amd64
drwxr-sr-x 2 1176 1176 4096 Jun 27 08:34 nvidia-graphics-modules-i386
drwxr-sr-x 2 1176 1176 4096 Nov 21 2006 nvidia-modules-i386

Note there is no "nvidia-kernel-source".

Poking around with various 'apt-cache policy' commands on some of those files, all I get are "unable to locate package
such and such" errors. I've tried nvidia-graphics-drivers, nvidia-graphics-legacy-96xx.

If it is in 'pool" that doesn't necessarily mean that these files are in "testing", does it? OTOH, look at the file dates.

The "why is package X not in testing" page does have some info - says there is no new version in testing, and is trying to add, not update.


Magicloud Magiclouds | 1 Aug 03:27 2007
Picon

How to upgrade a 686 system to x86_64?

Dear all,
    I am using a x86_64 hardware, but I installed a 686 sid on it. Now I 
want to use x86_64 sid.
    I installed x86_64 linux image, and booted, but all my softwares are 
still 686, so new x86_64 software can not be installed.

    How to upgrade all my softwares?

Thanks.

Steve Kleene | 1 Aug 03:31 2007
Picon

Re: new Etch install fails to boot

On Sun, Jul 29, 2007 at 11:00:30PM -0400:
> [I wrote that my fresh Etch install calls grub and then stops.]

I've tried the remaining suggestions without luck and am now royally
confused.

1. I installed the grub-disk package and ran the following:
     dd if=grub-0.97-i486-pc.ext2fs of=/dev/fd0 bs=1024 conv=sync; sync
   There were no errors.  I could mount the floppy and read the files.  I set
   the BIOS to boot off the floppy.  The system touched the floppy but failed
   to boot off it.  I tried this with the box I'm working on and one that is
   successfully running Etch.  I repeated the test with a second floppy,
   which also didn't boot.

2. I tried repeatedly to install grub from the CD in rescue mode.  The
   install seemed to succeed.  I poked around with a rescue shell and
   confirmed that files had been installed in /boot/grub.  However, booting
   the machine still gave the usual message from the dead, i.e.:

     Verifying DMI Pool Data ..........
     GRUB Loading stage1.5.
     Read

3. I reformatted the partitions, reinstalled the base system, and tried to
   install lilo.  This came up:

     LILO installation target:
       /dev/hdf: Master Boot Record
       /dev/hde1: new Debian partition
       Other choice (Advanced)

   Note that the first one is for hdf, which is the second drive.  I have no
   idea why.  Anyway, I tried all of these, include Other with /dev/hde and
   /dev/hde1.  In all cases, I got "lilo-installer failed with error code 1".
   Console 4 showed the following:

     Setting up lilo (22.6.1-9.3)
     mount: /dev/hde1 already mounted or /boot busy
     dpkg: error processing lilo (--configure)
     subprocess post-installation script returned error exit status 32

   Still, I verified that /etc/lilo.conf was there, and there were no grub
   files anywhere under /target (including under /boot).  I finished the
   installation anyway, and found it totally bizarre when a reboot produced
   the same output as before, including "GRUB Loading stage1.5".  It's as if
   this string lives on the MBR and I'm unable to overwrite it.

Practically all I can think of now is trying to install Windows and see if
that's even possible.  That's pretty desperate.

In case it's relevant, here's how fdisk showed the filesys in rescue mode:

     Device Boot      Start         End      Blocks   Id  System
  /dev/hde1   *           1          12       96358+  83  Linux
  /dev/hde2            4819        5005     1502077+   5  Extended
  /dev/hde3              12        4818    38604195   83  Linux
  /dev/hde5            4819        5005     1502046   82  Linux swap / Solaris

I do appreciate all of your suggestions and am sorry this is going on so
long.


Gmane