DevHeads.net

Postings by silver.bullet

Wayland - Was: Startup Applications not working in 16.04

On Sun, 20 Aug 2017 15:47:48 +0300, Tom H wrote:
Hi,

what happens if I make a release update from 16.04 to the next LTS? I
need xorg.conf.

Replace xorg.conf with xrandr for dualhead on demand

Hi,

do you have any hints on what to consider, when writing a script for an
LCD monitor and a CRT monitor using an Intel graphics?

I already have done some research on my own [1], but actually I booted
with an xorg.conf, IOW it's not removed yet.

LCD monitor

Hi,

mainly for Ardour usage, but also for office work, browser etc. I want
to get rid of my CRT monitor. I wonder how much difference is between a
300,- € and a 150,- € LCD monitor.

Regarding a chip.de test the 8. best monitor is an Eizo FlexScan EV2450
the 48. best monitor is a LG 24MB56HQ-B

Both are 24" monitors. I can't say anything about the quality of this
test but at least the test was updated, a few minutes ago the rankings
were 7.

Anybody running Ubuntu in VBox and/or another VM?

It's not an April Fools' joke.

When running Ubuntu or any other Linux as a guest, is there

/sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

available?

An Ubuntu developer thread related to this started here:

<a href="https://lists.ubuntu.com/archives/ubuntu-studio-devel/2017-March/008325.html" title="https://lists.ubuntu.com/archives/ubuntu-studio-devel/2017-March/008325.html">https://lists.ubuntu.com/archives/ubuntu-studio-devel/2017-March/008325....</a>

Regards,
Ralf

Backups - Was: Help, my disk array has one dead member

On Thu, 23 Mar 2017 18:44:41 +1100, Karl Auer wrote:

tar - How to exclude a directory?

Hi,

this is from a backup script:

cd /media/winos7
stopwatch_start
tar --exclude=./winOS_2/ardour_ragrug-2017-mar-21-DONT_DEL_AT_IO_ERROR/cubasis \
$ATT -czf $BACKUP_DIR_Q/arcwinos7_$BACKUP_NAME_ADD$ARCH_BACKUP_NAME_EXTENSION.bak.tar.gz *

It should exclude the
directory /media/winos7/winOS_2/ardour_ragrug-2017-mar-21-DONT_DEL_AT_IO_ERROR/cubasis
but it doesn't. I also tried with ''. The "\" is part of the original
script, IOW the command is split to two lines.

$ATT is an empty string, but could also contain "--xattrs".

Editor / IDE - Was: out of space on /root

On Wed, 15 Mar 2017 09:34:46 +0200, Charles IRONS wrote:
Some of the discussed "editors" are already "dwarf IDEs" [1] ;).

Regards,
Ralf

[1]
In the style of "dwarf planet".
If an editor is considered a moon, an IDE could be a planet.
So something more than an editor, but less than a bloated IDE, might be
a dwarf IDE. Analogies aren't perfect.

Cheap mobo that doesn't cause issues with Ubuntu.

Hi,

I need a new mobo and PSU, this unfortunately means a new CPU and new
RAM, too. Does somebody use on of the following components or could
recommend for or against one of those components [1]?

Could somebody recommend something else?

The mobo must provide at least one PS/2 socket and one PCI slot, not
only PCIe.

Current_Pending_Sector value on a brand new HDD

Hi,

I've got a new SSD and two new HDDs.

The SSD is ok, but I wonder if the two HDDs are ok, too.

The TOSHIBA DT01ACA100 is inside the PC case and at the beginning
it caused click noise and input/output errors only repeated shutdowns
made it accessible. The WD3200AAJS is used with a FANTEC DB-ALU2E
by USB. It automatically goes to sleep. If it goes to sleep as
e.g. /dev/sdd, it could wake up as /dev/sde and sometimes it could
completely hide. However, since my last reboot it goes to sleep
as /dev/sdb and wakes up as /dev/sdb.

What has fsck -vcck done, to repair a partition?

Hi,

I already ordered a SSD to replace a fishy HDD. For the moment I run
fsck, since one file caused input/output errors when tar, cp or string
tried to read the file. When it failed, the HDD made click noises.
The file seemingly is repaired, but I don't understand what fsck has
done to repair it [1].

SSD

Hi,

I plan to replace two drives [1]. I'll start with the small drive,
since it seems to reach end of life. Today everything was ok, but
sometimes it seemingly is the cause for serious issues.

The larger drive seems not to cause issues, but it's also very old.
I'll replace the large drive by a 1 or 2 TB HDD, but not right now.

Commentary on file managers vs terminal/command line

Hi,

even the few very good file managers could get broken after an upgrade.
Even an upgrade of a theme could render a file manager useless, let
alone that there could be serious bugs in the code of a file manager. A
user could lose files! Thunar is know for serious bugs and upstream
doesn't fix those serious bugs. Reading the Nautilus thread users claim
slow performance. I noticed this for newer releases of Rodent, too.
Note, Rodent does use regular shell commands, a user could edit those
commands, so some GUI crap adds the slowness.

apt - Was: Can't boot 14.04

On Tue, 2016-11-08 at 14:03 +0100, Oliver Grawert wrote:
Don't worry, nobody of us is used to apt. Some options already provided
by apt-get are less used, too.

I can't remember, that I ever had the -/+ feature in mind, when it would
have been useful.

You even could use "install" to remove a package:
=================================================

[root@moonstudio ~]# apt install pulseaudio-
Reading package lists...

read a single pushed key by a dash script

Hi,

since some script experts are online at the moment, does anybody know a
more neat solution, than using bash's read in a dash script?

bash -c "read -n1 answer"

Btw. I'm using this for a script that could run as dash and bash
script, it's just that dash is faster. It doesn't matter for this
script at the moment, but you never know, speed could become an issue.

Regards,
Ralf

'sudo id -G <username>' vs 'id -G' issue

Hi,

I need to run a script with root privileges. One thing this script
could do, is adding a user to a new group. Sometimes the script doesn't
know, if this is already active for the user. IOW the user is already
member of the group, but didn't log out and in again, resp. didn't
restart the display manager.

LightScribe Ubuntu >= 16.04 (64bit)

Hi,

yesterday I needed LightScribe, but the LightScribe software doesn't
recognise the drive. I installed it on Ubuntu Xenial 16.04 (64bit), as
well as Arch Linux (64bit) and it failed on both installs. Around
midnight I have given up troubleshooting and used LightScribe of an old
Ubuntu Quantal 12.10 (kernel 3.6.5-rt14 64bit) install, its end of life
was 2½ years ago.

Has somebody successfully used LightsScribe with Ubuntu >= 16.04?

Regards,
Ralf

multi-user guidelines for shared folders

Hi,

is there a guidelines how to name directories and files in shared folders,
e.g. in /tmp on multi-user systems? And apart from the names, how
should permissions be handled?

User? PID?

Fw: Final release - was: Testers wanted

Hi,

those who want to test different Ubuntu desktop flavours [1] might want
to use a script to automatically download all files and do the complete
check as described by <a href="https://www.ubuntu.com/download/how-to-verify" title="https://www.ubuntu.com/download/how-to-verify">https://www.ubuntu.com/download/how-to-verify</a> .

Save the script [attachment].

Make it executable by running

chmod a+x luamd64_1610.sh

Usage: ./luamd64_1610.sh [FLAVOUR [RELEASE]]

The default flavour is ubuntu-mate.
The default release is 16.10.

Other desktop flavours available for at least 16.10, but perhaps for
other releases, too

ubuntu
kubuntu
lubuntu
ubuntu-gnome
ubuntukylin
ubuntustudio
xubuntu

16.10 Live DVD pcspkr issue

Hi,

after booting Lubuntu 16.10 from the official ISO, from DVD and running
a script to set up the live media, I experience something strange.

I attached the script. One thing it should do is enabling the bell, so
it loads the pcspkr module and enables the bell for lxterminal and
xfce4-terminal.

Portability and security of snaps - Was: Question about Snaps

My apologies, by accident I forgot to change the thread for my previous
mail. I changed it by this mail. So please, don't reply to the other
mail.

Hi,

IMO this discussion requires clarification on this mailing list.

Manual for apt

Hi,

where do I find an English and a German manual for apt?

Packages installed by either apt "full-upgrade" or "install", e.g.

# apt -o APT::Color="0" full-upgrade
# apt install alpine-pico

are not stored in /var/cache/apt/archives/.
As wanted apt-get "dist-upgrade" and "install" stores the packages in
the cache.

Some apt-get options seem to be available for apt, too, e.g.

# apt-get --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done

# apt --fix-broken install
Reading package lists...

"compromising the Ubuntu/Debian update mechanism"

See

<a href="https://lists.ubuntu.com/archives/ubuntu-studio-devel/2016-August/008144.html" title="https://lists.ubuntu.com/archives/ubuntu-studio-devel/2016-August/008144.html">https://lists.ubuntu.com/archives/ubuntu-studio-devel/2016-August/008144...</a>

Regards,
Ralf

Transitional kernel packages

Hi,

while I understand what a transitional package usually is good for, I
don't understand what those linux-*-lts-releasename packages are good
for:

<a href="http://packages.ubuntu.com/search?suite=xenial&amp;section=all&amp;arch=any&amp;keywords=linux-generic-lts&amp;searchon=names" title="http://packages.ubuntu.com/search?suite=xenial&amp;section=all&amp;arch=any&amp;keywords=linux-generic-lts&amp;searchon=names">http://packages.ubuntu.com/search?suite=xenial&amp;section=all&amp;arch=any&amp;keyw...</a>
<a href="http://packages.ubuntu.com/search?suite=xenial&amp;section=all&amp;arch=any&amp;keywords=linux-lowlatency-lts&amp;searchon=names" title="http://packages.ubuntu.com/search?suite=xenial&amp;section=all&amp;arch=any&amp;keywords=linux-lowlatency-lts&amp;searchon=names">http://packages.ubuntu.com/search?suite=xenial&amp;section=all&amp;arch=any&amp;keyw...</a>

Could somebody please explain the reason for this ongoing "transition"?

Regards,
Ralf

System requirements - Was: Out of Space

On Wed, 10 Aug 2016 12:39:48 +0200, Oliver Grawert wrote:
That's correct, I need more than 1 hour to build something like firefox
or a kernel and apart from this my tmpfs is to small to build something
like firefox, building a kernel usually works,

install ubuntu using something else method - Was: Out of Space

On Mon, 8 Aug 2016 15:28:46 -0400, Gene Heskett wrote:

autoremove old kernel related packages - Was: Out of space

On Tue, 02 Aug 2016 12:59:46 +0200, Oliver Grawert wrote:

sudo issue

Hi,

is there a way to set up sudo, that it is able to copy everything, when
running a line such as

sudo cp -rp /path/.foo /to/another/path/

?

My sudo is unable to do this:

[weremouse@moonstudio ~]$ sudo ls -Ald /mnt/archlinux/.chuser/.home/.jwm*; echo $?
[sudo] password for weremouse:
ls: cannot access '/mnt/archlinux/.chuser/.home/.jwm*': No such file or directory
2
[weremouse@moonstudio ~]$ sudo cp -rp /mnt/archlinux/.chuser/.home/.jwm* /tmp/; echo $?
cp: cannot stat '/mnt/archlinux/.chuser/.home/.jwm*': No such file or directory
1
[weremouse@moonstudio ~]$ sudo -i
[root@moonstudio ~

How to show a script without comments?

Hi,

how can I display a shell script without comments and empty lines, but
also without cutting commands?

This is an example text file:

[weremouse@moonstudio tmp]$ cat test.txt
## test file.
test # test
test 2
echo "Hello #"
echo "Hello #" # Oops

A simple egrep line, doesn't remove all comments:

[weremouse@moonstudio tmp]$ egrep -v "^#|^$" test.txt
test # test
test 2
echo "Hello #"
echo "Hello #" # Oops

A simple sed line, does remove all comments, but cuts commands:

[weremouse@moonstudio tmp]$ sed "s/#.*$//g" test.txt | grep -v ^$
test
test 2
echo "Hello

Website with themes that are usable with GTK 3.20.x and GTK 2

Hi,

at the moment Ubuntu still provides GTK 3 < 3.20.x, but soon or later
it will provide 3.20.x, too. I already search a theme to replace
adwaita for me. It's still possible to use adwaita 3.18 with GTK 3.20.x
and GTK2, while adwaita 3.20 already is a PITA, but also usable, assumed
somebody accepts that GTK2 apps become ugly and need more space for
nothing.

GRUB doesn't boot all kernels

Hi,

for Wily and Arch Linux I build 3.10.61-rt65 and was able to boot it.
Now I build it for Xenial, too, no errors during building it, packages
could be installed without issues.
If I try to boot it, GRUB claims to boot it, but then just a flashing
cursor is shown and nothing else happens.
Journalctl only shows information related to 3.10.61-rt65 used with Wily [1],
today's trials to boot the new compiled 3.10.61-rt65 Xenial build are not
mentioned.
FWIW, I also re-installed grub [2] and let Xenial generate a grub.cfg [3],
with the automatically build grub.cfg, the last message shown by GRUB