[SLUG] Running Linux on ASUS laptops.

2005-08-16 Thread Marek Wawrzyczny
I'm looking at replacing my failed Toshiba laptop with
a ASUS laptop.

Just wondering what is the attitude towards Linux/Unix
at the ASUS camp?

Cheers,

Marek

Send instant messages to your online friends http://au.messenger.yahoo.com 
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] OPENVPN help please

2005-08-16 Thread jam
Hi
I've setup openvpn and almost have it working ...

   10.8.0.6==openvpn10.8.0.1
[ME][router] - - - internet - - [SERVER]---[OTHERS]
 ||   |
192.168.5.123192.168.17.254   192.168.17.7

ME can ping SERVER: [tethereal -i tun0 at server]

679.332837 10.8.0.6 - 192.168.17.254 ICMP Echo (ping) request 
679.333004 192.168.17.254 - 10.8.0.6 ICMP Echo (ping) reply 
680.329705 10.8.0.6 - 192.168.17.254 ICMP Echo (ping) request 
680.329822 192.168.17.254 - 10.8.0.6 ICMP Echo (ping) reply 


SERVER can ping OTHERS

[server] /home/jam [55]% ping 192.168.17.7
PING 192.168.17.7 (192.168.17.7) 56(84) bytes of data.
64 bytes from 192.168.17.7: icmp_seq=1 ttl=128 time=0.388 ms
64 bytes from 192.168.17.7: icmp_seq=2 ttl=128 time=0.254 ms

SERVER can ping ME

[server] /home/jam [56]% ping 10.8.0.6
PING 10.8.0.6 (10.8.0.6) 56(84) bytes of data.
64 bytes from 10.8.0.6: icmp_seq=1 ttl=128 time=50.7 ms
64 bytes from 10.8.0.6: icmp_seq=2 ttl=128 time=44.7 ms

ME can't get a reply from pinging OTHERS [tethereal on server]

1002.738058 10.8.0.6 - 192.168.17.7 ICMP Echo (ping) request 
1007.814130 10.8.0.6 - 192.168.17.7 ICMP Echo (ping) request 
1012.816960 10.8.0.6 - 192.168.17.7 ICMP Echo (ping) request 

SERVERS route table

[server] /home/jam [57]% route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
10.8.0.2*   255.255.255.255 UH0  00 tun0
202.7.144.236   *   255.255.255.252 U 0  00 eth0
10.8.0.010.8.0.2255.255.255.0   UG0  00 tun0
192.168.17.0*   255.255.255.0   U 0  00 eth1
link-local  *   255.255.0.0 U 0  00 eth0
loopback*   255.0.0.0   U 0  00 lo
default 202.7.144.237   0.0.0.0 UG0  00 eth0


What have I done wrong/omitted to do. Going crazy trying to find!!
ME end of the tunnel is 10.8.0.2 hence the network route (that works)

Thanks
James
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] OPENVPN help please

2005-08-16 Thread Phil Scarratt

[EMAIL PROTECTED] wrote:


What have I done wrong/omitted to do. Going crazy trying to find!!
ME end of the tunnel is 10.8.0.2 hence the network route (that works)

Thanks
James



Couple of things to check (having just done this very thing):

1. Is SERVER the gateway for OTHERS? If not, then the gateway for OTHERS 
will need a route to find 10.8.0.0 and will also need ip_forward set to 
1. Any firewall on this gateway will also need to allow packets to be 
forwarded from internal interface out internal interface.


2. Check that SERVER has ip_forward allowed (/proc/sys/net/ipv4/ip_forward)

3. Check that any firewalls involved can pass packets from the interface 
OTHERS is on to tun interface.


Fil
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Building nvidia kernel modules on a Debian x86_64 machine

2005-08-16 Thread Alexander Samad
On Tue, Aug 16, 2005 at 10:00:02AM +1000, Jeff Waugh wrote:
 quote who=Alexander Samad
 
  What I have done is install debian (2.6.11 base kerneL) I then upgraded
  the kernel to 2.6.11-amd64-k8-smp which is a x86_64 arch kernel so it does
  both 32 and 64 bit stuff ( I believe).
 
 If you've installed the i386 version of Debian, then you're running entirely
 in 32 bit mode. The k8 kernel is just an optimised build for your processor,
 it doesn't do 64 bit.

From what I read of the amd65.debain site you need to install 32 bit
first and then install the amd64-k8 version which have support for 64
bit in them (just quoting what they say), when I looked at the source of
the package it is built with arch amd64 and gcc swith -m64 which says to
me its running 64 bit some where in it, but haveing said that when i do
an arch it comes back with x86_64.

But you have given me a thought maybe I am trying to build the 64 bit
version of the nvidia drives against a 32 bit kernel interface !

 
 Your best bet is to install the amd64 version, and (at least in Debian, as
 it doesn't support bi- or multi-arch) run your 32 bit software in a chroot.
 
 - Jeff
 
 -- 
 GNOME Summit: October 8th-10th  http://live.gnome.org/Boston2005
  
   A 'lame' server is a server that is SUPPOSED to be authoritative, but,
   when asked, says: 'Me? I know nothing, I'm from Madrid!' - Ralf
 Hildebrandt
 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
 


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

[SLUG] toshiba laptop disable screensaver

2005-08-16 Thread Del


Hi,

This is a question that probably has a really obvious answer that
I'm just not finding.

How do I completely and totally disable the screensaver that kicks
in on KDE / Fedora Core 3 on my Toshiba laptop (M2, nVidia chipset if
that makes a difference)?  I use it to watch movies a lot and despite
the fact that I tell mplayer to disable the screensaver, and despite
that I have disabled it in the KDE control panel, it still kicks in
every few minutes.

Any clues as to where I should go looking?

--
Del
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] postfix

2005-08-16 Thread ashley maher
I'm used to setting up qmail.

I found some references on setting up postfix from postfix.org. However
some references are better than others. Does anybody know a good
reference for setting up a decent postfix server for a postfix newbe?
(decent Imean spam filter, virus et al)

I tried to find Jeffs talk from a few onths ago I'm sure it is on the
SLUG site somewhere.

Rgards,

Ashley

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] postfix

2005-08-16 Thread David Kempe

ashley maher wrote:

I found some references on setting up postfix from postfix.org. However
some references are better than others. Does anybody know a good
reference for setting up a decent postfix server for a postfix newbe?
(decent Imean spam filter, virus et al)


there are a few guides around. search for howto postfix spamassasin 
clamav etc or amavisd-new.

depends on your distro choice

dave
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] postfix

2005-08-16 Thread Voytek

quote who=ashley maher
 I'm used to setting up qmail.


 I found some references on setting up postfix from postfix.org. However
 some references are better than others. Does anybody know a good reference
 for setting up a decent postfix server for a postfix newbe? (decent
 Imean spam filter, virus et al)

I've used the actual postfix docs from postfix.org, then, Jim Seymor's sp?
anti UCE how-to, postfixadmin, MySQL, later added amavisd-new, most of the
docs are referenced on postfix.org. postfix ml is also invaluable

all the docs I've used are referenced on postfix.org

even though I didn't understand most of the docs, it didn't stop postfix
from working, setting it up turned out simpler than I feared

courier-imap, postfixadmin, MySQL, amavisd-new, clamav  bdc is what I've
used with it



-- 
Voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] toshiba laptop disable screensaver

2005-08-16 Thread Simon Males


Don't know about fedora, but is it using Xscreensaver ? Thinking back to 
the last time I used KDE, I think you should be able to find a 
preference in kcontrol


(Got the same lappy, but it shouldn't make a difference).

--
Simon Males [EMAIL PROTECTED]


Del wrote:


Hi,

This is a question that probably has a really obvious answer that
I'm just not finding.

How do I completely and totally disable the screensaver that kicks
in on KDE / Fedora Core 3 on my Toshiba laptop (M2, nVidia chipset if
that makes a difference)?  I use it to watch movies a lot and despite
the fact that I tell mplayer to disable the screensaver, and despite
that I have disabled it in the KDE control panel, it still kicks in
every few minutes.

Any clues as to where I should go looking?


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Lindows experience.

2005-08-16 Thread Sridhar Dhanapalan
On Tue, 16 Aug 2005 01:34, Steven Tucker [EMAIL PROTECTED] wrote:
 Sudo rocks, Ubuntu rocks! Root does exist, if you
 want the traditional method of using root, just
 activate
 root by doing

  sudo passwd root

 when you create a password then you can log in as
 root, if you then disable sudo, you are back to the
 traditional set up! I quite like the way Ubuntu has
 used sudo, but if you dont like it, it takes seconds
 to change!

I think that's what I did on my system. I was unaware that Ubuntu is reliant 
upon sudo instead of su, and I thought that my root password was set to be 
the same as my user password. To change it, I used 'sudo passwd root', which 
of course removed the sudo functionality and reverted my system to a more 
traditional su setup.

Is the sudo-type setup employed by Ubuntu the same as that used in Mac OS X? 
Also, are there any security implications of this? Doesn't it mean that in a 
default setup, any local user can gain root access? Please correct me if I'm 
wrong.

-- 
Sridhar Dhanapalan  [Yama | http://www.pclinuxonline.com/]
  {GnuPG/OpenPGP: http://dhanapalan.webhop.net/yama.asc
   0x049D38B4 : A7A9 8A02 78CB AB1B FCE4 EEC6 2DD9 249B 049D 38B4}

FYI, XP doesn't stand for eXPerience. It's just an emoticon.


pgpv8hB4ueqii.pgp
Description: PGP signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] toshiba laptop disable screensaver

2005-08-16 Thread andrew fries

Simon Males wrote:


Don't know about fedora, but is it using Xscreensaver ? Thinking back to 
the last time I used KDE, I think you should be able to find a 
preference in kcontrol

If you are using xscreensaver, the GUI application where you can adjust
its settings is called xscreensaver-demo, for reasons that I'm sure make
perfect sense to someone :)
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Multimedia machine (Shuttle)

2005-08-16 Thread Alexander Samad
Hi

Quick feedbackn onthe box, 
ended up getting a 

SN95G5 v3, amd 3800+ 2000 (dual core)
nvidia 6600gt

Everything is working fine except the sound.

I installed debian of a net installed, used raid1 then lvm on top, had
some issue with the amd64 kernel and the nvidia drivers, went back to
the k7-smp kernel and the nvidia drivers worked well

The problem I have with the sounds is a bit strange, its one of the
intel8x0 style chipsets, but show up as a nforce.

alsaconf find its snd configures it properly, I had even connected the
tos optic out to my amplifier, I was able to do ac3 pass through work
well, but when I went to play normal sound - nothing.   I really
want to use the spdif optic out, tried a few things but did not get any
where, I place my sounds blaster card in there!

When I get a bit of time to have a play and a look on the net I will see
if I can find out how to fix up the sounds to play properly



On Thu, Aug 11, 2005 at 07:57:48PM +1000, Alexander Samad wrote:
 On Tue, Jul 26, 2005 at 12:38:44PM +1000, Lindsay Holmwood wrote:
  Alexander Samad wrote:
  
  On Tue, Jul 26, 2005 at 09:58:03AM +1000, Rob Sharp wrote:
   
  
  You can probably get a USB sound 'card' breakout box that outputs
  S/P-DIF, if thats the only thing going against the mini. I know a mac
  owning friend bought one, but I've no idea what it was...
 
  
  
  Sounds like I might end up with things dangling of the box, do like it,
  might wait and see what they are releasing next week.
  
  *Fingers crossed*.
 
 after a bit of time and a bit more research went for the shuttle sn95g6
 v3 with a amd 3800 dual core, will report back my experiences!
 
  
  Lindsay
  
  -- 
  SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
  Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
  



 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] Running Linux on ASUS laptops.

2005-08-16 Thread Lindsay Holmwood

G'day,
When looking at laptop compatibility, I find that tuxmobil.org is an 
indespensible resource. They have a page with information on Asus 
laptops at http://tuxmobil.org/asus.html. The pages linked to give a 
fair amount of information on how well they work under Linux.


HTH,
Lindsay

Marek Wawrzyczny wrote:


I'm looking at replacing my failed Toshiba laptop with
a ASUS laptop.

Just wondering what is the attitude towards Linux/Unix
at the ASUS camp?

Cheers,

Marek



--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Lindows experience.

2005-08-16 Thread Alastair Steel
I am a lindows - now linspire - user at home for the family (they also
use a Mac Mini with OSX) and gentoo at work and have used Mandrake
historically. 





I have installed and used ubuntu for only a short time on an x86 and a little longer on a PowerBook. 





Linspire is by far the most user friendly Linux system and this is
assisted by its simple install, user interface and the CNR installation
software. I would highly recommend it for cross over users from Windows
or MAC and non technical users. 





Also the default is to have a single user as root but this however this can
be simply altered by creating a non root user and you get back all the
bennefits of linux security etc. My home system just auto logs in and
the family have no idea that they are not root. Applications installed
by CNR are installed to a share directory for all to use but user data
is stored in an appropriate home directory. 
-- Yours Sincerely,Al Steel. 



-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] Multimedia machine (Shuttle)

2005-08-16 Thread Alexander Samad
On Wed, Aug 17, 2005 at 07:15:09AM +1000, Alexander Samad wrote:
 Hi
 
 Quick feedbackn onthe box, 
 ended up getting a 
 
 SN95G5 v3, amd 3800+ 2000 (dual core)
 nvidia 6600gt
 
 Everything is working fine except the sound.
 
 I installed debian of a net installed, used raid1 then lvm on top, had
 some issue with the amd64 kernel and the nvidia drivers, went back to
 the k7-smp kernel and the nvidia drivers worked well
 
 The problem I have with the sounds is a bit strange, its one of the
 intel8x0 style chipsets, but show up as a nforce.
 
 alsaconf find its snd configures it properly, I had even connected the
 tos optic out to my amplifier, I was able to do ac3 pass through work
 well, but when I went to play normal sound - nothing.   I really
 want to use the spdif optic out, tried a few things but did not get any
 where, I place my sounds blaster card in there!
 
 When I get a bit of time to have a play and a look on the net I will see
 if I can find out how to fix up the sounds to play properly

with some digging around I found that this now works 
pcm.nforce-hw {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm nforce
}
pcm.nforce {
type dmix
ipc_key 1234
slave {
pcm hw:0,2
period_time 0
period_size 1024
buffer_size 32768
rate 44100
}
}


so my ac3 pass through works as well as normal sounds through the optic
spdif.

have to admin I have to now work out what the above does!

 
 
 
 On Thu, Aug 11, 2005 at 07:57:48PM +1000, Alexander Samad wrote:
  On Tue, Jul 26, 2005 at 12:38:44PM +1000, Lindsay Holmwood wrote:
   Alexander Samad wrote:
   
   On Tue, Jul 26, 2005 at 09:58:03AM +1000, Rob Sharp wrote:

   
   You can probably get a USB sound 'card' breakout box that outputs
   S/P-DIF, if thats the only thing going against the mini. I know a mac
   owning friend bought one, but I've no idea what it was...
  
   
   
   Sounds like I might end up with things dangling of the box, do like it,
   might wait and see what they are releasing next week.
   
   *Fingers crossed*.
  
  after a bit of time and a bit more research went for the shuttle sn95g6
  v3 with a amd 3800 dual core, will report back my experiences!
  
   
   Lindsay
   
   -- 
   SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
   Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
   
 
 
 
  -- 
  SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
  Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html



 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] Lindows experience.

2005-08-16 Thread Alan L Tyree
On Tue, 16 Aug 2005 22:56:25 +1000
Sridhar Dhanapalan [EMAIL PROTECTED] wrote:

SNIP 
 Is the sudo-type setup employed by Ubuntu the same as that used in Mac
 OS X?  Also, are there any security implications of this? Doesn't it
 mean that in a  default setup, any local user can gain root access?
 Please correct me if I'm  wrong.

I think that it is wrong. The first user created during installation has
sudo privileges. Users created later do not. 

In fact, it seems to me
that later users have (by default) too few privileges, at least for use
in a home environment. I'm not saying that is wrong, but in a home
environment you probably want to allow secondary users to use the CD,
connect to the Internet, audio devices, etc. The default new user has
none of these rights. Dead easy to add them through the graphical
user/group controls though.

Alan
 
 -- 
 Sridhar Dhanapalan  [Yama | http://www.pclinuxonline.com/]
   {GnuPG/OpenPGP: http://dhanapalan.webhop.net/yama.asc
0x049D38B4 : A7A9 8A02 78CB AB1B FCE4 EEC6 2DD9 249B 049D 38B4}
 
 FYI, XP doesn't stand for eXPerience. It's just an emoticon.
 


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel: +61 2 4782 2670Mobile: +61 428 148 071
Fax: +61 2 4782 7092FWD: 615662
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Switching a website to ssl

2005-08-16 Thread Edwin Humphries
We have a web application served by apache (2.0.52-9) that we want to 
switch from normal http to https.


I suspect this is relatively simple, but - how do I do it?

--
Regards,
Edwin Humphries
Mobile: 0419 233 051
Ironstone Technology Pty Ltd
P. O. Box 423, Kiama, NSW, 2533
Phone: +61 (0)2 4233 2285
Facsimile: +61 (0)2 4233 2299
Web: http//www.ironstone.com.au

***
This email is intended for the named addressee/s only and
may contain confidential or privileged information. If you
are not a named addressee please delete the message and
notify the sender.
***
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Switching a website to ssl

2005-08-16 Thread Julio Cesar Ody
The whole application to be accessed via SSL?

If yes, then the steps are:

- create the certificates.
- make sure your apache installation was compiled with SSL support,
then enable SSL on a given virtualhost (since you're just switching,
probably the virtualhost has the same name as the host itself, but
uses port 443, if you want to keep the https:// in the address bar).
- check if your application uses absolute URLs (like in
http://site/page.php; instead of page.php) in the page links. If
yes, then change that to https, otherwise you'll be thrown out of the
SSL enabled virtualhost when navigating.

This answers the question. Detailed instructions can be quite long, so
I suggest you google for a few howtos on the subject.


On 8/16/05, Edwin Humphries [EMAIL PROTECTED] wrote:
 We have a web application served by apache (2.0.52-9) that we want to
 switch from normal http to https.
 
 I suspect this is relatively simple, but - how do I do it?
 
 --
 Regards,
 Edwin Humphries
 Mobile: 0419 233 051
 Ironstone Technology Pty Ltd
 P. O. Box 423, Kiama, NSW, 2533
 Phone: +61 (0)2 4233 2285
 Facsimile: +61 (0)2 4233 2299
 Web: http//www.ironstone.com.au
 
 ***
 This email is intended for the named addressee/s only and
 may contain confidential or privileged information. If you
 are not a named addressee please delete the message and
 notify the sender.
 ***
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
 


-- 
Julio C. Ody
http://rootshell.be/~julioody
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] turning html mail into text ?

2005-08-16 Thread Voytek
what is the best way to turn html mail into text, preferebaly before it
ends in my inbox ?
if procmail, is there a ready made recipe for that ?

using postfix/courier-imap/amavisd-new

-- 
Voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Dlink Adsl Modem dropping Packets

2005-08-16 Thread Glen Turner

Ryan Verner wrote:


Billion 5402's (ADSL2+ capable) are under $100/each - do yourself a
favour and get one of those, or something similar. :-)


I'd check that the bug that Billion had which didn't
allow TCP window scaling to pass through NAT has been
fixed.  Otherwise you'll never get the 24Mbps throughput
ADSL2 supports.

--
 Glen Turner Tel: (08) 8303 3936 or +61 8 8303 3936
 Australia's Academic  Research Network  www.aarnet.edu.au
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Using Xterms in Shell Scripts

2005-08-16 Thread Robert Thorsby
I've knocked out a bash script that uses dialog boxes (Xdialog in this 
case) to pass arguments to a perfectly good command line utility. The 
idea is that a rodent-fixated $USER can satisfy his fetish by clicking 
on a Desktop Icon. [Desktop Icons are those tiny graphic thingies that 
live under xterms and deface your Megan Gale wallpaper.]


Having punched out said script I suddenly had a Thought. [A Thought is 
an explosion in the brain that turns very tired hackers into 
insomniacs.]


What if $USER doesn't have [X|K|G|*]dialog? or has moved or nuked it? 
[$USER is capable of _anything_.]


My first idea -- to add another dialog box into the script -- seemed to 
cause a loop. So ..., why not use an xterm? But the -e option to 
xterm seems to have very limited functionality. If I pass a message to 
an ad hoc xterm it closes immediately because the -e option is 
explicitly designed to terminate the xterm when the command has been 
executed. Also, -e won't allow more than one command -- a 
restricted xterm!? Further, the man page for xterm seems to give just 
about every option known to mankind, except the one I want.


My solution, which follows, is a total kludge:

BEGIN SCRIPT SNIPPET 


#!/bin/bash
...
TITLE=My Bash Wrapper Script
XDIAL=/path/to/Xdialog
...
if [ ! -x $XDIAL ]; then
cat - EOF  /tmp/emergency_script
#!/bin/bash

echo   $TITLE
echo I can't find the bloody Xdialog file?
echo It may be a permissions problem.
sleep 3
EOF
chmod 700 /tmp/emergency_script
xterm -ut +l +ls +bc -font 10x20 -geometry 40x4 -title $TITLE \
-mesg -e /tmp/emergency_script
rm /tmp/emergency_script
exit 1
fi
...

END SCRIPT SNIPPET 

BTW, emergency_script still works if the shebang is absent.

Finally, my question:
What is the correct way to do this? or a better way? or, even, The 
Debian Way?


TIA,
Robert Thorsby

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Using Xterms in Shell Scripts

2005-08-16 Thread Julio Cesar Ody
 What if $USER doesn't have [X|K|G|*]dialog? or has moved or nuked it?
 [$USER is capable of _anything_.]

He's likely to have xmessage. The man page illustrates some of the
stuff you can do using buttons and some other widgets. Never used
these other widgets though...





On 8/17/05, Robert Thorsby [EMAIL PROTECTED] wrote:
 I've knocked out a bash script that uses dialog boxes (Xdialog in this
 case) to pass arguments to a perfectly good command line utility. The
 idea is that a rodent-fixated $USER can satisfy his fetish by clicking
 on a Desktop Icon. [Desktop Icons are those tiny graphic thingies that
 live under xterms and deface your Megan Gale wallpaper.]
 
 Having punched out said script I suddenly had a Thought. [A Thought is
 an explosion in the brain that turns very tired hackers into
 insomniacs.]
 
 What if $USER doesn't have [X|K|G|*]dialog? or has moved or nuked it?
 [$USER is capable of _anything_.]
 
 My first idea -- to add another dialog box into the script -- seemed to
 cause a loop. So ..., why not use an xterm? But the -e option to
 xterm seems to have very limited functionality. If I pass a message to
 an ad hoc xterm it closes immediately because the -e option is
 explicitly designed to terminate the xterm when the command has been
 executed. Also, -e won't allow more than one command -- a
 restricted xterm!? Further, the man page for xterm seems to give just
 about every option known to mankind, except the one I want.
 
 My solution, which follows, is a total kludge:
  BEGIN SCRIPT SNIPPET 
 
 #!/bin/bash
 ...
 TITLE=My Bash Wrapper Script
 XDIAL=/path/to/Xdialog
 ...
 if [ ! -x $XDIAL ]; then
  cat - EOF  /tmp/emergency_script
 #!/bin/bash
 
 echo   $TITLE
 echo I can't find the bloody Xdialog file?
 echo It may be a permissions problem.
 sleep 3
 EOF
  chmod 700 /tmp/emergency_script
  xterm -ut +l +ls +bc -font 10x20 -geometry 40x4 -title $TITLE \
  -mesg -e /tmp/emergency_script
  rm /tmp/emergency_script
  exit 1
 fi
 ...
  END SCRIPT SNIPPET 
 BTW, emergency_script still works if the shebang is absent.
 
 Finally, my question:
 What is the correct way to do this? or a better way? or, even, The
 Debian Way?
 
 TIA,
 Robert Thorsby
 
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
 


-- 
Julio C. Ody
http://rootshell.be/~julioody
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Using Xterms in Shell Scripts

2005-08-16 Thread Robert Thorsby

On 2005.08.17 10:49 Julio Cesar Ody wrote:

 What if $USER doesn't have [X|K|G|*]dialog? or has moved
 or nuked it? [$USER is capable of _anything_.]

He's likely to have xmessage. The man page illustrates some
of the stuff you can do using buttons and some other widgets.
Never used these other widgets though...


Ta muchly. That's what I was looking for -- much cleaner.

Robert Thorsby
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] NTPD behind a masquerade

2005-08-16 Thread Terry Collins

Peter Rundle wrote:


Cluesticks?


What do the logs say?

I find that a lot of the syncs time out with my main ntp boxen. I 
suspect that the main servers are extremely overloaded now that every 
home use has easy to use software to enable them to sysnc with stratum 1 
timeservers.



--
   Terry Collins {:-)}}} email: terryc at woa.com.au  www: 
http://www.woa.com.au
   Wombat Outdoor Adventures Bicycles, Computers, GIS, Printing, 
Publishing


 People without trees are like fish without clean water
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] trustdom

2005-08-16 Thread Simon
Hi all,

Getting confused here...simple question:

Can I use net rpc trustdom to establish a trust relationship between
Samba3 and W2003?



If so what would be the syntax of the command if:

SAMBA Domain = DOM1   AdminUser=admin adminpasswd= passwd1

AD Domain = DOM2 Adminuser=admin2 adminpassword=passwd2



Cheers





OLMC

Simon Bryan

IT Manager

[EMAIL PROTECTED]

LMB 14

North Parramatta

Direct Number:88381200

SwitchBoard: 96833300

fax: 98901466

mobile: 0414238002






  _  

 ella for Spam Control  has removed 148 Spam messages and set aside
229 Later for me
You can use it too - and it's FREE!  www.ellaforspam.com

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html