how to use runit? starter problems

  • This topic has 9 replies, 3 voices, and was last updated Jul 15-12:30 am by tlaloc77.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #60872
    Member
    algori

      Hello there are some kind of problems with antix runit

      first of all the hostname

      algori@dhcppc4:~
      $ hostname
      dhcppc4
      algori@dhcppc4:~
      $ cat /etc/hostname
      thmus
      algori@dhcppc4:~
      $ 
      

      second

      sometimes the system stop running windows, can’t open anything or just one window keeps working, I’ve to shutdown the system by button, or if I’m lucky the terminal window still works and I’m able to reboot,
      I guess I will beable to solve this problem by nowing the service use of runit better.

      could you give me some advise anyways?

      and the hostname problem is wierd, so I could need yor help!

      thank you very

      by the way the entry for

      /etc/hosts

      127.0.0.1 localhost
      127.0.0.1 thmus

      # The following lines are desirable for IPv6 capable hosts
      ::1 localhost ip6-localhost ip6-loopback
      fe00::0 ip6-localnet
      ff00::0 ip6-mcastprefix
      ff02::1 ip6-allnodes
      ff02::2 ip6-allrouters

      # BEGIN (below) – IPs added by antiX Advert Blocker #
      ……

      kind regards

      #60877
      Member
      Xecure
        Helpful
        Up
        0
        ::

        first of all the hostname

        This similar problem happens rarely, but has been reported before (we are not sure why this happens), but it usually is “antix1” and not “thmus”.

        Edit /etc/hostname and /etc/hosts as root and replace “thmus” with “dhcppc4”. This should solve all problems (including problem with slow opening windows and launching sudo programs).

        If you still have problems with

        sometimes the system stop running windows, can’t open anything or just one window keeps working, I’ve to shutdown the system by button, or if I’m lucky the terminal window still works and I’m able to reboot,

        Report back here and we will try to troubleshoot it.

        Regards.

        antiX Live system enthusiast.
        General Live Boot Parameters for antiX.

        #61076
        Member
        algori
          Helpful
          Up
          0
          ::

          Hello thank you for responding.

          I obviously dind’t describe the problem well.

          the hostname I want to have is thmus!
          I post it already as code, but

          if I cat /etc/hostname it is mentioned as thmus
          if I run hostname it says dhcppc4

          also in /etc/hosts
          it’s thmus

          here is some more weird about this,
          but maybe it’s also important to mention, my laptop isn’t able to shut down, if I try, it seem to shut everything down, but instead my laptop reboot. shutdown and instant goes up again. I got this Problem for a while, even before I started to do the following, wich will proceed something to the host issue.

          to get used to some init systems, grub, and other package manager, and to get a general picture of some differences between distros, I started to install some as multiboot.

          right now I’m on

          antix 19.4 runit, debian
          artix open rc, pacman (maybe adding some tools for using the aur database, but not right now)
          and void, xbps

          first install was antix
          second artix
          third void

          while I install void startup of artix kinda crash, not even the bios boot mentioned its existence anymore, so I reinstall artix.

          and here comes the weird thing

          as I try to login after the reinstall, on the top of the loginscreen it is “thmus”,
          enter, nothing happens, seem to crash, reboot by button, kind of a shutdownscreen mentioned:

          broadcast message root@dhcppc0

          new login, loginscreen now on the top “dhcppc0”
          first try by password after press enter nothing happens, but a loginscreen move, second try I’m able to enter artix, everything seem to work fine, but I’m also algori@dhcppc0

          since than, If I go back to antix,

          here its the same issue like before, but the host now change to dhcppc0!

          so I guess it’s something messing with these broadcast thing,
          however even if I make all the changes

          /etc/hostname
          /etc/hosts

          nothing changes its still

          dpcppc0

          if I run hostname

          and also the terminal says

          algori@dhcppc0

          I really want to change that.
          thank you for your support!

          • This reply was modified 1 year, 11 months ago by algori.
          #61079
          Member
          Xecure
            Helpful
            Up
            0
            ::

            From terminal (Control+Alt+F1), log in as root and run:
            sudo hostname thmus

            Then reboot with
            sudo reboot

            antiX Live system enthusiast.
            General Live Boot Parameters for antiX.

            #61081
            Member
            algori
              Helpful
              Up
              0
              ::

              From terminal (Control+Alt+F1), log in as root and run:
              sudo hostname thmus

              Then reboot with
              sudo reboot

              yes I already tried that, but it changes the hostname just untill I reboot,
              after reboot it is dhcppc0 again.

              of curse I googled the issue before an tried everything I could found before I started this thread.

              and if I run who there is no entry either

              
              algori@dhcppc0:~
              $ who -w
              algori@dhcppc0:~
              $ who
              algori@dhcppc0:~
              $ who -l
              LOGIN    tty2         2021-06-06 15:54              2923 id=2
              LOGIN    tty3         2021-06-06 15:54              2926 id=3
              LOGIN    tty6         2021-06-06 15:54              2927 id=6
              LOGIN    tty4         2021-06-06 15:54              2925 id=4
              LOGIN    tty5         2021-06-06 15:54              2924 id=5
              LOGIN    tty1         2021-06-06 15:54              2922 id=1
              algori@dhcppc0:~
              $ who -m
              algori@dhcppc0:~
              $ who -w
              algori@dhcppc0:~
              $ who -q
              
              # Benutzer=0
              algori@dhcppc0:~
              $ who -u
              algori@dhcppc0:~
              $ who -T
              algori@dhcppc0:~
              $ 
              

              best regards
              algori

              • This reply was modified 1 year, 11 months ago by algori.
              • This reply was modified 1 year, 11 months ago by algori.
              • This reply was modified 1 year, 11 months ago by algori.
              #61086
              Member
              Xecure
                Helpful
                Up
                0
                ::

                See if using the hostname.sh service to start at boot-time helps at all.
                Edit /etc/rc.local and add before exit 0
                /etc/init.d/hostname.sh start

                If I am correct, this should be run by one of the services, but not sure why it isn’t being started on your system. I have an 19.4 runit installed on a VM and tested changing /etc/hostname and /etc/hosts and then sudo hostname new-name and rebooted. The hostname stays there OK.

                • This reply was modified 1 year, 11 months ago by Xecure. Reason: Fixed typo

                antiX Live system enthusiast.
                General Live Boot Parameters for antiX.

                #61087
                Member
                Xecure
                  Helpful
                  Up
                  0
                  ::

                  The who command pulls its data from /var/run/utmp, which contains information about users currently logged in via services such as telnet and ssh.
                  I think it doesn’t show on users logged in with the display manager.

                  antiX Live system enthusiast.
                  General Live Boot Parameters for antiX.

                  #61089
                  Member
                  algori
                    Helpful
                    Up
                    0
                    ::

                    See if using the hostname.sh service to start at boot-time helps at all.
                    Edit hostname and add before exit 0
                    /etc/init.d/hostname.sh start

                    If I am correct, this should be run by one of the services, but not sure why it isn’t being started on your system. I have an 19.4 runit installed on a VM and tested changing /etc/hostname and /etc/hosts and then sudo hostname new-name and rebooted. The hostname stays there OK.

                    I’m also not sure, what exactly the problem is. and why, anf where to look at or up, to get more helpful information for.

                    and I don’t get what to do exactly, if I run

                    /etc/init.d/hostname.sh start
                    then yes it changes again

                    
                    algori@dhcppc0:~
                    $ sudo /etc/init.d/hostname.sh start 
                    algori@dhcppc0:~
                    $ hostname
                    thmus
                    algori@dhcppc0:~
                    $ cat /etc/hostname
                    thmus
                    

                    but if I reboot, I’m back to how it was before.

                    the second part with adding exit 0 before, I don’t exactly get,
                    do you suggest I should change something in the file /etc/init.d/hostname.sh:

                    PATH=/sbin:/bin
                    
                    . /lib/init/vars.sh
                    . /lib/lsb/init-functions
                    
                    do_start () {
                            [ -f /etc/hostname ] || return
                            HOSTNAME="$(cat /etc/hostname)"
                    
                            [ "$VERBOSE" != no ] && log_action_begin_msg "Setting hostname to '$HOSTNAME'"
                            hostname "$HOSTNAME"
                            ES=$?
                            [ "$VERBOSE" != no ] && log_action_end_msg $ES
                            exit $ES
                    }
                    
                    case "$1" in
                      start|"")
                            do_start
                            ;;
                      restart|reload|force-reload)
                            echo "Error: argument '$1' not supported" >&2
                            exit 3
                            ;;
                     stop)
                            # No-op
                            ;;
                      status)
                            exit 0
                            ;;
                      *)
                            echo "Usage: hostname.sh [start|stop]" >&2
                            exit 3
                            ;;
                    esac
                    
                    :
                    

                    I’m sorry, I know I have to learn more and a lot about all this, but I have to start somewhere. If you could advise me some to read, I’ll do!
                    I’m able to understand for sure, but I have to know where to look at.

                    maybe there is something wrong with the efi boot loader, can I reinstall it perhaps?

                    best regards
                    algori

                    • This reply was modified 1 year, 11 months ago by algori.
                    #61092
                    Member
                    Xecure
                      Helpful
                      Up
                      0
                      ::

                      Sorry, I didn’t write properly the path to the file
                      Edit /etc/rc.local and add the command before exit 0

                      antiX Live system enthusiast.
                      General Live Boot Parameters for antiX.

                      #63068
                      Member
                      tlaloc77
                        Helpful
                        Up
                        0
                        ::


                        and if I run who there is no entry either

                        
                        algori@dhcppc0:~
                        $ who -w
                        algori@dhcppc0:~
                        $ who
                        algori@dhcppc0:~
                        $ who -l
                        LOGIN    tty2         2021-06-06 15:54              2923 id=2
                        LOGIN    tty3         2021-06-06 15:54              2926 id=3
                        LOGIN    tty6         2021-06-06 15:54              2927 id=6
                        LOGIN    tty4         2021-06-06 15:54              2925 id=4
                        LOGIN    tty5         2021-06-06 15:54              2924 id=5
                        LOGIN    tty1         2021-06-06 15:54              2922 id=1
                        algori@dhcppc0:~
                        $ who -m
                        algori@dhcppc0:~
                        $ who -w
                        algori@dhcppc0:~
                        $ who -q
                        
                        # Benutzer=0
                        algori@dhcppc0:~
                        $ who -u
                        algori@dhcppc0:~
                        $ who -T
                        algori@dhcppc0:~
                        $ 

                        Ah.
                        I recently noticed the same on antiX 19.2 and suspected some incompatibility with runit. 'lslogins' fails, too. And 'lastlog' claims I was never logged in, despite being logged in now (obviously).

                        So, what about it? Is there a way around these failures?

                        • This reply was modified 1 year, 9 months ago by tlaloc77.

                        My inxi -zv7, inxi -Fxs and inxi -r are here: https://www.antixforum.com/forums/topic/a-proper-hellp/#post-2981

                      Viewing 10 posts - 1 through 10 (of 10 total)
                      • You must be logged in to reply to this topic.