Linux-Misc Digest #971, Volume #27 Tue, 29 May 01 00:13:01 EDT
Contents:
Re: running X applications as root after /bin/su (Anita Lewis)
Re: running X applications as root after /bin/su (Richard Laskey)
Re: how to connect to internet in non-X (SammyTheSnake)
Re: recapture stdout (SammyTheSnake)
Re: Best Window Manager. (Dave Uhring)
Re: kernel 2.4.5 crashes on Mandrake 8 but 2.4.4 and 2.4.3 works ("Jim Brooks")
Re: Best Window Manager. ("Joel")
Re: Best Window Manager. (Michael Perry)
Re: Looking for a tool (Dave Uhring)
Re: how to connect to internet in non-X (Michael Perry)
Re: Is it worth upgrading kernel? (Dave Uhring)
Simple Mail Transfer Protocol(SMTP) (hong seung wan)
Limit the user session time (joshua)
Re: Resize the swap file? (Michael Meissner)
Re: Good web based mail server? (A.M.F.)
Hotpluggin' under RH 7.1 ("Christopher C. Stump")
How to start an executable??? ("gajo")
Problems with transfering files from win to linux ("gajo")
Re: running X applications as root after /bin/su (3FE)
Re: running X applications as root after /bin/su (3FE)
Re: Knode:can not save remote file (Robert_L)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Anita Lewis)
Subject: Re: running X applications as root after /bin/su
Reply-To: [EMAIL PROTECTED]
Date: Tue, 29 May 2001 00:33:06 GMT
On Mon, 28 May 2001 17:07:34 -0400, wroot wrote:
> Hi,
>
> For some reason, I can't run X applications as root after doing /bin/su
> (permission denied). How can I fix it. My distro is Debian Potato.
>
> Wroot
Do 'su -' and that will give you root's environment and that will give you
the proper .Xauthority which will let you start X. At least that's how I
think it works.
Anita
------------------------------
From: Richard Laskey <[EMAIL PROTECTED]>
Subject: Re: running X applications as root after /bin/su
Date: Mon, 28 May 2001 17:43:28 -0400
wroot <[EMAIL PROTECTED]> writes:
>Hi,
>For some reason, I can't run X applications as root after doing /bin/su
>(permission denied). How can I fix it. My distro is Debian Potato.
I'm hoping that you started the X session as a regular user ?
The quickest fix I found for this was to not the DISPLAY variable as set
via the user (the one who started X), and then just export that variable
in the su session. There's probably a cleaner solution than that, though.
If you're only running a single command, you might want to try `su -c
app_to_run'. Just have to be careful that if you're running anything
with more than one arguement that you quote the entire thing. That is,
do:
su -c 'vim .Xdefaults'
and not: su -c vim .Xdefaults
There is another method of invoking su which gives you the privalege of
being root without setting any new variables. I forget how to get it,
though.
------------------------------
From: [EMAIL PROTECTED] (SammyTheSnake)
Subject: Re: how to connect to internet in non-X
Date: Mon, 28 May 2001 13:27:57 +0100
In article <[EMAIL PROTECTED]>, Bob Martin wrote:
>NG_lurker wrote:
>>
>> im a linux newbie.
>>
>> have linux rh7 running in my dual-boot box. i cant work in X for my display
>> is corrupted. have posted this in the newsgroup but unfortunately no answer
>> for me. i like to connect to the net in non-Xterm but dont know how. i want
>> to use pine to send/receive email. can anyone give any link or howto to
>> configure my modem to connect to the net? thanks in advance. more power to
>> linux !
>>
>> eri
>
>The ppp and ISP-hookup howtos. You just need to execute pppd with a chat script
>as input.
>The pppd command would be something like...
>
>pppd -d -detach /dev/modem connect 'chat -V -t 60 -f /etc/ppp/chat-script' &
I doubt this much fiddling is necessary, in all probability his distro has
set up a script called pon to do all that for him...
try just typing pon (poff to disconnect)
Cheers & God bless
SammyTheSnake
--
Sam.Penny @ Ntlworld.com | Looking for a computer related
Linux, Hardware & Juggling specialist :-) | job, if you can help, e-mail me :)
Wheels: bike, 'ickle bike, and unicycle. | /o \/ Working on 3-5 ball tricks
Boxen: K6-266@300, dual Celery500 & Nx486 | \__/\ 6 balls and 7/8-ball exercises
------------------------------
From: [EMAIL PROTECTED] (SammyTheSnake)
Subject: Re: recapture stdout
Date: Mon, 28 May 2001 13:30:31 +0100
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
>You need a program called screen. I think it comes with most distros
>(comes with RedHat, anyway.) You run screen, start your program, and
>then detach from the screen you are in.
seconded, screen is my friend :)
the last line of my .bash_profile is 'screen -R' :)
Cheers & God bless
SammyTheSnake
--
Sam.Penny @ Ntlworld.com | Looking for a computer related
Linux, Hardware & Juggling specialist :-) | job, if you can help, e-mail me :)
Wheels: bike, 'ickle bike, and unicycle. | /o \/ Working on 3-5 ball tricks
Boxen: K6-266@300, dual Celery500 & Nx486 | \__/\ 6 balls and 7/8-ball exercises
------------------------------
From: Dave Uhring <[EMAIL PROTECTED]>
Subject: Re: Best Window Manager.
Date: Mon, 28 May 2001 20:15:29 -0500
Joel wrote:
> Hi. I'm kinda new to linux. What window manager do you guys like best?
> I
> like the GNOME desktop, but it seems kinda slow (slower than Windows 98).
> I
> only have 32 megs of ram. I installed the WindowMaker rpm, and I tried
> have GNOME use that instead of Sawfish, and it is faster, but It's still
> slower
> than windows. I have Redhat 7.1. Also, On the login dialog, how can I
> add
> Window Maker to the list of session types to start. Thanks in advance.
RAM is cheap, buy some more. Even a Windoze box likes to have at least
128MB and better is 256MB.
------------------------------
From: "Jim Brooks" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.mandrake
Subject: Re: kernel 2.4.5 crashes on Mandrake 8 but 2.4.4 and 2.4.3 works
Date: Tue, 29 May 2001 01:20:48 GMT
"$pooky Hunter" <[EMAIL PROTECTED]> wrote:
> Where I can find the kernel 2.4.5-ac1 ?
> Is it a .rpm kernel?
No .rpm exists AFAIK.
FTP the patch from: ftp://ftp.kernel.org/pub/linux/kernel/people/alan/2.4
Commands to patch 2.4.5 to 2.4.5-ac1:
[ unpack linux-X.X.X.tar.bz2 ]
cd linux
bzip2 -dc patch-X.X.X-acXX.bz2 | patch -p1
--
Jim Brooks jjiimm-AT-jjiimmbbrrookkss-DOT-oorrgg
------------------------------
From: "Joel" <[EMAIL PROTECTED]>
Subject: Re: Best Window Manager.
Date: Mon, 28 May 2001 20:50:05 -0500
Not edo ram. It'll cost me $90 for just 32 megs more at best buy, where can
I buy it that's cheap?
"Dave Uhring" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Joel wrote:
>
> > Hi. I'm kinda new to linux. What window manager do you guys like best?
> > I
> > like the GNOME desktop, but it seems kinda slow (slower than Windows
98).
> > I
> > only have 32 megs of ram. I installed the WindowMaker rpm, and I tried
> > have GNOME use that instead of Sawfish, and it is faster, but It's still
> > slower
> > than windows. I have Redhat 7.1. Also, On the login dialog, how can I
> > add
> > Window Maker to the list of session types to start. Thanks in advance.
>
> RAM is cheap, buy some more. Even a Windoze box likes to have at least
> 128MB and better is 256MB.
>
------------------------------
From: [EMAIL PROTECTED] (Michael Perry)
Subject: Re: Best Window Manager.
Date: Tue, 29 May 2001 01:58:19 -0000
Reply-To: [EMAIL PROTECTED]
On Mon, 28 May 2001 20:15:29 -0500, Dave Uhring <[EMAIL PROTECTED]> wrote:
> Joel wrote:
>
>> Hi. I'm kinda new to linux. What window manager do you guys like best?
>> I
>> like the GNOME desktop, but it seems kinda slow (slower than Windows 98).
>> I
>> only have 32 megs of ram. I installed the WindowMaker rpm, and I tried
>> have GNOME use that instead of Sawfish, and it is faster, but It's still
>> slower
>> than windows. I have Redhat 7.1. Also, On the login dialog, how can I
>> add
>> Window Maker to the list of session types to start. Thanks in advance.
>
> RAM is cheap, buy some more. Even a Windoze box likes to have at least
> 128MB and better is 256MB.
>
Definitely! However, if memory is an issue for one reason or another, try
dispensing with gnome or kde. Both like memory resources available. There
are nice and light in memory window managers like blackbox and icewm.
Windowmaker is not too bad. Personally, I have stopped use gnome and I
never used kde. What I use is the latest windowmaker by itself in debian
unstable with a few nice dockapps and I use wmakerconf to configure the
thing.
I really cannot imagine using gnome with only 32mb of memory. You must have
a lot of patience :)
--
Michael Perry
[EMAIL PROTECTED]
====================
------------------------------
From: Dave Uhring <[EMAIL PROTECTED]>
Subject: Re: Looking for a tool
Date: Mon, 28 May 2001 20:58:10 -0500
John W. Krahn wrote:
> Subject: Looking for a tool
> Find someone logged in from AOL :-)
>
> Sorry, just couldn't resist!
>
When did AOL buy out ATT?
------------------------------
From: [EMAIL PROTECTED] (Michael Perry)
Subject: Re: how to connect to internet in non-X
Date: Tue, 29 May 2001 01:59:52 -0000
Reply-To: [EMAIL PROTECTED]
On Mon, 28 May 2001 13:27:57 +0100, SammyTheSnake <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>, Bob Martin wrote:
>>NG_lurker wrote:
>>>
>>> im a linux newbie.
>>>
>>> have linux rh7 running in my dual-boot box. i cant work in X for my display
>>> is corrupted. have posted this in the newsgroup but unfortunately no answer
>>> for me. i like to connect to the net in non-Xterm but dont know how. i want
>>> to use pine to send/receive email. can anyone give any link or howto to
>>> configure my modem to connect to the net? thanks in advance. more power to
>>> linux !
>>>
>>> eri
>>
>>The ppp and ISP-hookup howtos. You just need to execute pppd with a chat script
>>as input.
>>The pppd command would be something like...
>>
>>pppd -d -detach /dev/modem connect 'chat -V -t 60 -f /etc/ppp/chat-script' &
>
> I doubt this much fiddling is necessary, in all probability his distro has
> set up a script called pon to do all that for him...
>
> try just typing pon (poff to disconnect)
>
> Cheers & God bless
> SammyTheSnake
> --
> Sam.Penny @ Ntlworld.com | Looking for a computer related
> Linux, Hardware & Juggling specialist :-) | job, if you can help, e-mail me :)
> Wheels: bike, 'ickle bike, and unicycle. | /o \/ Working on 3-5 ball tricks
> Boxen: K6-266@300, dual Celery500 & Nx486 | \__/\ 6 balls and 7/8-ball exercises
Just as easily one could use wvdial which is a console based ppp dialer and
you only have to edit the /etc/wvdial.conf file for your particulars. I use
it on the road or when I do dialup. That actually is not so much anymore
since most hotels that I tend to stay in have fast internet acccess.
--
Michael Perry
[EMAIL PROTECTED]
====================
------------------------------
From: Dave Uhring <[EMAIL PROTECTED]>
Subject: Re: Is it worth upgrading kernel?
Date: Mon, 28 May 2001 21:05:30 -0500
"Peet Grobler" <peetgr at absa.co.za> wrote:
>
> [EMAIL PROTECTED] wrote in message
> <9et2qh$10v4u$[EMAIL PROTECTED]>...
>>Peet Grobler <peetgr at absa.co.za> wrote:
>>> Would these changes justify me downloading the kernel, and installing
>>> it? Would it be faster?
>>
>>If the new kernel does implement things that you want to use
>>(e.g. USB/Reiser fs) or things that you are in desperately need for,
>>update, otherwise you can stick with your old kernel.
>>
>>First rule of the Sysadmin: update only what is needed, when is needed,
>>and not before.
>
> Yeah, I read that in a bosx aix manual I have. Though, what if they
> changed something, so now suddenly my SCSI disk runs at double speed? Yes,
> I don't need it, but man, won't that be great? Similar with other changes.
>
> Note: This is not a "production" box per-se. I see it as a "production"
> box only for myself, since I use it as a database server, and to do quite
> a lot of development on. If it goes down, I'm gonna be bored out of my
> mind! But no-one else will notice. So changes are not THAT interfering.
>
>>Since updating the kernel will probabily means update also a lot of
>>other things (binutils, pppd, modutils and the like).
>>
>>Davide
>
>
>
Building and adding a new kernel does not mean that you have to discard
your old working kernel. Edit /etc/lilo.conf and change the label for the
"linux" kernel to "old" then add a new section for the new kernel setting
its label to "linux". That way you can always choose "old" at the LILO
prompt.
------------------------------
From: [EMAIL PROTECTED] (hong seung wan)
Subject: Simple Mail Transfer Protocol(SMTP)
Date: 28 May 2001 19:10:50 -0700
Hi.
I have installed "redhat 7.1(2.4.2)" and try to optimize my PC...
On the my way, I can't open smtp port....despite of opening the other
ports(http,telnet,ftp...)
Shall I handle "/etc/xinetd.d/" for opening smtp port???
please give me a method.....
Thank you ...
------------------------------
From: [EMAIL PROTECTED] (joshua)
Subject: Limit the user session time
Date: 28 May 2001 19:22:02 -0700
Hi everyone,
We need to provide the visitors public PC with internet access,
Can Linux do session time limit?
I wish to provide them GUI logins, netscape browsing, telnet ,,,,,, but each user
can have each session ( GUI login session ) for about 10 mins,
Is it possible to do that?
Thanks in advance.
Best Regards
Joshua
------------------------------
Crossposted-To: comp.os.linux.hardware,comp.os.linux.help,comp.os.linux.questions
Subject: Re: Resize the swap file?
From: Michael Meissner <[EMAIL PROTECTED]>
Date: 28 May 2001 22:41:58 -0400
LRW <[EMAIL PROTECTED]> writes:
> Well I wouldn't think so, but I didn't know if Linux had some builtin
> partition utility that would do it. I don't think Partition Magic will
> will it?
Partition Magic revision 4 will resize Linux ext2 partitions. I expect later
revisions will work just as well or better (revision 4 was released before
Linux supported swap files bigger than 128 megabytes, and will only create swap
partitions that big, I don't know if later versions fixed this). Note, if you
resize or move the partition the kernel is on (either the / or /boot partitions
depending on your setup), you must boot from floppy or rescue disk, since the
disk addresses LILO has put into the master boot record will have changed.
Many of the distributions now ship the GNU Partition editor (parted). I
personally haven't tried it, but it might work for you (you would need to boot
from rescue disk mode).
--
Michael Meissner, Red Hat, Inc. (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: [EMAIL PROTECTED] phone: +1 978-486-9304
Non-work: [EMAIL PROTECTED] fax: +1 978-692-4482
------------------------------
From: A.M.F. <[EMAIL PROTECTED]>
Subject: Re: Good web based mail server?
Crossposted-To: alt.linux,alt.os.linux
Date: Tue, 29 May 2001 02:47:42 GMT
Ivy Chiong Sia wrote:
> Hi Jeff,
>
> You may want to try evaluating our product, Internet Exchange Messaging
> Server, it is a complete and standalone mail server and has a web mail
> client.
>
> This stuff runs on Redhat too.
>
> You may get your copy at the following sites:
>
> Standard Tar: ftp://ftp.ima.com/pub/eval/iems/beta18-linux.tar
> Compressed Tar: ftp://ftp.ima.com/pub/eval/iems/beta18-linux.tgz
>
> Let me know, if you have downloaded you the program and I will assist you
> on this one.
>
> Ivy
>
>
>
> "Jeff" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
>> I'm running RH7.1 amd am looking for a good Web based mail-server app.
>> Any favorites or suggestions?
>>
>> Thanks
>> Jeff
>
>
>
Youre using linux right? I would suggest you play around with smail,
sendmail or one of the other linux programs. A simple search for linux mail
servers will probably yield you a pretty large list. Running Microsoft
products is just an all around bad idea. Microsoft corp doesn't even use
their own products because of all the security problems. Unless you want to
download a huge bloated program to handle your mail. I would suggest using
a package that came with your linux distribution.
------------------------------
From: "Christopher C. Stump" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,comp.os.linux.x,linux.redhat.misc
Subject: Hotpluggin' under RH 7.1
Date: Mon, 28 May 2001 22:03:32 -0500
Greetings all,
I recently setup Red Hat 7.1 on my i386 machine. I was happy to see that
I can finally use my Sony Spressa (CRX 100) CDRW/USB device under Red Hat.
Here's the thing, however, if I turn my CDRW on before I boot into Linux,
and it is the first Linux boot of the day (I'm on a dual boot
machine), then the Sony device drivers seem not to load and the CDRW
does not appear in /mnt. Every other Linux boot of the day, however,
brings up my CDRW just fine...it is detected, I can burn CDs , etc. So,
I usually have to boot the machine into Linux at least twice before I
burn any discs/use the CD-ROM. This is strange. What could be causing
this? Better yet, what are the tools, etc. used to control USB
configuration?
Thanks in advance to all who reply.
------------------------------
From: "gajo" <[EMAIL PROTECTED]>
Subject: How to start an executable???
Date: Tue, 29 May 2001 04:54:47 +0200
Reply-To: "gajo" <[EMAIL PROTECTED]>
OK, I have unpacked a game named tictac into usr/tictac. After installing the game
just as its
manual said (make, make install) I had the compiled game files in usr/tictac and
another executable
in usr/games. My guess was that I should start the game by running the one in the
games directory.
OK, I've tried the following:
- double-click on it from File Manager
- write "tictac"
- write "./tictac"
- run it from File Launcher
... and I've tried this with both executables (in usr/tictac and usr/games).
What am I missing here?
Csaba
------------------------------
From: "gajo" <[EMAIL PROTECTED]>
Subject: Problems with transfering files from win to linux
Date: Tue, 29 May 2001 04:57:56 +0200
Reply-To: "gajo" <[EMAIL PROTECTED]>
I have downloaded a 6 Mb large file. The file is a Linux RPM, but I don't have
internet access on my
linux machine, so I had to download it to windows. The only way to transfer this file
is through
floppy disks, and how can I do this? Should I split the file into 3 smaller ones, but
how will I put
them together when they're on my linux machine?
Csaba
------------------------------
From: [EMAIL PROTECTED] (3FE)
Subject: Re: running X applications as root after /bin/su
Reply-To: [EMAIL PROTECTED]
Date: Tue, 29 May 2001 03:45:34 GMT
On Mon, 28 May 2001 17:07:34 -0400, wroot <[EMAIL PROTECTED]> insisted:
>
> For some reason, I can't run X applications as root after doing /bin/su
For good reason. If you need something, add yourself to its group
ownership (/etc/group). Eg., modem, sound:
uucp:x:14:uucp,fax,root,fnet,keeling
dialout:x:16:root,keeling
audio:x:17:root,keeling
> (permission denied). How can I fix it. My distro is Debian Potato.
--
Any technology distinguishable from magic is insufficiently advanced.
TopQuark Software & Serv. Contract programmer, server bum.
[EMAIL PROTECTED] Give up Spammers; I use procmail.
------------------------------
From: [EMAIL PROTECTED] (3FE)
Subject: Re: running X applications as root after /bin/su
Reply-To: [EMAIL PROTECTED]
Date: Tue, 29 May 2001 03:49:21 GMT
On Mon, 28 May 2001 17:07:34 -0400, wroot <[EMAIL PROTECTED]> insisted:
>
> For some reason, I can't run X applications as root after doing /bin/su
> (permission denied). How can I fix it. My distro is Debian Potato.
And, before you "su", in your user account type "xhost+localhost"
(opening up X security for anyone on 127.0.0.1) then after "su -" do:
export DISPLAY=:0.0
Then run your comwand.
--
Any technology distinguishable from magic is insufficiently advanced.
TopQuark Software & Serv. Contract programmer, server bum.
[EMAIL PROTECTED] Give up Spammers; I use procmail.
------------------------------
From: Robert_L <[EMAIL PROTECTED]>
Subject: Re: Knode:can not save remote file
Date: Mon, 28 May 2001 23:50:44 -0400
Reply-To: [EMAIL PROTECTED]
Dave Uhring wrote:
> Robert_L wrote:
>
>> Lee Webb wrote:
>>
>>> On Mon, 28 May 2001 09:58:44 -0400, Robert_L wrote:
>>>> HI,
>>>> When trying to save a news message with Knode I get " can not save
>>>> remote
>>>> file". This happens whether I save from a new window or the view pane.
>>>> If I press cancel then try again the file will save, though I have to
>>>> type in
>>>> a new name. Am I doing something wrong? Is this a bug? A feature?
>>>> Thanks,
>>>> Robert
>>> I used to find that KDE apps tried to be *too* intelligent: doing a
>>> save-as for a web page in Konqueror would default to trying to save to
>>> the host at which the web page is hosted rather than my (local) hard
>>> drive. Perhaps KNode is trying the same?
>>>
>>> When you click save, does it give you a file dialog? If so, check the
>>> location to which it's trying to save. Is it defaulting to your news
>>> server?
>>
>> I'm not sure- it just has the title of the article in the box. (subject)
>> I assumed that when you open the article in a new window that it is
>> already downloaded to disk, in fact even viewing it in the preview pane I
>> assume is downloading the file.
>> As I mentioned I am able to save it after this initial failed attempt,
>> but this requires quite a few extra clicks if you as trying to save a
>> large number of articles, as a newbie like me must surely do.
>> Thanks for taking the time,
>> Robert
>>
> Mine won't save it either, but it will print to a file.
>
>
I hear a new release is coming out soon, this from the author
Christian Gebauer who was kind enough to reply to a previous post.
He also said the search function for newsgroup titles would be improved to
allow for individual display of titles rather than the tree view.
Perhaps this "save" problem will be fixed as well.
Robert
--
remove spamfree when replying directly
------------------------------
** 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
******************************