Jump to content

Hirogen2

Members
  • Posts

    52
  • Joined

  • Last visited

Posts posted by Hirogen2

  1. I am aiming to get the Extended ASCII character set to be displayed in pure Commandline mode (without X).  It seems that only the first 127 characters of ASCII are displayed properly.

    You need to set your console to UTF8.

    Not only that, but how can you get multiple textmode resolutions in the Commandline?  I want to use standard 80 by 25 like in DOS.

    If you want the standard 80x25, then you have to remove any "vga=..." option from the boot command line. To be able to change it at runtime, use SVGATextMode.

    Does the Linux CLI use a font or something, or is it like DOS and uses the ROM?  If somebody could help me with my predicament, I'll be very thankful.

    By default, it uses the Video ROMs glyphs, but you can load different glyphs into the video buffer (not ROM! - so it lasts only until reboot) using "setfont". Note that different fonts have different maps, because a VGA font usually has only 256 glyphs - no way to store all UTF8 characters - and many are different, e.g. some have russian at the high-byte range, some have "European" ... and whatnot. Some are ASCII(CP437)-coded, some are ISO coded. setfont got flags, ask if you need.

  2. Check the time of the newly overwritten file:

    - either it is way in the past, meaning the original was copied to /etc/issue using "cp -p" (preserve...)

    - the time is between you said "init 6" and the bios coming up: it's "echo"ed from somewhere to /etc/issue during shutdown

    - "echo"ed from somewhere during startup

    In either case, try

    find / -type f -size -1k -print0 | xargs -0 grep "The original mandrake text in issue, in quotes"

    and see where it comes from;

  3. From memory, the only relevant option I know for ls is -t, which will sort by date/time. Sorting by name is the default. For other kinds of sorts, I think you'll have to pipe the ls (ls -l actually) output into the sort command.

    There's -S for size, -t for time (as you mentioned), -r for "reverse what would normally be returned (including -S, etc.)", -Y for sort-directories-first (not in mainline coreutils),

    Sort entries alphabetically if none of -cftuSUXY nor --sort.

    So I guess you take a look at man ls.

    Directories only with said grep ^d

  4. 1. Make the download scheduled (say, each day at 12:00am)

    2. Upon downloading the filename is changed, the current date is added (sql-DATE.gz)

    3. The downloading is done to a particular directory on my hdd (obvious)

    now.. how to make it scheduled..

    Make your own cron script.

     

    /home/user/download_and_process:

    #!/bin/bash -e
    
    wget http://blah/sql.tgz;
    mv sql.tgz sql-`date "+%Y-%m-%d_%H%M"`.tgz;

     

    And add this to your crontab (`crontab -e`):

    0 12 * * * /home/user/download_and_process

    Finished.

  5. I did read the screen man page, but for whatever reason most of it just doesn't register with my brain, for exampel from the man page I thoguh Ctrl-A + n would do exactly what I describe in my first question.

    Read what it says.

     

    Ctrl+A,Ctrl+N = next window

    Ctrl+A,Ctrl+P = previous window

    Ctrl+A,0 = 1st window

    Ctrl+A,1 = 2nd window

    and so on. (Ctrl-A + n was meant to be a number)

  6. K3b is limited, it only supports the SCSI (and thus, IDE-SCSI) interface, whereas Kernel 2.6 obsoletes the IDE-SCSI and says you should only use the ATAPI interface. In command line terms, it works like the following:

    # cdreocrd -dev=ATAPI:0,1,0 ......your usual options .....

    (use `` -dev=ATAPI: -scanbus `` to scan for ATAPI devices)

  7. No, but when you have an ol' i586 500mhz with 64meg standing in the corner, you can be happy if you can play a movie (~720x540 DVD size) at all at reasonable speed :D whilst keeping all the server apps running and not requiring to swap.

  8. Do a

    cat /dev/hdX /dev/null

    or even (with pretty status display)

    dd_rescue /dev/hdX /dev/null

    to check whether the HD can be read without faults. If the latter aborts with I/O error, you got the answer. The second method (dd_rescue) will go through all blocks (like Windows Scandisk), when it's finished it shows the number of bad bytes/kbytes/etc.

    Replace hdX accordingly.

    Also listen to your HD while it is being scanned for scratching noises. Try to distinguish it from the normal operation noise (idle and intense r/w).

  9. JFYI, Flash Cards must be used with cdrecord (they are handled like CD drives). For the "hard-disk"s, I found one needs the modules usbcore, usb_storage, (ehci_hcd, ohci_hcd), scsi_mod, sd_mod (sg for Flash Cards)

     

    ide-scsi wasnot even required in 2.4 (beginning with about 2.4.20) to burn CDs (<-- in conjunctino with cdrecord-2.00 of course)

     

    ln -s /dev/sda /dev/scsi/host0/bus0/target0/lun0/disc

    devfs is deprecated in 2.6.

  10. It needs DirectFB. But for the case that you simply want to play movies on the default console (without X), I suggest using the vesa, svga or even cvidix drivers, as they don't require FB at all. A true memory saving.

×
×
  • Create New...