Announcement

Collapse
No announcement yet.

Hardy Headaches

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hardy Headaches

    Could anyone help me through what I need to do to sort out a couple of issues I'm having since upgrading my Kubuntu 7:10 to Hardy Heron ?

    The first problem I came across was that Adept is no longer launching. Someone one the IRC Channel directed me to a historical issue which requires me to change a setting in /etc/hosts

    The advice was helpful but .... I can't get save file once amended. In fact, it appears that I can't get into administrator mode anywhere (or, at least, in the applications I've tried).

    Any guidance (the simpler the better) would be appreciated.

    Many thanks

    Scotsgait

    #2
    Re: Hardy Headaches

    Code:
    cat /etc/sudoers

    Comment


      #3
      Re: Hardy Headaches

      Thanks. I entered that in a terminal window and got the response:

      cat: /etc/sudoers: Permission denied

      Comment


        #4
        Re: Hardy Headaches

        could u walk me through what u did before. as in: tell me the commands you did to edit /etc/hosts and what you changed in it? and what happened when you tried to save?

        Comment


          #5
          Re: Hardy Headaches

          In the console, type:
          Code:
          sudo su
          You will be prompted for you password. If it is accepted, your prompt will change from a $ (user) to a # (root). If that does not work, reboot your system and choose to boot into Recovery Mode (single user), which will boot as root to the command line prompt.
          Windows no longer obstructs my view.
          Using Kubuntu Linux since March 23, 2007.
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            Re: Hardy Headaches

            My etc/hosts file reads:

            127.0.0.1 localhost
            127.0.1.1 dad-desktop.MSHOME

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


            I was told that the second line is wrong and should read

            127.0.1.1 dad-desktop



            If I edit the file and try to save it, I get a warning

            The document could not be saved, as it was not possible to write to file:///etc/hosts.
            Check that you have write access to this file or that enough disk space is available.


            I can't run any program using kdesu for some reason .

            Comment


              #7
              Re: Hardy Headaches

              Originally posted by Snowhog
              In the console, type:
              Code:
              sudo su
              You will be prompted for you password. If it is accepted, your prompt will change from a $ (user) to a # (root). If that does not work, reboot your system and choose to boot into Recovery Mode (single user), which will boot as root to the command line prompt.
              I've just tried the console command and got

              dad@dad-desktop:~$ sudo su
              sudo: unable to resolve host dad-deskto


              I'm not familiar with Recovery Mode. Can you explain a bit more, please ?

              Thanks

              Comment


                #8
                Re: Hardy Headaches

                Assuming you have Grub boot menu when you boot, it is the second one in the list, so just press your down arrow once and then press enter.
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #9
                  Re: Hardy Headaches

                  Originally posted by Snowhog
                  Assuming you have Grub boot menu when you boot, it is the second one in the list, so just press your down arrow once and then press enter.
                  It goes through a Grub process, but I don't have a menu !!

                  Comment


                    #10
                    Re: Hardy Headaches

                    That means that the hiddenmenu item in Grub isn't commented out. That's okay though. There is a default 'timeout' setting that delays for a few seconds the booting of the default entry. All you have to do after booting is to hit your escape key (this stops the timer) and then press the down arrow key just once and press enter.
                    Windows no longer obstructs my view.
                    Using Kubuntu Linux since March 23, 2007.
                    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                    Comment


                      #11
                      Re: Hardy Headaches

                      Originally posted by Snowhog
                      That means that the hiddenmenu item in Grub isn't commented out. That's okay though. There is a default 'timeout' setting that delays for a few seconds the booting of the default entry. All you have to do after booting is to hit your escape key (this stops the timer) and then press the down arrow key just once and press enter.
                      OK. I've done a reboot. I noticed something failed in the process (but I'll have to reboot again to find out ?)

                      It then came to a three option menu - Continue Reboot, Something about he X-Server and one other item which I can't remember.... >

                      Comment


                        #12
                        Re: Hardy Headaches

                        Originally posted by Scotsgait
                        Originally posted by Snowhog
                        That means that the hiddenmenu item in Grub isn't commented out. That's okay though. There is a default 'timeout' setting that delays for a few seconds the booting of the default entry. All you have to do after booting is to hit your escape key (this stops the timer) and then press the down arrow key just once and press enter.
                        OK. I've done a reboot. I noticed something failed in the process (but I'll have to reboot again to find out ?)

                        It then came to a three option menu - Continue Reboot, Something about he X-Server and one other item which I can't remember.... >
                        What failed was a mounting of something which I presume will be irrelevant.

                        The third entry was in the menu took me to a terminal prompt. I did the sudo su command again and still got the unable to resolve host dad-desktop message

                        Comment


                          #13
                          Re: Hardy Headaches

                          If you're at the terminal prompt, you (should) already be 'root.' Is the prompt a # sign?
                          Windows no longer obstructs my view.
                          Using Kubuntu Linux since March 23, 2007.
                          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                          Comment


                            #14
                            Re: Hardy Headaches

                            Originally posted by Snowhog
                            If you're at the terminal prompt, you (should) already be 'root.' Is the prompt a # sign?
                            Aha ! Yes, it was.

                            What should I do from there ?

                            Comment


                              #15
                              Re: Hardy Headaches

                              As 'root' you can edit the /boot/grub/menu.lst file.

                              From the prompt, type:
                              Code:
                              cd /boot/grub
                              vi menu.lst
                              This will open the file for editing.

                              Press your down arrow key until you are on the line that reads hiddenmenu This line is probably uncommented (has no # in front of it). If this is so, press the letter i (for insert mode) and press shift+3 to insert the # symbol. You should now have #hiddenmenu

                              Press escape (this puts you back into command mode)

                              To save the change and exit, press :wq (a colon, w, and q all together)

                              Type cd and then type:
                              Code:
                              shutdown -r now
                              to reboot. You should be presented with the Grub menu now. When you see it, press escape to stop the timer. You can then use your arrow keys to move up/down the list of kernel entries to boot from.
                              Windows no longer obstructs my view.
                              Using Kubuntu Linux since March 23, 2007.
                              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                              Comment

                              Working...
                              X