Products > Computers
Ubuntu 20.04 LTS
bd139:
I spend half my days in log files. They're there when you need them.
I wanted a rude username:
--- Quote from: RoGeorge on March 29, 2020, 05:27:59 pm ---When started from the GUI, it was continually sending thousands and thousands of lines into ~/.xsession-errors log, with all the TCP connection, failures, even a canceled attempt of renaming a torrent was logged with all the details, including the old and the new file name, that were the same, since the rename attempt was canceled, way too verbose. :o
However, when I started ktorrent from a terminal, I noticed the same crazy verbosity, but only in the terminal where ktorrent was running, and nothing into the ~/.xsession-errors. Even more, after redirecting the stdout to /dev/null, no error messages were displaying, so all those were not errors from stderr, were just normal stdout messages, thought, not sure why they had to be many.
--- End quote ---
That's what .xsession-errors is for.
See, in the old days you would log in to X without a session, and the only thing that would open would be a single Xterm. You would use it to start your window manager, then more Xterms (because of course), and ultimately you'd be starting everything from Xterms. So you'd be able to see every program's output.
But if your login script executes a window manager (which today go by the glorified name of "desktop environments", though at base they have the same function), when it launches a program it puts all output into .xsession-errors (and potentially also syslog, though that's annoying), because otherwise that output would be lost.
GUI programs spamming output are absolutely buggy and those bugs need to be reported and fixed. Also, MPV > VLC. ;)
RoGeorge:
To me, the name .xsession-errors is a very uninspired choose, because makes one expect to find only errors there.
Some more fun with logs, a line from the same .xsession-errors
--- Quote ---kio_smb: open "smb://user:password@server/folder" 3 -1
--- End quote ---
The password is written in the log in plain text when the user tries, for example, to connect by typing the full UNC in a file browser, e.g. Dolphin. Nobody does protocol://user:pass@server anymore, but still, IMO it's a security issue to send to the logs a line you know it has a password in it.
Anyways, as I said before, there were some problems accessing Samba shares.
Whatever I tried, I couldn't make KDE to ask for a username and password, no matter which file browser is used. In the background it tries all stupid things, like trying to use the Kubuntu username, then "anonymous", and so one, but never asks for credentials with a pop-up window. :-//
It even has a more stupid place where I can put a username and pass to be used by default in samba shares. But it's only one user/pass combination. What if I connect to more machines with different user names? ;D
And the rule says if I left that user/pass blank in System Settings -> Network Settings -> Windows Shares, then it will ask for user/pass with a pop-up window, but it doesn't! :horse:
Apart from the missing pop-up for credentials, there was one more thing. For Windows XP, newer samba protocols >=1.0 does not work. The solution is to either install cifs-tools and mount from the command line (or from the fstab), or much easier because it has a nice GUI, to install smb4k, and set it to use smb v=1.0 (from the advanced settings of smb4k)
TL;DR
- No idea why no file browser is asking for credentials when connecting to a Samba share
- for WinXP, you must specify to Samba to use the protocol v=1.0
- in the end, smb4k was the winner, a nice GUI that can remember former connections, asks for user/password, and many others (integrates the samba shares into file browsers, autoreconnect, rsync, umount at shutdown, etc.)
RoGeorge:
--- Quote from: I wanted a rude username on March 29, 2020, 09:17:52 pm ---Also, MPV > VLC. ;)
--- End quote ---
Didn't used MPV much before, mainly because by default the wheel was scrolling through the movie instead of changing the volume. This time, took the time to read the docs in order to change the mouse wheel behavior.
First, make a local profile:
--- Code: ---cp -r /usr/share/doc/mpv/ ~/.config/
--- End code ---
After that, the only files of interest are "~/.config/mpv/mpv.conf" and "~/.config/mpv/input.conf". For the mouse wheel to change the volume, in the file "~/.config/mpv/input.conf" put the lines
--- Code: ---WHEEL_UP add volume 5
WHEEL_DOWN add volume -5
--- End code ---
As a side effect of looking how to change that, I found out that MPV has all the features that I looked for in other players, but never found them all together. For example, MPV can slightly adjust the play speed of the movie in order to match it with the monitor framerate, so the movie won't stutter periodically, has a working hardware acceleration, and so on. MPV also has had the lowest processor utilisation in comparison with VLC or SMPlayer.
So far, MPV works great, and I love the minimal interface. :-+
Thanks!
Navigation
[0] Message Index
[*] Previous page
Go to full version