Announcement

Collapse
No announcement yet.

alter Konqueror front page to display mnt as well as media?

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

    alter Konqueror front page to display mnt as well as media?

    Hi all,

    I've altered my fstab to mount my multiple hard drives under mnt, instead of media. This seems to be the way Linux was designed . . . Anyway, whenever I launch konqueror, I always have to go up then drill down again to get to my mnt directory.

    Is there any way to add mnt (as well as a few other common destinations...) to the front page of konqueror?

    Thanks,
    Greg Conquest

    #2
    Re: alter Konqueror front page to display mnt as well as media?

    Originally posted by gregconquest
    Hi all,

    I've altered my fstab mount my multiple hard drives under mnt, instead of media. This seems to be the way Linux was designed . . . Anyway, whenever I launch konqueror, I always have to go up then drill down again to get to my mnt directory.

    Is there any way to add mnt (as well as a few other common destinations...) to the front page of konqueror?

    Thanks,
    Greg Conquest
    what do you have against /media?

    Comment


      #3
      Re: alter Konqueror front page to display mnt as well as media?

      It is my understanding that "media" covers removable media and pluggable and unpluggable drives, not the drives that are always there -- unchanging.

      Comment


        #4
        Re: alter Konqueror front page to display mnt as well as media?

        Originally posted by gregconquest
        It is my understanding that "media" covers removable media and pluggable and unpluggable drives, not the drives that are always there -- unchanging.
        man:/hier
        ...
        /media
        This directory contains mount points for removeable media such as CD and DVD disks or USB sticks

        /mnt
        This directory contains mount points for temporarily mounted filesystems
        ...


        you are correct, however does it really matter? nothing is going to break, if harddrives and partitions are also mounted in /media

        Comment


          #5
          Re: alter Konqueror front page to display mnt as well as media?

          Which front page are you talking about?

          Also, KDE has a special URL for any mount point that you create (as long as they are mounted or are in fstab). Type media:/ in Konqueror.
          Jucato's Data Core

          Comment


            #6
            Re: alter Konqueror front page to display mnt as well as media?

            Originally posted by Jucato
            Which front page are you talking about?
            about:konqueror

            Comment


              #7
              Re: alter Konqueror front page to display mnt as well as media?

              If you want a "home page" that contains numerous links to certain locations I think you would have to write your own html page and then point the browser's home page url (which I will describe below) to that html file.

              Another option, which isn't exactly what you want but could meet your needs, would be to create a desktop link to
              konqueror media:/
              (this isn't the same as /media)
              as this link shows:

              http://kubuntuforums.net/forums/inde...opic=3087272.0

              Another option, if you are willing to only point to /mnt as a home option would be konqueror's settings menu -> configure konqueror -> behavior tab -> home URL line and set that to /mnt
              Then, upon loading konqueror you could simply click the "home location" button along the address bar to get there. You should also be able to set it to media:/ , rather than just the /mnt folder.

              Comment


                #8
                Re: alter Konqueror front page to display mnt as well as media?

                Is there any way to add mnt (as well as a few other common destinations...) to the front page of konqueror?
                Yes - edit /usr/share/apps/konqueror/about/launch.html
                Backup !


                Quick and dirty example:

                Open launch.html in text editor and search
                <!--search bar splitter-->
                The First line has "Home Folder" and "Storage Media" -> Let's add "My Disks"

                Simply copy:
                <td valign="bottom">
                <a href="media:/"><img src="%1" height="%1" width="%1" /></a>
                </td>
                <td valign="bottom">
                <a href="media:/">%1</a><br><span id="subtext"><nobr>%1</span>
                </td>
                So now you have:
                <td valign="bottom">
                <a href="media:/"><img src="%1" height="%1" width="%1" /></a>
                </td>
                <td valign="bottom">
                <a href="media:/">%1</a><br><span id="subtext"><nobr>%1</span>
                </td>

                <td valign="bottom">
                <a href="media:/"><img src="%1" height="%1" width="%1" /></a>
                </td>
                <td valign="bottom">
                <a href="media:/">%1</a><br><span id="subtext"><nobr>%1</span>
                </td>
                And change:
                "media:/" to "/mnt"

                Add icon (using /usr/share/icons/crystalsvg/32x32/apps/tux.png)

                and finally add text "My Disks"

                So the first line is (<tr> ...</tr>):
                <!--search bar splitter-->
                <tr>
                <td valign="bottom">
                <a href="%1"><img src="%1" height="%1" width="%1" /></a>
                </td>
                <td valign="bottom">
                <a href="%1">%1</a><br><span id="subtext"><nobr>%1</span>
                </td>
                <td valign="bottom">
                <a href="media:/"><img src="%1" height="%1" width="%1" /></a>
                </td>
                <td valign="bottom">
                <a href="media:/">%1</a><br><span id="subtext"><nobr>%1</span>
                </td>
                <td valign="bottom">
                <a href="/mnt"><img src="/usr/share/icons/crystalsvg/32x32/apps/tux.png" height="32" width="32" /></a>
                </td>
                <td valign="bottom">
                <a href="/mnt">/mnt</a><br><span id="subtext"><nobr>My Disks</span>
                </td>
                </tr>

                Now konqueror starts:

                Larger, Konqueror launch screen (1350x867 - 154k)


                Note
                I have Gutsy (that's why there is Strigi - Search for local files

                In repositories: quanta - web development environment for KDE (But you can use kate).
                Before you edit, BACKUP !

                Why there are dead links ?
                1. Thread: Please explain how to access old kubuntu forum posts
                2. Thread: Lost Information

                Comment


                  #9
                  Re: alter Konqueror front page to display mnt as well as media?

                  Rog -- that's genius!

                  You should paste it over into the "Documentation>How To" page of this site, so we can point folks to it if they're so inclined.

                  Thanks!

                  Comment


                    #10
                    Re: alter Konqueror front page to display mnt as well as media?

                    Note
                    I have Gutsy (that's why there is Strigi - Search for local files
                    I'm looking at you pic and see the search function. I too had this function before I upgraded to Gutsy but now it's gone. I also noticed the link for Kubuntu Documentation no longer works. I occasionally used both and miss them. How do I get them back?

                    eriefisher
                    ~$sudo make me a sandwich

                    Comment


                      #11
                      Re: alter Konqueror front page to display mnt as well as media?

                      Great. Thanks everyone, especially Rog131. This is working great. Now I have this:
                      Code:
                             <!-- begin Storage Media -->
                      	   <td valign="bottom">
                      		<a href="/media"><img src="%1" height="%1" width="%1" /></a>
                      		</td>
                      	   <td valign="bottom">
                      		 <a href="/media">%1</a><br><span id="subtext"><nobr>%1</span>
                      		</td>
                             <!-- end Storage Media -->
                             <!-- begin mnt -->
                      	   <td valign="bottom">
                      		<a href="/mnt"><img src="/usr/share/icons/crystalsvg/48x48/devices/hdd_unmount.png" height="48" width="48" /></a>
                      		</td>
                      	   <td valign="bottom">
                      		 <a href="/mnt">Internal Hard Drives</a><br><span id="subtext"><nobr>/mnt</span>
                      		</td>
                             <!-- end mnt -->
                             <!-- also add Launch Konqueror as Root below here -->
                      I changed the wording and and used a 48x48 size icon of a hard drive for mnt. The other icons appear to be 48x48.

                      I have two questions:
                      1) How do I edit the existing entries? I want to alter the icon and text for media as well, but just replacing the original icon
                      Code:
                      <img src="%1" height="%1" width="%1" />
                      with the CD icon
                      Code:
                      <img src="/usr/share/icons/crystalsvg/48x48/devices/cdrom_unmount.png" height="48" width="48" />
                      breaks the rendering of rest of the page.
                      2) Can I add a "Launch Konqueror As Root" icon from here as well?

                      Thanks,
                      Greg Conquest

                      keyphrases: customizing konqueror, customize konqueror, edit, editting, start page
                      (note: there is very little on this topic on the net.)

                      Comment


                        #12
                        Re: alter Konqueror front page to display mnt as well as media?

                        Kubuntu must be pretty fantastic if users can spend time on such 'problems' :P

                        When i open konqueror it shows / with all directories directly available in the sidebar.
                        What more is needed? Has this changed in Gutsy?

                        I also preferred to have things in /mnt but as a rule I don't mess with things that are
                        set up and work.

                        Comment


                          #13
                          Re: alter Konqueror front page to display mnt as well as media?

                          OK. This is what I have now:

                          Code:
                          <table border="0" align="center">
                          <!--search bar argument replacement is performed between the "search bar splitter" lines-->
                          <!--search bar splitter-->
                              <tr>
                              <form action="about:konqueror">
                              <td colspan="3" style="text-align:right;"><label id="searchbarlabel" for="searchbarinput">%2: </label></td>
                              <td colspan="3"><input id="searchbarinput" name="%3" type="text"></td>
                              </form>
                              </tr>
                              <tr>
                              <td colspan="6"><div style="width:%1px; height:%1px;"/></td>
                              </tr>
                          
                          <!--search bar splitter-->
                          	
                          	<tr><!-- 1st row -->
                          		<td valign="bottom"><!-- Home Folder (A1) -->
                          			<a href="%1"><img src="%1" height="%1" width="%1" /></a>
                          		</td>
                          		<td valign="bottom"><!-- Home Folder (A2) -->
                          			<a href="%1">%1</a><br><span id="subtext"><nobr>%1</span>
                          		</td>
                          		<td valign="bottom"><!-- Storage Media (A3) -->
                          			<a href="/media"><img src="%1" height="%1" width="%1" /></a>
                          		</td>
                          		<td valign="bottom"><!-- Storage Media (A4) -->
                          			<a href="/media">%1</a><br><span id="subtext"><nobr>%1</span>
                          		</td>
                          		<td valign="bottom"><!-- mnt (A5) -->
                          			<a href="/mnt"><img src="/usr/share/icons/crystalsvg/48x48/devices/hdd_unmount.png" height="48" width="48" /></a>
                          		</td>
                          		<td valign="bottom"><!-- mnt (A6) -->
                          			<a href="/mnt">Internal Hard Drives</a><br><span id="subtext"><nobr>/mnt</span>
                          		</td>
                          	</tr>
                          	<tr><!-- 2nd row -->
                          		<td><!-- Network Folders (B1) -->
                          			<a href="remote:/"><img src="%1" height="%1" width="%1" /></a>
                          		</td>
                          		<td valign="bottom"><!-- Network Folders (B2) -->
                          			<a href="remote:/">%1</a><br><span id="subtext"><nobr>%1</span>
                          		</td>
                          		<td><!-- Trash (B3) -->
                          			<a href="trash:/"><img src="%1" height="%1" width="%1" /></a>
                          		</td>
                          		<td valign="bottom"><!-- Trash (B4) -->
                          			<a href="trash:/">%1</a><br><span id="subtext"><nobr>%1</span>
                          		</td>
                          		<td valign="bottom"><!-- removable media (B5) -->
                          			<a href="/media"><img src="/usr/share/icons/crystalsvg/48x48/devices/cdrom_unmount.png" height="48" width="48" /></a>
                          		</td>
                          		<td valign="bottom"><!-- removable media (B6) -->
                          			<a href="/media">Removable Media</a><br><span id="subtext"><nobr>/media</span>
                          		</td>
                          	</tr>
                          	<!-- also add Launch Konqueror as Root -->
                          	<tr><!-- 3rd row -->
                          		<td><!-- Applications (C1) -->
                          			<a href="applications:/"><img src="%1" height="%1" width="%1" /></a>
                          		</td>
                          		<td valign="bottom"><!-- Applications (C2) -->
                          			<a href="applications:/">%1</a><br><span id="subtext"><nobr>%1</span>
                          		</td>
                          		<td><!-- About Kubuntu (C3) -->
                          			<a href="help:/kubuntu/about-kubuntu/index.html"><img src="%1" height="%1" width="%1" /></a>
                          		</td>
                          		<td valign="bottom"><!-- About Kubuntu (C4) -->
                          			<a href="help:/kubuntu/about-kubuntu/index.html">%1</a><br><span id="subtext"><nobr>%1</span>
                          		</td>
                          		<td valign="bottom"><!-- Launch Konqueror As Root (C5) -->
                          			<a href="kdesu konqueror"><img src="/usr/share/icons/kubuntu/48x48/konqueror.png" height="48" width="48" /></a>
                          		</td>
                          		<td valign="bottom"><!-- Launch Konqueror As Root (C6) -->
                          			<a href="kdesu konqueror">Launch Konqueror As Root</a><br><span id="subtext"><nobr>kdesu konqueror</span>
                          		</td>
                          	</tr>
                          </table><!-- End Navigation Table -->
                          It is looking good except:
                          1) I have not yet been able to trace back the css or whatever is being read from for the "%1" calls in the html. Therefore, I can only add cells to the table; I cannot alter the contents of cells. Can anyone help me out here? I can live with it the way it is now, but hey, I am supposed to conquer the desktop, right?
                          2) My konqueror icon is really a 24x24 icon resized in gimp to 48x48 (Launch Konqueror As Root (C5) in the above code block). Does anyone have a suggestion on an alternative 48x48 icon suitable for launching "konqueror as root"?
                          3) The launch command . . . I just entered "kdesu konqueror" in the html, but that is interpreted as a call to a file or folder. (Launch Konqueror As Root (C6) in the above code block) How do I enter a launch command in konqueror's html?

                          Thanks for any help.
                          Greg Conquest

                          Comment


                            #14
                            Re: alter Konqueror front page to display mnt as well as media?

                            I cannot alter the contents of cells.
                            Quick and dirty trick: consume those %1

                            Code:
                            <!--search bar splitter-->
                            	 <tr>
                            	   <td valign="bottom">
                            		<a href="%1"><img src="%1" height="%1" width="%1" /></a>
                            		</td>
                            	   <td valign="bottom">
                            		 <a href="%1">%1</a><br><span id="subtext"><nobr>%1</span>
                            		</td>
                            
                            	   <td valign="bottom">
                            		<a href="media:/"><img src="/usr/share/icons/crystalsvg/32x32/devices/cdrom_unmount.png" height="32" width="32" /></a>
                            		</td> 
                            		<!--"%1"/> -->
                            		<!--"%1"/> -->
                            		<!--"%1"/> -->
                            	   <td valign="bottom">
                            		 <a href="media:/">CD/DVD</a><br><span id="subtext"><nobr>%1</span>
                            		</td> 
                            		<!-- %1/> -->
                            
                            	   <td valign="bottom">
                            		<a href="/mnt"><img src="/usr/share/icons/crystalsvg/32x32/devices/hdd_unmount.png" height="32" width="32" /></a>
                            		</td>
                            	   <td valign="bottom">
                            		 <a href="/mnt">Hard Disks</a><br><span id="subtext"><nobr>Storage Media (/mnt)</span>
                            		</td>
                            
                            	   </tr>
                            Note
                            It is same if you use:
                            <!--"%1"/> --> or <!-- %1/> -->

                            3) The launch command . . . I just entered "kdesu konqueror" in the html, but that is interpreted as a call to a file or folder. (Launch Konqueror As Root (C6) in the above code block) How do I enter a launch command in konqueror's html?
                            This is one way:

                            Make new Konqueror start in the K menu > Internet

                            Name: SuperKonqueror
                            Command: kdesudo konqueror
                            Note
                            #1 You can't copy existing konqueror (you need clean new konqueror start item)
                            #2 kdesudo vs kdesu -> Topic: Tribe 5 and konqueror.
                            http://kubuntuforums.net/forums/inde...opic=3086411.0



                            I have:
                            Code:
                            	   <td valign="bottom">
                            		<a href="applications:/Internet/SuperKonqueror"><img src="/usr/share/icons/default.kde/32x32/actions/messagebox_warning.png" height="32" width="32" /></a>
                            		</td>
                            	   <td valign="bottom">
                            		 <a href="applications:/Internet/SuperKonqueror">SuperKonqueror</a><br><span id="subtext"><nobr>Kdesudo Konqueror</span>
                            		</td>
                            It seems to work:

                            and



                            Larger konqueror:
                            http://server7.pictiger.com/img/7371.../konqueror.png
                            Before you edit, BACKUP !

                            Why there are dead links ?
                            1. Thread: Please explain how to access old kubuntu forum posts
                            2. Thread: Lost Information

                            Comment


                              #15
                              Re: alter Konqueror front page to display mnt as well as media?

                              I'm looking at you pic and see the search function. I too had this function before I upgraded to Gutsy but now it's gone. I also noticed the link for Kubuntu Documentation no longer works. I occasionally used both and miss them. How do I get them back?

                              eriefisher
                              Hmm - i have clean new Gutsy installation.

                              Have you tried to remove konqueror (and checked that usr/share/apps/konqueror/ is empty) and reinstall it ?
                              Before you edit, BACKUP !

                              Why there are dead links ?
                              1. Thread: Please explain how to access old kubuntu forum posts
                              2. Thread: Lost Information

                              Comment

                              Working...
                              X