RE: What's a debian kid look like?

2001-12-20 Thread Kris Huber
Male, age 37, married, 5 children, electrical engineering Ph.D., data
compression research, LDS church member, scoutmaster, English native tongue,
reasonably fluent in Spanish, hobbies of skiing and waterskiing (although no
time to do them), debian user for about 1 year, RedHat and Solaris x86 user
prior to that, employed doing research and related programming, mostly C,
desktop and embedded processors.  Subscribed to debian-user a few months ago
to get help recovering from an unsuccessful upgrade on 'testing' and switch
to the 'stable' debian distribution (problem resolved successfully in a few
days - it was lilo-related).

Veering a little off-topic:  I read an article last night that I think gives
some insight into why debian-user is successful.  It appears some people
actually study such things!  The article citation is:

N. Kock, Compensatory adaptation to a lean medium:  An action research
investigation of electronic communication in process improvement groups,
IEEE Transactions on Professional Communication, vol. 44, no. 4, Dec. 2001,
pp. 267-285.

Here's my article report (similar to the book reports I always hated in
school - somehow I developed a bit of a taste for it, I guess!):
A dominant theory in the area of computer-mediated communication
research is known as media richness theory, and classifies the various
means of communication on a scale from rich to lean.  Examples are
face-to-face meetings as the ideal rich medium, and e-mail lists as a rather
lean medium of communication.  Media richness theory hypothesizes that lean
media are not appropriate for knowledge sharing ... and claims that the
selection of media and the outcomes of its use will always reflect this
hypothesis.  The particular study found an apparently-contradictory result,
however.  The study dealt with fairly small groups organized for 10-45 days
in order to make suggestions of how to improve processes within their
organizations (which were a business and a university in New Zealand).
Participants had been involved in earlier process improvement groups using
face-to-face meetings and the researcher helped them (an approach known as
action research) to replace the physical meetings with e-mail ones.  The
author did in-depth interviews after the groups concluded their work to
gather evidence in the form of perceptions of group cost, group knowledge
sharing, group outcome quality, and group success.  He concluded that the
group work had been better in all four ways, and gave two points of
explanations.  The first was that the group members adapted to compensate
for the leanness of the medium.  The second involved the motivation to
compensate, which he suggested came from social norms associated with
group-based process improvement tasks, which led to social influences, such
as perceived group mandate and expected behavior by other ... group members,
that were conducive to compensatory adaptation.  Basically, in the case of
e-mail which is written, vs. more media-rich vocal means of communication, I
think this quote from one of the interviews sums up the situation quite
well:
When I write, my thinking process from formulating the ideas in my
head to getting them down becomes more elaborate.  I have to take much more
time over that than I would if I was speaking.  I think that, because one is
forced to do that by writing the answer down, then the written answer you
get is much more focused.  So I think that is an advantage.  It requires
more time from the participants, because they have to focus their writing,
but, as a result, you get [better individual contributions].
A primary conclusion was that electronic communication tools used
to support groups do not have to be much more sophisticated than simple
email list servers as long as there are social (or perhaps financial)
factors in place that motivate group members to compensate for the leanness
inherent in the electronic communication media used.  He mentioned a few
limitations of the research, such as the possibility that unexpected
consequences may happen (for example, one possible negative consequence is
avoidance by group members to participate in future electronic groups after
their initial experience, as they become increasingly aware of the extra
effort required from them.).

I hope someone else finds the above interesting (I've spared you many
details).  Over the last few years I've been impressed with how effective
e-mail and newsgroups, combined with search tools have been.  In the case of
debian, the process improvement goal is to get the most out of one's
computer hardware by using free software.

Regards,
Kris Huber



RE: C++: Indenting and formatting program sources.

2001-11-20 Thread Kris Huber
I agree that emacs cc-mode package works great for indenting.  You can
modify it quite a lot to make it indent how you want.  It does not move the
position of { past comments or do really sophisticated code reformatting
like that, but there are quite a few good settings you can set to help
yourself be consistent and make cvs diff commands not give a lot of
redundant information.  The attached file indent-settings.emacs expresses my
personal biases in coding style, of course ;).

After doing what Gary suggests for awhile, I found (after some serious
puzzling and emacs lisp confusion) that I could do this to make the process
non-interactive:

emacs -q -l indent-settings.emacs -l indent-run.FNAME.emacs
or
xemacs -q -l indent-settings.emacs -l indent-run.FNAME.emacs

where you have created indent-run.FNAME.emacs from indent-run.emacs (see
file contents below) using sed or vim to replace FNAME with your program's
filename.  If you don't use emacs much, or don't have time for the
keystrokes, this non-interactive method might also be useful.  As I recall
there is no command-line option to put a single elisp command on the emacs
command-line.  If there were, the above could be make somewhat less awkward
(hints or work-arounds anyone?).  One work-around is writing a shell script,
but a small command that could be used as an alias would be nice.

One problem I've found with cc-mode is that it doesn't take compiler
variable logic into account.  If you have something like the code fragment
below, you will find that after indenting, all code below that function is
indented too much because of the extra { seen by cc-mode but not by the
compiler.

#ifdef MYCOMPVAR
int function (int a) {
#else
int function (int a, int b) {
#endif
// body of code
}

This difficulty, combined with having a larger screen than when I learned C,
is what caused me to finally convert to putting { below the argument list!

-Kris

 indent-settings.emacs 
(auto-fill-mode 1)
(setq-default tab-width 4)
(setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72
76))
(setq make-backup-files nil)

(autoload 'c++-mode cc-mode C++ Editing Mode t)
(autoload 'c-mode   cc-mode C Editing Mode t)

(setq default-major-mode 'c++-mode)
(setq text-mode-hook '(lambda() (auto-fill-mode 1)))

(setq auto-mode-alist '((\\.c$ . c++-mode)
(\\.h$ . c++-mode)
(\\.cc$ . c++-mode)
(\\.hpp$ . c++-mode)
(\\.cpp$ . c++-mode)
(\\.C$ . c++-mode)
))

(defun my-c-mode-common-hook ()
 ;; Customization for all modes provided by cc-mode
 (c-set-style ellemtel)
 (setq delete-key-deletes-forward t)
 (setq c-basic-offset 4)
 (c-set-offset 'inclass '+)
 (c-set-offset 'stream-op '+)
 (c-set-offset 'arglist-cont '0)
 (c-set-offset 'arglist-cont-nonempty '+)
 (setq c-comment-only-line-offset 0)
 (setq comment-column 36)
 (auto-fill-mode 1)
 (setq fill-column 79)
)
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)

(require 'font-lock)
;(eval-after-load font-lock '(require 'choose-color))
(add-hook 'c-mode-hook 'turn-on-font-lock 'at-end)
(add-hook 'c++-mode-hook 'turn-on-font-lock 'at-end)


 indent-run.FNAME.emacs 
(find-file FNAME)
(mark-whole-buffer)
(indent-region 0 10 nil)
(save-buffer)
(save-buffers-kill-emacs)


-Original Message-
From: Gary Turner [mailto:[EMAIL PROTECTED]
Sent: Monday, November 19, 2001 4:26 PM
To: debian-user@lists.debian.org
Subject: Re: C++: Indenting and formatting program sources.


On Sun, 18 Nov 2001 17:24:22 +0200, you wrote:

Can anyone recommend a program to indent and format C++ program sources 
for consistency of style and perhaps better readability?
Specifying the used options or attaching a suitable configuration file 
(like a .ident.pro for GNU indent) is desirable.

GNU indent does not targeted directly to C++ code. Is this a problem?
The only official deb that I found for this task is astyle. I have not 
tried it yet. Are there others? Are there commonly used programs for 
this task that are not debianized?
The LDP C-C++ Beautifier HOW-TO mentions bcpp. Is it commonly used?

Is there a way to have vim force a standard and consistent style? Once 
again, attaching a configuration file or pointing out to a standard one 
is desirable.
-- 

Shaul Karl
email: shaulka (replace these parenthesis with @) bezeqint,
   delete the comma and the white space characters and add .net

Ignore this if I am not understanding the question.  It looks to me like
all you need to do is open the file in emacs, select the entire file,
and invoke indent-region (check the syntax).  There is a built library
of styles to choose from; a default, KR, GNU, and others.  Opening
files with C/C++ extensions automatically puts you in C/C++ mode.

As for extending vim for this, I have not a clue.  For its ease of use
in writing formatted code in any number of languages, try emacs even if
you prefer vim for ordinary tasks.

gt
Yes I 

RE: G400

2001-11-16 Thread Kris Huber
I played around with my ICAClient settings and got it to work fine again!
There are two places to set color depth and I think the problem resulted
because one was set for 8-bit color and the other for 16-bit color.  I set
both at 24-bit and it looks great under XFree86 3.3.6.  I think I re-entered
my ICAClient settings from scratch after switching from sid to potato linux
distribution.

My new opinion:  The Matrox G400 video card works great under both XFree86
versions 3.3.6 and 4!

-Kris

-Original Message-
From: nate [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 4:03 PM
To: debian-user@lists.debian.org
Subject: RE: G400


Kris Huber said:

 If anyone has an idea why my Matrox G400 output isn't always
 looking great under v3.3.6, I'd appreciate suggestions!  It's not
 too bad, but a little annoying.

i ran it under xfree 3.3.6 up until about 50 days ago,
it ran perfect. never had a single drawing issue. i don't
use citrix. i think i had it in 16bit color. citrix
may have problems in high color depths. the company i work
for now competes with them and from what i hear its one
of their weaknesses at the moment.

nate




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



RE: G400

2001-11-15 Thread Kris Huber
I have a G400 and know that there is support in X v4.  In fact I believe the
support in v4 is better than in v3.3.6.

I recently changed from using the unstable distribution to the stable one.
In the process I ended up changing from XFree86 v4 to v3.3.6.  I never
noticed any display problems under v4, yet under v3.3.6 I've noticed that
vertical colored lines sometimes appear when areas are re-painted within
the ICA Client application.  Perhaps it is a problem related to ICA Client,
but I used the identical distribution of it under both XFree86 4 and 3.3.6
and suspect the problem lies with the video driver (which I think is part of
XFree86).  Display mode under both versions was/is 24-bit color, quite
high-res mode (1472x1104, a custom one I set up).

If anyone has an idea why my Matrox G400 output isn't always looking great
under v3.3.6, I'd appreciate suggestions!  It's not too bad, but a little
annoying.

-Original Message-
From: Tom Allison [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 3:54 AM
To: debian-user@lists.debian.org
Subject: G400


I have this Matrox G400 video card that's supposed to be really spiffy 
(or was, in it's day).
I'm just trying to confirm the support in X v4.

It seems that this card has taken a serious step back in basic 
performance.  I'm not talking about frames/second, the basic picture is 
kind of lame.
I have a 21 monitor and the whole thing worked great under 3.3.6 and 
even Windows (I had it installed for 3 days until I figured out I 
couldn't get all the devices to work correctly).

I'm just looking for 'similar experiences'


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



RE: Backspace is delete

2001-11-09 Thread Kris Huber
Shaya,

Try adding:
(global-set-key \C-h 'backward-delete-char)
to your .emacs file on the Solaris side.  I think that will take care of
your problem.  Maybe you'll run into other keys that don't get mapped the
same, but you can easily configure that in the .emacs file.  I'm not sure
how to make your keymappings only be modified, for example, when you are
logged in remotely using telnet, however (although I'm sure it is possible
to figure something out).

-Kris

-Original Message-
From: Shaya Potter [mailto:[EMAIL PROTECTED]
Sent: Friday, November 09, 2001 7:39 AM
To: Debian User List
Subject: Re: Backspace is delete


On Fri, 2001-11-09 at 08:52, Colin Watson wrote:
 On Fri, Nov 09, 2001 at 07:47:38PM +0800, Michael Robinson wrote:
  Maybe I'm just being a clueless newbie, but I can't find where to put
the
  ^H back into my Backspace in X text applications.
 
 You should probably read /usr/share/doc/xfree86-common/FAQ.gz. Search
 for Why doesn't my backspace, delete, or some other key work?. It's
 possible you've got too many uses of xmodmap and .Xresources
 *Translations - backspace and delete *should* work correctly out of the
 box now.

at least for me on sid, emacs is unusable if I telnet into a solaris
box, b/c everytime I hit backspace I get ctrl-h which to them is help. 
I haven't investigated it (as I don't telnet into solaris boxes often)
but its something I've noticed.

shaya


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



RE: Is it possible to install a few testing packages on a stable machine?

2001-11-09 Thread Kris Huber
Stan,

Here's a cut-and-paste-and-slightly-edited version of what I found about
almost the same question I asked on this reflector a week or two ago (see
thread RE: cproto.deb for potato not available?):

Scheme using newer version of apt-get than you probably have:
It seems the /etc/apt/preferences file is a feature not yet in the stable
release of apt-get (version 0.3.19).  I found some information about the
preferences file in a how-to document based on version 0.5.3 (chapter 3 of
http://www.debian.org/doc/manuals/apt-howto/), although I was still a little
unclear about how to selectively upgrade a package using this feature.  My
guess is to use the example in the document for how to downgrade all
packages to the stable release versions, then insert a specific entry for
the latest version of, in my case, cproto.


This is what I did to grab the cproto package from the unstable distribution
(a little lower-level, but not too bad once in awhile).  Hopefully the
upgraded package you'll see in #3 won't be a package that will break other
things it depends on if you upgrade it.
1.  Added following line to sources.list:
deb http://http.us.debian.org/debian unstable main contrib non-free
2.  apt-get -s update
The -s (=--dry_run) above seemed to have no effect because the cproto
package *was* found in the next step (without update it is not found).
3.  apt-get -s install cproto
This showed me that apt-get would not upgrade or install any new packages
except for cproto.
4.  apt-get install cproto
This installed the new package.
5.  Commented out the line added in #1 
I did this so that the next 'apt-get upgrade' won't upgrade me to the
unstable release of all the packages I have installed.

-Kris

-Original Message-
From: Stan Brown [mailto:[EMAIL PROTECTED]
Sent: Friday, November 09, 2001 1:16 PM
To: debian-user@lists.debian.org
Subject: Is it possible to install a few testing packages on a stable
machine?


I'm trying to get abcde to work. Turns out that the version I have (from
progen) is broken. The developers of this package say the version in testing
is fine. Probelm is it depends on one more package from testing.

Is there a way I can get this to work?

If so, how?

-- 
Stan Brown [EMAIL PROTECTED]
843-745-3154
Charleston SC.
-- 
Windows 98: n.
useless extension to a minor patch release for 32-bit extensions and
a graphical shell for a 16-bit patch to an 8-bit operating system
originally coded for a 4-bit microprocessor, written by a 2-bit 
company that can't stand for 1 bit of competition.
-
(c) 2000 Stan Brown.  Redistribution via the Microsoft Network is
prohibited.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



RE: Returning system to vanilla Woody

2001-10-31 Thread Kris Huber
Reading the how-to on apt-get may provide some help.  I think you need the
apt package from sid to use the /etc/apt/preferences file described in
Chapter 3 of
http://www.debian.org/doc/manuals/apt-howto/.

I have only read about this, so take it for what it's worth.
-Kris  

-Original Message-
From: Geoff Beaumont [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 30, 2001 5:38 PM
To: Debian User List
Subject: Returning system to vanilla Woody


Is there any way to downgrade packages to those provided by the archives
in /etc/apt/sources.list?

The reason I'm asking is that I recently added Ximian Gnome to my
sources.list and installed it on my Woody system, but it proving very
unreliable. I suspect this may be because I upgraded a number of packages
to those from Sid in order to install Evolution, and the Ximian packages
are intended to upgrade Potato, so expecting this to work was maybe a bit
much... in particular, I'm getting exactly the same crashes (every time I
try to view an email) as I did with the Evolution from Sid.

What I'd like to do is return my system to vanilla Woody then try adding
Ximian Gnome back in...is this possible or would I have to resort to a
clean install?

-- 
Geoff Beaumont
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



RE: cproto.deb for potato not available?

2001-10-30 Thread Kris Huber
Here's what I found (thanks to those who replied):

It seems the /etc/apt/preferences file is a feature not yet in the stable
release of apt-get (version 0.3.19).  I found some information about the
preferences file in a how-to document based on version 0.5.3 (chapter 3 of
http://www.debian.org/doc/manuals/apt-howto/), although I was still a little
unclear about how to selectively upgrade a package using this feature.  My
guess is to use the example in the document for how to downgrade all
packages to the stable release versions, then insert a specific entry for
the latest version of, in my case, cproto.

Anyway, this is what I did that worked:
1.  Added following line to sources.list:
deb http://http.us.debian.org/debian unstable main contrib non-free
2.  apt-get -s update
The -s (=--dry_run) above seemed to have no effect because the cproto
package *was* found in the next step (without update it is not found).
3.  apt-get -s install cproto
This showed me that apt-get would not upgrade or install any new packages
except for cproto.
4.  apt-get install cproto
This installed the new package.
5.  Commented out the line added in #1 
I did this so that the next 'apt-get upgrade' won't upgrade me to the
unstable release of all the packages I have installed.

-Kris



RE: changing to Debian from Mandrake

2001-10-30 Thread Kris Huber
 Apt + dselect seem very powerful... Have the
 people who wrote these systems outlined their correct usage in a
 FAQ/manpage/etc.?
I'm less familiar with Linux than you, but I can tell you based on recent
Debian experience that there's a How-To document for apt at
http://www.debian.org/doc/manuals/apt-howto/.  In Chapter 3 it talks about
managing packages and says you can use a file /etc/apt/preferences (I'm not
sure if apt_preferences is newer or simply a typo) to do such things as
gracefully back out of a dist-upgrade to unstable all or selected packages.
The version of apt that has this feature is *ironically* not in the stable
distrubution, however!
-Kris 

-Original Message-
From: Michael Kaminsky [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 30, 2001 11:50 AM
To: debian-user@lists.debian.org
Subject: changing to Debian from Mandrake


I'm been using Mandrake for the past couple of years, and now I'm
considering switching to Debian; but, I have some concerns.  I
consider myself a fairly experienced Linux user and use Linux for all
my computing needs (devel, digital camera stuff, laptop stuff ,text
processing, networking, etc.).  I would like input on the following:

 * One reason I moved to Mandrake from Redhat (from Slackware) is that
   the packages are extremely up-to-date.  Even the unstable version of
   Debian seems sorely lacking.  Mandrake seems to put out RPMs within
   1-2 days of the upstream developers.  There are still no Debian
   packages for software I use regularly that's been out for  1 month
   (according to the debian web page package search form).  
   Example: gnucash.

   Also, in some cases the package I want is up-to-date, but not
   all of its dependencies.  Example: gnumeric.  Version 0.72 requires 
   a version of guppi for which there is no Debian package.

*  Apt + dselect seem very powerful, efficient if you use them together
   correctly.  From the mailing lists, though, correctly seems to be
   a matter of confusion (or perhaps just preference).  RPMs don't cut
   it for bleeding edge multiple-dependency upgrades (as you all know
   well).  This reason is key to my wanting to change over.  Have the
   people who wrote these systems outlined their correct usage in a
   FAQ/manpage/etc.?

   Also, there doesn't seem to be an easy way to upgrade to testing or 
   unstable once you install.  From the mailing lists, it seems like
   magic one-line commands such as apt-get dist-upgrade leave much
   manually fixing left to do.  Apparently one can live mostly in
   testing but grab select packages from unstable by configuring
   pins in an apt_preferences file.  Are there simple instructions
   for doing so?  Again, people on the mailing lists seem confused
   and/or have varied opinions on how the mechanism is supposed to
   work.

*  Mandrake has very decent system configuration tools.  I spent many
   years editing scripts and config files to setup up Linux machines, 
   but it just takes longer when it comes to simple, basic tasks
   (adding a network interface, changing the runlevel configuration
   for daemons, etc.).  Does Debian provide such tools (even if
   clearly they don't work for all situations)?

I apologize for the length; any advice/comments would be appreciated.  

Thanks,

Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



cproto.deb for potato not available?

2001-10-29 Thread Kris Huber
I'm wondering if a 'cproto' debian package is available for the Linux 2.2
kernel.  I see one under 'unstable' but from what I read, application
binaries need to be compiled for the kernel you are running.  Cproto has
been around for several years; I'm surprised it's not there (so I suspect
I'm wrong).

More generally, when binaries of a Debian package aren't available for my
kernel, can I put another distribution (e.g., unstable) in my sources.list
temporarily and do an 'apt-get sources' to compile an application for my
kernel?

Thanks,
Kris



RE: Text copy/paste feature not working for me

2001-10-26 Thread Kris Huber
Hi Kent,

It turned out I wasn't running gpm, and using 
Section Pointer
Protocol microsoft
Device /dev/ttyS0
EndSection
in XF86Config fixed the problem, as my Logitech serial mouse is MS mouse
compatible.  During installation I'd selected the only driver for a Logitech
mouse and it wasn't fully compatible with my model, apparently.  Copy/paste
works now!

Thanks,
Kris

-Original Message-
From: westk [mailto:[EMAIL PROTECTED]
Sent: Friday, October 19, 2001 7:26 PM
To: debian-user; Kris Huber
Subject: RE: Text copy/paste feature not working for me


= Original Message From Kris Huber [EMAIL PROTECTED] =
I did an install of the potato kernel and selected packages.  I chose
enlightenment and gnome under X11, which I've used before under kernel 2.4.
A feature I use quite a bit,  hi-lighting text with left mouse button, then
middle-clicking to produce a copy of that text, is not working.  I'm not
sure just where to look for that feature.  My suspicion is that my middle
mouse button is not working.  I have a serial mouse from Logitech and I
selected a Logitech mouse driver during the install.  For 3-button
emulation
I selected 'no' because it has 3 buttons and shouldn't need emulation.
Under 2.4 a more generic mouse driver was used, I think.  I'm quite new to
installation issues.  How do I try a different mouse driver?

Thanks for any clue,
Kris



DISCLAIMER: I may be completely wrong.

There are generally two types of mouse driver; one, gpm, is for the text 
(non-X) console; the other is the X mouse driver. These two interact, so the

answer to your question will depend on if you're running gpm or not.

To find out, run the command ps ax|grep gpm. If you're running gpm, you'll

see something like:

infotech-02[westk]:/home/westk ps ax|grep gpm
  181 ?S  0:01 /usr/sbin/gpm -m /dev/psaux -t ps2 -Rraw
  344 pts/1S  0:00 grep gpm

The 181 line above tells where gpm expects to find the mouse (/dev/psaux), 
what type of driver it's using (-t ps2 = ps/2 type), and what type, if any, 
repeating it's doing (raw).

If you're not running gpm, you should only see the grep gpm line of the 
above output.

Another and more direct method of seeing if you're running gpm is to simply 
Ctrl-Alt-F1 to a non-X virtual console (you can get back to X in most cases 
with Alt-F7), and simply move the mouse. If you're running gpm, you should
see 
a block-shaped mouse cursor moving around. If it moves erratically, that
means 
that gpm has the wrong settings.

gpm (by default on Debian systems) keeps its config info in /etc/gpm.conf.
You 
can edit this file manually by hand, and then restart the gpm daemon (run 
/etc/init.d/gpm restart), or you can run the gpm configuration utility
which 
is probably a tad easier for newbies (gpmconfig).

X keeps its mouse settings in /etc/X11/XF86Config or /etc/X11/XF86Config-4. 
The settings are similar, but not quite the same, as those for gpm.

Let us know the contents of /etc/gpm.conf and the mouse settings of 
/etc/X11/XF86Config[-4], and then we'll know better how to answer your 
question.

Kent



RE: Settings for vim for C programming?

2001-10-19 Thread Kris Huber
Hi Mark,

If you use a2ps to print you C files, you can use --tabsize=4 to make it
look right.  a2ps also does pretty-printing (changes fonts for C keywords,
etc.).

-Kris

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 18, 2001 8:16 PM
To: Debian-user
Subject: Settings for vim for C programming?


Earlier I set my tabstop to 4 to give me some more screen room in my C
program .c files.  The problem is that when I print out the source code
(eg. for a Uni assignment) or when someone else edits it, the tabstops
are by default 8 spaces.

What is the best way to deal with this?

What I have currently in my /etc/vimrc is the following:
 C programming stuff 
syntax on   syntax highlighting
set tabstop=4  (default is 8)
set softtabstop=4
set shiftwidth=4
set pastetoggle=F4

So you can see that I have commented out the previous tabstop setting of
4 so that the default is now active, but have added the softtabstop=4
option and left shiftwidth=4.

I think that this adds 4 spaces when you press tab.  And if an automatic
indentation occurs (while writing c source code), it will add 4 spaces
if the indentation is less than 8 spaces from the side or a combination
of tabs and spaces if the indentation is more than 8 spaces from the
side.

Is this correct?  If not how do you do it properly?

How do all you guys do it?  Basically, I just want my source code, to look
to everyone else, as it looks to me, when they edit it, or I print it out.
But I want to be able to use more of the screen by using tabspaces of 4.

Thanks for the help.

Regards.
Mark.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



RE: Problem booting my system

2001-10-19 Thread Kris Huber
Thanks Robert,

I've got my system up now, and I didn't have to resort to putting the boot
partition on the IDE drive.  I think the main problem was in the lilo.conf
file being incorrect.  When I used the default file it (mostly) worked.  I
made an entry in the fstab file instructing it to mount read-write.  Upon
boot-up fsck was always giving an error about the root partition, but yet
when I ran fsck it always reported 'clean' for me.

I'm not sure what the most important difference was, but this lilo.conf
worked:
lba32
boot=/dev/sda
root=/dev/sda2
install=/boot/boot.b
map=/boot/map
delay=50
vga=normal
default=Linux
image=/vmlinuz
label=Linux
read-only
image=/vmlinuz.old
label=LinuxOLD
read-only
optional
where /vmlinuz was a symbolic link to /boot/vmlinuz-2.2.19pre17-compact. 

This lilo.conf seemed to not work for me (although it had worked earlier,
extended with various kernel options, etc.):
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
#prompt
lba32
#vga=ask
timeout=50
default=linux
image=/boot/vmlinuz-2.2.19pre17-compact
label=linux
root=/dev/sda2
read-only
append = 
I noticed that under Linux the IDE drive is found whether or not it is
enabled in BIOS.  I disconnected power from it for awhile to make sure the
system only saw the SCSI drive, but I don't think that was the problem after
all.

-Kris

-Original Message-
From: Robert Waldner [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 18, 2001 6:18 PM
To: debian-user@lists.debian.org
Subject: Re: Problem booting my system 



On Thu, 18 Oct 2001 18:10:09 MDT, Kris Huber writes:
With the boot sequence having scsi first, a program (the kernel, I assume)
runs and prints 001  in an endless loop, filling the screen until I
cntlaltdel.  I have an IDE drive in the system (ext2 file system),
but
I've disabled it in BIOS in addition to not selecting it as a boot drive.

Have you looked at
 http://lists.debian.org/debian-user/2001/debian-user-200109/msg03337.html
?

cheers,
rw
-- 
-- OS/X: Because making Unix user-friendly
-- was easier than debugging Windows.




RE: download directories in ftp?

2001-10-19 Thread Kris Huber
'prompt' toggles whether it asks you or not.

-Original Message-
From: Alexander Wallace [mailto:[EMAIL PROTECTED]
Sent: Friday, October 19, 2001 9:22 AM
To: Rohan Deshpande
Cc: Debian-User Mailing List
Subject: Re: download directories in ftp?


mget *, there are some options to make it not ask you but I don't remember
now... Sorry..,

On Fri, 19 Oct 2001, Rohan Deshpande wrote:

 Hi all,
 
 Just wondering if there was a way to download full directories and their
 contents from remote places in the program 'ftp'.  In the directory
 containing the directories and the contents that I want, i tried 'get *'
 but it wouldn't work .. any ideas?
 
 Cheers,
 Rohan
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]
 
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



Text copy/paste feature not working for me

2001-10-19 Thread Kris Huber
I did an install of the potato kernel and selected packages.  I chose
enlightenment and gnome under X11, which I've used before under kernel 2.4.
A feature I use quite a bit,  hi-lighting text with left mouse button, then
middle-clicking to produce a copy of that text, is not working.  I'm not
sure just where to look for that feature.  My suspicion is that my middle
mouse button is not working.  I have a serial mouse from Logitech and I
selected a Logitech mouse driver during the install.  For 3-button emulation
I selected 'no' because it has 3 buttons and shouldn't need emulation.
Under 2.4 a more generic mouse driver was used, I think.  I'm quite new to
installation issues.  How do I try a different mouse driver?

Thanks for any clue,
Kris



Gnome panel not showing up

2001-10-19 Thread Kris Huber
I did an install of the potato kernel and selected packages.  I chose
enlightenment and gnome under X11, which I've used before under kernel 2.4.
My version of gnome is a bit older (at least control panel is).  I'm puzzled
why I don't have a panel across the bottom of the desktop.  I think it is
gnome-panel which does that, but although that package is installed, I don't
have the panel, and there are no menu options related to the panel and it's
maintenance (add new apps to lauch from it, etc.)  Any clues?

Thanks,
Kris



Problem booting my system

2001-10-18 Thread Kris Huber
Hello Debian enthusiasts,

I'm having difficulty getting my system to boot off my SCSI hard disk.  It
boots off the rescue diskette, and I've rerun lilo after checking over the
lilo.conf file.  I got the following when I ran lilo:

Reading boot sector from /dev/sda
Warning: /dev/sda is not on the first disk
Merging with /boot/boot.b
Boot image: /boot/vmlinuz-2.2.19pre17-compact
Added linux *

The warning concerned me, but I figured it was because I had BIOS set to
boot off the floppy first, if possible.  With boot sequence floppy, scsi,
cd, the system hangs after printing LI (without floppy in the drive).  I
can get the system up if I put a rescue floppy in and do
boot:  rescue root=/dev/sd2.

With the boot sequence having scsi first, a program (the kernel, I assume)
runs and prints 001  in an endless loop, filling the screen until I
cntlaltdel.  I have an IDE drive in the system (ext2 file system), but
I've disabled it in BIOS in addition to not selecting it as a boot drive.
The motherboard is an EPoX K7XA with 800 MHz Athlon processor.

Any ideas of where to go from here?  This first happened when rebooting
after an 'apt-get upgrade' on my packages from the testing distribution of
the 2.4 kernel.  But obviously the problem was something else, because I've
now installed the potato release and the problem hasn't gone away.

Thanks for any clues,
Kris