From: Digestifier To: Linux-Admin@senator-bedfellow.mit.edu Reply-To: Linux-Admin@senator-bedfellow.mit.edu Date: Sun, 2 Oct 94 10:13:39 EDT Subject: Linux-Admin Digest #133 Linux-Admin Digest #133, Volume #2 Sun, 2 Oct 94 10:13:39 EDT Contents: Re: Major Slip problems (Benjamin John Walter) Re: COLORS with the ECHO command -*- HOW TO DO ??? (Benjamin John Walter) Segementation Fault swapfile: mkswap swapon (Dieter Stüken) Re: Assuring that a PPP link stays up... (Ralph Sims) Need help to correct LILO (Jason Hong) Re: SOLUTION Re: SMail security hole? (Patrick Schaaf) dip-3.3.7h-uri & ZyXel U1496E (Dirk Hillbrecht) Re: WABI, WP, Word, etc. (Brandon S. Allbery) Re: No Hostname (Brad Matthew Garcia) Re: HOW to transfer LARGE SINGLE file between Sun5.3 and Linux (Alan Braggins) help on patching kernel source (Anton de Wet) on board SCSI in Zeos systems (TIELEMAN PETER) Re: 80x50 screen (Ed Beaumont) Re: COLORS with the ECHO command -*- HOW TO DO ??? (Ed Beaumont) Re: A couple simple questions (Ed Beaumont) Re: how to install SCSI tape drive (David Fox) ---------------------------------------------------------------------------- From: ben@tsunami.demon.co.uk (Benjamin John Walter) Subject: Re: Major Slip problems Date: Sat, 1 Oct 1994 20:24:57 +0000 : 3) telnet remote host : 4) I receive a message saying "Trying ..." : 5) After 3 to 5 minutes of waiting it gives me a message saying, "unknown host" Hi, does your computer get as far as resolving a hostname into an IP address? If not, try telnet with an IP address instead of a name and see if that works (you can find out the IP address from another (working!) computer)... if that does, chances are is that computer is having problems resolving names, probably due to an incorrect configuration in /etc/host.conf or /etc/resolv.conf. If you thinks thats the problem, the these files should read something like this: /etc/host.conf: order hosts, bind multi on /etc/resolv.conf: domain demon.co.uk nameserver 127.0.0.1 (substitute your domain for 'demon.co.uk' and the IP address for your nameserver in place of '127.0.0.1') Peace, Ben -- __ _ / / (_)__ __ ____ __ ------------------------------ From: ben@tsunami.demon.co.uk (Benjamin John Walter) Subject: Re: COLORS with the ECHO command -*- HOW TO DO ??? Date: Sat, 1 Oct 1994 20:30:12 +0000 : |> Does anyone know how to use the colors with the echo : |> command, or how to use escape codes with term and echo ? : |> : |> I like the colors in my directory and want to use them : |> also for shell scripts but how...? : e.g. : echo '\033[1mhello\033[m' : change the 1m for the respective back and fore ANSI colors. You can get a list of the color codes in /etc/DIR_COLORS, here's an extract: # Below are the color init strings for the basic file types. A color init # string consists of one or more of the following numeric codes: # Attribute codes: # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed # Text color codes: # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white # Background color codes: # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white NORMAL 00 # global default, although everything should be something. FILE 00 # normal file DIR 01;34 # directory LINK 01;36 # symbolic link FIFO 40;33 # pipe You need to use the escape sequence ^[[ in front of the numbers, and the suffix 'm'. You can get '^[' from the command line by pressing control-v and then escape, or from emacs by pressing control-Q then escape. E.G. to echo something in blue (the color used for directories by ls) echo '^[[01;36mBlue^[[00m' Peace, Ben -- __ _ / / (_)__ __ ____ __ ------------------------------ From: Subject: Segementation Fault Reply-To: Date: Sat, 1 Oct 1994 21:48:18 GMT Hi folks I am working on graphics application using srgp and sphigs in my Ambra EVL/66 DX2. My interaction with Linux and its friend thus far had been smooth until I used srgp and sphigs to write programs for my graphics class. I compiled the libraries and put the libsrgp.a and libsphig.a in the approprate dir's, and it complies with out problem, when I tried to execute them I get the message "Segementation Fault" would someone kind enough to shade light what it means. Does any body knows that the libphigs.a in /usr/X11/lib is the actual phigs or is it phigs plus standard library, and further more would some one knows if there are special linux specific compiled of srgp and sphigs library. ------------------------------ From: stueken@qgp.uni-muenster.de (Dieter Stüken) Subject: swapfile: mkswap swapon Date: 30 Sep 1994 10:16:03 GMT When I notice my Linux (several user, 16Mb) running low on swapspace I frequently create some additional swapfile (if there is some disk space) and attach it: dd if=/dev/zero of=/swapfile bs=1024 count=4 mkswap /swapfile 4096 swapon /swapfile However, frequently the system did not accept the newly created swapfile. The reason is, that writing the swap signature to the swapfile ends up in the Linux buffer pool, whereas the swapon system-call bmap's the file directly from disk. The solution is quite easy: sync after mkswap! Perhaps this call should be implemented directly in the mkswap command. --- Dieter Stueken, Inst. f. Kernphysik, WWU-Muenster stueken@qgp.uni-muenster.de stueken@VSIKP0.uni-muenster.de ------------------------------ From: ralphs@halcyon.halcyon.com (Ralph Sims) Crossposted-To: comp.protocols.ppp Subject: Re: Assuring that a PPP link stays up... Date: 30 Sep 1994 21:33:10 GMT simmons@EE.MsState.Edu (David Simmons) writes: >Does anybody have a good, well thought-out system of assuring that a PPP >link between two UNIX boxes stays up, through the use of crontab entries? locus.halcyon.com:/pub/linux/ppp-on and ~ppp-off locus is on a 14.4 PPP link, so please be gentle. ------------------------------ From: hong@csulb.edu (Jason Hong) Subject: Need help to correct LILO Date: 30 Sep 1994 11:36:35 GMT I just got a slackware Linux 2.0 and installed on my machine. Somehow, I messed up and Bootdisk does not start Linux. In my lilo.conf, I only have DOS section because I want to start Linux only from Boot-Floppy. Also, how can I make changes for my Mitsumi CD-ROM working? My base address for Mitusumi is 0x340 and irq 11, but Linux setup is base address 0x300 and irq 11. Can anybody give me good example of 'lilo.conf' file? I installed only Toolkit for Linux part 1 which is one of two CDs. Do I have to install the second CD-ROM in order to use X-Windows? Thank you for your helps, Jason -- +-------------------------------+-------------------------------+ | Documentary Photographer, | hong@csulb.edu | | Auto-Mechanics, | Academic Computing Services | | BS in Civil Eng. & | Cal. State Univ.@Long Beach | | Software Engineer | 310)985-7577 | +-------------------------------+-------------------------------+ ------------------------------ From: bof@wg.saar.de (Patrick Schaaf) Crossposted-To: comp.os.linux.help,comp.os.linux.development Subject: Re: SOLUTION Re: SMail security hole? Date: 30 Sep 1994 12:01:11 -0000 (I wrote) >Without check_path, smail doesn't allow you to append to files >not owned by the user (append_as_user does that), but it allows >creation of new files in inaccessible directories. OK. After several mails indicating that smail does not have that problem, I looked more closely. The culprit is in the OS configuration. The hole doesn't show iff you 'HAVE=...SETEUID...' set in conf/os/linux - smail then uses seteuid() to play with userids, and neither needs nor uses check_path. If you compile without SETEUID, check_path is neccessary. I just recompiled my smail with SETEUID and can now safely omit check_path. It doesn't hurt to have it in there, so it is still a good idea to put check_path in the file transport configuration. Sorry for any confusion this might have caused, but the problem seems to exist in some distributions, so I think it is important. Patrick (followups set a bit more reasonably than last time) ------------------------------ From: hillbrec@informatik.uni-hannover.de (Dirk Hillbrecht) Subject: dip-3.3.7h-uri & ZyXel U1496E Reply-To: hillbrec@informatik.uni-hannover.de Date: Fri, 30 Sep 1994 11:01:39 GMT Hello everyone, I cannot make the two ones mentioned in the header work together. ZyXEL has ROM 6.12, kernel is 1.1.51, dip is dated 5.9.94. Script's start is as follows: ************* get $local walhalla get $remote tserv # Set netmask on sl0 to 255.255.255.0 netmask 255.255.255.0 default # Set the desired serial port and speed. port ttyS1 speed 38400 print Now connecting $local ($locip) towards $remote ($rmtip)... # Reset the modem and terminal line. # This seems to cause trouble for some people! reset # Prepare for dialing. send ATQ0V1E1X4T&N17\r wait OK 2 if $errlvl != 0 goto modem_trouble_1 dial 1613075 if $errlvl != 0 goto modem_trouble_2 wait CONNECT 60 if $errlvl != 0 goto modem_trouble_3 # We are connected. Login to the system. ************* It breaks directly after dialing (and goes to modem_trouble_2). An older script (and dip-3.3.7) make the connection with the very same modem without any problems, and I do not know where to search for the error. Can anyone help? Greetings, Dirk ------------------------------ From: bsa@kf8nh.wariat.org (Brandon S. Allbery) Subject: Re: WABI, WP, Word, etc. Date: Fri, 30 Sep 1994 11:34:01 GMT In article <1994Sep29.233335.3651@taylor.infi.net>, mark@taylor.infi.net (Mark A. Davis) says: +--------------- | Such an emulator would not run under iBCS. It uses kernel hooks.... +------------->8 They got rid of the pure emulation that SoftPC did, then? That would imply separate code bases for x86 and non-x86 platforms. (But also it would be faster on x86...) ++Brandon -- Brandon S. Allbery KF8NH [44.70.4.88] bsa@kf8nh.wariat.org Linux development: iBCS2, JNOS, MH ~\U Daily dreading Nehemiah Scudder^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^HRush Limbaugh ------------------------------ From: garcia@ece.cmu.edu (Brad Matthew Garcia) Subject: Re: No Hostname Date: 30 Sep 1994 11:45:15 GMT In article , cully@ritz.mordor.com (Robert J. Shmit) writes: |> David - Morris (dwm@shell.portal.com) wrote: |> : I have both /etc/HOSTNAME and /etc/hostname on my system and it |> : still can't remember the hostname between boots. I issue: |> : hostname gate |> : from root (gate is the hostname) when I start and that fixes things. |> |> i had the same problem myself.. the problem is that slackware distribution |> has a botched up hostname bin.. the new bin works fine.. Could you please tell me where to get the new bin? Do I need an upgraded 'a' disk set? Does anyone know? -- Brad M. Garcia Carnegie Mellon University ____/ ____/ ____/ Department of Electrical and Computer Engineering __/ / __/ "The only Engineering department in the world where _____/ _____/ _____/ the secretaries have the most powerful computers." ------------------------------ From: armb@setanta.demon.co.uk (Alan Braggins) Subject: Re: HOW to transfer LARGE SINGLE file between Sun5.3 and Linux Date: Tue, 20 Sep 1994 08:41:19 GMT In article <35cu25$75e@wrench.me.rochester.edu> jli@wrench.me.rochester.edu (Jingsong Li) writes: I want to transfer a binary file between Sun5.3 and Linux. Generally, I use "tar" to transfer file, but it seems that "tar M" does not work on the Sun's tar. The file is larger than 1.44MB. What can I do? Although "split" is line oriented, and designed for text files, you can usually play around with the parameters to get reasonable size chunks. Then stick each chunk on a floppy, then "cat" them together at the other end. Or you can write a binary split. It's pretty short, so here's one someone else did earlier... ======================================================================= This is a little C program to split files by size in bytes, rather than by lines like the default Unix split. I use it to split large archives to take home to unpack on the amiga by putting them on PeeCee format disks. If anyone out there has a method of reading a multi-volume tar archive off of disks with a PeeCee sector format let me know! The program is supplied as source and should compile with any ANSI standard C compiler (if you have gcc on your system just type "make"). Once you have compiled it, the command syntax is, e.g.: bsplit GNUEmacs18-58.lha emacs.l 720000 Will produce files emacs.laa, emacs.lab, etc. of length suitable to fit one of each on a PeeCee DS/DD 3.5" floppy. They can then be read into your Amiga with MessyDOS or whatever and reassembled with: join emacs.laa emacs.lab ... as GNUEmacs18-58.lha or, if you have reed them in sequence: join emacs.l?? as .... I realise this is not an amazing piece of code but we're not all programmers out there :-) Dave dcc@dcs.ed.ac.uk Feb 23 1993 ======================================================================= #include #include FILE *infile=NULL,*outfile=NULL; char *invokename; void *buffer=NULL; void bailout(void) { if (infile) fclose(infile); if (outfile) fclose(outfile); if (buffer) free(buffer); fprintf(stderr,"Usage: %s infile outprefix chunksize\n",invokename); exit(1); }; int main(int argc, char **argv) { char outname[256]; int size,chunks; int seq=0,nameend=0; invokename=argv[0]; if (argc != 4) bailout(); chunks=atoi(argv[3]); if (chunks < 1) bailout(); if ((buffer=malloc(chunks)) == NULL) bailout(); infile=fopen(argv[1],"r"); if (! infile) bailout(); strncpy(outname,argv[2],250); while (nameend < 250 && outname[nameend]!=0) nameend++; outname[nameend+2]='\0'; /* fprintf(stderr,"%d\n",nameend);*/ do { size=fread(buffer,1,chunks,infile); if (size > 0) { outname[nameend+1]=(seq % 26) + 'a'; outname[nameend]=(seq++ / 26) + 'a'; if (! (outfile=fopen(outname,"w"))) bailout(); /* fprintf(stderr,"Writing\n");*/ if (fwrite(buffer,size,1,outfile) < 1) bailout(); /* fprintf(stderr,"Closing\n");*/ fclose(outfile); }; } while (size == chunks); fclose(infile); return 0; }; -- Alan Braggins armb@setanta.demon.co.uk abraggins@cix.compulink.co.uk "Any technology distinguishable from magic is insufficiently advanced" ------------------------------ From: adw@Chopin.rau.ac.za (Anton de Wet) Subject: help on patching kernel source Date: 30 Sep 1994 12:42:36 GMT I'm trying to get the newest kernel to compile (think it is 1.1.51) To work with I have : linux-1.1.45.tar.gz patch46..51 To patch the kernel I'm doing the following: 1) remove link to current kernel src 2) pwd=/usr/src 3) tar -xzf linux-1.1.45.tar.gz 4) patch < patch46 5) strain eyes at text flashing by @ 1000 mph (everything seems to say ........ succeeded) 6) patch < patch47 ......... etc Now the problem: after certain patches new files (and their .orig) are left in /usr/src namely: ncp.h after patch47 ni52.c ni52.h ni65.c ni65.h entry.S after patch48 blkdev.h after patch49 Where should these files go, or am I ddoing something wrong? Thnx Anton ------------------------------ From: tieleman@ucsub.Colorado.EDU (TIELEMAN PETER) Subject: on board SCSI in Zeos systems Date: 30 Sep 94 12:37:59 GMT Hello all, I am thinking of getting a SCSI drive for my Zeos dx66, running Linux. Is there anybody out there who uses the on board SCSI chip Zeos offers? I would like to get an idea of how it compares with SCSIcontrollers cards, if it works with Linux, and if it works with 1GB SCSI-2 drives, for instance the Seagate Barracuda. Thanks for any information, Peter Tieleman ------------------------------ From: morlok@abyss.apana.org.au (Ed Beaumont) Subject: Re: 80x50 screen Date: 2 Oct 1994 18:58:24 +1000 s010dls@alpha.wright.edu wrote: : Is there a way to use 80x50 text mode in Linux? I have a ATI mach32 : card, and I know it is capable of this. It is possible to change your video mode via lilo. Set the video mode to ASK. Then press return when you reboot. You will be presented with a list of modes available on your card. You can set this permanently by using the number of the mode you use instead of ASK in you lilo.conf. I occasionally use 132x66 mode when Im using irc of tin - makes for better usage of the screen. Im not sure if there is a way of changing this when you have already started. Perhaps someone else can provide an answer. -- |\ . /| . . Morlok (Ed Beaumont) |._^_./^|.'|.~ . UUCP Coordinator - APANA Brisbane / // ....,/~',~~ (uucpmaster@brisbane.apana.org.au) < -/~,~,~~.~ . System Operator of Abyss of Shadows BBS {. (0 -./~,~~,~ . (morlok@abyss.apana.org.au) / \ -,~,~,~~~ . / . ) ..~~~~. . "The Eagle may soar, but a weasel never / / ;__./|< \ .~~~~.~ . . gets sucked into a jet engine" {___} / \ \ .~~~~.~ . Simon & Simon ------------------------------ From: morlok@abyss.apana.org.au (Ed Beaumont) Subject: Re: COLORS with the ECHO command -*- HOW TO DO ??? Date: 2 Oct 1994 19:03:46 +1000 NISCHELWITZER Alexander Kurt (nischi@icg.tu-graz.ac.at) wrote: : Does anyone know how to use the colors with the echo : command, or how to use escape codes with term and echo ? : I like the colors in my directory and want to use them : also for shell scripts but how...? Im producing a small colouring util that will allow you to add ansi colour escapes into your echo lines by doind things such as echo "`lgreen`This is light green.`default`". It should be ready by the end of this week (unless other things get in the way.) -- |\ . /| . . Morlok (Ed Beaumont) |._^_./^|.'|.~ . UUCP Coordinator - APANA Brisbane / // ....,/~',~~ (uucpmaster@brisbane.apana.org.au) < -/~,~,~~.~ . System Operator of Abyss of Shadows BBS {. (0 -./~,~~,~ . (morlok@abyss.apana.org.au) / \ -,~,~,~~~ . / . ) ..~~~~. . "The Eagle may soar, but a weasel never / / ;__./|< \ .~~~~.~ . . gets sucked into a jet engine" {___} / \ \ .~~~~.~ . Simon & Simon ------------------------------ From: morlok@abyss.apana.org.au (Ed Beaumont) Crossposted-To: comp.os.linux.help Subject: Re: A couple simple questions Date: 2 Oct 1994 19:07:28 +1000 Nathan Dwyer (nate@netcom.com) wrote: : Secondly, I can't receive files over the modem with minicom. The blue : receive box comes up, pauses for a bit, then dissapears. If I use xmodem : and switch to a shell to run rz -vv I get the error that it can't open : /var/adm/szlog. I made a dummy szlog, and even changed the group : ownership from root to users, but no luck. Try doing a ln -fs /dev/null /var/adm/szlog. It worked here, but the downside is that you dont have any accounting information returned. Anyone know what has changed in minicom/sz/rz that this occured. It only occured as from the 2.01 Release of Slackware. -- |\ . /| . . Morlok (Ed Beaumont) |._^_./^|.'|.~ . UUCP Coordinator - APANA Brisbane / // ....,/~',~~ (uucpmaster@brisbane.apana.org.au) < -/~,~,~~.~ . System Operator of Abyss of Shadows BBS {. (0 -./~,~~,~ . (morlok@abyss.apana.org.au) / \ -,~,~,~~~ . / . ) ..~~~~. . "The Eagle may soar, but a weasel never / / ;__./|< \ .~~~~.~ . . gets sucked into a jet engine" {___} / \ \ .~~~~.~ . Simon & Simon ------------------------------ From: fox@graphics.cs.nyu.edu (David Fox) Crossposted-To: comp.os.linux.development Subject: Re: how to install SCSI tape drive Date: 30 Sep 1994 12:09:10 GMT In article <36gcaa$6a5@kshome.ruhr.de> karsten@kshome.ruhr.de (Karsten Steffens) writes: ] BTW: the official lists of device-numbers can be found in: ] ] /usr/src/linux/include/linux/major.h ] ] This is official because its the one that the kernel incorporates during ] compilation... Or use the MAKEDEV script in /dev. -- David Fox xoF divaD NYU Media Research Lab baL hcraeseR aideM UYN ------------------------------ ** FOR YOUR REFERENCE ** The service address, to which questions about the list itself and requests to be added to or deleted from it should be directed, is: Internet: Linux-Admin-Request@NEWS-DIGESTS.MIT.EDU You can send mail to the entire list (and comp.os.linux.admin) via: Internet: Linux-Admin@NEWS-DIGESTS.MIT.EDU Linux may be obtained via one of these FTP sites: nic.funet.fi pub/OS/Linux tsx-11.mit.edu pub/linux sunsite.unc.edu pub/Linux End of Linux-Admin Digest ******************************