The officially official Devuan Forum!

You are not logged in.

#151 Re: Hardware & System Configuration » what deletes contents of /tmp directory? [SOLVED] » 2018-11-08 17:00:20

Geoff 42 wrote:

you can also choose to use tmpfs for /tmp in /etc/default/tmpfs, where you can set RAMTMP=yes.

I didn't know that. That's a very nice shortcut. Thank you.

#152 Re: Hardware & System Configuration » what deletes contents of /tmp directory? [SOLVED] » 2018-11-08 14:35:01

P.S. I've been doing some reading on /tmp and tmpfs and it seems that on Debian/Devuan /tmp is a normal directory by default. For /tmp to be a tmpfs, user has to add an entry in /etc/fstab.

I can confirm that on my ASCII installation /tmp is a regular directory (notice that /tmp does not appear in the last column):

bruno@thinkpad:~$ df -h | grep tmpfs
tmpfs           773M  1.2M  771M   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           2.0G   31M  1.9G   2% /run/shm
tmpfs           3.8G     0  3.8G   0% /sys/fs/cgroup
tmpfs           772M   32K  772M   1% /run/user/1000

#153 Re: Hardware & System Configuration » what deletes contents of /tmp directory? [SOLVED] » 2018-11-08 13:59:21

Geoff, I was sloppy in post #2. What is in /etc/rcS.d/ is a link, obviously. The actual service file is /etc/init.d/checkroot-bootclean.sh. (I fixed post #2 now.)

First, looking inside the service file I see that it calls the clean_all function, which it sources from /lib/init/bootclean.sh

Then, looking inside /lib/init/bootclean.sh I see at the top that the purpose of its functions is to "Clean /tmp, /run and /var/lock if not mounted as tmpfs". The clean_all function calls clean_tmp

At the end of clean_tmp function definition there are two commands: One is to "remove all old files" and the other removes "all empty directories".

So if /tmp is not mounted as tmpfs, the checkroot-bootclean.sh service deletes old files and empty directories in /tmp but does not seem to guarantee that /tmp will be empty.

That's the story as I understand it, but there probably are some details that I'm missing.

#154 Re: Hardware & System Configuration » what deletes contents of /tmp directory? [SOLVED] » 2018-11-07 19:49:07

1. The checkroot-bootclean.sh service (service file is in /etc/init.d/, link in /etc/rcS.d/)
2. At boot
3. Via TMPTIME variable in /etc/default/rcS

Is this correct?

#155 Hardware & System Configuration » what deletes contents of /tmp directory? [SOLVED] » 2018-11-07 19:35:29

GNUser
Replies: 9

Some questions about /tmp:

1. Which utility or service is responsible for deleting the contents of /tmp?
2. Does the deletion happen at time of shutdown or boot?
3. Is there a way to change the deletion settings? (I cannot find /etc/tmp* or /etc/temp*)

Just wondering and trying to better understand things. I'm on Devuan ASCII if it matters.

#156 Re: Installation » [solved] choosing a laptop to get Devuan up and running *on* » 2018-11-02 17:51:31

syscrh wrote:

As far as PDF annotating goes...there is simply no useable software for Linux available.

Xournal supports PDF annotating and I find it perfectly usable (although my needs are admittedly simple).

https://www.linuxjournal.com/content/edit-pdfs-xournal

#157 Re: Off-topic » Show your desktop (rebooted) » 2018-10-31 13:30:15

Here's mine. Traditional and boring, the way I like it smile

desktop.jpg

#158 Re: Other Issues » [SOLVED] How to get these 2 apps to open maximized? » 2018-10-29 13:40:09

Yes, removing the "sleep 0.5" line entirely is the way to make the script work as quickly as possible.

You're welcome smile

#159 Re: Other Issues » [SOLVED] How to get these 2 apps to open maximized? » 2018-10-28 16:19:59

Changing sleep 0.5 to something smaller--e.g. sleep 0.1--will decrease the delay. Or, to really make the maximization take place as fast as possible, you can eliminate the sleep 0.5 line altogether.

Glad I could help. Enjoy!

#160 Re: Other Issues » [SOLVED] How to get these 2 apps to open maximized? » 2018-10-28 11:35:31

Ron, it works for me from desktop shortcut as well.

Did you remember to make the script executable? If it isn't, the first executable atril found in your PATH is the real one instead of our wraparound script, causing our fix to fail silently. Please do $ sudo chmod a+x /usr/local/bin/atril. Also, did you remember to $ sudo apt install wmctrl? Try these two, then give the desktop shortcut another shot.

#161 Re: Other Issues » [SOLVED] How to get these 2 apps to open maximized? » 2018-10-28 03:30:59

Ron, another option is to use a wrapper script. I tested this with both atril and abiword and it works as advertised. It should work with any graphical application.

For atril, create /usr/local/bin/atril with this in it:

#!/bin/sh

/usr/bin/atril "$@" &
child_pid=$!

# wait for child to have a window
while true; do
	wmctrl -lp | awk '{print $3}' | grep $child_pid && break
	sleep 0.5
done

# get windowid of child
child_windowid=$(wmctrl -lp | awk "\$3 == $child_pid { print \$1 }")

# maximize child's window
wmctrl -ir $child_windowid -b add,maximized_vert,maximized_horz

How it works is basically this: Run target application, wait for a window associated with that application to exist, maximize that window. The wmctrl utility needs to be installed for this to work, of course.

For abiword, create /usr/local/bin/abiword identical to above except replace atril with abiword in the third line.

#162 Re: Other Issues » snapd on Devuan Ascii? » 2018-10-28 02:21:02

Flatpak and AppImages work fine in Devuan ASCII and Devuan Jessie. There's also the (distro-agnostic) nix package manager, which can be used concurrently with native package manager.

#163 Re: Installation » [solved] choosing a laptop to get Devuan up and running *on* » 2018-10-26 19:47:50

Sorry, can't help there. I have no idea how the Libreboot machines handle Google Keep. There is probably not much information on that, as most folks running Libreboot are probably not big fans of Google.

#164 Re: Installation » [solved] choosing a laptop to get Devuan up and running *on* » 2018-10-26 19:40:27

If you are looking to go 100% free software (including graphics, WiFi, and even BIOS), then get a laptop with Libreboot. I run Devuan ASCII on a T400 with Libreboot and it runs great, 0 issues.

You can get a T400 (or an X200 if you are looking for something slightly smaller) from Technoethical: https://tehnoetic.com/

Vikings also carries the X200: https://store.vikings.net/libre-friendl … f-certfied

#166 Re: Other Issues » a mirror how much space do you need? » 2018-10-25 15:02:11

I have a local mirror of ASCII amd64. It requires 1.4 GiB for the devuan-specific packages, 57 GiB for packages that are used as-is from Debian Stretch.

It's up to you if you want to include the packages that are used from Debian as-is in your mirror or not. Details here:
https://pkgmaster.devuan.org/devuan_mir … hrough.txt

HTH,
Bruno

#167 Re: Desktop and Multimedia » what are all the places with keyboard shortcut settings? » 2018-10-19 14:37:41

I found this in caja's source code:

gtk_binding_entry_add_signal (binding_set, GDK_KEY_F5, 0,
                                  "reload", 0);

Does it mean that this particular shortcut (F5 to reload) is hard-wired into caja and therefore I'm not going to find it listed anyplace where configurable keyboard shortcuts are listed?

#168 Desktop and Multimedia » what are all the places with keyboard shortcut settings? » 2018-10-19 13:24:50

GNUser
Replies: 1

I'm on ASCII with MATE. I use (and like) F5 to refresh the file manager. However, I'm puzzled that I can't seem to find this keybinding anywhere. I've tried all of these...

System -> Preferences -> Keyboard Shortcuts
System-> Preferences -> Keyboard -> Layouts -> Options
$ gsettings list-recursively | grep F5
$ cat ~/.config/caja/accels | grep F5

...and I don't see any mention of F5 anywhere.

I'm obviously missing at least one place where keyboard shortcut settings are stored. In general, do you know of other places? Specifically, do you know where the F5 keybinding is hiding, so that I could change it if I wanted to?

#169 Re: Installation » [Solved] Keyboard configuration issue » 2018-10-18 18:48:07

1. To kill X and drop to a console, I map sudo chvt 1; sudo service lightdm stop to a keyboard shortcut. To restart X from the console, I type sudo service lightdm start. If you don't use lightdm as display manager, you should adjust these commands appropriately.

2. What happens if you open up a terminal and type: Control+Shift+u then 00e7 (00 is two zeros) then Enter? If you get a cedilla, then feel free to use my homegrown solution for input of Unicode characters: klavaro-python. You can customize /etc/klavaro.conf to your heart's content. The conf file's format is self-explanatory but man klavaro spells it out.

klavaro-python is free software (GPLv3). If you like, you can compile the (sole) binary inside the package by following the directions at the top of klavaro.py

http://files.dantas.airpost.net/public/ … _amd64.deb

#170 Re: Desktop and Multimedia » Tried to Install libav-tools then I got this message » 2018-09-21 18:54:07

You must have at least one unofficial repository in /etc/apt/sources.list, since most of these packages (libopencv-core2.4 libavfilter5 libopencv-imgproc2.4 libavdevice55) are not in Devuan's main, contrib, or non-free repositories. Two of the packages (libav-tools libtbb2) are in the Devuan repositories, but the unofficial repository you are using must have a more recent version, which is why apt is trying to install unofficial/untrusted versions of these packages as well.

If what you need is libav-tools, disable the unofficial repository and install the package from Devuan's repository. (I'd stay away from third-party repositories in general--in addition to the trust issue, it can cause dependency hell down the road.)

#171 Re: Other Issues » VPN client stuck in a "checking DNS" connection loop » 2018-09-19 18:08:30

Try installing resolvconf. openvpn (whether being used by itself or as a backend) sometimes needs it for setting up DNS.

#172 Re: Installation » [SOLVED, don't buy one to begin with] dell xps-13 » 2018-09-17 17:20:20

@crankypuss - Leave linux because it tends to respect your freedom and makes distinction between free and non-free software? Strange.

This should be a relatively easy problem to fix. Your Broadcom BCM4352 wireless card requires the wl kernel module in order to function. Try this:

1. Add non-free to /etc/apt/sources.list file, so that it looks like this:

deb http://deb.devuan.org/merged    ascii    main non-free

2. Give your computer a wired internet connection, then:

sudo apt update && sudo apt install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms wireless-tools

Installing the above packages should cause the wl kernel module to be built.

3. Reboot

The above is my summary of the instructions here: https://wiki.debian.org/wl

P.S. If a wired internet connection is not an option, first get appropriate suffix in your Devuan installation by running uname -r|sed 's,[^-]*-[^-]*-,,'. Then boot into your linux distro that has working wifi, go to https://www.debian.org/distrib/packages#search_packages and "Search package directories" for broadcom-sta-dkms, wireless-tools, and linux-headers-suffix. You should be able to download the packages after a few clicks (choosing Debian stable/Stretch and architecture of your Devuan installation). Save packages to a flashdrive then, back in Devuan, install the three packages with sudo dpkg --install *.deb

#173 Re: Installation » Devuan repositories won't work [SOLVED] » 2018-09-13 13:54:17

Just one note of warning about using Tor at work:

I'm also behind a draconian firewall when I'm at work, and used Tor for a long time to get around it. One day I was contacted by the IT team because their records showed my computer was connecting to an IP address that was part of a "botnet". My tower was taken away for investigation (to make sure it was not infected with viruses/malware), and I was given a new tower. They never found anything (not surprising). It was embarrassing and inconvenient.

Moral of the story is if your IT department has a strict firewall, then it is probably the kind of IT department that also keeps tabs on the IP addresses you are connecting to. If the first Tor node you connect to is on one of their blacklists for some reason, you may get in trouble/inconvenience/scrutiny.

#174 Re: Hardware & System Configuration » ExpressCard only works when laptop is on AC power » 2018-09-12 14:07:18

When on AC power, here is dmesg and lspci output when I plug in the card:

$ dmesg
---snip---
[   38.816383] pci 0000:04:00.0: [1912:0015] type 00 class 0x0c0330
[   38.816469] pci 0000:04:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[   38.816931] pci 0000:04:00.0: PME# supported from D0 D3hot D3cold
[   38.828158] pci 0000:04:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[   38.828207] pci 0000:04:00.0: enabling device (0000 -> 0002)
[   38.828557] xhci_hcd 0000:04:00.0: Resetting
[   39.872583] xhci_hcd 0000:04:00.0: xHCI Host Controller
[   39.872612] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 9
[   39.877934] xhci_hcd 0000:04:00.0: hcc params 0x014051cf hci version 0x100 quirks 0x00000090
[   39.878520] usb usb9: New USB device found, idVendor=1d6b, idProduct=0002
[   39.878526] usb usb9: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   39.878531] usb usb9: Product: xHCI Host Controller
[   39.878535] usb usb9: Manufacturer: Linux 4.16.2-gnu xhci-hcd
[   39.878539] usb usb9: SerialNumber: 0000:04:00.0
[   39.878986] hub 9-0:1.0: USB hub found
[   39.879013] hub 9-0:1.0: 2 ports detected
[   39.879378] xhci_hcd 0000:04:00.0: xHCI Host Controller
[   39.879389] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 10
[   39.881478] usb usb10: We don't know the algorithms for LPM for this host, disabling LPM.
[   39.881540] usb usb10: New USB device found, idVendor=1d6b, idProduct=0003
[   39.881545] usb usb10: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   39.881550] usb usb10: Product: xHCI Host Controller
[   39.881554] usb usb10: Manufacturer: Linux 4.16.2-gnu xhci-hcd
[   39.881558] usb usb10: SerialNumber: 0000:04:00.0
[   39.881832] hub 10-0:1.0: USB hub found
[   39.881844] hub 10-0:1.0: 2 ports detected
[   39.959935] [UFW BLOCK] IN=wlan0 OUT= MAC= SRC=fe80:0000:0000:0000:7f31:6966:e82c:1811 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=371341 PROTO=UDP SPT=8612 DPT=8612 LEN=24 
[   39.959968] [UFW BLOCK] IN=wlan0 OUT= MAC= SRC=fe80:0000:0000:0000:7f31:6966:e82c:1811 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=636760 PROTO=UDP SPT=8612 DPT=8610 LEN=24 
[   39.970442] [UFW BLOCK] IN=wlan0 OUT= MAC= SRC=fe80:0000:0000:0000:7f31:6966:e82c:1811 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=371341 PROTO=UDP SPT=8612 DPT=8612 LEN=24 
[   39.970523] [UFW BLOCK] IN=wlan0 OUT= MAC= SRC=fe80:0000:0000:0000:7f31:6966:e82c:1811 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=636760 PROTO=UDP SPT=8612 DPT=8610 LEN=24 
$ lspci
---snip---
04:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02)

When on battery power, here is dmesg and lspci output when I plug in the card:

$ dmesg
---snip---
[   30.008572] pci 0000:04:00.0: [1912:0015] type 00 class 0x0c0330
[   30.008658] pci 0000:04:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[   30.008948] pci 0000:04:00.0: PME# supported from D0 D3hot D3cold
[   30.020338] pci 0000:04:00.0: BAR 0: assigned [mem 0xe0800000-0xe0801fff 64bit]
[   30.020437] pci 0000:04:00.0: enabling device (0000 -> 0002)
[   30.021279] xhci_hcd 0000:04:00.0: Resetting
[   31.040665] xhci_hcd 0000:04:00.0: xHCI Host Controller
[   31.040694] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 9
[   31.046064] xhci_hcd 0000:04:00.0: hcc params 0x014051cf hci version 0x100 quirks 0x00000090
[   31.046745] usb usb9: New USB device found, idVendor=1d6b, idProduct=0002
[   31.046751] usb usb9: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   31.046755] usb usb9: Product: xHCI Host Controller
[   31.046760] usb usb9: Manufacturer: Linux 4.16.2-gnu xhci-hcd
[   31.046764] usb usb9: SerialNumber: 0000:04:00.0
[   31.047217] hub 9-0:1.0: USB hub found
[   31.047293] hub 9-0:1.0: 2 ports detected
[   31.047723] xhci_hcd 0000:04:00.0: xHCI Host Controller
[   31.047735] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 10
[   31.049579] usb usb10: We don't know the algorithms for LPM for this host, disabling LPM.
[   31.049641] usb usb10: New USB device found, idVendor=1d6b, idProduct=0003
[   31.049647] usb usb10: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   31.049651] usb usb10: Product: xHCI Host Controller
[   31.049655] usb usb10: Manufacturer: Linux 4.16.2-gnu xhci-hcd
[   31.049659] usb usb10: SerialNumber: 0000:04:00.0
[   31.049932] hub 10-0:1.0: USB hub found
[   31.049993] hub 10-0:1.0: 2 ports detected
[   31.120412] [UFW BLOCK] IN=wlan0 OUT= MAC= SRC=fe80:0000:0000:0000:7f31:6966:e82c:1811 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=470731 PROTO=UDP SPT=8612 DPT=8612 LEN=24 
[   31.120498] [UFW BLOCK] IN=wlan0 OUT= MAC= SRC=fe80:0000:0000:0000:7f31:6966:e82c:1811 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=854431 PROTO=UDP SPT=8612 DPT=8610 LEN=24 
[   31.131125] [UFW BLOCK] IN=wlan0 OUT= MAC= SRC=fe80:0000:0000:0000:7f31:6966:e82c:1811 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=470731 PROTO=UDP SPT=8612 DPT=8612 LEN=24 
[   31.131270] [UFW BLOCK] IN=wlan0 OUT= MAC= SRC=fe80:0000:0000:0000:7f31:6966:e82c:1811 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=854431 PROTO=UDP SPT=8612 DPT=8610 LEN=24 
$ lspci
---snip---
04:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02)

To my surprise, the outputs seem identical even though the card is functional in the first scenario, nonfunctional in the second scenario.

Does the above prove that inability to use the card while on battery power is a power/hardware limitation rather than a setting/software issue?

#175 Hardware & System Configuration » ExpressCard only works when laptop is on AC power » 2018-09-12 13:22:02

GNUser
Replies: 4

My T400 ThinkPad did not come with any USB 3.0 ports, so I added one of these cards:

https://www.amazon.com/StarTech-com-Exp … B00535CMEE

The wrinkle is that the card only works if laptop is on AC power. If laptop is running on battery power and I want to use the card, I need to plug the laptop in, eject the card, and reinsert the card.

I don't mind the above too much. However, because my laptop's battery lasts many hours, sometimes I don't have the AC adapter with me--and can't use the card.

Is the card's inability to function when laptop is on battery power a) due to some kernel/software setting or b) due to laptop's physical inability to provide enough power to the card when running on battery? If it is a software setting trying to "help" me by being frugal with battery power, I'd like to change the setting so that I can use the card when on battery power.

P.S. I'm on ASCII with MATE 1.16.2. I do not use a power manager. Any power settings on this machine are default low-level settings (e.g., kernel settings).

Board footer

Forum Software