The officially official Devuan Forum!

You are not logged in.

#151 Re: DIY » [SOLVED] Creating a bootable iso file » 2018-12-17 19:29:22

Ron, I use refractasnapshot -> bootable USB to create installer for other people. To backup/restore my own system for my own use (on same or different computer) I use partclone. It is much easier to recreate a system by cloning than via an installer. BTW, partclone supports ext4 and does not backup empty space. 

To create a backup, boot into any live USB on your source machine and plugin a storage device. Then, while in the live environment, create your backup (this example assumes the partition containing your Devuan installation is /dev/sda1):

sudo apt install partclone
sudo partclone.extfs -c -s /dev/sda1 -o /media/ron/some-storage-device/devuan_backup.partclone

Now you have a backup for your day of need. When that day comes:

To restore the backup on same or different computer, boot into any live USB on that computer and plugin the storage device containing the backup. If a target partition does not yet exist, use GParted or similar partitioning tool to create it (it must be of same size or larger than the source partition). Here is the command to write the backup to the target partition (it assumes your target partition also happens to be /dev/sda1):

sudo apt install partclone
sudo partclone.extfs -r -s /media/ron/some_storage_device/devuan_backup.partclone -o /dev/sda1

I've been using partclone on at least a monthly basis for years and it has never let me down. I actually keep the (tiny) partclone.extfs executable on my storage device, which eliminates the need for the installation steps in my guide above.

#152 Re: Other Issues » (Un)Limited TTL for mirror Release files » 2018-11-28 19:17:47

I also have a local mirror and don't give a hoot if it's "old". To stop apt's whining about the mirror's release file being out of date, create /etc/apt/apt.conf.d/10-unlimited-ttl on the machines that use your mirror. File should contain nothing but this:

Acquire::Check-Valid-Until "0";

#153 Re: Desktop and Multimedia » Removing XFCE after installing MATE » 2018-11-28 18:58:26

What a knotty mess. One wouldn't think that uninstalling xfce4 would leave things such as vlc and libreoffice orphaned.

I'm guessing that you inherited the XFCE desktop environment from whatever install media you used (maybe even the official Devuan installer). The million dollar question is how XFCE was installed in that media. I wouldn't know the answer to that, even if I knew which installer you used. But we can work backwards based on a premise: XFCE was most likely installed using a metapackage (e.g., task-xfce-desktop) that pulled in another metapackage (e.g., xfce4). Once we're dealing with metapackages of metapackages, a lot of stuff gets dragged in as dependencies.

Try running aptitude why vlc and aptitude why libreoffice and repeat with a few other packages in your list of "automatically installed but no longer required" that are clearly not a part of XFCE. You'll probably find a non-xfce metapackage that brought in these applications as dependencies. Manually install that metapackage then uninstall xfce4. Not a quick and easy solution, but I think it would do the trick.

EDIT: The suggestion in rolfie's thread (installing task-mate-desktop) sounds quite promising.

#154 Re: Other Issues » [SOLVED] How to get these 2 apps to open maximized? » 2018-11-15 16:21:05

I made small improvements that allow the script to be used without any alteration for any app smile

For any app foo, just create /usr/local/bin/foo with this in it:

#!/bin/sh

# This is a wrapper script that immediately maximizes the target application
# after its window appears. Script should be /usr/local/bin/foo where foo is 
# the name of the target application. 

app_name="$(basename "$0")"
app_path="$(which -a "$app_name" | tail -n 1)"
"$app_path" "$@" &
app_pid=$!

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

# get windowid of app
app_windowid=$(wmctrl -lp | awk "\$3 == $app_pid { print \$1 }")

# maximize app's window
wmctrl -ir $app_windowid -b add,maximized_vert,maximized_horz

Don't forget to make the script executable. All the script needs to work is its own name.

#155 Re: Hardware & System Configuration » Need a wireless dongle recommendation » 2018-11-13 15:55:21

All wireless dongles from ThinkPenguin and Technoethical would work out of the box with Devuan because they run on libre firmware, which is included by default in any Debian/Devuan linux kernel. Both companies are great. The dongles are listed on each company's website as well as on the Free Software Foundation's "Respects Your Freedom" page (http://fsf.org/ryf). There are tiny ultra-portable dongles (less expensive) as well as bigger ones with bigger antennas for increased range (more expensive).

All things being equal, go with whichever company is closer to you for shorter transit/faster delivery. ThinkPenguin is in the United States (New Hampshire) and Technoethical is in Europe (Romania).

#156 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.

#157 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

#158 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.

#159 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?

#160 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.

#161 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

#162 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

#163 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

#164 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!

#165 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.

#166 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.

#167 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.

#168 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.

#169 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

#171 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

#172 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?

#173 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?

#174 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

#175 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.)

Board footer

Forum Software