Linux-Misc Digest #525, Volume #27 Wed, 4 Apr 01 06:13:02 EDT
Contents:
Re: Secure File deletion (Grant Edwards)
Re: migrating /home from / (Christian Huebner)
Re: dump/restore vs gnu tar (Steve Smith)
quark express (Sparkzz)
Re: system.map ("green")
Re: LILO vs. loadlin (Bloody Viking)
Re: LILO vs. loadlin (Bloody Viking)
Re: migrating /home from / (Samuel Hocevar)
netscape default preferences question (Neil Zanella)
HELP: cygwin ("Leon")
How to find services on a win2k computer? ([EMAIL PROTECTED])
Netscape 4.76 problem... (Bill Thompson)
Re: Netscape 4.76 problem... ("mari-k")
Re: Linux hangs....very strange ([EMAIL PROTECTED])
Re: strange file metamorphose (pirxmcci)
Re: strange file metamorphose ("Eric")
Re: The Python is so powerful, easy to use? compared with C++ (simes)
Re: grub instead of lilo (Bart Friederichs)
Re: How to setup the secure (ssh based) Xterminal? (Wojciech Zabolotny)
Re: Apache 1.3.19 download?? (J�rgen Thomsen)
Re: Netscape 4.76 problem... ("muzh")
Linux games (Bart Friederichs)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: Secure File deletion
Date: Wed, 04 Apr 2001 03:43:39 GMT
On Wed, 04 Apr 2001 13:17:42 +1000, Frank Ranner <[EMAIL PROTECTED]> wrote:
>> >> Overwriting a file with dd may or may not overwrite the data that
>> >> existed in the file. It depends on the filesystem implimentation. I
>> >> think it will work for ext2, but doubt that it will for reiserfs.
>>
>> > I wouldn't be sure that it would work for ext2, either.
>>
>> Err, folks, have you gone off the deep end?
>>
>> > It is by no means obvious that dd would make any attempt to write to
>> > the same file, regardless of the filesystem. Frankly, I'd expect this
>>
>> It most certainly is obvious, because that is what it does, by
>> definition. It does not make a new file and write to it, it does not
>> start a fire in your aunt patty's bedroom. It precisely and exactly
>> overwrites given parts of a file, at an offset of your choosing, with a
>> number of blocks of your choosing.
>>
>> To be precise, it calls the system call write(), preceded by seek().
>
>See your piffle and raise you an strace :-)
>
>[Early boring stuff snipped]
>
>close(0) = 0
>open("junk.in", O_RDONLY|O_LARGEFILE) = 0
>close(1) = 0
>open("junk.dat", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 1
>
>-- this is a result of the command 'dd if=junk.in of=junk.dat' where
>junk.in was 84 bytes
>-- and junk.dat was several k. I'd say that O_TRUNC is significant.
So, does the O_TRUNC cause the data blocks to be free'd and new
ones allocated as data is written? Or are the old ones used
and any extras freed when the file is closed?
I would think that a filesystem could work either way. If the
former, then you may or may not be overwriting the old data --
depending on how the free/allocate code in the filesystem
works. Someone less lazy than I would probably go look at ext2
sources and actually see what happens...
--
Grant Edwards grante Yow! I am a jelly donut. I
at am a jelly donut.
visi.com
------------------------------
From: Christian Huebner <[EMAIL PROTECTED]>
Subject: Re: migrating /home from /
Date: Tue, 03 Apr 2001 20:51:38 -0700
"Sudhakar R." wrote:
>
> I currently have /home residing on / and would like to make more room on
> my / partition. So I've decided to use fips to shrink my windows
> partition and free up some space on my hard disk where I can put
> /home. Can someone please detail the necessary steps that I shud
> follow.
>
> I can work with fips and free up some space on my harddisk. How do I go
> about formatting this new space into an ext2 filesystem and then how do I
> migrate /home to this new partition.
You need to do the following steps:
1) Backup your home directory or better your whole disk.
2) Use fdisk to create a new partition in the space you freed using fips.
Be sure to set the partition type right.
3) Use mkfs to create an ext2-filesystem on the new partition.
4) Mount the new ext2-Filesystem to /mnt.
5) Transfer your data. I dont recomment using cp or mv. I suggest using
tar instead. ( cd /home; tar cf - * |(cd /mnt; tar xvf -) )
6) Erase all data in /home. Did I tell you to backup your home directory
or even better, your whole disk?
7) Unmount your new home partition from /mnt and mount it to /home to
test it.
8) If it works, add a line to /etc/fstab to make it mount automatically
on boot time.
If you have major problems understanding this I suggest you find someone
to do it with you or your data might get hurt.
Chris
--
Christian Huebner - [EMAIL PROTECTED]
------------------------------
From: Steve Smith <[EMAIL PROTECTED]>
Subject: Re: dump/restore vs gnu tar
Date: Tue, 03 Apr 2001 22:13:50 -0600
I guess I should go read the manual...
Thanks,
Steve
Stefano Ghirlanda wrote:
> Steve Smith <[EMAIL PROTECTED]> writes:
>
> > Tar only backs up what you tell it to back up. It has no means for
> > incremental backups (although you could write such a script).
>
> I think the --incremental option is for incremental backups. Also:
>
> --after-date='1 week ago' include files modified since 1 week ago
>
> --
> Stefano - Hodie tertio Nonas Apriles MMI est
------------------------------
From: [EMAIL PROTECTED] (Sparkzz)
Date: 04 Apr 2001 04:36:43 GMT
Subject: quark express
Hello,
Is there any Linux software comparable to Quark????
thanks
.
.
....Ken
------------------------------
From: "green" <[EMAIL PROTECTED]>
Subject: Re: system.map
Date: Wed, 4 Apr 2001 14:48:00 +1000
> I don't want to offend you, but if you could read in your own header
> something
> different (news reader & OS) as:
>
> Microsoft Outlook Express
>
> You sure will become much more familiar with Linux much faster.
>
>
Don't worry not offended. use outlook cause I have a win modem and a student
budget :(
but I'm fairly familiar with setting linux up. :)
plus when I reply from uni I have no choice. nt 4 all the way.
------------------------------
From: [EMAIL PROTECTED] (Bloody Viking)
Crossposted-To: comp.os.linux.setup
Subject: Re: LILO vs. loadlin
Date: 4 Apr 2001 04:47:36 GMT
John in SD ([EMAIL PROTECTED]) wrote:
: Why not use LILO as your boot manager?
Maybe becuse he couldn't get it to work? I use Loadlin as my standard Linux
booter too. LILO is problematical becuse of hard drive geometry and many
computers have flaky BIOSes.
--
FOOD FOR THOUGHT: 100 calories are used up in the course of a mile run.
The USDA guidelines for dietary fibre is equal to one ounce of sawdust.
The liver makes the vast majority of the cholesterol in your bloodstream.
------------------------------
From: [EMAIL PROTECTED] (Bloody Viking)
Crossposted-To: comp.os.linux.setup
Subject: Re: LILO vs. loadlin
Date: 4 Apr 2001 04:51:46 GMT
Chiefy ([EMAIL PROTECTED]) wrote:
: Just wondering if the best thing to do (with loadlin), would be to copy
: your kernel to /dev/hda1 and fire up Loadlin with something like;
: c:\path\to\kernel compact root=/dev/hdc1 ro
You can put the line into a one-liner batch script. On my box on the C:\HOME\
dir is a file named UNIX.BAT that starts Loadlin.
--
FOOD FOR THOUGHT: 100 calories are used up in the course of a mile run.
The USDA guidelines for dietary fibre is equal to one ounce of sawdust.
The liver makes the vast majority of the cholesterol in your bloodstream.
------------------------------
From: [EMAIL PROTECTED] (Samuel Hocevar)
Subject: Re: migrating /home from /
Date: 4 Apr 2001 05:01:44 GMT
On Tue, 03 Apr 2001 20:51:38 -0700,
Christian Huebner <[EMAIL PROTECTED]> wrote:
> 5) Transfer your data. I dont recomment using cp or mv. I suggest using
> tar instead. ( cd /home; tar cf - * |(cd /mnt; tar xvf -) )
I'd actually recommend using cp (with the '-a' flag). Or tar, but
with the additional 'p' flag.
Sam.
--
Samuel Hocevar <[EMAIL PROTECTED]> <http://sam.zoy.org/>
for DVDs in Linux screw the MPAA and ; do dig $DVDs.z.zoy.org ; done | \
perl -ne 's/\.//g; print pack("H224",$1) if(/^x([^z]*)/)' | gunzip
------------------------------
From: Neil Zanella <[EMAIL PROTECTED]>
Subject: netscape default preferences question
Date: Wed, 4 Apr 2001 02:34:39 -0230
Hello,
I am running netscape 4.76 on Linux. Is there a file where I can set
the system wide default home page which comes up when a user selects
New -> Navigator Window? Each user can set this with Edit ->
Preferences -> Navigator -> Location but I would like to specify
something other than http://home.netscape.com/ as the default.
I have seen this done on Windows computers. Is this possible on
Linux and how can one do this? I have looked at the files
/usr/lib/netscape/bookmark.htm and
/usr/doc/netscape-common-4.76/Netscape.ad
but these files were not helpful in accomplishing this task.
Thanks,
Neil
------------------------------
From: "Leon" <[EMAIL PROTECTED]>
Subject: HELP: cygwin
Date: Wed, 4 Apr 2001 13:35:48 +0800
hello,
in Cygwin I use the mount command,
mount d:\mydir /linkdir
but get a response "mount: /linkdir: Invalid argument".
Anybody help me out?
thanx in advance.
Leon
------------------------------
Subject: How to find services on a win2k computer?
From: [EMAIL PROTECTED]
Date: Wed, 04 Apr 2001 06:05:05 GMT
I'm using samba2.0.6-9 on my RH6.2 computer and when I use
"smbclent -L 192.168.1.4(it's a win2k computer)",it ask me for password and I don't
know whether should I input a password and input whose password.So I just type "Enter"
and the win2k computer shows no services are provided. In fact, I know there are
services and I can use "smbclient //server/service -U username%password" to logon.
I just want to know how to get to know the services provided as so does on a win98
computer.
Thank you.
Any related suggestions are appreciated.
==================================
Posted via http://nodevice.com
Linux Programmer's Site
------------------------------
From: Bill Thompson <[EMAIL PROTECTED]>
Subject: Netscape 4.76 problem...
Date: Wed, 04 Apr 2001 13:15:35 +0700
Hi,
Whenever I set up Netscape 4.76 for additional news servers and selected
news groups, they no longer exist when reloading Netscape. My ISP's news
server is the default news server. It remains but not selected news
groups.
Anyone have a fix for this,
Bill
Mandrake 7.2 w/loads of Cooker updates
Kernel: 2.4.2-25
Window Maker 0.65.0 (CVS version)
--
the world was created by GIMP and VIM and we see it clearly with
Mozilla...
------------------------------
From: "mari-k" <[EMAIL PROTECTED]>
Subject: Re: Netscape 4.76 problem...
Date: Wed, 04 Apr 2001 06:34:03 GMT
In article <[EMAIL PROTECTED]>, "Bill Thompson"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Whenever I set up Netscape 4.76 for additional news servers and
> selected news groups, they no longer exist when reloading Netscape. My
> ISP's news server is the default news server. It remains but not
> selected news groups.
>
> Anyone have a fix for this,
get pan. It is a complete newsreader. Among other things that pan has
(and netscape does not) is: offline reading! Big plus for dialups.
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Linux hangs....very strange
Date: Wed, 04 Apr 2001 06:49:11 GMT
Jacob Kristensen <[EMAIL PROTECTED]> wrote:
> I'm running RH7 kernel 2.4.0 on an AMD Duron. Everything works fine, but
> sometimes, during normal use my box hangs 100%. Meaning that, XMMS stops
> playing, mouse doesn't react, hitting CTRL+ALT+DEL/CTLR+ALT+BS has no
> effect. Caps/Scroll/Numlock doesn't react either. All I can do is
> hitting reset and wait for fsck finishing.... Haven't lost any data.
> I have found no "system" in what triggers the halt. Im running as normal
> user and I'm not using any strange/exotic programs. It has happened only
> 5 or 6 times over a month so it's rare but damn annoying...
> Any tricks to corner down what causes this halt?
> All help appreciated...
On a totally different note from the other responses... How much
disk activity is taking place while this lockup happens? Is the lockup
incremental (ie. XMMS stops, mouse becomes jerky etc.)? I've had
similar problems - memory... Ie. not enough. Usually happened
while running netscape tho - would use up all physical, and start to
encroach on the limit of swap space, to the point that I had only
about 1M of swap left - making the system totally unresponsive to
all intents and purposes.
Before hitting the Reset - try the SysRq magic... I *think* the
sequence would be Ctrl-Alt-SysRq-t (I know it is t for terminate, the
CAS is a different matter) followed by CAS-s to sync the disks. If
that works, all is well. If not, CAS-k for kill, then CAS-s to sync,
and finally CAS-r to reboot... At least you'll get a clean disk...
Kris
------------------------------
From: pirxmcci <[EMAIL PROTECTED]>
Subject: Re: strange file metamorphose
Date: Wed, 4 Apr 2001 09:42:16 +0200
Hallo Eric
I changed the partition type id. But maybe the problem is the following.
I have two types of memory in my computer. This two ic's (128MB/32MB) are
from different vendors but the same type (100MHz). I got the big one three
month ago. The only problem I have is that sometimes while booting the BIOS
recognizes only 98MB (instaead of 160MB). When I change to BIOS and exit
without save, the BIOS recognizes the right size of RAM. Today I switched
on the computer and the BIOS started to count the RAM size and suddenly
starts to boot from the very beginning. If this can happen, there might
memory problems while system is running? I dont know but is seems to be
possible.
pirx
------------------------------
From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: strange file metamorphose
Date: Wed, 4 Apr 2001 09:54:13 +0200
> I changed the partition type id. But maybe the problem is the following.
> I have two types of memory in my computer. This two ic's (128MB/32MB) are
> from different vendors but the same type (100MHz). I got the big one three
> month ago. The only problem I have is that sometimes while booting the
BIOS
> recognizes only 98MB (instaead of 160MB). When I change to BIOS and exit
> without save, the BIOS recognizes the right size of RAM. Today I switched
> on the computer and the BIOS started to count the RAM size and suddenly
> starts to boot from the very beginning. If this can happen, there might
> memory problems while system is running? I dont know but is seems to be
> possible.
Run a RAMtest program (memtest or something like that, search freshmeat.net)
Make sure they are pressed in their slots fermly.
It does sound weird to me.
Eric
------------------------------
From: simes <[EMAIL PROTECTED]>
Subject: Re: The Python is so powerful, easy to use? compared with C++
Date: Wed, 04 Apr 2001 08:05:02 +0000
Hun wrote:
> Hello,
>
> I have a guide book for the Python language. I bought it one month ago, but not yet
>to try learn it. I read the introduction chapter of the book today.
> "Five or eight times faster than using C++ to develop a application"
> "Three months length of the Python programming normally takes one year of C++
>programming."
> If so, it would be the ultimate programming language.
>
> Is it so powerful and easy-to use? I agree with the Python is easy and don't have
>legacy grammer check so a programmer save times for checking missing semicolon or
>other minor mistakes.
>
> I normally use C and C++. When I read source code, to understand the structure and
>basic ideas is most time consuming not the language stuff. C/C++ is so difficult to
>use? Many developers around me just giving up learning C/C++. They prefer Java,
>script languages or 4GL. Maybe they are smart or I'm dump head standing out of the
>change. :(
>
> My opinion is the programming language is just a tool. Making a good program is
>solely depend on the programmer. Am I wrong? Only changing a tool improves even 8
>times of development time would be a magic for the developers.
>
> Well, I'm considering learning a new language: perl either python. "8 times faster"
>still buzzing in my head. :)
>
> --
>
> Registered Linux user #207121
> http://counter.li.org
Is it me or are some of the postings into this newsgroup stark raving mad!
simes
------------------------------
From: Bart Friederichs <[EMAIL PROTECTED]>
Subject: Re: grub instead of lilo
Date: Wed, 04 Apr 2001 09:14:22 GMT
Christian Huebner wrote:
>
> Hi,
>
> For quite some time I have been searching for a replacement
> for lilo as boot loader that overcomes lilo's shortcomings,
> specifically being able to change the boot configuration
> on the fly when the system is _down_.
>
> I came across grub (http://freshmeat.net/projects/gnugrub/)
> which solved my problem. grub is the GNU bootloader for the
> hurd project which doesnt mean its any less useful for Linux.
SmartBootmanager is useful too. It just creates a menu of all partitions
and you can choose from there. It goes in the MBR and can even boot
CD-ROMs on PC from which the BIOS doesn't support it. I found it
searching for a bootmanager because LILO can't boot second harddisks
(although not the version I was using then).
Bart
--
=======================================================================
The internet is a too slow way of doing things you'd never do without
it.
Bart Friederichs, 1998
=========================================================================
------------------------------
From: Wojciech Zabolotny <[EMAIL PROTECTED]>
Subject: Re: How to setup the secure (ssh based) Xterminal?
Date: Wed, 4 Apr 2001 11:23:48 +0200
On Wed, 4 Apr 2001, David Efflandt wrote:
>
> Maybe I don't quite understand what you are trying to do. Normally the X
> server (wm) is run locally. You can run X programs remotely that will
> appear on your local display. I do that by setting an alias for startx in
> my ~/.bashrc (or ~/.alias file in SuSE):
>
> alias startx="ssh-agent startx"
>
> I have not quite figured out how to do ssh-add automatically, but I run
> that from an xterm so ssh-agent has my secret. Then I can ssh anywhere
> which automatically sets DISPLAY to an ssh pipe and if I want to run a
> remote X program it is piped back through ssh to my local X session.
>
> What I also have not figured out how to do yet is use ssh-agent from GUI
> login (I boot to runlevel 3).
>
> If you want to run a remote X server or window manager, maybe you want to
> look into VNC which is a multple OS server with remote viewers that can be
> piped through ssh. The server defaults to twm, but can be set to
> gnome-session, startkde or whatever. For example you can view and control
> Windows from Linux, or Linux X from Windows, or Linux to Linux, etc.
>
What I need to do is the SECURE Xterminal. That's why the user first logs
in with ssh, and then runs the X session, with the whole network traffic
between the local X server and the remote X window manager encrypted by
the SSH.
Additionally this terminal should be very small machine, able to run only
the basic Linux system, Xserver and SSH (no room for Xlib and other
X programs and window managers) (I've already done it - works
disklessly even with 8MB of RAM).
In the standard X the user password may be sniffed very easily on the
network :-(.
So my problem is that X server is to be run locally, and window manager -
remotely. This solution works perfectly, when I know which window manager
to run. But if there are a few remote machines to be used with that X
terminal, then I should provide many startup scripts (one for each remote
machine).
Wojciech Zabolotny
[EMAIL PROTECTED]
------------------------------
From: J�rgen Thomsen <[EMAIL PROTECTED]>
Crossposted-To:
comp.infosystems.www.servers,comp.infosystems.www.servers.unix,comp.os.linux.redhat,linux.redhat.misc
Subject: Re: Apache 1.3.19 download??
Date: Wed, 04 Apr 2001 11:52:55 +0200
Den Mon, 19 Mar 2001 09:42:29 -0500, skrev "<toor>"
<[EMAIL PROTECTED]> :
>Try apache.org, I recommend you compile it yourself!
>
Did you ever do that yourself?
I gave it up because RedHat has changed the paths, so they are not
similar to the standard distribution. I couldn't be sure that I would
really get a proper upgrade without things being installed where they
should not be.
- J�rgen
------------------------------
From: "muzh" <[EMAIL PROTECTED]>
Subject: Re: Netscape 4.76 problem...
Date: Wed, 04 Apr 2001 21:55:47 +1200
I would agree -- get pan --
However, if you must use netscape, you must tell it which directory to
use to save its settings. (I used to use ~/NSNews). You will have to
create this directory, then configure the NS Newsreader (edit ->
preferences)
For some totally illogical and inscrutable reason NS-4.x news does not
create a default directory for itself.
In article <[EMAIL PROTECTED]>,
"mari-k" <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>, "Bill Thompson"
> <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>> Whenever I set up Netscape 4.76 for additional news servers and
>> selected news groups, they no longer exist when reloading Netscape. My
>> ISP's news server is the default news server. It remains but not
>> selected news groups.
>> Anyone have a fix for this,
> get pan. It is a complete newsreader. Among other things that pan has
> (and netscape does not) is: offline reading! Big plus for dialups.
------------------------------
From: Bart Friederichs <[EMAIL PROTECTED]>
Subject: Linux games
Date: Wed, 04 Apr 2001 09:53:57 GMT
Hi,
Are there any good rocking games on Linux, that are free? Loki has a lot
of cool games, but they are not free. Almost everything is totally free
on the Linux system, including pretty large projects such as Office
suites (not to mention the OS itself), but no games. Yeah, there are
some, but I haven't found Quake-like games or some racing games.
Anybody has a thought on this?
Bart
--
=======================================================================
The internet is a too slow way of doing things you'd never do without
it.
Bart Friederichs, 1998
=========================================================================
------------------------------
** 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: [EMAIL PROTECTED]
You can send mail to the entire list by posting to comp.os.linux.misc.
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Misc Digest
******************************