Re: Trimming boundary of image in GIMP.

2020-10-07 Thread peter
From: Tixy 
Date: Wed, 07 Oct 2020 20:24:01 +0100
> I've always used the Rectangle Select tool by press the 'R' key .

Yes, I've used rectangle select for years.  Unfortunately it is now square 
select.
In this GIMP at least.  Is there an aspect ratio setting somewhere?

> I notice that Gimp remembers the last selection tool you used when
> starting up, so maybe that's affecting the behaviour you see? 

Rectangle select can be chosen before any other action.  Unfortunately 
the "rectangle" here is constrained to square.

Thanks, ... P.

-- 
Tel: +1 604 670 0140Bcc: peter at easthope. ca



Re: Partial Mouse Lockup

2020-10-07 Thread Mark Allums

On 10/6/20 1:27 PM, Thomas George wrote:

Mouse clicks don't work though mouse moves the pointer.

This happens infrequently, once in a day or two. I am using two pc's, a 
raspberrypi and a Ubuntu Studio each with its own Logitech usb keyboard 
and have experienced  this problem on both systems.


I have tried to recover with various keyboard entries - ctl-c, cti-d, 
esc, q and by disconnecting and reconnecting the keyboard. Nothing but a 
reboot solves the problem.  I use ctl-alt-f1 to open a terminal, sign in 
and enter shutdown -r now to do this. There is no problem with the 
keyboard.


Is this a known problem? Is there a known solution?



It's been happening to me lately, especially in browsers.  I think it's 
garbage collection.


Mark



Re: (bash vs *sh) Re: exécuter automatiquement un programme dépendant du suffixe

2020-10-07 Thread f6k
Bonjour,

On Wed, Oct 07, 2020 at 06:00:42PM +0200, steve wrote:
> Bon et bien je m'y suis mis.
> 
> Merci marc  ;)
> 
> Le 06-10-2020, à 16:41:34 +0200, Marc Chantreux a écrit :
> > par contre quand j'ai besoin de shells plus petits, j'utilise mksh, dash
> > et rc. selon ce que je cherche, donc, bash c'est soit trop lourd soit
> > pas assez intéressant.

Et moi je me suis mis à mksh ! Mais c'est vrai que c'est très léger
(même pour les besoins que j'ai) ; peut-être vais-je finalement migrer
sous ksh ?

Merci aussi :)

-f6k

-- 
~{,_,"> indignus LabRat - ftp://shl.huld.re



Debian with Gnome user login list order

2020-10-07 Thread deloptes
Hi,
one friend noticed on the PC (I installed last year), that sometimes his
user is listed first (which is normal as it is expected the last user to be
offered again on the following login), but some time later another user is
offered first.

Where is this logic described, or someone knows the details?

thank you in advance




Re: gutenprint is a no op here, why?

2020-10-07 Thread Gene Heskett
On Wednesday 07 October 2020 11:43:34 Klaus Singvogel wrote:

> Gene Heskett wrote:
> > Stretch, uptodate. amd64
> >
> > I have installed all of the gutenprint packages.
> >
> > I have a Brother MFC-J6920DW printer, with the Brother drivers
> > installed.
>
> I'm wondering that it works somehow with Gutenprint, as this printer
> isn't in the list of supported printers of Gutenprint:
>   http://gimp-print.sourceforge.net/p_Supported_Printers.php
>
> I think that you installed and use the drivers from Brother, which are
> not related to the Gutenprint drivers [and are not aware of it].
>
> Please, can you cite the line(s) "*cupsFilter: [...]" in your PPD
> file: /etc/cups/ppd/.ppd

*cupsFilter: "application/vnd.cups-postscript 0 
brother_lpdwrapper_mfcj6920dw"

> Thanks in advance.
>
> Regards,
>   Klaus.


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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: GUI programma met root-rechten

2020-10-07 Thread Paul van der Vlis
Op 07-10-2020 om 17:17 schreef Geert Stappers:

> Dit bericht is om te melden dat alleen de computer in het midden
> het rsync programma hoeft te hebben. De andere twee ( machine-die-werkt
> en machine-die-niet-werkt ) zullen via SSH bereikbaar moeten zijn.
> (rsync kan over zijn eigen poort reizen, maar kan ook over SSH poort 22
> reizen.)

Ik vraag me af of dat klopt, volgens mij moeten alle machines rsync
hebben als je het via ssh doet. Maar goed, dat hadden ze toch al ;-)

Rsync over zijn eigen poort, dat heb ik eigenlijk nog nooit gedaan.

> En om te melden dat je nog wat moet doen om /etc/polkit te lezen.
> 
> $ tar cf /dev/null /etc/polkit-1/
> tar: Leidende '/' wordt uit lidnamen weggelaten
> tar: /etc/polkit-1/localauthority: Functie open() is mislukt: Toegang 
> geweigerd
> tar: Gestopt in fouttoestand vanwege eerdere fouten
> 

Ik heb rsync gebruikt als root, en die mocht alles lezen.

Groet,
Paul

-- 
Paul van der Vlis Linux systeembeheer Groningen
https://www.vandervlis.nl/



WordPress Log Out Issue

2020-10-07 Thread Chuck Nemeth
Hello!

When attempting to log out of a newly installed WordPress site, it
redirects to "http://wp-login.php/?loggedout=true; (it's missing the
hostname). I followed the instructions on the wiki to install:
https://wiki.debian.org/WordPress, but will post my procedure below as
well.

There are no custom themes or plugins installed. It was a fresh install of
WordPress on a fresh install of Debian. Everything else seems to work as
intended except for logging out. As a test, I upgraded a previous
installation to Testing and the issue I'm describing does not occur in the
newer version of the WordPress package, so I'm assuming that it only
affects Stable (*or just me?*). I also installed using the tar.gz from the
WordPress site and the issue is not present using that method either. I
would prefer to stick to using the package from stable for this project, so
I figured I'd ask here if there are any solutions available.

There is nothing to note in the apache error.log and only the following in
the access.log from logging in and logging out:
192.168.xx.xx - - [07/Oct/2020:13:59:21 -0400] "GET /wp-login.php HTTP/1.1"
200 1716 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101
Firefox/81.0"
127.0.0.1 - - [07/Oct/2020:13:59:21 -0400] "POST
/wp-cron.php?doing_wp_cron=1602093561.568099975585937500 HTTP/1.1" 200
166 "-" "WordPress/5.0.10; http://wptest.local.lan;
192.168.xx.xx - - [07/Oct/2020:13:59:21 -0400] "GET /favicon.ico HTTP/1.1"
404 493 "http://wptest.local.lan/wp-login.php; "Mozilla/5.0 (X11; Linux
x86_64; rv:81.0) Gecko/20100101 Firefox/81.0"
192.168.xx.xx - - [07/Oct/2020:13:59:28 -0400] "POST /wp-login.php
HTTP/1.1" 302 1085 "http://wptest.local.lan/wp-login.php; "Mozilla/5.0
(X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0"
192.168.xx.xx - - [07/Oct/2020:13:59:28 -0400] "GET /wp-admin/ HTTP/1.1"
200 15547 "http://wptest.local.lan/wp-login.php; "Mozilla/5.0 (X11; Linux
x86_64; rv:81.0) Gecko/20100101 Firefox/81.0"
192.168.xx.xx - - [07/Oct/2020:13:59:28 -0400] "GET
/wp-includes/js/thickbox/loadingAnimation.gif HTTP/1.1" 200 15525 "
http://wptest.local.lan/wp-admin/; "Mozilla/5.0 (X11; Linux x86_64;
rv:81.0) Gecko/20100101 Firefox/81.0"
192.168.xx.xx - - [07/Oct/2020:13:59:31 -0400] "GET
/wp-login.php?action=logout&_wpnonce=b6a6a5c0d4 HTTP/1.1" 302 2453 "
http://wptest.local.lan/wp-admin/; "Mozilla/5.0 (X11; Linux x86_64;
rv:81.0) Gecko/20100101 Firefox/81.0"


Steps to reproduce:

   - Install Debian 10.5 on KVM virtual machine in Proxmox
   - Update Debian:
  - sudo apt update && sudo apt upgrade
   - Install packages:
  - sudo apt install wordpress curl apache2 mariadb-server
   - Secure database:
  - sudo my_sql_secure_installation
   - Set hostname
  - sudo hostnamectl set-hostname wptest
   - Edit /etc/hosts:
   - sudoedit /etc/hosts
  - 127.0.0.1 wptest.local.lan wptest
   - Run wordpress helper script:
  - cd /usr/share/wordpress/examples
  - sudo bash setup-mysql -n wordpress wptest.local.lan
   - Configure apache:
  - sudoedit /etc/apache2/sites-available/wordpress.conf


ServerName wptest.local.lan

ServerAdmin webmas...@local.lan
DocumentRoot /usr/share/wordpress

Alias /wp-content /var/lib/wordpress/wp-content

Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
Require all granted


Options FollowSymLinks
Require all granted


ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined



   - Disable default site:
  - sudo a2dissite 000-default.conf
   - Enable site:
  - sudo a2ensite wordpress.conf
   - Reload apache:
   - sudo systemctl reload apache2
   - Visit site: http://wptest.local.lan
   - Perform initial setup
   - Log in
   - Use 'Log Out' in upper right corner of the screen in the admin header.
   - It redirects to http://wp-login.php/?loggedout=true (hostname is
   missing)

* (enabling mod_rewrite doesn't help either)

*System Information:*
$ cat /etc/debian_version
10.6


$ apt policy wordpress
wordpress:
  Installed: 5.0.10+dfsg1-0+deb10u1
  Candidate: 5.0.10+dfsg1-0+deb10u1
  Version table:
 *** 5.0.10+dfsg1-0+deb10u1 500
500 http://http.us.debian.org/debian buster/main amd64 Packages
500 http://security.debian.org/debian-security
buster/updates/main amd64 Packages
100 /var/lib/dpkg/status

Thanks in advance,

Chuck


Re: Trimming boundary of image in GIMP.

2020-10-07 Thread Tixy
On Wed, 2020-10-07 at 10:49 -0700, pe...@easthope.ca wrote:
> Until recently the routine for trimming the boundary of an image was,
> (1) Select > All,
> (2) grab a boundary with pointer and drag it toward the center,
> (3) drag other boundaries in a similar way until the desired
> boundary 
> was indicated,
> (4) Image > Crop to Selection.  
> Done.
> 
> Appears that an update since the last time I used GIMP added a new 
> feature. (?) Now left and right boundaries are linked with top and 
> bottom boundaries. Dragging the top boundary pulls the sides in 
> simultaneously. =8~(

I've always used the Rectangle Select tool by press the 'R' key (may be
different in no English locales?). That lets you select a rectangle by
clicking then dragging, and you can alter the selection by dragging he
sides and corners by putting the cursor inside the selection near the
edge.

I notice that Gimp remembers the last selection tool you used when
starting up, so maybe that's affecting the behaviour you see? E.g. for
me, after opening and image in Gimp, after Select All, trying to click
the selection border doesn't work, I just end up creating a new
selection because Rectangle Select is active as that was the last tool
I used before closing Gimp. In fact, I can't see how to select 'no
selection tool', I can just change it to the another type from the
menu, but there is no 'None'...

-- 
Tixy

 



Trimming boundary of image in GIMP.

2020-10-07 Thread peter
Until recently the routine for trimming the boundary of an image was,
(1) Select > All,
(2) grab a boundary with pointer and drag it toward the center,
(3) drag other boundaries in a similar way until the desired boundary 
was indicated,
(4) Image > Crop to Selection.  
Done.

Appears that an update since the last time I used GIMP added a new 
feature. (?) Now left and right boundaries are linked with top and 
bottom boundaries. Dragging the top boundary pulls the sides in 
simultaneously. =8~(

There must be cases where that is helpful but what if the objective is 
to change only one boundary?  The top for example.  I've tried 
unlinking Width and Height in Layer > Layer to Boundary Size. No dice.

I've tried holding ,  or  while dragging a boundary. 
No dice.

How is the new feature overridden?

Thx,  ... P.

-- 
Tel: +1 604 670 0140Bcc: peter at easthope. ca



[SOLVED] Re: Question: SSD speed

2020-10-07 Thread Hans
Am Mittwoch, 7. Oktober 2020, 19:39:46 CEST schrieb Andy Smith:
Hi Andy,

that is exactly, what I wanted to know! So it is just a hardware part, not a 
problem in my configuration.

Thanks for the help!

This thread is now fully solved. Thank you all for your time and all your 
informations.

Best regards

Hans



> Hello,
> 
> On Wed, Oct 07, 2020 at 06:40:01PM +0200, Hans wrote:
> > And second: If the real transferrate is only 1,5Gbyte/sec, does this mean,
> > that the sata controller is not capable to higher transferrates or does it
> > possibly mean, that my configuration is wrong?
> 
> This is all meant to be automatic. If you have some reason to
> believe that your SATA/SAS controller is 6Gbit/s and your storage
> device is 6Gbit/s but it comes up as less than that, then that's a
> problem/bug/fault and not something that you generally just set.
> 
> And even with a 6Gbit/s negotiated link, you aren't going to achieve
> 6Gbit/sec of data transferred.
> 
> Start by working out what hardware you have to see what it's
> actually meant to be capable of. Then you'll see if you have a
> problem or if the behaviour is expected.
> 
> Cheers,
> Andy



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


Re: Question: SSD speed

2020-10-07 Thread Andy Smith
Hello,

On Wed, Oct 07, 2020 at 06:40:01PM +0200, Hans wrote:
> And second: If the real transferrate is only 1,5Gbyte/sec, does this mean, 
> that the sata controller is not capable to higher transferrates or does it 
> possibly mean, that my configuration is wrong?

This is all meant to be automatic. If you have some reason to
believe that your SATA/SAS controller is 6Gbit/s and your storage
device is 6Gbit/s but it comes up as less than that, then that's a
problem/bug/fault and not something that you generally just set.

And even with a 6Gbit/s negotiated link, you aren't going to achieve
6Gbit/sec of data transferred.

Start by working out what hardware you have to see what it's
actually meant to be capable of. Then you'll see if you have a
problem or if the behaviour is expected.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Question: SSD speed

2020-10-07 Thread Jeremy Nicoll
On Wed, 7 Oct 2020, at 17:40, Hans wrote:
> Hi all,
> 
> thanks for the reponse. However, it looks, I did not ask clearly enough.
> 
> So let me ask again: If the ssd supports 6Gbyte/sec transferrate

It doesn't.  It's 6 giga bits per second which means about 600 megabytes.

>, is there the 
> option to set the controller of the motherboard also to 6Gbyte/sec?

I think you'd need to check the specific motherboard model and possibly 
its firmware with its manufacturer. 

No-one else will know.


> And second: If the real transferrate is only 1,5Gbyte/sec, 

No, that's 1.5 giga BITS pr second... so about 150 megabytes/sec.

> does this mean, 
> that the sata controller is not capable to higher transferrates or does it 
> possibly mean, that my configuration is wrong?

You need to find out what your hardware is capable of.



-- 
Jeremy Nicoll - my opinions are my own.



Re: Question: SSD speed

2020-10-07 Thread Hans
Hi all,

thanks for the reponse. However, it looks, I did not ask clearly enough.

So let me ask again: If the ssd supports 6Gbyte/sec transferrate, is there the 
option to set the controller of the motherboard also to 6Gbyte/sec?

And second: If the real transferrate is only 1,5Gbyte/sec, does this mean, 
that the sata controller is not capable to higher transferrates or does it 
possibly mean, that my configuration is wrong?


Thanks for any answers.

Best regards

Hans

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


Cross compiling gtk3 programs

2020-10-07 Thread Flo
Hi all,

Is there a 'beaten' path for cross compiling C-programs using GTK3 for
Windows? I found several tutorials which are not working anymore. And
everything I tried lead to a dead end.

Does anyone know about this issue? And can give me a hint how to proceed?

Yes, I have installed mingw-w64 and mingw-w64-utils but
x86_64-w64-mingw32-pkg-config complains and for me it looks like that
the win32gtk binaries are not available. I am a bit lost.

Many thanks for your help,
Flo



Re: (bash vs *sh) Re: exécuter automatiquement un programme dépendant du suffixe

2020-10-07 Thread steve

Bon et bien je m'y suis mis.

Merci marc  ;)

Le 06-10-2020, à 16:41:34 +0200, Marc Chantreux a écrit :


Vais finalement devoir y passer à zsh…


* j'étais tellement fan de bash que j'étais à l'initiative de la
 traduction de l'ABS
* il y a ~ 20 ans, une nouvelle version majeure de bash est sortie
 et j'ai lu une review quelque part. la conclusion était quelque chose
 du genre "bel effort mais on est encore loin de zsh"
* je me suis dis que j'allais regarder du coté de zsh pour voir si je
 pouvais modérer son propos.
* je suis encore sous zsh aujourd'hui

par contre quand j'ai besoin de shells plus petits, j'utilise mksh, dash
et rc. selon ce que je cherche, donc, bash c'est soit trop lourd soit
pas assez intéressant.

Je ne doute pas qu'on puisse faire les mêmes choses avec bash et zsh
(tableaux associatifs (iterer/filter sur les clef ou les valeurs,...),
expressions arithmétique, ...) sauf que j'ai toujours trouvé que la
syntaxe ou l'approche proposée par zsh était plus élégante.

bonne journée à toi
marc





Fotocamera uitlezen

2020-10-07 Thread Paul van der Vlis
Hallo,

Twee vrijwel identiek ingerichte computers, ooit gekloond.

Als er een camera aan de goedwerkende computer gehangen wordt dan komt
er: "volumen van 1,0 GB" en daaronder staat: "het medium bevat digitale
foto's".

Bij de niet-goed werkende computer komt er: "Kon geen map openen voor
volumen van 1,0 GB.".  En als ik ga kijken dan is er een map
/media/beheer/disk/DCIM/ met daarin een foto. De map heeft gewoon de
rechten van de user "beheer".

Ik kan dit niet goed verklaren, iemand van jullie wel?

Groet,
Paul



-- 
Paul van der Vlis Linux systeembeheer Groningen
https://www.vandervlis.nl/



Re: gutenprint is a no op here, why?

2020-10-07 Thread Klaus Singvogel
Gene Heskett wrote:
> Stretch, uptodate. amd64
> 
> I have installed all of the gutenprint packages.
> 
> I have a Brother MFC-J6920DW printer, with the Brother drivers installed. 

I'm wondering that it works somehow with Gutenprint, as this printer isn't
in the list of supported printers of Gutenprint:
http://gimp-print.sourceforge.net/p_Supported_Printers.php

I think that you installed and use the drivers from Brother, which are not
related to the Gutenprint drivers [and are not aware of it].

Please, can you cite the line(s) "*cupsFilter: [...]" in your PPD file:
/etc/cups/ppd/.ppd

Thanks in advance.

Regards,
Klaus.
-- 
Klaus Singvogel
GnuPG-Key-ID: 1024R/5068792D  1994-06-27



Re: GUI programma met root-rechten

2020-10-07 Thread Geert Stappers
On Wed, Oct 07, 2020 at 02:12:38PM +0200, Wouter Verhelst wrote:
> On Mon, Oct 05, 2020 at 11:21:15PM +0200, Paul van der Vlis wrote:
> > Op 05-10-2020 om 17:42 schreef Wouter Verhelst:
> > > On Sat, Oct 03, 2020 at 06:56:41PM +0200, Paul van der Vlis wrote:
> > >>
> > >> Het krijgen van die root-rechten werkt tegenwoordig met "policykit",
> > >> daar heb ik weinig verstand van.
> > >>
> > >> Nu heb ik machines waar het netjes werkt.
> > >> Op een andere machine gaat het niet goed, daar wordt niet gevraagd
> > >> om dat paswoord en dan heeft het programma niet genoeg rechten.
> > >>
> > >> Hoe zorg ik ervoor dat dit venster wat om een paswoord vraagt verschijnt?
> > > 
> > > PolicyKit is een DBus-protocol waarbij een proces zonder privileges
> > > vraagt aan een proces met privileges om iets in diens naam te doen.
> > > 
> > > De documentatie daarvoor staat op de wiki:
> > > 
> > > https://wiki.debian.org/PolicyKit
> > 
> > Tja, had ik ook gezien. Maar er wordt niet verteld waarom er geen pop-up
> > verschijnt die om het root paswoord vraagt. Op een andere machine werkt
> > dat wel op die manier.
> 
> Probeer dan het volgende:
> 
> rsync -avHP machine-die-werkt:/etc/polkit-1 ./polkit-werkt
> rsync -avHP machine-die-niet-werkt:/etc/polkit-1 ./polkit-werkt-niet
> diff -ruN polkit-werkt polkit-werkt-niet
> 
> en dan kijken of je iets ziet dat eruit springt?


Ik ben benieuwd.



Dit bericht is om te melden dat alleen de computer in het midden
het rsync programma hoeft te hebben. De andere twee ( machine-die-werkt
en machine-die-niet-werkt ) zullen via SSH bereikbaar moeten zijn.
(rsync kan over zijn eigen poort reizen, maar kan ook over SSH poort 22
reizen.)

En om te melden dat je nog wat moet doen om /etc/polkit te lezen.

$ tar cf /dev/null /etc/polkit-1/
tar: Leidende '/' wordt uit lidnamen weggelaten
tar: /etc/polkit-1/localauthority: Functie open() is mislukt: Toegang geweigerd
tar: Gestopt in fouttoestand vanwege eerdere fouten




Groeten
Geert Stappers
-- 
Silence is hard to parse



gutenprint is a no op here, why?

2020-10-07 Thread Gene Heskett
Greetings folks;

Stretch, uptodate. amd64

I have installed all of the gutenprint packages.

I have a Brother MFC-J6920DW printer, with the Brother drivers installed. 
Works moderately well but pastel from gimp. gimp->file has a print with 
gutenprint option, but while I can supply it with the profile cups uses, 
which has a tray selector, the gutenprint version of this tool does not, 
it has no tray selection, and it doesn't work, doesn't even send enough 
data to wake up the printers display.

What might I be missing yet? Trolling thru the cups access_log, it 
appears to be creating a pdf, but it cannot be found in the likely 
places.  Why would it do this when I have given it the printers ppd?

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: Question: SSD speed

2020-10-07 Thread Michael Stone

On Wed, Oct 07, 2020 at 12:48:09PM +0200, Sven Hartge wrote:

Jeremy Nicoll  wrote:

On Wed, 7 Oct 2020, at 09:39, Hans wrote:



I have a little question. Smartctl is telling me, that my ssd drive
is 6Gb/sec capable, but the actual speed is only 1,5GB/sec.



If your SATA (presumably) connection from the machine to the SSD is a
6 Gbps one, the maximum data transfer speed in bytes across that
connection would be one eighth of that (as there's 8 bits per byte),
so about 760 MBps.



That's about half of your "1,5GBps".  That makes me wonder if your SSD
uses two SATA channels at once - is that even possible?


Only with SAS drives. And usually only for redudancy and not for
concurrency.

I question the benchmark Hans did.

Something tells me he either used "hdparm -tT", which is known to
misrepresent the speeds on modern drives, or wrote too little data so he
was benchmarking the Kernel cache and not the drive.


I'd assume it's confusion between bits and bytes. For clarity, *never* 
use B or b, just write out bit or byte because some people put attach 
much more significance to the case of that letter than others--making it 
basically useless for communication. As others have already pointed out, 
there's probably a mismatch between SATA versions causing a SATA III 
6Gbit/s device to negotiate down to SATA I 1.5Gbit/s. It's likely that 
the only solution is to replace the SATA controller. (Unlikely to be 
feasible in a portable device.) There is a small chance that it could be 
a bad cable and that replacing the cable would help.




Re: Question: SSD speed

2020-10-07 Thread Jeremy Nicoll
On Wed, 7 Oct 2020, at 12:14, Alberto Sentieri wrote:
> Just a small correction: it I believe SATA uses 8B/10B protocol, which 
> means each byte uses 10 bits on the serial channel.

I didn't know that.  Divide bps by ten to get Bps is the rule of thumb I
use for things like broadband connections, to allow for protocol
overhead.

-- 
Jeremy Nicoll - my opinions are my own.



Re: epoptes: xorg versus wayland ... iemand ervaring met veyon?

2020-10-07 Thread Wouter Verhelst
Hoi Koen,

Gelieve voor een nieuw onderwerp niet op "reply" te klikken, want dan
komt dat in de draad van het vorige onderwerp tevoorschijn, en da's wat
verwarrend. In plaats daarvan klik je beter gewoon op "nieuw bericht".

Dat gezegd zijnde:

On Mon, Oct 05, 2020 at 08:51:58PM +0200, Koen Wybo wrote:
> 
> Epoptes (https://epoptes.org/) is prachtige klasmanagement-software. Epoptes
> bestaat uit een 'leerkrachtenpc' en een client voor de cursisten. De
> configuratie van beide is correct verlopen. ALs cursisten inloggen in GNOME
> met de standaardinstelling (Wayland) dan verschijnt hun pc in het
> overzichtscherm van de leerkracht maar kan de leerkracht deze niet
> activeren. Loggen cursisten in GNOME onder Xorg dan werkt alles
> probleemloos. Is er iemand in geslaagd om epoptes met Wayland aan de praat
> te krijgen?

Ik denk niet dat dat kan; Wayland heeft (voorlopig) nog geen
ondersteuning om het scherm over te nemen en zo (althans in buster is
dat zo, geen idee over testing/unstable)

Is het niet beter om gewoon overal Xorg te activeren? Je kan dat system
wide doen via een paar opties.

> Heeft er iemand ervaring met Veyon op Debian? Heel veel handleidingen voor
> windows10 maar niets voor Debian. Bestaat er een rechttoe-rechtaan howto
> voor Veyon onder Debian voor zowel de client en serverconfiguratie (liefst
> via cli)?

Veyon? Nooit van gehoord.

-- 
To the thief who stole my anti-depressants: I hope you're happy

  -- seen somewhere on the Internet on a photo of a billboard



Re: GUI programma met root-rechten

2020-10-07 Thread Wouter Verhelst
On Mon, Oct 05, 2020 at 11:21:15PM +0200, Paul van der Vlis wrote:
> Op 05-10-2020 om 17:42 schreef Wouter Verhelst:
> > On Sat, Oct 03, 2020 at 06:56:41PM +0200, Paul van der Vlis wrote:
> >> Hoi,
> >>
> >> Sommige GUI programma's hebben (soms) root rechten nodig, denk
> >> bijvoorbeeld aan het programma "gnome-software", wat dient om
> >> programma's te installeren. Mooi programma overigens.
> >>
> >> Het krijgen van die root-rechten werkt tegenwoordig met "policykit",
> >> daar heb ik weinig verstand van.
> >>
> >> Nu heb ik machines waar het netjes werkt. Op het moment dat
> >> Gnome-software root rechten nodig heeft vraagt het om het paswoord van
> >> root. Op een andere machine gaat het niet goed, daar wordt niet gevraagd
> >> om dat paswoord en dan heeft het programma niet genoeg rechten.
> >>
> >> Hoe zorg ik ervoor dat dit venster wat om een paswoord vraagt verschijnt?
> > 
> > PolicyKit is een DBus-protocol waarbij een proces zonder privileges
> > vraagt aan een proces met privileges om iets in diens naam te doen.
> > 
> > De documentatie daarvoor staat op de wiki:
> > 
> > https://wiki.debian.org/PolicyKit
> 
> Tja, had ik ook gezien. Maar er wordt niet verteld waarom er geen pop-up
> verschijnt die om het root paswoord vraagt. Op een andere machine werkt
> dat wel op die manier.

Probeer dan het volgende:

rsync -avHP machine-die-werkt:/etc/polkit-1 ./polkit-werkt
rsync -avHP machine-die-niet-werkt:/etc/polkit-1 ./polkit-werkt-niet
diff -ruN polkit-werkt polkit-werkt-niet

en dan kijken of je iets ziet dat eruit springt?

-- 
To the thief who stole my anti-depressants: I hope you're happy

  -- seen somewhere on the Internet on a photo of a billboard



Re: Question: SSD speed

2020-10-07 Thread Alberto Sentieri
Just a small correction: it I believe SATA uses 8B/10B protocol, which 
means each byte uses 10 bits on the serial channel.


On 10/7/20 5:56 AM, Jeremy Nicoll wrote:

On Wed, 7 Oct 2020, at 09:39, Hans wrote:

Hi folks,

I have a little question. Smartctl is telling me, that my ssd drive is 6Gb/sec
capable, but the actual speed is only 1,5GB/sec.

If your SATA (presumably) connection from the machine to the SSD is a
6 Gbps one, the maximum data transfer speed in bytes across that
connection would be one eighth of that (as there's 8 bits per byte), so
about 760 MBps.

That's about half of your "1,5GBps".  That makes me wonder if your
SSD uses two SATA channels at once - is that even possible?

Alternatively, do any SSDs compress data before sending it across the
SATA channel?





Re: Question: SSD speed

2020-10-07 Thread Sven Hartge
Jeremy Nicoll  wrote:
> On Wed, 7 Oct 2020, at 09:39, Hans wrote:

>> I have a little question. Smartctl is telling me, that my ssd drive
>> is 6Gb/sec capable, but the actual speed is only 1,5GB/sec.

> If your SATA (presumably) connection from the machine to the SSD is a
> 6 Gbps one, the maximum data transfer speed in bytes across that
> connection would be one eighth of that (as there's 8 bits per byte),
> so about 760 MBps.

> That's about half of your "1,5GBps".  That makes me wonder if your SSD
> uses two SATA channels at once - is that even possible?

Only with SAS drives. And usually only for redudancy and not for
concurrency.

I question the benchmark Hans did.

Something tells me he either used "hdparm -tT", which is known to
misrepresent the speeds on modern drives, or wrote too little data so he
was benchmarking the Kernel cache and not the drive.

S!

-- 
Sigmentation fault. Core dumped.



Re: Question: SSD speed

2020-10-07 Thread Steve McIntyre
Hans wrote:
>
>I have a little question. Smartctl is telling me, that my ssd drive is 6Gb/sec 
>capable, but the actual speed is only 1,5GB/sec.
>
>The notebook is a little bit older, AMD CPU with 2x2,4 GHz, 4GB RAM, debian/
>testing.
>
>My question is now: How is the speed of the ssd set? Is it set by the hardware 
>or is it set during loading the kernel module?
>
>And is there a possibility to set the speed to 6Gb/sec , i.e. by setting some 
>parameters or by loading the kernel modules with additional tags?
>
>I searched the web, but found no other information than "use trimming" (which 
>does the kernel during installation automatically, and this system is 
>correctly trimmed).
>
>It would be nice, if someone knows more. Strangely, my netbook got 3Gb/sec, my 
>Notebook only 1,5 Gb/sec, so I have the idea, it might be a configuration 
>thing.

You're seeing the different transport speeds of different SATA
versions. SATA 1 does up to 1.5Gb/sec, SATA 2 does up to 3 GB/sec,
SATA 3 -> 6 GB/sec. The drive will be reporting that it's capable of
SATA 3 (hence the 6GB/sec number), but it will fall back to older
modes as needed for compatibility with the controllers in your
computers.

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
"You can't barbecue lettuce!" -- Ellie Crane



Re: Question: SSD speed

2020-10-07 Thread Jeremy Nicoll
On Wed, 7 Oct 2020, at 09:39, Hans wrote:
> Hi folks, 
> 
> I have a little question. Smartctl is telling me, that my ssd drive is 
> 6Gb/sec 
> capable, but the actual speed is only 1,5GB/sec.

If your SATA (presumably) connection from the machine to the SSD is a 
6 Gbps one, the maximum data transfer speed in bytes across that
connection would be one eighth of that (as there's 8 bits per byte), so 
about 760 MBps.

That's about half of your "1,5GBps".  That makes me wonder if your 
SSD uses two SATA channels at once - is that even possible?

Alternatively, do any SSDs compress data before sending it across the
SATA channel?

-- 
Jeremy Nicoll - my opinions are my own.



Re: Question: SSD speed

2020-10-07 Thread Georgi Naplatanov
Hi Hans,

6Gb/s is the maximum speed of SATA controller. Each SSD has its own
speed. For example maximum speed for SATA SSDs from Samsung is about
500MB/s what is about (8*500MB/s) 4Gb/s.

HTH

Kind regards
Georgi

On 10/7/20 11:39 AM, Hans wrote:
> Hi folks, 
> 
> I have a little question. Smartctl is telling me, that my ssd drive is 
> 6Gb/sec 
> capable, but the actual speed is only 1,5GB/sec.
> 
> The notebook is a little bit older, AMD CPU with 2x2,4 GHz, 4GB RAM, debian/
> testing.
> 
> My question is now: How is the speed of the ssd set? Is it set by the 
> hardware 
> or is it set during loading the kernel module?
> 
> And is there a possibility to set the speed to 6Gb/sec , i.e. by setting some 
> parameters or by loading the kernel modules with additional tags?
> 
> I searched the web, but found no other information than "use trimming" (which 
> does the kernel during installation automatically, and this system is 
> correctly trimmed).
> 
> It would be nice, if someone knows more. Strangely, my netbook got 3Gb/sec, 
> my 
> Notebook only 1,5 Gb/sec, so I have the idea, it might be a configuration 
> thing.
> 
> Thanks for any help!
> 
> Best regards
> 
> Hans
> 
> 
> 
> 



Question: SSD speed

2020-10-07 Thread Hans
Hi folks, 

I have a little question. Smartctl is telling me, that my ssd drive is 6Gb/sec 
capable, but the actual speed is only 1,5GB/sec.

The notebook is a little bit older, AMD CPU with 2x2,4 GHz, 4GB RAM, debian/
testing.

My question is now: How is the speed of the ssd set? Is it set by the hardware 
or is it set during loading the kernel module?

And is there a possibility to set the speed to 6Gb/sec , i.e. by setting some 
parameters or by loading the kernel modules with additional tags?

I searched the web, but found no other information than "use trimming" (which 
does the kernel during installation automatically, and this system is 
correctly trimmed).

It would be nice, if someone knows more. Strangely, my netbook got 3Gb/sec, my 
Notebook only 1,5 Gb/sec, so I have the idea, it might be a configuration 
thing.

Thanks for any help!

Best regards

Hans