
Hirogen2
-
Posts
52 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Hirogen2
-
-
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;
-
You could try deactivating SCIM for the time you install Mozilla/Firefox:
$ XMODIFIERS="" installer
-
SRPM - I review the spec file and the build process, and if it suits me, I run it. If not, I take the .tar.bz2 out of the SRPM and use that tarball. (Note that this saves bandwidth :-) - only download one file and have both "rpm" and "tarball")
-
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
-
Text::CSV http://search.cpan.org/~alancitt/Text-CSV-0.01/CSV.pm
You could transform a CSV into a '\0' separated using something like
perl -MText::CSV -lne 'INIT{$c=new Text::CSV}$c->parse($_);print join("\x00",@{$c->fields()})}'
..Untested..
-
Why do you get the "bash-3.00$"? THe answer is simple: because it is not a "login" shell (sounds confusing, though.)
If you run "bash --login", a normal prompt should usually pop up. If not, _then_ you can tweak on PS1. And if you login from tty1 _and_ get bash-3.00$ instead of "\A \h:\w > " (or similar) for PS1, then something is wrong.
-
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.
-
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)
-
There are no further compiling problems for Linux 2.4.28 (the vanilla one from kernel.org) using GCC 3.3.4. I therefore stopped supplying a patch. If anyone is using GCC 3.3.3, I would like to hear back if it is still broken there.
-
Possibilities:
- the immutable flag is set for /usr/bin and everywhere where you cannot write (that's highly unlikely)
- you are using SELinux, and you're not allowed to do everything, despite "id" showing root
- you are not effectively root, i.e. UID=0, but EUID!=0
-
I notice the Quota command does not work in MANDRAKE 10. Is there an alternative command to used to check available disk space?
Quota can do a little more than just df, dd!
http://linux01.org:2222/lxadm-quota.php should get ya started.
-
Would be nice to hear if it helped anyone... because it gets downloaded often.
-
I'd recommend to get 4.5.1 (4.5.2?), it runs for me, and I don't have ksyms either in 2.6.
-
hopefully in the future totem will use gnomevfs and be able to see any file that nautilus can... perhaps in gnome 2.8?
God please no. I don't want to install a ton of UI frameworks just to watch movies with svga :-D
-
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)
-
The WUFTPD supports commands like 'get bla.gz' when there is just a 'bla' file. Some goes for 'get directory.tar.gz' when there is only a direcotry with name 'directory'.
Well, that's an FTP solution, not a HTTP one, though. Alternatively, make the Apache HTTPD hand out pages with gzip compression encoding. (mod_gzip)
-
One simple test: check the time one Seti@Home unit (or whatever) takes on 1. Linux 2. Windows. (at the same CPU speed :lol: ) Then compare.
-
WTH is sage.
-
Might be in /etc/apache2, but that depends on distro.
-
-
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).
-
Note that NTFS is not that supported as on Windows.
(But it's getting close.)
-
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/discdevfs is deprecated in 2.6.
-
Commandline Extended ASCII characters
in Command Line, Kernel and Programming
Posted
You need to set your console to UTF8.
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.
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.