The officially official Devuan Forum!

You are not logged in.

#76 Re: Hardware & System Configuration » [SOLVED] OpenRC initscript -> noip2 again [SOLVED] » 2019-03-14 02:36:18

I dont understand what the actual problem is.

Near the bottom of your posted rc.log file is:

* Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/noip2 start

I take this is that noip2 was indeed actually started by openrc init.  What ever happens to noip2 after that is up to noip2 itself.

Is noip2 persistent, does it show up when you run htop (or whatever)?

Note- I am not a script master, so cant determine if anything is wrong with your posted noip2 init script, hopefully someone else could help with that.

#77 Re: Hardware & System Configuration » [SOLVED] OpenRC initscript -> noip2 again [SOLVED] » 2019-03-14 00:52:40

Also, you might want to try changing in your noip2 script "#!/sbin/openrc-run" to "#!/bin/sh".

#78 Re: Hardware & System Configuration » [SOLVED] OpenRC initscript -> noip2 again [SOLVED] » 2019-03-14 00:41:02

I assume you are using openrc as your init.

You can edit /etc/rc.conf to produce a log file, make these changes:

rc_logger="YES"
rc_verbose=yes

Reboot, view var/log/rc.log and see if anything about noip2.

Now, sysvinit and/or openrc only START service.  They dont care nor know about what service do after they start, they dont keep track if they end abnormally.

So check if your noip2 is actually running via htop or ps aux a or whatever you like.

EDITED - And now I see from your initial post you already have var/log/rc.log enabled, sorry about that.

#79 Re: Installation » Installing openrc. » 2019-03-13 15:51:59

I think to replace runnig /sbin/init with running /sbin/openrc-init requires other system changes, the man page for openrc-init specifically mentions shutdown and getty.  I suspect Debian uses init is to keep the switching (installing) between sysvinit and openrc manageable.

#80 Re: Hardware & System Configuration » [SOLVED] OpenRC initscript -> noip2 again [SOLVED] » 2019-03-13 00:58:44

inukaze wrote:

Hi there, in ASCII i had the same trouble i had on Devuan Jessie. my custom initscript for OpenRC is not working

if i run

sudo service noip2 start ; ps -A | grep noip2

You quote "OpenRC", and then use "service noip2 start ".  "service" is sysvinit.  "rc-service" is openrc equivalent.

rc-service noip2 start

Does your script have a symlink in an openrc runlevel in /etc/runlevels/...?  If not, then run rc-update to add your service to openrc (runlevel default for example). Openrc will then run your script upon init:

rc-update add noip2 default

#81 Re: Installation » Installing openrc. » 2019-03-12 20:21:21

aurocha wrote:

Hi,

Just installed devuan and plasma is working flawlessly.
I noticed that, in spite of choosing openrc, the init is actually init, not openrc-init.

Tried to boot the system with init=/sbin/openrc and the system says it can't start dbus (for sddm), hence it doesn't start networkmanager, etc, etc, etc.

Question: Is using openrc-init possible with devuan and can we get a full working Desktop Environment?

Regards,

Devuans (actually Debian) implelentation of openrc does not use openrc-init.  It still uses init to start things off.

Whats in /etc/init.d/rcS, does it contain something like this:

exec /sbin/openrc sysinit

This is the startup of openrc.

#82 Re: Installation » [SOLVED] disabling slim » 2019-03-12 10:09:52

guuml.dev1 wrote:

Where does this "hidden database" come from? As far as I know there was no written manual at all-

As ralph.ronnquist mentions, the files are maintained by insserv.

The files are generated using the LSB header information in the init scripts themselves.  Their purpose is to organize the boot order of the init scripts, based on the requirements of the scripts as defined in their LSB header.  These hidden files are then in turn used to generate the numerically ordered sysmlinks in the runlevel directories rc#/d, or for openrc the deptree in /run/openrc.

I suppose they are hidden so not to create confusion in the init.d directory.

#83 Re: Hardware & System Configuration » [solved] sysvinit: Most simple way to start command as user » 2019-03-09 14:31:39

kuleszdl wrote:

It would be great if the proposed solution would work for at least sysvinit and openrc without modifications.

If you do write a script in init.d, making it LSB compliant (the ### BEGIN INIT INFO....### END INIT INFO stuff at the top) will ensure it runs properly in openrc.

#84 Re: Installation » Questions on Installation of Devuan such as Partitioning, etc. » 2019-03-08 17:24:08

Its been a while since I dual booted, so I will leave the details for someone else to provide (hopefully).  last time I dual booted, I decided how much disk I needed for the entire Linux, performed the "shrink" within windows, then installed Linux and created the partitions as part of the install.

But as @Panopticon points out, it is much cleaner to not dual boot, I havent done it since EFI is used.

Barabas_Dantioch wrote:

1. How many partitions should I create? Root, Home, Swap, or Just Root and Swap? What happens to Home if I don't create it as a separate partition?

I just use a swap and root.  In doing so everything else (home) is under root.  "Root" just means the base / directory.  Home is 1 directory below /;  /home.  Nowdays I also create a separate partition to store data I keep across installs, you could just use your windows for this. 

Not sure about dual booting, but with a Linux only install using EFI, you also need an ESP as partition 1.  100MB is fine.  I think windows already uses this partition?

Barabas_Dantioch wrote:

2. How much storage should I give the individual partitions given my laptop's HDD capacity?

4GB ram;  4GB for swap should be fine.  Opinions vary on this.  Linux itself should easily use under 5-10 GB for the initial install.  I dont know, 100G?  And 100MB for ESP partition 1 if its not already there.

Barabas_Dantioch wrote:

3. Post-installation: how do I install media codecs and drivers? What are the drivers I will need on a mostly Intel laptop?

If you select and install from the "non-free" repositories during the install, all should work out of the box.  Intel should work out of the box.  You may want to check what your wifi hardware is and make sure its supported.  Wifi seems to be where trouble appears for support.  As long as your hardware is not VERY new, you should be ok.

Barabas_Dantioch wrote:

4. Given my hardware specs, which DE should I use with Devuan?

You should be ok with any of them.  This is personal preference.  Xfce is solid.  I see mate mentioned alot.  I have been using LXQT lately, like it.

Barabas_Dantioch wrote:

5. Additional question: when is the next version of Devuan coming?

Someone else can chime in here, I thought I read somewhere Devuan strives for a 2 year cycle, so should be soon.  Many of us are running from testing, its been stable.

#85 Re: Installation » Installing openrc. » 2019-03-07 15:52:42

I am not sure about the live install iso, but on the netinstall iso; there is a checkbox list of stuff to use/make available during the install somewhere early on in the install.  One of the options is choose init system, or something like that.  Selecting this will present an option at the end of the install to select init system to install (sysvinit, openrc).

Anyway, its a safe and easy install for openrc on a running system:

apt install openrc

I believe the install may display something about running a bunch of the daemon shutdown scripts.  I ignore this and just reboot once openrc is installed.  Sorry for my vague answer, its been a while since I performed this install.

#86 Re: Hardware & System Configuration » Log file reading issues » 2019-03-07 15:07:39

Altoid wrote:

On the hexadecimal view pane, these .................. are represented as sets of zeroes sepatated by a space just like the rest of the hex strings.

ie: 0000 0000 0000 0000   

These strings are identified as hexadecimal 00, octal 000, binary 00000000.

OK, thats exactly why the text editors are having trouble reading the log file.  x00 is whats called the string terminating character, it defines the end of a string of text.  Leafpad is doing its job; it encounters the x00 and stops displaying text.  Pluma appears to be too anal; seems to be scanning the file for invalid text before displaying anything. 

Another good text editor as well as very useful all around tool is mc.  It will display ALL of the text, including non-text, and its internal editor allows you to modify the non-text characters.  Very useful.

The x00 being in the log file was definitely caused by the ungraceful shutdown, this often happens.

Sorry, I cant help much with the actual hardware problem nor with more shutdown info.  A long shot, since it seems to be ethernet, did you try disabling wake on lan?

#87 Re: Hardware & System Configuration » Log file reading issues » 2019-03-06 23:24:15

This can be caused by ascii "non-text" codes being in the text log file. Often times a text terminating x00 null byte.  Leafpad is very susceptible to this. If you install a hex editor such as hexedit, you can open the log file in it and view exactly the base ascii codes and thus whats causing the problem.

Could it be that the #### stuff is at (prior to) a reboot?  Did your system halt ungracefully prior to a reboot?  This can cause non-text ascii codes to be written to the log file.

If you did not have a system abend around this time, then something else has caused problems; there should not be non-text ascii in the log files.

#88 Re: Installation » sha doesnt match » 2019-02-28 13:05:50

I "think" maybe its because the file at:

https://pkgmaster.devuan.org/devuan/dis … SHA256SUMS

is the latest/current file.

Note the sha you are referring to :

f79ea6e9c962b7b4021a216c0a49d847993303b743773995458ac448d59ebdb0    74077 main/installer-amd64/20181213+devuan1/images/SHA256SUMS

Has a date in the name (20181213).

Then note that the sha that was returned by your check, is listed on line:

 b14f1d9375dad1394ff8e5026c272076c51b1bf76464ff556445d49c91cbb103    74077 main/installer-amd64/20190228+devuan1/images/SHA256SUMS

Note the date difference. 

Does this make sense?  I can hardly follow this myself!

#89 Re: Installation » sha doesnt match » 2019-02-28 01:50:37

Not sure what you are wanting to do.

Yes, I can see f79ea6e9c962b7b4021a216c0a49d847993303b743773995458ac448d59ebdb0 at the url you post.

But when I visit https://pkgmaster.devuan.org/devuan/dis … SHA256SUMS, I do not find any:
b14f1d9375dad1394ff8e5026c272076c51b1bf76464ff556445d49c91cbb103

Anyway, normally you download an iso and then use the SHASUM process to verify that the download occurred without error. 
You download this to get the SHA256 hash number for whatever you are downloading (mirror site used):
https://mirror.leaseweb.com/devuan/devu … SHA256SUMS

Then after you download your desired iso file, you then run sha256sum <iso file>(for example for netinst.iso):

sha256sum devuan_ascii_2.0.0_amd64_netinst.iso
c16bebdeecdf452188ae4bb823cd5f1c0d2ed3a7a568332508943ce16f7e5c71  devuan_ascii_2.0.0_amd64_netinst.iso

And you will find an exact match of this cryptic number in file SHA256SUMS, if the download completed without error.  If the numbers do not match, the downloaded ISO file is invalid.

#90 Re: Hardware & System Configuration » Changing desktop enviroments » 2019-02-24 16:40:51

If you want to install a desktop environment, install lightdm then install the meta-packages for either xfce (package xfce4) or lxqt (package lxqt or even lighter- lxqt-core).  I have run both on a netbook similar to yours with no problems.  Understand when installing a meta-package that ALOT gets installed; all the way out to pulseaudio.

Its difficult to uninstall a DE and wanting it to fully clean up after itself.  Files will be left behind; configs, etc.  But for the most part it will be removed.

What you might want to try is to install the devuan netinst.iso and do not install any desktop environment at all, make sure to un-check default desktop.  This will give you console only.  Then if want X, install lightdm along with a basic window manager such as openbox.  This will allow you to install and use desktop applications such as a web browser.  Make sure you install a terminal such as xterm or lxterminal to make the window manager usable.  If you find this too basic, then install xfce or lxqt. 

You can get a much lighter desktop if you do not install via meta-package, instead install the individual packages (xfce4*, lxqt*) with --no-install-recommends.  But you really need to understand the components of the chosen desktop env to do this.

#91 Re: Off-topic » Music » 2019-02-24 01:22:16

Beatles This Boy.  So simple.  Harmonizing voices.

https://www.youtube.com/watch?v=lW5D7HpYhBU

#92 Re: Devuan » Is some part of systemd running in ascii 2 ? » 2019-02-13 21:51:04

I dont know if this is a viable "fix" to propose, but /run/systemd could be changed to a symlink that points to /run/nosystemd (or whatever).  A process would have to be written (along with other required processing to make it work) to do this during init process.  As something fun to try I just manually made this change and everything seems to be working ok.

dxrobertson@acer:/run$ ls -l
total 32
-rw-------  1 root       root          0 Feb 13 15:15 agetty.reload
drwxr-xr-x  2 root       root         80 Feb 13 15:15 console-setup
-rw-r--r--  1 root       root          5 Feb 13 15:15 crond.pid
----------  1 root       root          0 Feb 13 15:15 crond.reboot
drwxr-xr-x  2 messagebus messagebus   80 Feb 13 15:15 dbus
-rw-r--r--  1 root       root          5 Feb 13 15:16 dhclient.pid
-rw-r--r--  1 root       root          5 Feb 13 15:15 elogind.pid
prw-------  1 root       root          0 Feb 13 15:15 initctl
drwxr-xr-x  2 root       root         80 Feb 13 15:15 initramfs
drwx--x--x  3 root       root         60 Feb 13 15:15 lightdm
-rw-r--r--  1 root       root          5 Feb 13 15:15 lightdm.pid
drwxrwxrwt  2 root       root         60 Feb 13 15:15 lock
drwxr-xr-x  2 root       root         80 Feb 13 16:30 mount
drwxr-xr-x  2 root       root        100 Feb 13 15:15 network
drwxr-xr-x  8 root       root        180 Feb 13 15:15 nosystemd
drwxrwxr-x 14 root       root        320 Feb 13 15:15 openrc
drwxr-xr-x  4 root       root         80 Feb 13 15:15 pm-utils
-rw-r--r--  1 root       root          4 Feb 13 15:15 rsyslogd.pid
-rw-r--r--  1 root       root          1 Feb 13 15:15 runlevel
drwxr-xr-x  2 root       root         60 Feb 13 15:15 sendsigs.omit.d
lrwxrwxrwx  1 root       root          8 Feb 13 15:15 shm -> /dev/shm
drwx--x--x  3 root       root         60 Feb 13 15:15 sudo
lrwxrwxrwx  1 root       root         14 Feb 13 16:27 systemd -> /run/nosystemd
drwxr-xr-x  8 root       root        220 Feb 13 16:29 udev
drwx------  2 root       root         40 Feb 13 15:15 udisks2
drwxr-xr-x  3 root       root         60 Feb 13 15:15 user
-rw-rw-r--  1 root       utmp       4224 Feb 13 15:15 utmp

test it:

dxrobertson@acer:~$ cat /run/systemd/users/1000
# This is private data. Do not parse.
NAME=dxrobertson
STATE=active
STOPPING=no
RUNTIME=/run/user/1000
DISPLAY=1
REALTIME=1550088940339646
MONOTONIC=25991508
SESSIONS=1
SEATS=seat0
ACTIVE_SESSIONS=1
ONLINE_SESSIONS=1
ACTIVE_SEATS=seat0
ONLINE_SEATS=seat0

I personally am not bothered by this use of /run/systemd.  Its just a directory name.  If it makes Devuan easier to maintain and less likely to cause potential problems, then thats fine.

#93 Re: Devuan » Is some part of systemd running in ascii 2 ? » 2019-02-13 16:00:06

I looked at elogind code, it seems the /run/systemd and subsequent directories are pretty ingrained in the code. 

This is probably one of the (quote from KatolaZ from https://dev1galaxy.org/viewtopic.php?id=1925) :

...only because they happen to provide a systemd unit file for
those systems where systemd is used.

#94 Re: Devuan » Is some part of systemd running in ascii 2 ? » 2019-02-13 11:54:41

I also have systemd files in /run.  I believe elogind may have something to do with it.  I am running all Beowulf, with LXQt 0.14 from unstable.

root@acer:~# cd /run
root@acer:/run# find systemd
systemd
systemd/inhibit
systemd/inhibit/1
systemd/inhibit/1.ref
systemd/cgroups-agent
systemd/inaccessible
systemd/inaccessible/blk
systemd/inaccessible/chr
systemd/inaccessible/sock
systemd/inaccessible/fifo
systemd/inaccessible/dir
systemd/inaccessible/reg
systemd/machines
systemd/sessions
systemd/sessions/1
systemd/sessions/1.ref
systemd/users
systemd/users/1000
systemd/seats
systemd/seats/seat0
root@acer:/run# 

I then removed /run/systemd.

Then went to a console via <CTRL><ALT>F2, and was surprised to find a series of messages displayed, and continuing to display:

[2299.263755 ] elogind-daemond[2150] failed to save user data /run/systemd/users/1000: no such file or directory

There are also similar messages for session, instead of user.

PID 2150 is elogind-daemon.

elogind version:

root@acer:~# apt list --installed elogind
Listing... Done
elogind/testing,now 239.3+20190131-1 amd64 [installed]

Another reference to run/systemd, unrelated, and since its a "not"; probably actually needed.  From syslog:

Feb 11 16:30:01 acer CRON[3837]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)

#95 Re: Other Issues » Beowulf - Policykit » 2019-02-11 16:50:12

I reinstalled qterminal and ran with it as default terminal in Preferences>Session Settings>Default Applications; after a reboot, no more problems, can run synaptic and gpartd from menu.  The TERM env value for qterminal is the same as it was for lxterminal; TERM=xterm-256color.

Now, I noticed there is no selection for lxterminal in the Preferences>Session Settings>Default Applications.  So I manually changed <home>.config/lxqt/session.conf to:

TERM=LXTerminal

Rebooted, and all is ok now with using lxterminal; can run synaptic/gpartd from menu.

I think atleast for me the problem was not having a valid entry for TERM= in the <home>.config/lxqt/session.conf file.

Note I am using lxqt-policykit,

#96 Re: Other Issues » Beowulf - Policykit » 2019-02-11 16:31:44

Geoff 42 wrote:

After a recent upgrade I have had some problems with some authentication. For example, selecting synaptic from the menu fails to run. I see in the thread about pkexec https://dev1galaxy.org/viewtopic.php?id=2667 that it is recommended to install  policykit-1-gnome. I have now done this and it has not caused any problems and I can run synaptic from the command line as synaptic-pkexec. I am still unable to run synaptic from the menu (using LXQt). Looking in /var/log/auth.log I can see that pkexec is complaining :-

The value for environment variable TERM contains suscipious content

In my window, $TERM is set to rxvt-unicode-256color. This doesn't look suspicious to me, but I am not pkexec! I wonder what it is picking up and what is wrong with it.
I have installed gparted and can run it from the command line but not from the menu, which gives the same error about TERM.

Geoff

Odd.  I am now having the very same problem, with synaptic, in LXQt.  Cant run from menu but can from terminal.  I just switched from using qterminal to using the old lxterminal.  Have the same error as you and same env value: TERM=xterm-256color.  I did not have this problem until I switched to lxterminal.  Will do some more research.

#97 Re: Hardware & System Configuration » [SOLVED] wlan0 interface not recognized by `ifconfig' nor `ip link' » 2019-02-09 21:25:43

Make sure libiw30 and wireless-tools are installed. 

I think you said you are using wicd?  I dont know if it controls the network like NetworkManager does, but if wicd has a service running, stop the service.

I can only give instructions on connecting to a wireless network with WEP, not WPA; using commandline. 

ifconfig wlan0 down
ifconfig wlan0 up
iwconfig

you should see a wlan0 entry

This will show acess points, if nothing shows then you still have problems

iwlist scan

<ESSID> is your wireless access point. 
<WEP KEY> is your wep key, if you don not use a wep key, leave off the "key" parameter.

iwconfig wlan0 mode managed essid <ESSID> key <WEP KEY>
dhclient -v wlan0
iwconfig

you should now see if you are connected to an access point

good luck!

#98 Re: Hardware & System Configuration » [SOLVED] wlan0 interface not recognized by `ifconfig' nor `ip link' » 2019-02-09 17:25:52

Ok, I've installed `firmware-etheros' and uncommented
`allow-hotplug eth0' and
`iface eth0 inet dhcp'
in `/etc/network/interfaces'.

It needs to BE COMMENTED OUT, or removed, /etc/network/interfaces should be:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

#99 Re: Hardware & System Configuration » [SOLVED] wlan0 interface not recognized by `ifconfig' nor `ip link' » 2019-02-09 11:55:33

The install may have also setup networking to default to ethernet, this happened to me.  This may be whats causing the boot delay on DHCP, as well as the wlan0 problems.

Check /etc/network/interfaces and remove/comment out these lines or similar if they exist:

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

The only interface that should be configured in this file is lo.

Also make sure interfaces.d is empty.

https://dev1galaxy.org/viewtopic.php?id=1688

#100 Re: Hardware & System Configuration » [SOLVED] wlan0 interface not recognized by `ifconfig' nor `ip link' » 2019-02-09 11:37:43

It looks like you have an Atheros chip.  Package firmware-atheros should provide the drivers.  Its in non-free so make sure thats included in your sources.list.

Board footer

Forum Software