IP-tunnel
Jag har en kompis med en egen Debianburk som sitter bakom en henskt elak brandvägg. Han får inte ens en publik IP-adress, vilket innebär att han kan ringa ut, men ingen kan ringa in till honom. Vi försökte överföra varandras röster i realtid för att kunna prata, men vi kunde inte hitta nåt enda telefonprogram som inte använde UDP, och jag kan inte ens skicka såna paket åt rätt håll eftersom han inte har nån publik adress. Det slutade med att vi gjorde varsin pipe med brec, oggenc och nc i den sändande änden och nc och ogg123 i den mottagande. Han fick ringa upp mig för att starta båda TCP-kopplingarna, naturligtvis. Det hela fungerade jättebra, bortsett från att fördröjningen var typ 20 sekunder, ungefär som att prata med någon som befinner sig hyfsat långt ute i rymden. Finns det något bra sätt att tunnla UDP? Jag ser framför mig nån smart mojäng som ger oss varsin ny ethX som bara existerar i mjukvara, och som sitter ihop med en TCP-koppling, så att det för alla program som använder dessa interface ser ut som att datorerna är ihopkopplade direkt med en sladd. Finns det nåt sånt, eller nåt som kan duga lika bra? -- Kalle Hasselström, [EMAIL PROTECTED] www.treskal.com pgpqg8NuEbd9y.pgp Description: PGP signature
tangentbordsknapp som musknapp
Jag har en laptop vars touchpad bara har två musknappar. Då får man trycka på bägge samtidigt för att få ett klick med mittenknappen, vilket är ganska jobbigt. Jag har också använt xmodmap för att stänga av CapsLock, eftersom jag bara irriterar mig på den tangenten. Vet någon om det går (och i så fall hur man gör för) att få CapsLock-tangenten att generera samma X-event som mittenmusknappen ger? -- Kalle Hasselström, [EMAIL PROTECTED] www.treskal.com pgp1JoC9E8NR0.pgp Description: PGP signature
svensk avstavning i LaTeX
Jag använder följande rad i mina .tex-filer om jag skriver på svenska: \usepackage[swedish]{babel} Det gör att diverse saker blir på svenska (t.ex. Figur 1 istället för Figure 1), och säkert en massa annat också som jag inte känner till. (Om nån är på förklararhumör ... :-) Men. En sak som ska hända är att avstavningsregler specifika för svenska ska användas. Det verkar inte som att det blir så, för när jag kör $ latex minfil.tex så skriver den bland annat det här: Package babel Warning: No hyphenation patterns were loaded for (babel)the language `Swedish' (babel)I will use the patterns loaded for \language=0 instead. Är det något speciellt Debianpaket man måste ha för att få nån fil som den letar efter (och inte hittar), eller vad? (Jag kan inte verifiera att avstavningen inte fungerar i alla fall, eftersom en del ord faktiskt blir avstavade. Men inte många; kanske får den så stora mellanrum att den bestämmer sig för att avstava trots att den inte vet hur?) -- Kalle Hasselström, [EMAIL PROTECTED] www.treskal.com pgpkWzc4rHu5d.pgp Description: PGP signature
Re: debian möte i Stockho lm 30:e dec på kvällen
On Mon, Jan 07, 2002 at 08:32:16PM +0100, André Dahlqvist wrote: Mikael Andersson [EMAIL PROTECTED] wrote: Gimp brukar gå att resiza saker med. Om dom inte är alldeles för många och för stora så kan jag nog lägga dom på min server på stand. Man kan även använda mogrify (jo, det stavas så) från imagemagick på följande sätt: Vad är det egentligen för skillnad på convert och mogrify? De ligger ju i samma paket, så _helt_ lika kan de ju inte vara... -- BOFH excuse #301: appears to be a Slow/Narrow SCSI-0 Interface problem -- Kalle Hasselström, [EMAIL PROTECTED] www.treskal.com pgptAi8PS72P9.pgp Description: PGP signature
Re: Wanda the fish
On Tue, Aug 14, 2001 at 08:32:50AM -0500, Colin Watson wrote: On Tue, Aug 14, 2001 at 09:01:13PM +1000, Damon Muller wrote: Quoth Kurt Dresner, Wanda the fish just randomly swam across my screen. What the heck is going on with my computer? Presumably you're running GNOME. I remember reading somewhere that it's one of the (many?) GNOME easter eggs. I don't really know anything more about it, but I believe it's harmless. Yep. I had a look at the code (in the GNOME panel) once when it had just happened to me, and I think it's expected to happen once a month or so. You'll find the graphics for it in /usr/share/pixmaps/fish/fishanim.png. H. Having open source kind of takes the mystery out of this sort of thing ... :-( -- BOFH excuse #289: Interference between the keyboard and the chair. -- Kalle Hasselström, [EMAIL PROTECTED] pgpVT0hN4oKlR.pgp Description: PGP signature
jdk 1.3
What packages supply jdk 1.3? Are there any packages at all of sun's jdk, or is it not free enough? -- BOFH excuse #38: secretary plugged hairdryer into UPS -- Kalle Hasselström, [EMAIL PROTECTED] pgptGkVKGaiY9.pgp Description: PGP signature
Re: jdk 1.3
On Fri, Aug 10, 2001 at 12:21:35PM +0200, Olivier Bourgeois wrote: Le Fri, 10 Aug 2001 12:12:25 +0200 Kalle Hasselström [EMAIL PROTECTED] a ecrit : What packages supply jdk 1.3? Are there any packages at all of sun's jdk, or is it not free enough? Hi, personally I'm using blackdown jdk version 1.3.1 . It is supplied as a debian package. I added this to my sources.list : deb ftp://ftp.oleane.net/pub/java-linux/debian potato non-free You should take a look at the mirrors list : http://www.blackdown.org/java-linux/mirrors.html Thanks, it works great! Though with no local mirror, the download was kinda slow. :-( Who exactly are blackdown? Are they making their own jvm and stuff, or do they tweak sun's code or what? (And in that case, why?) -- BOFH excuse #33: pizeo-electric interference -- Kalle Hasselström, [EMAIL PROTECTED] pgpOfjNj0c9es.pgp Description: PGP signature
Re: setting up an ftp server
On Mon, Jul 30, 2001 at 12:20:59PM -0500, William Jensen wrote: Kalle, I'm a large fan of bsd-ftpd. It's simple to install and straight forward to configure. First off after you run apt-get install bsd-ftpd you should open a new shell and type man in.ftpd. Read that file over and you will find a direct howto on how to configure your ftp directories and what files should or shouldn't be there and with what permissions. As one poster notes, be careful with your incoming directories permissions. For example, I have mine set to 000 until I'm ready to actually upload something, then I ssh into home, chmod the incoming directory to 777 and upload, then change it back. If you leave it wide open you will be hosting pirate sites in no time. Good luck. Wm This was my size! proftpd seems very nice, but all I want to do is enable ftp uploads/downloads for _one_ user account (mine). Two more questions popped up, regarding inetd. bsd-ftpd is started by inted on incoming calls. How can I a) Temporarily disable ftp? I thought it would be a good idea to do this when it's not being used, to be on the safe side. I won't be using it much at all, not even once a week. b) Change the port? The default port for ftp is 21, but I'd like it to use 12345 or something instead. This is just to confuse people, especially my ISP who with a rather sweeping statement disallows servers. They just want to keep the traffic volume down, and I won't be generating overly much traffic, but nevertheless I thought it might be prudent to assume that they check for requests on ports 21 and 80. -- Kalle Hasselström, [EMAIL PROTECTED] pgpFmBc6kfVAY.pgp Description: PGP signature
Re: setting up an ftp server
On Mon, Jul 30, 2001 at 02:00:43PM -0500, Dimitri Maziuk wrote: * Kalle Hasselström ([EMAIL PROTECTED]) spake thusly: ... Two more questions popped up, regarding inetd. bsd-ftpd is started by inted on incoming calls. How can I a) Temporarily disable ftp? I thought it would be a good idea to do this when it's not being used, to be on the safe side. I won't be using it much at all, not even once a week. IIRC xinetd allows you to set date/time based access controls. You could do more with a wrapper around in.ftpd, if you can write a wrapper like that. You could go as far as write a wrapper that needs a specific packet -- if it receives that, it spawns ftpd, otherwise it drops the connection (knock first, often used by trojans). Or you could run ftpd standalone, ssh to the box and do /etc/init.d/ftpd start before ftp'ing. Good idea! The following does what I want: [contents of /usr/local/sbin/in.ftpd] -- #!/bin/sh # Run the real in.ftpd, but only if the file /etc/allowftp exists. if [ -e /etc/allowftp ]; then /usr/sbin/in.ftpd $* fi -- It's an on/off switch that's only reachable from the inside. b) Change the port? The default port for ftp is 21, but I'd like it to use 12345 or something instead. This is just to confuse people, especially my ISP who with a rather sweeping statement disallows servers. They just want to keep the traffic volume down, and I won't be generating overly much traffic, but nevertheless I thought it might be prudent to assume that they check for requests on ports 21 and 80. Would 12345 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.ftpd -q work? Also, you can tell standalone server what port to listen to, e.g. Port 12345 for ProFTPD. Works like a charm (note that it's been modified to call the wrapper script instead as well): [slices from /etc/inetd.conf] -- #ftp stream tcp nowait root/usr/sbin/tcpd /usr/sbin/in.ftpd -q 12345 stream tcp nowait root/usr/sbin/tcpd /usr/local/sbin/in.ftpd -q -- Thanks! -- Kalle Hasselström, [EMAIL PROTECTED] pgpdTpIekJl0D.pgp Description: PGP signature
setting up an ftp server
Currently, the only service I'm running is ssh, as this meets my requirements both regarding remote logins and file transfers. However, ssh clients, especially the file-transfering sort, are not a standard item on most mac and windows computers, and now and then I find the need to talk to my computer from the strangest places (for example, I need to scan a bunch of images, and the only scanners I have easy access to are hooked up to Macs). How much of a security risk would it be to run an ftp server? Is the biggest risk the clear-text passwords (I won't be transferring confidential files, I just don't want anyone to break in), or are there other major security holes as well? Would I be reducing the risk by just running the server while I need it (I'm the sole user on my box), or might I just as well leave it running? What server should I install? I found several with apt-cache search ftpd. I want one that's safe, convenient for a one-user system, safe, easy to configure (and hard to misconfigure), and safe. Any recommendations? -- Kalle Hasselström, [EMAIL PROTECTED] pgpYBfYiCT0RI.pgp Description: PGP signature
Re: balsa: orphaned?
On Thu, Jul 26, 2001 at 01:58:08AM -0700, Erik Steffl wrote: (I am looking for a MUA that supports IMAP (and SSL)) mutt is a very good choice, unless you absolutely must have a graphical mailer. It supports most mail protocols and mailbox formats, including IMAP and SSL. -- Kalle Hasselström, [EMAIL PROTECTED] pgpStceUKbu4t.pgp Description: PGP signature
nslookup and packages
What package contaisn nslookup? Is there a command that lists all packages that supply command (or file) foo? -- Kalle Hasselström pgpegxeJdD3tN.pgp Description: PGP signature
Re: nslookup and packages
On Thu, Jul 26, 2001 at 07:49:28AM -0500, ktb wrote: On Thu, Jul 26, 2001 at 02:49:51PM +0200, Kalle Hasselstr?m wrote: What package contaisn nslookup? Is there a command that lists all packages that supply command (or file) foo? Try - $ apt-cache search nslookup [cut] That's what I thought too. But [EMAIL PROTECTED]:~ apt-cache search nslookup ptknettools - A selection of Internet service clients written in Perl/Tk [EMAIL PROTECTED]:~ And that thing only runs under X. dnsutils was the right package -- it seems the best solution is to ask you guys. :-/ Thanks. -- Kalle Hasselström pgp26MEYDQVEq.pgp Description: PGP signature
Re: TeX fonts
On Tue, Jul 24, 2001 at 08:46:54PM -0500, Dave Sherohman wrote: dvips sends its output directly to the printer by default and I haven't gotten around to determining how to change that yet, so I've been viewing it as rendered by an HP LaserJet (IIRC) 5000. From the dvips manpage: -o name The output will be sent to file name If no file name is given, the default name is file.ps where the .dvi file was called file.dvi; if this option isn't given, any default in the configuration file is used. If the first character of the supplied output file name is an exclamation mark, then the remainder will be used as an argument to popen; thus, specifying !lpr as the output file will automatically queue the file for printing. This option also disables the automatic reading of the PRINTER environment variable, and turns off the automatic sending of control D if it was turned on with the -F option or in the configuration file; use -F after this option if you want both. // Kalle Hasselström pgp0LpxUQG4tg.pgp Description: PGP signature
Re: Mutt and KMail harmony?
On Wed, Jul 25, 2001 at 10:25:25AM -0400, Jason Rashaad Jackson wrote: Hello all: I presently use both KMail and Mutt to check my e-mail. Fetchmail grabs my e-mail from an IMAP server and stores it locally in /var/mail/jrashaad. If KMail isn't running, I use Mutt remotely to check my mail (leaving it in /var/mail/jrashaad). If KMail is running it picks it up, filters it, and sticks it in various folders. The problem comes when I try to view one of those folders in Mutt. I have no problem viewing the folder and reading the e-mail, however when I try to look at the same folder in KMail, suddenly the headers are wrecked, and KMail switches the subject to 'No Subject' and the sender to 'Unknown'. Checking the folder again in Mutt, everything looks fine, but KMail refuses to touch them from that point on. I think my solution might be stop using KMail, and just set up procmail to do the filtering that KMail is doing now, but I'd rather keep using it. Any advice? Here's my info: Debian v.2.2r3 (Kernel 2.4.5) Qt v.2.3.0 KDE v.2.1.2 KMail v.1.2 Fetchmail-SSL v.5.8.3 I considered using the pair KMail/mutt as well, using procmail for sorting. However, I decided against using that after reading in the KMail docs that other programs must not touch the mboxes that KMail use while KMail is running -- I think it said there would be consistency problems or some such. And that would happen, since I've set fetchmail to deliver mail every 15 seconds. If you take a look at your ~/Mail directory, you'll see that for every mbox file foo, KMail has created a .foo.index file (or something like that). It doesn't seem too far-fetched to assume that KMail uses those files to store headers and such for quick retrieval, and if that's the case, editing only foo with another program is sure to make the info in .foo.index invalid. But KMail doesn't know that ... This is all just speculation, but if I'm right, you simply can't use KMail in parallel with another mail program. Unless you store all your mail on an IMAP server; IMAP was designed with something like this situation in mind. Mutt has IMAP support, and KMail will have very soon (just wait for KDE 2.2). If you don't want to or can't store all your mail on the IMAP server you already mentioned, you could always run your own. However, using fetchmail+procmail+mutt is a very good solution. That's what I use, and I'm very happy with it. But I want KMail too, so I might just set up an IMAP server myself. // Kalle Hasselström pgp7nkFMCPcRb.pgp Description: PGP signature
Re: Another Question regaring X setup
On Tue, Jul 24, 2001 at 02:32:27PM -0500, Alex Thomas wrote: Thank you for all the help, but as I am a refuge from NT please give me the complete path as ~/.xsession or ~/.xinitrc does not make much sense to me at this point. Again Thank You for your help Alex ~ is just another name for your home directory (typically /home/yourusername). ~/.xinitrc is a perfectly valid file name (the same as /home/yourusername/.xinitrc); try opening it in your favorite text editor! // Kalle