The officially official Devuan Forum!

You are not logged in.

#1726 Re: Installation » Odd mouse behaviour » 2018-10-25 14:28:14

Hello:

Panopticon wrote:

I get this too, i thought it was just my mouse.

Aha! Now there's four of us.

Panopticon wrote:

Only happens in my xfce4 box ...

I see ...
That narrows the possible origin of the problem quite a bit.

Panopticon wrote:

In xfce4 thunar, it will either open a new tab or create a new folder ...

Yes, seems to be the same.

Panopticon wrote:

... just a fidily fuck about nusance.

It gets on my nerves, particularly when it happens in the browser and when I need to copy/paste something.
Very annoying.

Anyone have any idea as to how it can be fixed?

Thanks for your input.

A.

#1727 Re: Installation » Odd mouse behaviour » 2018-10-24 20:22:55

Hello:

Tatwi wrote:

... my imagination!

It's not yours or mine.
Apparently.

Tatwi wrote:

... happening from time to time as well.
... not ruling out that it's a PEBKAC issue ...

You can rule it out.
Three of us with the same issue got together on short notice.
I'm sure there's many more 'right-click-button' victims out there.  8^D!

Tatwi wrote:

... how do you narrow down to find the root cause?

No idea.
Even though I have 20+ years of work with IT, that's way over my head.

IMHO it's a driver/udev or Xfce thing, a set of mouse parameters that maybe wrong and are common to all types of pointing devices of this type.
ie: PS/2, USB, wireless ...

I wonder if anyone with a touchpad has the same problem?

Tatwi wrote:

... M510 wireless mouse ...

Mouse type, model or interface seems to make no difference.

Tatwi wrote:

... default the double click time in the XFCE Mouse and Touchpad panel is 250ms.

I've tried changing those settings but with no evident results.

But IIRC, it started to happen after the last kernel upgrade. (not too sure though).
So I guess it is not kernel related.  (?)

Thanks for your input.

Cheers,

A.

#1728 Re: Installation » Odd mouse behaviour » 2018-10-24 16:29:52

Hello:

dxrobertson wrote:

... probably mean Right-Click ...

Quite so ...  8^ o
Thanks - duly noted and corrected.

dxrobertson wrote:

... wonder if this is the same as your other problem, that the popup menu isnt displayed long enough for you to react.

Seems so.

The pop-up menu is displayed as long as I hold down the right mouse button.
If I let it go, the menu recedes. 

dxrobertson wrote:

... then the top menu option (Open Link in New Tab) is being selected "quickly" before you realize it?

Yes.
I right-click (at this point the pop-up menu should stay open, but it does not).
Like the previous example, the pop-up menu is displayed as long as I hold down the right mouse button.
If I let it go, the menu recedes. 

dxrobertson wrote:

Both these problems happen to me, randomly also, but I notice it in Thunar.

I think I have seen some strange behaviour in other apps, but it is in the browser where it is  most annoying.

dxrobertson wrote:

... Right-Click on empty space to bring up the menu, and the top menu option "Create Folder" gets selected before I can react.

I seem to recall having experienced this but I can's say much more.

dxrobertson wrote:

... experience your other problem; the menu quickly goes away ...

Well, at least it's not just me.

It has happened with three different pointing devices: the first one, a PS/2 mouse, a very solid + well made Wise edition, the second a crappy plasticky Verbatim and the actual one a brand new Logitech M100, all optical.

All three exhibited the exact same behaviour, so IMO it's definitely not a mouse thing.

Maybe it's something to do with the mouse drivers (?) selected by the default X server settings through udev (I think that's how it works).

Thanks for your input.

Cheers,

A.

#1729 Installation » Odd mouse behaviour » 2018-10-24 14:39:46

Altoid
Replies: 30

Hello:

I have been experiencing some rather odd mouse 'right button' behaviour but I cannot remember when it started or associate it with anything desktop related.
It manifests itself mostly (or at least that's where it is most noticed) while browsing.

I use Firefox 55.0.3 64-bit in a stock Devuan ASCII installation.

When I 'right click' on a link, instead of getting the drop down menu so as to be able to select what to do ie: open link in new tab/window/private window, etc. it directly opens the link in a new tab.

To make things worse, this does not happen 'all' the time, it happens at totally random times and is also not related to the site I am viewing so I have been unable to reproduce it at will.

Edit: Forgot to add that another manifestation is that when selecting text on a web page to copy, a right click will not keep the menu that opens up 'open'.
I have to keep mi finger on the right button and drag the pointer to the action I want to perform eg: copy. 

And it does not have to do with the mouse as I have experienced the issue with a PS/2 mouse and two different brand/quality USB mice.

Any ideas?

Thanks in advance.

A.

Edit: corrected mouse button name.

#1730 Installation » [Solved] Leafpad 0.8.18.1 and conversion to 'ANSI_X3.4-1968' » 2018-10-21 19:53:14

Altoid
Replies: 2

Hello:

After fixing an issue with my kb configuration, I then came across a problem with Leafpad.

The thing is that if I try to generate/edit/watever a file with the special characters used by my kb and language settuing, I get a pop-up that says:

Can't convert codeset to 'ANSI_X3.4-1968'

The only way I can save the file is doing away with any special characters ie: in the sense that they do not belong to the 'ANSI_X3.4-1968' codeset which is essentialy the same as  (?) US-ANSI.
But my installation is set otherwise.

I believe that my settings are correct:

groucho@devuan:/$ locale -a
C
C.UTF-8
POSIX
en_US.utf8
es_AR
es_AR.iso88591
es_AR.utf8
groucho@devuan:/$ 

groucho@devuan:/$ locale
LANG=es_AR.UTF-8
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
groucho@devuan:/$

Edit:
This happens even after uninstalling the en_US.utf8 codeset:

groucho@devuan:~$ locale -a
C
C.UTF-8
POSIX
es_AR
es_AR.iso88591
es_AR.utf8
groucho@devuan:~$ 

If it is not installed, why does Leafpad want to convert the file to that codeset?

Am I missing something?

Thanks in advance,

A.

#1731 Re: Installation » [Solved] Keyboard configuration issue » 2018-10-21 19:43:32

Hello:

golinux wrote:

Reality check . . . nothing lasts forever.

Indeed ...

golinux wrote:

... to date no posts have been pruned from this forum ...

I no doubt did not express myself correctly.
I was not referring to the possibility of post being pruned but to a section/page where certain (usually config related) posts would be grouped.
Something like: Read posts in this this section first.

Just an idea.

Best,

A.

#1732 Re: Installation » [Solved] Keyboard configuration issue » 2018-10-21 14:08:09

Hello:

fsmithred wrote:

Good find!

Indeed it is.
Thanks.

Couldn't be that it did/did not work.
Something was surely amiss somewhere.

I'll drop the OP a line thanking hin for taking the time to find out what was up.

fsmithred wrote:

... copying the answer here ...

Don't we have a sticky section where these things can go and live forever?

fsmithred wrote:

... use either of the first two methods.

One thing I found was that there was some sort of issue with the Wise PS2 mouse that I had plugged into my Wise USB keyboard.

Once I found the crap Verbatim USB mouse, the problem with the mouse freezing went away.
I'll get a decent mouse tomorrow ...

But I really have to brush up my cuasi non-existent keyboard skills, it's unacceptable that a bad mouse can ground you.

In any case, it seems that part of the problem was related to /dev/mouse0 not being there and the existence of /dev/psaux but I decided to give up on that.
It's probably an evdev configuration issue.

So, this is what I did:

1.
Edited xorg.conf and deleted all InputDevice entires in Section "ServerLayout" and the two "InputDevice" Sections.
X server probes and picks up what is there.

2.
Made sure that Section Section "ServerFlags" has these options to the default settings.

Section "ServerFlags"
    Option         "DontZap" "False"                # default False - "True" disables <Ctrl><Alt><BS> (server abort)
    Option         "AutoAddDevices" "True"      # default True - to use system kb, kb layout and mouse settings
    Option         "AutoEnableDevices" "True"  # default True - if "AutoAddDevices" is set to default 
EndSection

Of course, being default settings you can do away with the whole "ServerFlags" section but I have decided to keep them so I remember all this.

groucho@devuan:~$ setxkbmap -query
rules:      evdev
model:      pc105
layout:     es
variant:    deadtilde
options:    lv3:ralt_switch,terminate:ctrl_alt_bksp
groucho@devuan:~$ 

Now Control+Alt+Backspace works as well as Control+Alt+Fx.

Really don't need the special characters or accented characters in Terminal (ç Ç ñ Ñ - ' ` ^ " ) but there's an issue with Leafpad and codeset=ANSI_X3.4-1968 which I will adress in another post.

Maybe we're on a roll and we'll solve it?   =-)

Cheers,

A.

#1733 Re: Installation » [Solved] Keyboard configuration issue » 2018-10-21 10:26:35

Hello:

fsmithred wrote:

... mentions of the change I can find.

I've found this recent (june 2018) and quite comprehensive article on the Control+Alt+Backspace not working issue:

https://utcc.utoronto.ca/~cks/space/blo … eTerminate

Just hovered over it so still have to read through and digest the whole of it, but it apparently explains everything.
Including how to get it working again. (?)

Would appreciate any comments.

Cheers,

A.

#1734 Re: Installation » [Solved] Keyboard configuration issue » 2018-10-21 00:40:44

Hello:

fsmithred wrote:

... not working here, and I tried it on two different ascii installations, same version of xorg ...

Here's my xorg.conf settings for input devices:

Section "ServerLayout"
Identifier     "Layout0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    # generated from default configuration
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5" 
EndSection

Section "ServerFlags"
    Option         "DontZap" "False"             # default False - "True" disables <Ctrl><Alt><BS> (server abort)
    Option         "AutoAddDevices" "False"      # default True - to use system kb, kb layout and mouse settings
    Option         "AutoEnableDevices" "True"    # default True - 
EndSection

If I check the box that says Use system defaults in Applications -> Settings -> Keyboard -> Layout + logou/login, I end up getting what seems to be a US layout on both X and the terminal and Control+Alt+Backspace will not terminate the X server.

But if I change the "AutoAddDevices" to "True" (so that it does what it is supposed to do), my mouse freezes BUT Control+Alt+Backspace works as advertised.   

Shutting down the server in these conditions does not do anything for me, I have to resort to Ctrl+Alt+F1 th sudo jed the xorg.conf file so I can have a working mouse again.

fsmithred wrote:

... earliest mentions of the change I can find. I tried getting it working a couple times and failed, so I haven't tried it in years (until now.)
http://forums.debian.net/viewtopic.php? … ce#p429554

I'll have a look.

Thanks for your input.

Cheers,

A.

#1735 Re: Installation » [Solved] Keyboard configuration issue » 2018-10-20 11:59:02

Hello:

Altoid wrote:

I'm on ASCII and if I set up an xorg.conf (default setting enables ctrl-alt-backspace) ...

I also have a TinyCore install on an SD card plugged into a USB2.0 port inside my box.
It's a go-to personal (but secure) IME (!) which I've set up in case everything (SAS card, HDDs, DVD-R, etc.) decides to go down at the same time.

It's also faster than loading a live CD.
Now, if the internal USB port also fails, I would probably need a new box.

tc@box:~$ uname -a
Linux box 4.8.17-tinycore #2017 SMP Sun Mar 5 15:49:22 UTC 2017 i686 GNU/Linux
tc@box:~$ 

I can confirm that with Xorg-7.7 installed (default settings) ctrl-alt-backspace also works.

Cheers,

A.

#1736 Re: Installation » [Solved] Keyboard configuration issue » 2018-10-19 15:53:29

Hello:

fsmithred wrote:

1, ctrl-alt-backspace hasn't worked in a long time. (maybe not since squeeze)

Hmm ...
I think not.

I'm on ASCII and if I set up an xorg.conf (default setting enables ctrl-alt-backspace) and do Applications -> Settings -> Keyboard -> Layout, where the Use system defaults box is checked, it will work but I've been at odds with setting layouts and kbd for the longest while so I go the Xfce route.

ie: in Section "ServerFlags"
Option "DontZap" set to "False" (default "False")  - "True" setting disables <Ctrl><Alt><BS> (server abort)
Option "AutoAddDevices" set to "True" (default "True")  - "True" setting is for using system kb, kb layout and mouse settings

So, my guess is that if it does not work in ASCII it's not because of the kernel version but because of the Xfce plugin or something else related to the Kb settings in Xfce.

fsmithred wrote:

Use alt-SysRq-k instead

I'll try that.
I never used ctrl-alt-backspace much but when I learned how convenient it was, I found it very useful.

I think it should be fixed/reinstated - as it does work.

fsmithred wrote:

SysRq is probably the same key as PrntScr.

Yes it is.

fsmithred wrote:

Try the xfce4 keyboard plugin to switch layouts. (xfce4-xkb-plugin)

Thta's what I am using.
Probably the source of the ctrl-alt-backspace problem.

Thanks for your input.

Cheers,

A.

#1737 Re: Installation » Installing printer drivers » 2018-10-19 15:35:33

Hello:

golinux wrote:

... suspect you might find an answer in there.

I reinstalled the drivers but there was a problem about some backend USB that was but was not there.
(sorry, I neglected to write down the exact text)

Then I realised CUPS was gone, so I reinstalled it and still no joy, same backend USB problem.

But then I had never used CUPS, which proved to be a real find.   =-)

Opened it with a browser http://localhost:631/admin, installed the printer and deleted the other one (another 2020W but with a different name) that was not working for whatever reason.

So I was able to solved the problem autoremove caused but not the autoremove causing the problem because of the driver not being registered.

For the moment I'll just have to remember how that goes.

Maybe someone knows how to get that done, must be a way.

Thanks for your input.

Cheers,

A.

#1738 Installation » Installing printer drivers » 2018-10-18 11:54:14

Altoid
Replies: 3

Hello:

In a hurry for a printer to finish some overdue work at home and not at the office, I went and got myself a SamsungXpress M2020W at a great discount.

[note]
The discount has a reason: printer carts for this thingy are a rather expensive proposition and 2020 is not the same as 2020W firmware wise.
It seems that the latter (the one I puchased, naturally) cannot have its firmware reflashed to be able to use alternative toner carts without a new chip each time.
[/note]

But I digress.

The printer drivers for Linux (provided by Samsung) are installed via a script and will most probably be removed by apt autoremove as apt/SPM has not registered them.

Is there a way to get them registered by apt/SPM so that this does not happen?

Thanks in advance.

A.

#1739 Installation » [Solved] Keyboard configuration issue » 2018-10-18 11:29:17

Altoid
Replies: 11

Hello:

My rig runs Devuan ASCII with the default Xfce desktop:

groucho@devuan:~$ uname -a
Linux devuan 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64 GNU/Linux
groucho@devuan:~$ 

It's fully up to date:

[root@devuan groucho]# apt-get update
Hit:1 http://deb.devuan.org/merged ascii InRelease
Hit:2 http://deb.devuan.org/merged ascii-updates InRelease
Hit:3 http://deb.devuan.org/merged ascii-security InRelease
Reading package lists... Done
[root@devuan groucho]# 

I have my keyboard set up using dpkg-reconfigure keyboard-configuration.

The settings are these:

1. Generic 105-key (Intl) PC
2. Spanish (include dead tilde)
3. Key to function as AltGr: Right Alt (AltGr) ie: the default for the kb layout 
4. Compose key Right Alt (AltGr)
5. Control+Alt+backspace to terminate the X server

These settings are reflected in Applications -> Settings -> Keyboard -> Layout, where the Use system defaults box is unchecked.

Everything works just as it says but ...

1. Control+Alt+backspace will not terminate the X server.
2. Characters belonging to this Spanish keyboard layout ie: ç/Ç and ñ/Ñ do not work in terminal.

I'd like to get 1. working as I use it relatively often.
I can live without 2. but I think have seen it working.

Can this be fixed?

Thanks in advance.

Cheers,

A.

#1740 Re: Installation » [Solved] Wicd 1.7.4 question » 2018-10-17 17:34:15

Hello:

fsmithred wrote:

Un-set wlan0 as the default wireless device ...

Yes!
That did it. =-)
And of course, this does survive a reboot.

Curiously enough (or maybe not), Switch On Wi-Fi / Switch Off Wi-Fi in the UI does not get greyed out, it just goes unresponsive.
Pity, it shouldn't be too difficult to add an Always connect Wi-Fi check-box (or something similar) in the General Settings Tab.

It's a great application but it seems to me (from what I have seen on the Launchpad page) that the maintainers are not too keen on it.
Last release 1.7.4 was on 2016-01-25.

fsmithred wrote:

... see what wireless signals you can get) you'll need to set the default wireless device ...

Yes, in the event my ADSL goes dark.

fsmithred wrote:

... might be rfkill to turn it off.

Yes, but i'd have to be doing it every time I boot.

Thank you very much for your input.

Cheers,

A.

#1741 Re: Installation » [Solved] Wicd 1.7.4 question » 2018-10-17 16:12:33

Hello:

Altoid wrote:

Hello:
... should have been obvious to me. (I lost my *.ini instincts long ago ...)
... had to be at least one *.conf file for this app somewhere.

Not so much.

I'm sorry to have to report that I made a mistake when evaluating my results.

The line I added to the manager-settings.conf has no effect on how wicd starts up.

ralph.ronnquist wrote:

... the wicd-curses UI offers a toggle for achieving this (without manual file editing) ...

I installed wicd-curses but there's no option (I can find) that does what I want to do.
ie: that Wicd does not switch on Wi-Fi at  boot time and uses just the wired connection.

Sorry for the confusion.  :^ /

Cheers,

A.

#1742 Re: Installation » [Solved] Wicd 1.7.4 question » 2018-10-16 10:14:59

Hello:

ralph.ronnquist wrote:

Good find.

Thank you but it should have been obvious to me. (I lost my *.ini instincts long ago ...)
The second I hit 'Submit' it dawned on me that there had to be at least one *.conf file for this app somewhere.

ralph.ronnquist wrote:

There is also the per-AP settings in /etc/wicd/wireless-settings.conf ...

I looked in that file but as it was directly related to specific (AP) settings and not global ones, decided not to touch it.

ralph.ronnquist wrote:

... the wicd-curses UI offers a toggle for achieving this (without manual file editing) ...

I don't have it installed, will have a look.

Thanks for your input.

Cheers,

A.

#1743 Re: Installation » [Solved] Wicd 1.7.4 question » 2018-10-15 21:39:44

Hello:

Altoid wrote:

So: does anyone know how to change the start-up behaviour in Wicd?
ie: Wi-Fi Off instead of On. (it is not in Preferences).

No ...
It is not in "Preferences" but that's because not all possible settings are represented in the GUI.

In /etc/wicd there are three configuration files which can be opened/edited (as root).
The one that has the settings reflected in Preferences is manager-settings.conf:

[Settings]
backend = external
wireless_interface = wlan0
wired_interface = eth0
wpa_driver = wext
always_show_wired_interface = True
use_global_dns = False
global_dns_1 = None
global_dns_2 = None
global_dns_3 = None
global_dns_dom = None
global_search_dom = None
auto_reconnect = True
debug_mode = 0
wired_connect_mode = 1
signal_display_type = 0
should_verify_ap = 0
dhcp_client = 0
link_detect_tool = 0
flush_tool = 0
sudo_app = 0
prefer_wired = True
show_never_connect = True

I saw the wired_connect_mode = 1 line and guessed that there probably was a possible default setting ie: wireless_connect_mode = 1 which would accept the value 0.

I added it and it worked.   =-)

So:
Open manager-settings.conf (need to be root) and add the line wireless_connect_mode = 0.
That will have Wi-Fi off when the app starts and will survive a reboot.

Of course, you can turn Wi-Fi on again but it will not survive a reboot unless you either delete the added line or set it to wireless_connect_mode = 1   

Cheers,

A.

#1744 Installation » [Solved] Wicd 1.7.4 question » 2018-10-15 21:15:24

Altoid
Replies: 6

Hello:

I use the default Wicd 1.7.4 application in my Devuan ASCII installation.
It is, in my limited opinion, much better and easier to use than the network managers I have come across in other distributions.

I have now moved from sharing a wifi account with a neighbor on the same floor to an ADSL subscription of my own.
It costs me about the same and do not have to deal with interferences from other Wi-Fi setups in the building.

So I have set up Wicd to use the wired network as the default profile but would like Wi-Fi to be switched off and be able to switch it on should I want to instead of being switched on and be able to switch it off.

The thing is that switching it off holds only for the session and on reboot Wi-Fi is on again.

Unfortunately, the Wicd FAQ https://launchpad.net/wicd says nothing about this and asking a question there usually goes unanswered till it is dropped.
There seems to be very little work being done on Wicd and I rather fear for its future.

So: does anyone know how to change the start-up behaviour in Wicd?
ie: Wi-Fi Off instead of On. (it is not in Preferences).

Thanks in advance.

Cheers,

A.

#1745 Re: Installation » [Solved] Huge .xsession-errors file » 2018-10-15 16:49:29

Hello:

Hmm ...
Please check the thread, specifically my second post:

Altoid wrote:

WRT the .xsession-errors file, I found a solution to keep it in check here:

http://www.daniloaz.com/en/how-to-preve … huge-size/

It sets up a line in crontab to check every 15 minutes if the file size is greater than 5 GB and if so either empty it or keep the last 10,000 lines.
I set it for every 30 minutes and 1000 lines.

chris2be8's suggestion to chmod 755 /var/log/lost+found could not be easier to implement as it stops the error messages generated by conky by allowing it to access the file.
These error messages were the sole cause of the huge .xsession.errors bloat, so it seems to me that it is the simplest solution. (as always, YMMV)

The crontab solution you suggest controls the size of the .xsession.errors file but generates another set of logfile entries (three lines in auth.log instead of the single line in .xsession.errors we had before) every time conky tries to read the file (every 2 sec.), so it actually makes things worse.

The alternative to stop logging sudo access to auth.log (would not know how to do it) does not seem healthy.

In any case, I set it up because it is a good idea to keep the .xsession.errors file at bay, in my case at 30 minute intervals, a max of 2Gb and min of 1000 lines which would seem to be more than adequate.

Thanks for your input.

Cheers,

A.

#1746 Re: Installation » [Solved] Huge .xsession-errors file » 2018-10-13 16:13:20

Hello:

chris2be8 wrote:

Running chmod 755 /var/log/lost+found as root will allow all users to read /var/log/lost+found but not put anything in it.

Ahh ...
Interesting.

I thought it was a system file and as such belonged to root and root only.
Good to know.

Doing chmod 755 /var/log/lost+found would allow conky to read it without needing admin credentials ie: being included in a sudoers file.
And as such, it won't get logged in auth.log.
Neat.

chris2be8 wrote:

... lost+found is where fsck puts files it has recovered from a damaged filesystem so there is usually nothing in there.
... not worry about allowing read access to it unless I have sensitive data on the system that not all users should be able to read.

Nothing there that I should worry about.

I think it may also be worthwhile for the system to generate a separate /var/log/sudo.log file (editing /etc/sudoers).

Thanks you both (chris2be8 + fsmithred) for your input - learned new things today.

Best,

A.

#1747 Re: Installation » [Solved] Huge .xsession-errors file » 2018-10-13 15:13:18

Hello:

fsmithred wrote:

Conky runs as your user ...

I see ...

fsmithred wrote:

... so give your user sudo nopasswd for du ...

OK

fsmithred wrote:

... and change the command in conkyrc to

exec sudo du -sch /var/log

Make a file in /etc/sudoers.d/ with the following.

groucho ALL= NOPASSWD: /usr/bin/du

Fortunately I recently learned (here) how to properly generate a sudoers file.
Done.

Just to check:

groucho@devuan:~$ conky
conky: desktop window (1800003) is subwindow of root window (728)
conky: drawing to desktop window
conky: No compatible double buffer extension found
conky: drawing to single buffer

Now my .xsession-errors file will not get filled up with 18Gb of '/var/log/lost+found': Permission denied errors.

Edit:
This solution, neat and efficient, has nevertheless spawned another log overpopulation problem:

Every time

exec sudo du -sch /var/log

is run (every 2s), three lines get written to auth.log.   
This makes absolutely perfect sense as it's exactly what auth.log is for but it also means that auth.log will grow three times fraster than .xsession-errors grew. (!)

Oct 13 12:17:49 devuan sudo:  groucho : TTY=unknown ; PWD=/home/groucho ; USER=root ; COMMAND=/usr/bin/du -sch /var/log
Oct 13 12:17:49 devuan sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Oct 13 12:17:49 devuan sudo: pam_unix(sudo:session): session closed for user root
--- snip ---

I think I may have seen a fix for this but I'll have to look and get back.

In the meanwhile, do you have any ideas as to how to cope with this?
I will temporarily go back to where I was before the fix to conky to keep log growth at bay.

Thanks in advance.

Best,

A.

#1748 Re: Installation » [Solved] Huge .xsession-errors file » 2018-10-12 22:58:19

Hello:

golinux wrote:

... .xsession-errors files much larger ...
... stuffed with ~250 GB so that file isn't a noticeable blip.

Indeed.  =-)

golinux wrote:

It is possible to open those logs.  Just change the encoding.

Don't know how to do that, it is a problem when I wanted to open some (not all) log files with mousepad.
But I can read them with the Log Viewer.

I have had problems opening up huge files (very slow) even though my rig holds 8Gb. RAM.

WRT the .xsession-errors file, I found a solution to keep it in check here:

http://www.daniloaz.com/en/how-to-preve … huge-size/

It sets up a line in crontab to check every 15 minutes if the file size is greater than 5 GB and if so either empty it or keep the last 10,000 lines.
I set it for every 30 minutes and 1000 lines.

Once I emptied the .xsession-errors file, I found that it was getting a Gtx error every so often about not being able to load the ATK bridge, which I fixed by installing libatk-adaptor.
Found that solution here: https://dev1galaxy.org/viewtopic.php?id=1815 -->  =-)

But what really eats up room in the .xsession-errors file is this line, constantly written up:

du: cannot read directory '/var/log/lost+found': Permission denied
du: cannot read directory '/var/log/lost+found': Permission denied
du: cannot read directory '/var/log/lost+found': Permission denied
--- snip ---

But I know where it comes from:

groucho@devuan:~$ conky
conky: desktop window (1600003) is subwindow of root window (728)
conky: drawing to desktop window
conky: No compatible double buffer extension found
conky: drawing to single buffer
du: cannot read directory '/var/log/lost+found': Permission denied
du: cannot read directory '/var/log/lost+found': Permission denied
du: cannot read directory '/var/log/lost+found': Permission denied
du: cannot read directory '/var/log/lost+found': Permission denied
du: cannot read directory '/var/log/lost+found': Permission denied
du: cannot read directory '/var/log/lost+found': Permission denied
--- snip ---

My conky.conf file is set up so I can see the evolution of my disk usage (/, /home and /var/log), and /var/log usage is checked with this line ...

/var/log ${exec du -sch /var/log | head -n1 | awk '{print $1}'}
${fs_bar /var/log}

... so every time that conky takes a reading, it generates an error message that gets logged in the .xsession-errors file.
No wonder it was huge, conky reads every 2s.   

So the question would be:

How can I get conky to be able to read lost+found?
This would need admin credentials for conky, which does not sound healthy.
And conky is not really a user, so I don't think it could be added to sudoers.

Maybe get the Xserver to not log this specific error?

Any ideas?

Thanks in advance.

A.

#1749 Installation » [Solved] Huge .xsession-errors file » 2018-10-12 21:46:15

Altoid
Replies: 8

Hello:

Some time ago I took notice that my /home folder usage had grown to over 75%.
It seemed too much but then I realised that I had not done any cleaning in my /home/Downloads folder, so I did a thorough cleaning and sent what I (suppose) will/may need to another drive.

My cleaning got me to around 53% but it still seemed too much as the whole /home partition is 45Gb.

I went looking for a disk usage app and remembered Baobab from my days playing with Mint but saw that the beast wants to drag in all its relatives and friends into my rig so I skipped that one.

Then I remembered du, which I ran as root so it would look everywhere:

[root@devuan groucho]# du -a /home | sort -n -r | head -n 100
24834420	/home
24834400	/home/groucho
16401024	/home/groucho/.xsession-errors
6549156	/home/groucho/VirtualBox VMs
6549152	/home/groucho/VirtualBox VMs/groucho xp
6548676	/home/groucho/VirtualBox VMs/groucho xp/groucho xp-disk1.vmdk
842040	/home/groucho/vmshared
482676	/home/groucho/.wine
480524	/home/groucho/.wine/drive_c
439036	/home/groucho/.wine/drive_c/PMAIL
[root@devuan groucho]# 

And this is when I came upon the 16.4Gb .xsession-errors file.

So I got emptied it completely, no way I could open it with Log Viewer to see what was up.

groucho@devuan:~$ >~/.xsession-errors
groucho@devuan:~$ 

Now my /home folder just takes up 18%.

But I wonder: shouldn't this be getting rotated, zipped and eventually deleted past a certain time?

Thanks in advance.

A.

#1750 Re: Installation » Request for package » 2018-10-12 20:55:57

Hello:

fsmithred wrote:

... in the .deb package is not enough to recompile. You need the source code to do that.

That I have from Git.

fsmithred wrote:

... run barry in an old version of debian in a virtual machine.

Hmm ...
Thought of that too, but it's more or less the same as what I have now.

I tried doing Alien on an .rpm but on installation I got some problem in a libbarry18 (?) library.
I think that is the point where the original maintainer/developer gave up.

Thanks for your input.

Cheers,

A.

Board footer

Forum Software