linux - is there a remote version of KDirStat

08
2014-07
  • mb14

    I love KDirStat (or equivalent) but I would like to be able to run it on remote host (which doesn't have X11 installed). Is there anything avaible (and free) which will allow me to get a treemap of the disk usage remotely (Ideally on a webbrowser ) ?

  • Answers
  • terdon

    I found a nice script here that can do what you need. There was a bug in the original script which I corrected, you can download my corrected version from here. So, log on to the remote server and run these commands:

    1. Download the script

      curl -o duHTMLtree 'http://pastebin.com/download.php?i=PQqvgHwz'
      
    2. Make it executable

      chmod a+x duHTMLtree
      
    3. Use du (a standard *ix program) to create directory size data. I will use the /usr directory as an example, change it as appropriate.

      du -k /usr > usr.txt
      
    4. Run the script to create html output showing files of >50M.

      ./duHTMLtree -s50M '-tMy Disk Tree' -n'My Disk' -c1 usr.txt > usr.html
      
    5. As long as the file usr.html is accessible from the internet, you can access it in your browser. You can see examples of the output at the script's original site here and here.

    For more information and documentation on the script's usage, see the original author's site.

  • cmevoli

    One web-based option would be Philesight, which is a graphical disk usage solution that works in your browser.

    http://zevv.nl/play/code/philesight/

    You could also mount the remote machine's filesystem locally to be able to use your kdirstat. If you are using a windows machine as your local workstation then mounting the filesystem locally would not be ideal since you can't run kdirstat on windows.

    Another option would be to use an application called baobab which is gtk based. It's more lightweight that kdirstat so the system requirements would be lower to install it on the remote machine but would still need some base X11 libraries.


  • Related Question

    mac - How to undo my parition in OSX?
  • bragboy

    I bought a new Macbook few days back and this is my first experience with MAC. The seller did a partition on my hard disk before giving it to me. I remember him going to 'Disk Utility' for performing a partition.

    I came back home and wanted to install Windows 7. I searched Google and read that I need to install it via Boot Camp Assistant. But Boot camp assistant would not allow me to install anything since I dont have a single partition.

    How would I restore my partition using Disk Utility?

    enter image description here


  • Related Answers
  • Seasoned Advice (cooking)

    You need to erase the second partition, and resize the first one (which will be the only one then) to take up the full space of the disk.

    Easiest way to do this is to click on the top left, on 250.06 GB Hitachi, then click on the Partition tab, then you'll see a basic partition map. The rest is fairly simple using the on-screen help and buttons.