The officially official Devuan Forum!

You are not logged in.

#2401 Devuan Derivatives » Refracta Installer needs testers. » 2018-03-12 13:15:50

fsmithred
Replies: 3

I merged the two gui scripts into one - refractainstaller-yad and refractainstaller-uefi are now refractainstaller-gui. It's not packaged yet. I moved a bunch of stuff around and shook up the code a bit, so there could be some new bugs. I've run through the install many times (scores of times) and it seems to be pretty good. But I want more guinea pigs to try it before I put it in the repo.

Copy the script from here and save it as refractainstaller-gui
https://gist.github.com/fsmithred/86594 … 07ebd41e58
You can run it from the current directory with

sudo refractainstaller-gui -d

(or be root)

You should have the latest refractainstaller-base installed from ascii repo (or newer from sourceforge.)

Changes:

refractainstaller-gui (9.3.4) unstable; urgency=low

  * Use LC_ALL=C for fdisk -l to accommodate other locales.
  * Test for gpt and for BIOS boot partition and warn if it's needed.
  * Allow re-run partitioner within the installer.
  * Improved test_hostname() to play nice with xgettext. (Blinkdog)
  * Add '-k all' to update-initramfs for cryptsetup.
  * Select EFI partition from list if there are more than one.
 
-- fsmithred <fsmithred@gmail.com>

refractainstaller-gui (9.3.3) unstable; urgency=low

  * Run grub-install after copy debs in case debconf does not run.
  * select_grub_dev if grub-pc is copied to /target and installed.
  * Use default reserved blocks with new ext filesystems.
  * Test for unformatted EFI partition.
  * Merged uefi and bios installer scripts.

-- fsmithred <fsmithred@gmail.com>

Known (very weird) bug:

If you're running in virtualbox, and you let the installer format the partitions, which it does by default, some yad windows might be malformed. This occurs in ascii, with yad-0.38. It's not a gtk3 problem, because I tried it with gtk2 versions of yad-0.38 and yad-0.40. It does not occur with yad-0.27.

It also does not occur if you select the 'Do not format' option, and you format the partitions in gparted (from within the installer or before running the installer. Doesn't matter.)

Even weirder...
If you select to install on encrypted filesystem and select 'Do not format', it won't format your /boot partition, but it must format the encrypted partition, but the bug does not manifest in this situation.

The window that's almost exclusively affected only comes up if you have the wrong grub installed. It's the window at the Pause, right before installing the bootloader, and it has buttons for Chroot, Continue, Abort and either Install Bootloader or Copy files. It may appear as a vertical line, probably 1 pixel wide, and if you grap the edge to expand the window, it will be distorted, and the title bar will say "Unnamed window". Easiest thing to do in this case is reboot (otherwise, you need to unmount /proc, /sys and /dev from /target, unmount /target/boot/efi and /target/boot if they are mounted, and then unmount /target.)

I did not see the bug when I installed on hardware, and I haven't tried installing in qemu. I've also seen it happen with the first greeting window, if I've run the installer more than once in a session.

So...  format your partitions first, and select 'Do not format' if you're in virtualbox. Install it in different ways to test all the parts. Let me know what breaks. Make some deliberate errors to see if the script is smart enough to stop you from shooting yourself in the foot. Don't test this on a production system.

Thanks,
fsmithred

#2402 Re: Devuan » ParrotSec OS, 'considered', switch to Devuan » 2018-03-12 11:57:15

You could start with a minimal install and add packages from the parrot package list, configure everything the way you want. It won't be parrotsec, it would be stanzsec. Or, you could do a minimal install and then use 'dpkg --set-selections...' on the parrot package list to reproduce the system. You'd need to remove any unavailable or unwanted packages from the list first.

It might be possible to convert a parrot install to devuan once beowulf is usable. I just checked the package list, and almost everything seems to be in the devuan repositories. Here's a list of packages in parrot that are not in the devuan repos. Some of them you don't want (systemd) and some of them are replaced by other packages (firefox-esr instead of firefox, dbus-x11 instead of dbus-user-session, gnupg in ascii vs. gpg in buster/beowulf, live-config-sysvinit instead of live-config-systemd).

clang-4.0
couchdb
dbus-user-session
firefox
gpg
gpg-agent
iio-sensor-proxy
libegl1
libgl1
libgles2
libglvnd0
libglx0
libopengl0
libpam-systemd
libtesseract4
live-config-systemd
mate-power-manager
pyrit
python-pymssql
spike
systemd
systemd-sysv
torbrowser-launcher
wifite

#2403 Re: Installation » Multiboot boot loading UEFI - no tty. » 2018-03-11 22:35:42

It's probably been close to a year since I've tried the nvidia driver on this rig (GeForce 210). I didn't have any trouble installing it. I did have to specify using an older version of gcc to match the one used to compile the kernel, but that's normal, and the installer will tell you if you have a mis-matched gcc.

I see same version of libc6-dev in devuan and debian jessie.

 *** 2.19-18+deb8u10 0
        500 http://pkgmaster.devuan.org/merged/ jessie/main amd64 Packages
        500 http://pkgmaster.devuan.org/merged/ jessie-security/main amd64 Packages
        500 http://auto.mirror.devuan.org/merged/ jessie/main amd64 Packages
        500 http://auto.mirror.devuan.org/merged/ jessie-security/main amd64 Packages

#2404 Re: Installation » Multiboot boot loading UEFI - no tty. » 2018-03-11 19:52:56

First thing to try is adding 'nomodeset' to the linux line of the boot command. Press 'e' at the boot menu to edit the selected item. Don't make it a permanent change, because once you install the nvidia driver, you may need to boot without 'nomodset' to prevent the same problem you're having.

Also, if you changed the resolution in /etc/default/grub, you may need to put it back to 640x480. I think I had to do that on one box with asrock motherboard.

#2405 Re: Devuan » ParrotSec OS, 'considered', switch to Devuan » 2018-03-09 10:45:48

Parrot is based on buster. The devuan equivalent is beowulf, but there are no beowulf repos set up yet and no work done on buster/beowulf versions of software. That would account for "breaking things all around."

Here's something you could try if you have a few spare GB of hard disk space...

1. Get Parrot Now, install it. (is is even supposed to be installed?)
2. Don't update it, and wait until we have beowulf repos up and running.
3. Upgrade it to devuan.

Another option would be to get the package list and try to recreate it in devuan.
From within a running parrot session, run dpkg --get-selections > parrot_package_list
It might even be possible to recreate it in ascii (or get something that's close to the original.)

#2406 Re: Devuan Derivatives » [MiyoLinux] MiyoLinux Accessories website » 2018-03-08 19:45:14

yad_0.38 for gtk2 debs here -
http://distro.ibiblio.org/refracta/file … _packages/

(The ones for jessie seem to work fine in ascii, so use the jessie build for i386.)

This one isn't in the sha256sum file on that page:
yad_0.38.2-1-gtk2-ascii_amd64.deb
2d0aa1dfd0a6f410e3e440fa36b875cea141ead16b2598655098e38570b013ea

#2407 Re: Hardware & System Configuration » How to replace Grub2 with Lilo? KISS multiboot configuration. » 2018-03-07 13:12:06

image=/media/username/9d2c1561-d6d7-4651-9373-bcd440c289dd/boot/vmlinuz

When you are in the process of booting devuan, the filesystem that holds the devuan kernel is not mounted on /media/username. You need to tell the bootloader the location of the kernel before anything is mounted.

I don't think the lack of an initrd in salix should have any impact on devuan. Lilo is happy to boot an OS with or without initrd. It's just a matter of getting the stanza right.

#2408 Re: Hardware & System Configuration » How to replace Grub2 with Lilo? KISS multiboot configuration. » 2018-03-06 19:00:47

I was going to suggest that you get one working and then edit the boot menu manually. You beat me to it.

Maybe you need to change the path to the salix kernel to image=/boot/vmlinuz

#2409 Re: Documentation » Replace GRUB with alternate bootloader: extlinux » 2018-03-06 13:47:57

If you're using gpt with bios, the procedure is slightly different. You may need to do the following steps first.

https://wiki.archlinux.org/index.php/sy … tion_table

GUID partition table

For a GPT, ensure bit 2 of the attributes is set for the /boot partition using gdisk. In other words, the "legacy_boot" flag must be set. Using sgdisk the command is:

# sgdisk /dev/sda --attributes=1:set:2

This would toggle the attribute legacy BIOS bootable on partition 1 of /dev/sda. To check:

# sgdisk /dev/sda --attributes=1:show

 1:2:1 (legacy BIOS bootable)

Then follow the instructions in the first post, except for the dd command.
Change the following

dd if=/usr/lib/EXTLINUX/mbr.bin of=/dev/sda bs=440 count=1

to this:

dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/mbr/gptmbr.bin of=/dev/sda

If you want to use UUID instead of device names in the menu, edit the 'append' line to replace

root=/dev/sda1

with something like

root=UUID=xxxxxxxxxxxxxxxxxxx

(replace xxxxx... with the correct uuid.)

#2410 Re: Hardware & System Configuration » How to replace Grub2 with Lilo? KISS multiboot configuration. » 2018-03-06 12:40:50

There should be lots of instructions for using lilo with debian. They'll all be old, but they should still work. It's been years since I've used lilo. Some of what you posted looks familiar, and some is new to me.

More recently, I've tried extlinux, which might be easier than lilo.
https://dev1galaxy.org/viewtopic.php?id=555

#2411 Re: Desktop and Multimedia » Help With Sudo and Asking For passwords When necessary » 2018-03-06 12:17:28

The first checkbox adds the primary user to the sudo group.
The second checkbox does the above and also disables the root password and edits two files in your home so that admin apps will ask for your user password instead of a root pass.

~/.gconf/apps/gksu/%gconf.xml
~/.su-to-rootrc

#2412 Re: News & Announcements » Devuan 2.0 ASCII Beta is here! » 2018-03-06 11:59:14

@Panopticon:
Yes, with no root account, you would use the sudo equivalent. I don't think you need the -i.

#2413 Re: Desktop and Multimedia » Help With Sudo and Asking For passwords When necessary » 2018-03-04 15:03:44

I don't have a good answer for your second question, but I have seen similar behavior - apps requiring root privileges either won't start from the menu or if the user is in the sudo group, those apps start without asking for password. Here's one of several discussions about it. To find more, search the forum for terms like policykit, polkit, consolekit, udisks, libpam.
https://dev1galaxy.org/viewtopic.php?id=675

One workaround would be to edit the .desktop files for the affected apps. For example, edit /usr/share/applications/synaptic.desktop and change
Exec=synaptic-pkexec
to
Exec=gksu synaptic
or something like
xterm -e 'su -c synaptic'

This might also work (please let me know if you try it.)
sudo synaptic

#2414 Re: Desktop and Multimedia » how to unmount fuse mount using desktop icon? » 2018-03-03 13:47:58

I think you'll need a second desktop file. Change the "Exec=" line to use the fusermount command. Change the icon associated with the desktop file so it looks different. (That's just another line in the desktop file.)

#2415 Re: News & Announcements » Devuan 2.0 ASCII Beta is here! » 2018-03-03 13:43:15

If/when gksu goes away, you can edit the Exec line in the .desktop file to use xterm. For example:

Exec=xterm -e 'su -c synaptic'

An xterm will pop up to let you enter the root password.

#2416 Re: Devuan Derivatives » Vuu-do Linux! *New Openbox-64 iso's (1.0.7) up 2-02-18*!! » 2018-02-28 12:40:08

If you're having trouble making a live iso, run refractasnapshot -d to get a more verbose error log (/var/log/refractasnapshot_errors.log). The most common cause of a failed build is to run out of space.

#2417 Re: Desktop and Multimedia » some taskbar icon images shrunken and duplicated on ascii [SOLVED] » 2018-02-28 12:34:13

I can't explain why it would be gtk3 related, but I can offer a way to test that theory. Here's a yad package compiled with support for gtk2 instead of gtk3. Install this one and see if it does the same thing. (sorry, no i386 package)
http://distro.ibiblio.org/refracta/file … _amd64.deb

#2418 Re: Installation » Palemoon installation from source » 2018-02-26 17:11:18

I downloaded the package last March (Wow. Good thing I don't use it.) from the palemoon website, and I think they redirected me to Steve Pusser's repo. I'll do that again right now.

Note that the output of apt-cache policy does not show the package as coming from a repository. It just lists /var/lib/dpkg/status instead. It know the package is there, but it can't tell where it came from. Packages installed with dpkg and packages installed from a repo that is no longer in the sources will show up that way.

#2419 Re: Installation » Palemoon installation from source » 2018-02-26 10:27:28

Sorry to say that palemoon is not in the devuan repo. You're getting a false positive.

Your system:

palemoon is already the newest version (27.7.2~repack-1).

My system:

palemoon is already the newest version.
$ apt-cache policy palemoon
palemoon:
  Installed: 27.3.0~repack-1
  Candidate: 27.3.0~repack-1
  Version table:
 *** 27.3.0~repack-1 0
        100 /var/lib/dpkg/status

Different versions, but in each case it's the newest version that apt can see.

#2420 Re: Installation » Bootloader Freedom » 2018-02-25 13:49:56

No bash??  What shell are you using? Did you make the scripts posix compliant?

Yes, splash is optional.

#2421 Re: Installation » Bootloader Freedom » 2018-02-24 19:03:13

I've thought about adding extlinux support to refractainstaller, but I didn't think there was much interest. Nice to see that there is. I've also thought about adding support for grub to refracta2usb. Maybe those things will actually happen some time.

So, uh, what is /usr/src/refracta-tools and where did that come from?

#2422 Re: Hardware & System Configuration » anacron not working in ascii [SOLVED] » 2018-02-24 14:31:01

I just checked one of my ascii installs, and /usr/sbin/anacron is a real file. There are entries in /var/log/syslog, and it looks like it runs when I boot the VM. My anacrontab looks like yours, there are files in /var/spool/anacron for cron.daily .weekly and .monthly with timestamps that match what syslog shows. And my /etc/default/anacron says "No".

'apt-file find /usr/sbin/anacron.orig.anacron' turned up nothing. Maybe dpkg -S would show something on your end. Or 'grep anacron /root/.history' to see if you did something and forgot about it.

#2423 Re: Installation » Palemoon installation from source » 2018-02-23 12:07:57

It's safe and normal to have multiple versions of gcc. If you upgrade from one relase to another, you will accumulate versions of gcc. In fact, I've usually found it necessary to have multiple versions for properly compiling modules - debian typically ships with a version of gcc that's newer than the one that was used to compile the kernel. The proprietary nvidia installer complains if there's a mis-match of gcc versions.

Looks like there's a newer version of 4.9 in jessie-security:

~$ apt-cache policy gcc-4.8
gcc-4.8:
  Installed: 4.8.4-1
  Candidate: 4.8.4-1
  Version table:
 *** 4.8.4-1 0
        500 http://pkgmaster.devuan.org/merged/ jessie/main amd64 Packages
        500 http://auto.mirror.devuan.org/merged/ jessie/main amd64 Packages
        500 http://debian.csail.mit.edu/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status

~$ apt-cache policy gcc-4.9
gcc-4.9:
  Installed: 4.9.2-10
  Candidate: 4.9.2-10+deb8u1
  Version table:
     4.9.2-10+deb8u1 0
        500 http://pkgmaster.devuan.org/merged/ jessie-security/main amd64 Packages
        500 http://auto.mirror.devuan.org/merged/ jessie-security/main amd64 Packages
 *** 4.9.2-10 0
        500 http://pkgmaster.devuan.org/merged/ jessie/main amd64 Packages
        500 http://auto.mirror.devuan.org/merged/ jessie/main amd64 Packages
        500 http://debian.csail.mit.edu/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status

#2424 Re: News & Announcements » Devuan 2.0 ASCII Beta is here! » 2018-02-23 11:49:45

@yeti:

What kind of results do you get with the language selector in lightdm with xfce? If you have at least two languages configured in the system, can you log out and switch language at the login screen? For me, it does not work correctly in devuan or debian (tested yesterday with a fresh Stretch install).

If I select a language at the login screen and then login, I don't get that language. If I then reboot and login, I might get the language I selected last time, whether or not I selected a language this time. LXDM, on the other hand, seems to work just fine.

#2425 Re: Hardware & System Configuration » CPU throttling » 2018-02-22 21:19:39

After our previous exchange, I checked my laptop, and the default governer was powersave. Good for a laptop, but that's where I build isos. Been using cpufrequtils since then, and I just now installed and tried linux-cpupower.

cpupower set -b 0 gives me slightly higher speeds than cpufreq-set -g performance but in both cases, speeds drop at idle. I don't know if recompiling the kernel without the governers is necessary or even possible or if it would work. You might be able to just unload the module(s) to get constant full speed.

Board footer

Forum Software