Re: Stretch => Buster: obsolete packages

2020-10-23 Thread Clive Standbridge
> Somehow both of those survived the upgrade from Jessie to Stretch (at a time 
> when I was not aware of the potential problem), and squirrelmail still works 
> fine.
> 
> Can I expect that they will also survive the upgrade to Buster?

Yes. I have done that, and the old squirrelmail package remained
installed in buster. I don't remember any special effort to keep it,
but it was a while ago.

You'd better make sure you don't have apt configured to automatically
answer yes, so you can choose what gets removed.

I can't tell you whether squirrelmail will continue to work in
buster. It wasn't working for me, and I removed it before realising my
immediate problem was an expired SSL certificate, not squirrelmail
itself.

-- 
Cheers,
Clive



Re: Re: apt-get build-dep emacs-gtk: unmet dependencies

2020-02-03 Thread Clive Standbridge
> > $ apt-cache policy libtiff-dev libtiff5
> 
> The command (w/ libidn2-0 added) reports:
> 
> libtiff-dev:
>   Installed: (none)
>   Candidate: 4.0.10-4
>   Version table:
>  4.0.10-4 500
> 500 http://ftp.uk.debian.org/debian stable/main amd64 Packages
> libtiff5:
>   Installed: 4.1.0+git191117-2~deb10u1
>   Candidate: 4.1.0+git191117-2~deb10u1
>   Version table:
>  *** 4.1.0+git191117-2~deb10u1 100
> 100 /var/lib/dpkg/status
>  4.0.10-4 500
> 500 http://ftp.uk.debian.org/debian stable/main amd64 Packages
> libidn2-0:
>   Installed: 2.0.5-1+deb10u1
>   Candidate: 2.0.5-1+deb10u1
>   Version table:
>  *** 2.0.5-1+deb10u1 100
> 100 /var/lib/dpkg/status
>  2.0.5-1 500
> 500 http://ftp.uk.debian.org/debian stable/main amd64 Packages
> 

Your installed versions of libtiff5 and libidn2-0 are the same as the versions 
currently in the buster security updates. Contrast:

$ apt-cache policy libtiff-dev libtiff5 libidn2-0
libtiff-dev:
  Installed: 4.1.0+git191117-2~deb10u1
  Candidate: 4.1.0+git191117-2~deb10u1
  Version table:
 *** 4.1.0+git191117-2~deb10u1 990
990 http://security.debian.org buster/updates/main amd64 Packages
100 /var/lib/dpkg/status
 4.0.10-4 990
990 http://deb.debian.org/debian buster/main amd64 Packages
libtiff5:
  Installed: 4.1.0+git191117-2~deb10u1
  Candidate: 4.1.0+git191117-2~deb10u1
  Version table:
 *** 4.1.0+git191117-2~deb10u1 990
990 http://security.debian.org buster/updates/main amd64 Packages
100 /var/lib/dpkg/status
 4.0.10-4 990
990 http://deb.debian.org/debian buster/main amd64 Packages
libidn2-0:
  Installed: 2.0.5-1+deb10u1
  Candidate: 2.0.5-1+deb10u1
  Version table:
 *** 2.0.5-1+deb10u1 990
990 http://security.debian.org buster/updates/main amd64 Packages
100 /var/lib/dpkg/status
 2.0.5-1 990
990 http://deb.debian.org/debian buster/main amd64 Packages


It looks as though you have installed from security.debian.org but now it's not 
in your sources.list. If you add a line like

deb http://security.debian.org/  buster/updates main contrib non-free

then do "apt-get update", does that help the "apt-get build-dep"?

-- 
Cheers,
Clive



Re: Re: Bash true/false builtings undocumented? "false" not working?

2018-08-17 Thread Clive Standbridge


> Is there a "cleaner" way to test the true/ error exit status other
> than using "$?", with bonus points for working in posix sh as well as
> Bash, ?

test $? -eq 0

"help test" will tell you more.


Another point from your original mail,

> $ false
> $ test $? && echo ok || echo error $?

The second $? in that line is different from the first; it's the exit
status of "test". That can be demonstrated, with a corrected test
command, by

$ grep stuff /no/such/file
grep: /no/such/file: No such file or directory
$ echo $?
2

$ grep stuff /no/such/file
grep: /no/such/file: No such file or directory
$ test $? -eq 0 && echo ok || echo error $?
error 1

As was mentioned in an earlier reply, you can get round that by saving
the exit status in a variable, e.g.

$ grep stuff /no/such/file
grep: /no/such/file: No such file or directory
$ RET=$?
$ test $RET -eq 0 && echo ok || echo error $RET
error 2


-- 
Cheers,
Clive



Re: Re: [OT] An easier database

2018-07-25 Thread Clive Standbridge
> I wonder if it would be nice for apt to have a feature so that a
> user could mark packages "never install".

That feature is APT pinning. You can achieve "never install" by
creating a file in /etc/apt/preferences.d,
e.g. /etc/apt/preferences.d/local-blacklist, containing something like

Package: unwanted-package other-unwanted-package
Pin: release *
Pin-Priority: -1


The apt_preferences(5) man page is the reference. As it says, a
priority value P < 0 prevents the version from being installed,
although I don't think it removes already-installed packages.

-- 
Cheers,
Clive



Re: Re: Re: No ifconfig [Was: no /etc/inittab]

2017-08-16 Thread Clive Standbridge

>  Much less was I trying to criticize you,

Oh I didn't think you were :-)


> Just trying to raise awareness about (the few) shell variation idiosyncracies
> I know about, to help making people's lives easier.

Sounds good to me.

-- 
Cheers,
Clive



Re: Re: No ifconfig [Was: no /etc/inittab]

2017-08-16 Thread Clive Standbridge

> The "declare", OTOH, is pretty Bashist. But it can be replaced by
> a simple "echo":

True. It was just a convenient way of showing that the variable hadn't
absorbed any white space. 

Besides, I was just picking up the "Bash can't do it" gauntlet. I'd
often prefer awk in such a situation (like Erik and Greg have
mentioned).

-- 
Cheers,
Clive



Re: Re: No ifconfig [Was: no /etc/inittab]

2017-08-16 Thread Clive Standbridge

> wooledg:~$ ip -o link | awk -F": " '{print $2}'
> lo
> eth0
> 
> The only other scripting language I know that can do splitting with
> multi-character separators is perl.
> 
> wooledg:~$ ip -o link | perl -ne '@x=split(/: /); print $x[1], "\n"'
> lo
> eth0
> 
> Bash and Tcl can't do it, at least not with their native toolsets.

Bash can, e.g.

$ oldIFS="$IFS"; IFS=': '; ip -o link | while read num interface other; do 
declare -p interface; done; IFS="$oldIFS"
declare -- interface="lo"
declare -- interface="eth0"
declare -- interface="br0"
declare -- interface="vethJWC4DL"


-- 
Cheers,
Clive



Re: Re: potential damage to Debian "stable" when installing packages from "testing"

2016-12-08 Thread Clive Standbridge

> 0) backport it yourself. It is not that hard to dget a dsc file from
> testing and try to build it for the current release. Often works without
> additional efforts.

The great debian-reference has a guide to doing that:
https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_porting_a_package_to_the_stable_system



Re: Re: My script almost works but spams the terminal its launched from if useing dash.

2016-04-22 Thread Clive Standbridge
> > Perhaps better still...
> >   bin/mailwatcher >& /dev/null &
> > 
> I hadn't thought about that particular incantation. It is one of the
> strengths of bash (and some other shells) that there are several
> different incantations that achieve similar or same results. You get
> to speak the dialect you feel most comfortable with!!:-)

You get to write unportable scripts.


-- 
Cheers,
Clive



Re: Re: replacement for old /etc/mtab that lists only real filesystems like ext4 or fat

2016-02-12 Thread Clive Standbridge
> >   I used /etc/mtab to list mounted filesystems with their mount
> >   options.
> > Unfortunatelly /etc/mtab no longer exists in debian jessie, it is
> >   just
> > symlink to /proc/mounts that lists 31 filesystems and I want to see
> >   just 2
> > 
> > :-)  classic filesystems like ext4, fat, btrfs only.
> > 
> > Thanks,
> > Jan
> 
> A small utility, if it does not already exist, to do this would be
> nice.

Perhaps
  df -PTl  | egrep '^(/|Filesystem)'
or
  df -PT -x nfs -x devtmpfs -x tmpfs
or
  df -PTl -x devtmpfs -x tmpfs

-- 
Cheers,
Clive



Re: Re: get software list of one software repository

2015-09-08 Thread Clive Standbridge
> > cat
> > /var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binar
> > y-amd64_Packages
> >| grep "Package" | awk -F ": " '{print $2}'
> 
> UUOC.
> 
> Just grep without a cat. Why so many cats in this group?  What's with
> the cats, anyway?  

UUOG.

Just awk without a grep, e.g.

awk -F ": " '/Package/{print $2}' 
/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages

There's no need for a separate grep to match patterns, when awk has
perfectly good pattern matching itself. :-)

-- 
Cheers,
Clive



Re: Re: Ric Moore

2015-01-17 Thread Clive Standbridge
> I assume it has a name, is this 7.8=Jessie?

Its name is wheezy. It's an update, not a new release. See:
https://www.debian.org/releases/wheezy/
https://lists.debian.org/debian-announce/2015/msg0.html


> Anybody else? FWIW, 7.8, all 3 dvd's in amd64 format, is being
> downloaded now. So I'll give it one more try.

It's a bit late now, but you might have had much lighter download
using the network installation CD. Three DVDs is about 13GB; I doubt
that most installations would be that big. With the network
installation you boot from a CD (222MB download) which then downloads
only the packages that will be installed. See
https://www.debian.org/CD/netinst/


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150117180403.GA1385@rimmer.localdomain



Re: Re: Iceweasel Latest update stealing bandwidth uselessly

2014-12-07 Thread Clive Standbridge
> I think the Dali Llama is a Spanish surrealistic painting of a South
> American ruminant, noted for fleecing the tin foil crowd.

You win!

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20141207215907.GA18565@rimmer.localdomain



Re: Re: Iceweasel Latest update stealing bandwidth uselessly

2014-12-07 Thread Clive Standbridge
> Do you subscribe to the Dali Llama somehow? :) Ric

Is that some kind of mystical Tibetan woolly creature?
Maybe the origin of the yeti myth.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20141207195135.GA11679@rimmer.localdomain



Re: Lots of updates? OK?

2014-10-19 Thread Clive Standbridge
> My wheezy system shows 34 packages updated since I last checked, which
> I think was yesterday.  Is this legitimate?  I got a security warning
> about the keys when I first checked, but that went away after I did
> another aptitude update.  I haven't installed any of the new packages
> yet.

The stable update was announced on
debian-stable-annou...@lists.debian.org last Monday:
https://lists.debian.org/debian-stable-announce/2014/10/msg0.html
(It's a useful list to subscribe to; its volume is very low).

> The update seems to include a point release (at least base-files
> changes) and a new linux kernel.  I see some security advisories,
> including the version bump for iceweasel, but nothing about, for
> example, the kernel.  And the debian web site says the last point
> release was in July.

The announcement includes a list of packages updates with reasons,
including for the linux kernel.

I hop that helps:-)
-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20141019151640.GA7099@rimmer.localdomain



Re: Re: funny text in bash history

2014-09-28 Thread Clive Standbridge
> I do A LOT of computing from terminals... and use arrow up and down
> ALL THE TIME.. Autocomplete would so ROCK!

"Tab completion" is the key phrase. 

Assuming you use bash: When you want to complete a command or
filename, press the Tab key. If the choices are ambiguous, you'll need
to press Tab again.

You can fine-tune the tab-completion behaviour with variables in
~/.inputrc - run "man bash" and search for "Readline Variables" for
details.


That's just for starters. Install the bash-completion package,
un-comment the code in ~/.bashrc following the "enable programmable
completion features" comment, and start a new shell.

Now when you start typing and press Tab, it will offer all sorts of
completions in context, e.g. command options, hostnames, and more.

Rock on!


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140928170410.GA32403@rimmer.localdomain



Re: Part 2 - updating squeeze to wheezy

2014-09-27 Thread Clive Standbridge
> The following is what I get when I type "apt-get update" and obviously
> it failed to update. My original sources.list (see part 1 - updating
> squeeze to wheezy) (bottom 16 lines) had squeeze and I was getting
> similar results.
> 
> Later today I am going to try and shorten sources list and simplify it
> to a minimal update using squeeze then retry with wheezy.

That doesn't look like your problem.

[...]

> N: Ignoring file 'google-chrome.list.save' in directory
> '/etc/apt/sources.list.d/' as it has an invalid filename extension W:
> Failed to fetch
> http://ftp.ca.debian.org/debian/dists/stable/main/i18n/Translation-en.bz2
> Connection failed
> 
> W: Failed to fetch
> http://ftp.ca.debian.org/debian/dists/stable/main/i18n/Translation-en_CA.bz2
> Could not connect to ftp.ca.debian.org:80 (24.215.0.24). - connect
> (110: Connection timed out)
> 
> W: Failed to fetch
> http://ftp.ca.debian.org/debian/dists/stable/non-free/i18n/Translation-en.bz2
> Unable to connect to ftp.ca.debian.org:http:

.. and so on.

Apparently ftp.ca.debian.org wasn't reachable for you at that time,
although I can see it just now. Maybe it was a temporary error. 
Otherwise you could just change ftp.ca.debian.org to another mirror
(e.g. ftp.debian.org which appeared to be okay for you) in this line:
deb http://ftp.ca.debian.org/debian stable main contrib non-free

While you're at it, it would be advisable to change 'stable' to
'wheezy' in that line. It's no problem now, but could become an
unwelcome surprise when jessie is released as stable in a year or
two.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140927125238.GA10730@rimmer.localdomain



Re: trying to remove wicd

2014-09-16 Thread Clive Standbridge
> I want to get wicd off my system, but am having a problem. All the
> installer utilities say that it's not installed

As Gary Dale has pointed out, you should probably be looking at
packages names other than plain "wicd".


> root@debian:~# which wicd
> /usr/sbin/wicd

This will tell you which package owns /usr/sbin/wicd:
dpkg -S /usr/sbin/wicd


> How do I get rid of the stuff?

To find installed packages with "wicd" in their names:
dpkg -l '*wicd*' | awk '/^ii/ {print $2}' 

To show what would be removed when you purge them:
dpkg -l '*wicd*' | awk '/^ii/ {print $2}' | xargs -r sudo apt-get -s purge

To really purge those packages, remove the "-s" option.



That will suffice unless any of the wicd functionality is in packages
without "wicd" as part of their names.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140916075015.GA11097@rimmer.localdomain



Re: Re: how to reinstall bash

2014-09-13 Thread Clive Standbridge
> Done by following the link:
> http://ubuntuforums.org/showthread.php?t=1618902
> namely,
> 
> 1] ln -sf /bin/sh /bin/bash

That is an unfortunate mistake; the link name and target are the wrong
way round. It will make /bin/bash into a symbolic link when it should
be an ELF binary.

> 2] apt-get install --reinstall bash

I'm not sure whether that would repair the damage caused by [1]. To
check, please run this command and paste the output into your reply:

ls -l /bin/sh /bin/bash /bin/dash


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140913150638.GA11020@rimmer.localdomain



Re: Re: How to find dirs with single item

2014-05-29 Thread Clive Standbridge
>  Hi.
> 
> On Thu, 29 May 2014 14:31:03 -0500
> Dennis Wicks  wrote:
> 
> > Can't quite figure out how to do this.
> > 
> > I'd like to be able to scan a Volume or directory and find 
> > all directories that have only one item in them. Either 
> > directory or file.
> 
> Try this (yep, links should be 3, not 1):
> 
> find  -type d -links 3
> 
> Reco

That looked neat (just a single process) but it doesn't quite answer
the question. It finds directories containing exactly one subdirectory
and any number of other files.

clive@rimmer:~$ find temp -type d -links 3 | xargs -r ls -A1F
temp/for-brum/notes:
general/

temp/here:
sub-here/

temp/offlineimap-dummy-config:
.mutt/
.offlineimaprc
.offlineimaprc.~1~

temp/stuff:
a/

temp/stuff/a:
b/
xyz

temp/there:
sub-there/



A different approach: find everything, strip off the leaf entry and
filter out duplicate parent dirs:

   find temp |sed 's|[^/]*$||' |sort |uniq -u

For example:
clive@rimmer:~$ find temp |sed 's|[^/]*$||' |sort |uniq -u | xargs -r
ls -A1F
temp/for-brum/notes/:
general/

temp/for-brum/usbmount/mount.d/:
00_create_model_symlink*

temp/for-brum/usbmount/umount.d/:
00_remove_model_symlink*

temp/here/:
sub-here/

temp/here/sub-here/:
extra-here

temp/plates/clive-favourites/:
clive-favourites.control.template

temp/plates/clive-mail-client/:
clive-mail-client.control.template

temp/plates/clive-mail-local-delivery/:
clive-mail-local-delivery.control.template

temp/plates/clive-mail/:
clive-mail.control.template

temp/stuff/:
a/

temp/there/:
sub-there/

temp/there/sub-there/:
extra-there




PS the sort is probably unnecessary, just being careful.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140529214320.GA9259@rimmer.localdomain



Re: how to change default pager for tab completions from 'more' to 'less'

2014-04-02 Thread Clive Standbridge
> if i use tab completion, and there are a lot of possibilities, 'more'
> is used as the default pager to show the list. I want to see the list
> with the 'less' pager.

You may be out of luck. bash(1) in the "Readline Variables" section
states
   page-completions (On)
  If set to On, readline uses an internal more-like pager to
  display a screenful of possible completions at a time.

It looks like your choices are the more-like pager, or no pager.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140402211530.GA7523@rimmer.localdomain



Re: making my Wheezy beep. How?

2014-01-31 Thread Clive Standbridge
>  Why don't I get a beep with:
> 
> echo -e \a

Because the shell absorbs the \ and the echo command sees only the
letter a. Try this:

echo -e '\a'

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140131073908.GA6222@rimmer.localdomain



Re: Re: Confused about dist-upgrade

2014-01-23 Thread Clive Standbridge
> At any rate, to move from, say, squeeze, to wheezy, my approach would
> be to edit my sources.list, replacing all instances of "squeeze" with
> "wheezy", and then running
> 
> # apt-get update
> # apt-get dist-upgrade

It's not always that straightforward for upgrades between major
releases. You might want to view the fine release notes, at least the
chapter on upgrading, at
http://www.debian.org/releases/wheezy/releasenotes


> That as far as memory serves -- which is getting shakier and shakier
> with the advance of years :-( 

I know the feeling!

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140123235719.GA12685@rimmer.localdomain



Re: Re: upgrade dist from squeeze to wheezy

2013-12-18 Thread Clive Standbridge
> > we have been on squeeze for a couple of years and run a server using
> > openvz. we also have some backports and some software in /usr/local
> > we
> > compiled (so we could use more updated versions).
> > 
> > we want to do a dist upgrade to wheezy.
> > 
> > is the correct process:
> 
> The recommended process is to read and follow the upgrade instructions
> in the release notes.

Except that openvz has been dropped from wheezy.

If the squeeze system is the openvz host, that's not covered in the
release notes.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20131219020130.GA15984@rimmer.localdomain



Re: software for (reminder) recommendation

2013-11-13 Thread Clive Standbridge
> Which package I can be installed which may serve as calender,
> 
> Just remind me when, where and what I need attend or prepare?

gkrellm-reminder (a plugin for gkrellm) does what you said. 
It's graphical, but does not depend on any desktop environment.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20131113093433.GA9738@rimmer.localdomain



Re: Consistent mouse and scrollbar behavior in X?

2013-10-12 Thread Clive Standbridge
Hello Brian,

> Clicking on scrollbars does different things with different applications. In 
> Emacs, the following used to be standard:
> 
> - left click: one screenful down
> - right click: one screenful up
> - middle click: jump to where you clicked

Better than that, the left and right click scroll by an amount
proportional to how far down the bar you click it. Viewed another way,
left click moves the line from the cursor position to the top of the
window, right click moves the top line to the cursor position. It is
(was) really well thought out.

[...]

> I did some web searching to try to fix this. I found how to move my
> scrollbar in emacs back over to the left, instead of on the right
> (set-scroll-bar-mode 'left), but I haven't found a way to get my old
> mouse behavior back in emacs,

You need to rebuild emacs to achieve that. This note from
/usr/share/doc/emacs23-common/README.Debian.gz is the key:
  If you prefer the old-style, non-toolkit scrollbars, just edit
  debian/rules to add --without-toolkit-scrollbars where indicated and
  rebuild.

The splendid Debian Reference has a guide to rebuilding packages:
http://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_porting_a_package_to_the_stable_system
 - Make sure you set the deb-src line to the same release as you're
using (because you're not doing a backport).
 - Before the build step, add the following lines in debian/rules at the
appropriate places:
confflags_x += --without-toolkit-scroll-bars
confflags_lucid += --without-toolkit-scroll-bars

Allow plenty of time for the build. My notes say 42min to build
emacs23 on a 3GHz P4.

>  much less make it standard across all X programs. Is this possible?

Ideally scroll bar behaviour would be a window manager function, but
as you've observed, it seems to be built into each application.

[...]

> Thanks for any thoughts or suggestions.

Did you know that xterm has the same scrollbar behaviour? Unlike every
other terminal emulator that I'm aware of.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20131012191104.GA9669@rimmer.localdomain



Re: Re: Using unstable for certain packages

2013-04-13 Thread Clive Standbridge
> I do not mean building from source using configure & make, but creating
> a debian package using source debian package from unstable with tools
> like dpkg-buildpackage or uupdate.

There's a handy guide to that (apart from the uupdate bit) at
http://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_porting_a_package_to_the_stable_system

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130413115929.GA7336@rimmer.localdomain



Re: "su" - timeout for dbus/system_bus_socket if $DISPLAY set but unreachable

2013-03-16 Thread Clive Standbridge
> The reasons seems to be my setup of the system.
> Debian runs in a VirtualBox environment, headless and w/o X server.
> I use ssh to connect to the system. (putty)
> I use X forwarding to run X applications on the system.
> The variable $DISPLAY gets set to 10.0.2.2:0 after ssh auth.

Sven,

I'm pretty sure that the value of DISPLAY means you are using a
traditional X connection, and not actually using the X forwarding over
ssh. ssh would set DISPLAY to "localhost:10" or similar.

Setting up ssh forwarding correctly could avoid your problem because
it will set DISPLAY only when it's valid.

You will need to remove any setting of DISPLAY from your shell's
startup files. Assuming you use bash, that would include
  /etc/profile
  /etc/bash.bashrc
  ~/.profile
  ~/.bash_profile
  ~/.bash_login
  ~/.bashrc
and anything sourced by those files.

Make sure your /etc/ssh/sshd_config contains a line:
  X11Forwarding yes
If it's missing, add it then restart the ssh server.

Then connect from Putty without X forwarding. DISPLAY should not be
set on the Debian machine.

Then connect from Putty with X forwarding. DISPLAY should be
"localhost:10" or similar.

I hope this helps.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130317015308.GA32005@rimmer.localdomain



Re: Basic USB Automounter?

2013-01-17 Thread Clive Standbridge
> Building a Wheezy 64-bit system piece by piece from the standard
> terminal-only install.  I don't want to have any extraneous crap
> that I'll never use on it Will have X and a window manager only
> (currently Openbox) for those times I need a GUI.  This will be my
> personal system with me as the only user.  A desktop, not a laptop.
> 
> Will udisks automount USB devices--thumb drives, flash cards,
> external hard disks, etc.--in BOTH terminal mode or GUI? I can't
> find any docs that say specifically.  All assume having a GUI
> running.  Or can anyone suggest something better.   User must have
> full access to device after it's mounted.

usbmount does that job (although I haven't used it on a wheezy system
yet). A small amount of configuration is needed - see the comments in
/etc/usbmount/usbmount.conf and set MOUNTOPTIONS and FS_MOUNTOPTIONS
accordingly. An example configuration, without comments, is

ENABLED=1
MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3
 /media/usb4 /media/usb5 /media/usb6 /media/usb7"
FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus"
MOUNTOPTIONS="noexec,nodev,noatime,nodiratime"
FS_MOUNTOPTIONS="-fstype=vfat,flush,gid=plugdev,dmask=0002,fmask=0113"
VERBOSE=no

Add yourself to whatever group(s) you use in the config, e.g. plugdev.

The device appears under /media/usb. Use pumount to unmount it.

I hope this helps.
-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130117082830.GA4195@rimmer.localdomain



Re: Flashplayer on Squeeze (sorry. :-()

2012-11-09 Thread Clive Standbridge
> If there were a plugins directory, where would it be?  I need to put 
> libflashplayer.so in it, and it currently doesn't exist.  Obviously I
> can 
> create it, but I need to know where to put it.  
> 
> Iceweasel 10.0.10, LXDE and Squeeze.

Hi Lisi,

Instead of setting it up manually, you can install the package
flashplugin-nonfree, then you don't need to care where its library is
installed.

Note that when new versions of flashplayer are released you will need
to run, as root,
  dpkg-reconfigure flashplugin-nonfree


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121109114120.GA18353@rimmer.localdomain



Re: Re: mail server

2012-07-28 Thread Clive Standbridge
> 
> is there any good howto on Debian Squeeze on following tools
> 
> -postfidx
> -dovecot
> -postfixadmin (web interface)
> -roundcube
> -spamassassin
> -clamv

Most of that list is covered by the tutorials at
http://workaround.org/ispmail/

I have used the tutorial for Debian Lenny and found it very helpful;
it both tells you what to do and explains things.

The tutorial has since been updated for Squeeze although I haven't
looked at that version.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120728213205.GA3480@lister.localdomain



Re: which layer to configure so Alt-x does Meta-x in bash?

2012-07-04 Thread Clive Standbridge
> What's the right layer to reconfigure so that Alt functions as Meta in bash
> command line editing?
> 
> Right now, when I try to type Alt-f to execute bash's Meta-f line-editing
> function (Forward Word), bash instead inserts a non-ASCII character (the
> a-e ligature).  That happens in bash in xterm and in ssh sessions, but not
> in bash on a virtual console.
> 
> (What I mean by "right layer" above is the layer that probably would have
> the fewest unwanted side effects.  For example, on an older system, Alt-f
> works as Meta-a in bash, but still inserts the a-e character when typed
> while running a command such as "cat" (that is, just echoing typed input
> to output), so I don't think I want a solution that completely disables
> the non-ASCII character generation.)
> 
> 
> Do I want to be looking in bash?  in inputrc?  in xterm?  somewhere else?

Hi Daniel,

Setting the X resource for xterm will cause Alt-f to send Meta-f, but
it's not exclusive to bash. But an alternative quick and easy way to
enter ligatures and other special characters is to use the compose key.

To make Alt function as Meta, put this line in your
~/.Xresources file:
*metaSendsEscape:True
It will take effect when you next login to X. To apply it immediately,
run
xrdb -merge ~/.Xresources
The metaSendsEscape resource will work for xterm and uxterm, not sure
about any other terminal emulators.

To enable the Compose key, run
dpkg-reconfigure keyboard-configuration
and choose which key you wish to function as Compose (e.g. the Menu key).

To use it, press (don't hold) the Compose key followed by the two keys
which make up the special character. They're mostly intuitive, for
example
Compose a e gives æ
Compose 1 2 gives ½
Compose " o gives ö
Compose o c gives ©
and so on.

I hope this helps.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120704214551.GA3692@rimmer.localdomain



Re: Re: how to update Debian OS properly

2012-05-25 Thread Clive Standbridge
> deb http://ftp.us.debian.org/debian stable main contrib non-free
> deb-src http://ftp.us.debian.org/debian stable main contrib non-free
> deb http://ftp.debian.org/debian/ squeeze-updates main contrib non-free
> deb-src http://ftp.debian.org/debian/ squeeze-updates main contrib non-free
> deb http://security.debian.org/ squeeze/updates main contrib non-free
> deb-src http://security.debian.org/ squeeze/updates main contrib non-free
> 
> please confirm if above repositories are good to go with,

There is a problem because you have mixed "stable" and "squeeze". It
will work from now until wheezy is released, then your system will
partly upgrade itself to wheezy and something will likely break.

To fix that, use either "stable" or "squeeze" exclusively. I prefer to
use "squeeze", as recommended by most of the people who have commented
here, so I can choose a convenient time to perform the upgrade to the
next release.

I hope this helps.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120525150915.GA5209@lister.localdomain



Spam complaints

2012-05-17 Thread Clive Standbridge
To anyone who is bothered by spam on the list and is unsure what to do,
please:

DON'T reply to the spam.

DON'T quote the spam.

DO Read how to report the spam at
http://www.debian.org/MailingLists/#ads in particular, find the
offending message in the archive at
http://lists.debian.org/debian-user/recent and press the "Report as
spam" button.

DO visit http://wiki.debian.org/Teams/ListMaster/ListArchiveSpam for
more information.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120517085144.GA1720@lister.localdomain



Re: Re: Re: backported libreoffice minus its autospellcheck

2012-05-09 Thread Clive Standbridge
> Forgive me for being thick but how do I get the gb dictionary please?

No problem, you need to install the myspell-en-gb package.
Then you need to restart LibreOffice before you can use it in the
auto-spellcheck.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120509234741.GA5046@lister.localdomain



Re: Re: backported libreoffice minus its autospellcheck

2012-05-09 Thread Clive Standbridge
> Yes I do have myspell installed ;- ... locate myspell
> /usr/lib/enchant/libenchant_myspell.so
> /usr/share/myspell
> /usr/share/myspell/dicts
> /usr/share/myspell/infos
> /usr/share/myspell/dicts/DicOOo.sxw
> /usr/share/myspell/dicts/en-US.aff
> /usr/share/myspell/dicts/en-US.dic
> /usr/share/myspell/dicts/en_US.aff
> /usr/share/myspell/dicts/en_US.dic
> /usr/share/myspell/infos/ooo
> /usr/share/myspell/infos/ooo/hunspell-en-us
> /var/lib/dpkg/info/myspell-en-gb.list
> /var/lib/dpkg/info/myspell-en-gb.postrm
> /var/lib/dpkg/info/myspell-en-us.list
> /var/lib/dpkg/info/myspell-en-us.postrm
> 
> >From which can be see that I have an english -GB list but no
> dictionary, and searching the web I cant find a specific Gb
> dictionary, do you know of one please?

Apparently the .list and .postrm files in /var/lib/dpkg/info can be
left behind by packages which have been removed - I have examples of
that for other packages.

Looking at your list of files and the links below (and assuming that
your locate database is up to date), I suspect that you may have
installed myspell-en-gb and myspell-en-us and subsequently removed
them, and now have hunspell-en-us installed.
http://packages.debian.org/squeeze/all/myspell-en-gb/filelist
http://packages.debian.org/squeeze/all/myspell-en-us/filelist
http://packages.debian.org/squeeze/all/hunspell-en-us/filelist

Perhaps you could check that by running

dpkg -l hunspell-en-us myspell-en-gb myspell-en-us


> Yes the autocheck button is ticked, but its still only working
> intermittently, not all the time unfortunately.

Unfortunately nothing above explains intermittent working. If you can
identify a repeatable pattern of behaviour then you could report a bug.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120509092411.GA6534@lister.localdomain



Re: backported libreoffice minus its autospellcheck

2012-05-07 Thread Clive Standbridge
On Mon  7 May 2012 11:08:53 +0100(+0100), Clive Standbridge wrote:
[...]
> 
> First suggestion - do you have a myspell dictionary installed? Search
> for package names beginning "myspell-" and install one or more of them.

Oh and you'll need to restart LibreOffice after installing a myspell-*
package.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120507102017.GA1715@lister.localdomain



Re: backported libreoffice minus its autospellcheck

2012-05-07 Thread Clive Standbridge
> Yesterday I installed the backported version of libreoffice which is
> working reasonably well, except for writer not having the
> autospellcheck enabled. Does anyone know of a workround for this that
> will enable spellchecking to be done as i type please?
> 
> Thanks
> Sharon.

Hi Sharon,

I have that setup on one machine and the auto spell check is working.

First suggestion - do you have a myspell dictionary installed? Search
for package names beginning "myspell-" and install one or more of them.

Secondly (and please forgive me for mentioning this just in case you
have overlooked it), but is your auto spell check switched on? There's
a toolbar button or you can set it under Tools -> Options -> Language
Settings -> Writing Aids -> Options -> Check spelling as you type.

I hope this helps.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120507100849.GA3154@lister.localdomain



Splitting digest into separate mails (was OT: Broken digest)

2012-05-06 Thread Clive Standbridge
> > The admin will not "repeair the digest", this as been going on 
> > for like a decade -- please subscribe the normal way if you care
> > about 
> > not breaking threading, this problem will not be going away.
> 
> It's broken since some days. I guess you're referring to another issue,
> that can cause that e.g. references aren't correct, e.g. if a user
> replies to the complete digest instead of an independent mail of the
> digest.

You can split the digest into its individual messages, with subjects
and threading intact, using procmail and formail. Or rather, when
currently reported problems with the digest are resolved you should be
able to do it. I used this method successfully a few years ago when I
used to subscribe to the digest.

The procmail recipe is
:0
*^TO_\/debian-user-digest@lists\.debian\.org
| formail +1 -ds procmail

You should be able to add procmail into your mail delivery chain if
you receive mail locally, but probably not if you keep mail on a
remote IMAP or webmail server.

I hope this helps.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120506181028.GA3677@rimmer.localdomain



Re: ls sorting order change

2012-05-02 Thread Clive Standbridge
> 
> On a fresh Squeeze installation, ls seems to ignore leading "."
> characters (it no longer lists all "hidden" files adjacent to each
> other) and to ignore capitalization differences.

Hi Daniel,

To list the hidden files, use the -a or -A option (the latter omits
. and ..). Maybe you had one of these in an alias on a previous
system?

Alternatively, if you want to see hidden files when you type "ls *"
you can set "shopt -s dotglob" (this is specific to bash).

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120502082050.GA4827@rimmer.localdomain



Re: How /etc/hosts.allow /etc/hosts.deny and smb.conf play along

2012-04-26 Thread Clive Standbridge
Hi Tuxoholic,

[...]

> With this smb.conf tweaking it works fine, but why could smbd/nmbd run past 
> /etc/hosts.allow and /etc/hosts.deny without those lines in smb.conf?

Already answered by Juan Sierra Pons.

> To my limited CIDR understandig a /32 mask should restrict access to 
> 192.168.2.0.0 and 192.168.2.1 - this should be fine for testing purposes.

Not sure about that. You can check it with ipcalc (in the ipcalc package):

$ ipcalc 192.168.2.0/32
Address:   192.168.2.0  1100.10101000.0010. 
Netmask:   255.255.255.255 = 32 ... 
Wildcard:  0.0.0.0  ... 
=>
Hostroute: 192.168.2.0  1100.10101000.0010. 
Hosts/Net: 1 Class C, Private Internet

So it looks like you need a 31 bit netmask for that address range:

$ ipcalc 192.168.2.0/31
Address:   192.168.2.0  1100.10101000.0010.000 0
Netmask:   255.255.255.254 = 31 ...111 0
Wildcard:  0.0.0.1  ...000 1
=>
Network:   192.168.2.0/31   1100.10101000.0010.000 0
HostMin:   192.168.2.0  1100.10101000.0010.000 0
HostMax:   192.168.2.1  1100.10101000.0010.000 1
Hosts/Net: 2 Class C, Private Internet, PtP Link RFC 3021


> Once this denies all services I'd set it to /24 to have access to the
> whole "subnet" from 192.168.2.0-192.168.2.255 and 127.0.0.1 127.0.1.1

Well you don't seem to be allowed .0 and .255:

$ ipcalc 192.168.2.0/24
Address:   192.168.2.0  1100.10101000.0010. 
Netmask:   255.255.255.0 = 24   ... 
Wildcard:  0.0.0.255... 
=>
Network:   192.168.2.0/24   1100.10101000.0010. 
HostMin:   192.168.2.1  1100.10101000.0010. 0001
HostMax:   192.168.2.2541100.10101000.0010. 1110
Broadcast: 192.168.2.2551100.10101000.0010. 
Hosts/Net: 254   Class C, Private Internet


I hope this helps.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120426113448.GA6767@rimmer.localdomain



Re: set nameserver on boot in /etc/network/interfaces

2012-03-29 Thread Clive Standbridge
> hi,
> 
> i could not find documentation about which package to enable setting
> nameserver ip (dns client) upon boot from /etc/network/interfaces
> 
> can anyone point me to the right direction?

The package is resolvconf and the parameters in
/etc/network/interfaces are dns-nameservers, dns-domain, dns-search
etc. i.e. resolv.conf parameter names prefixed with "dns-".

I hope this helps.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120329150748.GA18054@rimmer.localdomain



Re: Bash argument expanded inside alias

2012-03-13 Thread Clive Standbridge
On Tue 13 Mar 2012 15:49:52 +(+), Clive Standbridge wrote:
> > Dear Debian users,
> > 
> > Anyone knows why this command:
> > 
> > :~$ alias muda='find . -name "*" -mtime -$1'
> > 
> > and all this variations I tried:
> [...]
> > does not work to do what your intuition imagine what I want it to do?
> 
> Hi Beco,
> 
> It doesn't work because aliases don't take arguments.

Oh I think I misunderstood the question.
On second thoughts, I think you probably meant to use an alias inside
a shell script, and to use the script's argument in the alias. In that
case, the problem would be shell parameters are not expanded inside
single quotes. You would need to use double quotes, for example

alias muda="find . -name '*' -mtime -$1"


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120313160739.GA2602@rimmer.localdomain



Re: Bash argument expanded inside alias

2012-03-13 Thread Clive Standbridge
> Dear Debian users,
> 
> Anyone knows why this command:
> 
> :~$ alias muda='find . -name "*" -mtime -$1'
> 
> and all this variations I tried:
[...]
> does not work to do what your intuition imagine what I want it to do?

Hi Beco,

It doesn't work because aliases don't take arguments.
You can use a shell function instead. For example,

muda()
{
   find . -name "*" -mtime -$1
}


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120313154947.GA15377@rimmer.localdomain



Re: Re: Setting the compose key without KDE

2012-02-20 Thread Clive Standbridge
> Indeed it does, and I asked for the Left-Logo key. In
> the file /etc/default/keyboard I notice that the environment
> 
> string XKBOPTIONS is set to
> "lv3:ralt_switch,compose:lwin,terminate:ctrl_alt_bksp" so obviously
> the configuration has done something. But what programs read that
> file? I tried pressing the left windows key, holding it down and
> pressing ^ and then c, but I still don't get the accented
> character. So what am I doing wrong?

Hi Sian,

Holding down the compose key is what you're doing wrong. Just press
and release it before typing your compose sequence.

It's also worth noting that the compose sequences in Debian work only
one order, i.e. "Compose ^ c" works but "Compose c ^" doesn't (unlike
at least some versions of Unix which work in either order).

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120220090730.ga4...@rimmer.esmertec.com



Re: Re: rm -rf is too slow on large files and directory structure(Around 30000)

2012-02-15 Thread Clive Standbridge
> But may provide some benefit when removing a large number (3) of
> files (at least empty ones).
> 
> cbell@circe:~/test$ time find rm -type f -exec rm {} \;
> 
> real  0m48.127s
> user  1m32.926s
> sys   0m38.750s

First thought - how much of that 48 seconds was spent on launching
3 instances of rm? It would be instructive to try 

  time find rm -type f -exec rm {} \+

or the more traditional xargs:

  time find rm -type f -print0 | xargs -0 -r rm

Both of those commands should minimise the number of rm instances.
Similarly for unlink.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120215225049.ga8...@rimmer.esmertec.com



Re: usbmount and user permissions

2012-01-26 Thread Clive Standbridge
> Hi all
> 
> 
> I've recently installed usbmount on Squeeze in order to mount a usb
> floppy disk drive to read old floppies. However, usbmount has now
> taken over everytime I mount something using usb and only allows me -
> as user - to copy from the usb device, not write to it or delete it,
> and has to be unmounted using sudo umount /media/usb0
> 
> My question is: how do I change this so that I can write and umount
> the usb device as user? So far, I have tried: chown, chgrp and chmod
> all with no effect. User is also added to all the groups that seem
> relevant. Research on-line only refers to the chmod, chgrp and chown
> options as well.
> 
> Any further ideas on how to change this please?
> 
> Thanks
> AG

Hi AG,

It would be useful to know what changes you made to
/etc/usbmount/usbmount.conf, and which groups you added yourself to.

Anyway, assuming your USB floppy disk drive behaves like a USB flash
drive, and its file system is vfat, the following should work:

1. Add this line to /etc/usbmount/usbmount.conf:
FS_MOUNTOPTIONS="-fstype=vfat,flush,gid=plugdev,dmask=0002,fmask=0113"

2. Add yourself to the plugdev group.

3. Log in again to for the group membership change to take effect.

To unmount the drive as an unprivileged user, enter this:
pumount /media/usb

Also read the comments about the sync option in
/etc/usbmount/usbmount.conf, and modify MOUNTOPTIONS accordingly.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120126094441.ga5...@rimmer.esmertec.com



Re: how to kill 120 jobs at once.

2012-01-21 Thread Clive Standbridge
> Hi,
> 
> I think the jobs were hanged up there,
[...]
> before I could use the ps au | grep nvt | awk '{print $2} | sed
> 's/^.*$/ kill -9 &/g' > kill.sh  and run kill.sh.
> 
> now ps au does not show me this info any more.
[...]
> 
> what's the alternative choice,


Hi Lina,

You can install the procps package, then use 

   pkill nvt

Like kill, pkill takes a signal number as an option, so more
aggressively:

   pkill -9 nvt



-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120121113428.ga14...@rimmer.esmertec.com



Re: Re: Detach Icedove from xterm itself called from terminal.

2011-11-30 Thread Clive Standbridge
Paul Isambert wrote:

> Thanks Clive for your help. Unfortunately Icedove stays attached to the
> uppermost terminal (which I want to close too, perhaps that wasn't
> clear). Even with the simplest form:
> 
>   bash --rcfile <(echo icedove \&)
> 
> when I close the terminal, it closes Icedove.
> 
> But at least I have learnt something!

and in reply to Iuri Guilherme dos Santos Martins, Paul Isambert wrote:
> Thank you Iuri, but the terminal still stays open.
> 
> What I want to do is the following: I have a Lua script which lets me
> selects programs, then calls them with "os.execute()", and the
> terminal where the Lua script runs closes too. Only with Icedove it
> stays attached, so I'm trying very hard to detach it so the terminal can
> close.


Hi Paul,

I've obviously misunderstood your intention (I thought you wanted to
keep the second (and possibly the first) terminal open at an
interactive prompt).

It looks easier now.
I don't know anything about Lua, but searching around suggests that
os.execute executes its command in a shell, not directly. In that case
you should be able to use a command like

  icedove &

but if that causes icedove to be closed immediately, you could try

  nohup icedove &

Note I can't test any of this because I don't have LUA installed.

I hope this helps. Otherwise I'm out of ideas.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/2030160216.ga18...@rimmer.esmertec.com



Re: Detach Icedove from xterm itself called from terminal.

2011-11-30 Thread Clive Standbridge
Paul Isambert wrote:
> Hello there,
> 
> 
> When started from gnome-terminal, Icedove stays attached to it. I can
> detach it by executing "icedove &". The problem is, I can't seem to do
> that recursively, i.e. from the terminal call another terminal which
> calls "icedove &". The following works: "xterm -e 'icedove'" (with
> Icedove attached to xterm), but "xterm -e 'icedove &'" doesn't (xterm
> starts and closes immediately).
> 
> Any idea?


Hi Paul,

First, about the error. Given the -e option, xterm runs the next
argument instead of the shell that it would run by default. So it's
trying to run an executable called 'icedove &', can't find it, and
exits.

The '&' is shell syntax; you need to run a shell in the xterm. The
shell would need to both run the icedove command in the background,
and produce an interactive prompt. I don't know if there is a
straightforward way of doing that. The best I can think of is

  xterm -e bash --rcfile <(echo icedove \&)

or if you want the usual initialisation files to run, you could do

  xterm -e bash --rcfile <(cat /etc/bash.bashrc ~/.bashrc; echo icedove \&)

or use a dedicated rcfile:

  xterm -e bash --rcfile ~/.my-icedove-rcfile

where ~/.my-icedove-rcfile contains

  . /etc/bash.bashrc
  . ~/.bashrc
  icedove &


There are a couple of things I haven't figured out:
This does not to allow you to bring the icedove to the foreground.  
Nor does it seem to show stdout/stderr from icedove in the xterm, which
I guess you want.


Hopefully someone will provide a better answer.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/2030132934.ga9...@rimmer.esmertec.com



Re: comment diff files

2011-11-25 Thread Clive Standbridge
Jerome BENOIT wrote:
> Hello List:
> 
> Is there any way to comment a diff file ?

Interesting question. I don't know, but perhaps this paragraph from
the patch(1) may help:

patch  tries to skip any leading garbage, apply the diff, and then skip
any trailing garbage.  Thus you could feed an article or message  con-
taining  a  diff  listing  to patch, and it should work.  If the entire
diff is indented by a consistent amount, or if a context diff contains
lines ending in CRLF or is encapsulated one or more times by prepending
"- " to lines starting with "-" as specified by Internet RFC 934,  this
is  taken  into  account.   After  removing indenting or encapsulation,
lines beginning with # are ignored, as they are considered to be  com-
ments.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/2025181454.ga8...@rimmer.esmertec.com



Re: Re: How to get an IP address

2011-11-14 Thread Clive Standbridge
Bob Proulx wrote:
> 
> The 'getent' utility is part of GNU glibc and is present on any GNU
> glibc based system but not present on others.  It won't work on HP-UX
> for example.  Certainly if you only care about GNU/Linux machines then
> you should be safe using it.  A good suggestion.

That's good to know, thanks.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/2014213831.ga21...@rimmer.esmertec.com



Re: How to get an IP address

2011-11-14 Thread Clive Standbridge
> Hi, 
> 
> I know how to get an IP address *info* using dig, but has anyone looked
> into how to get *only* the IP address? so that I can use, eg.
> 
>  the_ip=`get_ip host`

Hi Tong,

Kind people have already suggested dig and host, but may I make
another suggestion:

   getent hosts $hostname | awk '{print $1}'

It appears that host and dig only look at DNS, whereas you may be
using other name resolution methods e.g. a hosts file. "getent hosts"
takes account of that.

Also, getent is always installed (as far as I can tell), whereas host
and dig may not be installed.

I hope this helps.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/2014193126.ga14...@rimmer.esmertec.com



Re: Re: job in crontab not running

2011-11-09 Thread Clive Standbridge
> You can append "2>&1 >> /var/log/nightly-git.log" to get the output
> logged to a file.

Those redirections are the wrong way round. Only standard output is
redirected to the file.

To redirect both standard output and standard error you need to append
">> /var/log/nightly-git.log 2>&1"

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/2009090420.ga3...@rimmer.esmertec.com



Re: How to get version information in common notation

2011-10-12 Thread Clive Standbridge
> How can I quickly get version information for packages I have
> installed.  I mean the common kind of notion used throughout linux. 
> 
> Not the unusual non standard notation one gets with `apt-get
> versions',
> which is not suitable for copy/paste:
> 
> ,
> |aptitude versions xorg
> |   ihA 1:7.6+9   testing500
> `
> 
> I mean like `pkg-version'

A succinct listing can be had from "wajig snapshot" which outputs
"package=version":

wajig snapshot | egrep bash
bash=4.1-3
bash-completion=1:1.2-3
bash-doc=4.1-3


To use "-" as a delimiter you could do e.g.

wajig snapshot | tr = - | egrep bash
bash-4.1-3
bash-completion-1:1.2-3
bash-doc-4.1-3


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111012180840.ga12...@rimmer.esmertec.com



Re: Re: [OT] British vs. American English

2011-10-03 Thread Clive Standbridge
> Now I wounder, if "pissed" in British English already means not to know
> where you are ... in what condition is somebody who isn't "pissed", but
> "totally pissed"?

He or she would be "pissed as a newt".

I hope that's clearer now.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111003085213.ga7...@rimmer.esmertec.com



Re: Wireshark detritus

2011-09-30 Thread Clive Standbridge
> Hi!
> 
> I am wanting to install the  Wireshark tarball, preparatory to which I
> ran 
> aptitude purge to clear the deb out, together with its config files.
> I then 
> ran locate to find any files left so that I could remove them
> manually.  I 
> got this:
> 
>  Tux:/home/lisi# locate wireshark
[file list omitted]
> What would be a sensible way of proceding from here?  Manually delete
> them one 
> by one?  Or is there a simpler (=quicker) way??

One possible quick and simple command you can use is xargs.

For example,
locate -e0 wireshark | xargs -0r rm

That would leave any directories with "wireshark" in the name, so an
alternative command would be
locate -e0b wireshark | xargs -0r rm -rf

The -e option suppresses printing of non-existent files.

The -b option matches only basenames.

The -r option prevents xargs running its command on an empty file
list.

The pair of -0 options deals with white-space and non-printing
characters in file names.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110930090015.ga12...@rimmer.esmertec.com



Re: Maximum file size?

2011-07-25 Thread Clive Standbridge
> What is the maximum file size supported by Debian 32 bit and 54 bit
> kernel? Alo, what is the maximum capacity of harddisk supported by
> ext3 FS?

More than you think with the 54 bit kernel; you get 10 bonus bits
absolutely free.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110725140435.ga19...@rimmer.esmertec.com



Re: Re: debian-user-digest Digest V2011 #1154

2011-06-16 Thread Clive Standbridge
> On Wed, Jun 15, 2011 at 07:05:16PM +0100, Brian wrote:
> > On Wed 15 Jun 2011 at 19:58:05 +0200, Hans-J. Ullrich wrote:
> > 
> > > Am Mittwoch, 15. Juni 2011 schrieb John Mollman:
> > > > How would I add myself to the plugdev group?
> > > > 
> > > > John
> > > Try groupadd in the commandline. In KDE you can use kusers, which
> > > does the job 
> > > very well. Kusers is my favourite tool.
> > 
> > groupadd creates a new group. vigr is a command line method.
> > 
> This will work:
> 
> addgroup user groupname

Shouldn't that be:
adduser user groupname


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110616073051.ga3...@rimmer.esmertec.com



Re: Re: Bug#611380: openssh-client: sftp's put -r fails with "Unable to canonicalise path"

2011-05-19 Thread Clive Standbridge
> >  
> >  I am attempting to upload files onto my webserver using sftp.  As
> >  far as I can 
> >  tell from reading the man pages and searching online, the correct
> >  syntax once 
> >  connected via sftp is:
> >  
> >  put -r * 
> 
> I'm no expert myself, but shouldn't that be
> 
>mput *

mput doesn't seem to be an sftp command. Maybe you were thinking of
lftp? But lftp's mput command doesn't appear to do recursion. lftp has
a reverse mirror command "mirror -R" which looks like it will do the
job. You can connect to an sftp server with lftp using a command like
lftp sftp://username@host/path/to/dir

Another alternative would be to use rsync e.g.
rsync -aiz files username@host:/path/to/dir

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110519213653.ga10...@rimmer.esmertec.com



Re: Command history

2011-04-28 Thread Clive Standbridge
> Is there a way to have a command that does not show up in history?
> Or a way to pipe a string where the string doesn't show up in
> history?
> 
> Ie, I set some passwords with:
> echo "some string and stuff" | sha512sum
> (Probably with cut and awk and other such things)

Apart from beginning the command with a space as already mentioned,
you could enter just the command "sha512sum" then as input type

some string and stuff

followed by Ctrl-D.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110428071949.ga3...@rimmer.esmertec.com



Re: Re: Re: OpenOffice.org - how to install additional languages?

2011-04-01 Thread Clive Standbridge
> > It looks like you need to install myspell-it and myspell-sl packages.
> 
> Is myspell used by openoffice? 

Yes according to the package descriptions:

Description: Italian dictionary for myspell
 This is the Italian dictionary for use with the myspell spellchecker
 which is currently used within OpenOffice.org and the mozilla
 spellchecker

Description: Slovenian dictionary for myspell
 This package contains a Slovenian myspell dictionary , which will give
 openoffice.org and mozilla users the ability to  automatically spellcheck
 and hyphenate Slovenian text.


> Anyway, Camaleon's suggestion helped. I went to the openoffice site,
> downloaded the spell checkers and installed them through the Writer
> extensions "wizard".

Okay, good :-)


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110401185456.ga19...@rimmer.esmertec.com



Re: Re: OpenOffice.org - how to install additional languages?

2011-04-01 Thread Clive Standbridge
> So, the languages seem to be set up correctly, but their spell
> checkers seem to be missing. US English must be the only
> spell-checker that's installed. Installing openoffice.org-l10n-sl
> and openoffice.org-l10n-it achieved nothing.

It looks like you need to install myspell-it and myspell-sl packages.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110401163346.ga7...@rimmer.esmertec.com



Re: adzapper help needed

2011-03-28 Thread Clive Standbridge
> My recollection is that in addition to configuring adzapper,
> one must also configure ones browser to use it. 

You don't configure your browser to use adzapper. adzapper is a filter
for squid (or other proxy). You configure squid to use adzapper, and
your browser to use the proxy.

In squid.conf you need 
url_rewrite_program /usr/bin/adzapper.wrapper

See also /usr/share/doc/adzapper/README.Debian

I've used adzapper happily for several years and find it very
convenient for several different machines and browsers. One very
useful config line in adzapper.conf is 
ZAP_MODE="CLEAR"
otherwise some pages get splattered with surprisingly large numbers of
"ad zapped" strings.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110328101300.ga9...@rimmer.esmertec.com



Re: Re: need help with sed problem

2011-03-19 Thread Clive Standbridge

> i agree with that - the underscore that was used is also valid. you
> might look at proper quoting of variables to avoid this. something
> like cat text.txt | sed -e 's/bbb.*/:"$PWD"/' > new.txt

The output from that, given Joao's original text.txt, is


:"$PWD"


The reason is that " and $ have no special effect inside ''.

I would prefer to use some other character for the s command delimiter
as earlier posters in this thread suggested, because it is easier to
read. But another way you can do it is to escape all the backslashes
in $PWD using a shell expansion:

$ sed "s/.*/:${PWD//\//\\/}/" text.txt

:/home/clive/temp


You can see its effect on the string passed to sed using set -x:
$ (set -x; sed s/.*/:${PWD//\//\\/}/ text.txt)
+ sed 's/.*/:\/home\/clive\/temp/' text.txt

A brief explanation of ${PWD//\//\\/} :-
${PWD//A/B} replaces all occurrences of pattern A with string B.
For A use \/ - the \ prevents / being treated as a delimiter.
For B use \\/ - the first \ causes the second \ to be taken literally.

I hope this helps.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110319144616.ga3...@rimmer.esmertec.com



Re: How long has your Lenny -> Squeeze upgrade taken?

2011-02-18 Thread Clive Standbridge
> Realizing this is dependent on computer specs, just curious what
> some of the people on this list have experienced for how much time
> it took to do the Lenny to Squeeze upgrade, (assuming a fully
> up-to-date Lenny system).

Based on upgrades of earlier releases (haven't upgraded anything to
squeeze yet), you are looking at hours, not minutes.

My record is 13 hours for an etch to lenny upgrade. On a 2Mbit
connection only a small proportion of that time was spent downloading
packages. The system was an AMD Duron 650MHz of 2000 vintage, and
laden with Gnome, KDE, and various server packages including cups,
exim, apache, hplip, moinmoin.  (Note to self: purge unwanted software
before the next upgrade).

Even on much newer/faster and less loaded systems I don't recall any
upgrade taking much less than an hour.

You need to be on hand during the upgrade, as configuration questions
can occur at any time.

Also if you rely on the system for anything important, you need to
allow time to diagnose and fix the fallout i.e. breakages that aren't
covered in the release notes. It happens unfortunately.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110218093549.ga6...@rimmer.esmertec.com



Re: xterm question

2011-02-15 Thread Clive Standbridge
> Every time I launch X I open a couple of xterm windows but have to
> Ctrl Middle click in the window to set the VT font to large before
> it's usable to my old eyes. I'd like to automate that but have never
> figured out how.
> I've tried set-vt-font in .Xdefaults but that didn't help and don't
> see anything in the xterm man page that makes me think it would do
> the trick.
> Suggestions?

Hi Mike,

One way is to put a line like one of the following in ~/.Xresources

*font:  6x13
XTerm*font: 7x14

The latter affects just xterm, but the former affects anything that
uses a font resource (xterm, rxvt, emacs, etc.).

You can test changes without restarting X by running

xrdb -load ~/.Xresources

PS I'm not sure whether .Xdefaults is a valid alternative name to
.Xresources


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110215095249.ga9...@rimmer.esmertec.com



Re: Re: Squeeze how to use networked printer?

2011-02-10 Thread Clive Standbridge
> However MS users running Outlook have only the subject for message
> threading.  This is a long standing bug in Outlook. 

Recent version(s) appear to have been fixed, thankfully.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110210115240.ga12...@rimmer.esmertec.com



Re: Re: xset command setting not sticking

2010-09-09 Thread Clive Standbridge
You should be able to make this work for any session selected in gdm
(or other display manager), and for sessions started with startx.

> OK after doing some more research I found the answer.
>  
> 1. nano .xsession
>  
> 2. Add contents:
> #~/bin/bash

Unnecessary.

> xset s off -dpms &

Move that line to .xsessionrc (along with anything else you want to
start in every X session).

> exec gnome-session

That should be the only active line in .xsession

> 3. chmod +x .xsession

Unnecessary, because .xsession and .xsessionrc are sourced, not
executed.

> 4. Make sure the session "Xclient" is selected in GDM.

Now you should be able to use any client in GDM.
But please note I don't have gdm installed to test this; I use wdm. 


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100909212756.ga24...@rimmer.esmertec.com



Re: Shell Expansion in Bourne Shell Script Question

2010-07-28 Thread Clive Standbridge
>  for MAGFILE in `ls *.[Zz][Ii][Pp] $MAGDIR/`; do
> #lots of other stuff
> done

As others noted, the ls command is superfluous and possibly harmful
here.

One more thing you can do is case-insensitive pathname expansion:

shopt -s nocaseglob 
for MAGFILE in $MAGDIR/*.zip
do
#lots of other stuff
done

That will work with bash (begin your script with #!/bin/bash) but not
with dash as far as I know.




>   If I leave out the attempted regular expression of
> *.[Zz][Ii][Pp], the loop works but then any other non-zip or
> non-ZIP files get processed.

Note that that is not a regular expression, it's a shell pattern or
glob pattern. They are different, and used in different contexts. Both
are immensely useful.


Cheers,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100728172239.ga20...@rimmer.esmertec.com



Re: Re: Debian virus/spy-ware detection and detection technique.

2010-07-21 Thread Clive Standbridge
> 1. I do not know how to get image from a cd/dvd - I believe by simple
> dd-ing it will not work w/ checksum, but some more options should be
> used.

You might want to read
http://www.troubleshooters.com/linux/coasterless.htm
- especially the section "Accurately Reading a CD Device".

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100721165736.ga6...@rimmer.esmertec.com



Re: Re: mashup "apt-cache search "

2010-06-29 Thread Clive Standbridge
> 3a)  I'd like to get an output list including all the packages from
> step 1 above,
> 3b)  Showing the package name, & its installed status (ii, un, etc)
> like from step 2.
> 
> Note:  One way might be to:
> 1) Do the apt-cache search 

Note that that searches the package descriptions. To search for
package names, add the -n option.

> 2) For each line
> 2a) Pull out the package name
> 2b) Write an apt-cache search for that name only to a temp file
> 3) Do the dpkg -l 's from the file

Temp file is unnecessary.

> 3b) & remove from the output all the dpkg heading info, leaving only
> the package status lines.


apt-cache search parted |awk '{print $1}'  |xargs dpkg -l  2>&1 | sed 
'1,/^+++/d'
un  parted(no 
description available)
No packages found matching libparted1.8-10.
No packages found matching gparted.
No packages found matching fatresize.
No packages found matching gnu-fdisk.
No packages found matching libparted1.8-dbg.
No packages found matching libparted1.8-dev.
No packages found matching libparted1.8-i18n.
No packages found matching parted-doc.
No packages found matching qtparted.

Note that dpkg is not aware of all the packages returned by apt-cache
search, and prints a message on standard error for each one. Hence the
use of 2>&1 above.


-- 
Cheers,
Clive



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100629141456.ga5...@rimmer.esmertec.com



Re: How to run an X program as a different user?

2010-05-18 Thread Clive Standbridge
> Essentially I want user A to run a specific X app as user B. So I
> think I need to write a tiny shell script like this:
> 
> #!/bin/sh
> xhost +B
> sudo -u B /path/to/app arg1 arg2 arg3
> xhost -B

Alternatively,

sux B /path/to/app arg1 arg2 arg3
Needs user B's password.
Requires package sux.

If you have sshd set up with X forwarding enabled, you could also do
ssh -X b...@localhost /path/to/app arg1 arg2 arg3
but this one feels like overkill.

-- 
Cheers,
Clive
(end of message)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100518192058.ga3...@rimmer.esmertec.com



Re: Re: Authentication unsuccessful relaying from Postfix to Microsoft ESMTP MAIL Service

2010-05-13 Thread Clive Standbridge
(I'm sending this from a different account after several previous
attempts to reply vanished).

> > The TLS part seems to be sorted now (see my reply to Sven). But
> the
> > authentication still fails.
>
> Then, put the "full" Postfix log again so we can check where (and
> why)
> it stops now :-)

Ahem, good point.

The attachments contain the lines written to /var/log/auth.log and
/var/log/mail.log when the attempt to mail via NEWSERVER:587 failed,
also my /etc/postfix/main.cf (without comments).


-- 
Cheers,
Clive
/var/log/auth.log:
May 10 12:59:35 rimmer postfix/smtp[13763]: NTLM client step 1
May 10 12:59:35 rimmer postfix/smtp[13763]: NTLM client step 2
May 10 12:59:35 rimmer postfix/smtp[13763]: server flags: ff810205
May 10 12:59:35 rimmer postfix/smtp[13763]: server domain: NEWSERVER-NTDOMAIN
May 10 12:59:35 rimmer postfix/smtp[13763]: calculating NT response
/var/log/mail.log:
May 10 12:59:35 rimmer postfix/pickup[13718]: 3BB483982: uid=1000 
from=
May 10 12:59:35 rimmer postfix/cleanup[13761]: 3BB483982: 
resent-message-id=<20100510115935.gf3...@my-mailname>
May 10 12:59:35 rimmer postfix/cleanup[13761]: 3BB483982: 
message-id=<20100509200545.ga3...@my-mailname>
May 10 12:59:35 rimmer postfix/qmgr[13719]: 3BB483982: from=, 
size=855, nrcpt=1 (queue active)
May 10 12:59:35 rimmer postfix/smtp[13763]: initializing the client-side TLS 
engine
May 10 12:59:35 rimmer postfix/tlsmgr[13764]: open smtp TLS cache 
btree:/var/lib/postfix/smtp_scache
May 10 12:59:35 rimmer postfix/tlsmgr[13764]: tlsmgr_cache_run_event: start TLS 
smtp session cache cleanup
May 10 12:59:35 rimmer postfix/smtp[13763]: setting up TLS connection to 
NEWSERVER[NEWSERVER-IPADDR]:587
May 10 12:59:35 rimmer postfix/smtp[13763]: NEWSERVER[NEWSERVER-IPADDR]:587: 
TLS cipher list "ALL:+RC4:@STRENGTH"
May 10 12:59:35 rimmer postfix/smtp[13763]: looking for session 
smtp:NEWSERVER-IPADDR:587:NEWSERVER-OTHERNAME&p=0&c=ALL:+RC4:@STRENGTH in smtp 
cache
May 10 12:59:35 rimmer postfix/tlsmgr[13764]: lookup smtp session 
id=smtp:NEWSERVER-IPADDR:587:NEWSERVER-OTHERNAME&p=0&c=ALL:+RC4:@STRENGTH
May 10 12:59:35 rimmer postfix/smtp[13763]: SSL_connect:before/connect 
initialization
May 10 12:59:35 rimmer postfix/smtp[13763]: SSL_connect:SSLv2/v3 write client 
hello A
May 10 12:59:35 rimmer postfix/smtp[13763]: SSL_connect:SSLv3 read server hello 
A
May 10 12:59:35 rimmer postfix/smtp[13763]: NEWSERVER[NEWSERVER-IPADDR]:587: 
certificate verification depth=3 verify=1 subject=/L=ValiCert Validation 
Network/O=ValiCert, Inc./OU=ValiCert Class 2 Policy Validation 
Authority/CN=http://www.valicert.com//emailaddress=i...@valicert.com
May 10 12:59:35 rimmer postfix/smtp[13763]: NEWSERVER[NEWSERVER-IPADDR]:587: 
certificate verification depth=2 verify=1 subject=/C=US/O=The Go Daddy Group, 
Inc./OU=Go Daddy Class 2 Certification Authority
May 10 12:59:35 rimmer postfix/smtp[13763]: NEWSERVER[NEWSERVER-IPADDR]:587: 
certificate verification depth=1 verify=1 
subject=/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, 
Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure 
Certification Authority/serialNumber=07969287
May 10 12:59:35 rimmer postfix/smtp[13763]: NEWSERVER[NEWSERVER-IPADDR]:587: 
certificate verification depth=0 verify=1 
subject=/O=*.NEWSERVER-DOMAIN/OU=Domain Control Validated/CN=*.NEWSERVER-DOMAIN
May 10 12:59:35 rimmer postfix/smtp[13763]: SSL_connect:SSLv3 read server 
certificate A
May 10 12:59:35 rimmer postfix/smtp[13763]: SSL_connect:SSLv3 read server done A
May 10 12:59:35 rimmer postfix/smtp[13763]: SSL_connect:SSLv3 write client key 
exchange A
May 10 12:59:35 rimmer postfix/smtp[13763]: SSL_connect:SSLv3 write change 
cipher spec A
May 10 12:59:35 rimmer postfix/smtp[13763]: SSL_connect:SSLv3 write finished A
May 10 12:59:35 rimmer postfix/smtp[13763]: SSL_connect:SSLv3 flush data
May 10 12:59:35 rimmer postfix/smtp[13763]: SSL_connect:SSLv3 read finished A
May 10 12:59:35 rimmer postfix/smtp[13763]: save session 
smtp:NEWSERVER-IPADDR:587:NEWSERVER-OTHERNAME&p=0&c=ALL:+RC4:@STRENGTH to smtp 
cache
May 10 12:59:35 rimmer postfix/tlsmgr[13764]: put smtp session 
id=smtp:NEWSERVER-IPADDR:587:NEWSERVER-OTHERNAME&p=0&c=ALL:+RC4:@STRENGTH [data 
1378 bytes]
May 10 12:59:35 rimmer postfix/tlsmgr[13764]: write smtp TLS cache entry 
smtp:NEWSERVER-IPADDR:587:NEWSERVER-OTHERNAME&p=0&c=ALL:+RC4:@STRENGTH: 
time=1273492775 [data 1378 bytes]
May 10 12:59:35 rimmer postfix/smtp[13763]: Trusted TLS connection established 
to NEWSERVER[NEWSERVER-IPADDR]:587: TLSv1 with cipher RC4-MD5 (128/128 bits)
May 10 12:59:40 rimmer postfix/smtp[13763]: 3BB483982: to=, 
relay=NEWSERVER[NEWSERVER-IPADDR]:587, delay=5.5, delays=0.02/0.03/5.4/0, 
dsn=4.7.3, status=deferred (SASL authentication failed; server 
NEWSERVER[NEWSERVER-IPADDR] said: 535 5.7.3 Authentication unsuccessful)
/etc/postfix/main.cf:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = /usr/share/doc/postfix
smtpd_tls_cer

Re: Re: Authentication unsuccessful relaying from Postfix to Microsoft ESMTP MAIL Service

2010-05-09 Thread Clive Standbridge
> I don't have a solution, just one possibly helpful bit of advice: swaks
> is the tool for troubleshooting this sort of thing.  You have gotten
> lots of useful information from Postfix and telnet, but I'd try using
> swaks to communicate with the server with and without TLS, and you'll
> see, for any combination of connection and authentication options
> that you try, what works and what errors are received on failure.

Hi Celejar,

Thanks for that advice. I will take a look at swaks.
I have run out of weekend now, so it may take a day or two.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100509231514.ga13...@rimmer.esmertec.com



Re: Re: Authentication unsuccessful relaying from Postfix to MicrosoftESMTP MAIL Service

2010-05-09 Thread Clive Standbridge
Hi Camaleón,


> O.k. Then you need to setup Postfix SSL/TLS acting as client, not
> server. 

Oh that's what I thought I did. I only changed smtp_* settings, not
smtpd_* settings.


> > So my questions are:
> >  * How can I fix this in Postfix?
> 
> Let's see the logs...

I already posted excerpts from /var/log/auth.log and /var/log/mail.log
I'm not sure which other logs are relevant. 


> >  * Can Postfix do this? Or do I need to change to something else
> >  * e.g.
> >  Exim? 
> 
> Yes, you can setup Postfix for this.

That's good, thanks.


> > * What does IceDove do that Postfix doesn't?
> 
> Logs will tell.

Again, not sure which logs. 


> The doc you have to follow stands here:
> 
> http://www.postfix.org/SASL_README.html#client_sasl

Thanks. In fact I've used those settings, and for my old server, they work.


> > /var/log/mail.log:
> 
> (...)
> 
> > May  9 16:30:01 rimmer postfix/smtp[10643]: certificate verification failed 
> > for NEWSERVER[NEWSERVER-IPADDR]:587: untrusted issuer /L=ValiCert 
> > Validation Network/O=ValiCert, Inc./OU=ValiCert Class 2 Policy Validation 
> > Authority/CN=http://www.valicert.com//emailaddress=i...@valicert.com
> 
> Server replies that does not trust the issuer of that CA.
> 
> (...)
> 
> > May  9 16:30:01 rimmer postfix/smtp[10643]: Untrusted TLS connection 
> > established to NEWSERVER[NEWSERVER-IPADDR]:587: TLSv1 with cipher RC4-MD5 
> > (128/128 bits)
> 
> I guess your are having problems with the certificate itself. It
> cannot 
> be verified by the remote server.

The TLS part seems to be sorted now (see my reply to Sven).
But the authentication still fails.


Thanks for your help,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100509231134.ga13...@rimmer.esmertec.com



Re: Re: Authentication unsuccessful relaying from Postfix to Microsoft ESMTP MAIL Service

2010-05-09 Thread Clive Standbridge
> The problem with postfix is that it runs chrooted and the CA
> certificates are not copied into the chroot.  See #287795¹.
> 
> Sven
> 
> ¹ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=287795

Hi Sven,

Thanks for that suggestion. I had seen that bug and discounted it
because the patch is only effective if smtp_tls_CApath is set, and
mine wasn't set. But your mail prompted another look, and with both
smtp_tls_CApath = /etc/ssl/certs and applying the patch from #287795,
it banished the "certificate verification failed" and changed
"Untrusted TLS connection established" to "Trusted TLS connection
established".

So that's progress :-)

Unfortunately it's still failing to authenticate. From mail.log:
May  9 21:49:18 rimmer postfix/smtp[8121]: 5DE243A66: to=, 
relay=NEWSERVER[NEWSERVER-IPADDR]:587, delay=5.5, delays=0.02/0.03/5.4/0, 
dsn=4.7.3, status=deferred (SASL authentication failed; server 
NEWSERVER[NEWSERVER-IPADDR] said: 535 5.7.3 Authentication unsuccessful)

Thanks,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100509223356.ga13...@rimmer.esmertec.com



Authentication unsuccessful relaying from Postfix to Microsoft ESMTP MAIL Service

2010-05-09 Thread Clive Standbridge
Hi,

I'm trying in vain to relay external mail from postfix on a Debian
lenny machine to a Microsoft SMTP server on the Internet.  I've been
reading and searching for days. I've tried numerous combinations of
settings although I'm note certain what they all do and am
experiencing information overload.

I am trying to migrate from one MS server to another.
OLDSERVER runs on port 25.
NEWSERVER runs on port 587. Supposedly it requires TLS but I'm not
certain of that (more later).

My existing, working, setup has postfix set up for "Internet with smarthost"
and the login credentials for OLDSERVER are in /etc/postfix/sasl_passwd.
I send mail from mutt to "/usr/sbin/sendmail -oem -oi" and it is duly 
relayed by postfix.

When I change relayhost to NEWSERVER:587, the mail gets stuck in postfix.
In /var/log/mail.log I see "Authentication unsuccessful".

On the same machine I set up an account in IceDove to use NEWSERVER:587
for SMTP and it just works.  
What's more, it works when "Secure Connection" is set to any of
"None", "TLS", "Use TLS if available". (That's why I cast doubt on the
TLS requirement above).

So my questions are:
 * How can I fix this in Postfix?
 * Can Postfix do this? Or do I need to change to something else e.g. Exim?
 * What does IceDove do that Postfix doesn't?

The rest of this mail contains more detail.

I've tried with:
 * smtp_sasl_security_options set to noanonymous and empty
 * smtp_tls_security_level set to "may", "none", "encrypt" and not set.
 * relayhost set to NEWSERVER:587 and [NEWSERVER]:587 in main.cf and 
   sasl_passwd (kept them in step and updated sasl_passwd.db each time)


(Sanitised) server information using ehlo command in telnet:

$ telnet NEWSERVER 587
Trying NEWSERVER-IPADDR...
Connected to NEWSERVER.
Escape character is '^]'.
220 NEWSERVER-OTHERNAME Microsoft ESMTP MAIL Service ready at Fri, 7 May 2010 
14:43:28 +0100
ehlo
250-NEWSERVER-OTHERNAME Hello [MY-IPADDR]
250-SIZE 1536
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250 CHUNKING

$ telnet OLDSERVER 25
Trying OLDSERVER-IPADDR...
Connected to OLDSERVER.
Escape character is '^]'.
220 OLDSERVER-OTHERNAME Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 
ready at  Fri, 7 May 2010 15:44:25 +0200 
ehlo
250-OLDSERVER-OTHERNAME Hello [MY-IPADDR]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK

Here are some sanitised logs from when the problem occurs. These were 
collected with the following settings:
relayhost = NEWSERVER:587
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
(although it's the same for all the settings I tried, except there were
no SSL/TLS logs when smtp_tls_security_level = none).


/var/log/auth.log:
May  9 16:30:01 rimmer postfix/smtp[10643]: NTLM client step 1
May  9 16:30:01 rimmer postfix/smtp[10643]: NTLM client step 2
May  9 16:30:01 rimmer postfix/smtp[10643]: server flags: ff810205
May  9 16:30:01 rimmer postfix/smtp[10643]: server domain: NEWSERVER-NTDOMAIN
May  9 16:30:01 rimmer postfix/smtp[10643]: calculating NT response

/var/log/mail.log:
May  9 16:30:01 rimmer postfix/pickup[10629]: 57BC739B7: uid=1000 
from=
May  9 16:30:01 rimmer postfix/cleanup[10641]: 57BC739B7: 
resent-message-id=<20100509153001.gf3...@my-mailname>
May  9 16:30:01 rimmer postfix/cleanup[10641]: 57BC739B7: 
message-id=<20100509141642.gb3...@my-mailname>
May  9 16:30:01 rimmer postfix/qmgr[10630]: 57BC739B7: from=, 
size=863, nrcpt=1 (queue active)
May  9 16:30:01 rimmer postfix/smtp[10643]: initializing the client-side TLS 
engine
May  9 16:30:01 rimmer postfix/tlsmgr[10644]: open smtp TLS cache 
btree:/var/lib/postfix/smtp_scache
May  9 16:30:01 rimmer postfix/tlsmgr[10644]: tlsmgr_cache_run_event: start TLS 
smtp session cache cleanup
May  9 16:30:01 rimmer postfix/smtp[10643]: setting up TLS connection to 
NEWSERVER[NEWSERVER-IPADDR]:587
May  9 16:30:01 rimmer postfix/smtp[10643]: NEWSERVER[NEWSERVER-IPADDR]:587: 
TLS cipher list "ALL:+RC4:@STRENGTH"
May  9 16:30:01 rimmer postfix/smtp[10643]: looking for session 
smtp:NEWSERVER-IPADDR:587:NEWSERVER-OTHERNAME&p=0&c=ALL:+RC4:@STRENGTH in smtp 
cache
May  9 16:30:01 rimmer postfix/tlsmgr[10644]: lookup smtp session 
id=smtp:NEWSERVER-IPADDR:587:NEWSERVER-OTHERNAME&p=0&c=ALL:+RC4:@STRENGTH
May  9 16:30:01 rimmer postfix/smtp[10643]: SSL_connect:before/connect 
initialization
May  9 16:30:01 rimmer postfix/smtp[10643]: SSL_connect:SSLv2/v3 write client 
hello A
May  9 16:30:01 rimmer postfix/smtp[10643]: SSL_connect:SSLv3 read server hello 
A
May  9 16:30:01 rimmer postfix/smtp[10643]: NEWSERVER[NEWSERVER-IPADDR]:587: 
certificate verification depth=2 verify=0 subject=/C=US/O=The Go Daddy Group, 
Inc./OU=Go Daddy Class 2 Certification Authority
May  9 16:30:01 rimmer postfix/sm

Re: Re: Updating JRE in Lenny

2010-04-14 Thread Clive Standbridge
> >
> > After reloading Iceweasel, about:plugins still showed the previous JRE I
> > was using, /usr/lib/jvm/java-6-openjdk/jre/bin/java.
> >
> > Assuming that I can use a later version of JRE downloaded from Sun on
> > Iceweasel 3.5, am I on the right track but did not get the newer version
> > set up correctly, or is there a different way?
> 
> The browser plugin uses a different alternative, namely
> libjavaplugin_oji.so. You will find the target of the alternative in the
> directory /usr/lib/jvm/1.6.0_19/plugin/i386/ns7/

The update-java-alternatives command should sort this out.
This will show you the available alternatives:
 /usr/sbin/update-java-alternatives --list

Then as root run something like
update-java-alternatives -s java-6-sun

Note there's a load of java-related items which that command sets. To
see the list, run 
/usr/sbin/update-java-alternatives --verbose --list




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100414114742.ga9...@rimmer.esmertec.com



Re: Re: handling removable media without gnome-volume-manager

2010-03-29 Thread Clive Standbridge
> >  - Load kernel modules:
> > sudo modprobe usb-storage
> > sudo modprobe sd_mod
> >(and add them to /etc/modules) 
> 
> Do you still need to add them to /etc/modules if  you are using udev?

I'm not certain, but I believe usbmount has always needed udev, and at
some point it seems to have been necessary to load those modules
explicitly.


-- 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100329094717.ga8...@rimmer.esmertec.com



Re: handling removable media without gnome-volume-manager

2010-03-27 Thread Clive Standbridge
> Hi all,
> 
> ivman ?
> automount ?
> 
> I'd like something where I can encode the behavior for particular
> devices, i.e. as I'm using the same devices over and over I'd like a
> way to make sure that the same device gets mapped to the same thing.
> 
> Not needing X to be up and running is nice too.
> 
> teh google reveals the above choices.
> 
> I don't think that automount is quite right, seems like it will work,
> but wasn't really designed for the task.
> 
> ivman is several years old, and I'm wondering if it's been superseded
> by something else.
> 
> 
> Thanks,
> 
> Brian

Hi Brian,

usbmount does this (apart from different behaviour for different
devices).

To set up:
 - Install the usbmount package.
 - Modify/add lines in /etc/usbmount/usbmount.conf:
FILESYSTEMS="ext2 ext3 vfat"
MOUNTOPTIONS="sync,noexec,nodev,noatime"
FS_MOUNTOPTIONS="-fstype=vfat,flush,gid=plugdev,dmask=0002,fmask=0113"
 - Add user(s) to plugdev group.
 - Load kernel modules:
sudo modprobe usb-storage
sudo modprobe sd_mod
   (and add them to /etc/modules) 

When you plug in a device it will appear as /media/usb (linked to
mount point /media/usb0). A second device would be mounted as
/media/usb1 etc.

To unmount, I run sync then pull the device. I think the sync command
is probably unnecessary given the flush mount option, but I do it
anyway out of caution.

There's no GUI, which I count as an advantage.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100327124145.ga5...@rimmer.esmertec.com



Re: Re: Transferring files over SSH in the console

2010-03-22 Thread Clive Standbridge
> I can have as many open connections as I want, it's on the LAN. But I
> would _prefer_ just one terminal window for both commands (SSH) and
> file transfers.


You might like to try this.

1) Add to ~/.ssh/config
ControlMaster auto
ControlPath /tmp/%h%p%r
(man ssh_config for explanation).

2) Fire up sftp
sftp u...@machine:/path

3) Within sftp, login to a shell on the remote system
!ssh u...@machine
Exit the shell to return to the sftp prompt.

4) Use sftp's history to recall the ssh command as desired.

Note that by using the control socket, the shell login uses the same
connection as sftp. Consequently you don't have to enter the password
again.

Allow me to make a plug for the lftp package which I find more
friendly and flexible than sftp (filename completion, get/put multiple
files, and much more). 
At (2) enter
lftp sftp://u...@machine/path
then carry on as before.

I hope this helps.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100322094946.ga7...@rimmer.esmertec.com



Re: ehci_hcd has to be manually reloaded for USB 2.0 printer

2010-02-18 Thread Clive Standbridge
> Well I finally made the upgrade to Lenny, and my USB printers only
> work when the ehci_hcd module is loaded after the printer is on. If I
> set it to load a boot and the printer's off, I have to "rmmod
> ehci_hcd; modprobe ehci_hcd" once the printer is on again before it
> will work.
> 
> Before the upgrade to Lenny, everything was going fine. I have an HP
> LaserJet 4MPlus connected with a parallel-to-USB cable. CUPS is
> fine. But if ehci_hcd isn't loaded (or if it's loaded before the
> printer is one), when I send a print job it's always just "processing"
> forever, and nothing is actually sent to the printer until that module
> gets reloaded.
> 
> Is there a way to make it automagically reload when a USB printer goes
> on?

Hi Jen,

In my /etc/modules I have the following comment and module:

# Allow USB printer to be powered up after boot.
usblp

I'm afraid I don't know how or where I found that out. I think it's
been there since pre-lenny.

Also I don't know whether the order of modules in /etc/modules is
significant; you might want to experiment with that.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100218200337.ga15...@rimmer.esmertec.com



Re: Re: General method for copying a partition

2010-02-17 Thread Clive Standbridge
> rsync -a /media/ /mnt/

This is good. Note that the trailing / on /media/ is significant.

> OR
> find /media -exec cp -a {} /mnt \;

No, that is both wrong and very inefficient:-

Wrong
-
Try this:
 mkdir /tmp/media /tmp/mnt
 mkdir -p /tmp/media/a/b/c
 touch /tmp/media/a/aa /tmp/media/a/b/bb /tmp/media/a/b/c/cc
 find /tmp/media -exec cp -a {} /tmp/mnt \;
 find /tmp/media /tmp/mnt
/tmp/media
/tmp/media/a
/tmp/media/a/b
/tmp/media/a/b/c
/tmp/media/a/b/c/cc
/tmp/media/a/b/bb
/tmp/media/a/aa
/tmp/mnt
/tmp/mnt/a
/tmp/mnt/a/b
/tmp/mnt/a/b/c
/tmp/mnt/a/b/c/cc
/tmp/mnt/a/b/bb
/tmp/mnt/a/aa
/tmp/mnt/b
/tmp/mnt/b/c
/tmp/mnt/b/c/cc
/tmp/mnt/b/bb
/tmp/mnt/c
/tmp/mnt/c/cc
/tmp/mnt/aa
/tmp/mnt/bb
/tmp/mnt/cc
/tmp/mnt/media
/tmp/mnt/media/a
/tmp/mnt/media/a/b
/tmp/mnt/media/a/b/c
/tmp/mnt/media/a/b/c/cc
/tmp/mnt/media/a/b/bb
/tmp/mnt/media/a/aa


Inefficient
---
That will execute a separate cp process for every file and directory
under /media, which could have a big impact if there are many files.

Consider using
  find  | xargs 
or
  find  -exec http://lists.debian.org/20100217193303.ga11...@rimmer.esmertec.com



Re: Where is Bash Prompt Set??

2010-02-09 Thread Clive Standbridge
> Hi, I'm new to debian, but not to linux. (experimenting with lenny...)
> 
> This is the question I asked myself while seeing various prompts after
> I thought I had customised them. Near as I can tell, there are three
> different scripts which fiddle with the default bash prompt: 
> 
>   /etc/profile
>   /etc/bashrc

I think that should be /etc/bash.bashrc

>   ~/.bashrc

Other files which may be sourced include ~/.bash_profile,
~/.bash_login, ~/.profile, and whatever $BASH_ENV or $ENV contains.

The INVOCATION section of the bash man page explains all.


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Re: debian-user-digest Digest V2010 #199

2010-02-03 Thread Clive Standbridge
> > Stick to stable in future, that's what.
> 
> I don't think that's very helpful.  I would have stuck with stable
> but had hardware issues which forced me to use unstable.  They were
> kernel related, so maybe I could install stable, upgrade a newer
> kernel, etc...  

It should be feasible to install stable, plus a newer kernel from
backports.org (I have used that approach successfully with an earlier
release).


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Re: Sorting elements *and* knowing where each one has been put

2010-01-30 Thread Clive Standbridge
> > However, I do not know how I can do this with the `sort'
> > function. Is
> > it even possible? (I considered 1<=i<=n through the whole message.)
> 
> nl values | sort -k2 | nl | grep value_i

If you want to sort by numeric order instead of alphabetic order,
you should replace
sort -k2
with
sort -k2n


PS I learnt a new command today: "nl" which is shorter than "cat -n" :-)


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Re: string occurrences

2010-01-26 Thread Clive Standbridge
Eric Gerlach wrote:
> On Sat, Jan 23, 2010 at 04:11:03PM -0600, Brian Ryans wrote:
> > Quoting roberto on 2010-01-23 15:33:53:
> > > is there any linux built-in utilities to count how many times a
> > string
> > > occur in a text file ?
> > 
> > I don't know of any actual utilities to do so, but there's a handy
> > little pipeline that I use as a generic string-counter that, so far,
> > works for all files I've tried, printable or not.
> > 
> > $ strings $yourFile | grep -oe '$yourString' | wc -l
> 
> It's a bit nitpicky, but you could save a step and a few keystrokes
> with: 
> 
> $ strings $yourFile | grep -oce '$yourString'

I thought so too, but trying it out proved otherwise, and taught me a
couple of points:

"grep -o" outputs each matching string on a separate line, so if there
are two matches on a line, there will be two lines in the output.

"grep -c" counts the number of lines which match.

"grep -oc" behaves the same as "grep -c". In effect the -o is
cancelled out by the -c.

Brian seems to have thought of everything.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Re: Decode unixtime

2010-01-19 Thread Clive Standbridge
> Using Lenny? -- the '-I' will be gone soon. It is not even in Squeeze's 
> man page now.

Yes lenny, it's disappeared from the man page already, and in fact
it's not in etch's man page either.

I wasn't aware of this bug but it has been reported 4 years ago!
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=354799


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Re: Decode unixtime

2010-01-16 Thread Clive Standbridge
> > I suggest that you change the way you get the numbers so that they
> > are
> > both human readable and parsable by simple code. I like date
> > +%Y%m%d_%H%M%S
> 
> +%F_%T is what I use when spaces aren't desirable in dates. See my
> quoting line for a slightly modified example of it. From my
> experience,
> it's equally able to be parsed by software, and (IMO) easier to parse
> by
> wetware.

How about
date -I
date -Iseconds

Sortable, readable, parseable and standard to boot.

> [#include usDateFormatRant.txt]

Hear hear.



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Re: dependency hell + I want to keep deb installation files local ...

2010-01-12 Thread Clive Standbridge
> I prefer "dselect update"
> over "apt-get update" or "aptitude update" because it downloads
> package
> descriptions for all available packages, not just installed packages.
> I can then use, for example,
> 
> dpkg-query -p xxx|less
> 
> where xxx is the name of any package, installed or not, and view its
> description.

apt-get/aptitude update do retrieve the package descriptions. You can
view them with e.g.
apt-cache show xxx

Cheers,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Re: How to use Sun Java instead of gcj

2010-01-07 Thread Clive Standbridge
> Lenny has a package of openjdk, which is practically Sun's Java (1.6) -
> openjdk-6-jdk

If you use the plugin through a web proxy you'll need to use
sun-java6-plugin because icedtea-gcjwebplugin doesn't respect browser
proxy settings.

Otherwise openjdk seems to work well.

Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Re: How to use Sun Java instead of gcj

2010-01-07 Thread Clive Standbridge
> How about trying to use update-alternatives to set java?

You might want to look at update-java-alternatives which controls
quite a long list of Java-related alternatives besides "java".

See for example 
update-java-alternatives -v -l

Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: How to fix ipaddress

2010-01-07 Thread Clive Standbridge
> I set /etc/network/interfaces as follows :
>  auto lo
>  iface lo inet loopback
>  allow-hotplug eth0
>  iface eth0 inet static
>address 192.168.0.7
>netmask 255.255.255.0
>network 192.168.0.0
>broadcaset 192.168.0.255
>gateway 192.168.0.1
>dns-nameservers 192.168.0.1
>dns-search kornet
> 
> 
> Sometimes ip address is set to 192.168.0.7.
> But somtimes ip address is set to 169.254.171.33
> which is not set by me, and I don't konw why that address
> is set to my ip address.
> I want to set my ipaddress 192.168.0.7 always.


Try changing
 allow-hotplug eth0
to
 auto eth0

That seems more reliable (subjectively).

Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: 'sux -c program username' does not work.

2010-01-04 Thread Clive Standbridge
Hi Stu,

> $ sux -c kate edit
> Unknown id: eval $TERM;  exec env  TERM='xterm' DISPLAY=':0'
> "kate" "edit";
> 
> $ sux -m -c kate edit
> getent: invalid option -- c
> Try `getent --help' or `getent --usage' for more information.
> WARNING: --preserve-environment has been set, but no good value was
> found for XAUTHORITY, expect trouble
> Unknown id: eval $TERM;  exec env  TERM='xterm' DISPLAY=':0'
> "kate" "edit";
> 
> $ sux --help
> Usage: su [options] [LOGIN]

It looks like --help is passed through to su. Try
$ sux '-?'
usage: sux [-m|-p|--preserve-environment]
   [--display display]
   [--no-cookies|--copy-cookies|--use-xauthority]
   [--untrusted] [--timeout x]
   [-] [username [command]]

So you would need 
$ sux root kate


As an alternative, set up sudo and run
$ sudo kate

Or for the specific case of running an editor, use sudoedit with your
chosen editor in the EDITOR environment variable e.g.
export EDITOR=kate
$ sudoedit filename


I hope this helps.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: 'sux -c program username' does not work.

2010-01-04 Thread Clive Standbridge
On Mon  4 Jan 2010 11:55:02 +(+), Clive Standbridge wrote:
> Hi Stu,

Sorry I misspelled Sthu.



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Iceweasel and `new tab'

2009-12-18 Thread Clive Standbridge
> The major problem is that I want all
> these URLs to be opened simultaneously, and not Iceweasel to be closed
> to be able to launch a new tab according to my command!
> 
> Any idea?

The following will open a new tab in a running iceweasel or open a new
instance as necessary:

if firefox -remote "ping()" >/dev/null 2>&1
then
firefox -remote "openURL($1,new-tab)"
else
firefox "$1" &
fi

Use iceweasel instead of firefox if you prefer.

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Re: Iceweasel annoyance

2009-11-23 Thread Clive Standbridge
Michelle Konzack wrote:
> 
> I am using a script to run mutt:
> 
> [ '~/bin/mutt_firefox' ]
> #!/bin/sh
> 
> xterm -geometry 80x45+400+100 -u8 -e mutt -e "set editor=mcedit" $1
> 
> 
> Which generaly works, IF the "mailto:";; link does not use something
> like
> 
> ?subject=something
> 
> attached.

I suspect that's because your $1 is not quoted. For good measure I'm
using 
  -- "$@"
where you have
  $1


>  Also it opens every time a new tab which is not more
> closed.
> 
> Question:  How can I prevnt Firefox openening every time I click
>on a "mailto:";; link an empty TAB or WINDOW?

I don't know about that. For what it's worth it doesn't happen here
(Iceweasel 3.0.6/Debian 5.0 Lenny). It's not obvious which config item
might affect that.


Regards,
Clive



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: how to set up iceweasel 3.5 to use mutt as mailer for "link sendto"

2009-09-04 Thread Clive Standbridge
> I've tried settings -> apps -> mailto -> shellscript
> 
> Shellscript:
> 
> #!/bin/sh
> exec xterm -e mutt "$@"
> 
> The xterm only pops up for 1 second.

That's very close to the script that is working for me (using
Iceweasel 3.0.6 on Lenny):

#!/bin/sh

prefixWords=

if [ -t 0 -a -t 1 ]
then
prefixWords=
else
prefixWords="xterm -e"
fi

set -x
$prefixWords mutt -- "$@"


I don't think your "exec" should cause a problem, but it may be worth
trying without it.

You may need the -- in case any of the arguments begins with '-'. 
I can't think off-hand if that is likely.

By the way, the "if" tests whether you're running from a terminal
already, and opens mutt there if you are. Otherwise it fires up an
xterm.


You might get some more information by temporarily changing your xterm
line to

exec xterm -e bash -c "set -x; mutt $*; read -p 'Press enter to exit '"


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Re: FireFox and UK spell checker

2009-09-02 Thread Clive Standbridge
> Clive may have meant the value for your locale.

My mistake for over-trimming in my previous reply. 

In fact I was referring to the spellchecker.dictionary setting in
about:config; mine is en_GB

But it's moot. As reported in another sub-thread, kj's solution was to
install the English language pack.

Cheers,
Clive

-- 
PS corruption of the signature separator, and addition of legalese
blurb are beyond my control.




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



  1   2   >