Jump to content

qnr

Members
  • Posts

    477
  • Joined

  • Last visited

Everything posted by qnr

  1. I use GQmpeg, mp3blaster or just plain old mpg123
  2. Well, to get it to stop asking, change your lilo.conf to reflect the number that you like as listed above, and then run /sbin/lilo again
  3. Yes, that's it. This is from man lilo.conf: vga=<mode> This specifies the VGA text mode that should be selected when booting. It may be specified as a global option. The following values are recognized (case is ignored): normal: select normal 80x25 text mode. extended (or ext): select 80x50 text mode. ask: stop and ask for user input (at boot time). <number>: use the corresponding text mode. A list of available modes can be obtained by booting with vga=ask and pressing [Enter]. If this variable is omitted, the VGA mode setting contained in the kernel image is used. (And that is set at compile time using the SVGA_MODE variable in the kernel Makefile, and can later be changed with the rdev(8) program.)
  4. I haven't thought about this in a long time. There probably is, me though, I just use VGA=xx in the "append" line. Try putting VGA=ask in the append line of your lilo or grub configure file, then make it active (for example #/sbin/lilo), or just type it in manually on the next reboot. "ask" will give you a menu of choices, select one, see if you like it, and if you do, replace "ask" with the number that you selected (in your configuration file)
  5. Not offhand. I'd say to try downloading an ebook and using the "find" command in your pdf reader/browser/editor, depending upon the format. There are some useful ones up on my site, and quite a few that I haven't added yet. Just click on the link at the bottom of my post
  6. qnr

    Advice on Games

    I enjoy playing Railroad Tycoon every once in a while
  7. qnr

    What about slicker?

    Don't know about Mandrake RPMs, but while I don't use KDE and haven't installed it, slicker is available in my distro: sh-2.05b$ gaze what slicker A collection of utilities which provide alternative for our beloved kicker. Slicker consists of three primary items Kards, the Slider, and a Task-bar. Which can be used in conjunction with each other, and Kicker, or utilized by themselves.
  8. qnr

    Photo/Printing app?

    I use TurboPrint, and get excellent output. However, lots of times, I'll edit the photo in The GIMP, save it to a smartmedia card, stick the card into my HP and print it from the card (I don't have the photo printer connected to any computers, actually)
  9. qnr

    suggestions?

    I agree, but there is the point that most of the cameras I've experimented with can serve as their own card reader. Granted, I've only tried with the cameras of a few friends, and my Olympus D-380. I just plug the usb cable into it and treat it as a mountable filesystem, instead of as a camera.
  10. I really should have said "bash" I guess in this case, since that's where I want to pipe it to. The files aren't really formatted enough to justify using gawk. I mostly wanted to know about sed I could just experiment to my heart's content (which, admittedly, I can do with for;). For that matter, I could just write a script to simulate piping, just to convince myself that I'm not really senile, and I have been able to do it in the past :) Edit: Just did a wc -l ... turns out there are 18,000 files
  11. actually, it was to help my feeble memory.... I know how to do it with a for loop, but I'm almost certain I used to be able to pipe the output of ls or dir into sed and gawk And as far as all the work above, most of it was a set up for the demonstration. If you look at it, I can stream edit the whole 3,800 files with just a couple of the lines up above. Thanks for the reply aru, I'll most likely end up doing it that way. Knowing me, I'm probably imagining having done it the other way anyway.... or maybe I did something similar with TOS or something, and I'm getting my platforms confused :shock:
  12. qnr

    cd-romwriter

    There's no standard driver, but pretty much all of them should work. For reading, it will probably work out of the the box, for writing, you might have to play around a bit - I have to specify --driver generic-mmc in mine, for example
  13. OK, I have a question for you scripters, but I'm going to make it long and drawn out, so that people can see what I'm doing if they want to experiment. The question is, how do I pipe a directory listing to sed, or a shell script? I have a directory with about 3800 files that I want to modify. The details are at the bottom of the post if you want to get straight to my question. I want to modify them with sed, because I need the experience for some other stuff I'm working on. Now, I can modify them with sed like this: First, let's create a text file called base.txt with four lines: sh-2.05b$ echo -e "terry kevin rossnkaren rose lambottnthis line should be deletednboomer and alinak" > base.txt; cat base.txt terry kevin ross karen rose lambott this line should be deleted boomer and alinak For info, the echo -e" Ok, now I'm going to use a little shell script I threw together to duplicate base.txt 20 times - here's the script: #!/bin/bash # Useless program to duplicate a file an arbitrary number of times # $1=basename $2=dupename $3=extension $4=number of iterations x=0 while [ "$x" -lt "$4" ] do cp $1 $2$x$3 x=`expr $x + 1` done echo exit 0 Now I run it to get 20 different copies of base.txt sh-2.05b$ ls base.txt dupe.sh sh-2.05b$ dupe.sh base.txt copy .txt 20 sh-2.05b$ ls base.txt copy12.txt copy16.txt copy1.txt copy5.txt copy9.txt copy0.txt copy13.txt copy17.txt copy2.txt copy6.txt dupe.sh copy10.txt copy14.txt copy18.txt copy3.txt copy7.txt copy11.txt copy15.txt copy19.txt copy4.txt copy8.txt Now, I'm going to create a sed program file named a.sed: sh-2.05b$ echo -e "s/kevin/KEVIN/ns/karen/KAREN/n/delete/dn" > a.sed sh-2.05b$ cat a.sed s/kevin/KEVIN/ s/karen/KAREN/ /delete/d For info: I'm changing "kevin" to "KEVIN", "karen" to "KAREN", and deleting any lines that contain "delete" Now, I'm going to create a file named process files: sh-2.05b$ ls copy* | sed 's/.*/cat & | sed -f a.sed > tmp; mv -f tmp &/' > process sh-2.05b$ cat process cat copy0.txt | sed -f a.sed > tmp; mv -f tmp copy0.txt cat copy10.txt | sed -f a.sed > tmp; mv -f tmp copy10.txt cat copy11.txt | sed -f a.sed > tmp; mv -f tmp copy11.txt cat copy12.txt | sed -f a.sed > tmp; mv -f tmp copy12.txt cat copy13.txt | sed -f a.sed > tmp; mv -f tmp copy13.txt cat copy14.txt | sed -f a.sed > tmp; mv -f tmp copy14.txt cat copy15.txt | sed -f a.sed > tmp; mv -f tmp copy15.txt cat copy16.txt | sed -f a.sed > tmp; mv -f tmp copy16.txt cat copy17.txt | sed -f a.sed > tmp; mv -f tmp copy17.txt cat copy18.txt | sed -f a.sed > tmp; mv -f tmp copy18.txt cat copy19.txt | sed -f a.sed > tmp; mv -f tmp copy19.txt cat copy1.txt | sed -f a.sed > tmp; mv -f tmp copy1.txt cat copy2.txt | sed -f a.sed > tmp; mv -f tmp copy2.txt cat copy3.txt | sed -f a.sed > tmp; mv -f tmp copy3.txt cat copy4.txt | sed -f a.sed > tmp; mv -f tmp copy4.txt cat copy5.txt | sed -f a.sed > tmp; mv -f tmp copy5.txt cat copy6.txt | sed -f a.sed > tmp; mv -f tmp copy6.txt cat copy7.txt | sed -f a.sed > tmp; mv -f tmp copy7.txt cat copy8.txt | sed -f a.sed > tmp; mv -f tmp copy8.txt cat copy9.txt | sed -f a.sed > tmp; mv -f tmp copy9.txt Now, I'm going to execute process: sh-2.05b$ echo "Before process:"; cat copy14.txt; sh process; echo -e "nAfter process:"; cat copy14.txt Before process: terry kevin ross karen rose lambott this line should be deleted boomer and alinak After process: terry KEVIN ross KAREN rose lambott boomer and alinak And there we have it, I only compared copy14.txt before and after, but all 20 copy files were changed. ===================================================== OK, so that's one way of doing it. Now, I'd like it if someone could tell me how to pipe a list of filenames into a shell script (without using For or somthing of that nature). I vaguely remember remember doing it in the past - unless I'm just imagining it. Instead of using what I did up above and making the process file, I'd like to pipe the filenames into a script like this: sh-2.05b$ cat sedprogram.sh #!/bin/sh # An example program # First let's ensure that the temporary file is a unique random filename TMP_FILE="/tmp/`basename $1`.$$.$RANDOM" # Delete it, just in case rm -rf $TMP_FILE # Copy the file we are working on to the temporary file cp $1 $TMP_FILE # Now, work on the temp file, then copy it back to the original sed -e '/delete/d' -e 's/kevin/KEVIN/' -e 's/karen/KAREN/' $TMP_FILE > $1 # Delete the temporary file rm -rf $TMP_FILE If I were to execute it manually, for example: sedprogram.sh copy14.txt
  14. No idea really, just that it's not active anymore, so I don't know if they like people accessing it. There's probably no problem though.
  15. Here's a link from the original board that covers the subject a bit. Talks about modules, etc. This is an archive of the original board on my computer - note that "search' and whatnot don't work - and let's not post any replies :lol: Configuring AGP I'll eventually get around to disabling all those links to mandrakeuser.org, I just haven't done so yet. Same thing on the original board, not sure you should be accessing it
  16. I don't think you'll need to reconfigure your kernel. You'll need to check settings in your BIOS and in your xf86config, if I remember correctly. All of my cards are ATI at the moment, but I remember that the nVidia documentation gave information on AGP in relation to xf86config. Edit: The reason I don't think you'll need to reconfigure your kernel is because it is already recognizing your nvidia, and the nvidia drivers will install any necessary modules themselves. But I could easily be wrong, I very rarely have any need for speedy graphics, so I haven't played around with it in a while. I'm happy with my 90-110 fps. sh-2.05b$ glxgears 472 frames in 5.0 seconds = 94.400 FPS 496 frames in 5.0 seconds = 99.200 FPS 492 frames in 5.0 seconds = 98.400 FPS 475 frames in 5.0 seconds = 95.000 FPS 500 frames in 5.0 seconds = 100.000 FPS 491 frames in 5.0 seconds = 98.200 FPS 498 frames in 5.0 seconds = 99.600 FPS
  17. try something like sh-2.05b$ find /usr/share/pixmaps/ -name camera* /usr/share/pixmaps/Noia Warm KDE 0.95/128x128/devices/camera_mount.png /usr/share/pixmaps/Noia Warm KDE 0.95/128x128/devices/camera.png /usr/share/pixmaps/Noia Warm KDE 0.95/128x128/devices/camera_unmount.png /usr/share/pixmaps/Noia Warm KDE 0.95/64x64/filesystems/camera.png /usr/share/pixmaps/Noia Warm KDE 0.95/64x64/devices/camera_mount.png /usr/share/pixmaps/Noia Warm KDE 0.95/64x64/devices/camera.png /usr/share/pixmaps/Noia Warm KDE 0.95/64x64/devices/camera_unmount.png /usr/share/pixmaps/Noia Warm KDE 0.95/48x48/filesystems/camera.png /usr/share/pixmaps/Noia Warm KDE 0.95/48x48/devices/camera_mount.png /usr/share/pixmaps/Noia Warm KDE 0.95/48x48/devices/camera.png /usr/share/pixmaps/Noia Warm KDE 0.95/48x48/devices/camera_unmount.png /usr/share/pixmaps/Noia Warm KDE 0.95/32x32/filesystems/camera.png /usr/share/pixmaps/Noia Warm KDE 0.95/32x32/devices/camera_mount.png /usr/share/pixmaps/Noia Warm KDE 0.95/32x32/devices/camera.png /usr/share/pixmaps/Noia Warm KDE 0.95/32x32/devices/camera_unmount.png /usr/share/pixmaps/Noia Warm KDE 0.95/16x16/filesystems/camera.png /usr/share/pixmaps/Noia Warm KDE 0.95/16x16/devices/camera_mount.png /usr/share/pixmaps/Noia Warm KDE 0.95/16x16/devices/camera.png /usr/share/pixmaps/Noia Warm KDE 0.95/16x16/devices/camera_unmount.png Just as a side note, if you use gkrellm, there is a plugin to take a screenshot.
  18. The Neo Project, a group of computing hobbyists using distributed computing techniques to crack security challenges, has released a Linux version of its Xbox cracking software. Complete article, link to Linux software: http://news.com.com/2110-1043-992918.html
  19. qnr

    PopUp

    That's interesting. The man page didn't say anything about specific X displays. Anyway, I just tried it locally by startx -- :1 startx -- :2 and I was only able to send xmessages to the display that I sent them from - I experimented by trying as root, and even doing them as an at job. <shrug> Not saying it won't work, just isn't working for me.
  20. Not sure if this is any help, but here are some examples of how I use my dvd/cdwriter sh-2.05b$ egrep cdrom /etc/fstab /devices/cdroms/cdrom0 /mnt/cdrom iso9660 defaults,ro,user,noauto 0 0 sh-2.05b$ ls -l /dev/dvd lrwxrwxrwx 1 root root 22 Feb 21 20:51 /dev/dvd -> /devices/cdroms/cdrom0 This is how I play DVDs: sh-2.05b$ mplayer -dvd 1 This is how I play VCDs: sh-2.05b$ mplayer -cdrom-device /devices/cdroms/cdrom0 vcd:// This is how I play a file: sh-2.05b$ mount /mnt/cdrom sh-2.05b$ mplayer /mnt/cdrom/The_Ring-divx-qnr.avi This is how I write to the dvd/cdwriter This is just one example, a script I use after using transcode to convert a movie to VCD, then I use vcdimager, then I use this script: root@linux:/home/terry# cat /root/bin/writevcd #!/bin/sh # cdrdao write -v 2 --speed 16 --device 0,0,0 --driver generic-mmc --eject videocd.cue
  21. qnr

    PopUp

    Ok, I just installed LinPopUp to test it, and it works fine both ways. Do you have this line in the Global: message command = /usr/local/bin/LinPopUp "%f" "%m" %s; rm %s (Change /usr/local/bin/LinPopUp to where LinPopUp is actually installed)
  22. qnr

    PopUp

    Hmmmm the description says it will use Samba to send messages even to other Linux machines. And to send the message from your laptop, you'd use WinPopUp, wouldn't you? At least that's what the description says.
  23. qnr

    PopUp

    You might also look into LinPopup... http://www.linux-mag.com/1999-05/samba_01.html http://www.littleigloo.org/software_002.php3
  24. qnr

    PopUp

    I don't think it can, actually, but I might be wrong. Write would seem to be the way to go... I'd install netwrite on my system to get it. sh-2.05b$ gaze what netwrite This is netwrite for Linux. Contents: write Program for quick messages to other people (net-aware) writed Daemon for receiving write messages from other Just out of curiosity, couldn't you just use an ICQ client or something like that?
  25. qnr

    PopUp

    I might be confused about what you're looking for, but as far as fuzzylizard's question - it seems to me that you should be able to use xmessage or wmessage... Are you looking for something like GnomeMeeting, where you could talk to them with Microsoft's NetMeeting? http://www.gnomemeeting.org/
×
×
  • Create New...