Re: [expert] LG Drive and VMWare

2003-11-16 Thread Kwan Lowe

> On Saturday 15 Nov 2003 2:57 pm, Kwan Lowe wrote:
>> Any idea if the LG Firmware bug will bite if the Mandrake 9.2
>> install is in a virtual VMware machine?
>
> Sorry for the delay in answering - I've been away.
>
> I don't know the answer, but I wouldn't take the risk.  LG now have a
> firmware update available on their site.  Install that first and you
> should be OK.  HTH


Thanks, Anne.
I bit the bullet and downed the host machine shortly afterwards. It was
one of those laziness things :D  Plus I had to walk someone through the
process without any idea of what the firmwate update screen read... Then
there was the 216 day uptime :(

On a side note, the setup on this remote site is pretty interesting. The
DNS and web server run completely inside a VMWare session. Complete system
backups are as simple as copying a file. Testing is a breeze since I can
test identical systems without bringing the main one down.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] MDK 9.2 upgrade

2003-11-15 Thread Kwan Lowe

>
> lilo failed: Fatal: geo_query_dev HDIO_GETGEO
> (dev 0x1600): invalid argument
>
> and i didn't find any way to install lilo
> so I decided to use grub and started without any
> problem any idea?
>

What size hard drive do you have?

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[expert] LG Drive and VMWare

2003-11-15 Thread Kwan Lowe
Any idea if the LG Firmware bug will bite if the Mandrake 9.2 install is
in a virtual VMware machine?


-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] menu in bash script

2003-11-15 Thread Kwan Lowe
> The case why I asked for this help is that we have a project to install
> Linux servers on several locations with the same/very similar settings.
> Unfortunately, the hardware is varied between locations so 'ghosting
> hdd" is not the solutions.

I wrote the following script to do something similar. It was used to
install an embedded system with a canned set of packages. There are a
couple other files associated with it that I've long lost, but it's easy
enough to figure out.

http://www.digitalhermit.com/~kwan/install_system




-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Noise

2003-11-15 Thread Kwan Lowe
>>> > What is reading/writing on my harddrive every 5-6 seconds?
>>> > If I go to runlevel 3, whatever it is, stops.
>>> > Runlevel 5 uses Kde 3, so it must be something in there.
>>> > I turn every app I see off, but still no result.

I'm dumb. Your information about it stopping in init 3 just didn't take
the first time I responded. Though it is possible that logging is causing
the issue, more likely it is something like some sort of automount daemon.
Look for something like automount, autorun, or magicdev in your process
list. Try stopping them to see if the activity stops.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Noise

2003-11-14 Thread Kwan Lowe

> Hello list!
> What is reading/writing on my harddrive every 5-6 seconds?
> If I go to runlevel 3, whatever it is, stops.
> Runlevel 5 uses Kde 3, so it must be something in there.
> I turn every app I see off, but still no result.
>
Probably some sort of log. You can try sending logs to a remote server or
shutting down syslog entirely to help troubleshoot. Take a look in
/var/log and see if there are any files that are growing or with recent
timestamps:

$ cd /var/log
Sort by size
$ ls -lSrh *
Sort by date
$ ls -ltr



-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] menu in bash script

2003-11-14 Thread Kwan Lowe

> but if you learn dialog, then you can readily port the same script to
> xdialog, which is keen :-)
>

Yes -- xdialog has effectively replaced 90% of my tcl/tk needs. It's still
not a complete substitute, but the ease of generating interfaces makes up
for its inflexibility.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] menu in bash script

2003-11-14 Thread Kwan Lowe

> Fajar Priyanto wrote:
> Dear All,
> Can we make menu in bash script just like in DOS' batch file?
> Such as:
> ===
> [Menu]
> Pls select what you want to do:
> 1. Copy /etc/dhcpd.conf
> 2. Copy /etc/wvdial.conf
> 3. Make directory /var/log/nullmailer
> 4. Do all of above
> ==
> Could you please give me some examples?

Besides the case operator that someone else has mentioned, you can also
use the "dialog" utility to create menu boxes. For example:


dialog --clear --backtitle "A Checkbox" --title "Choose one:" \
--menu "Please select one item:\n" 30 30 8 \
 "Item1" "Choose me" \
 "Item2" "No, choose me" \
 "Item3" "Better choose me"

The selection will be sent to stderr which you can either capture to a
file or read directly. You'll still need the case operator or nested ifs
to act on the user choice. Dialog will also do text input, checkbox,
radiobox, etc..

If dialog is cumbersome but you do like the interactivity, take a look at
the "newt" package. It has some very easy ways of generating similar
menus.
-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Frickin spam and spamassassin

2003-11-10 Thread Kwan Lowe
>
> These are tricky html or other type of spam, they are plain text.
> Generally
> they are viagra messages.  The one that really galls me is one that uses
> the
> name "[EMAIL PROTECTED]" or "[EMAIL PROTECTED]" instead of the actual proper 
> spelling.
> Nonetheless, this shouldn't matter...or so one would think.

I understand your pain.  Last week my servers received over 3,000 spam
messages, of which almost 100 made it past the spamfilters. Here's one
site that has interesting approach:

http://bleaklow.com/blog/archive/23.html

You could add the obfuscated strings to look specifically for those
misspellings.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] /etc/hosts and dns

2003-11-10 Thread Kwan Lowe

> I have a laptop that connects to my office e-mail server as an IMAP
> client. Sometimes I am outside the firewall, and in this case, I can
> connect to the server using the server's fqdn.  When I am inside the
> firewall, I can connect to the server by making an entry in my /etc/hosts
> file for it that aliases it's private ip to it's netbios name (it is an
> Exchange 5.5 server).  In order to connect, I simply change the servername
> in kmail depending on where I am.
>
> So now my question, is there any way to set up my hosts/resolv.conf/tmdns
> to look for the server in the local network first and if it cannot find
> it to look it up in the DNS so that I don't have to constantly change the
> setup in kmail?
>
> Since the local addressing scheme in place at my company is quite unique
> I would even be open to doing something like having a script called in
> rc.local check to see what the network ip block of the local network is
> and writing out a hosts file that would have an entry for the server if I
> am on the right network, although I have no idea how to actually implement
> that.


There are a couple ways to do this. IMHO, there's an easy way and a
correct way and it's not clear which is which :)

The quick way would be to write a script based on the IP address that you
receive. You could either parse ifconfig or do something when your dhcp
client returns. You could also put in a specific configuration for your
MAC address inside the DHCP server itself. However, these all have
inherent disadvantages.

The way I'd do it is to set up a DNS view for the internal and external
networks. Machines on the inside would receive the private non-routable
address when querying the nameserver for mail.domainname.com. External
machines would receive the public IP address.

For example in the named.conf:

view "internal" {
   // This should match our internal networks.
  match-clients { localnets; };
  recursion yes;
  zone "domainname.com" {
type master;
file "pz/db.internal";
};
}

view "external" {
  match-clients { any; };
  recursion no;
  zone "domainname.com" {
  type master;
  file "pz/db.domainname.com";
  };
}


-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] [OT] Publishing text (was: (OT)Uh..... Am I alone in noticing the insanity?)

2003-11-09 Thread Kwan Lowe

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> I don't know what this means.  I write a paragraph in OO, in Lyx, and in
> Abiword.  Same paragraph.  I then print it.  It looks identical regardless
> of
> what I used to generate it.  The text is whatever quality the printer can
> produce.  There is nothing magic about latex/lyx output to printer.

This is true for many standard printers, but not all. Well, maybe I should
say that you can't readily detect the differences when using most
printers. However, some printers have built in fonts, different pixel
ratios,margins, different ways of printing dots, etc., so a  file can
print differently on different printers. A common side-effect of this is
having to reformat a document when printers are changed. Postscript
generally does a good job of overcoming this problem by defining how the
page looks inside the document. So yes, LaTeX and Lyx output will be
different than something like Kwrite or Word which relies on the printer
to draw the page.


-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] (OT)Uh..... Am I alone in noticing the insanity?

2003-11-09 Thread Kwan Lowe
> I would LOVE to be able to do this in OpenOffice.  I would LOVE for the
> document on the screen to appear as it does when I print it out (Lyx gives
> no indication of what the output will actually look like).


LyX and LaTeX not WYSIWYG editors and actually make it a point in their
documentation. Except for an occasional business letter using a template,
I prefer to not have to worry about how the final page will look.

[...]

> In this area, linux just lacks and cannot work as a dropin replacement for
> most users.  Most users are not going to want to learn Lyx.

Have you tried kile? It's still not a replacement for most people, but if
you're reasonably proficient with LaTeX it can make editing easier. I've
been playing around with it recently and it's similar in idea to something
like quanta++.


-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Dell Inspiron 3200 Installation Problems

2003-11-08 Thread Kwan Lowe

> Now, in thinking about the problem, it would seem that there is some
> problem
> with how the ide drivers attempt to attach to the CDROM. Or is it that the
> download images are different from the purchased CDs?
>
> Does anybody have any ideas with this problem? Has anybody successfully
> installed 9.1 or 9.2 on a Dell Inspiron 3200??

Some CD readers have problems with burned disks. The 3200 is new enough
that this shouldn't be a problem, but you can't always be sure. Once it's
installed, can you try mounting the burned disks?

 You can also try doing an FTP/HTTP install, which I used on my Inspiron
3500 for 9.1.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] missing kde features

2003-10-30 Thread Kwan Lowe

> Here's a couple KDE features I miss.
>
> a) Konqueror starting up with the sidebar by default (in file manager
> mode).

This should work:
a) In file manager mode, configure your konqueror session as you want it.
Then do a "Save View Profile" from the Settings menu.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] KDE copy and paste not working properly in 9.2?

2003-10-30 Thread Kwan Lowe

> Hi,
>
> has anyone else had some problems in KDE apps with copy and paste?  I'm
> noticing some strange errors, e.g. copy a full screen of text, and paste
> in another window in the same application, and getting text from a
> privious copy / cut.  It seems to work when only a small amount of text
> is copied.

Have you tried shift-selecting the region to be copied?

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Fetchmail problem

2003-10-30 Thread Kwan Lowe
> OK.  On my laptop I use a global /etc/fetchmailrc file because I like the
> cleanliness of running fetchmail as a daemon at startup rather than as a
> cron
> job as a user (Ugh.  Crude.  Ugly).  I decided to experiment on my desktop
> and try to use fetchmail in daemon mode but instead of an
> /etc/fetchmailrc, I
> have a ~/.fetchmailrc file.  Naturally, no worky.
>
> Is there a way to get fetchmail, the DAEMON, to use my ~/.fetchmailrc file
> or
> am I going to have to copy it to /etc/fetchamilrc again?
>

Have you tried using the "-f" or "--fetchmailrc" flag when you can fetchmail?

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] I need to Port Foward 443 internally

2003-10-30 Thread Kwan Lowe

> Does anyone have a simple approach to forward the 443 port to an
> internal machine?
>

Assuming your running some sort of Linux router with IPTABLES, you should
be able to do something like this:

iptables -t nat -A PREROUTING -i eth0 -p tcp -d w.x.y.z --dport 443 -j
DNAT --to-destination a.b.c.d

iptables -t nat -A POSTROUTING -s a.b.c.d --sport 443 -o eth0 -j SNAT
--to-source w.x.y.z

w.x.y.z is your external, a.b.c.d is your internal. Please let me know if
it works.


-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] TCP receive window

2003-10-27 Thread Kwan Lowe

>
>
> Hi folks !
>
> I'm looking for information about how to configure TCP receive window in a
> Linux
> based system (Mandrake 2.4.21-0.13mdksmp) because I have an application
> which needs to download huge data pieces in small time frames.
> Does anyone know how to do that ?
>
>
Here's a good link:
http://www-didc.lbl.gov/TCP-tuning/buffers.html

Note that it mentions the Linux tcp auto-tuner is pretty good. The system
will automatically adjust window sizes based on several parameters so
explicit tuning may not gain much if anything.
-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] KDevelop Help

2003-10-24 Thread Kwan Lowe

> Thanks.  I'm new to developing where I have to play with anything
> remotely resembling a makefile.  I didn't know that in the additional
> libraries I had to put the -l in front.  Ooops.

I, uh, did the same thing at first :D.

Let me know if i can help anytime.


-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] KDevelop Help

2003-10-23 Thread Kwan Lowe

> The project is a simple 'Terminal C++' project, with the only changes
> being an added #include , and the contents of main() [below].
>

Hmm.. Seems to build fine on mine, though execution fails because I don't
have a sound device. To build this I did:

New C++ terminal project, accepted defaults.
Replaced main.cpp with your example code.
Went to Project Options|Linker then added the following:
  -lSDL

Ran Execute (F9).

How did you install your SDL libraries?

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] KDevelop Help

2003-10-23 Thread Kwan Lowe

> Not trying to complie KDevelop, no.  I'm trying my hand at writing a
> couple small games (hopefully, with experience I'll try my hand at some
> larger games as well), but I can't even get the SDL equivalent of 'Hello
> World' to compile.  I get an 'undefined reference to 'SDL_*' error for
> each SDL_* function call I make.  I've got #include  up with
> the rest of the includes, and it isn't complaining about being able to
> find SDL.h any more, but it won't compile because of the undefined
> reference errors.
>

Shoot me some example code if you'd like. I just compiled a couple of the
example applications from the SDL library and they worked fine under
Kdevelop.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] KDevelop Help

2003-10-23 Thread Kwan Lowe

> Unfortunately, this how-to doesn't seem to have been updated since the
> 1.x days of KDevelop, and I don't know enough about how KDevelop works
> to figure out how to translate the differences.  For example, there's no
> acinclude.m4.in or libtool.m4.in, and even though I've got every SDL
> library and it's development counterpart installed, I don't seem to have
> an sdl.m4 file anywhere.  I've seen mention that KDevelop3 will come
> with SDL project templates, but its still a way off.
>
> Anybody have any ideas?

Once you've started a new project, go to the Project Options Menu (either
F7 or go to the Proects Menu then Options). Select Linker Options. In the
Additional Libraries section add SDL.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Increading /mnt/cdrom size?

2003-10-22 Thread Kwan Lowe

>
> PS Is /mnt/cdrom using the size of /?
>

Yes. /mnt/cdrom is just a directory on your root filesystem.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Trouble mounting windows drive

2003-10-21 Thread Kwan Lowe

Bleah...Sorry. Ignore that last message. Not enough coffee. Too early. I
was responding to a Samba question in another email and just replied to
the wrong thing (saw Windows in the subject).

Need coffee.
Please.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Trouble mounting windows drive

2003-10-21 Thread Kwan Lowe

> Just installed 9.1 from 9.0 ( I know I'm a little behind) and I can no
> longer access my mounted windows drive as a normal user.
>
> # ls -l
> total 16
> drwxrwxrwx1 root root Oct 19 19:25 cdrom/
> drwxrwxrwx1 root root Oct 19 19:25 cdrom2/
> drwxrwxrwx1 root root Oct 19 19:25 floppy/
> drwxr--r--   41 root root16384 Dec 31  1969 windows/
>
> I can not chmod that directory either, I try and it goes through the
> motions like it is fine but does not change the permissions so I can not
> access this drive unless I su to root. Not sure what to do...
>
Forgot to post the examples:

//helios/export /mnt/helios_smb   smbfs   credentials=/tmp/pass   0 0

The credentials file will contain something like:
user=dilbert
password=d0gb3rt

You'd of course put the credentials file somewhere safe and with
appropriate permissions.

If you don't want any authentication you'll need to make the share public
in the smb.conf file on the server.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Scripting question - deleting old backups when disk capacity exceeds athreshold

2003-10-20 Thread Kwan Lowe

> It seems that each time I attempt to write a script for something like
> this, the next day I see one that replaces my 46 lines of code with one
> (and actually works).  So before I create my usual kludge, can anyone
> point me at a good way to do the following?
>
> I create backups each day in directories named for the date in the form
> -MM-DD.  I would like to keep as many of these online as I can, so
> to do this I need a script to look at the percentage used of my backup
> partition and delete the oldest backups until reaching a given
> threshold.  I guess in pseudo-code it would be something like:
>
> while free-space < threshold do
>   rm -rf the-oldest-backup
> done
>
> I can get the free (or used) percentage by parsing the output from df I
> guess (using awk maybe?), but maybe there's a better way to do that.  As
> the directory names sort by default with oldest first, I guess there's
> an easy way to say the-oldest-backup.
>

You can used the find command to search for files older than a certain date:

find . -mtime +7

You can also use ls to order by date:
ls -ltr
or
ls -lt

Then use head or tail to grab the bottom or top entries.

To get the free space you can use df:
df -h

To get space within a directory use du:
du -h




-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Help please! Cannot stop this spam

2003-10-19 Thread Kwan Lowe

> I have receive over 100 of these today alone.  Nothing i've tried with
> procmail recipes has worked.  I cannot stop this nonsense.  The from
> address
> is my own fetchmail-daemon:
> [EMAIL PROTECTED]
>
> I am considering having all fetchmail-daemon emails sent to dev/null but
> fear
> the repercussions.
>

What recipe are you using? If it's coming from the same daemon just match
on the sender field.  What is the text of the message? Is it real spam or
just a fetchmail process that's wonked?

A few other ideas:
If you're running fetchmail via a cron job (i.e., no daemonized) then try
sending errors to /dev/null.

Stop it at your reader..

Add a spamassassin rule.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] How to check if the swap is on?

2003-10-19 Thread Kwan Lowe
>Although I can't remember the message on the beginning of boot process,I
know
>that it says something about swap not being turned on.  Later in the boot
>process, swap seems to be turned on but I want to be 100%.  How can I check
>if swap is on?  How can I check how much of swap linux is using and how much
>is left?

A few commands you can use besides the ones already mentioned:

List swap usage by device
 swapon -s

List swap usage, statistics, etc..
  vmstat

Show general memory usage
  free




-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Running X across a network?

2003-10-19 Thread Kwan Lowe


> Even quicker is:
>
> $ ssh [EMAIL PROTECTED] appname
>
> ie:
>
> $ ssh [EMAIL PROTECTED] drakconf
>
> The username is only required if you have a different username on the
> remote box.  Works even slicker if you are using ssh keys.


If you're not launching from an xterm and you're not using keys, you can
have the gnome-askpass utility pop up by setting SSH_ASKPASS to the
location of the ask pass utility. E.g., in your .bash_profile:

SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
export SSH_ASKPASS

This is handy for using Gnome or KDE's 'Run Command' utility.


-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Running X across a network?

2003-10-19 Thread Kwan Lowe

> I finally built up a server box that can support X windows, and I have
> installed Gnome as the interface.
>
> In order to configure the server, I would like to run X across my LAN so
> that
> graphical tools were available.
>
> What is a good way to do this? Can I run X across SSH? Is there a good VPN
> client that I can use?

>
Several options:
1. Run VNC server on the server and connect with VNC client. Upside -- you
get a full GUI and window manager. Downside -- more load on the server.

  a. Install VNC server on server
  b. Run vnc-server on remote
  c. Install VNC client on local machine
  d. From client, vncviewer w.x.y.z:port

2. Run X over SSH. ssh into the server and run the client X11 application.
  a. ssh -X w.x.y.z
  b. On remote, launch X11 application.

3. Export your display to the local box. Upside -- no setup. Downside --
not very secure except when using xauth, little auth required, not
compressed.
  a. On local machine, xhost + w.x.y.z
  b. on remote, export DISPLAY=a.b.c.d:0
  c. Run X11 client application on server
-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Why not use the default directories?

2003-10-17 Thread Kwan Lowe

>
> A general comment: Why doesn't Mandrake, when it's building a new version,
> does not use the default installation directories of each package? Because
> otherwise, when we reinstall it, we have a chance of ending up with two
> versions of the same files!  -turgut
>


I was thinking about this recently after doing some from-source
installations of the 1.x Apache software. It was actually better for me
that Mandrake chose to use their own hierarchy because otherwise my
install would have been more difficult. Since software creators have some
creative and unusual choices for their installation directories, it seems
better for my sanity that they enforce their directory structure.

Is it LSB compliant? Dunno, but it seems close.
-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] ip addressing on lan

2003-10-16 Thread Kwan Lowe

> When I apply this IP using the wizard on install it all takes and seems to
> be there .. If I try and ping anything on the LAN I get destination
> unreachable, and if I ping the unit from another machine on the LAN it
> times out. But from the 9.1 machine, I can ping 192.168.0.200 (it's NIC
> ip) .. the routing table sees the ip, but wont look at the gateway or LAN.
> .

Sounds suspiciously like a bad cable/connection. Can you try switching the
cable to a known-good and plugging into a know-good port on the hub or
switch?

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Ancient lib

2003-10-15 Thread Kwan Lowe


>> Make sure that you have both svgalib and svgalib-devel installed.
>
> But where are they sourced Kwan ?
> I hav'nt been able to find them on any of the mandrake sites , including
> cooker.
> There are a couple of references to svgalibs on LUNI and MDK7.2
> and they are dated between 1997 and the last I've seen is 2000.

You can grab the src rpm from another distro and rebuild. If you run into
rpm macro errors, take a look in the /usr/lib/rpm/macros file to make sure
that the macro exists. If it doesn't, the easiest thing is usually to
extract the macros file from the rpm package for the distro that you got
the src.rpm from.

That wasn't too clear :D

If you grab a redhat SRC.RPM for svgalib then try to rebuild, you may get
errors such as unknown tag, macro not found, or "no job control in shell".
These usually indicate missing macros in the /usr/lib/rpm/macros file and
is common when compiling non-native source rpms.  The workaround is to
find the rpm-VERSION-i386.rpm file for the alien distribution then extract
the macros file from the RPM binary (use rpm2cpio). Next, copy the
relevant portions of the alien macros file into your own .rpmmacros or the
system wide /usr/lib/rpm/macros file.
-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Ancient lib

2003-10-15 Thread Kwan Lowe
> Trying to compile a DSP package called Linrad,
> its for very low level radio sigs that are below noise levels.
>
> It requires svgalib -1.4.3 or later, this I suspect is ancient.
> using RPMfind that version seems to the same vintage as RH 6.2,
> about the time of the change from 2.0 to 2.2 kernels
>
> I can see in configure its looking for vga.h and vgagl.h.
> There is a copy of vga.h in the drivers but not the other file.
> So at the moment I cant create a Makefile see below:-
>
[...]
> checking for vga.h... no
> configure: error: Must have svgalib package installed to compile
> vga.h missing!!!

Make sure that you have both svgalib and svgalib-devel installed.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] corrupt tar fil

2003-10-15 Thread Kwan Lowe


> /stuff/keep_huff_sort/NewDir $ file KEEP.TAR
> KEEP.TAR: POSIX tar archive
>
> On a tar i made just now, i get:
>
> /stuff/keep_huff_sort $ file tmp.tar
> tmp.tar: GNU tar archive
>
> Any idea if POSIX tar is actually different than GNU tar?

Hmmm.. I have some possibly bad news.

Gnu tar can apparently read POSIX archives without problem.  The issue, as
you suggested, may be that the archive itself is corrupt. From a quick
google it appears that transferring a tar file in non-binary mode can lead
to such corruption. So next question:  Did you ftp this file from another
machine? If you did, did you remember to transfer in Binary mode?


-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] decoding DTMF

2003-10-15 Thread Kwan Lowe

> Could you tell me how can I decode DTMF codes with a sound card?

There's a project in the following link that might do what you're looking
for:
http://telephonectld.sourceforge.net/

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] corrupt tar fil

2003-10-15 Thread Kwan Lowe

> I have a corrupt tar file from way back:
>
> /stuff/keep_huff_sort/NewDir $ tar -xvf KEEP.TAR
> keep/
> keep/c/
> keep/c/arrays.c
> tar: Skipping to next header
> tar: Archive contains obsolescent base-64 headers
> tar: Error exit delayed from previous errors
[...]
> Any idea how to get around this?
>
> I think the file is corrupt, as opposed to "tar: Archive contains
> obsolescent base-64 headers" since it's from ~1996 (which is not
> *that* long ago :).


Try running "file" against the archive to determine if it's actually a tar
archive:
   > file KEEP.TAR

If you see something like "compressed" then you'll need to either extract
the file first then detar, or run tar with the 'z' switch:

  > tar xfvz KEEP.TAR

If it's just a regular tar file you can try opening it in an editor to get
out the text parts. There's no compression in a regular archive.
-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] linux complient notebooks

2003-10-14 Thread Kwan Lowe

> I would like to get opinions from those possesing linux compatible
> notebooks
> without any driver problem. Further I would like to ask those possessing
> intel centrino based notebooks their usability in linux for wireless
> connection. Mine will be general purpose using productivity apps and also
> video and audio playing from cds and dvds in addition to internet oriented
> jobs.
> --

As of this writing, Centrino wireless does not work with Linux. There were
some postings before Centrino was released that Linux would, in fact, be
supported. This was entirely marketing hype because there's no working
drivers available (I just spent days trying on a Compaq X1000). Also, the
power level indicator does not work correctly with RedHat 9 or Mandrake
9.1 on the above X1000. I've tried rebuilding with various patches found
throughout the web but it was unreliable. I personally won't buy a
Centrino notebook until Intel supports Linux fully.

I don't have many other newer notebooks but here's my experience with the
older ones that I own:

Toshiba Satellite 4090XDVD -- older, but everything works (sound, video,
modem)

IBM Thinkpad T22 (800MhZ) -- older, everything also works.

Dell Inspiron 3500 -- ancient, no sound (NeoMagic chipset)
-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] thinkpad buttons; how to enable them?

2003-10-11 Thread Kwan Lowe

> Hello - I was wondering how to enable the thinkpad buttons under Mandrake
> 9.1 ? Things like volume control and screen brightness settings do not
> seem to function under X. Any ideas?
>
> Thanks, -turgut
>
>

It depends a lot on your particular window manager, but here is a start:
Run xev in a terminal window to determine what the keycode settings are
for the extra keys.

Use these to populate your local .Xmodmap file to look like:
keycode 146 = XF86Mail
keycode 147 = XF86Search


Umm, I was looking for a complete list of XF86 keys and found this:

http://reviewed.homelinux.org/en/xfreekeyboard.html

Same idea but much explained much better than I... :D

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] How to Block IE from a Website

2003-10-10 Thread Kwan Lowe
> I don't have many pages to edit, so adding it to each and every page
> would be a simple matter of copy and paste.
>
Just a suggestion: If you're editing multiple pages, even just a dozen,
you might consider making the pages PHP based. You can enable .html as a
PHP script in apache then just insert "include" directives in your HTML
code to point to more HTML or PHP script.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Re: Best Use of Swap

2003-10-10 Thread Kwan Lowe

> What I've been told in the past (albeit on Red Hat, but that shouldn't
> matter much) is, that with a 2.4.x kernel you do indeed need 2xRAM due
> to the way 2.4 allocates memory. Under 2.2.x, I happily used swap just
> up to the amount of total memory I envisaged to be necessary.
> Unfortunately, I'm not a kernel expert, so I don't know the exact
> reasoning behind this advice for 2.4.x.


Up to about kernel 2.4.10, swap required at least the size of RAM to be
additional. In other words, if you had 128M or RAM and 384M of SWAP, you'd
only have 384M working memory, not 512M. This changed after about 2.4.10
so all swap was additive, which was similar behaviour to 2.2 kernels.

I think that the 2X rule of thumb originated in days when 8M to 32M of
memory was common, so allocating 64M or 128M was workable. With the
average machine having 512M to a gig of physical RAM this doesn't seem to
make as much sense. I've written before that 1G of swap space on today's
large hard drives is relatively smaller than 128M on older drives; in that
light having large swap space doesn't seem so unusual. On the other end of
the spectrum you can run entirely without swap by using memory overcommit
and many people are happy doing so.



-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Fwd: Two Linuxes on the disk

2003-10-09 Thread Kwan Lowe

>
> I have two Mandrakes on my disk - one localised (CZECH) and the other US.
> How
> can I instruct LILO to boot on of these two instances ? I can boot only
> the
> latest installed.
>

The important thing is to have the same version of lilo available on both.
Boot into the latest then mount the root partition of the second OS. Add
an entry in the lilo.conf file for both versions, making sure they are
identical.

A *LONG* time ago I created some notes on this subject. It might be useful:

http://www.digitalhermit.com/linux/dualboot.html

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] icewm

2003-10-07 Thread Kwan Lowe

> Is there anyway I can save my theme when I start icewm?
> I Really like this GUI since it uses less resources than gnome or kde.

Here's a link that has some information:
http://media.theare.giointernet.co.uk/XP_like_desktop_with_IceWM.html

Check out part 2 about editing the .icewm prefs file.

There's also a program called icepref that will do this without having to
edit any files directly. It might be available from one the repositories
but I haven't checked.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] wav to mp3 enmasse?

2003-10-04 Thread Kwan Lowe

> Is there a tool for converting wav files to mp3s enmasse?
>
> Right now I am using Lame at the command line, but it is getting old. I
> would
> like to point Lame at a directory of wavs and have it encode the mp3 files
> using the same name.
>
> Any thoughts beyond a shell script?

There's a program called KBlade that works with bladeenc and KDE to allow
drag and drop conversion.

http://membres.lycos.fr/linzeus/kblade/

You can also make scripts inside the Gnome folder. If you select a file or
directory then call the script it will get passed as a parameter to your
script. You could then have your script convert everything in the passed
directory.
-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] KDE start up is too slow!!

2003-10-04 Thread Kwan Lowe
>  Now the configuration, installation is the same as
> before but now KDE is starting up too slow. Please
> help me to find out the reason.

Slow startup of the window manager (be it Gnome, KDE or something else) is
usually caused by a network misconfiguration such as a bad hosts file,
incorrect /etc/resolv.conf settings, or a bad route. If the system cannot
determine its hostname, for example, it may try for a while before timing
out.

Do you notice constant disk activity until KDE is ready? In other words,
does the system appear to be waiting or does something always appear to be
going on?

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] alphabet characters

2003-10-04 Thread Kwan Lowe

> Hey,
> How do I go about using cyrillic, greek, or any other characters
> in my outgoing email?  I messed around pasting the characters, but
> when I viewed it, it only showed the ascii character code '&'.
>
> --

Not very easily :(   Here's a web resource for some information:
 http://www.hri.org/fonts/unix/

If you're trying to send mathematical documents I've found that the
easiest method is to compose in LaTeX then send as a PDF or PS file.

-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] 9.1: partition "device busy" on shutdown

2003-10-04 Thread Kwan Lowe

> Have had 9.1 installed on several machines for months working fine.
> One had a harddrive problem this last week, so just got a new drive
> and reinstalled 9.1 then did most updates.  When I tried to shutdown
> the machine, however, umount failed for the partition I have /home on.
> Get a "device busy" message.  Went into console as root right after boot
> and
> could umount and remount for a couple of minutes, but then suddenly
> got "device busy" message (without ever having done anything that
> should have involved /home).  Root partition and other (/backup)
> partitions
> umount fine at shutdown.  But /home partition will not--ever.  lsof from
> console lists nothing.  Any ideas?  Never encountered this problem before
> with any 9.1 installation.  Happens with both original 9.1 kernel
> (enterprise)
> and the latest updates one (enterprise version).

Check that you don't have any automount processes running, NFS server is
down, and no other open files.

You can also try remounting /home as ro then fsck'ing the device. E.g.:
  mount -o remount,ro /mnt/home




-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] /proc/kcore

2003-09-29 Thread kwan

> free -m shows the same as top, 24000K swap in use. Neither explain the
> 17M discrepancy.
> --

How much memory is on your graphics card?

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] /proc/kcore

2003-09-29 Thread kwan
> Why is this file size 148180K, when all other files in /proc are size 0?
> I'm in runlevel 3 no less.
> --

kcore is not a real file but is an image of your memory. Do an 'ls -lh
/proc/kcore' and it should match your physical RAM size. It's not taking
up any space on your disks.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Cant Delete File

2003-09-29 Thread kwan
> Hello, I am hoping someone can give me some advice on how to delete a
> file.
>
> Apparently the directory /usr/local/netscape/chrome/ got hosed and it
> shows up
> as a 2.2gb file and not a directory any longer.
>
> EXT3 file system, file system check shows no problem.
>
> The file shows OWNER:  35327
> and I can not create a user that starts with  a number to delete it that
> way.
>
> GROUP:  3277717500 (kde)
>  -10172497 (midnight commander) this may just be how shell and kde
> display the number (signed number??)
>
> I added both of these groups and added root to both groups and I still
> cant do
> anything with the file.

Not sure if this has been suggested but you can try finding and deleting
by inode:

[EMAIL PROTECTED]  ls -i
32903   mozilla.ps  32770 week1_day1
1802247 mp3 32911 week1_day1.sxw
  32917 openssh-3.4p1-7.i386.rpm32904 week1_day2

[EMAIL PROTECTED] find . -inum 32903
./mozilla.ps
[EMAIL PROTECTED] find . -inum 32903 -exec rm -f {} \;

You might also want to try this as root.

If this fails, you can also try unlinking the file.




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Storing snippets of info

2003-09-29 Thread kwan

> I've never actually looked at kjots before, but it looks reasonable.
> Have you got the file size up to a point at which it becomes a
> problem?  TreePad managed fine until it approached 1MB, then it
> became reeeaaalllyyy slow.

I have about a dozen "books" which are stored as separate files. Each book
contains anything from 20 to over 200 entries and I've not noticed any
problems.

>
> Sql is on my list of todos, when I get a round tuit.  Is it really
> feasible for a job like this?  I've done quite a bit of multi-table
> database work under a dos format and under Lotus Approach, and a
> little Oracle in my college work, though I'm rusty.  I enjoyed it,
> and would like to get back to it, but I thought this application
> would be too fuzzy?

The problem I had is that I have several machines plus a couple laptops so
needed a way to access the database wherever I was. A centralized database
was really the only effective solution. There are many such utilities but
because it requires a central server it needs some sort of web connection.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Storing snippets of info

2003-09-29 Thread kwan
> I like to collect snippets from the lists into a file, in the hope
> that I can find them when I need them   For some time now I have
> been putting them into TreePad, which is supposed to be a sort of
> free-form database.  You can create parent/child categories, which
> feels satisfactory. However, it is very slow if your database grows
> much, and the search facilities are not good.  So...
>
> One option is to go back to my old way of keeping the info in kword
> files, which at least are well searchable, but it's going to be a
> long slog.  Before I start over, can anyone suggest a better method?
> It doesn't warrant a full database, IMO.
>

I use kjots for this sort of thing. Recently, I've also been writing a
little php/mysql app to do the same thing. It was meant for a work log but
now it's more generic.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Xawtv problem

2003-09-28 Thread kwan
> On Sun, 2003-09-28 at 18:01, ed tharp wrote:
>> In MDK 9.1, with an NVidia Ti4400 vid card,
>> I have just started having a problem with my winTV card (an early bt878)
>> that as soon as it starts to display it kicks Xfree right down to a
>> re-login.
>>
>> any ideas?
> to add,,, It works fine when started from a term with 'xawtv'
>

You can try strace'ing the command and then looking through the log. E.g.:
strace xawtv >outfile 2>&1

Some things also: rename your preferences file, try a different window
manager.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] What do I need to program with ncurse ???

2003-09-27 Thread kwan
> I need to code a program that uses ncurse gui, what software i need ? is
> there documentation on somewhere ? what do I need ?
>
In addition to the links that James provided, there are some examples in the
/usr/share/doc/ncurses-devel directory (once ncurses-devel is installed)
that show how to do many common routines. I also recall seeing some DOS
conio conversion routines to ease porting stuff from DOS.

BTW, is there a particular reason that ncurses itself is being used? There
are other frontend libraries above ncurses that may suit your needs
better.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Copied Audio CD's - 70 Minutes of Silence!?!?

2003-09-25 Thread kwan
> This is bizarre.  I've copied some of my audio CD's (for back-up purposes,
> of
> course ;-) using the copy CD facility in K3B on 9.1.  The copies completed
> without error, but when I go to play them in a CD player, the disc is
> identified, the number and lengths of tracks reported OK, the tracks start
> playing OK, but there is no sound!!!  Albums full of 3.5 minute slices of
> perfect silence, neatly moving through the track listings, playing to
> their
> correct length, before stopping at the end!!!  But not even a blip on the
> level meters!  Now, I know that the arty set are into this sort of thing,
> but
> I'm not.  What happened

Just some wild stabs in the dark with a shopping bag on my head, but have
you tried:

1) Playing the ripped WAV files?
2) Checking if the WAVs are being normalized to silence?
3) Is it by any chance a Simon/Garfunkel tribute? :D

>
> Yes, I've checked the CD player works (on the originals), there's no copy
> protection on the CD's (too old for that), my CD-R drive and DVD drive
> also
> give me silence (CDDB works though).  Now, I KNOW that CD copies are done
> by
> ripping data / writing data through the IDE interface, but it's almost
> like
> tape-deck dubbing without the audio cable between the decks :-)  Funnily
> enough, I don't have an audio cable installed on one of the drives I used
> in
> the copy...
>



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Machine Name resolution

2003-09-24 Thread kwan
> Hello,
>
> We're having trouble getting machine name resolution from an DNS server.
> If
> we try to ping, for example, a machine named Mach1, we get an "unknown
> host
> Mach1" error. If we ping the FQDN, Mach1.domainname.com, we get
> resolution.
> Oddly, windows boxes can resolve the machine name, from a dos prompt,
> without the domain suffix (No WINS being used either).
>
> What can we do to get machine name resolution, internally, without the
> domain name from our Linux boxes?
>

You need a "search" or "domain" directive in your /etc/resolv.conf.
E.g.:
---begin /etc/resolv.conf---
search domainname.com
nameserver 192.168.0.2
nameserver 192.168.0.3



> Thank you in advance.
>
> James
>
>
>


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Memory Leak in XFree updates

2003-09-20 Thread kwan
> On Fri, 19 Sep 2003 22:40:47 -0400
> Greg Meyer <[EMAIL PROTECTED]> uttered:
>
>> Here is some output from top.  See how X is using 212M.  Way more than
>> it used to.  Has anybody else experienced anything like this?
>
> Here's mine.
>
> 1628 root  14 287m  29m 3732 R 1.3  7.9   1:42.01 X
>
> I have nothing to compare it to as regards the previous version of X,
> but even tho it seems to be using a lot of memory, the thing to keep in
> mind is:


I think there may be some misconceptions about how much actual physical
memory is being used by X, and what the total number there represents. The
size you see there is a combination of things such as memory mapped to the
video card, shared libraries, and actual physical memory.

The mapped video memory, which can be huge depending on the dedicated
memory on your video card, does not take up physical RAM. Most of it is
just stored on the device itself, but for various reasons, need to be
shown as part of memory. A 64M video card would add 64M to the total
number, but would use almost no actual system RAM.

There are also a bunch of shared libraries that contribute to the total.
These include glibc and a bunch of other libraries. You can probably look
somewhere in /proc to find the breakdown. In any case, the footprint of X
minus shared libs is probably aroud 3-4M.

Finally, the actual runtime memory likely depends on things like your
choice of desktop background, bit depth, screen resolution, existence of
some sort of buffer area for clean redraws, etc..


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] remote access to text only screens

2003-09-19 Thread kwan
> I need to be able to get at the screens that are displayed when you enter
> the key sequence CNTRL/ALT + F1 etc on a remote machine. I know that VNC
> will give me a display of my desktop, but is there a facility in VNC that
> isn't obvious or is there a text equivalent of VNC.

There are a couple things you can try:

Run the 'screen' program on the console, either on login or as the user.
You can then attach to the screen by logging in over ssh, say, then typing
"screen -x ###" where ### is the session to attach.

If you just want to see what's on the console, you can cat out the
/dev/vcs# entries. You'll need to parse it slightly (add lines breaks) but
otherwise will show what's on the console.

There's also another program called something like kibbutz or kibbitz that
lets you share a session. I can't seem to locate more information though,
but Googling may reveal more.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Before I start cursing at python or perl

2003-09-17 Thread kwan

>>   I've got a situation where I'd like to be able to take the output
>>from lm_sensors (temp and voltage) and read it constantly and graph it
>>as it's going, into a web page.  So two questions.
>>
>>1.  Does something that does this exist?  (don't want to re-invent the
>>wheel.)

I've used gnuplot to do this before. Here's an example script:

<--makegraph.batch-->
set ylabel "temperature"
set xlabel "time"
set terminal png
set output "test.png"
plot [0:10] [0:10] 'lm_data.txt' using 1:2 smooth bezier with linespoint
<--snip-->

Here's the example datafile for the above:
<--lm_data.txt-->
1   2   115
2   3   100
3   4   112
4   5   109
5   6   100
6   7   110
7   7.1 120
8   7.2 121
<--snip-->


To use gnuplot to create the image you can run this as:

[EMAIL PROTECTED] gnuplot makegraph.batch

It will create a test.png image in the directory that you can then place
inside your web page. Use cron, cgi, or php to update the graph.

>>2.  Which is the better poison.  Python or Perl for this job.
>>
>>Note too,  I'm a non-programming since Fortran IV (what4) so ease of
>>learning is helpful.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Why is urpmi such a pain in the ...?

2003-09-17 Thread kwan

>
> With all due respect to you all, but I don`t like the idea one bit. It
> means
> Mandrakesoft has a line into my taskbar which I did not ask for. Just as I
> don`t like Microsoft working interactively with my computer, or other
> adware/spyware calling home when I still used Windows, I wouldn`t like
> Mandrakesoft to have a thread into any corner of my boxes. If it`s an
> optional package,  fine I won`t use it. If it comes built in the distro I
> will disable it, remove it or whatever it takes to avoid it. It goes
> against
> my sense of privacy. Maybe not to that of others, very well, but I don`t
> like the idea.

I've been looking at many of the auto-update features for different
distros. RedHat keeps a central database of installed packages if you use
their up2date mechanism, and this would probably irk many users. However,
most of the others seem to be passive updaters. I.e., they pull down a
list of packages and compare them locally *without* sending any
information to a central database. In any case, Mandrake's really cool
distributed update system would likely preclude an update mechanism that
needed a single database.

I would like to see a centralized management console for Mandrake systems.
The designated management station could maintain a list of updates as some
sort of server; the clients (whether local on on the LAN or 'Net) could
then query the central server and update the local package database. This
would be useful because it allows an operator to get an idea of a system's
patch status without needing the machine to be online. The central server
need not be an official site, but could be another machine on the LAN that
you control.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Re: Mandrake's visibility

2003-09-17 Thread kwan

>Whereas you could well be right.  You wouldn't know it here.  Compusa
> now has a Linux "aisle" dominated by RH and SuSE box sets  Fry's has put
> RH both in the aisle and on an endcap (which by the way was the way they
> sold MDK up through 7.2)  The key seems to be the 3 disk sets as far as
> a sales leader goes.  Why?  Getting people to do an impulse buy of a 30
> dollar (roughly) set is a lot easier than the 100 dollar version.  But
> still the problem in the US is that when you mention open source people
> thing Red Hat (and as a FreeBSD user this is a real sore spot, FreeBSD
> isn't Linux. *grin*) Doing things like LinuxWorld or Comdex in the US
> isn't that important for a distro.  But visibility in the market place
> is.

I'm in CompUSA quite often, and after reading this thread, I was thinking
of ways that would make it easier for someone to buy Mandrake. How about
instead of putting CD media in boxes, a voucher is sold to the person
instead? When the buyer calls in the voucher information (or does it by
the web, or rings it up at the counter) then the current distribution will
be shipped to a provided address. This would allow a presence on the store
shelves without the hassle of printing the packages and CDs.

Is there a paid, priority download option available yet?

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] tightvnc startup problem?

2003-09-16 Thread kwan

>
> exec /usr/X11R6/bin/startkde
>
> I got nothing.
>
> Why I can't get a KDE desktop?

Just use startkde. Works fine for me:
#!/bin/sh
startkde


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] linux multitask performance?

2003-09-16 Thread kwan
> This is great ... I was looking for qa way to do this :) I did you say
> and put in a script in
>
> /etc/init.d/idedma (the script you attached). I wonder ... if there a way
> to see that the script is starting correctly and the settings are really
> made to my system?
>

I'm not in front of my Mandrake installation at the moment (actually the
drive is offline), but check for a file /etc/sysconfig/harddisks. IIRC,
this is the best place to configure those options.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] bios data check failure

2003-09-15 Thread kwan
> the thing is i did everything up to make modules on a fast machine on the
> network... and then went back to my laptop... mounted my home directory
> with the linux-2.4.20 directory on it... and proceeded with make
> modules_install and make install... could that be a problem? my
> supervisors say it isnt possible though...

No, that shouldn't be it. It's fine to build on another machine, providing
that the distributions are the same. If they're not you could run into
problems if glibc expects certain kernel features, but I don't think this
is too likely.
>
> then i checked in /boot... the System map, vmlinuz and initrd.img for
> 2.4.20 were there... lilo.conf also contained an entry... seems perfectly
> fine
>
> when i try to boot the kernel... immediately after choosing it, it says
> 'loading 2420'... 'BIOS data check'... and reboots on its own again...
> same story with 2.4.18 which i tried earlier...
>
What Processor Type is selected in menuconfig? The above error will occur
if there's a processor type mismatch. E.g., you select Athlon in your
menuconfig but are instead running an Intel processor.

> i tried modifying lilo.conf... so it loads the kernel without doing a bios
> check by appending "nobd" to the entry... but it still stuffs up... which
> leads me to think that its not the bios data check either...
>
> i am baffled with this thing... its bizarre... what am i doing wrong?
> could it be that i dont have the right options checked in make menuconfig?
>
> i dont have another machine handy to view messages thru the serial
> console... am not too sure abt the specs of the laptop because its owned
> by the university and i have been given it to do my final year project...
> but it doesnt have as much memory as i would like it to have though...
> runs pretty slow...
>

What's the model number and model of the laptop? You can use that info to
search Google for the specs.
> thanks
>


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] bios data check failure

2003-09-15 Thread kwan
> hi
>
> i am currently using Mandrake 9 and kernel 2.4.19 which came with it... so
> far my
> experiences recompiling the kernel have only been limited to using the
> kernel
> source rpm for mandrake...
>
> now when i try to compile the kernel source (2.4.18 and 2.4.20) from
> www.kernel.org, it compiles without errors... but when i try to boot the
> image,
> lilo flashes 'bios data check' and then it automatically reboots...
>
> what am i doing wrong? does it have to do with some options in 'make
> menuconfig that i am not setting?'
>
> has anybody had this problem when using the kernel source from
> www.kernel.org?
>
I run the stock kernels on a few machines without errors. The first things
to check are that you specified the correct kernel and installed the image
correctly. If you have another machine handy you can also try sending boot
messages to a serial console in case there are other messages that you are
missing.

What kind of CPU/Motherboard are you using? How much memory? Is it an SMP
board?

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] root-tail

2003-09-11 Thread kwan

>> Does it show you all running processes?? No matter which way I try it,
>> it just shows me a few of my users processes and *postfix* (?!).

top requires read permissions in /proc, so if your msec level is set too
high you will only be able to read your own information. You can also
specify the number of processes to show by playing with the toprc file,
though it's more likely the /proc permissions.

BTW, if you're using KDE you might want to check out a program called
Karamba or SuperKaramba. It lets you easily monitor processes on your KDE
root window.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] root-tail

2003-09-06 Thread kwan

>> nohup -b >> top-output &

Duh!  I meant, of course, to type "top -b"... Not enough caffeine yet.
Gotta brew another carafe or two.

>>
>> root-tail  +whatever parameters you need to pass
>
> Awesome!  That did it - instead of 'nohup -b' I did 'top -b' and it does
> exactly what I was hoping
> for.  Now I have another question for you - what exactly is 'mkfifo'?
> What is a fifo?  I kind of
> have an idea, just because I can see what it is doing; I tried running vi
> on the fifo I created
> though and it seemed to just lock the term window I was using.  I checked
> the man page but could
> you explain it in english exactly what a fifo does?
>

A named pipe is just a method to allow two different processes to
communicate with each other. You can also use it in cases where a program
doesn't take input from stdin as in the above. Think of it as the same
things as using the pipe character "|" but output goes to a file and input
is read from the file. It's also useful in cases where you need to
periodically retrieve data but don't want a huge program sitting around in
memory listening to a regular pipe.


>From a google search:

http://whatis.techtarget.com/definition/0,,sid9_gci212619,00.html

named pipe

In computer programming, a named pipe is a method for passing information
from one computer process to other processes using a pipe or message
holding place that is given a specific name. Unlike a regular pipe, a
named pipe can be used by processes that do not have to share a common
process origin and the message sent to the named pipe can be read by any
authorized process that knows the name of the named pipe.

A named pipe is sometimes called a "FIFO" (first in, first out) because
the first data written to the pipe is the first data that is read from it.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] root-tail

2003-09-06 Thread kwan

>
> IIRC, the nohup is so that when you close the term that started all
> this, the process keeps running, no?


Yes.

BTW, someone else mentioned redirecting the top output without the named
pipe. This will also work, but you'll need to periodically clear the file
or it will grow.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] root-tail

2003-09-06 Thread kwan

> Cool!  But here's another stupid question:  since root-tail seems to be
> designed to read log files
> - how do I make it read stdin?

I've not used root-tail so this may not work:

I'd create a named pipe and send the output of top to the pipe. You can
then use root-tail on the named pipe. E.g.:

mkfifo top-output

nohup -b >> top-output &

root-tail  +whatever parameters you need to pass




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] root-tail

2003-09-06 Thread kwan
> Hey,
> I was reading and got inspired by this 'root-tail' program.  Any
> suggestions on how to pipe the
> output of 'top' to this?
>
Sure, use top with the '-b' option for batch mode. You can then monitor
with any program that uses stdin.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Making routine job easier

2003-09-05 Thread kwan

> I run several tail commands to monitor several log files everyday.
> Instead of typing all the commands one by one on each terminal, is there
> any
> way I can make this automatic or I can make some kind of shortcut for the
> job?

Have you ever tried the "screen" program? I use it to set up multiple
split windows to tail various log files. You can setup your local
.screenrc to include something like:

screen 0 tail -f /var/log/messages
split
focus down
screen -t session1 1 tail -f /var/log/secure

What's nice about screen is that you can view multiple log files on one
terminal window. If you setup your console to use a framebuffer high
resolution mode it works even better.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] howto edit a pif file in linux

2003-09-04 Thread kwan
>
> For comparison, if I specify the bash shell in a shell script and make it
> executable, I can use any name or extension that I want and the file will
> remain executable and if I issue the command ./command.whatever it will
> still execute.

On a side note, you can register unknown binary formats under Linux also.
You'll need to enable the "Kernel Support for MISC Binaries" under the
kernel config. You can then register the binary type with the kernel and
specify an interpreter program.

This leads to the interesting Linux virus. If you feel left out you too
can join the millions of Windows users who are being deluged with virii.
To do this, you'll need to rebuild your kernel to include
CONFIG_BINFMT_MISC. Next, you'll need to grab the header bytes of a file,
a jpeg say, then construct a string no larger than 255 characters with
this header information and name of an appropriate application. Next, gain
root access to be able to write to /proc then write your string to
/proc/sys/binfmt_misc/register. At this point you'll be able to execute a
jpeg containing, who knows, a malicious string disguised as some picture
file. To be able to propagate the virus automatically as your Windows
brethren can requires the "honor principle". I.e., you'd have to manually
forward the trojaned jpeg and the instructions above and make sure the
Linux-using recipient performs the steps.

See, you can have Linux virii after all. :D

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] howto edit a pif file in linux

2003-09-04 Thread kwan
> Well, I was under the impression that windows decided how to handle a
> program based on the extension; i.e., if you call a .jpg a .blah, even
> though it has photoshop installed on the machine, it will choke and say it
> doesn't know how to open a .blah file.

Yes... Winders will use the extension to determine what app gets to open
the file. It always amuses me how different applications will compete to
become the default app and the warnings that tell you that bad things will
happen if you change from the (usually) MS defaults.

> Maybe if you renamed the .jpg to .tif though, you could get the photoshop
> program to open and then it would take over and decide to display the
> image correctly?

Depends somewhat on the application. Some of them will inspect the header
of the file to make sure that it's correct. Others will blindly attempt to
load the data file.

> In my short research on google, I read that a pif was similar to a bat
> file; can a bat file contain compiled code also?

True PIF files contain information on how to run a program. It was mostly
used in early versions of Windows for running DOS mode programs.

A bat file can contain compiled code, but not in the usual sense. You can
encode a binary file into a .bat and then use the bat to write a binary
and then execute it. This is actually pretty common on Linux, but is
possible on Windows.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] capturing packet

2003-08-29 Thread kwan

> I've setup to Real Player to stream through Squid. May I ask how to
> capture
> the Real Audio packet from Squid to web or vice versa? I tried tcpdump
> host
> some.realaudio.site, but nothing happens. You kind suggestions are greatly
> appreciated.

Are you looking to capture the sound or inspect the actual packet? In the
former case, there's an old program called vsound that captures audio from
the sound device and outputs a wav file. In the latter case, try using
ethereal to capture the packets instead.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] XMMS crashing

2003-08-20 Thread kwan

> mpg123 on that system plays them fine, but says (on both systems):
> Playing MPEG stream from Ronan Keating - InThisLife.foutemp3 ...
> Junk at the beginning 49443303
> MPEG 1.0 layer III, 128 kbit/s, 44100 Hz stereo
>
> A lot of my MP3 files have this problem, but they have always played
> fine (they even worked on that sytem on Mandrake 9.0, and work fine with
> noatun).
>
> Any ideas on what the problem is?

A couple things you can try:

1) Update xmms. One version had some problems that may be related.

2) Use a different decoder and convert the MP3 to wav. Then re-code back
to MP3. This will update the header.

3) Delete (or move) your .xmms directory.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Worried about resolution requirements for Mandrake

2003-08-19 Thread kwan

>> Mandrake has no hardware requirements for monitor size or resolution.
>> I have a 13 inch monitor which supports only a resolution of 640x480.
>> . . .
>> hardly had such a problem, at least not with M$ programs, but I never
>> want to go back to Windows, if I can avoid it. A larger video monitor
>> I have no room for and a larger flatscreen I cannot afford.
>>
>> I am quite worried that soon Mandrake will have the same requirement
>> as KDE.
>>
>> I would appreciate any ideas and thoughts about which way we are
>> evolving in this respect and/or how I might solve this problem.

One thing you might try is to make your virtual resolution larger than the
physical resolution. By moving your cursor to the edge of the screen it
will scroll across the virtual desktop. The virtual screen can be 800x600
or 1024x768 or even larger.

You can also try using an interlaced mode. On some monitors (though not
likely on yours) it allows an 800x600 screen at a reduced quality.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Complete system backup

2003-08-19 Thread kwan

> the backup files do not fit the packages versions. So I was kinda
> wondering if there is such thing as a backup where to restore the whole
> system (including OS itself) you'd put the backup CD in and let it restore
> "installer like". So without having to install linux first. This might
> also prove usefull later when I want to change the hdd of my server with a
> faster one. For now I have 3 older/slower hdds and because of that I am
> kind of limited with the partitions options. It would also be cool if I
> could specify by backup to ignore the current partitions/hdds, so I could
> restore all later on a single bigger hdd. So... Is there a way to make
> such a backup or am I running after windmills? :)


I don't know of a CD based program, but there's 'g4u' -- ghost for unix,
that does a pretty good job. It takes an entire disk image an uploads it
to an FTP server. Works well for both Linux and Windows disks.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Dell Inspiron 3200 for 9.1?

2003-08-18 Thread kwan
> I am being offered this laptop, and I am wondering if anyone has any
> thoughts
> about running 9.1 on it.
>
> It is a '98 3200 Inspiron, Pentium2-266, 512 mb Ram, with a 4G hard drive.
> It
> seems a little slow to me, as my current computer is almost 10x as fast.
> But
> with a lightweight window manager I think it might be pretty good for
> general
> computing.
>
Hmmm.. I'd check the specs on that Inspiron. As far as I know, the maximum
memory on the 3200 is nowhere near 512M. I have a couple Inspiron 3500's
though and they work fine. I couldn't get the NeoMagic NM256 sound chip to
work at all in any recent post 2.2 kernel however.  With the Fluxbox
window manager, a HD upgrade the machine works great.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] OT RedHat questions

2003-08-18 Thread kwan
> About as OT as it comes, sadly...
>
> I'm needing to use an RH system, and I find that urpmi has me massively
> spoiled. Is there anything like it or a port of it for RH7.3? The old
> rpmfind/google dependencies hunt for every library and program under the
> sun is taking hours out of my day, and Ximian's red-carpet doesn't touch
> urpmi for completeness. I'm actually getting worried that the packages
> for common Perl stuff simply don't exist, as half the time I can't find
> them and end up compiling from source any way. What do other RH admins
> use, the apt-get port from Conectiva?
>

The closest thing to urpmi on RedHat systems is 'up2date'. You can, for
example, install a package with 'up2date httpd'. I'm not certain if it
exists for 7.3, but I *think* it is.

This is not free though, since it requires a $60/year subscription to the
RedHat Network. Well, you can get a demo license for one computer but some
updates may fail when the servers are very busy.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Motherboard recommendation

2003-08-14 Thread kwan
> I'm looking to replace an Abit KT7 RAID motherboard (the RAID features are
> unimportant), that died due to capacitor leakage.  It's for a webserver,
> so I
> don't need super speed, I just want a motherboard-CPU-RAM combination
> that's
> rock solid under Linux.  Anyone have any recommendations?
>

I have a couple Biostar M7VKQ based machines (Duron 1GhZ, built in
sound/video/LAN). They're not speed demons by any stretch, but have worked
fine for web and file serving. Their main advantage is price. You can put
together a machine for about $250:

Motherboard w/integrated video, sound, Duron 1GhZ   -- $70
RAM  256M -- $50
30G HD  -- $70
Case -- $25
Misc fans, etc -- $15

Options:
CDROM -- $30
Floppy -- $15

Disadvantages: No AGP slot, only 2 RAM slots.

I also have several ECS K7S5A and S5A-Pro boards that have worked
flawlessly. They don't have integrated video so they're not as cheap
overall as the M7VKQ's.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] rpm database corruption -severe

2003-08-14 Thread kwan

> /usr/lib/rpm/db_dump Packages-ORIG |
>  \ /usr/lib/rpm/db_load Packages
>
> (now, I don´t get the command here)
> =
>
> What is the final command above?
> Why the \ just after the pipe?
>

It was probably a line continuation character. The \ was probably meant to
go on the line above.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Sis 7012 audio

2003-08-11 Thread Kwan Lowe
On Tue, 2003-08-05 at 13:41, Olaf Marzocchi wrote:
> The stock MDK kernel shipped with 9.1 is not able to recognize it, I get no 
> sound.
> Does the latest kernel solve the problem?
> In that case, which file should I download from the ftp site?
> 

I had a similar problem with the 2.4.20 kernel on a RedHat system (
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91557 ). If you
follow the link there's a patch to the AC97 drivers that restores sound.
I had used this patch before RH shipped a working kernel. It may solve
the problem for you.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


RE: [expert] setting up CVS server on mandrake9.1

2003-08-01 Thread Kwan Lowe
On Fri, 2003-08-01 at 13:17, James D. Parra wrote:
> An "ls" displays the following:
> 
> [EMAIL PROTECTED] /]# ls -la home/cvs
> total 3
> drwx--3 500  cvs72 Jul 31 16:11 ./
> drwxr-xr-x   10 root root  216 Jul 31 09:17 ../
> drwxrwxrwx3 root cvs  1112 Jul 31 17:15 CVSROOT/
> [EMAIL PROTECTED] /]
> 
> "cvs" is a group I created with users associated with it, including user
> 'root'.

You also need group r/w access in the containing directory. SO, chgrp -R
cvs the repository itself.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Making Mandrake RPM's

2003-08-01 Thread Kwan Lowe
On Fri, 2003-08-01 at 11:57, Tru64 User wrote:
> Hi,
> I had a post here few days ago about RPM agonyand
> was educated that it was because i was not using
> Manrake specs but rather Redhat.
> 
> Now, I am in dare need to make proftpd-1.2.8 rpms for
> mandrake. The current available rpm, 1.2.5 does not
> have large file support. It started support large
> files in version 1.2.6
> 

I always do this to create new RPMS:

Extract the old.tar.gz and new.tar.gz to directories. Create a diff
patch between the new and old. Put this patch into the SOURCE directory
and add a corresponding "patch" line in the spec file. Rebuild.

The advantage of this method is that you rarely have to touch the
original tarball and instead just patch away.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] VNC Gray Screen on Mandrake 9.1

2003-07-30 Thread Kwan Lowe
On Wed, 2003-07-30 at 04:50, Sevatio wrote:
> thanks, but that still doesn't work.  Something tells me that I need to 
> do a fresh install of LM9.1 instead of upgrading from LM9.0 to LM9.1.  I 
> just can't think of anything else that could be the problem.

Sorry if this sounds harsh -- I don't mean it to be.

Replacing the OS because you can't get a program to work is terribly
Microsoftish. The fact that you can get VNC to show a gray screen means
that VNC is not at fault, your Window Manager is (or at least how you're
starting the WM is).

Try running something simple, such as an xterm, from withing the
vncstartup. Then, try using "startkde" instead. Post your error logs,
config files, etc.. 


> 
> JOHAM,DAVID (HP-Boise,ex1) wrote:
> > Here's my .vnc/xstartup file. It launches KDE in the background
> > 
> > 
> > #!/bin/sh
> > 
> > # Mandrake Linux VNC session startup script
> > exec /etc/X11/xinit/xinitrc KDE
> > 
> > 
> > -Original Message-
> > From: Sevatio [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, July 24, 2003 2:07 AM
> > To: [EMAIL PROTECTED]
> > Subject: [expert] VNC Gray Screen on Mandrake 9.1
> > 
> > 
> > How do I get my vncserver on Mandrake 9.1 to display something other 
> > than a gray screen with an "x" mouse cursor?  I've already done the qt3 
> > updates.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Setting PATH

2003-07-28 Thread Kwan Lowe
On Mon, 2003-07-28 at 17:25, Jure Repinc wrote:
> 
> How do I set system wide PATH for bash?

edit /etc/profile

> And how do I set PATH for individual users?

edit ~/.bash_profile 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Realtek 8139

2003-07-26 Thread Kwan Lowe
On Sat, 2003-07-26 at 21:57, John Haywood wrote:

> gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c 
> -I/usr/src/linux/include -include /usr/src/linux/include/linux/modversions.h
> 
> and for the pci-scan module:
> 
> cc -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -Wall -Wstrict-prototypes -O6 -c 
> pci-scan.c -I/usr/src/linux/include -include 
> /usr/src/linux/include/linux/modversions.h
> 
> Now the insmod on the pci-scan works, but fails on the rtl8139.o
> ...any thoughts?

What are the errors on insmod?  Did you strip the modules before
loading?


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] OT: regular expression help

2003-07-24 Thread Kwan Lowe
On Thu, 2003-07-24 at 06:01, John Haywood wrote:

> [SNIPPY]
> 
> Thanks for that, Brant. Let me state as exactly as possible what I am trying 
> to do:
> 
> The file in question is a corrupt Microsoft Entourage message file. It is 
> 1.8Gig in size (approx). I need to step through it and convert it to an mbox 
> format file, by searching for patterns such as :

It sounds like "formail" would do much of what you need. It reformats
text into mailbox format.

The other substitutions could be done with awk/sed. 


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] XCDRoast annoyance

2003-07-23 Thread Kwan Lowe
Anne Wilson wrote:

Hmm - I think it still holds on a while even if there's nothing in the 
drive.  I must admit I do sometimes put a blank in before firing up, 
though.  Anyway, I'll not do that next time, and see if it cuts the 
waiting time.

 

Yup, it will do that even if empty. But it'll time out a lot faster 
without the disk. I've been looking at other burner applications but 
still prefer xcdroast overall.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] XCDRoast annoyance

2003-07-23 Thread Kwan Lowe
On Wed, 2003-07-23 at 03:33, Anne Wilson wrote:
> Lately whenever I start xcdroast the create cd page opens with the 
> CD/Image Info selected.  This results in a wait of a minute or so 
> before I can do anything.  Has anyone else had this problem, and is 
> there a fix?  I think it has been ever since I installed the version 
> in 9.1, but I'm not sure.
> 

It does the same for me and for all versions that I've tried. The only
thing that seems to help is to push the eject button and it will
sometimes pop the disk.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Screen saver for a background and other eye candythoughts

2003-07-22 Thread Kwan Lowe
On Tue, 2003-07-22 at 17:33, Jim C wrote:

> Anyway, I remember way back when... I ran a screen saver as a background 
> for my desktop.  It was especially cool.  This was quite a long time ago...
> I've long since fogotten how to do this but if anyone can give me some 
> tips I sure would appreciate it.  I do remember something about "running 
> it in the root window" or something.   I think I had to edit an X (or 
> was it KDE?) startup script too.

Interesting. Some of the DVD and movie player software display images on
a certain background color. That is, anywhere there's that color will
have video.  You might be able to set the background to whatever the
color is then play a full screen video. 


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] init.d

2003-07-22 Thread Kwan Lowe
On Tue, 2003-07-22 at 05:56, David Hláčik wrote:
> Hi ... i wrote my own script ... and i want it to start at boot ... how?
> 

Take a look in the /etc/rc.d/init.d directories (as you've seen). The
scripts all follow the same basic setup. These are some of the
requirements:

# chkconfig: 2345 95 05

 This line tells (along with the chkconfig utility) tells which
runlevels the script will start in. Here, it will start in runlevels
2,3,4 and 5. The 95 tells at what point in the startup it will get
executed. The number ranges from 00-99, with higher numbers getting
executed later. For example, you'd want something like mounting network
shares to start after the network is started. The last 05 tells at what
point in the shutdown (or runlevel change) the script should be
executed. In this case it's near the beginning of the shutdown.

 The start(), stop(), restart() and other functions in the script are
called when runlevels change or the /sbin/service utility is used
directly. For example, during bringup the system will do a "service
network start" at some point. The start() function gets called, network
starts. The same thing for the others.

 To configure the script you'd then just do:
 chkconfig --level 2345 on

 This creates the necessary symlinks in /etc/rc.d/rc[0-6].d


Of course, you could always just drop it into /etc/rc.local which gets
executed at boot. It's not as flexible as the above though.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] How to transfer from standard input to remotehost

2003-07-19 Thread Kwan Lowe
On Sat, 2003-07-19 at 11:08, Jack Coates wrote:
> On Fri, 2003-07-18 at 13:20, diego wrote:
> > I want something similar to ftp but accepting input file to transfer
> > from standard input to be able to do something like:
> > 
> > tar cz * | ftp remotehost
> 
> man ncftpput
> 
netcat will also serve this purpose.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Backup Remote Windows 2000 Box with Linux

2003-07-14 Thread Kwan Lowe
On Mon, 2003-07-14 at 23:12, Sevatio wrote:
> The connection has a max data-rate of 256Kb/sec.  Rsync for 
> Incrementals?  How does Rsync connect to a Windows box?
> 

There's a Windows rsync client that you could use. I've never tried
rsync to a Windows rsync server, but the reverse seems to work fine
(windows client to Linux rsync server). That is, I've not had any major
problems, though setup wasn't exactly smooth. 


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Backup Remote Windows 2000 Box with Linux

2003-07-14 Thread Kwan Lowe
On Mon, 2003-07-14 at 19:56, Sevatio wrote:
> What are some methods for doing full and incremental backups of files in
> a Windows 2000 box located remotely using a mandrake box?  Any
> recommendations and sharing of your techniques would be greatly appreciated.

What sort of connection do you have between the machines? If it's
relatively fast, you can try something like "g4u" which does a complete
disk image. 

Depending on lots of factors, you could also try:
1) Backup to CD-R for the initial backup, rsync for incrementals.
2) winscp to the Linux ftp server
3) WinCVS to a Linux CVS server



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] CDRW

2003-07-05 Thread Kwan Lowe
On Sat, 2003-07-05 at 13:31, dfox wrote:

> Is it pretty much a plug-n-play situation these days? I'm likely going 
> atapi, and have a spare connnector (/dev/hdd). I've seen combo dvd 
> readers/cd rws. are these supported? There a several out there that are 
> 'bare bones' it seems - prices under $50. 

I have 4 Lite-On burners that work flawlessly. All were under $60. The
DVD/CDRWs tend to be a little higher.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] command line to be executed every reboot

2003-07-04 Thread Kwan Lowe

Octavi Fors wrote:
> > > Hi,
> > > 
> > > I would like that a certain command line as
> > > 
> > > chmod 666 /dev/v4l/video0
> > > 
> > > is executed every time I reboot my PC running MDK8.2. 
> > > 
> > > What should I do?
> > > In which script under /etc should include such command line?
> > > 

There should be a file called devfsd.conf in /etc or in /etc/sysconfig.
That's really the best place to make permission changes to devfs.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Unknown problem

2003-07-02 Thread Kwan Lowe
On Wed, 2003-07-02 at 14:22, Leonardo Sá wrote:
> My mdk9.0 server was running fine (almost fine, it had some freezing problems 
> that i've posted in this list sometime ago) until the moment I tried to 
> access the webpage. I figured out that it went offline. 
> 
> So, when I turned on the server screen to see what went wrong, i saw this:
> 
> _alloc_pages:0-order allocation failed (gfp=0x1d2/0)
> _alloc_pages:0-order allocation failed (gfp=0x1d2/0)

> VM: killing proccess add_members

The error messages were found in page_alloc.c in the kernel sources and
seem to indicate that you completely ran out of memory (both swap and
physical). This is only a guess, but you might try logging memory usage
to another machine.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] booting a kernel compiled with "athlon" results inkernel panick :/

2003-06-28 Thread Kwan Lowe

On Sat, 2003-06-28 at 04:21, Adrian Golumbovici wrote:
> Hi all,
> 
> Have a funny problem. I tried optimising my system by recompiling the 
> kernel to gain a tad of speed. And since I have an Athlon XP 2400+ I thought 
> it might make sense to select athlon in the config. I didn't change at that 
> point any other kernel option in comparison with my bootable config. Funny 
> stuff. It compiled just fine, but when booting as soon as it starts to load 
> the kernel (immediately after it passed lilo), screen goes black for good, 
> keyboard lights flicker short and reboots. Isn't the Athlon option supposed 
> to be used with Athlon processors?!? Any clues on what could go wrong with
> that option?

Did you completely clean the build tree before compiling the kernel?
It's possible (and likely) that some parts weren't completely rebuilt if
you didn't wipe everything. Make sure to save your config before doing
so though.





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Building RPMs for NVIDIA

2003-06-25 Thread Kwan Lowe
On Tue, 2003-06-24 at 21:55, Greg Meyer wrote:

> 
> What exactly does a dummy %prep and %build section look like?

It would just be an empty statement, such as an 'echo Doing prep'.
In other words, you build and install the NVIDIA script normally on the
first box. Find all the modules that the script adds, then drop them
into a tarball. In your spec file, do nothing for the %prep and %build.
In the %files section, list all the files/modules that were added. When
you rebuild the tarball it will contain only the necessary files.

There's a program called rpmrebuild on freshmeat that does a similar
thing.

Let me know if you need more specifics. I don't have a 9.1 machine with
an NVIDIA card so can't actually test. I've done this lots of times for
other files that I wanted to track with RPM though.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


  1   2   3   4   5   >