Re: Diskless client can't use apt-get

2003-11-29 Thread Jakob Lell
On Saturday 29 November 2003 14:17, Pernilla Uhlin wrote:
> Hi,
>
> I have created two diskless client with debians diskless package (I've
> followed every step and created diskless-createbasetgz and
> diskless-newimage as well). The clients boot perfectly, every seems to
> be ok. The only thing that doesn't seem to work is installing new
> packages with apt-get. I've tried apt-get update on booth clients, and
> as chroot root (in the /var/lib/diskless/defaul/ directory), both ways
> failed. The error I get is:
>
> Err http://security.debian.org stable/updates/main Packages
>   Something wicked happened resolving 'security.debian.org:http' (-3)
> Err http://debian.sysinst.ida.liu.se stable/main Packages
>   Something wicked happened resolving
> 'debian.sysinst.ida.liu.se:http' (-3) Err http://ftp.se.debian.org
> stable/main Sources
>   Something wicked happened resolving 'ftp.se.debian.org:http' (-3)
> Err http://non-us.debian.org stable/non-US/main Sources
>
> ... and so on...
Hello,
this seems to be a DNS problem. Have you added a working nameserver in 
your   /etc/resolv.conf? Have you tried to ping the servers?

Regards
 Jakob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: 2 linux questions

2003-11-27 Thread Jakob Lell
On Monday 24 November 2003 12:56, Bjorn Johansson wrote:
> Hello!
>
> 1. How do a patch my kernel?
Hello,
if you use kernel-package, you can just run this:
make-kpkg --added-patches foo ...
See man make-kpkg for more details.
If you want to patch your kernel source tree permamently (or there is no 
debian package for the patch), you can use this commands:
cd /path/to/kernel/source
cat /path/to/patch|patch -p1

> 2. How do I lowformat one of my partitions?
> (without booting up the installation)
If you use ext2:
mke2fs /dev/hdXn

If you prefer ext3:
mke2fs -j /dev/hdXn

Regards
 Jakob
>
>
> Björn Johansson
> Debian user (since Slink)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: finding what is using a mount point

2003-11-26 Thread Jakob Lell
On Friday 21 November 2003 14:43, Micha Feigin wrote:
> I mounted an image through a loop interface and now when I try to unload
> it I get a message:
> umount: /home/micha/tmp: device is busy
> I made sure no file is open from there but nothing helps.
> How do I see what is using that mount point?
Hello,
lsof and fuser can display all files accessing one mount point.

Regards
 Jakob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Knoppix on top of woody

2003-11-17 Thread Jakob Lell
Hello,
you might also just upgrade your woody sytem to KNOPPIX by installing all 
packages included in KNOPPIX.
1. Boot KNOPPIX
2. Open a root shell ([ctrl]+[alt]+[F1])
3. Run the following commands(hdXn is the device of your root partition):
mount /dev/hdXn /mnt
apt-show-versions -a>/mnt/knoppix_packages
4. Reboot to your woody system
5. Add testing and unstable sources to /etc/apt/sources.list
6. Run apt-get update
7. Save the following script to a file and chmod it 755
8. Run /path/to/script /knoppix_packages
9. apt-get -u dist-upgrade
10. Install a recent kernel

Regards
 Jakob


#! /usr/bin/perl

sub restore($)
{
my $list=shift;
print "restoring $list...\n";
my $command="echo Y|apt-get --reinstall install $list";
system $command || warn "can't restore $list:$!";
}
my $i;
my $list;
while(<>)
{
chomp;
next if /^$/;
/^([a-zA-Z0-9_.-]+)\/(\S+).+?(\S+)$/;
$i++;
$list.="$1=$3 ";
if($i>20) # restore 20 packages at once
{
restore($list);
$i=0;
$list="";
}
}
restore($list);



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Apt-get: move from cdrom to online-sources

2003-11-01 Thread Jakob Lell
On Saturday 01 November 2003 19:49, Haines Brown wrote:
...
> I did as you said, literally (commented out just the two proxy lines),
> and it may have gone better. This time I piped the output, so know I
> captured the entire file. It starts with a lot of this:
>
>   Err cdrom://[Debian GNU/Linux 3.0 r1 _Woody_ - Official i386
>   Binary-7 (20021218)] unstable/contrib Packages
>   Please use apt-cdrom to make this CD recognized by APT.
>   apt-get update cannot be used to add new CDs
>   Ign cdrom://[Debian GNU/Linux 3.0 r1 _Woody_ - Official i386
>   Binary-7 (20021218)] unstable/contrib Release
>
> I get this for all severel installation disks. Is this because the
> disks are listed in my /etc/apt/apt.conf file? If so, should the cdrom
> lines be removed from there; or should I just ignore all these error
> messages?
You have to remove/comment out the cdrom section of your /etc/apt/
sources.list. Then you won't get this error messages again.
>
> Finnally, I get to what I hope is what I am supposed to see:
>
> Hit http://ftp.br.debian.org woody/main Packages
> Hit http://ftp.br.debian.org woody/main Release
> Hit http://ftp.br.debian.org woody/contrib Packages
> Hit http://ftp.br.debian.org woody/contrib Release
> Hit http://ftp.br.debian.org woody/non-free Packages
> Hit http://ftp.br.debian.org woody/non-free Release
> Hit http://debian.teleglobe.net woody/non-US/main Packages
> Hit http://debian.teleglobe.net woody/non-US/main Release
> Hit http://debian.teleglobe.net woody/non-US/contrib Packages
> Hit http://debian.teleglobe.net woody/non-US/contrib Release
> Hit http://debian.teleglobe.net woody/non-US/non-free Packages
> Hit http://debian.teleglobe.net woody/non-US/non-free Release
> Reading Package Lists...
> Building Dependency Tree...
>
> "Hit" is a nice word. I hope it is what I should expect.
It means that there is no newer version of the file on the server.
>
> But it failed the test. I wanted to install sudo, which is not on my
> distribution cdroms, and so ran:
>
> # aptitude install sudo
>
> All I get is a lot of warnings that it can't find the file on the
> cdrom disks. No sign that it tried any web respositories. It is
> reading the cdrom section of my /etc/apt/sources.list, but not its
> deb-src http... entries.
You have to remove the cdrom section of your /etc/apt/sources.list.
>
> Haines

Regards
Jakob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Apt-get: move from cdrom to online-sources

2003-11-01 Thread Jakob Lell
On Saturday 01 November 2003 18:38, Haines Brown wrote:
> Jakob, a little light is begging to shine. In my reading I did not see
> anything about apt-cdrom, and so had to guess what had to be added to
> the config file. I guessed, wrong, it seems.
>
> > >   Err http://ftp.br.debian.org woody/main Packages
> > >     Could not connect to 127.0.0.1:3128 (127.0.0.1). - connect
> > >   (111 Connection refused)
> >
> > Hello,
> > this means that your proxy is down. Remove the proxy settings from your
> > /etc/ apt.conf and run apt-get update again.
>
> I removed the http subsection I had put into the /etc/apt/apt.conf
> file, and ran the apt-get update. Not sure if I succeeded. There was a
> lot I missed because scrolled off my xterm, and I can't copy/paste
> from xterm to get a decent example.
>
> However, from what I see, there's a lot about apt-get update should
> not be used to add new cds; I should use apt-cdrom for that (now that
> I know such a command exists, the man page is somewhat useful). A set
> of warnings like this is repeated for each of the seven original disks
> I had used to install debian. In fact, the entire response that I can
> see consists of this, except for the three final lines: Reading
> package lists..., Building dependency tree..., E: some index files
> failed to download.
This means that apt couldn't download some files. You can redirect the output 
of apt-get update to a file to see which files couldn't be downloaded:
apt-get update 2>&1 >apt.log
less apt.log
Probably you have either a typo in your /etc/apt/sources.list or your apt 
mirror is down.

Regards
Jakob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Apt-get: move from cdrom to online-sources

2003-11-01 Thread Jakob Lell
On Saturday 01 November 2003 16:23, Haines Brown wrote:
> Well, no, at least not now when I try it. I was only looking at the
> end of all the response, for I can't seem to copy/paste from an
> xterm. However, this time did an eshell in emacs and saved the buffer
> that resulted from the apt-get update to a file. Here is the first few
> lines:
>
>   Err http://ftp.br.debian.org woody/main Packages
>     Could not connect to 127.0.0.1:3128 (127.0.0.1). - connect
>   (111 Connection refused)

Hello,
this means that your proxy is down. Remove the proxy settings from your /etc/
apt.conf and run apt-get update again.

Regards
Jakob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to fix: glibc installed over libc6 broke system

2003-11-01 Thread Jakob Lell
On Saturday 01 November 2003 16:10, Rob Weir wrote:

> "dpkg-deb -X libc6_from_debian_not_suse.deb
> /place/you/mounted/your/broken/system"

dpkg can install packages in a chrooted environment:
dpkg --root=/path/to/your/system -i libc6_from_debian.deb

Regards
Jakob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: can't start KDE as user

2003-11-01 Thread Jakob Lell
On Saturday 01 November 2003 04:07, paul wrote:
> A dist-upgrade last night broke my formerly sid system.  I was getting
> seg-faults from almost everything including bash.
Hello,
if you run sid, you should really be able to use the debian bug tracking 
system. Your problem was probably caused by #218546.
Regards
Jakob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Restarting killed processes

2003-10-31 Thread Jakob Lell
On Friday 31 October 2003 20:25, BruceG wrote:
> > Ainsi parla BruceG le 304ème jour de l'an 2003:
> >> Hey all,
> >>
> >>I recently installed sendmail / ipopd / apache /squirrelmail to
> >>make a SMTP/POP mail server with a Web interface. I'm running
> >>Debian Stable. My PC is kind of clunky and old (100 Mhz, 16Meg RAM,
> >>1 Gig disk space). I've noticed that some processes stop overnight.
> >>Apache, mandb, klogd,... - mainly it's Apache that stops.
> >
> > Do they _really_ stop, or only logging ? if it's this one, man
> > logrotate may help you
>
> Yeah, they stop. I was on a different PC and tried to connect to my web
> server. Couldn't connect. I went to the server and saw the message "VM:
> killing process Apache" on the console. I tried wading through the logs,
> but they're a little difficult for a newbie to understand.
Hi,
your system is probably out of memory and so it has to kill some processes. 
Have you got enough swap space? AFAIK it is better to have a seperate swap 
partition instead of a swap file, as the filesystem driver may need some 
memory to write data to the swap file.
Regards 
 Jakob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: reconfiguring console keyboard layout

2003-10-31 Thread Jakob Lell
On Friday 31 October 2003 20:38, Nori Heikkinen wrote:
> i recently gave my laptop to another girl at work, with the debian
> install i'd done on it.  what i forgot, however, was that i'd set it
> up with the dvorak layout (oops).  this is no problem for X -- i just
> did a `dpkg-reconfigure xserver-xfree86` and switched the layout.  but
> for the instances when she needs to just use the console, i have to
> log in for her.
>
> i thought i could reconfigure this by doing a `dpkg-reconfigure
> base-config`, but it's not in there.  how can i reconfigure the
> keyboard layout of the base install to be qwerty for her?

dpkg-reconfigure console-data
>
> thanks,
>
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Kernel panic, desperate help needed.

2003-10-31 Thread Jakob Lell
Hello,
have you checke your system memory? To check the memory, reboot the system 
with memtest86 and look whether you get any error messages.
Regards
Jakob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Not-so-strange question about bind

2003-09-12 Thread Jakob Lell
On Fri, 12 Sep 2003 18:00:15 +0200, Ismael Valladolid Torres wrote:

> Hi,
> 
> Can I install a simple bind package, and with it, run two bind daemons
> on different ports serving the same domain using different zone files?
Why different ports? For your problem it is probably best to serve on
different interfaces/IPs
> 
> I am thinking of using the same machine to resolve the same machine
> names into a different set of IP addresses, internal ones for Intranet
> use, and the "visible" external one for external use.
Probably you have to interfaces: one external and one internal. You will
need two seperated bind configuration directories (just copy
/etc/bind(9)). Then you need a (slightly modified) copy of
/etc/init.d/bind(9). You can use the option listen-on in your bind configuration
to restrict both binds to one IP address.
> 
> I suppose, in the worst case, I could install both bind and bind9,
> hoping they don't conflict.
They do conflict, of course.
Maybe you should run your external bind chrooted and as user to enhance
security. (google will find some howtos).
> 
> Any feedback will be very useful, so thanks in advance.
> 
> Regards, Ismael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]