Re: list installed packages present only in stable

2016-10-25 Thread kamaraju kusumanchi
On Tue, Oct 25, 2016 at 1:49 PM, Michael Lange  wrote:
>
> Nice. After these suggestions I hastily put together a small python
> script, that might come close to what Raju wants:
>
> #!/usr/bin/python
>
> from commands import getoutput
>
> allpkgs = getoutput('apt-show-versions -b').splitlines()
>
> jessie = [p for p in allpkgs if 'jessie' in p]
> stretch = [p for p in allpkgs if 'stretch' in p]
> sid = [p for p in allpkgs if 'sid' in p]
>
> onlyjessie = [p for p in jessie if not p in (stretch+sid)]
> for p in onlyjessie:
> print(p.split(':')[0])
>

Thanks for the script. But I do not think it does what I want. For
example, currently there is a python3.4 package installed on my
system.

 % dpkg -l python3.4 | cut -c 1-72
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Tri
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name   Version  Architecture Description
+++-==---===
ii  python3.4  3.4.2-1  amd64Interactive high-level obje


The output of apt-show-versions does not contain the word jessie. So
it will not get picked up in the "jessie" variable of your script.

 % apt-show-versions -b | grep "\"
python3.4:amd64 3.4.2-1 installed: No available version in archive
python3.4-minimal:amd64 3.4.2-1 installed: No available version in archive

I think what I need is something that looks against the repository
itself. For example

 % rmadison python3.4
debian:
 python3.4 | 3.4.2-1 | jessie-kfreebsd | source, kfreebsd-amd64, kfreebsd-i386
 python3.4 | 3.4.2-1 | jessie  | source, amd64, arm64, armel,
armhf, i386, mips, mipsel, powerpc, ppc64el, s390x
new:

which shows that this package is available only in Jessie but no
corresponding version in Stretch or Sid.

But rmadison itself is slow. So I need something that caches this
information on the local computer for all the packages.

raju
-- 
Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog



Re: kernel header for 4.6.0-1-686

2016-10-25 Thread Joe Pfeiffer
Harry Putnam  writes:

> Juanjo Benages  writes:
>
>> El 25/10/16 a las 19:48, Harry Putnam escribió:
>>> Where can I get the kernel headers for my kernel 4.6.0-1-686?
>>>
>>> apt-get does not show that version.
>>>
>>> Googling for awhile here and not finding it either
>>>
>>> Trying to install vbox guest additions and it needs those headers.
>>>
>>>
>>>
>> Have you tried on snapshot.debian.org? It should be there.
>
> Using the binary tool search I finally found linux-headers-4.6.0-1-686
> But when I click on it, it listes available versions all of which
> start at 4.6.1 or better.
>
> I guess that means its not there eh?
>
> Any other suggestions?

Any particular reason you need that particular version?  Could you
upgrade your virtualbox VM to a different kernel and use the headers
for that kernel (or if I'm misremembering which kernel requires the
headers, upgrade the host machine kernel)?



Re: kernel header for 4.6.0-1-686

2016-10-25 Thread Harry Putnam
Juanjo Benages  writes:

> El 25/10/16 a las 19:48, Harry Putnam escribió:
>> Where can I get the kernel headers for my kernel 4.6.0-1-686?
>>
>> apt-get does not show that version.
>>
>> Googling for awhile here and not finding it either
>>
>> Trying to install vbox guest additions and it needs those headers.
>>
>>
>>
> Have you tried on snapshot.debian.org? It should be there.

Using the binary tool search I finally found linux-headers-4.6.0-1-686
But when I click on it, it listes available versions all of which
start at 4.6.1 or better.

I guess that means its not there eh?

Any other suggestions?



Re: kernel header for 4.6.0-1-686

2016-10-25 Thread Juanjo Benages

El 25/10/16 a las 19:48, Harry Putnam escribió:

Where can I get the kernel headers for my kernel 4.6.0-1-686?

apt-get does not show that version.

Googling for awhile here and not finding it either

Trying to install vbox guest additions and it needs those headers.




Have you tried on snapshot.debian.org? It should be there.



kernel header for 4.6.0-1-686

2016-10-25 Thread Harry Putnam
Where can I get the kernel headers for my kernel 4.6.0-1-686?

apt-get does not show that version.

Googling for awhile here and not finding it either

Trying to install vbox guest additions and it needs those headers.




Re: list installed packages present only in stable

2016-10-25 Thread Michael Lange
On Tue, 25 Oct 2016 11:24:00 -0400
Cindy-Sue Causey  wrote:

> Oooohhh, shiny new toy that I just found because of you. This came via
> "man apt-show-versions":
> 
> To upgrade all packages in testing:
> 
>apt-get install `apt-show-versions -u -b | grep testing`
> 
> Actually having some cognitive abilities functioning today, I further
> stepped out on a limb and just ran:
> 
> apt-cache show `apt-show-versions -u -b | grep sid`
> 
> It gave me some things back! One more test:
> 
> apt-cache show `apt-show-versions -u -b | grep jessie`
> 
> Returned this error:
> 
> E: No packages found
> 
> Woohoo!!! (Because it's giving varying answers based on query changes)
> 
> Yes, no, I understand that still might not quite be the answer sought
> after in this thread, BUT it *is* pulling based on [release versions].
> That means at least some of the developer work is already addressed if
> this in fact doesn't quite provide the desired results BUT would work
> with some flag tweaking.

Nice. After these suggestions I hastily put together a small python
script, that might come close to what Raju wants:

#!/usr/bin/python

from commands import getoutput

allpkgs = getoutput('apt-show-versions -b').splitlines()

jessie = [p for p in allpkgs if 'jessie' in p]
stretch = [p for p in allpkgs if 'stretch' in p]
sid = [p for p in allpkgs if 'sid' in p]

onlyjessie = [p for p in jessie if not p in (stretch+sid)]
for p in onlyjessie:
print(p.split(':')[0])

Regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

We'll pivot at warp 2 and bring all tubes to bear, Mr. Sulu!



Re: Permissions for an entire PARTITION

2016-10-25 Thread Jochen Spieker
Richard Owlett:
> On 10/25/2016 10:40 AM, Greg Wooledge wrote:
>> 
>> The simplest way would be to synchronize your UID across all your
>> installed operating systems.  If your UID is, let's say, 1000 on every
>> system, and the files on the partition are owned by user 1000, then
>> user 1000 (you) will have ownership of the files whenever you mount
>> the partition.
> 
> That sounds like what I want.
> I had previously created a ext2 partition on /dev/sda10 and a label of
> jessie-dvds .
> How do I inform the "WORLD" that it belongs to UID 1000?

chown -R 1000 /

But that is a stupid idea that will probably break your system. Don't do
it.

As far as I understand, you want to be able to read/write/execute files
from one installation in another installation. This is easy as long as
you use the root account. For your regular user (usually UID 1000), this
doesn't make sense on a single installation and doesn't make sense
across several installations on one computer.

> Right now when I attempt to mount it, I am asked for root password.
> Not acceptable.

What a user can mount is controlled by the option "user" in /etc/fstab.
Even if a user can mount a filesystem that doesn't mean she can read or
write any files in it after mounting. That is controlled by the
permissions in the filesystem.

> tomas' reply confused me ;/

I think that is because you have a misunderstanding that makes you want
to solve your problem the wrong way. Maybe it helps to restate what
exactly you want to do.

If all you want is to exchange a few files (office documents, music,
videos etc.) between separate OS installations the easiest way is to
format one partition as FAT filesystem. That way you won't have to worry
about permissions.

J.
-- 
When I am at nightclubs I enjoy looking at other people and assessing
their imagined problems.
[Agree]   [Disagree]
 


signature.asc
Description: Digital signature


Re: Can't turn off Airplane mode

2016-10-25 Thread Qiang Yin
Hi, it's very helpful.

I found a similar button at the *front*, not the cover, of my laptop.  I
have never noticed it. Maybe it was accidentally switched when I put my
laptop to may bag.

After I rest it, the problem is solved.

Thank you very much.

Best,
Qiang

On Tue, Oct 25, 2016 at 6:04 PM,  wrote:

> yes, rfkill is a good way to unblock.
> but may be you have some switch or button on you laptop, like this:
> https://qph.ec.quoracdn.net/main-qimg-3a07fe3eb21edb104ccaf1f292e3bd
> a1?convert_to_webp=tru
>
>


Re: Fwd: WiFi works during install, not after

2016-10-25 Thread Patrick Bartek
On Tue, 25 Oct 2016 09:27:22 -0400 Carl Fink 
wrote:

> On Tue, Oct 25, 2016 at 08:46:41AM +0200, deloptes wrote:
> 
> > Perhaps you get a different kernel version after install. 
> 
> Very possible. Does not exonerate the installer, IMO.
> 
> > What are the messages in your syslog?  
> 
> I'll check when I get home--I don't use my personal system at work.
> 
> >Do you have the firmware also after installation?
> 
> Yes.

I've been following your problem.  Had something similar happen years
ago.

Have you checked if you installed "Laptop Tools" which includes wifi
packages? They usually don't get installed automatically.

Have you tried manually shutting down wifi and manually connecting?

Try purging the firmwareware and reinstalling.

B



Re: WiFi works during install, not after

2016-10-25 Thread Brian
On Tue 25 Oct 2016 at 12:35:52 -0400, Carl Fink wrote:

> On Tue, Oct 25, 2016 at 03:27:44PM +0100, Brian wrote:
> > 
> > I did notice. You are assuming the name of the module is "rtl8723au".
> > There is no such module in staging - as your modprobe command tells
> > you. Could we look at your 'lsmod' too?
> 
> Except that as I said, locate DOES find a module of that name in staging.

Does it? Module names end in .ko. On jessie:

 brian@desktop:~/unprint$ locate rtl8723au
 /lib/modules/3.16.0-4-686-pae/kernel/drivers/staging/rtl8723au
 /lib/modules/3.16.0-4-686-pae/kernel/drivers/staging/rtl8723au/r8723au.ko

My other question requires only a "yes" or "no" answer. It is possible
any response to yours could open up a world of wonder.

-- 
Brian.



Re: Permissions for an entire PARTITION

2016-10-25 Thread Greg Wooledge
On Tue, Oct 25, 2016 at 11:33:23AM -0500, Richard Owlett wrote:
> On 10/25/2016 10:40 AM, Greg Wooledge wrote:
> >The simplest way would be to synchronize your UID across all your
> >installed operating systems.  If your UID is, let's say, 1000 on every
> >system, and the files on the partition are owned by user 1000, then
> >user 1000 (you) will have ownership of the files whenever you mount
> >the partition.
> 
> That sounds like what I want.
> I had previously created a ext2 partition on /dev/sda10 and a 
> label of jessie-dvds .
> How do I inform the "WORLD" that it belongs to UID 1000?

Err... what?  I don't understand what you're asking.

You boot into an installed operating system.  Let's say it's Debian
wheezy.

You login as some user account.  Let's say it's "richard" with UID 1000.

Now you are richard, and you are UID 1000.

When the partition is mounted, any files on it that are owned by UID
1000 are yours for the taking.  You are UID 1000, even if the files
were created by UID 1000 from a different operating system.

> Right now when I attempt to mount it, I am asked for root password.
> Not acceptable.

So your actual question is how to *mount* the partition?  In the fstab
file, include the "user" option to allow non-root users to mount the
partition.  Better still, just make the partition mount automatically
at boot time (defaults).

Is there a particular reason you wanted the partition NOT to be mounted
by default, and to require the logged-in user to enter a command?



Re: WiFi works during install, not after

2016-10-25 Thread Carl Fink
On Tue, Oct 25, 2016 at 03:27:44PM +0100, Brian wrote:
> 
> I did notice. You are assuming the name of the module is "rtl8723au".
> There is no such module in staging - as your modprobe command tells
> you. Could we look at your 'lsmod' too?

Except that as I said, locate DOES find a module of that name in staging.
-- 
Carl Fink   nitpick...@nitpicking.com 

Read my blog at blog.nitpicking.com.  Reviews!  Observations!
Stupid mistakes you can correct!



Re: Permissions for an entire PARTITION

2016-10-25 Thread Richard Owlett

On 10/25/2016 10:40 AM, Greg Wooledge wrote:

On Tue, Oct 25, 2016 at 10:32:29AM -0500, Richard Owlett wrote:

I'm in a multi-boot environment, multiple installs of Debian.
I want all install to have read/write/execute permissions.
The partition will effectively be serving as a common scratch pad
in order to exchange information. There is organically a single
user, [*ME*] and there is *NO* networking of any sort whatsoever.


The simplest way would be to synchronize your UID across all your
installed operating systems.  If your UID is, let's say, 1000 on every
system, and the files on the partition are owned by user 1000, then
user 1000 (you) will have ownership of the files whenever you mount
the partition.


That sounds like what I want.
I had previously created a ext2 partition on /dev/sda10 and a 
label of jessie-dvds .

How do I inform the "WORLD" that it belongs to UID 1000?
Right now when I attempt to mount it, I am asked for root password.
Not acceptable.

tomas' reply confused me ;/



If that's not an option, then you'll need to use Unix permissions.
If you can synchronize a *group* GID across all OSes, then you can
just make the files and directories group-writable by that group.

Otherwise, you'll have to make everything world-writable.






Re: Permissions for an entire PARTITION

2016-10-25 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, Oct 25, 2016 at 11:40:10AM -0400, Greg Wooledge wrote:
> On Tue, Oct 25, 2016 at 10:32:29AM -0500, Richard Owlett wrote:
> > I'm in a multi-boot environment, multiple installs of Debian.
> > I want all install to have read/write/execute permissions.
> > The partition will effectively be serving as a common scratch pad 
> > in order to exchange information. There is organically a single 
> > user, [*ME*] and there is *NO* networking of any sort whatsoever.
> 
> The simplest way would be to synchronize your UID across all your
> installed operating systems.  If your UID is, let's say, 1000 on every
> system, and the files on the partition are owned by user 1000, then
> user 1000 (you) will have ownership of the files whenever you mount
> the partition.
> 
> If that's not an option, then you'll need to use Unix permissions.
> If you can synchronize a *group* GID across all OSes, then you can
> just make the files and directories group-writable by that group.
> 
> Otherwise, you'll have to make everything world-writable.

Well, there's bindfs [1], where you can (via FUSE) mount a directory
somewhere else, and (among other things) map user/group IDs. Never
tried it, but it sounds like hellish fun. I'd prefer synchronizing
the IDs, though. But in a pinch...

There is a like-named Debian package.

[1] http://bindfs.org/docs/bindfs.1.html
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlgPgU0ACgkQBcgs9XrR2kYHfQCdENS+HXbiFqhFEdCNBv6uwNvN
82gAnRcltXzyyF8fr+FJmeV1a26QzTnL
=piYm
-END PGP SIGNATURE-



Re: Permissions for an entire PARTITION

2016-10-25 Thread Greg Wooledge
On Tue, Oct 25, 2016 at 10:32:29AM -0500, Richard Owlett wrote:
> I'm in a multi-boot environment, multiple installs of Debian.
> I want all install to have read/write/execute permissions.
> The partition will effectively be serving as a common scratch pad 
> in order to exchange information. There is organically a single 
> user, [*ME*] and there is *NO* networking of any sort whatsoever.

The simplest way would be to synchronize your UID across all your
installed operating systems.  If your UID is, let's say, 1000 on every
system, and the files on the partition are owned by user 1000, then
user 1000 (you) will have ownership of the files whenever you mount
the partition.

If that's not an option, then you'll need to use Unix permissions.
If you can synchronize a *group* GID across all OSes, then you can
just make the files and directories group-writable by that group.

Otherwise, you'll have to make everything world-writable.



Permissions for an entire PARTITION

2016-10-25 Thread Richard Owlett

I'm in a multi-boot environment, multiple installs of Debian.
I want all install to have read/write/execute permissions.
The partition will effectively be serving as a common scratch pad 
in order to exchange information. There is organically a single 
user, [*ME*] and there is *NO* networking of any sort whatsoever.


How?
TIA




Re: list installed packages present only in stable

2016-10-25 Thread Cindy-Sue Causey
On 10/23/16, kamaraju kusumanchi  wrote:
> How can I list all the packages installed on my system that are
> currently part of the stable distribution but not present in either
> testing or sid?
>
> For example, ibkasten2okteta1controllers1abi1 libkasten2okteta1gui1
> are currently part of stable, but not present in either testing or
> sid. The command should list these packages if they are currently
> installed.
>
> If it matters, here are the repos I am tracking.
>  % inxi -r
> Repos: Active apt sources in file: /etc/apt/sources.list
>deb http://httpredir.debian.org/debian/ stretch main contrib
> non-free
>deb-src http://httpredir.debian.org/debian/ stretch main
> contrib non-free
>deb http://httpredir.debian.org/debian/ stretch-updates
> main contrib non-free
>deb-src http://httpredir.debian.org/debian/ stretch-updates
> main contrib non-free
>deb http://security.debian.org/ stretch/updates main contrib
> non-free
>deb-src http://security.debian.org/ stretch/updates main
> contrib non-free
>
> I prefer to use apt-get to aptitude. But if this can only be done in
> aptitude, I do not mind using that.


Oooohhh, shiny new toy that I just found because of you. This came via
"man apt-show-versions":

To upgrade all packages in testing:

   apt-get install `apt-show-versions -u -b | grep testing`

Actually having some cognitive abilities functioning today, I further
stepped out on a limb and just ran:

apt-cache show `apt-show-versions -u -b | grep sid`

It gave me some things back! One more test:

apt-cache show `apt-show-versions -u -b | grep jessie`

Returned this error:

E: No packages found

Woohoo!!! (Because it's giving varying answers based on query changes)

Yes, no, I understand that still might not quite be the answer sought
after in this thread, BUT it *is* pulling based on [release versions].
That means at least some of the developer work is already addressed if
this in fact doesn't quite provide the desired results BUT would work
with some flag tweaking.

Cindy :)

-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with duct tape (too) *



Re: WiFi works during install, not after

2016-10-25 Thread Brian
On Tue 25 Oct 2016 at 09:38:16 -0400, Carl Fink wrote:

> On Tue, Oct 25, 2016 at 09:45:41AM +0100, Brian wrote:
> > On Sun 23 Oct 2016 at 17:09:06 -0400, Carl Fink wrote:
> 
> > > Interestingly, the rtl8723au module is NOT loaded, and "modprobe 
> > > rtl8723au"
> > > fails with a message about the module not being found, even though it's
> > > right there if I "locate rtl8723au", in the drivers/staging directory. 
> > > Maybe
> > > the staging area isn't used by default? I confess I don't remember how to
> > > change the path that is searched for loadable modules.
> > > 
> > > Any insights would be most gratefully received.
> > 
> > Firmware and module names are not necessarily the same. Look at the
> > output of 'lsmod'.
> 
> Notice what I quoted above? I did look at lsmod.

I did notice. You are assuming the name of the module is "rtl8723au".
There is no such module in staging - as your modprobe command tells
you. Could we look at your 'lsmod' too?

I also noticed you failed to respond to my first question. This was
actually the more important one. The answer could provide you with
the insight you want.

-- 
Brian.



Re: comparing password managers in Debian, synchronizing on multiple devices

2016-10-25 Thread David Wright
On Tue 25 Oct 2016 at 08:43:15 (+0200), deloptes wrote:
> Ben Finney wrote:
> 
> > I prefer integration to all applications on the desktop: i.e., the
> > program should simply place the passphrase in the clipboard, allowing me
> > to paste it into whatever form I visit. That covers the browser as well.
> 
> I've been using gpg since 2002 and never heard of PassStore or pass or
> whatever. But through all those years I used the kwallet and now tdewallet.
> Exactly because it is integrated into the system/desktop.
> 
> The idea to upload encrypted password on some cloud service is scary , but
> perhaps I am a bit old fashioned. Passwords are usually kept in a safe
> place. Especially private keys are not meant to be shared  so I did not
> understand what are you doing with your private gpg key? Do you have it
> printed on paper?
> 
> I think what you are describing is a bit of useless, but a summary of all
> password managers and storage systems is still pretty usefull. With my
> previous post I wanted to point out that completeness is what I would
> expect from a debian wiki article. You can save the filtering criteria for
> yourself. Let the people decide by providing information on the key
> features of each application.

Eh? Getting information on these packages is all too easy. What's more
difficult is mining people's knowledge of whether these key features
are beneficial, disadvantageous, a security risk, or just neutral,
nice to have.

I knew about pass: it contains the string "password manager" in its
description. Perhaps you missed it because it has no tags in the
Packages file, not one. Anyway, the full desciption reads:
"lightweight directory-based password manager
"Stores, retrieves, generates, and synchronizes passwords securely
 using gpg, pwgen, and git."

I can't see the point in just duplicating that information on a wiki
page. There's a list of possibilities at
https://wiki.archlinux.org/index.php/List_of_applications/Security#Password_managers
and you know that their websites will trumpet their key features.

But I can see the added value in running that information past
a set of criteria like "The database must be in a format already known
to be readable by other, mature, well-maintained software" to quote
just one. That sort of knowledge is what gets discussed here, and
a summary in one place would be very useful. It might look like
the sort of grid often seen in Wikipedia (though it might need a
lot of footnotes explaining why it passed/failed to come up to
scratch).

Cheers,
David.



Re: WiFi works during install, not after

2016-10-25 Thread Carl Fink
On Tue, Oct 25, 2016 at 09:45:41AM +0100, Brian wrote:
> On Sun 23 Oct 2016 at 17:09:06 -0400, Carl Fink wrote:

> > Interestingly, the rtl8723au module is NOT loaded, and "modprobe rtl8723au"
> > fails with a message about the module not being found, even though it's
> > right there if I "locate rtl8723au", in the drivers/staging directory. Maybe
> > the staging area isn't used by default? I confess I don't remember how to
> > change the path that is searched for loadable modules.
> > 
> > Any insights would be most gratefully received.
> 
> Firmware and module names are not necessarily the same. Look at the
> output of 'lsmod'.

Notice what I quoted above? I did look at lsmod.
-- 
Carl Fink   nitpick...@nitpicking.com 

Read my blog at blog.nitpicking.com.  Reviews!  Observations!
Stupid mistakes you can correct!



Re: Fwd: WiFi works during install, not after

2016-10-25 Thread Carl Fink
On Tue, Oct 25, 2016 at 08:46:41AM +0200, deloptes wrote:

> Perhaps you get a different kernel version after install. 

Very possible. Does not exonerate the installer, IMO.

> What are the messages in your syslog?  

I'll check when I get home--I don't use my personal system at work.

>Do you have the firmware also after installation?

Yes.
-- 
Carl Fink   nitpick...@nitpicking.com 

Read my blog at blog.nitpicking.com.  Reviews!  Observations!
Stupid mistakes you can correct!



Re: CUPS problem on Jessie was Re: (no subject)

2016-10-25 Thread Cindy-Sue Causey
On 10/25/16, Norbert Kiszka  wrote:
>>
>> On Tuesday 25 October 2016 08:06:02 Alan Hutchinson wrote:
>> > Hi people just a small note to tell you that, I am having a problem in
>> > Debian 8 Jessie ,I have bean trying to run cups.service and it just
>> > wont
>> > run, when using system d, and I type systemctl start cups.service, I
>> > get
>> > the error
>> >
>> > Process:400 Execstart=/usr/sbin/cupsd -f (code=killed,signal=term)
>> >
>> > Main Pid:400 (code=killed,signal=term man 7 signal
>> >
>> > what do I have to read up on to get my cups.service up and running
>> > againe
>>
>
> Any logs in /var/log/dmesg or /var/log/messages after 'systemctl start
> cups.service'?


I wasn't paying full attention, basically blanked out as soon as I saw
"CUPS" (that I don't use), but your thought here triggered memory of
something I just learned while (still) battling wifi setup:

systemctl status cups.service

At least in my case, that also provides some instant feedback in
addition to the already mentioned logs.

Hope that helps someone somewhere some day. :)

Cindy :)

-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with plastic sporks *



Re: Can't set up network on Debian 8 fresh install [was: Unidentified subject!]

2016-10-25 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, Oct 25, 2016 at 01:05:54PM +0100, Brian wrote:

[...]

> Uncharacteristically, I did wander a bit off topic, didn't I?

This way I (and perhaps others) learnt something.

> Back on the straight and narrow now. :)

But not too much: everything within measure :)

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

iEYEARECAAYFAlgPUacACgkQBcgs9XrR2kYFcgCfYZ1LVxuQ83zDTuzgaNAg+E39
wqsAn2wHwTgwT5rFYZsa0GnvJHhpU8TI
=YoDA
-END PGP SIGNATURE-



Re: bash NEWBIE I/O and I/O redirection problems

2016-10-25 Thread Richard Owlett

On 10/25/2016 4:23 AM, to...@tuxteam.de wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Oct 24, 2016 at 07:58:52AM -0500, Richard Owlett wrote:

I suspect an appropriate response would be being pointed an
*atypical* tutorial.
A Google search for "bash tutorial pipe redirect" [w/o quotes] gave
results for "normal" users. I have and odd use case. I had assumed
bash as shell but am open to using another shell if it is more
appropriate.

The following, though using bash syntax, should be considered
*PSEUDO* code.

# stdout and stderr will be a MATE terminal window
# this was required to address a problem outside scope of this post
gsettings set org.mate.media-handling automount false


Others have answered many things. Let me pick a nit:


while true
   do
 echo "Insert medium, press Enter key (or Ctrl+C to end)"
 read dummyvar


The builtin 'read' has an option -p (like 'prompt') which makes
this a bit nicer:


read -p "Insert medium, press Enter key (or Ctrl+C to end) " dummyvar

Regards
- -- tomás


I like. Thank you





[REPOST] Re: Time quandry when dual boot with WinXP Pro

2016-10-25 Thread Richard Owlett

On 10/22/2016 3:15 PM, Stefan Monnier wrote:

2. Debian 8.6 w MATE run from LIVE DVD _displays_ the correct time
3. Debian 8.6 w MATE installed from DVD 1 of 13 with aid of custom
preseed.cfg
_displays_ a time 5 hours earlier.

My guess: the Live DVD uses NTP so as not to depend on the hwclock
whereas your installs don't.

As the saying goes, "that does not compute".  The machine in question has not
been connected to the internet, or any other network, for several years ;/


Simple: over all these years its lust for a network connection was so
strong that it managed to find a way to get to the Internet.


 Stefan




You may have identified the problem after all ;/
What might the side effects of specifying use of NTP on 
installation be?
Is there something I can tweak in the *installed* system to 
duplicate what would have been done if the use of NTP had been 
specified in preseed.cfg?
Even given an affirmative answer to above, I can do a complete 
reinstall to assist in tracking possible side effects -- there is 
no valuable data on that machine.






Side effects of specifying use of NTP on installation???? - was [Re: Time quandry when dual boot with WinXP Pro]

2016-10-25 Thread Richard Owlett

On 10/22/2016 3:15 PM, Stefan Monnier wrote:

2. Debian 8.6 w MATE run from LIVE DVD _displays_ the correct time
3. Debian 8.6 w MATE installed from DVD 1 of 13 with aid of custom
preseed.cfg
_displays_ a time 5 hours earlier.

My guess: the Live DVD uses NTP so as not to depend on the hwclock
whereas your installs don't.

As the saying goes, "that does not compute".  The machine in question has not
been connected to the internet, or any other network, for several years ;/


Simple: over all these years its lust for a network connection was so
strong that it managed to find a way to get to the Internet.


 Stefan




You may have identified the problem after all ;/
What might the side effects of specifying use of NTP on 
installation be?
Is there something I can tweak in the *installed* system to 
duplicate what would have been done if the use of NTP had been 
specified in preseed.cfg?
Even given an affirmative answer to above, I can do a complete 
reinstall to assist in tracking possible side effects -- there is 
no valuable data on that machine.






Re: bash NEWBIE I/O and I/O redirection problems

2016-10-25 Thread Richard Owlett

On 10/24/2016 10:09 PM, der.hans wrote:

Am 24. Oct, 2016 schwätzte Richard Owlett so:

moin moin Richard,

"to stdout AND "logfile" can be accomplished with tee.

# puts the results of ls in the file and also shows results on
STDOUT
# the -a tells tee to append so repeated calls will get all of
the output
# from your script
ls | tee -a /tmp/ls.out

By default tee truncates so without the -a it will first zero out
the
file, then start adding text.


Thank you. I found that out over on alt.os.linux.debian when my 
post to this group took a proverbial forever to show up.






Re: Can't set up network on Debian 8 fresh install [was: Unidentified subject!]

2016-10-25 Thread Brian
On Tue 25 Oct 2016 at 13:19:48 +0200, to...@tuxteam.de wrote:

> On Tue, Oct 25, 2016 at 11:54:27AM +0100, Brian wrote:
> > On Tue 25 Oct 2016 at 12:36:11 +0200, to...@tuxteam.de wrote:
> > 
> > > On Tue, Oct 25, 2016 at 10:59:20AM +0100, Brian wrote:
> > > > On Tue 25 Oct 2016 at 11:16:49 +0200, to...@tuxteam.de wrote:
> > > > 
> > > > > > loLink encap:Local Loopback
> > > > > >   inet addr:127.0.0.1  Mask:255.0.0.0
> 
> [...]
> 
> > Sorry; yes.
> > 
> > In the final Stretch installer netcfg is quite likely not to put
> > loopback in /etc/network/interfaces. So from being "always there"
> > it will go to never there.
> 
> Thanks for the info, very useful. In our case, for context: the
> above output is from '/sbin/ifconfig' (and not from 'cat
> /etc/network/interfaces'). So I'd expect lo to be there, anyway.

Uncharacteristically, I did wander a bit off topic, didn't I?
Back on the straight and narrow now. :)

-- 
Brian.



Re: bash NEWBIE I/O and I/O redirection problems

2016-10-25 Thread Greg Wooledge
On Mon, Oct 24, 2016 at 07:58:52AM -0500, Richard Owlett wrote:
> blocks=$(expr $(/sbin/isosize /dev/sr0) / 2048)

Use $(( ... )) for integer arithmetic.

blocks=$(( $(/sbin/isosize /dev/sr0) / 2048 ))

> ls -l $FILENAME   ;# to stdout AND "logfile"

Always quote properly.

ls -ld "$FILENAME"

References:

http://mywiki.wooledge.org/Quotes
http://mywiki.wooledge.org/ArithmeticExpression



Re: CUPS problem on Jessie was Re: (no subject)

2016-10-25 Thread Norbert Kiszka
Dnia 2016-10-25, wto o godzinie 12:37 +0100, Lisi Reisz pisze:
> Replying  to give this a subject.
> Lisi
> 
> On Tuesday 25 October 2016 08:06:02 Alan Hutchinson wrote:
> > --
> > Alan Hutchinson
> > Hi people just a small note to tell you that, I am having a problem in
> > Debian 8 Jessie ,I have bean trying to run cups.service and it just wont
> > run, when using system d, and I type systemctl start cups.service, I get
> > the error
> >
> > Process:400 Execstart=/usr/sbin/cupsd -f (code=killed,signal=term)
> >
> > Main Pid:400 (code=killed,signal=term man 7 signal
> >
> > what do I have to read up on to get my cups.service up and running againe
> 

Any logs in /var/log/dmesg or /var/log/messages after 'systemctl start 
cups.service'?




CUPS problem on Jessie was Re: (no subject)

2016-10-25 Thread Lisi Reisz
Replying  to give this a subject.
Lisi

On Tuesday 25 October 2016 08:06:02 Alan Hutchinson wrote:
> --
> Alan Hutchinson
> Hi people just a small note to tell you that, I am having a problem in
> Debian 8 Jessie ,I have bean trying to run cups.service and it just wont
> run, when using system d, and I type systemctl start cups.service, I get
> the error
>
> Process:400 Execstart=/usr/sbin/cupsd -f (code=killed,signal=term)
>
> Main Pid:400 (code=killed,signal=term man 7 signal
>
> what do I have to read up on to get my cups.service up and running againe



Re: Can't set up network on Debian 8 fresh install [was: Unidentified subject!]

2016-10-25 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, Oct 25, 2016 at 11:54:27AM +0100, Brian wrote:
> On Tue 25 Oct 2016 at 12:36:11 +0200, to...@tuxteam.de wrote:
> 
> > On Tue, Oct 25, 2016 at 10:59:20AM +0100, Brian wrote:
> > > On Tue 25 Oct 2016 at 11:16:49 +0200, to...@tuxteam.de wrote:
> > > 
> > > > > loLink encap:Local Loopback
> > > > >   inet addr:127.0.0.1  Mask:255.0.0.0

[...]

> Sorry; yes.
> 
> In the final Stretch installer netcfg is quite likely not to put
> loopback in /etc/network/interfaces. So from being "always there"
> it will go to never there.

Thanks for the info, very useful. In our case, for context: the
above output is from '/sbin/ifconfig' (and not from 'cat
/etc/network/interfaces'). So I'd expect lo to be there, anyway.

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

iEYEARECAAYFAlgPP9QACgkQBcgs9XrR2kaUcgCggXrYAx3rJaNDDpdhCE2gSrIZ
9poAni4SHS1xT+8UMPoyqFUL7076pLgT
=r/ks
-END PGP SIGNATURE-



Re: Can't set up network on Debian 8 fresh install [was: Unidentified subject!]

2016-10-25 Thread Brian
On Tue 25 Oct 2016 at 12:36:11 +0200, to...@tuxteam.de wrote:

> On Tue, Oct 25, 2016 at 10:59:20AM +0100, Brian wrote:
> > On Tue 25 Oct 2016 at 11:16:49 +0200, to...@tuxteam.de wrote:
> > 
> > > > loLink encap:Local Loopback
> > > >   inet addr:127.0.0.1  Mask:255.0.0.0
> > > 
> > > This is the "local" interface. It's always there. It doesn't correspond
> > > to any hardware. For our quest, you can safely ignore that.
> > 
> > Nothing to do with the OP's issue but people might be interested in
> > knowing that this stanza is not a requirement for inclusion in the
> > interfaces file. If it is left out you still get a loopback interface.
> > 
> > >From the changelog:
> > 
> >   * Add implicit loopback device definition.
> > 
> >  -- Andrew Shadura   Thu, 11 Apr 2013 21:44:23 +0200
> 
> To add some context, this is from ifupdown's (0.7.41) changelog, right?

Sorry; yes.

In the final Stretch installer netcfg is quite likely not to put
loopback in /etc/network/interfaces. So from being "always there"
it will go to never there.

-- 
Brian.



Re: Can't set up network on Debian 8 fresh install [was: Unidentified subject!]

2016-10-25 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, Oct 25, 2016 at 10:59:20AM +0100, Brian wrote:
> On Tue 25 Oct 2016 at 11:16:49 +0200, to...@tuxteam.de wrote:
> 
> > > loLink encap:Local Loopback
> > >   inet addr:127.0.0.1  Mask:255.0.0.0
> > 
> > This is the "local" interface. It's always there. It doesn't correspond
> > to any hardware. For our quest, you can safely ignore that.
> 
> Nothing to do with the OP's issue but people might be interested in
> knowing that this stanza is not a requirement for inclusion in the
> interfaces file. If it is left out you still get a loopback interface.
> 
> >From the changelog:
> 
>   * Add implicit loopback device definition.
> 
>  -- Andrew Shadura   Thu, 11 Apr 2013 21:44:23 +0200

To add some context, this is from ifupdown's (0.7.41) changelog, right?

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

iEYEARECAAYFAlgPNZsACgkQBcgs9XrR2kYzUgCfXNbc7vRH3WPYxhInHCg6KxTd
jycAnjjN7gjozG4/pjAqJ3DFTfEcMfRI
=rxp6
-END PGP SIGNATURE-



Re: Can't turn off Airplane mode

2016-10-25 Thread err404
yes, rfkill is a good way to unblock.
but may be you have some switch or button on you laptop, like this: 
https://qph.ec.quoracdn.net/main-qimg-3a07fe3eb21edb104ccaf1f292e3bda1?convert_to_webp=tru



signature.asc
Description: OpenPGP digital signature


Re: Can't set up network on Debian 8 fresh install [was: Unidentified subject!]

2016-10-25 Thread Brian
On Tue 25 Oct 2016 at 11:16:49 +0200, to...@tuxteam.de wrote:

> > loLink encap:Local Loopback
> >   inet addr:127.0.0.1  Mask:255.0.0.0
> 
> This is the "local" interface. It's always there. It doesn't correspond
> to any hardware. For our quest, you can safely ignore that.

Nothing to do with the OP's issue but people might be interested in
knowing that this stanza is not a requirement for inclusion in the
interfaces file. If it is left out you still get a loopback interface.

>From the changelog:

  * Add implicit loopback device definition.

 -- Andrew Shadura   Thu, 11 Apr 2013 21:44:23 +0200

-- 
Brian.



Re: bash NEWBIE I/O and I/O redirection problems

2016-10-25 Thread Thomas Schmitt
Hi,

it comes to me that there is a better way to make the redirection via "tee"
less ugly in the code. It does not depend on the assumption that the log
file path is a single word.

First define in the script:

  # Shell function which lets "tee" consume its standard input
  my_log() {
tee -i -a "$HOME/my_logfile"
  }

Then use it in the same script like
 
echo "Block count: "$blocks | my_log


Have a nice day :)

Thomas



Re: bash NEWBIE I/O and I/O redirection problems

2016-10-25 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Oct 24, 2016 at 07:58:52AM -0500, Richard Owlett wrote:
> I suspect an appropriate response would be being pointed an
> *atypical* tutorial.
> A Google search for "bash tutorial pipe redirect" [w/o quotes] gave
> results for "normal" users. I have and odd use case. I had assumed
> bash as shell but am open to using another shell if it is more
> appropriate.
> 
> The following, though using bash syntax, should be considered
> *PSEUDO* code.
> 
> # stdout and stderr will be a MATE terminal window
> # this was required to address a problem outside scope of this post
> gsettings set org.mate.media-handling automount false

Others have answered many things. Let me pick a nit:

> while true
>   do
> echo "Insert medium, press Enter key (or Ctrl+C to end)"
> read dummyvar

The builtin 'read' has an option -p (like 'prompt') which makes
this a bit nicer:

  
   read -p "Insert medium, press Enter key (or Ctrl+C to end) " dummyvar

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

iEYEARECAAYFAlgPJHgACgkQBcgs9XrR2kZeQgCcDJQ/VI36kzfywE9dXCJzlLL6
v/AAnjZ9VYU1HIeA3D1vk7AnVYhKIhJB
=DWmS
-END PGP SIGNATURE-



Can't turn off Airplane mode

2016-10-25 Thread Qiang Yin
I am currently not able to turn  on wifi on my laptop as it stucks to
airplane mode. And gnome says I have to use hardware switch to turn off
airplane mode.


​
The hard switch on my laptop (Thinkpad X301) is Fn+F5. If I press these two
buttons then a
notification will show says airplane mode is enabled, i.e. I can only use
the hardware switch to
enable airplane mode but I can't use it to disable it.

I googled the situation and have tried the following approaches. But none
of them works.
*(1)* . Use the command rfkill

root@x301:~# rfkill list all
0: tpacpi_bluetooth_sw: Bluetooth
Soft blocked: yes
Hard blocked: yes
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
root@x301:~# rfkill unblock all
root@x301:~# rfkill list all
0: tpacpi_bluetooth_sw: Bluetooth
Soft blocked: no
Hard blocked: yes
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes


*(2). *The battary trick suggested in the post
https://ubuntuforums.org/showthread.php?t=2249263

*(3). *Reset my bios and restart

Can anyone help me? Any suggestion will be appreciated.

Best,
Qiang
-
More info about my system

root@x301:~#uname -a
Linux x301 4.7.0-1-amd64 #1 SMP Debian 4.7.8-1 (2016-10-19) x86_64 GNU/Linux

root@x301:~# lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory
Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series
Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset
Integrated Graphics Controller (rev 07)
00:03.0 Communication controller: Intel Corporation Mobile 4 Series Chipset
MEI Controller (rev 07)
00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network
Connection (rev 03)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
Controller #5 (rev 03)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
Controller #6 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI
Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio
Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port
1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port
2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port
3 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
Controller #3 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI
Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev
03)
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4
port SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev
03)
03:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN
[Shiloh] Network Connection
04:00.0 Memory controller: Intel Corporation Turbo Memory Controller (rev
11)

root@x301:~# lsmod
Module  Size  Used by
nls_ascii  16384  1
nls_cp437  20480  1
vfat   20480  1
fat69632  1 vfat
usblp  20480  0
uas24576  0
usb_storage69632  2 uas
fuse   98304  4
iptable_nat16384  0
nf_conntrack_ipv4  20480  1
nf_defrag_ipv4 16384  1 nf_conntrack_ipv4
nf_nat_ipv416384  1 iptable_nat
nf_nat 24576  1 nf_nat_ipv4
nf_conntrack  114688  3 nf_nat,nf_nat_ipv4,nf_conntrack_ipv4
iptable_filter 16384  0
xt_mark16384  1
xt_set 16384  1
iptable_mangle 16384  1
ip_set_hash_ip 32768  1
ip_set 45056  2 ip_set_hash_ip,xt_set
nfnetlink  16384  2 ip_set
arc4   16384  2
iwldvm143360  0
mac80211  643072  1 iwldvm
iwlwifi   147456  1 iwldvm
cfg80211  569344  3 iwlwifi,mac80211,iwldvm
snd_hda_codec_conexant24576  1
iTCO_wdt   16384  0
iTCO_vendor_support16384  1 iTCO_wdt
snd_hda_codec_generic69632  1 snd_hda_codec_conexant
binfmt_misc20480  1
uvcvideo   90112  0
videobuf2_vmalloc  16384  1 uvcvideo
videobuf2_memops   16384  1 videobuf2_vmalloc
videobuf2_v4l2 24576  1 uvcvideo
videobuf2_core 36864  2 uvcvideo,videobu

Re: Can't set up network on Debian 8 fresh install [was: Unidentified subject!]

2016-10-25 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, Oct 23, 2016 at 03:30:52PM -0700, Bob Holtzman wrote:
> On Thu, Sep 29, 2016 at 11:31:28AM +0200, to...@tuxteam.de wrote:
> 
> My abject apologies for the delay in this reply. just got back in town
> and am just catching up on my email.

No worries. Mail is asyncronous. In my eyes, its biggest asset.

[my whine about missing subject]

> I know but I hit the send key too soon. Sorry.

Happens :-)

[...]

> > > with DCP failed.
> > 
> > This is probably DHCP. That means that the laptop tries to ask in
> > the local network for an IP address [...]

> > Question: is your Thinkpad connected to the local net via a
> > network cable? Or via WLAN?
> 
> Ethernet cable directly to the modem. No router (yet).
> 
> > 
> > Open a console. What is the output of the command
> 
> >   /sbin/ifconfig
> > Could you paste it here?
> 
> root@localhost:/home/holtzm# /sbin/ifconfig
> eth0  Link encap:Ethernet  HWaddr 00:21:cc:b6:06:8f
>   UP BROADCAST MULTICAST  MTU:1500  Metric:1
>   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:1000
>   RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>   Interrupt:20 Memory:f250-f252

This means that eth0 hasn't an IP address assigned. This is consistent
with DHCP failing. Your laptop sends a DHCP out and expects some answer
(from the "modem" or from the network infrastructure behind it). No
answer came, probably.

> loLink encap:Local Loopback
>   inet addr:127.0.0.1  Mask:255.0.0.0

This is the "local" interface. It's always there. It doesn't correspond
to any hardware. For our quest, you can safely ignore that.

> > > I was given 3 options.

[...]

There is no way forward until we sort out how to assign an IP address
to your interface (be it via DHCP or manually).

Can you describe this "modem" a bit more? It may well be that it isn't
talking regular IP but needs PPPoE[1] (PPP over Ethernet) or some such.

Regards

[1] https://en.wikipedia.org/wiki/PPPoE
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlgPIwEACgkQBcgs9XrR2kboaACdF9C3QSBHrEvwe8GB5oISsMYk
ec8An2vu8J6veRpFQVhcI27rqdkdKHAq
=iYvt
-END PGP SIGNATURE-



Re: WiFi works during install, not after

2016-10-25 Thread Brian
On Sun 23 Oct 2016 at 17:09:06 -0400, Carl Fink wrote:

> So I have a ThinkPad Yoga 11s ultrabook.
> 
> If I copy over the firmware-realtek package, Debian can install just fine
> over the WiFi connection. (I don't have wired internet at my home.)
> 
> After install, everything is fine, except I can't connect to the WiFi. I
> know it's possible because the installer does it!

Did you install a desktop *during* the installation?
 
> The wlan0 interface exists and is up, but "dhclient wlan0" ends up assigning
> 169.169.254.8.192, which is not a routable address. As you might expect,
> attempts to ping/connect to external systems via IP address fail with
> "Destination host unreachable" and of course, DNS lookups universally fail.
> 
> This ultrabook is supposed to have the rtl8723au chipset, which is a USB
> 802.11/Bluetooth chipset that for some reason Lenovo used in the laptop,
> with an inside-the-case-only USB connection.
> 
> The firmware-realtek package is installed on the ultrabook.
> 
> Interestingly, the rtl8723au module is NOT loaded, and "modprobe rtl8723au"
> fails with a message about the module not being found, even though it's
> right there if I "locate rtl8723au", in the drivers/staging directory. Maybe
> the staging area isn't used by default? I confess I don't remember how to
> change the path that is searched for loadable modules.
> 
> Any insights would be most gratefully received.

Firmware and module names are not necessarily the same. Look at the
output of 'lsmod'.

-- 
Brian.



Re: comparing password managers in Debian, synchronizing on multiple devices

2016-10-25 Thread Ben Finney
deloptes  writes:

> The idea to upload encrypted password on some cloud service is scary

Then don't upload it to a cloud service :-)

Instead, upload it to a specific host, one that you can make an informed
trust decision about.

> Passwords are usually kept in a safe place.

Yes. Do you consider encrypted files, that can only be unlocked by one's
private key, to be safe?

> Especially private keys are not meant to be shared  so I did not
> understand what are you doing with your private gpg key? Do you have
> it printed on paper?

The private key for unlocking the database stays on the device where I'm
using it. So yes, that means I need to be able to trust the device on
which I unlock my passphrase database.

That's entailed within the task: to access one's secret passphrases, one
must do that on a device one trusts with that task.


(Good sigmonster, have a cookie.)

-- 
 \ “Try adding “as long as you don't breach the terms of service – |
  `\  according to our sole judgement” to the end of any cloud |
_o__)  computing pitch.” —Simon Phipps, 2010-12-11 |
Ben Finney



Re: bash NEWBIE I/O and I/O redirection problems

2016-10-25 Thread Thomas Schmitt
Hi,

i agree with what der.hans advised.

With long running programs and the risk that they get aborted by Ctrl+C,
i would also advise "tee" option -i. It makes sure that all output gets
written to the file before "tee" aborts.

  ... | tee -a -i ~/my_logfile

As long as the logfile path is a single word (i.e. without blanks or
such), you may put the whole "tee" run into a variable to get less
ugly code:

  # Define redirection command
  tee="tee -a -i $HOME/my_logfile"

  # Remove old log
  rm $HOME/my_logfile

  # Do the work
  while ...
...
echo "Block count: "$blocks | $tee


(The variable $tee does not work with "~" instead of "$HOME".)


> # need code here for /dev/sr0 to be "ready" 

You could use xorriso to do the waiting (and the tray loading if
needed):

  xorriso -outdev /dev/sr0

In the good old times, one could also do

  eject -t

or

  dd if=/dev/sr0 count=1 of=/dev/null

But a kernel regression between 2.6 and 3.16 spoiled the feature that
the tray goes in on the first read attempt and that reading waits until
the drive reports to be ready.


-
Unrelated nitpicking:

> xorriso -indev /dev/sr0 -data_cache_size 512 1024 -check_media 
> data_to=$FILENAME 

I wonder why you need 1 GiB of memory cache. It will only be of help
while -indev loads the directory tree, which i assume is much smaller
than 1 GiB.
128 MiB would be:  -data_cache_size 64 1024

You may avoid loading the directory tree by using -outdev instead of
-indev:

  xorriso -outdev /dev/sr0 -check_media use=outdev data_to=$FILENAME --

The parameter range of -check_media should be ended by "--", so that
one can later append further xorriso commands after -check_media.

Maybe you should check for xorriso failure:

  xorriso ...

  if test "$?" = 0
  then
echo "xorriso run succeeded"
  else
echo
echo "   XORRISO RUN FAILED !"
echo
  fi


Have a nice day :)

Thomas



[no subject]

2016-10-25 Thread Alan Hutchinson
-- 
Alan Hutchinson
Hi people just a small note to tell you that, I am having a problem in
Debian 8 Jessie ,I have bean trying to run cups.service and it just wont
run, when using system d, and I type systemctl start cups.service, I get
the error

Process:400 Execstart=/usr/sbin/cupsd -f (code=killed,signal=term)

Main Pid:400 (code=killed,signal=term man 7 signal

what do I have to read up on to get my cups.service up and running againe