The officially official Devuan Forum!

You are not logged in.

#476 Re: Other Issues » enigmail broken since upgrade of Thunderbird to 52.2.1-4~dev8u1 » 2017-07-31 19:49:50

PS: Armin, I just realized that my previous post did not answer your questions.

In my case, Enigmail was not upgraded automatically because it was installed from within Thunderbird. I'm not a Devuan developer, so if you had Enigmail 1.8.2 installed as a .deb package then I do not know why it wasn't upgraded along with Thunderbird. Even if they both had been upgraded together, however, I am finding that Thunderbird 52.2.1-4 + Enigmail 1.9.8 break ability to send signed messages.

#477 Re: Other Issues » enigmail broken since upgrade of Thunderbird to 52.2.1-4~dev8u1 » 2017-07-31 19:22:52

Hi, Amin. All my machines receive automatic security upgrades and I was surprised by this same issue: Havoc in proper functioning of Thunderbird's Enigmail plugin after Thunderbird upgrade to version 1:52.2.1-4~deb8u1.

I found that a newer version of Enigmail restored my ability to send encrypted email. However, if I want to both encrypt and sign, sending fails. Error messages appear in two successive windows:

GnuPG reported an error in the communication with gpg-agent (a component of GnuPG)

then

Sending of the message failed.

The "How to fix" tidbit from the Enigmail website (adding "use-standard-socket" to $HOME/.gnupg/gpg-agent.conf and rebooting) made no difference--signing a message still prevents it from being sent.

Enigmail can be obtained as a .deb package and installed by the package manager, or obtained as a .xpi package and installed from within Thunderbird (Thunderbird > Tools > Add-ons > click on down-arrow next to the little gear > "Install Add-on From File").

My workaround for the time being is to stick with the pre-upgrade versions of Thunderbird (45.8.0-3~deb8u1) and Enigmail (1.8.2 xpi package).

To prevent Thunderbird & Enigmail from being upgraded, I created /etc/apt/preferences.d/thunderbird-keep-v45 with these contents...

Package: thunderbird
Pin: version 1:45.8.0-3~deb8u1
Pin-Priority: 1001

...and in Thunderbird > Tools > Add-ons > click the down-arrow next to the little gear > make sure there's no checkmark by "Update Add-ons Automatically".

#478 Re: DIY » Nasty local hacks, the definitive and not-official Devuan list » 2017-07-10 15:23:17

My "nasty hack" contribution: A startup script that runs your custom shutdown/reboot jobs (yes, you read that correctly smile).

#!/bin/bash

payload()
{
    command_or_script1
    command_or_script2
    command_or_scriptN
}
trap payload TERM

kill -SIGSTOP $$

To use it, just add this script to your startup applications and replace the placeholders with the commands or scripts you want to run at shutdown/reboot.

How it works: When executed, the script immediately stops itself. It stays in stopped state while system is running (or suspended). When you shutdown or reboot your system, every process (including stopped ones) is sent the TERM signal. In the case of this script, when it receives the TERM signal it runs the payload function containing your shutdown/reboot jobs.

What inspired this hack is the fact that it always seems easier to setup startup jobs than shutdown/reboot jobs.

#479 DIY » automatic mac address spoofer » 2017-07-02 18:37:16

GNUser
Replies: 10

If you are paranoid about privacy like me, you will like this little creation of mine.

EDIT: Final version of script is in post #7. Options for running it automatically at appropriate time are in post #8.

#480 Re: Desktop and Multimedia » caja missing video thumbnails [SOLVED] » 2017-07-01 17:46:02

Yes! This caused thumbnails to show up for everything:

rm -r ~/.cache/thumbnails

#481 Re: Desktop and Multimedia » caja missing video thumbnails [SOLVED] » 2017-07-01 17:43:31

I renamed some video files and now the renamed ones have thumbnails. Bizarre.

Is there something I can do so that thumbnails show up for all videos, without me having to rename them all?

#482 Desktop and Multimedia » caja missing video thumbnails [SOLVED] » 2017-07-01 17:36:04

GNUser
Replies: 2

I'm on Devuan Jessie with caja 1.8.2. Caja's "View" is set to "Icons".

Here are the relevant settings in caja:
caja_preview.jpg

This followed by a reboot has no effect:

sudo apt-get install totem ffmpegthumbnailer

Any ideas what to try next?

#483 Re: Desktop and Multimedia » caja automatically opens some thumbdrives but not others [SOLVED] » 2017-06-30 23:53:09

@greenjeans: Yes, the partition table was msdos from the start and I never changed that.

@golinux: I'm pretty sure manufacturers do that, but I doubt it was the cause because caja would automatically open the drives when they were new.

Here are the only things I can say for sure about this strange issue, based on much experimentation:
1. All my usb drives could be automatically opened by caja when they were new
2. Some usb drives consistently stopped being automatically opened by caja, regardless of distro (MATE on devuan, debian, or arch)
3. I thought the breakage was GParted's fault, but I was not able to prove that through recent experiments
4. I was not able to fix the problem using GParted (recreating the partition table and/or recreating partitions had no effect)
5. wipefs or zeroing the whole drive with dd fixes the problem. I ran out of "broken" drives to try zeroing just the beginning sectors.

Since I'm unable to reproduce the breakage, it's difficult to pinpoint exactly where the issue was. My best guess is that the culprit is some subtle corruption in early sectors of the drive that are inaccessible to parted/gparted's operations.

#484 Re: Desktop and Multimedia » caja automatically opens some thumbdrives but not others [SOLVED] » 2017-06-30 21:45:03

Alas, just creating a new partition table was not enough.

The only way to get caja to start automatically opening previously-ignored sticks was dd or wipefs, followed by creation of new partition table and new partition through whatever method.

#485 Re: Installation » How2instl TorBrowser in Ascii? NOT frm Stretch bakprts! [PARTLY SOLVED » 2017-06-30 19:28:19

Why not just use the portable TorBrowser for GNU/Linux available here?

I tested it on Devuan Jessie and it works fine. It should run on Devuan ASCII just as well.

#486 Re: Devuan » Question/Suggestion:What about being an entirely free GNU/Linux disto? » 2017-06-30 16:19:03

linijkarz wrote:

If your hardware is not capable [of running with only free software] - you always have the option of installing requiring firmware but you have to specifically request it's installation.
This is a necessary step to ensure that Debian/Devuan can reach to as many people as possible and It's a very good compromise.

Well said! I'm totally sold on the advantages of free software (my laptop only runs software from the main repository, has libreboot instead of BIOS, and router runs LibreCMC) but I have to concede that Debian/Devuan's compromise makes more sense (for reason above) than completely eliminating the contrib and non-free repositories just to get an endorsement from the FSF.

By the way, a major reason why many people need proprietary firmware is for wifi. However, it is simple to swap a laptop's free software-unfriendly wireless card (e.g., Intel cards requiring firmware-iwlwifi) for one that is freedom-friendly such as the Penguin Wireless N half height mini PCIe card (available here), which uses the ath9k* module. I've done this swap many times and it's very easy--equivalent to a RAM upgrade except that there are more screws to remove and put back. The only thing to do after the swap is to uninstall the non-free wireless firmware you were using before, since you don't need it anymore smile

* ath9k is free software and therefore comes baked-in with Devuan's default kernel as well as with the more strict linux-libre kernel.

#487 Re: Desktop and Multimedia » caja automatically opens some thumbdrives but not others [SOLVED] » 2017-06-30 12:46:04

lazlo: Yes, running the two wipefs commands and then going into GParted to create the partition table and fat32 partition also works (converts a non-auto-opening thumbdrive to an auto-opening one). The wipefs commands are very fast, much better than waiting 30+ minutes for the original dd command.

Since I've bumped into this issue many times, here is a script that puts it all together: wipefs steps, new msdos partition table, creation of single partition as big as the device, formatting the partition to fat32, adding a label to the partition:

sudo umount /dev/sdb1   
sudo wipefs -a -f /dev/sdb1
sudo wipefs -a -f /dev/sdb
sudo parted /dev/sdb mklabel msdos &>/dev/null
sudo parted /dev/sdb mkpart primary 0% 100% &>/dev/null
while [ ! -e /dev/sdb1 ]; do sleep 1; done # because parted mkpart exits before it's done creating sdb1!
sleep 1
sudo mkfs.msdos -F 32 /dev/sdb1
sudo dosfslabel /dev/sdb1 "my_label"

EDIT: I'd try the targeted dd command as well, but at this point all of my "broken" thumbdrives have been fixed smile

WARNING: Before using the script above, make sure a) /dev/sdb is actually your thumbdrive (one way to check is with "sudo blkid"), and b) the thumbdrive contains no valuable data. If you have any doubt, don't run the script--it assumes these two things are true.

#488 Re: Desktop and Multimedia » caja automatically opens some thumbdrives but not others [SOLVED] » 2017-06-30 00:58:50

lazlo: You nailed it!

0. I plugged in a thumbdrive that caja wasn't automatically opening, then...
1.

sudo umount /dev/sdb1

2.

sudo dd if=/dev/zero of=/dev/sdb

3. I went into GParted and when I chose sdb it complained about there being no partition table--presumably because it was overwritten with zeros by the dd command--so I went ahead and created an msdos partition table.
4. Still in GParted, I created an sdb1 partition with fat32 filesystem.

Then I removed the thumbdrive and plugged it back in, and... CAJA AUTOMATICALLY OPENED IT!

I tried cheating with a different thumbdrive, hoping that skipping the time-consuming dd step and going straight to creating a new partition table would be enough, but no luck with that.

While I will continue to wonder where exactly was the problem, thanks to you we have a fix. Thanks a lot! This has bothered me for a long time, since long before Devuan.

#489 Re: Desktop and Multimedia » caja automatically opens some thumbdrives but not others [SOLVED] » 2017-06-29 23:51:18

lazlo wrote:

I hate a puzzle I can't solve. I'll be thinking about this forever if I don't find a good solid reason for it.

Haha. I know the feeling.

I will try dd and will post back in a few minutes.

In the meantime, the only demonstrable difference I can find between the sticks that auto-open and the ones that don't is the product id:

Here's one that doesn't auto-open:

bruno@thinkpad:~$ lsusb
---snip---
Bus 007 Device 006: ID 13fe:5500 Kingston Technology Company Inc. 
---snip---

And here's one that does:

bruno@thinkpad:~$ lsusb
---snip---
Bus 007 Device 007: ID 13fe:4100 Kingston Technology Company Inc. 
---snip---

Notice the same vendor id (13fe) but different product id (5500 vs. 4100). Could this have anything to do with it?

#490 Re: Desktop and Multimedia » caja automatically opens some thumbdrives but not others [SOLVED] » 2017-06-29 22:19:03

Me, too. Very mysterious behavior, to be sure.

I'll keep at it when I have time, and will post any new insights here.

#491 Re: Desktop and Multimedia » caja automatically opens some thumbdrives but not others [SOLVED] » 2017-06-29 21:37:50

greenjeans: That was a really good idea. Yes, I was trying the stick fresh without any content. Alas, adding files makes no difference (i.e., the stick automounts and icon shows up on desktop, but caja does not automatically open it).

Just to check my sanity, I found two other thumbdrives and can confirm that caja automatically opens them. Therefore, caja continues to (sometimes) respect my setting to automatically "Browse media when inserted".

Are you ready for something very strange? I took one of these new sticks and formatted the existing partition to fat32 using GParted. Then I took the other stick, deleted its existing partition, created a new partition, and formatted to fat32 (all using GParted). Surprise: Caja continues to automatically open these two sticks, no problem.

So at this point I can't seem to reproduce my problem. What I can say for sure is that caja consistently opens some sticks and consistently doesn't open others, despite the fact that all of these sticks have been formatted in GParted in the exact same way. All the sticks are of same brand (Patriot Memory), but different models.

I have both varieties of sticks here (auto-open and no-auto-open) in case someone can think of a helpful comparison to make between them.

#492 Re: Desktop and Multimedia » caja automatically opens some thumbdrives but not others [SOLVED] » 2017-06-29 20:24:18

@greenjeans: I tried adding "inode/directory=caja-folder-handler.desktop" and no joy. I also tried "inode/directory=caja.desktop" just for kicks and no luck either.

@lazlo: Good ideas. I tried the same USB drives in Debian 8 and got same results (some auto-open and others don't), so I don't think this is systemd-related. Also, I always unmount the drives before attempting to reformat in GParted (besides, I think GParted would refuse to format a drive that's mounted).

I'm sure that some subtle difference between a thumbdrive from factory vs. one formatted in GParted is to blame for this...

P.S. Sorry for making a big deal out of such a minor issue. It's just that Devuan works so well that at this point this is the only thing about my system that bothers me smile

#493 Re: Desktop and Multimedia » caja automatically opens some thumbdrives but not others [SOLVED] » 2017-06-29 19:45:39

No joy there, either. I opened caja with root and it also has a check by "Browse media when inserted".

By the way:
When I right-click on the Desktop icon of a USB drive that DOES automatically open and go to Properties, it says "Type: folder (inode/directory)".
When I do the same thing to a USB drive that DOESN'T automatically open, it also says "Type: folder (inode/directory)".

Are these the drives' x-content settings? If so, the x-content is identical and therefore not the culprit.

#494 Re: Desktop and Multimedia » caja automatically opens some thumbdrives but not others [SOLVED] » 2017-06-29 19:30:31

Thanks, greenjeans. Caja's "Browse media when inserted" is already checked.

Maybe formatting in GParted causes the thumbdrive's x-content to change? How do I check its current x-content and, if applicable, change it to something that will continue to trigger Automount-open?

#495 Desktop and Multimedia » caja automatically opens some thumbdrives but not others [SOLVED] » 2017-06-29 18:43:23

GNUser
Replies: 24

I'm on Devuan Jessie with MATE. When I use a brand-new USB drive, plugging in the drive causes it to first appear on the Desktop then, after a very brief interval, the file manager (caja) automatically opens a window at the root of the drive. Very nice.

For some strange reason, if I then format the USB drive in GParted (my tool of preference for such tasks), plugging in the drive still causes an icon for it to show up on the Desktop, but now I have to actually click on the Desktop icon in order to browse the files--caja no longer automatically opens a window at the root of the drive.

A screenshot of how I'm formatting the drive is below. What do I need to do so that after formatting a USB drive, caja will continue to automatically open it for browsing when the drive is plugged in?

Screenshot.jpg

More generally: Why does caja automatically open some thumbdrives but not others of the same brand?

#496 Re: Other Issues » newbie question, as I am » 2017-06-24 14:21:41

BTW, don't worry too much about style at first. Just get the scripts to work. As you learn better ways of doing things, you can edit your scripts to make them prettier and more robust. This is called "refactoring" and is a good practice.

#497 Re: Other Issues » newbie question, as I am » 2017-06-24 13:52:16

john_j wrote:

Is there a definitive Linux shell commands reference?

I consider these two to be the most definitive:

http://mywiki.wooledge.org/BashGuide (the pitfalls section is especially good: http://mywiki.wooledge.org/BashPitfalls)

http://tldp.org/LDP/abs/html/

The best way to get started with shell programming is to write scripts that solve your simple real-world problems (any time you find yourself thinking "wouldn't it be nice if my computer could do _____ automatically?" counts as a real-world problem). You then tackle increasingly more complex problems. As you do this, consult references on an as-needed basis. If you get stuck, ask.

I think reading the two references above start to finish would be most helpful after you've written several scripts and are comfortable with the basics.

#498 Re: Other Issues » What is best way to install latest version of Firefox? » 2017-06-09 11:23:32

Bummer. Your issue is not lack of sse2 support. I'm afraid I don't know Firefox well enough to know why recent versions are crashing on your machine. I tested both AppImages (52 and 53) and they run okay on my Devuan Jessie 64bit with the default 3.16 kernel.

All I can say for sure is that lately Firefox has been aggressively breaking compatibility (e.g., 52 and up require pulseaudio, 53 and up require sse2). I'd consider not playing their little game and going with a conservative alternative such as Palemoon.

#499 Re: Other Issues » What is best way to install latest version of Firefox? » 2017-06-08 19:05:54

If you want to give the Firefox52 AppImage a shot, just follow the steps in my post #9 above, but use this instead of the wget line in that post:

wget https://bintray.com/probono/AppImages/download_file?file_path=Firefox-52.0.1.glibc2.3.4-x86_64.AppImage -O Firefox52.AppImage

I'd be interested in knowing if it's the sse2 issue that made Firefox53 a no-go for you.

#500 Re: Other Issues » What is best way to install latest version of Firefox? » 2017-06-08 12:48:46

@hughparker1: Three separate issues going on.

1.

zenity, kdialog, Xdialog missing. Skipping /tmp/.mount_Cdg7JV/usr/bin//firefox.wrapper.

This is benign. It just means that you don't have zenity, kdialog, or Xdialog installed--the AppImage requires one of these to be present in order to show a dialog asking you whether you want the .desktop file to be added to your ~/.local/share/applications directory. This is the only AppImage-specific error that you are getting. After the firefox.wrapper (i.e., the .desktop integration step) is run or skipped, the Firefox53 binary inside the AppImage is executed.

2.

(firefox:7574): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

This is benign. I think it's a GTK error. I see it when I try running the AppImage, too, and then Firefox53 starts for me without any problems.

3.

ExceptionHandler::GenerateDump cloned child 7624
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...

This is the show stopper. It means that Firefox53 is crashing. I'm sure this will happen regardless of how you try to run Firefox53 on your system (AppImage or not). If Firefox from Devuan repository works for you but Firefox53 crashes, my guess is that you are running an older processor that, as of Firefox53, is no longer supported (see https://www.mozilla.org/en-US/firefox/5 … uirements/ and https://www.reddit.com/r/linux/comments … 4_or_amd/).

Specifically, as of Firefox53, Firefox requires sse2 support in the CPU. What is the output of this command:

cat /proc/cpuinfo | grep -i sse2 || echo "no sse2 support"

?

If lack of sse2 is indeed your issue, then Firefox52 is the last version that will run on your machine. When the time comes, see Life after Firefox.

Board footer

Forum Software