The officially official Devuan Forum!

You are not logged in.

#2551 Documentation » Package manager magic incantations » 2017-03-12 14:36:26

fsmithred
Replies: 3

I think I collected all of these from forums.debian.net (and I have not tested all of them.)

Edit: I'm adding code boxes to the ones I test. Note that some of these commands may give you strange results if you have multiple repos enabled, like jessie,ascii,ceres. Don't do that!

-fsr

------------------------

To find which installed packages are from debian-multimedia (works as user):

dpkg-query -W --showformat='${Package}\t${Maintainer}\n' |grep "Christian Marillat"

To show packages from contrib and non-free, either one of the following. The second is more specific. (e.g. the first one gives a false positive on libclucene-contribs1 because "contrib" is in the package name.)

dpkg-query -W --showformat='${Package}\t${Section}\n' | egrep -e "non-free|contrib"
dpkg-query -W --showformat='${Package}\t${Section}\n' | awk '/non-free|contrib/ { print $0 }'

Re: List installed software from non-free repo
bugsbunny » 2011-01-30 08:50

    aptitude search ~i~s"non-free~|contrib"
or
    aptitude search ~i~snon-free ~i~scontrib

If you want package names, section, and archive (testing, stable, unstable):

aptitude search ~i~snon-free ~i~scontrib -F"%p#  %s#  %t#"

or maybe name, version, archive

aptitude search ~i -F"%p# %v# %t#"

get package names and sizes, sorted by size:
dpkg-query -W --showformat='${Installed-Size}\t${Package}\n' > package_sizes
awk '{ printf "%.7d %s\n", $1, $2 "\n" }' package_sizes | sort

Show which repo (which release) packages came from:
aptitude search "?narrow(?installed,?archive(stable))"
aptitude search "?narrow(?installed,?archive(oldstable))"

Or did not come from:
aptitude search "?narrow(?installed,?not(?archive(stable)))"

To get a list of dependencies from a .deb file:
$ dpkg -e d4x_2.5.7.1-5_amd64.deb
$ su
Password:
# DEPS=$(grep ^Depends DEBIAN/control | sed 's/,/\n/g' | sed 's/(.*//;s/Depends: //;s/^ //')
# apt-get update
# apt-get install $DEPS   ### Bad idea!!! This installs everything in the list. There may be redundancies.
# apt-get clean
# exit

This line works if there's a "|" in the output.
DEPS=$(grep ^Depends DEBIAN/control | sed 's/,/\n/g' | sed 's/(.*//;s/Depends: //;s/^ //;s/|.*$//')

Better way:
dpkg -i my-deb_5.0-6_i386.deb
apt-get -f install

#2552 Re: Installation » [Solved] Removable media unaccessible as normal user (PCManFM/Thunar) » 2017-03-05 20:44:11

Good stuff. I'm gonna play with that when I get a chance. I don't have the answer to your last question, but this might be helpful -

https://wiki.archlinux.org/index.php/Xresources

xinitrc

If you are using a copy of the default xinitrc as your .xinitrc it already merges ~/.Xresources.

If you are using a custom .xinitrc add the following line:

[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources

Warning: Never background the xrdb command within ~/.xinitrc. Otherwise, programs launched after xrdb may look for resources before it has finished loading them.

#2553 Re: DIY » How to set Grub default startup in dual boot for Windows » 2017-01-30 22:24:01

Instead of editing grub.cfg, you should edit /etc/default/grub and change the first item:

GRUB_DEFAULT=6

and then you must run update-grub to apply any changes you made. Then grub.cfg will be automatically edited the way you want.

BTW, entries 7 and 8 get you some geek points, and you get extra points if those things really boot. (Now I can't get that brick wall out of my head.)

#2554 Re: Hardware & System Configuration » vdev testing » 2016-12-31 15:11:54

You have to add code tags manually here.

I had a problem with refracta2usb in vdev. For some reason, it didn't recognize /dev/disk/by-id so I changed it to by-uuid. On the command line, it seems to work normally.

#2555 Re: Hardware & System Configuration » vdev testing » 2016-12-31 13:55:55

1 - 5 look right.
6.  I never looked in that file before.
7.  My guess is that gvfs needs some function in udev to tell it something. I run without gvfs here, so I wouldn't have noticed that.
     Does your trash icon work?
8.  You might need to alter some action files or a helper script. The most I've done with that was edit a pattern to find a device and change permissions.

Read Jude's documentation on the action files, (Appendix A)
https://git.devuan.org/unsystemd/vdev/b … to-test.md
https://github.com/jcnelson/vdev/blob/m … to-test.md

Look inside the helper scripts for clues. (in /lib/vdev)

Sorry I can't be more specific. It's a big black box. That I was able to do anything with the action files and permissions.sh was a surprise to me.

#2556 Re: Devuan Derivatives » exegnulinux » 2016-12-28 16:59:41

I can't get vbeinfo to work, but videoinfo shows me the three resolutions that work right plus 800x600.

I just tried it with a splash that's 640 x 480, 8-bit/color RGB, non-interlaced png, and 800x600 still does not work. (garbled boot text).  That appears to be the same as the grub splash in the exegnu iso. (according to the file command).  I think I need to do some more tests.

Edited to correct "works correctly" to "still does not work."

#2557 Re: Devuan Derivatives » exegnulinux » 2016-12-27 19:32:25

set gfxpayload=auto doesn't work, either. The only resolutions that work on this laptop are 640x480, 1024x768 and 1366x768. I tried it with the test snapshot and also with editing the grub entry at boot time. Same result. I'm guessing that there are netbooks that won't do 1024x768. Anybody know for sure?

#2558 Re: Devuan Derivatives » exegnulinux » 2016-12-26 22:32:04

Isoyhybrid uefi boot is fixed in exegnulinux_amd64_20161225.iso  smile

BTW, 800x600 doesn't work right on my laptop. Boot messages are scrambled and take up the top third of the screen. I changed the mkefi function in snapshot to use 640x480 for that reason. I hope that works for everything.

#2559 Re: Devuan Derivatives » exegnulinux » 2016-12-24 21:20:22

Run 'fdisk -l' on the iso, and it should look something like these:

# fdisk -l devuan_jessie_1.0.0-beta2_amd64_DVD.iso 
Disk devuan_jessie_1.0.0-beta2_amd64_DVD.iso: 4.4 GiB, 4668088320 bytes, 9117360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x30c02860

Device                                   Boot   Start     End Sectors  Size Id Type
devuan_jessie_1.0.0-beta2_amd64_DVD.iso1 *          0 9117359 9117360  4.4G  0 Empty
devuan_jessie_1.0.0-beta2_amd64_DVD.iso2      9059432 9060263     832  416K ef EFI (FAT-12/16/32)

# fdisk -l refracta8_xfce_amd64-20161013_1314.iso
Disk refracta8_xfce_amd64-20161013_1314.iso: 648 MiB, 679477248 bytes, 1327104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x25061aae

Device                                  Boot   Start     End Sectors  Size Id Type
refracta8_xfce_amd64-20161013_1314.iso1 *         64 1327103 1327040  648M  0 Empty
refracta8_xfce_amd64-20161013_1314.iso2      1314680 1317559    2880  1.4M ef EFI (FAT-12/16/32)

Watch out for newer versions of refractasnapshot. I removed 'union=aufs' from live.cfg so it wouldn't conflict with overlay.

If you upload a rebuilt iso, I'll test it on uefi.

#2560 Re: Devuan Derivatives » exegnulinux » 2016-12-24 14:11:10

Further testing:

Iso boots uefi in qemu and virtualbox.

Re-imaged usb with isohybrid. Hardware boot fails (doesn't find a bootloader at all.)
So I tried booting from the hard drive - at grub menu I dropped to grub prompt:

set root=(hd0)  #usb is first drive, tab-complete shows no partitions
chainloader +1

gives error something like "Invalid EFI path..."

So then I tried

set root=(hd0)
linux /live/vmlinuz boot=live union=aufs nocomponents=xinit
initrd /live/initrd.img
boot

and it boots normally.

(note: 'union=aufs' is also needed if you use encryption.)

I found the same as you with the grub-*-bin packages. In Refracta, I started with grub-efi then replaced it with grub-pc but didn't autoremove efibootmgr or (whatever else came with it). The grub-efi packages are included in the iso. There is a refractainstaller-uefi (yad) included in the iso. For a uefi install, when it gets to the grub install, it opens a terminal in a chroot in /target and allows you to install the grub-efi packages, which then install the bootloader to the efi partition. It works, but it needs some refinement.

There's a reason for installing both grub-efi packages instead of just grub-efi-amd64, even though the -bin package is already installed. But I don't recall exactly what that reason is. Maybe debconf runs? Maybe update-grub runs? Not sure, but it might be in my notes.

#2561 Re: Devuan Derivatives » exegnulinux » 2016-12-23 22:24:47

The new exegnulinux looks nice. I just installed it on uefi. Ran into a couple of minor problems, but it works.

First I dd'd the iso to usb, and it wouldn't boot on uefi. There's only one partition in the iso.

Then I used refracta2usb to make the usb, and it did boot on uefi. Chose uefi mode in the installer and let it install the bootloader. Installer told me that the grub install failed, but the log shows that grub claimed success. I rebooted. Exegnulinux is now the first entry in my boot menu, and I think it found all the other installations. (It's a long list.) It works.

BTW, now I understand why you add 'nocomponents=xinit' to the boot line. The desktop was psychedelic without that. Also required union=aufs which doesn't seem to be required on all jessie builds.

#2562 Re: Devuan Derivatives » List of Devuan derivatives » 2016-12-22 18:03:38

Quote from the author of figos:

you can always get the latest script (because fig os was originally meant to be something you put together yourself-- and customized if you wanted-- after all, its an automated process but you can tweak it if you like) at http://unofficialdistros.freeforums.org … tc-f4.html

#2563 Re: Devuan Derivatives » List of Devuan derivatives » 2016-12-21 14:12:50

chillfan wrote:
fsmithred wrote:

A derivative of a derivative is a derivative.

$0.02

I think figos is worth listing. It's the only distro I know that comes in a multi-boot iso. Maybe I've been spending too much time inside the box, but that just blows my mind.

That does sound useful, do you have a link to the homepage of figos?

Cheers smile

I don't think there's a home page at this point. I pinged figosdev to see if we can get a definitive answer to this question, but meanwhile, here's a short discussion about it with a link to the script that is used to make the iso:
http://refracta.freeforums.org/fig-os-c … -t591.html

-fsr

#2564 Re: Desktop and Multimedia » LXDE user upgrades to Devuan Jessie » 2016-12-16 10:57:54

lxde is another metapackage. Same with xfce4. You can install xfce4-session, xfdesktop4 and thunar without pulling in libsystemd0. Also, remove lxde and install the parts you want. Here's the list of packages with lxde in the name.

aptitude search lxde
p   education-desktop-lxde                                - Debian Edu LXDE desktop applications                           
p   live-image-lxde-desktop                               - Live System Image Components (LXDE desktop)                    
p   live-task-lxde                                        - Live environment support for Lxde                              
p   lxde                                                  - Metapackage for LXDE                                           
p   lxde-common                                           - LXDE common configuration files                                
p   lxde-core                                             - Metapackage for the LXDE core                                  
i   lxde-icon-theme                                       - LXDE standard icon theme                                       
v   lxde-session                                          -                                                                
v   lxde-settings-daemon                                  -                                                                
p   openbox-lxde-session                                  - LXDE session manager and configuration files                   
p   task-lxde-desktop                                     - LXDE 

You can check what will be installed along with any package by adding the -s option. (apt-get -s install <packages> or aptitude -s install <packages>)

#2565 Re: Devuan Derivatives » List of Devuan derivatives » 2016-12-15 20:47:50

A derivative of a derivative is a derivative.

$0.02

I think figos is worth listing. It's the only distro I know that comes in a multi-boot iso. Maybe I've been spending too much time inside the box, but that just blows my mind.

#2566 Re: Desktop and Multimedia » LXDE user upgrades to Devuan Jessie » 2016-12-15 20:40:18

I think the problem is task-xfce-desktop or some other metapackage that depends on a bunch of things, even if some of the components don't require all those things. For example, a normal xfce desktop will include gvfs and gvfs-daemons. The latter requires libsystemd0, but the rest of xfce does not. If all those items were installed under a metapackage, then removing any part will remove them all.

You might get away with just 'apt-get remove task-xfce-desktop'. But things might get marked for autoremoval. The ones you want to keep can be installed (or reinstalled?) manually, before they are removed. (it's either apt-get install <package> or apt-get --reinstall install <package>). The package will be marked as manually installed, and it wil bel un-marked for autoremoval.

#2567 Re: Installation » Default size of the /boot partition » 2016-12-15 20:28:04

debian/devuan get rid of the old kernel on upgrade.

To close lvm parttion manually goes something like this:

alt-F2  #to get to a console with a command prompt
umount <mountpoint>
vgchange -a n <volume_group_name>
cryptsetup luksClose label

where label is the name in /dev/mapper/<label>.

#2568 Re: Installation » Default size of the /boot partition » 2016-12-15 13:26:15

Malinas wrote:
  • It is impossible to undo the setting up of the 2nd partition (usually /dev/sda2) as an encrypted partition. There's something amiss in the installer, it cannot properly let go of the encrypted partition. This means that in case I want to change the size of the /boot partition, I need to reboot (hopefully it's at the beginning of the installation process, so not much time wasted).

It's not clear to me what you're doing in the above. I don't use guided partitioning, but I thought it was not possible to change the settings that the partitioner uses. That's what manual partiioning is for. You should be able to make  /boot and / partitions without encryption. I know I did it with the beta1, but I haven't tried it with the beta2.

250mb for /boot should be more than enough unless you're planning to do something unusual.

#2569 Re: DIY » browser security DIY » 2016-12-13 15:08:55

Sorry about that. I keep forgetting that yad is not in jessie.

This version works with jessie. (0.27.0-1)
http://debs.slavino.sk/pool/main/y/yad/ … _amd64.deb
http://debs.slavino.sk/pool/main/y/yad/ … 1_i386.deb

And in case those go away, I've got them here:
http://distro.ibiblio.org/refracta/file … _packages/

#2570 Re: DIY » browser security DIY » 2016-12-12 22:20:29

Wow. I read the article. That's a lot to digest. I've been using firejail for a few months, but just with the default settings. I also tried it with firetools, a graphical front end, but I didn't like it. Couldn't figure out how to edit the menu to show just the apps I wanted to use. So I wrote my own front end.

firemenu is a bash script that uses yad for a graphical front end. It presents a list of applications that have firejail profiles, and you can filter the list to just show the apps you normally use.

https://sourceforge.net/projects/refrac … nu-1.2.deb
https://github.com/fsmithred/firemenu

#2571 Re: Forum Feedback » no ones cleaning spam » 2016-12-11 12:52:51

@figosdev
I have evidence that the year of the linux desktop (if you can count netbooks) was 2008. That evidence is in the form of an advertisement for a EEE netbook. The ad featured a bright red balloon with the words, Runs on Linux, as the main selling point. Got a screenshot of that as soon as I saw it.

-fsr

#2572 Re: Devuan Derivatives » [MiyoLinux] New Releases Uploaded » 2016-12-10 19:49:56

MiyoLinux wrote:

Just wanted to quickly say that I did a test install this morning, and the Ext 2 file system is highlighted by default on MiyoLinux.

I see it, too. It's a gtk-3 issue. Yad-0.37 (from ascii) uses gtk-3. I guess it automatically highlights the first choice. I can reverse the order of fs types in the script.

#2573 Re: Devuan Derivatives » [MiyoLinux] New Releases Uploaded » 2016-12-09 16:27:15

Vall wrote:

2) Using the "expert" install with disabled "Use UUID (...)" and enabled "use existing swap (...)" and "write zeroes (...)" and "run cfdisk", it locked up here right after partitioning on the "Syncing disks" screen. This is 100% reproducible, and the only way out is closing the "cfdisk" window by clicking on its "X" top-right frame button. Installation seemed to resume  OK from there, but I reset the machine and started it over just in case.

I'm the author of the installer script. (I don't think it was modified, but I could be wrong.)

It didn't lock up. It was waiting for you to close the cfdisk window. That's just the way the script is written. I should add a message somewhere that tells you to do that. (It's on the todo list now.)

3) The default filesystem to format the system partition was shown as ext2 (of course I chose ext4). Was that intended?

No. Normally, no filesystem is highlighted when the window comes up. At least that's how it is for me when I run it.

4) I have a swap partition but it doesn't show in the "Select a partition for swap" dialogue (in fact, this window doesn't show anything). I closed it (again, clicking on the X) and ran mkswap manually on a separate terminal window. It showed me a "you did not choose a swap partition" window, to whch I clicked "OK", and the installation seemed to proceed OK, (fortunately) instead of looping back to the "choose a partition for swap" dialogue.
EDIT: after the installation, I found out MIYO created and was using a "/swapfile" instead of the partition I created. I fixed it manually.

If you had a partition set aside for swap, but it still needed mkswap run on it, then it won't show up. The command the script uses to find existing swap partitions is

/sbin/blkid |grep swap | awk '{print "\n" $0 }'

5) After selecting all the timezone/locale/keyboard options, the system seemed to lock up in a black window (only showing "refractainstaller-yad" on top), with no blinking dots, progress bar, nothing. I saw that it was not a real lock-up because (contrary to #2 above) the HD access LED was blinking... but at least a "Doing something, please wait...." message would probably help the newbies.

The next thing that runs after the pre-install scripts (timezone, etc.) is the cleanup function. Maybe it took some time to unmount something? Just a guess. If you feel like repeating the experiment, run 'refractainstaller-yad -d' and pastebin the error log (/var/log/refractainstaller_error.log) or email it to me if you prefer.

Thanks,
fsmithred

#2574 Re: Devuan Derivatives » exegnulinux » 2016-12-07 15:21:03

@dzz:
I announced a devuan-based refracta release on Oct. 30, 2015. Before that, there was a Refracta with xfce based on systemd-free debian jessie that you put together while I was stalling. Before that was a systemd-free debian-based refracta with openbox that would not have happened without your help. You were the trailblazer in those interesting times.

I don't know the timelines on the other devuan derivatives, but I am glad that we all exist, and I think it's good that we have this place to meet and compare notes.

#2575 Re: News & Announcements » Unofficial Devuan-Live Isos » 2016-12-05 23:48:26

The amd64 iso has been replaced. I screwed up. Thought I tested the iso before upload, but apparently I didn't, and it doesn't boot.

unofficial_live_devuan_beta_amd64_snapshot-20161203_0200.iso is the BAD ISO. If you downloaded this one, throw it away!

unofficial_live_devuan_beta_amd64_snapshot-20161205_2229.iso  is the replacement. This one boots.

I apologize for any inconvenience.

fsmithred

Board footer

Forum Software