Re: Compiling a kernel for another machine
Sebastiaan wrote: Hi, has anyone an idea how to cross compile a kernel, so to compile a kernel for a ppc on an i386? Just curius. Greetz, Sebastiaan Hi, you'll have to set up gcc as a cross compiler and look at the patches in the kernel sources for ppc. regards Albrecht
Re: pppoe running as user?
reiner wrote: [snip] Here are the relevant output from ppp.log again: snip Jan 26 18:56:12 nathan pppd[10027]: Using interface ppp0 Jan 26 18:56:12 nathan pppd[10027]: Connect: ppp0 -- /dev/pts/3 Jan 26 18:56:12 nathan pppd[10027]: sent [LCP ConfReq id=0x1 mru 2400 asyncmap 0x0 magic 0x616b5262 pcomp accomp] Jan 26 18:56:12 nathan pppd[10027]: write: warning: Input/output error (5) snip What is the reason for the warning message in the last line? greetings Reiner Stallknecht Hi, I don't know the reason for this warning. At my box I had the same problems with pppoe (from woody) too until I upgraded from potato to woody with kernel 2.2.18pre21 --- the kernel 2.4.0test11 didn't start up correctly. Now all programs run perfectly. Regards Albrecht
Re: Partitions Correction
Leonard Leblanc wrote: Sorry I just realized that I didn't give any information in the previous post. My system is a 400mhz with 128 megs of RAM and a 15 gig HD I will be running a firewall, dns, www, ftp, ssh, proxy, pop and maybe something else. What partitions would be useful? Leonard Leblanc Hi, that are the partitions in my firewall box --- a 486DX2 66 with 16MB RAM running additional proxy squid and junkbuster. You'll have to add partitions for the data you want to serve and configure the programs. Disk /dev/hda: 255 heads, 63 sectors, 784 cylinders Units = cylinders of 16065 * 512 bytes Device BootStart EndBlocks Id System /dev/hda1 1 1 8001 83 Linux /dev/hda2 265514080 83 Linux /dev/hda3 *66 784 5775367+ 5 Extended /dev/hda56681128488+ 82 Linux swap /dev/hda682 784 5646816 83 Linux Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda2 497936415428 56804 88% / /dev/hda6 5469584853440 4333804 17% /var /dev/hda1 7746 4642 2704 64% /boot If you don't want to serve the internet with dns it's not very wise to put the name server into the firewall. If that box is cracked, you put the way to your other (internal) net on the plate of the cracker. regards Albrecht
Re: IP masq
Gabor Gludovatz wrote: Hi, I connect to the Internet from a masqueraded LAN through a masquerading gateway/proxy server. My problem is that, if I am logged in to somewhere outside our network with ssh or telnet, after a little while of inactivity the gateway resets the connection and I have to reconnect. The proxy server is a Deb 2.1 with kernel 2.0.38. What should I set in its kernel if I want to keep the connection even if it's idle? (it's all the same, wherever I connect to, I get disconnected, so it's not a logoutd thing.) -- Gabor Gludovatz [EMAIL PROTECTED] http://www.sopron.hu/~ggabor/ Hi, it seems to me like a time out for idle lines. Search in th configuration files of ppp/ippp for a parameter huptimeout or so. Greetings Albrecht
Re: pppoe running as user?
reiner wrote: Hi all, Today i got my brand new ADSL-Toy :-) It works fast and without problems so far, but only root can start the connection via pon dsl (renamend dsl-provider to dsl). Kernel 2.2.18; Debian unstable; pppoe user space I get the following in var/log/ppp.log as root: [snip] Hi, I've got a question: which release of pppoe are you running? In my box runs 1.7.1 from woody and its started and stopped via /etc/init.d/pppoe by root. It's actually running as root. greetings Albrecht
Re: Magic cookies and running programs under X as root
Terry Carney wrote: On Sat, 27 Jan 2001, Christopher R. Barry wrote: Xlib: connection to :0.0 refused by server Xlib: Client is not authorized to connect to Server Error: Can't open display: :0.0 I guess tonight I finally want to get around to figuring out how to stop this from happening. What do I do so I can run programs as root? Hi, try man xauth xauth -v merge . works across machines Greetings Albrecht
Re: A little sed
N. Raghavendra wrote: On Fri, Jan 26, 2001 at 11:19:53AM +0100, Hans wrote: - I need to clean up a bunch of html files from SCRIPT /SCRIPT tags. I tried sed -e s/\SCRIPT.*SCRIPT\// file.html file.html2, but it only deletes the first line, not the whole script. The /m modifier doesn't seem to work. How do I go about it. - Is it possible to overwrite the original file, not redirect to an alterate file? - How do I process a bunch of files at once? sed -e s/foo/bar/ *.html *html2 doesn't seem to do it. Or need it be something like for $i in * do? I can't seem to get this to work either. Hi, You could use the shell scripts 'overwrite' and 'replace' in Kernighan and Pike, The UNIX programming environment, Chapter 5, Section 5.5, pages 154-155. Best, Raghavendra. Hi, perheps you can solve the problem with awk, where you can set variables in the script. Greetings Albrecht