Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to run pkg upgrade from Diagnostics → Command Prompt

    Scheduled Pinned Locked Moved General pfSense Questions
    31 Posts 6 Posters 4.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      SwissSteph @Gertjan
      last edited by SwissSteph

      @Gertjan
      I'm bouncing back on your answer, because when I connect in SSH (not with the original user "admin" but mine which also has admin rights) I don't have the menu that comes back automatically, I only have this (in my Windows system)

      78bc1b4d-4db2-47ad-8b88-2222dde7f423-image.png

      Any idea? or how to launch it manually when I'm connected via SSH?

      Thanks for your help

      I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
      ... And now I'm living with a Netgate 8200
      ... And sorry for my bad English...

      GertjanG 1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by stephenw10

        You can run /etc/rc.initial to bring up the menu. Though some options there require the admin/root user.

        S 2 Replies Last reply Reply Quote 0
        • S
          SwissSteph @stephenw10
          last edited by

          @stephenw10
          Thanks for the quick reply :-) ... it actually works for me.

          I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
          ... And now I'm living with a Netgate 8200
          ... And sorry for my bad English...

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @SwissSteph
            last edited by

            @SwissSteph said in How to run pkg upgrade from Diagnostics → Command Prompt:

            Any idea?

            Windows has a ssh client ? [ I even don't want to know ^^ ]

            Yeah, go here.
            Don't worry, the site look like the something from another centry, but it host worlds most important admn on planet earth.
            Putty.
            It's a the best SSH client (IMHO of course). Some extra tools come with it.

            cd4709b1-5270-4a44-aee5-a5fe5d7ba2b4-image.png

            Run it, enter the IP of pfSense, port 22 (SSH) and save that as a favourite.
            Then Connect.
            The first time it will ask if you trust the device (your pfSense) : accept.
            Done : connected.
            Login with "root" (!) don't hassle with other created users or so, pfSense is a router firewall, not a multi user devices server type thing.
            The password is the GUI password.

            Later on, you'll ditch the user/password login. Real ;) admins use :

            1ee0e02e-fb8b-4372-8a43-6ce9ff1c986e-image.png

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            D johnpozJ 2 Replies Last reply Reply Quote 1
            • D
              DominikHoffmann @Gertjan
              last edited by

              @Gertjan said in How to run pkg upgrade from Diagnostics → Command Prompt:

              It's a the best SSH client (IMHO of course). Some extra tools come with it.

              I do like macOS Terminal!

              😁

              NollipfSenseN 1 Reply Last reply Reply Quote 0
              • NollipfSenseN
                NollipfSense @DominikHoffmann
                last edited by

                @DominikHoffmann said in How to run pkg upgrade from Diagnostics → Command Prompt:

                I do like macOS Terminal!

                Me also, as well.

                pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                GertjanG 1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @NollipfSense
                  last edited by

                  @NollipfSense @DominikHoffmann

                  d30f56a5-da51-4f42-bcae-24f0470b57b5-image.png

                  seems very 'MSoft' to me.

                  Really, guys, I agree, but can I advise @DominikHoffmann to create a Mac clone to get access to its build in ssh 😊

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    SwissSteph @Gertjan
                    last edited by

                    @Gertjan
                    yes, SSH command in a terminal session under Windows

                    I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
                    ... And now I'm living with a Netgate 8200
                    ... And sorry for my bad English...

                    1 Reply Last reply Reply Quote 0
                    • S
                      SwissSteph @stephenw10
                      last edited by

                      @stephenw10

                      I come back to your answer and my answer where I said that this command worked (which is still the case).

                      But why doesn't this menu appear by itself? I set the original "user" "admin" to disabled and created another "admin" with another name, is that why the menu doesn't appear by itself?

                      I've also installed the "sudo" package, if this information helps to solve my problem.

                      I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
                      ... And now I'm living with a Netgate 8200
                      ... And sorry for my bad English...

                      GertjanG 1 Reply Last reply Reply Quote 0
                      • GertjanG
                        Gertjan @SwissSteph
                        last edited by

                        @SwissSteph said in How to run pkg upgrade from Diagnostics → Command Prompt:

                        But why doesn't this menu appear by itself? I set the original "user" "admin" to disabled and created another "admin" with another name, is that why the menu doesn't appear by itself?

                        =>

                        @stephenw10 said in How to run pkg upgrade from Diagnostics → Command Prompt:

                        You can run /etc/rc.initial to bring up the menu. Though some options there require the admin/root user.

                        See also : Admin Access.

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          The admin user is set to use the console menu as it's shell directly. For other users you need to add it to the tcsh config. Which can now easily be done because of: https://redmine.pfsense.org/issues/14746
                          For example when logged in as that user run: echo /etc/rc.initial >> ~/.tcshrc.local
                          Then logout and back in.

                          Steve

                          S 2 Replies Last reply Reply Quote 0
                          • S
                            SwissSteph @stephenw10
                            last edited by

                            @stephenw10

                            Steve,

                            Thanks for your reply, it works perfectly!!!

                            Have a nice day 👍

                            I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
                            ... And now I'm living with a Netgate 8200
                            ... And sorry for my bad English...

                            1 Reply Last reply Reply Quote 1
                            • S
                              SwissSteph @stephenw10
                              last edited by SwissSteph

                              @stephenw10

                              No longer works in 24.03_1, this command "echo /etc/rc.initial >> ~/.tcshrc.local" had worked perfectly on 23.09.1

                              Should I run another command?

                              and every time I connect to SSH I get this message:
                              82b48d67-43e1-406c-936f-7f1c6bf28a98-image.png

                              I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
                              ... And now I'm living with a Netgate 8200
                              ... And sorry for my bad English...

                              1 Reply Last reply Reply Quote 0
                              • stephenw10S
                                stephenw10 Netgate Administrator
                                last edited by

                                You mean in order to show the console menu for a non-admin user?

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  SwissSteph @stephenw10
                                  last edited by SwissSteph

                                  @stephenw10

                                  Yes ... let's say I'm also an adminnistrator

                                  I only have one user (me) and I'm the administrator. Your command worked perfectly the other day and now I don't have the menu and the command doesn't work anymore

                                  I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
                                  ... And now I'm living with a Netgate 8200
                                  ... And sorry for my bad English...

                                  1 Reply Last reply Reply Quote 0
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by stephenw10

                                    Ah that's interesting. I assume you have changed the admin password from the default?

                                    And you see that after having run that command?

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      SwissSteph @stephenw10
                                      last edited by SwissSteph

                                      @stephenw10

                                      My "user" and "password" are the same as the original ones, with the addition of "before" and "after" letters and numbers.

                                      EDIT

                                      I confirm, I created another user with no letters like the original user and the original password and I no longer have the message shown here.

                                      My problem is therefore with the name of my "administrator" user and its "password".

                                      I'll have to change all that, sorry for my messages ...

                                      I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
                                      ... And now I'm living with a Netgate 8200
                                      ... And sorry for my bad English...

                                      1 Reply Last reply Reply Quote 0
                                      • johnpozJ
                                        johnpoz LAYER 8 Global Moderator @Gertjan
                                        last edited by

                                        @Gertjan said in How to run pkg upgrade from Diagnostics → Command Prompt:

                                        Putty.
                                        It's a the best SSH client (IMHO of course). Some extra tools come with it.

                                        Maybe if you don't have access to securecrt, which is not free. Use to be a big putty guy, and it is pretty solid.. But when your on shell to remote devices all day.. securecrt is really nice.

                                        I haven't played with windows "native if you will" ssh client - it was always behind from when first started playing with it. I do like options, so I always install the openssh client from here.

                                        https://www.mls-software.com/opensshd.html

                                        They are normally pretty current on the version.

                                        C:\>SSH -V
                                        OpenSSH_9.7p1, OpenSSL 3.0.13 30 Jan 2024
                                        

                                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                                        If you get confused: Listen to the Music Play
                                        Please don't Chat/PM me for help, unless mod related
                                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                                        1 Reply Last reply Reply Quote 0
                                        • stephenw10S
                                          stephenw10 Netgate Administrator
                                          last edited by

                                          Yeah it's an edge case triggering the enforced password change. I see that here. Digging....

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            SwissSteph @stephenw10
                                            last edited by

                                            @stephenw10

                                            I've created a user and password that have nothing to do with the original ones -> OK, I can connect via SSH without any problems or error messages.

                                            Once connected, if I run the command "echo /etc/rc.initial >> ~/.tcshrc.local" -> OK

                                            I reconnect and get this error message again:

                                            3a676f18-f804-418b-9a75-c024341f9542-image.png

                                            I think I may have found a "bug" !?

                                            I started with two "no-name" pfsense, one for use at home and the other as a backup in case of problems (which can happen when you're new to pfsense).
                                            ... And now I'm living with a Netgate 8200
                                            ... And sorry for my bad English...

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.