Re: curl and form submission

2016-06-09 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Jun 09, 2016 at 05:34:25AM +, Bob wrote:
> 
> On Wednesday 08 June 2016 05:01 PM, Jeremy Nicoll wrote:
> >On Wed, 8 Jun 2016, at 17:16, Bob wrote:

[...]

> Thanks for your explanation. I did "curl -c" but no luck as it
> doesn't have any cookie.
> 
> curl -c mycookie " 
> http:///login1.html?a=%3F%2B%2F%40&b=%3F%2B%2F%40
> "
> 
> # ls mycookie
> ls: cannot access 'mycookie': No such file or directory
> 
> whereas I can see during curl operation
> 
> []
> 
> 
> 
> 
> 
> 
> 
> 
> [/...]

The form leads explicitly to a POST request. This is one where
the data is sent in the HTTP body (and not as query parameters
in the URL, as your curl command above is trying).

Some web frameworks accept (equivalently) both variants, some
not.

Try sending as a POST request:

  curl -X POST -c mycookie \
   -d username= -d password= \
   http:///login

(replacing, of course , ,  by more interesting
values. I've broken up the long line with backslashes, don't type
in those).

For more on the -d option and its cousins, look them up in the
curl man page under --data, --data-ascii, --data-binary and
friends.

Is anything in the cookiejar yet?

regards
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAldZFx8ACgkQBcgs9XrR2kZuTQCfY/gdtNzYZwKBw8P2BBqLRqaG
K4IAn35AMRryXkB+h/tNU+QLxFsjIN9j
=8a03
-END PGP SIGNATURE-



Emacs 23?

2016-06-09 Thread John Conover

Can Debian Wheezy 7.x Emacs 23 be installed in Debian Jessie 8.x?

Anyone tried this?

Thanks,

John

-- 

John Conover, cono...@rahul.net, http://www.johncon.com/



Re: Unexpected \Gamma's in tex

2016-06-09 Thread deloptes
EenyMeenyMinyMoa wrote:

> I compiled this tex source by
> $ platex 3.tex
> But unexpected \Gamma's as the attached file appeared.
> Why?
> 

what is platex?

$ apt-cache search platex
ptex-base - basic ASCII pTeX library files
texlive-lang-japanese - TeX Live: Japanese


pdflatex does it right ... or at least it is properly configured here. I
don't have platex to comment ... never heard of it



regards





Re: curl and form submission

2016-06-09 Thread Bob



On Thursday 09 June 2016 07:13 AM, to...@tuxteam.de wrote:

[...]


Thanks for your explanation. I did "curl -c" but no luck as it
doesn't have any cookie.

curl -c mycookie " 
http:///login1.html?a=%3F%2B%2F%40&b=%3F%2B%2F%40
"

# ls mycookie
ls: cannot access 'mycookie': No such file or directory

whereas I can see during curl operation

[]








[/...]

The form leads explicitly to a POST request. This is one where
the data is sent in the HTTP body (and not as query parameters
in the URL, as your curl command above is trying).

Some web frameworks accept (equivalently) both variants, some
not.

Try sending as a POST request:

   curl -X POST -c mycookie \
-d username= -d password= \
http:///login

(replacing, of course , ,  by more interesting
values. I've broken up the long line with backslashes, don't type
in those).

For more on the -d option and its cousins, look them up in the
curl man page under --data, --data-ascii, --data-binary and
friends.

Is anything in the cookiejar yet?

Issue is, this direct link  (which is a redirect link from actual form 
page) doesn't create any cookie jar



curl -c mycookie " 
http:///login1.html?a=%3F%2B%2F%40&b=%3F%2B%2F%40 
"


though same is running well on browser and logging in immediately.

--trace-ascii investigation shows as below


: GET /login1.html?a=%3F%2B%2F%40&b=%3F%2B%2F%4
0040: 0 HTTP/1.1
004c: Host: 
005b: User-Agent: curl/7.47.0
0074: Accept: */*
...
..
0300: /head>..http://1.1.1.1/login";>.<

Don't know why cookie is not coming with this link.



Re: curl and form submission

2016-06-09 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Jun 09, 2016 at 07:49:28AM +, Bob wrote:
> 
> 
> On Thursday 09 June 2016 07:13 AM, to...@tuxteam.de wrote:
> >[...]
> >
> >>Thanks for your explanation. I did "curl -c" but no luck as it
> >>doesn't have any cookie.
> >>
> >>curl -c mycookie " 
> >>http:///login1.html?a=%3F%2B%2F%40&b=%3F%2B%2F%40
> >>"
> >>
> >># ls mycookie
> >>ls: cannot access 'mycookie': No such file or directory
> >>
> >>whereas I can see during curl operation
> >>
> >>[]
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>[/...]
> >The form leads explicitly to a POST request. This is one where
> >the data is sent in the HTTP body (and not as query parameters
> >in the URL, as your curl command above is trying).
> >
> >Some web frameworks accept (equivalently) both variants, some
> >not.
> >
> >Try sending as a POST request:
> >
> >   curl -X POST -c mycookie \
> >-d username= -d password= \
> >http:///login
> >
> >(replacing, of course , ,  by more interesting
> >values. I've broken up the long line with backslashes, don't type
> >in those).
> >
> >For more on the -d option and its cousins, look them up in the
> >curl man page under --data, --data-ascii, --data-binary and
> >friends.
> >
> >Is anything in the cookiejar yet?
> >
> Issue is, this direct link  (which is a redirect link from actual
> form page) doesn't create any cookie jar
> 
> 
> curl -c mycookie " 
> http:///login1.html?a=%3F%2B%2F%40&b=%3F%2B%2F%40
> "
> 
> though same is running well on browser and logging in immediately.
> 
> --trace-ascii investigation shows as below
> 
> 
> : GET /login1.html?a=%3F%2B%2F%40&b=%3F%2B%2F%4
> 0040: 0 HTTP/1.1
> 004c: Host: 
> 005b: User-Agent: curl/7.47.0
> 0074: Accept: */*
> ...
> ..
> 0300: /head>.. 0340:  action="http://1.1.1.1/login";>.<

Ouch.

This is, as far as I can see, a "javascript redirect". It reflects on
the sad state of our so-called "industry".

As far as I can see, the browser "bounces" the request to
http://1.1.1.1/login with the same fields. So try to direct your
curl request at this (new?) URI. You don't see the browser doing
that (so it seems there's one more back-and-forth)

Of course, the browser is sending more/different stuff in the header,
like the referer, some string for the user agent, etc. The server
might be acting on some of that information.

That's why I suggested spying on what the browser does and trying
to work from there. It's easier to cut off superfluous stuff from
a "known good" case than to try adding stuff blindly.

Get acquainted either with Wireshark (only if your connection isn't
HTTPS! [1]) or with Firebug. It's both free software.


[1] It's possible to spy on an HTTPS connection with Wireshark. But
   for that, you'd have to learn how to get your browser to cough
   up the session key and to insert that in Wireshark. That raises
   the (already pretty high) bar quite a bit.

regards
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAldZJGoACgkQBcgs9XrR2kZTwACfd28LnYp7qyqAJonUntc+8P/M
XaYAnRrsPSSqV9vJgHjbMf2wqtKr0zxN
=ckK0
-END PGP SIGNATURE-



Re: libreCAD, can't find help docs

2016-06-09 Thread Jörg-Volker Peetz
Yeah, you got a lot of stuff here ;-)

The repositories all got the same priority 500 besides the wheezy-backports i386
target release which is set to priority 100. These priorities are normally set
in /etc/apt/preferences. What is the contents of this file on your system?

The easiest to try for your specific request is to list also the dependencies
explicitly in the apt-get command:

   apt-get -s -t wheezy-backports install freecad freecad-doc qt4-dev-tools
libsoqt4-20 python-pivy

(This has the disadvantage that the information which packages are automatically
installed is lost. Therefor, after successfully installing freecad inform the
system about what are just dependency packages with

  apt-mark auto qt4-dev-tools libsoqt4-20 python-pivy
)

If the installation doesn't work, have a look at
ttps://backports.debian.org/Instructions/ . There it says:

"
To allow some newer packages for those systems we create so called sloppy
distributions. For oldstable (wheezy) packages from the current testing
(stretch) are allowed to be uploaded to wheezy-backports-sloppy.

You can use it exactly as the current backports distribution, just add another
line to your sources.list and install new packages via apt-get -t
wheezy-backports-sloppy install or apt-get -t jessie-backports install.
"

By the way, a nice tool is apt-show-versions to see from which release
(distribution) a package on your system is installed from.
It could help to trim /etc/apt/sources.list.

Regards,
jvp.


Gene Heskett wrote on 06/08/16 15:44:
> On Wednesday 08 June 2016 02:41:02 Jörg-Volker Peetz wrote:
> 
>> Maybe, the priority of the package repositories for , e.g., package
>> "libsoqt4-20" is wrong.
>>
>> Let's see what's the outcome of
>>
>>   apt-cache policy
> 
> Rather lengthy, wordwrap off:
> 
> root@coyote:/home/gene# apt-cache policy
> Package files:
>  100 /var/lib/dpkg/status
>  release a=now
>  500 http://linuxcnc.org/ wheezy/2.6 i386 Packages
>  release o=Chris Radek ,a=linuxcnc,n=wheezy,l=LinuxCNC 
> and supporting files for Debian,c=2.6
>  origin linuxcnc.org





Re: Unattended-upgrades do not seem to be able to restart services

2016-06-09 Thread Wolfgang Karall
Hello,

On 16-06-08 22:11:33, Jesper Dybdal wrote:
> At the end of unattended-upgrades-dpkg.log, I see:
> 
> >Services to be restarted:
> >Skipping dbus.service...
> >systemctl restart apache2.service cron.service
> >Log ended: 2016-06-08  04:36:36
> 
> However, apache2 and cron have not been restarted
[..]

It's not unattended-upgrades, what you're seeing is the output of
needrestart, which is configured by default to only showing what it
would do, but not actually restarting anything.

Take a look at the configuration below /etc/needrestart.

Cheers
Wolfgang


signature.asc
Description: Digital signature


Re: Emacs 23?

2016-06-09 Thread Santiago Vila
On Thu, Jun 09, 2016 at 12:26:46AM -0700, John Conover wrote:

> Can Debian Wheezy 7.x Emacs 23 be installed in Debian Jessie 8.x?

Yes, it seems so.

> Anyone tried this?

Yes, just tried that on a jessie chroot using both wheezy and jessie
lines in sources.list and it worked.

However, be careful with sysvinit and apt if you don't want to install
sysvinit. sysvinit is essential in wheezy and apt mixes the essential
flag for all available distributions in sources.list:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=216768

[ I call this a misfeature, but apt authors disagree ].

Thanks.



Re: curl and form submission

2016-06-09 Thread Bob


On Thursday 09 June 2016 08:10 AM, to...@tuxteam.de wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Jun 09, 2016 at 07:49:28AM +, Bob wrote:


On Thursday 09 June 2016 07:13 AM, to...@tuxteam.de wrote:

[...]


Thanks for your explanation. I did "curl -c" but no luck as it
doesn't have any cookie.

curl -c mycookie " 
http:///login1.html?a=%3F%2B%2F%40&b=%3F%2B%2F%40
"

# ls mycookie
ls: cannot access 'mycookie': No such file or directory

whereas I can see during curl operation

[]








[/...]

The form leads explicitly to a POST request. This is one where
the data is sent in the HTTP body (and not as query parameters
in the URL, as your curl command above is trying).

Some web frameworks accept (equivalently) both variants, some
not.

Try sending as a POST request:

   curl -X POST -c mycookie \
-d username= -d password= \
http:///login

(replacing, of course , ,  by more interesting
values. I've broken up the long line with backslashes, don't type
in those).

For more on the -d option and its cousins, look them up in the
curl man page under --data, --data-ascii, --data-binary and
friends.

Is anything in the cookiejar yet?


Issue is, this direct link  (which is a redirect link from actual
form page) doesn't create any cookie jar


curl -c mycookie " 
http:///login1.html?a=%3F%2B%2F%40&b=%3F%2B%2F%40
"

though same is running well on browser and logging in immediately.

--trace-ascii investigation shows as below


: GET /login1.html?a=%3F%2B%2F%40&b=%3F%2B%2F%4
0040: 0 HTTP/1.1
004c: Host: 
005b: User-Agent: curl/7.47.0
0074: Accept: */*
...
..
0300: /head>..http://1.1.1.1/login";>.<

Ouch.

This is, as far as I can see, a "javascript redirect". It reflects on
the sad state of our so-called "industry".

As far as I can see, the browser "bounces" the request to
http://1.1.1.1/login with the same fields. So try to direct your
curl request at this (new?) URI. You don't see the browser doing
that (so it seems there's one more back-and-forth)

Of course, the browser is sending more/different stuff in the header,
like the referer, some string for the user agent, etc. The server
might be acting on some of that information.

That's why I suggested spying on what the browser does and trying
to work from there. It's easier to cut off superfluous stuff from
a "known good" case than to try adding stuff blindly.

Get acquainted either with Wireshark (only if your connection isn't
HTTPS! [1]) or with Firebug. It's both free software.


[1] It's possible to spy on an HTTPS connection with Wireshark. But
for that, you'd have to learn how to get your browser to cough
up the session key and to insert that in Wireshark. That raises
the (already pretty high) bar quite a bit.



Hello Tomas & Jeremy,

Finally I got the combination. The redirected links along with 
username/password is not providing any cookie jar. So I went back to the 
main page i.e. form page. I collected the cookie there, then fire the 
curl with post data.


curl -c mycookie -s "http:///login.jsp"

curl -X POST -c mycookie \
-d username= \
-d password=  \
 http:///login

thanks to all of you for your kind support



Re: curl and form submission

2016-06-09 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, Jun 09, 2016 at 10:14:53AM +, Bob wrote:

[...]

> Hello Tomas & Jeremy,
> 
> Finally I got the combination. The redirected links along with
> username/password is not providing any cookie jar. So I went back to
> the main page i.e. form page. I collected the cookie there, then
> fire the curl with post data.
> 
> curl -c mycookie -s "http:///login.jsp"
> 
> curl -X POST -c mycookie \
> -d username= \
> -d password=  \
>  http:///login
> 
> thanks to all of you for your kind support

Ah. A pre-emptive session cookie. Turtles all the way down :-)

regards
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAldZQvEACgkQBcgs9XrR2kZmUwCff1O/XAKtmMNMcPluldYsq0Zs
c+YAn1ZQGkQ1S09kWio9xy6jJWVVl1uI
=yP+h
-END PGP SIGNATURE-



Re: Touchpad, audio, and wifi not working

2016-06-09 Thread Sven Arvidsson
On Wed, 2016-06-08 at 19:30 -0500, Zachary Tretter wrote:
> I'm using an ASUS X555U laptop with an Intel Core i7-6500U CPU
> 
> I have no touchpad or audio support. I hear these can be fixed by
> installing a linux-image v4.X or greater. Though if I use
> linux-image-4.5.0-2-amd64 I get an infinite loop when booting,
> setting
> [...]

That hardware is so new, you need to use at least testing.

It's a Skylake system too, so extra important to use the latest
kernel/microcode/firmware etc.

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 6FAB5CD5



signature.asc
Description: This is a digitally signed message part


[Solved] Re: Delay at boot - network

2016-06-09 Thread Hans
Hi Brian,
as promised, I want to report my last experiences. The problem with the delay 
on both of my notebooks is solved.

Due to your help, I could figured out, that the process network-manager caused 
the delay. This happened, because the purge of the package was not completed, 
so that binary files and some config files stayed on the system. New 
installation 
and then deinstallation with purge did the trick.

A similar problem was with my EEEPC. In this case, the package ntpdate 
searched for an IP 192.168.178.1 (which is my fritzbox), and did not find it. 
Of course it cannot find it, because I am behind another router, with the IP 
range 192.168.1.*. However, in none of the configuration files of ntpdate the 
IP 
192.168.178.1 appeared! As ntpdate is not necessary and is fully successed 
through the package ntp, I deinstalled and purged ntpdate and everything was 
working again.

Thank you for pointing me to the systemctrl commands, so I could see, learn 
and solve the problem.

Best

Hans

 



Re: rkhunter -c, doesnt show any rootkit

2016-06-09 Thread Dan Purgert
David Wright wrote:
> On Wed 08 Jun 2016 at 22:16:03 (-), Dan Purgert wrote:
>> David Wright wrote:
>> > On Wed 08 Jun 2016 at 20:51:55 (+0300), Nikos Macheras wrote:
>> >> On 06/07/2016 01:50 PM, to...@tuxteam.de wrote:
>> >> >On Tue, Jun 07, 2016 at 01:29:28PM +0300, perlj...@gmail.com wrote:
>> >> >>There is a problem to a computer,
>> >> >>It loses files, not very often, files downloaded from internet.
>> >> >It *only* loses files downloaded from the internet? How do you download
>> >> >those files?
>> >> >Are you sure that this isn't something (perhaps the browser) cleaning
>> >> >up old files?
>> >> The last time, was with httrack, after download files (45 files),
>> >> after some minutes dissapeared. repeated three times. The computer
>> >> has not any port open on external interfaces (eth0,wlan0), it runs
>> >> debian wheezy .On cron i dont see something that could remove theese
>> >> files.
>> >> Any suggestion?
>> >
>> > [also]
>> >
>> >> The Download target was $HOME
>> >
>> > Whose $HOME? It would be bizarre to download a website into your own
>> > home directory. Someone changing files on the other side of the world
>> > could change files in your own home directory.
>> 
>> Well, if he's /Downloading/ something (e.g. the latest *.tgz for some
>> sourcecode), one would imagine it's HIS $HOME (or at least $HOME of the
>> currently logged in user).  This is the default action in Iceweasel --
>> or, at least on my install it was.
>> 
>> Or have I missed something somewhere?  Seems the thread got broken
>> somewhere, so not 100% certain if this is the latest info ... 
>
> The OP hasn't posted a lot of information, so I made some assumptions.
>
> He mentions httrack and 45 files, so I assumed he was downloading a website
> rather than, say, a single tgz. httrack would be overkill for that.
> But how would you like someone else's website to determine your own
> home directory's files and folder structure.

Ah, I see what you're getting at now -- the split in the thread threw me
off what you were getting at with "someone else determining file/folder
structure".  I mean, if the intention was "download some remote
directory in its entirety", you would pretty much start at "what they
decided", and go from there (or at least I do when running wget / curl).


-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| 



Re: Touchpad, audio, and wifi not working

2016-06-09 Thread Sven Arvidsson
On Thu, 2016-06-09 at 07:37 -0500, Zachary Tretter wrote:
> I do have a separate testing sources.list. I'm a bit hesitant to
> completely
> upgrade to testing because I always seem to get boot errors whenever
> I
> install new firmware/kernel.
> 
> Are there any specific packages related to firmware I should upgrade
> or
> should I just completely switch to testing and see what happens?

Hi,

Please reply directly to the list, you will get more, better and faster
replies! :)

I was thinking of the UEFI firmware, or BIOS, but other firmware and
microcode should probably be updated too. Skylake have had some serious
problems you might want to read up on. (To the point of the hardware
being damaged or at least the lifespan shortened without running an OS
with proper support)

You will most likely need a complete upgrade to testing or newer to get
most of the laptop. 

You didn't mention it in your post, but I doubt you would get proper
OpenGL/OpenCL support and video hardware decoding without X/libdrm/Mesa
from testing.

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 6FAB5CD5



signature.asc
Description: This is a digitally signed message part


Re: Touchpad, audio, and wifi not working

2016-06-09 Thread Zachary Tretter
On Thu, Jun 9, 2016 at 8:24 AM, Sven Arvidsson  wrote:
>Skylake have had some serious
>problems you might want to read up on. (To the point of the hardware
>being damaged or at least the lifespan shortened without running an OS
>with proper support)

Guess I'll back up everything and upgrade to testing, maybe even sid later.
You're scaring me. I think I should just stick to windows for another year.

I'll read up on all that later today. Thanks for the heads up.


Re: Touchpad, audio, and wifi not working

2016-06-09 Thread Sven Arvidsson
On Thu, 2016-06-09 at 08:40 -0500, Zachary Tretter wrote:
> On Thu, Jun 9, 2016 at 8:24 AM, Sven Arvidsson  wrote:
> > 
> > Skylake have had some serious
> > problems you might want to read up on. (To the point of the
> > hardware
> > being damaged or at least the lifespan shortened without running an
> > OS
> > with proper support)
> Guess I'll back up everything and upgrade to testing, maybe even sid
> later.
> You're scaring me. I think I should just stick to windows for another
> year.
> 
> I'll read up on all that later today. Thanks for the heads up.

It's probably no need to worry, and last I heard there where similar
problems on Windows, though maybe not quite as bad.

More info here: https://mjg59.dreamwidth.org/41713.html

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 6FAB5CD5



signature.asc
Description: This is a digitally signed message part


Re: Advice sought re HDD --> SSD migration

2016-06-09 Thread Mark Fletcher
On Mon, Jun 6, 2016 at 7:24 AM David Christensen 
wrote:

> On 06/05/2016 04:40 AM, Mark Fletcher wrote:
>
>
> > ... Any clever ploys to deal with [changing UID's and GID's after a
> > fresh install]?
>
> For users, I track usernames, UID's, and GID's, and refer to that when
> creating accounts.
>
>
> For services, I restore and chown -R if needed (I don't run many
> services, and the Debian project seems to have kept service UID's/GID's
> fairly stable over the years).
>
>
> David
>
>
>
In the end I successfully completed this. I removed the 1TB hard disk which
I had already migrated, moved the replacement SSD to where it had been, and
plugged in the other SSD which was to replace the 500GB main hard disk.
Booted as normal, and the trick was to mount the hard disk
(/dev/sda1,sd5,sda6,sda8 and sda9 ) to separate places on the filesystem.

So I created mount points under mnt for newroot, newhome, oldroot, oldusr,
oldvar, oldhome, mounted the partitions of the hard disk in those mounts,
(in addition to where they were mounted as part of the boot process, eg /,
/tmp, /usr etc) and the partitions of the new SSD (which I first had to
make) in newroot and newhome. Then it was fairly simple cp -a jobs to copy
everything over from there. Doing it that way, I copied what was on the
disk surface but didn't inadvertently grab anything that was actually in a
virtual file system.

I tried to be clever and use GPT partitions on the first SSD, thus proving
I wasn't in fact clever when I tried to install grub and found I needed to
have a "BIOS boot partition" (whatever that is) and didn't. So rather than
eff around unnecessarily with getting MBR boot to work on a GPT partition I
used parted to wipe the label and go back to a "msdos" partition scheme,
recreated the partitions and the file systems, and copied everything a
second time.

Then, install grub to the SSD using grub-install
--boot-directory=/mnt/newroot/boot /dev/sdc and then a grub-mkconfig -o
/mnt/newroot/boot/grub/grub.cfg.

Then reboot, and tell the BIOS setup to boot from the SSD first not the
hard disk. That fired up grub and I was able to select the SSD-installed
Linux. That booted successfully and that's what I'm using to write this.

Because I worked that way I had no file ownership problems, but I did
notice messed up permissions on the directories under / that had previously
been mount points, eg /usr, /tmp etc. Although /var was OK. For example
/usr was world writable which VirtualBox was none too impressed with.
Easily fixed, but I don't know why it happened.

Just one thing I wasn't sure about -- what should the permissions of the
/media directory be?

Apart from fixing that, what's left to do is to disconnect and remove the
500GB hard disk, move the SSD to the hard disk's SATA port so it is
/dev/sda, modify grub.cfg to reflect the move and to remove the hard-disk
boot menu items which grub-mkconfig, trying to be helpful, generated.

But I'm basically there apart from my question above about the permissions
of /media.

Thanks all for the advice -- was very helpful.

Mark


Re: wrong owner of /run/user/1000/dconf/user causes X to freeze

2016-06-09 Thread postings

Thanks for your answers. Helpful - and funny :-)

> no, this is a perfectly fine list to ask that question.
Good.


> The problem is that the answer is "systemd".

> In this case dconf,

So I have 2 choices now.  Thanks!


> and ask the maintainer to reassign the bug if it's wrong.
Good point, thanks!


> In this case it has already been reported (quite a few times):
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769889

... and wow - all the way back to Nov 2014 even. Interesting. Feels good
not to be alone in this ;-)


There in that thread, I like this sentence
> it makes the system quite unstable in an undebian way.
:-)

Perhaps I should rather post into that existing "libpam-systemd" thread,
instead of starting a new bug report.


Last question:  What about my idea - anyone knows such a tool?

> > Or how to identify which package is causing it? 
> > Is there a way to install a watcher, which logs
> > all the programs which are changing a certain file?

Plus which specific change they have done.
In this case: Change owner to "root" / Re-create, owned by root.

Because then after logging for a while, I could submit a list of all
culprits.

If such a watcher tool does not exist yet ... then I have found a new
niche that can be filled with to-be-created code, right? Best starting
point for such a script? First idea would be dumb regular polling, and
comparing to last stored state, and logging all changes. But then I
would still only know WHEN it happens, not WHO has caused it. Which
level of the stack all the way down to the file sytem does know about
the actor of a file change? Thx.


And *hahaha*:

> > The problem is that the answer is "systemd".
> >
> Even before June is over you win this month's prize
> for the most useless post to -user. The committee is
> unaminous on this. Well done! Wear your badge
> with pride. The question was
>   How can I file a Debian bug report,
>   without assigning it to a specific package?
> Your answer is so tangential it requires use of the
> axe-to-grind package to make headway with a response.

Not even sure what exactly that might mean, but I guess:
100 out of 100 points for the sarcastic comment of the day.
I just ... love the people of the internets :-)





Re: libreCAD, can't find help docs

2016-06-09 Thread Gene Heskett
On Thursday 09 June 2016 05:39:08 Jörg-Volker Peetz wrote:

> Yeah, you got a lot of stuff here ;-)
>
> The repositories all got the same priority 500 besides the
> wheezy-backports i386 target release which is set to priority 100.
> These priorities are normally set in /etc/apt/preferences. What is the
> contents of this file on your system?

I don't have a file there, I have a preferences.d, and its empty.

> The easiest to try for your specific request is to list also the
> dependencies explicitly in the apt-get command:
>
>apt-get -s -t wheezy-backports install freecad freecad-doc
> qt4-dev-tools libsoqt4-20 python-pivy

Reading package lists... Done
Building dependency tree   
Reading state information... Done
Suggested packages:
  qt4-doc-html
Recommended packages:
  qt4-designer qt4-doc
The following NEW packages will be installed:
  freecad freecad-doc qt4-dev-tools
The following packages will be upgraded:
  libsoqt4-20 python-pivy
2 upgraded, 3 newly installed, 0 to remove and 6 not upgraded.
Inst libsoqt4-20 [1.5.0-2] (1.6.0~e8310f-1~bpo70+1 Debian 
Backports:/wheezy-backports [i386])
Inst qt4-dev-tools (4:4.8.6+git64-g5dc8b2b+dfsg-3~bpo70+1 Debian 
Backports:/wheezy-backports [i386])
Inst python-pivy [0.5.0~v609hg-1] (0.5.0~v609hg-3~bpo70+1 Debian 
Backports:/wheezy-backports [i386])
Inst freecad (0.14.3702+dfsg-3~bpo70+1 Debian Backports:/wheezy-backports 
[i386])
Inst freecad-doc (0.14.3702+dfsg-3~bpo70+1 Debian Backports:/wheezy-backports 
[all])
Conf libsoqt4-20 (1.6.0~e8310f-1~bpo70+1 Debian Backports:/wheezy-backports 
[i386])
Conf qt4-dev-tools (4:4.8.6+git64-g5dc8b2b+dfsg-3~bpo70+1 Debian 
Backports:/wheezy-backports [i386])
Conf python-pivy (0.5.0~v609hg-3~bpo70+1 Debian Backports:/wheezy-backports 
[i386])
Conf freecad (0.14.3702+dfsg-3~bpo70+1 Debian Backports:/wheezy-backports 
[i386])
Conf freecad-doc (0.14.3702+dfsg-3~bpo70+1 Debian Backports:/wheezy-backports 
[all])

Which is as far as I got since the needed updated version of python-pivy 
isn't available even from sloppy, and neither is the newer version of 
libsoqt4-20 (1.6.0~e8310f-1~bpo70+1

Now, with sloppy added, let me rerun the command above to see if there 
are any diffs, as marking freecad turns the button red yet from unresolved
dependencies.

No, same results, and wheezy-backports-sloppy is not mentioned in the
results, so I won't further abuse the list with my drivel, other than 
to ask if sloppy has anything but "main" as thats all that has content
actually listed under origins.

> (This has the disadvantage that the information which packages are
> automatically installed is lost. Therefor, after successfully
> installing freecad inform the system about what are just dependency
> packages with
>
>   apt-mark auto qt4-dev-tools libsoqt4-20 python-pivy
> )
>
> If the installation doesn't work, have a look at
> ttps://backports.debian.org/Instructions/ . There it says:
>
> "
> To allow some newer packages for those systems we create so called
> sloppy distributions. For oldstable (wheezy) packages from the current
> testing (stretch) are allowed to be uploaded to
> wheezy-backports-sloppy.
>
As noted above, no help there.

> You can use it exactly as the current backports distribution, just add
> another line to your sources.list and install new packages via apt-get
> -t wheezy-backports-sloppy install or apt-get -t jessie-backports
> install. "
>
> By the way, a nice tool is apt-show-versions to see from which release
> (distribution) a package on your system is installed from.
> It could help to trim /etc/apt/sources.list.

Which it do doubt needs as I'm sure there are essentially duplicates
in there now.

Cheers JVP, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: Touchpad, audio, and wifi not working

2016-06-09 Thread Zachary Tretter
I upgraded to stretch, installed firmware-realtek, and set pci=noaer.
Everything in the title has been fixed. This thread can be renamed to
solved.

Thanks for the help.


Locales, Keyboard Layouts

2016-06-09 Thread Levi Darrell
Hi Debian Users List,

I am using the lxde desktop environment with xorg. I have installed the
"Keyboard Layout Handler" applet, and I am attempting to use the French and
Latin American keyboard layouts. Single-keystroke characters, such as ñ οr
ç work just fine, but I am having difficulty inputting characters which
require multiple keystrokes, such as á, í, ú, ó, ö, ï, ü, ê, â, î, ô, û,
etc.

When everything is working properly, these characters can be produced
without the use of a Compose or AltGr key. They are composed of a
two-keystroke combination of the accent mark--^, ¨; ´, etc.-- and the
letter. Strangely, these keystroke combinations work just fine in
LibreOffice Writer, but when I try to input them into a web browser or
terminal shell emulator they look like this instead: ´i, ´e, ´u, ´a, ´o,
^e, ^o, ^a, ^u, etc.

How can I get these keyboard layouts to function properly?

Regards,

Levi


Changing tty shells

2016-06-09 Thread Levi Darrell
Hi Debian Users List,

My computer is set to boot into a tty shell. I manually enter X Server by
issuing the startx command. Previously, I had been able to switch tty
shells with the keystroke combination Alt + F[1-6]. After attempting to
reconfigure they keyboard and locales to solve an unrelated problem,
suddenly this no longer works.

I can still change shells from within X Server by using the combination
Ctrl + Alt + F[1-6], but I don't want to have to log into X Server in order
to be able to use all of my tty shells. What could have gone wrong, and
where do I look to fix the problem?

Thanks,

Levi


Re: mutt, w3m and firefox

2016-06-09 Thread Morten Bo Johansen
On 2016-06-08 Johann Spies wrote:

> Until a few weeks ago, I could open firefox from mutt by 'v' and then
> select the html-part of the email and press enter.
>
> Now firefox does not but w3m handles everything - which is not preferred
> when some links are important.

I use the following in ~/.mailcap:

  text/html; chromium %s;
  text/html; /usr/bin/elinks -force-html -dump %s; copiousoutput  

and in ~/.muttrc:

  bind  attachview-mailcap 
  alternative_order text/plain text/html
  unauto_view * 
  auto_view text/html

This ensures that when I open a multipart/alternative message,
the text part will be shown instead of the html part.

In pure html messages, they will be opened from the mailcap
line with the copiousoutput directive in it, which must be the
last of the text/html mailcap entries.

When you hit 'v' to specifically choose an html part from the
attachment menu, it will be opened in chromium instead.


  Morten



Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Andrew McGlashan
Hi,

In the Solaris world and most SYSV systems like it, there was a very
simple startup system; it was not systemd, nor is it the "modern day"
sysvinit.  It was much simpler and worked very, very well and extremely
reliably.  How can we get that back on modern Debian?


I mean simple, just like this:

 - when entering a run level (start passed to each script)

   - run all S scripts in alphanumeric order
 S02xxx before S03xxx and S02aaa before S02aab ...

 - when exiting a run level (stop passed to each script)

   - run all K scripts in alphanumeric order
 K02xxx before K03xxx and K02aaa before K02aab ...


The order of the scripts alone allowed for everything to be very, very
simple and no script relied upon any other; they were self dependent.
If you wanted something to be available before your script, you made
sure your numeric number after the S in the script name (or rather the
symlink name back to the /etc/init.d directory file) was higher.  It was
simple, it worked perfectly, it worked like a standard program would,
sequentially... as I understand it, each script ran in order and the
next script didn't run until the prior one was finished.  This doesn't
allow for streamlining, unless you backgrounded procesess in scripts,
but it was extremely simple and reliable just the same, it got the job
done (even if more slowly than some might like) -- the simpleness and
reliability were the major trump card featuress of the system.


Now I have sysvinit isntalled on wheezy, it is failing to run a simple
script during system boot (as part of a planed reboot) and I cannot work
out why.


# ls -l /etc/{init.d,rc*.d}/*archive*
-rwxr-xr-x 1 root root 1453 Jun  8 04:12 /etc/init.d/archive-system-mail
lrwxrwxrwx 1 root root   29 Jun  3 23:30
/etc/rc2.d/S02archive-system-mail -> ../init.d/archive-system-mail
lrwxrwxrwx 1 root root   29 Jun  4 03:06
/etc/rc3.d/S02archive-system-mail -> ../init.d/archive-system-mail
lrwxrwxrwx 1 root root   29 Jun  4 03:07
/etc/rc4.d/S02archive-system-mail -> ../init.d/archive-system-mail
lrwxrwxrwx 1 root root   29 Jun  4 03:08
/etc/rc5.d/S02archive-system-mail -> ../init.d/archive-system-mail


Now, I want the archiving script to run on system startup, I don't want
dovecot or exim4 to be running when the script starts, it simply needs
to have the /backup and /var file systems mounted to do it's required job.

My script is meant to create a log file in the /var/log directory.  If I
run the script manually, it works perfectly.  There are some generic
parts in the script, it is a fairly simple script, even if a little bit
over complicated.  What do I need to do to fix it?


Here is the script:

# cat /etc/init.d/archive-system-mail
#! /bin/sh
### BEGIN INIT INFO
# Provides:  mailarchive
# Required-Start:$syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Save exim4 system_filter archive
### END INIT INFO

# Author: Andrew McGlashan 

set -x

NAME=archive-system-mail
SCRIPTNAME=/etc/init.d/$NAME

do_cleanup()
{
# Cleanup
echo -e "\a\a\aPerforming cleanup"
exit $1
}

error_exit()
{
# Display error message and exit
echo "${PROGNAME}: ${1:-"Unknown Error"}" 1>&2
do_cleanup 1
}

get_archivedir()
{
for x in a b c d e f g h i j k l m n o p q r s t u v w x y z
do

ARCHIVE_DIR=/backup/mail/system_filter_all_mail/archive/${DATEX}${x}
if [ ! -d $ARCHIVE_DIR ]; then VER=$x; return 0; fi
done
return 1
}

do_main()
{
(
get_archivedir || error_exit "Cannot get archive dir"

if [ ! -d ${ARCHIVE_DIR} ];then /bin/mkdir $ARCHIVE_DIR;fi
#/bin/mv /backup/mail/system_filter_all_mail/log--lots $ARCHIVE_DIR/
#/bin/mv /backup/mail/system_filter_all_mail/Maildir   $ARCHIVE_DIR/
/usr/bin/touch $ARCHIVE_DIR/log--lots.$$
/bin/mkdir $ARCHIVE_DIR/Maildir.$$
)  2>&1 | /usr/bin/tee /var/log/${PROGNAME}--$(date
+%Y%m%d%H%M%S).log
}

# main
trap "do_cleanup 99" HUP INT TERM

# Global Variables
ARCHIVE_DIR=
DATEX=$(/bin/date +%Y%m%d)
PROGNAME=$(/usr/bin/basename $0)

case "$1" in
  start)
do_main
;;
  *)
echo "Usage: $SCRIPTNAME {start}" >&2
exit 3
;;
esac

:




Thanks
AndrewM



signature.asc
Description: OpenPGP digital signature


Re: Advice sought re HDD --> SSD migration

2016-06-09 Thread David Wright
On Thu 09 Jun 2016 at 14:13:58 (+), Mark Fletcher wrote:
> Just one thing I wasn't sure about -- what should the permissions of the
> /media directory be?

drwxr-xr-x  75 root root   4096 Jul 10  2015 media/

I make the mountpoints within:
drwx-- 2 root root 4096 May  5  2014 cdrom0/
which makes users unable to enter them when it would be futile.

Cheers,
David.



Re: Unattended-upgrades do not seem to be able to restart services

2016-06-09 Thread Jesper Dybdal
On Thu, 9 Jun 2016 11:39:36 +0200, Wolfgang Karall
 wrote:

>It's not unattended-upgrades, what you're seeing is the output of
>needrestart, which is configured by default to only showing what it
>would do, but not actually restarting anything.
>
>Take a look at the configuration below /etc/needrestart.

Thanks!  I've now added

$nrconf{restart} = 'a';

and expect that to help.
-- 
Jesper Dybdal, Denmark.
http://www.dybdal.dk (in Danish).



Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Dan Purgert
Andrew McGlashan wrote:
> Hi,
>
> In the Solaris world and most SYSV systems like it, there was a very
> simple startup system; it was not systemd, nor is it the "modern day"
> sysvinit.  It was much simpler and worked very, very well and extremely
> reliably.  How can we get that back on modern Debian?
>
>
> I mean simple, just like this:
>
>  - when entering a run level (start passed to each script)
>
>- run all S scripts in alphanumeric order
>  S02xxx before S03xxx and S02aaa before S02aab ...
>
>  - when exiting a run level (stop passed to each script)
>
>- run all K scripts in alphanumeric order
>  K02xxx before K03xxx and K02aaa before K02aab ...

That's pretty much sysvinit right there ... perhaps you're thinking of
"Upstart" as the "modern sysvinit"?

> Now I have sysvinit isntalled on wheezy, it is failing to run a simple
> script during system boot (as part of a planed reboot) and I cannot work
> out why.

What error messages (if any) are you getting?

> Now, I want the archiving script to run on system startup, I don't want
> dovecot or exim4 to be running when the script starts, it simply needs
> to have the /backup and /var file systems mounted to do it's required job

Looks like it might also need syslog running...
>
> My script is meant to create a log file in the /var/log directory.  If I
> run the script manually, it works perfectly.  There are some generic
> parts in the script, it is a fairly simple script, even if a little bit
> over complicated.  What do I need to do to fix it?

Not sure if this is an artifact of how you sent the mail to the group,
but your ARCHIVE_DIR is "3D/backup/[...]".  That's not a valid path.



-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| 



Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Brian
On Fri 10 Jun 2016 at 03:46:18 +1000, Andrew McGlashan wrote:

> In the Solaris world and most SYSV systems like it, there was a very
> simple startup system; it was not systemd, nor is it the "modern day"
> sysvinit.  It was much simpler and worked very, very well and extremely
> reliably.  How can we get that back on modern Debian?

Present such astoundandly good argumnents for all use cases that the
Debian developer community falls over themselves in admiration and
completely changes direction within hours of receiving your report.

(This is -user. If you have a problem with using stable, please state it
clearly; there are plenty of people who would chip in to help with it.
Otherwise, hobby-horses probably require a different venue. If you do
not have a problem please try to find somewhere which does not require
Debian support).

[...Lots of pseudo-technical stuff snipped...]



Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Andrew McGlashan
Hi,

Thanks for your reply.

On 10/06/2016 5:06 AM, Dan Purgert wrote:
> Andrew McGlashan wrote:
>> In the Solaris world and most SYSV systems like it, there was a very
>> simple startup system; it was not systemd, nor is it the "modern day"
>> sysvinit.  It was much simpler and worked very, very well and extremely
>> reliably.  How can we get that back on modern Debian?
>>
>> I mean simple, just like this:
>>
>>  - when entering a run level (start passed to each script)
>>
>>- run all S scripts in alphanumeric order
>>  S02xxx before S03xxx and S02aaa before S02aab ...
>>
>>  - when exiting a run level (stop passed to each script)
>>
>>- run all K scripts in alphanumeric order
>>  K02xxx before K03xxx and K02aaa before K02aab ...
> 
> That's pretty much sysvinit right there ... perhaps you're thinking of
> "Upstart" as the "modern sysvinit"?

That's what I thought, I have sysvinit.

# dpkg-query -l|egrep -e '(sysvinit|systemd|upstart)'
ii  libsystemd-login0:amd6444-11+deb7u4
amd64systemd login utility library
ii  sysvinit   2.88dsf-41+deb7u1
amd64System-V-like init utilities
ii  sysvinit-utils 2.88dsf-41+deb7u1
amd64System-V-like utilities


>> Now I have sysvinit isntalled on wheezy, it is failing to run a simple
>> script during system boot (as part of a planed reboot) and I cannot work
>> out why.
> 
> What error messages (if any) are you getting?

None, no log is created.  The machine runs within a Xen KVM.  I can't
see any evidence the script is run during startup.

>> Now, I want the archiving script to run on system startup, I don't want
>> dovecot or exim4 to be running when the script starts, it simply needs
>> to have the /backup and /var file systems mounted to do it's required job
> 
> Looks like it might also need syslog running...

Perhaps, but why?  I'm not asking it to log anything to syslog; just to
create it's own log file in the /var/log directory.

>> My script is meant to create a log file in the /var/log directory.  If I
>> run the script manually, it works perfectly.  There are some generic
>> parts in the script, it is a fairly simple script, even if a little bit
>> over complicated.  What do I need to do to fix it?
> 
> Not sure if this is an artifact of how you sent the mail to the group,
> but your ARCHIVE_DIR is "3D/backup/[...]".  That's not a valid path.

Weird artifcat of something (perhaps GPG due to signing?), my copy as
sent to the list is clean.  The script works perfectly if ran with an
interactive shell; right now the script isn't destructive, so I can run
it as many times as I like and it works fine.  The plan is to adjust the
script, I think you can see how, but not until it works as expected.

Kind Regards
AndrewM



signature.asc
Description: OpenPGP digital signature


Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Andrew McGlashan


On 10/06/2016 5:24 AM, Brian wrote:
> Otherwise, hobby-horses probably require a different venue. If you do
> not have a problem please try to find somewhere which does not require
> Debian support).

As per the subject, required script will NOT run and in my message:


My script is meant to create a log file in the /var/log directory.  If I
run the script manually, it works perfectly.  There are some generic
parts in the script, it is a fairly simple script, even if a little bit
over complicated.  What do I need to do to fix it?


Anyway, best to re-read the original message in full now... ;-)

Thanks
AndrewM



signature.asc
Description: OpenPGP digital signature


Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Brian
On Fri 10 Jun 2016 at 05:29:59 +1000, Andrew McGlashan wrote:

> 
> 
> On 10/06/2016 5:24 AM, Brian wrote:
> > Otherwise, hobby-horses probably require a different venue. If you do
> > not have a problem please try to find somewhere which does not require
> > Debian support).
> 
> As per the subject, required script will NOT run and in my message:
> 
> 
> My script is meant to create a log file in the /var/log directory.  If I
> run the script manually, it works perfectly.  There are some generic
> parts in the script, it is a fairly simple script, even if a little bit
> over complicated.  What do I need to do to fix it?
> 
> 
> Anyway, best to re-read the original message in full now... ;-)

Your premable was enough:

  In the Solaris world and most SYSV systems like it, there was a very
  simple startup system; it was not systemd, nor is it the "modern day
  sysvinit.  It was much simpler and worked very, very well and extremely
  reliably.  How can we get that back on modern Debian?

Is that the sort of introduction one expexts to see when technical help
is being sought. Stating a problem needn't start with a philosphical
statement.



Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Andrew McGlashan


On 10/06/2016 6:02 AM, Brian wrote:
> Your premable was enough:
> 
>   In the Solaris world and most SYSV systems like it, there was a very
>   simple startup system; it was not systemd, nor is it the "modern day
>   sysvinit.  It was much simpler and worked very, very well and extremely
>   reliably.  How can we get that back on modern Debian?
> 
> Is that the sort of introduction one expexts to see when technical help
> is being sought. Stating a problem needn't start with a philosphical
> statement.

Okay, but philosophical or not; what I had in the Solaris days worked,
it was very reliable.

What I have now is that with some extra "smarts" that stops the original
concept from working as intended.  The smarts is meant to allow for
faster startup and to tie in dependancies; to me, it is trying to be too
smart and that is where the problem lies.

I see within the /etc/init.d/ scripts that there is all this extra junk
at the top and there are .depend.* files in that directory too.  I am
thinking that these extras are the reason why it isn't running the
script at startup as expected.  Those extras weren't not part of the
more original sysv init setup; and, it may be why lots of Debian and
other people decided that the sysvinit was broken (due to the extras)...
and hence why we ended up with systemd.  In any case, I'm not right now
trying to argue for anything in particular even though I've done so in
the past.  Right now, all I want is my script to run as intended and I
need to know how it needs to be adjusted to work.

Thanks
AndrewM




signature.asc
Description: OpenPGP digital signature


Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Dan Purgert
Andrew McGlashan wrote:
> On 10/06/2016 5:06 AM, Dan Purgert wrote:
>> Andrew McGlashan wrote:
>>> [snip]
>>> Now, I want the archiving script to run on system startup, I don't
>>> want dovecot or exim4 to be running when the script starts, it
>>> simply needs to have the /backup and /var file systems mounted to do
>>> it's required job
>>
>> Looks like it might also need syslog running...
>
> Perhaps, but why?  I'm not asking it to log anything to syslog; just to
> create it's own log file in the /var/log directory.

Just going off the comments at the top -- states "required-start:
$syslog".  Although, I suppose that you could've just forgotten to
remove that bit.

> [snip]
> Weird artifcat of something (perhaps GPG due to signing?), my copy as
> sent to the list is clean.  The script works perfectly if ran with an
> interactive shell; right now the script isn't destructive, so I can run
> it as many times as I like and it works fine.  The plan is to adjust the
> script, I think you can see how, but not until it works as expected.

How are you calling it while logged in?  I'm starting to wonder if it's
a difference between [da]sh and bash (or whatever your standard login
shell is).  

Also, not entirely sure what the 'VER=$x" assignment is doing, as you
don't seem to read $VER anywhere else.

-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| 



Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Andrew McGlashan


On 10/06/2016 6:17 AM, Dan Purgert wrote:
>> Perhaps, but why?  I'm not asking it to log anything to syslog; just to
>> create it's own log file in the /var/log directory.
> 
> Just going off the comments at the top -- states "required-start:
> $syslog".  Although, I suppose that you could've just forgotten to
> remove that bit.

I'm sure it can be removed, I started off with the /etc/init.d/skeleton
and tried to work from there when the script didn't run at startup
without the extras at the top.

>> [snip]
>> Weird artifcat of something (perhaps GPG due to signing?), my copy as
>> sent to the list is clean.  The script works perfectly if ran with an
>> interactive shell; right now the script isn't destructive, so I can run
>> it as many times as I like and it works fine.  The plan is to adjust the
>> script, I think you can see how, but not until it works as expected.
> 
> How are you calling it while logged in?  I'm starting to wonder if it's
> a difference between [da]sh and bash (or whatever your standard login
> shell is).  

# echo $SHELL
/bin/bash

# /etc/init.d/archive-system-mail start
+ NAME=archive-system-mail
+ SCRIPTNAME=/etc/init.d/archive-system-mail
+ trap do_cleanup 99 HUP INT TERM
+ ARCHIVE_DIR=
+ /bin/date +%Y%m%d
+ DATEX=20160610
+ /usr/bin/basename /etc/init.d/archive-system-mail
+ PROGNAME=archive-system-mail
+ do_main
+ date +%Y%m%d%H%M%S
+ /usr/bin/tee /var/log/archive-system-mail--20160610062530.log
+ get_archivedir
+ ARCHIVE_DIR=/backup/mail/system_filter_all_mail/archive/20160610a
+ [ ! -d /backup/mail/system_filter_all_mail/archive/20160610a ]
+ VER=a
+ return 0
+ [ ! -d /backup/mail/system_filter_all_mail/archive/20160610a ]
+ /bin/mkdir /backup/mail/system_filter_all_mail/archive/20160610a
+ /usr/bin/touch
/backup/mail/system_filter_all_mail/archive/20160610a/log--lots.23380
+ /bin/mkdir
/backup/mail/system_filter_all_mail/archive/20160610a/Maildir.23380
+ :


> Also, not entirely sure what the 'VER=$x" assignment is doing, as you
> don't seem to read $VER anywhere else.

Yes, it is useless there; copy and pasted the version part from another
script.  I noticed that when I read over my message to the list, but
whilst that is true, it shouldn't make any difference to the script
being able to run or not at start up.

The script does have #! /bin/sh at the top and /bin/sh does point to
/bin/dash as follows:

# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Feb 21 17:40 /bin/sh -> dash



Thanks
AndrewM



signature.asc
Description: OpenPGP digital signature


Re: libreCAD, can't find help docs

2016-06-09 Thread Jörg-Volker Peetz
Gene Heskett wrote on 06/09/16 17:59:
> On Thursday 09 June 2016 05:39:08 Jörg-Volker Peetz wrote:
> 
>> Yeah, you got a lot of stuff here ;-)
>>
>> The repositories all got the same priority 500 besides the
>> wheezy-backports i386 target release which is set to priority 100.
>> These priorities are normally set in /etc/apt/preferences. What is the
>> contents of this file on your system?
> 
> I don't have a file there, I have a preferences.d, and its empty.
> 
>> The easiest to try for your specific request is to list also the
>> dependencies explicitly in the apt-get command:
>>
>>apt-get -s -t wheezy-backports install freecad freecad-doc
>> qt4-dev-tools libsoqt4-20 python-pivy
> 
> Reading package lists... Done
> Building dependency tree   
> Reading state information... Done
> Suggested packages:
>   qt4-doc-html
> Recommended packages:
>   qt4-designer qt4-doc
> The following NEW packages will be installed:
>   freecad freecad-doc qt4-dev-tools
> The following packages will be upgraded:
>   libsoqt4-20 python-pivy
> 2 upgraded, 3 newly installed, 0 to remove and 6 not upgraded.
> Inst libsoqt4-20 [1.5.0-2] (1.6.0~e8310f-1~bpo70+1 Debian 
> Backports:/wheezy-backports [i386])
> Inst qt4-dev-tools (4:4.8.6+git64-g5dc8b2b+dfsg-3~bpo70+1 Debian 
> Backports:/wheezy-backports [i386])
> Inst python-pivy [0.5.0~v609hg-1] (0.5.0~v609hg-3~bpo70+1 Debian 
> Backports:/wheezy-backports [i386])
> Inst freecad (0.14.3702+dfsg-3~bpo70+1 Debian Backports:/wheezy-backports 
> [i386])
> Inst freecad-doc (0.14.3702+dfsg-3~bpo70+1 Debian Backports:/wheezy-backports 
> [all])
> Conf libsoqt4-20 (1.6.0~e8310f-1~bpo70+1 Debian Backports:/wheezy-backports 
> [i386])
> Conf qt4-dev-tools (4:4.8.6+git64-g5dc8b2b+dfsg-3~bpo70+1 Debian 
> Backports:/wheezy-backports [i386])
> Conf python-pivy (0.5.0~v609hg-3~bpo70+1 Debian Backports:/wheezy-backports 
> [i386])
> Conf freecad (0.14.3702+dfsg-3~bpo70+1 Debian Backports:/wheezy-backports 
> [i386])
> Conf freecad-doc (0.14.3702+dfsg-3~bpo70+1 Debian Backports:/wheezy-backports 
> [all])
> 
> Which is as far as I got since the needed updated version of python-pivy 
> isn't available even from sloppy, and neither is the newer version of 
> libsoqt4-20 (1.6.0~e8310f-1~bpo70+1
> 

Ah, the above command line has the "-s" switch for "simulate". Did you really
try to perform the installation?

  apt-get -t wheezy-backports install freecad freecad-doc qt4-dev-tools
libsoqt4-20 python-pivy

(in one command line).

Regards,
jvp.




network managet and 10.42.0.1/24

2016-06-09 Thread Bhasker C V
Hi all,

 I am at a loss to find out how to change 10.42.0.1/24 and 10.42.0.x/24 as
ip and dhcp range which is used by network manager when configuring a
wireless card as an AP. I dont see the setting anywhere and cant find a
valid doc in the internet too
Is this value had-coded in the source-code of NetworkManager ?

Has anyone got an experience of making Network manager work aas a DHCP
server with custom DHCP range ? please if you can share your experiences

thanks
Bhasker


Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Dan Purgert
Andrew McGlashan wrote:
>[snip]
> The script does have #! /bin/sh at the top and /bin/sh does point to
> /bin/dash as follows:
>
> # ls -l /bin/sh
> lrwxrwxrwx 1 root root 4 Feb 21 17:40 /bin/sh -> dash

Try running it as 'sh ' or 'dash ' -- you're
probably doing "bashisms" in there somewhere that're causing things to
fail.


-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| 



Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Nicholas Geovanis
The Jessie Debian Handbook states:
"The two-figures number
that follows had historically been used to define the order in which
services had to be started,
but nowadays the default boot system uses insserv , which schedules
everything automatically
based on the scripts’ dependencies." on pg 188.

On Thu, Jun 9, 2016 at 3:56 PM, Dan Purgert  wrote:

> Andrew McGlashan wrote:
> >[snip]
> > The script does have #! /bin/sh at the top and /bin/sh does point to
> > /bin/dash as follows:
> >
> > # ls -l /bin/sh
> > lrwxrwxrwx 1 root root 4 Feb 21 17:40 /bin/sh -> dash
>
> Try running it as 'sh ' or 'dash ' -- you're
> probably doing "bashisms" in there somewhere that're causing things to
> fail.
>
>
> --
> |_|O|_| Registered Linux user #585947
> |_|_|O| Github: https://github.com/dpurgert
> |O|O|O|
>
>


Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Mark Neyhart
On 06/09/2016 12:17 PM, Dan Purgert wrote:
> Andrew McGlashan wrote:
>> On 10/06/2016 5:06 AM, Dan Purgert wrote:
>>> Andrew McGlashan wrote:
 [snip]
 Now, I want the archiving script to run on system startup, I don't
 want dovecot or exim4 to be running when the script starts, it
 simply needs to have the /backup and /var file systems mounted to do
 it's required job
>>>
>>> Looks like it might also need syslog running...
>>
>> Perhaps, but why?  I'm not asking it to log anything to syslog; just to
>> create it's own log file in the /var/log directory.
> 
> Just going off the comments at the top -- states "required-start:
> $syslog".  Although, I suppose that you could've just forgotten to
> remove that bit.
> 
>> [snip]
>> Weird artifcat of something (perhaps GPG due to signing?), my copy as
>> sent to the list is clean.  The script works perfectly if ran with an
>> interactive shell; right now the script isn't destructive, so I can run
>> it as many times as I like and it works fine.  The plan is to adjust the
>> script, I think you can see how, but not until it works as expected.
> 
> How are you calling it while logged in?  I'm starting to wonder if it's
> a difference between [da]sh and bash (or whatever your standard login
> shell is).  
> 
> Also, not entirely sure what the 'VER=$x" assignment is doing, as you
> don't seem to read $VER anywhere else.
> 
Something you might do just to see if the script is called at all is
to add a simple logging line right after the initial comments such as

echo $(date) mailarchive entered >>/tmp/mailarchive.log

If this proves that the script is called, then as Dan mentions, there
might be a shell incompatibility between what you use at the command
line and what the system shell is.  If so, add more echos until you
find the statement(s) which don't work.



Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Christian Seiler
On 06/09/2016 07:46 PM, Andrew McGlashan wrote:
> The order of the scripts alone allowed for everything to be very, very
> simple and no script relied upon any other; they were self dependent.
> If you wanted something to be available before your script, you made
> sure your numeric number after the S in the script name (or rather the
> symlink name back to the /etc/init.d directory file) was higher.  It was
> simple, it worked perfectly,

(In the following, for the most part I'm only going to talk about
sysvinit, ignoring any other init system.)

I think you are suffering from quite a bit of confusion. You need to
separate a few concepts apart:

 - the S**/K** symlinks
 - how they are generated
 - startup parallelization

Since very old versions of Debian (I don't remember which), you could
create symbolic links for init scripts like this:

 - /etc/rcX.d/SYYname -> /etc/init.d/name
 - /etc/rcX.d/KYYname -> /etc/init.d/name

   YY being a number between 00 and 99 here.

When changing a runlevel, first all the K** links (in order) of the
_new_ runlevel are run and then all the S** links (in order), also of
the _new_ runlevel are run. [1]

The symlinks would be generated by calling update-rc.d, e.g. via:

  update-rc.d NAME start 42 2 3 4 5 . stop 75 0 1 6 .

This would generate /etc/rc[2345].d/S42NAME, /etc/rc[016].d/K75NAME.

The main problem with this scheme alone is that the numbers are
actually really arbitrary, so it's not immediately clear which ones to
use when writing an init script.

This lead to multiple problems, most importantly that if you had two
otherwise unrelated services A and B, that don't have any dependency
with each other, so they have the same number, e.g. 20. But then a
service C comes a long that needs to be started before B but after A,
then A and B need to have different numbers regardless. But the numbers
of these services are fixed in the Debian package scripts, so the
maintainer of the package containing service C needed to convince the
maintainers of services A and B to change their number (and if they in
turn depend on other scripts, those have to be adapted, too). And this
doesn't even leave any room for modifications by the admin, who might
need this for local scripts that will never be part of Debian: even if
they could convince the maintainers of the packages they'd need to
squeeze their own script in between, they'd still have to wait for the
next Debian release or do some extensive local modifications.

Which is why people had been working on a replacement for a number of
years (the Debian wiki claims since 2002, but the link doesn't work).
In 2008 an alternative was implemented that was designed to work across
distributions, and the LSB standard for init scripts was born. [2]
(This was way before systemd btw.)

The integration into Debian took a bit longer, and Squeeze was the
first Debian version to fully incorporate that. (Although you could
still choose to use old system in Squeeze IIRC, support for which was
dropped in Wheezy.) Instead of having the numbers fixed, they would be
calculated when services were enabled.

Now, each service has to declare in form of the so-called LSB header
its dependencies relative to other services. Then, when services are
enabled/disabled, these dependencies taken into account and the numbers
are generated accordingly. (Which is why they rarely exceed 30 now,
unless you have really many services.)

This now has the huge advantage that if you squeeze in a service
between others, the numbers will automatically get recalculated.

The following LSB headers are understood in Debian:

 * Provides:
 Alternative names for the service for dependency resolution. For
 example, /etc/init.d/networking has the values 'networking' and
 'ifupdown' in there; so anything that orders against either of
 them will order against networking.

 * Required-Start:
 Anything that must be started before this script. insserv and
 update-rc.d will fail if the required script doesn't exist or is
 not enabled. (It will not enable that script automatically though,
 it will just complain.)

 * Required-Stop:
 Same as Required-Start, but just that these services have to be
 kept around during shutdown. Commonly the same as Required-Start,
 but not necessarily.

 * Should-Start/Should-Stop:
 Same as the Required- version, but if the other script is not
 enabled or not installed, don't consider that to be an error.

 * X-Start-After:/X-Stop-Before:
 The inverse dependency, meaning that
A: X-Start-After: B
 is equivalent to
B: Should-Start: A

  * Default-Start:
 List of runlevels where the service should be started in
 by default. Typically 2 3 4 5

  * Default-Stop:
 Typically 0 1 6

To enable a service initially, you'd call

  update-rc.d defaults NAME

And to remove the links:

  update-rc.d remove NAME

Important: only the options defaults, remove, enable and disable for
update-rc

Re: libreCAD, can't find help docs

2016-06-09 Thread Gene Heskett
On Thursday 09 June 2016 16:33:45 Jörg-Volker Peetz wrote:

> Gene Heskett wrote on 06/09/16 17:59:
> > On Thursday 09 June 2016 05:39:08 Jörg-Volker Peetz wrote:
> >> Yeah, you got a lot of stuff here ;-)
> >>
> >> The repositories all got the same priority 500 besides the
> >> wheezy-backports i386 target release which is set to priority 100.
> >> These priorities are normally set in /etc/apt/preferences. What is
> >> the contents of this file on your system?
> >
> > I don't have a file there, I have a preferences.d, and its empty.
> >
> >> The easiest to try for your specific request is to list also the
> >> dependencies explicitly in the apt-get command:
> >>
> >>apt-get -s -t wheezy-backports install freecad freecad-doc
> >> qt4-dev-tools libsoqt4-20 python-pivy
> >
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > Suggested packages:
> >   qt4-doc-html
> > Recommended packages:
> >   qt4-designer qt4-doc
> > The following NEW packages will be installed:
> >   freecad freecad-doc qt4-dev-tools
> > The following packages will be upgraded:
> >   libsoqt4-20 python-pivy
> > 2 upgraded, 3 newly installed, 0 to remove and 6 not upgraded.
> > Inst libsoqt4-20 [1.5.0-2] (1.6.0~e8310f-1~bpo70+1 Debian
> > Backports:/wheezy-backports [i386]) Inst qt4-dev-tools
> > (4:4.8.6+git64-g5dc8b2b+dfsg-3~bpo70+1 Debian
> > Backports:/wheezy-backports [i386]) Inst python-pivy
> > [0.5.0~v609hg-1] (0.5.0~v609hg-3~bpo70+1 Debian
> > Backports:/wheezy-backports [i386]) Inst freecad
> > (0.14.3702+dfsg-3~bpo70+1 Debian Backports:/wheezy-backports [i386])
> > Inst freecad-doc (0.14.3702+dfsg-3~bpo70+1 Debian
> > Backports:/wheezy-backports [all]) Conf libsoqt4-20
> > (1.6.0~e8310f-1~bpo70+1 Debian Backports:/wheezy-backports [i386])
> > Conf qt4-dev-tools (4:4.8.6+git64-g5dc8b2b+dfsg-3~bpo70+1 Debian
> > Backports:/wheezy-backports [i386]) Conf python-pivy
> > (0.5.0~v609hg-3~bpo70+1 Debian Backports:/wheezy-backports [i386])
> > Conf freecad (0.14.3702+dfsg-3~bpo70+1 Debian
> > Backports:/wheezy-backports [i386]) Conf freecad-doc
> > (0.14.3702+dfsg-3~bpo70+1 Debian Backports:/wheezy-backports [all])
> >
> > Which is as far as I got since the needed updated version of
> > python-pivy isn't available even from sloppy, and neither is the
> > newer version of libsoqt4-20 (1.6.0~e8310f-1~bpo70+1
>
> 
> Ah, the above command line has the "-s" switch for "simulate". Did you
> really try to perform the installation?
>
>   apt-get -t wheezy-backports install freecad freecad-doc
> qt4-dev-tools libsoqt4-20 python-pivy
>
> (in one command line).

No, and at the instant I have a far bigger problem.  The qdbus update 
that was pulled sometime in the last couple days is BUSTED. I didn't 
restart it at the time but got tired of being  pestered about it so I 
let synaptic restart it. Up to then it was working flawlessly and now 
its apparently broken big time.  I've 2 real printers here, and cups 
can't find them, and I was using it to tell kmail to do a mail fetch.

I've no clue how much else is not working now.

The output of qdbus (as me):
gene@coyote:~$ qdbus
:1.0
 org.kde.kcalc-6112
:1.1
 org.xfce.Terminal4
:1.17
:1.19
:1.2
:1.20
:1.26
:1.3
 org.gtk.vfs.Daemon
org.freedesktop.DBus

No cups, no kde, and I just reinstalled all 3 bits of it.

Is there a config workaround that will restore its function, I have now 
restarted it 5 times, but have only exercised my fingers, its dead Jim.

And my wife is going to want the pix printed that her niece just sent me 
two copies of at 15 megs a pop.

Cups, at localhost:631/printers is saying it cannot locate the printer.

But I can ping the scanner in a couple milliseconds, its an MFP, 
accessable at a local ip address.  So add networking as a 2nd thing it 
cannot do now.

Help!

>
> Regards,
> jvp.


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: libreCAD, can't find help docs

2016-06-09 Thread Lisi Reisz
On Thursday 09 June 2016 23:01:16 Gene Heskett wrote:
>  org.kde.kcalc-6112

Probably absolutely irrelevant - but why have you got kde-anything??  (For 
general info, Gene is running TDE 14, not kde.)

Lisi



Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Christian Seiler
On 06/09/2016 10:10 PM, Andrew McGlashan wrote:
> What I have now is that with some extra "smarts" that stops the original
> concept from working as intended.  The smarts is meant to allow for
> faster startup and to tie in dependancies; to me, it is trying to be too
> smart and that is where the problem lies.

Faster startup was never the initial goal of dependency-based boot,
that came afterwards. The main goal was always to describe startup
properly, because you want ordering to reflect what services actually
mean relative to another. And just pulling some arbitrary numbers out
of thin air was NEVER a good idea in my eyes.

> I see within the /etc/init.d/ scripts that there is all this extra junk
> at the top and there are .depend.* files in that directory too.

The .depend.* is for Makefile-based boot (startpar uses that
internally). You can still disable that and go back to a fully
serialized version with sysvinit.

> I am thinking that these extras are the reason why it isn't running the
> script at startup as expected.

No, the reason is that you appear to have pulled the number 02 out of
thin air and expect it to work, without giving a thought about what
you want to actually order it against. (See my other email.)

> Those extras weren't not part of the
> more original sysv init setup; and, it may be why lots of Debian and
> other people decided that the sysvinit was broken (due to the extras)...

No, in the contrary. When I first saw Gentoo's system in the mid 2000s,
which was based exclusively on dependencies (but still used scripts on
top of sysvinit), I thought: wow, this is SO much better than all the
other distros at that time.

To me, anything that doesn't allow me to have dependencies is not worth
my consideration. I've often had to write own services that hook into
the system startup at certain points. And being able to specify
dependencies is something absolutely essential here. Because then I
actually semantically describe why I want a service in a given position
in the boot sequence. Doing it in any other way is madness to me.

There's a reason why _every_ modern init system supports dependencies
(systemd, Solaris's SMF, nosh, OpenRC, ...), because in the modern
world, where so many things need to be taken care of at boot, it's
absolutely essential to be able to express the relations betwen all
the services that need to be started explicitly in form of
dependencies, otherwise you'd never be able to really tackle the
complexity.

> and hence why we ended up with systemd.

You're right and you're wrong here.

You're right in that the way dependency-based boot is handled in
sysvinit+initscripts-based systems is not really nice, because
dependencies are actually kind of implemented on top of an older model,
instead of being treated as a first-class citizen. (And it's not
complete, because the dependencies are only considered when booting,
not when manually starting/stopping services. [1])

You're wrong in the sense that nobody on the systemd side of the
argument wants to go back to non-dependency-based boot. So if you think
that had dependency-based boot never been added to the init script
logic, systemd wouldn't have been born or at least not have gained any
traction - it would be the complete opposite, some people would have
wanted something like systemd even moreso.

Regards,
Christian

[1] Gentoo's set of scripts actually already did that 10 years ago,
with the caveat that it didn't have proper state tracking, only an
emulation of that, which is why the 'zap' action existed (exists?)
there.




signature.asc
Description: OpenPGP digital signature


Re: libreCAD, can't find help docs

2016-06-09 Thread Gene Heskett
On Thursday 09 June 2016 18:05:02 Lisi Reisz wrote:

> On Thursday 09 June 2016 23:01:16 Gene Heskett wrote:
> >  org.kde.kcalc-6112
>
> Probably absolutely irrelevant - but why have you got kde-anything?? 
> (For general info, Gene is running TDE 14, not kde.)
>
> Lisi

That particular kcalc is an older kcalc, with a bit field display of the 
result, rather handy when designing an IO port address decoder on a 
smaller (16 bit) machine.

I think it was discussed on the tde list when I was asking who neutered 
the current version, so I have the two versions installed in different 
paths, and they seem to co-exist quite peacefully.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: network managet and 10.42.0.1/24

2016-06-09 Thread Michael Milliman



On 06/09/2016 03:59 PM, Bhasker C V wrote:

Hi all,

 I am at a loss to find out how to change 10.42.0.1/24 
 and 10.42.0.x/24 as ip and dhcp range which is 
used by network manager when configuring a wireless card as an AP. I 
dont see the setting anywhere and cant find a valid doc in the 
internet too

Is this value had-coded in the source-code of NetworkManager ?

Has anyone got an experience of making Network manager work aas a DHCP 
server with custom DHCP range ? please if you can share your experiences


The Debian Administrator's Handbook has the information for setting up a 
DHCP server in it.  Check out the following link:


https://debian-handbook.info/browse/stable/sect.dhcp.html

That ought to get you started, at least.

thanks
Bhasker


--
73's
Mike, WB5VQX



Re: Version and Release

2016-06-09 Thread cbannister
On Wed, Jun 08, 2016 at 11:19:19AM +, Mark Fletcher wrote:
> There aren't 3 versions of each release, there's only one. Stable, testing
> and unstable are nicknames / status codes applied to a given release at any
> stage of its lifecycle. Right now Jessie is stable, Stretch is testing. The
> unstable release is always called Sid, that never changes.
> 
> When stretch is considered stable enough, it will get a release number
> (9.0), and be referred to as stable. At this point Jessie will be
> "oldstable" and wheezy will pass into legend. Whatever Sid looks like at
> that time, will get a new Toy Story character name assigned, and become the

AIUI, the name is already chosen and will be 'Buster'.

-- 
The media's the most powerful entity on earth. 
They have the power to make the innocent guilty 
and to make the guilty innocent, and that's power.
 -- Malcolm X



Re: Version and Release

2016-06-09 Thread cbannister
On Wed, Jun 08, 2016 at 04:45:50PM +, Andrew M.A. Cater wrote:
> 
> Buster - Debian 10 - will be the release after Stretch

ooops, should read whole thread before replying to a message.

-- 
The media's the most powerful entity on earth. 
They have the power to make the innocent guilty 
and to make the guilty innocent, and that's power.
 -- Malcolm X



Re: Unexpected \Gamma's in tex

2016-06-09 Thread EenyMeenyMinyMoa
"platex" is a command used by Japanese-tex user.

I'm sorry.
There was two-byte blanks in my tex source
,though they aren't apparent in my e-mail.
When I removed them, everything was OK.
Below is a log when compiling a tex source with two-byte blanks.

$ platex 3.tex
This is e-pTeX, Version 3.14159265-p3.5-130605-2.6 (utf8.euc) (TeX Live
2015/dev/Debian) (preloaded format=platex)
restricted \write18 enabled.
entering extended mode
(./3.tex
pLaTeX2e <2006/11/10> (based on LaTeX2e <2014/05/01> patch level 0)
Babel <3.9l> and hyphenation patterns for 11 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))

LaTeX Warning: Unused global option(s):
[28pt,a4j].

(./3.aux) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd)
! Not two-byte family.
l.5 ( \alpha
\in \mathbb{C} )
?
! Not two-byte family.
l.5 ( \alpha \in
\mathbb{C} )
?
[1] (./3.aux) )
Output written on 3.dvi (1 page, 376 bytes).
Transcript written on 3.log.


Cheers,
EenyMeenyMinyMoa

2016-06-09 10:56 GMT+08:00 EenyMeenyMinyMoa :

> Hi.
>
> \documentclass[28pt,a4j]{article}
> \usepackage{amsmath,amssymb}
> \begin{document}
> \begin{eqnarray*}
> ( \alpha \in \mathbb{C} )
> \end{eqnarray*}
> \end{document}
>
> I compiled this tex source by
> $ platex 3.tex
> But unexpected \Gamma's as the attached file appeared.
> Why?
>
>
> Cheers,
> EenyMeenyMinyMoa
>


bash help please

2016-06-09 Thread Gene Heskett
Greetings; 

A bash script that has worked most of a decade now refuses.

For instance, assume that var InMail is = "gene", and can be echoed from 
the command line using $InMail like this.
gene@coyote:~$ echo $InMail
gene
But I'll be switched if I can get a result from a line of code resembling 
this from the command line while attempting to troubleshoot a 110 line 
bash script: which asks "if test [${InMail} = "gene"]
  then
-
 elif (another name)
yadda yadda

gene@coyote:~$ echo `test [${InMail} = "gene"]`

All I get is the linefeed.  Obviously I'm losing it, so how do I 
translate and get usefull output for troubleshooting?


Thanks bashers;

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: bash help please

2016-06-09 Thread Lars Noodén
On 06/10/2016 05:41 AM, Gene Heskett wrote:
> gene@coyote:~$ echo `test [${InMail} = "gene"]`
> 
> All I get is the linefeed.  Obviously I'm losing it, so how do I 
> translate and get usefull output for troubleshooting?

One option is to use 'set -x' there in the script.  It can go anywhere
above your problem and will show each line as it is executed.  The
contents of ${InMail} that are actually getting passed to test will be
visible.

Regards,
Lars



Re: bash help please

2016-06-09 Thread David Wright
On Thu 09 Jun 2016 at 22:41:27 (-0400), Gene Heskett wrote:
> A bash script that has worked most of a decade now refuses.
> 
> For instance, assume that var InMail is = "gene", and can be echoed from 
> the command line using $InMail like this.
> gene@coyote:~$ echo $InMail
> gene
> But I'll be switched if I can get a result from a line of code resembling 
> this from the command line while attempting to troubleshoot a 110 line 
> bash script: which asks "if test [${InMail} = "gene"]
> then
>   -
>elif (another name)
>   yadda yadda
> 
> gene@coyote:~$ echo `test [${InMail} = "gene"]`
> 
> All I get is the linefeed.  Obviously I'm losing it, so how do I 
> translate and get usefull output for troubleshooting?

$ `[ ${InMail} = "gene" ]` ; echo $?
0
$ `[ ${InMail} = "xgene" ]` ; echo $?
1
$ `test ${InMail} = "gene"` ; echo $?
0
$ `test ${InMail} = "xgene"` ; echo $?
1
$ 

elif needs [], not (), and it needs a then too.

[ is a command like test, so it must be followed by a space
before its argument.

Often the easiest way of solving these is grep -A ... used with
/etc/init.d/*

Cheers,
David.



Re: bash help please

2016-06-09 Thread David Christensen

On 06/09/2016 07:41 PM, Gene Heskett wrote:

A bash script that has worked most of a decade now refuses.

For instance, assume that var InMail is = "gene", and can be echoed from
the command line using $InMail like this.
gene@coyote:~$ echo $InMail
gene
But I'll be switched if I can get a result from a line of code resembling
this from the command line while attempting to troubleshoot a 110 line
bash script: which asks "if test [${InMail} = "gene"]
  then
-
 elif (another name)
yadda yadda

gene@coyote:~$ echo `test [${InMail} = "gene"]`

All I get is the linefeed.  Obviously I'm losing it, so how do I
translate and get usefull output for troubleshooting?



'test' and '[ ... ]' are very similar.  I use the latter.  I definitely 
don't use both in one line.



When comparing variables against string constants in '[ ... ]' 
expressions, I put quotes around the variables.



Here's a short script that seems to work correctly:

2016-06-09 20:48:40 dpchrist@t7400 ~/sandbox/bash
$ cat gene-heskett.sh
#!/bin/bash
export InMail="gene"
echo "InMail=${InMail}"
if [ "${InMail}" = "gene" ]
then
echo "InMail is gene"
elif [ "$InMail" = "david" ]
then
echo "InMail is david"
else
echo "InMail unknown"
fi


Here's a run:

2016-06-09 20:49:30 dpchrist@t7400 ~/sandbox/bash
$ ./gene-heskett.sh
InMail=gene
InMail is gene


Here's a run with the '-x' option:

2016-06-09 20:56:19 dpchrist@t7400 ~/sandbox/bash
$ bash -x gene-heskett.sh
+ export InMail=gene
+ InMail=gene
+ echo InMail=gene
InMail=gene
+ '[' gene = gene ']'
+ echo 'InMail is gene'
InMail is gene


If that doesn't help, post a complete script that demonstrates the problem.


David



Re: Locales, Keyboard Layouts

2016-06-09 Thread David Wright
On Thu 09 Jun 2016 at 10:56:44 (-0600), Levi Darrell wrote:
> I am using the lxde desktop environment with xorg. I have installed the
> "Keyboard Layout Handler" applet, and I am attempting to use the French and
> Latin American keyboard layouts. Single-keystroke characters, such as ñ οr
> ç work just fine, but I am having difficulty inputting characters which
> require multiple keystrokes, such as á, í, ú, ó, ö, ï, ü, ê, â, î, ô, û,
> etc.
> 
> When everything is working properly, these characters can be produced
> without the use of a Compose or AltGr key. They are composed of a
> two-keystroke combination of the accent mark--^, ¨; ´, etc.-- and the
> letter. Strangely, these keystroke combinations work just fine in
> LibreOffice Writer, but when I try to input them into a web browser or
> terminal shell emulator they look like this instead: ´i, ´e, ´u, ´a, ´o,
> ^e, ^o, ^a, ^u, etc.
> 
> How can I get these keyboard layouts to function properly?

I would have thought that you would put XKBLAYOUT="fr,latam"
in your /etc/default/keyboard which gives you deadkeys by default.
That's for X itself (I know nothing about LXDE) but also the VCs.

dpkg-reconfigure keyboard-configuration
will update the VC keyboards. I always run
dpkg-reconfigure console-setup
at the same time because I sometimes forget which configures what.

HOWEVER, only run those two commands when X isn't running.
At all. Not in a VC that you reached with Ctrl + Alt + F[1-6].
If X is running, all sorts of weirdnesses result.
This might be the answer to your other posting.

Cheers,
David.



Re: bash help please

2016-06-09 Thread Gene Heskett
On Thursday 09 June 2016 23:08:32 Lars Noodén wrote:

> On 06/10/2016 05:41 AM, Gene Heskett wrote:
> > gene@coyote:~$ echo `test [${InMail} = "gene"]`
> >
> > All I get is the linefeed.  Obviously I'm losing it, so how do I
> > translate and get usefull output for troubleshooting?
>
> One option is to use 'set -x' there in the script.  It can go anywhere
> above your problem and will show each line as it is executed.  The
> contents of ${InMail} that are actually getting passed to test will be
> visible.
>
> Regards,
> Lars

I am about to call up a copy of amrecover, and restore that script to one 
that was working last week, I cannot get by the syntax errors between fi 
& done in a while loop with a bunch of if-then-elif-fi's in it.  Last 
weeks wasn't perfect, but it did work, and everytime I look something up 
in a man bash & try to fix it, its worse. 

The set -x helped, and maybe I can use that to see what the original is 
doing.

So for now, thanks all.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: bash help please

2016-06-09 Thread Gene Heskett
On Thursday 09 June 2016 23:50:35 David Wright wrote:

> On Thu 09 Jun 2016 at 22:41:27 (-0400), Gene Heskett wrote:
> > A bash script that has worked most of a decade now refuses.
> >
> > For instance, assume that var InMail is = "gene", and can be echoed
> > from the command line using $InMail like this.
> > gene@coyote:~$ echo $InMail
> > gene
> > But I'll be switched if I can get a result from a line of code
> > resembling this from the command line while attempting to
> > troubleshoot a 110 line bash script: which asks "if test [${InMail}
> > = "gene"]
> >   then
> > -
> >  elif (another name)
> > yadda yadda
> >
> > gene@coyote:~$ echo `test [${InMail} = "gene"]`
> >
> > All I get is the linefeed.  Obviously I'm losing it, so how do I
> > translate and get usefull output for troubleshooting?
>
> $ `[ ${InMail} = "gene" ]` ; echo $?
> 0
> $ `[ ${InMail} = "xgene" ]` ; echo $?
> 1
> $ `test ${InMail} = "gene"` ; echo $?
> 0
> $ `test ${InMail} = "xgene"` ; echo $?
> 1
> $
>
> elif needs [], not (), and it needs a then too.
>
> [ is a command like test, so it must be followed by a space
> before its argument.
>
> Often the easiest way of solving these is grep -A ... used with
> /etc/init.d/*

This script is home brew, and has never had a starter in /etc/init.d
Its normally something I start after the kmail gui is up and running.  
But restarting tdm-trinity apparently doesn't kill any background 
daemons which this normally runs as, and the excessive downtime of kmail 
let it stuff dcops buffer full, and then everything that needed dcop 
promptly fell over too, including cups.

The only recovery from that is a reboot which I did, but I screwed the 
pooch on this script before the reboot.  Big dummy at work of course.  
BTDT, 50 times or more over the last decade plus I've been doing this to 
offload the mail fetching from kmail as it locks up everything while its 
doing that, 5 minutes plus at a time back when  all this was done on 
dialup on a 2400 baud modem.  Thats possibly before some peoples time 
here on this list. :)

And I just amrecover'd a week old version that is working fairly well 
although its burning up the shell history file since I put a set -x in 
the top of it.  So I can at least go get some zz's.

> Cheers,
> David.

Thanks David, I'll hit on this again on another day.


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: bash help please

2016-06-09 Thread Gene Heskett
On Friday 10 June 2016 00:00:12 David Christensen wrote:

> On 06/09/2016 07:41 PM, Gene Heskett wrote:
> > A bash script that has worked most of a decade now refuses.
> >
> > For instance, assume that var InMail is = "gene", and can be echoed
> > from the command line using $InMail like this.
> > gene@coyote:~$ echo $InMail
> > gene
> > But I'll be switched if I can get a result from a line of code
> > resembling this from the command line while attempting to
> > troubleshoot a 110 line bash script: which asks "if test [${InMail}
> > = "gene"]
> >   then
> > -
> >  elif (another name)
> > yadda yadda
> >
> > gene@coyote:~$ echo `test [${InMail} = "gene"]`
> >
> > All I get is the linefeed.  Obviously I'm losing it, so how do I
> > translate and get usefull output for troubleshooting?
>
> 'test' and '[ ... ]' are very similar.  I use the latter.  I
> definitely don't use both in one line.
>
>
> When comparing variables against string constants in '[ ... ]'
> expressions, I put quotes around the variables.
>
>
> Here's a short script that seems to work correctly:
>
>   2016-06-09 20:48:40 dpchrist@t7400 ~/sandbox/bash
>   $ cat gene-heskett.sh
>   #!/bin/bash
>   export InMail="gene"
>   echo "InMail=${InMail}"
>   if [ "${InMail}" = "gene" ]
>   then
>   echo "InMail is gene"
>   elif [ "$InMail" = "david" ]
>   then
>   echo "InMail is david"
>   else
>   echo "InMail unknown"
>   fi
>
>
> Here's a run:
>
>   2016-06-09 20:49:30 dpchrist@t7400 ~/sandbox/bash
>   $ ./gene-heskett.sh
>   InMail=gene
>   InMail is gene
>
>
> Here's a run with the '-x' option:
>
>   2016-06-09 20:56:19 dpchrist@t7400 ~/sandbox/bash
>   $ bash -x gene-heskett.sh
>   + export InMail=gene
>   + InMail=gene
>   + echo InMail=gene
>   InMail=gene
>   + '[' gene = gene ']'
>   + echo 'InMail is gene'
>   InMail is gene
>
>
> If that doesn't help, post a complete script that demonstrates the
> problem.
>
>
> David

I might just take you up on that when I am ready to add another layer of 
bulletproofing to it.  Its about 110 lines now.
Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: bash help please

2016-06-09 Thread David Wright
On Fri 10 Jun 2016 at 01:04:40 (-0400), Gene Heskett wrote:
> On Thursday 09 June 2016 23:50:35 David Wright wrote:
> > On Thu 09 Jun 2016 at 22:41:27 (-0400), Gene Heskett wrote:
> > > A bash script that has worked most of a decade now refuses.
> > >
> > > For instance, assume that var InMail is = "gene", and can be echoed
> > > from the command line using $InMail like this.
> > > gene@coyote:~$ echo $InMail
> > > gene
> > > But I'll be switched if I can get a result from a line of code
> > > resembling this from the command line while attempting to
> > > troubleshoot a 110 line bash script: which asks "if test [${InMail}
> > > = "gene"]
> > > then
> > >   -
> > >elif (another name)
> > >   yadda yadda
> > >
> > > gene@coyote:~$ echo `test [${InMail} = "gene"]`
> > >
> > > All I get is the linefeed.  Obviously I'm losing it, so how do I
> > > translate and get usefull output for troubleshooting?
> >
> > $ `[ ${InMail} = "gene" ]` ; echo $?
> > 0
> > $ `[ ${InMail} = "xgene" ]` ; echo $?
> > 1
> > $ `test ${InMail} = "gene"` ; echo $?
> > 0
> > $ `test ${InMail} = "xgene"` ; echo $?
> > 1
> > $
> >
> > elif needs [], not (), and it needs a then too.
> >
> > [ is a command like test, so it must be followed by a space
> > before its argument.
> >
> > Often the easiest way of solving these is grep -A ... used with
> > /etc/init.d/*
> 
> This script is home brew, and has never had a starter in /etc/init.d

Um, not my intention to make you try.

Look, /etc/init.d/* is a collection of scripts that work.
grep searches files for patterns.
Put them together and you can bash away by example. Try

$ grep -A 6 -B 6 elif /etc/init.d/* | less

and you will get lots of examples of multiple tests involving strings
(like yours), numbers, arithmetic xpressions etc. all syntactically
correct. Copy what you need, either from there or the original file.

Cheers,
David.



Re: Linux startup, Wheezy -- a required script won't run on startup, but can run manually without any trouble

2016-06-09 Thread Andrew McGlashan
Hi,

I'm not sure my end solution is the best.

TLDR; -- I've now got the script working as desired, but I have more to
say below, including a thank you for Christian in particular.  And I do
have other queries.


I want the script to run once only at bootup, before exim4 and also
before dovecot, it isn't a service; but I've moulded the script to
appear like one in order to achieve the desired result.  And there is no
need to run it ever again after startup and there is nothing to do at
shutdown.

I couldn't use /etc/rc.local as that would act after everything was up
and running normally.  Probably I really should have the script
somewhere else, but I'm not sure where exactly would be best.  Hence why
it ended up in the initscript area.  Perhaps people have some other
suggestions?  I would be happy to hear them here.

On 10/06/2016 7:29 AM, Christian Seiler wrote:
> On 06/09/2016 07:46 PM, Andrew McGlashan wrote:
>> The order of the scripts alone allowed for everything to be very, very
>> simple and no script relied upon any other; they were self dependent.
>> If you wanted something to be available before your script, you made
>> sure your numeric number after the S in the script name (or rather the
>> symlink name back to the /etc/init.d directory file) was higher.  It was
>> simple, it worked perfectly,
> 
> (In the following, for the most part I'm only going to talk about
> sysvinit, ignoring any other init system.)
> 
> I think you are suffering from quite a bit of confusion. You need to
> separate a few concepts apart:

Yes.

>  - the S**/K** symlinks
>  - how they are generated
>  - startup parallelization
> 
> Since very old versions of Debian (I don't remember which), you could
> create symbolic links for init scripts like this:
> 
>  - /etc/rcX.d/SYYname -> /etc/init.d/name
>  - /etc/rcX.d/KYYname -> /etc/init.d/name
> 
>YY being a number between 00 and 99 here.

Yes, but if you did a simple: "ls -l S*" or "ls -l K*", then the order
was properly determined.

> The main problem with this scheme alone is that the numbers are
> actually really arbitrary, so it's not immediately clear which ones to
> use when writing an init script.

Not arbitrary... I numbered them according to the desired sequence,
knowing myself which processes needed to be started before others.  So,
by design of the chosen numbers and script names, I was previously able
to run scripts in the order that I knew was required by my own resolve
and dependencies were not complex enough to require /special/ processing
outside my own resolve.

> To enable a service initially, you'd call
> 
>   update-rc.d defaults NAME

After script adjustments

# update-rc.d archive-system-mail remove
update-rc.d: using dependency based boot sequencing


# update-rc.d archive-system-mail defaults
update-rc.d: using dependency based boot sequencing

>> Now I have sysvinit isntalled on wheezy, it is failing to run a simple
>> script during system boot (as part of a planed reboot) and I cannot work
>> out why.
>>
>> # ls -l /etc/{init.d,rc*.d}/*archive*
>> -rwxr-xr-x 1 root root 1453 Jun  8 04:12 /etc/init.d/archive-system-mail
>> lrwxrwxrwx 1 root root   29 Jun  3 23:30
>> /etc/rc2.d/S02archive-system-mail -> ../init.d/archive-system-mail
>> lrwxrwxrwx 1 root root   29 Jun  4 03:06
>> /etc/rc3.d/S02archive-system-mail -> ../init.d/archive-system-mail
>> lrwxrwxrwx 1 root root   29 Jun  4 03:07
>> /etc/rc4.d/S02archive-system-mail -> ../init.d/archive-system-mail
>> lrwxrwxrwx 1 root root   29 Jun  4 03:08
>> /etc/rc5.d/S02archive-system-mail -> ../init.d/archive-system-mail

I still have low numbers, but done the correct way via insserv.

# ls -l /etc/{init.d,rc*.d}/*archive*
-rwxr-xr-x 1 root root 2402 Jun 10 15:19 /etc/init.d/archive-system-mail
lrwxrwxrwx 1 root root   29 Jun 10 15:38
/etc/rc0.d/K02archive-system-mail -> ../init.d/archive-system-mail
lrwxrwxrwx 1 root root   29 Jun 10 15:38
/etc/rc1.d/K02archive-system-mail -> ../init.d/archive-system-mail
lrwxrwxrwx 1 root root   29 Jun 10 15:38
/etc/rc2.d/S02archive-system-mail -> ../init.d/archive-system-mail
lrwxrwxrwx 1 root root   29 Jun 10 15:38
/etc/rc3.d/S02archive-system-mail -> ../init.d/archive-system-mail
lrwxrwxrwx 1 root root   29 Jun 10 15:38
/etc/rc4.d/S02archive-system-mail -> ../init.d/archive-system-mail
lrwxrwxrwx 1 root root   29 Jun 10 15:38
/etc/rc5.d/S02archive-system-mail -> ../init.d/archive-system-mail
lrwxrwxrwx 1 root root   29 Jun 10 15:38
/etc/rc6.d/K02archive-system-mail -> ../init.d/archive-system-mail

>> Now, I want the archiving script to run on system startup, I don't want
>> dovecot or exim4 to be running when the script starts, it simply needs
>> to have the /backup and /var file systems mounted to do it's required job.
> 
> Ok, so if you depend on local or remote file systems, you need to
> depend on $local_fs and $remote_fs, respectively. If all your file
> systems are local, use $local_fs - otherwise $remote_fs (or both).
> 
> (Technically, $syslog mi

Re: Changing tty shells

2016-06-09 Thread Marc Shapiro

On 06/09/2016 10:00 AM, Levi Darrell wrote:

Hi Debian Users List,

My computer is set to boot into a tty shell. I manually enter X Server 
by issuing the startx command. Previously, I had been able to switch 
tty shells with the keystroke combination Alt + F[1-6]. After 
attempting to reconfigure they keyboard and locales to solve an 
unrelated problem, suddenly this no longer works.


I can still change shells from within X Server by using the 
combination Ctrl + Alt + F[1-6], but I don't want to have to log into 
X Server in order to be able to use all of my tty shells. What could 
have gone wrong, and where do I look to fix the problem?


Thanks,

Levi


On my box, Alt + F[1-6] does not work in the console either, but Ctrl + 
Alt + F[1-6] works fine from the console, just as it does from X.



Marc

oenococcus bacteria and health risks



Re: bash help please

2016-06-09 Thread Gene Heskett
On Friday 10 June 2016 01:34:14 David Wright wrote:

> On Fri 10 Jun 2016 at 01:04:40 (-0400), Gene Heskett wrote:
> > On Thursday 09 June 2016 23:50:35 David Wright wrote:
> > > On Thu 09 Jun 2016 at 22:41:27 (-0400), Gene Heskett wrote:
> > > > A bash script that has worked most of a decade now refuses.
> > > >
> > > > For instance, assume that var InMail is = "gene", and can be
> > > > echoed from the command line using $InMail like this.
> > > > gene@coyote:~$ echo $InMail
> > > > gene
> > > > But I'll be switched if I can get a result from a line of code
> > > > resembling this from the command line while attempting to
> > > > troubleshoot a 110 line bash script: which asks "if test
> > > > [${InMail} = "gene"]
> > > >   then
> > > > -
> > > >  elif (another name)
> > > > yadda yadda
> > > >
> > > > gene@coyote:~$ echo `test [${InMail} = "gene"]`
> > > >
> > > > All I get is the linefeed.  Obviously I'm losing it, so how do I
> > > > translate and get usefull output for troubleshooting?
> > >
> > > $ `[ ${InMail} = "gene" ]` ; echo $?
> > > 0
> > > $ `[ ${InMail} = "xgene" ]` ; echo $?
> > > 1
> > > $ `test ${InMail} = "gene"` ; echo $?
> > > 0
> > > $ `test ${InMail} = "xgene"` ; echo $?
> > > 1
> > > $
> > >
> > > elif needs [], not (), and it needs a then too.
> > >
> > > [ is a command like test, so it must be followed by a space
> > > before its argument.
> > >
> > > Often the easiest way of solving these is grep -A ... used with
> > > /etc/init.d/*
> >
> > This script is home brew, and has never had a starter in /etc/init.d
>
> Um, not my intention to make you try.
>
> Look, /etc/init.d/* is a collection of scripts that work.
> grep searches files for patterns.
> Put them together and you can bash away by example. Try
>
> $ grep -A 6 -B 6 elif /etc/init.d/* | less
>
> and you will get lots of examples of multiple tests involving strings
> (like yours), numbers, arithmetic xpressions etc. all syntactically
> correct. Copy what you need, either from there or the original file.
>
> Cheers,
> David.

Ah, I see.  Been guilty of that before, but my memory isn't what it was 
even 40 years ago, darn it.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: Bluetooth speaker: visible, but no sound

2016-06-09 Thread W. Martin Borgert
On 2016-06-08 10:30, W. Martin Borgert wrote:
> pavucontrol shows the speaker as "Output Device". But xfce4-mixer,
> while showing the speaker in the "Sound card" dropdown, does not
> allow me to actually select the device. Also, I wonder what device
> string I have to put into my .quodlibet/config to use the speaker
> (gst_pipeline = pulsesink device=???).

Found out by myself:

gst_pipeline = pulsesink device=bluez_sink.AB_CD_EF_12_34_56

Now quodlibet works with Bluetooth speaker, xfce4-mixer does
not, nor do the volume buttons of the keyboard.

Cheers



need help on Debian machine monitoring.

2016-06-09 Thread Muhammad Yousuf Khan
i have been using different monitoring tools for different time period.
like cacti and nagios. now this time for few different level of requirement
i have selected VNSTATI. to create bandwidth usage graphs.

The problem with vnstati is when i use -d it shows the result of last 30
days and now i need a vnstati chart on back date. like at least a month
old.  let say i need the output of whole month of May 2016 only. how can
this happen. please help.

Any information or advice will be highly appreciated.


Thanks,
Yousuf