Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Need GUI based File checker

  1. #1
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Need GUI based File checker

    I am not too comfortable with command mode operations,hence i need a file checker which is GUI based.
    My current system configuration is openSUSE 11.2,GNOME desktop

    Sample need for my GUI based File checker would be as follows:-

    I need to check validity of iso image and i have downloaded all of the below files:-
    • openSUSE-11.3-DVD-i586.iso
    • openSUSE-11.3-DVD-i586.iso.asc
    • openSUSE-11.3-DVD-i586.iso.md5
    • openSUSE-11.3-DVD-i586.iso.sha1


    I need the file checker utility to use either the asc or md5 or sha1 files and verify the iso file mentioned above


    Is there such a GUI tool that is available that i can install in my openSUSE 11.2,GNOME desktop ?

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,657

    Default Re: Need GUI based File checker

    load them to your burning software it should check the sums. at least K3b does.

  3. #3
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: Need GUI based File checker

    i understand that the burner does this:-

    But i need to check or any file,i have a rpm file an a checksum file for same rpm file

    How can it check any random file,not iso alone ?

  4. #4

    Default Re: Need GUI based File checker

    Hello vazhavandan,

    Quote Originally Posted by vazhavandan
    Is there such a GUI tool that is available that i can install in my openSUSE 11.2,GNOME desktop ?
    AFAIK there isn't.

    Quote Originally Posted by vazhavandan
    But i need to check or any file,i have a rpm file an a checksum file for same rpm file

    How can it check any random file,not iso alone ?
    The fastest way is using the command line.
    Just follow these steps:

    1. Start a terminal and go to the directory containing the md5 file.
    2. Run this command:
      Code:
      md5sum -c <MD5 File>

    It should return something like:
    Code:
    test: OK
    Good luck!
    Where did I put my coffee cup?
    dir -R /home/* | grep "coffee cup"

  5. #5
    Join Date
    Aug 2009
    Location
    Mountain View, CA
    Posts
    204

    Default Re: Need GUI based File checker

    For linux many use the utility md5sum to calculate the checksum - so you might not come across much GUI based tools for such a simple operation.

    Just follow these steps (assuming you're using KDE):
    1. Press Alt + F2
    2. Type konsole and press enter
    3. Konsole application should startup.
    4. Now change the directory to the folder containing the file which you want to check - say it is in your home dir/Downloads. So type cd ./Downloads
    5. Now type md5sum FILENAME.rpm and it would tell the checksum of the file. Compare it against the one you might already know.
    6. Also if you have a checksum file directly, you could do md5sum -c CHECKSUMFILE - it should tell Valid or invalid accordingly.

  6. #6
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: Need GUI based File checker

    @ Edward_Iii,@ gogalthorp

    I thank you both for you replies

    I am afraid that i would get a response lie
    AFAIK there isn't.
    Yeah i have tried out command like them before creating this thread and i found that doing this on command line is cumbersome,so i needed a GUI based tool

    Guess i feel the need for GUI based tool for everything as i am used to MS based OS

    admin@linux-xpqs:~/Desktop/openSUSE-11.3-DVD-i586.iso> md5sum -c openSUSE-11.3-DVD-i586.iso.md5
    openSUSE-11.3-DVD-i586.iso: OK
    admin@linux-xpqs:~/Desktop/openSUSE-11.3-DVD-i586.iso> sha1sum -c openSUSE-11.3-DVD-i586.iso.sha1
    openSUSE-11.3-DVD-i586.iso: OK

  7. #7
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: Need GUI based File checker

    @ash25- Thanks for your reply,i believe that i clearly told everyone in the first post that i use a openSUSE 11.2,GNOME desktop,i have not tried KDE yet

  8. #8
    Join Date
    Oct 2008
    Location
    North Wales, UK
    Posts
    1,114

    Default Re: Need GUI based File checker

    Quote Originally Posted by vazhavandan View Post
    @ash25- Thanks for your reply,i believe that i clearly told everyone in the first post that i use a openSUSE 11.2,GNOME desktop,i have not tried KDE yet
    Just because you use gnome, doesn't mean that you can't use kde apps. To install kde, go to yast2>software>s/ware management and search for k3b.
    It will install k3b along with any kde dependencies it needs.

    You will find that many things in linux built in and are quicker and easier to run from a command line, so give it a try. I'm sure you'll get used to it. (Most of us came the same way - from windows - and got used to it.)

  9. #9

    Default Re: Need GUI based File checker

    Hello vazhavandan,

    Quote Originally Posted by vazhavandan
    Guess i feel the need for GUI based tool for everything as i am used to MS based OS
    I prefer the command line because it's fast and simple.
    But if you prefer a GUI then that's your choice.

    I couldn't find a GUI for you so I made one.
    Here's the program: Md5Check.jar (my apologies for the advertisements)

    How to start:

    1. Download the Md5Check.jar file.
    2. Double-click on the file and it should start. (if a archiving tool opens try opening the jar file with java).

    To run from terminal:
    Code:
    java -jar Md5Check.jar
    And here's the source code.
    Code:
    import java.awt.Color;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    import javax.swing.border.Border;
    import javax.swing.filechooser.FileFilter;
    import javax.swing.filechooser.FileNameExtensionFilter;
    
    
    public class Md5Check extends JFrame implements ActionListener {
    
        private JTextArea output;
        private JButton check;
        private JButton select;
        private JFileChooser file;
        private File md5 = null;
    
        public Md5Check() {
            super("Md5Check V0.01");
            this.setSize(200, 300);
            this.setLocationRelativeTo(null);
            this.setDefaultCloseOperation(EXIT_ON_CLOSE);
            this.setLayout(null);
    
            select = new JButton("Select md5");
            select.setBounds(25, 0, 150, 50);
            select.addActionListener(this);
            this.add(select);
    
            output = new JTextArea();
            output.setBounds(0, 80, 200, 100);
            output.setBorder(BorderFactory.createEtchedBorder());
            output.setBackground(Color.BLACK);
            output.setForeground(Color.GREEN);
            output.setFocusable(false);
            this.add(output);
    
            check = new JButton("Check md5");
            check.setBounds(25, 220, 150, 50);
            check.setEnabled(false);
            check.addActionListener(this);
            this.add(check);
    
            file = new JFileChooser();
            file.setFileFilter(new FileNameExtensionFilter("md5 files", "md5"));
    
            this.setVisible(true);
        }
    
    
        @Override
        public void actionPerformed(ActionEvent e) {
            if(e.getSource() == select) {
                output.setText("");
                file.showOpenDialog(null);
                md5 = file.getSelectedFile();
                if(md5 != null) {
                    check.setEnabled(true);
                } else {
                    check.setEnabled(false);
                }
            }
            if(e.getSource() == check) {
                output.setText("");
                try {
                    File directory = md5.getParentFile();
                    String command = "md5sum -c " + md5.getAbsoluteFile();
                    
                    //Runtime.getRuntime().exec("/bin/cd " + directory);
                    Process child = Runtime.getRuntime().exec(command, null, directory);
    
                    InputStream in = child.getInputStream();
                    int c;
                    while ((c = in.read()) != -1) {
                        output.setText(output.getText() + (char)c);
                    } 
                    in.close();
                } catch (IOException ioException) {
                    System.err.println("ERROR: Unable to read output!");
                    ioException.printStackTrace();
                    System.exit(0);
                }
            }
    
        }
    
        /**
         * @param args
         */
        public static void main(String[] args) {
            Md5Check md5Check = new Md5Check();
        }
    
    
    }
    I hope you find it useful.
    If you've got any questions feel free to ask.

    Good luck!
    Where did I put my coffee cup?
    dir -R /home/* | grep "coffee cup"

  10. #10
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Need GUI based File checker

    A quick search found something called kmd5, don't know if it's actively maintained.

    I don't need something like this since I would do it at the CLI and I don't do it often enough to need to integrate it with the desktop, but I can see that this functionality (generating various checksums for a file) could be a useful feature in a directory browser like dolphin or filezilla. Perhaps you might like to file an enhancement request at the websites of those programs so that it might be considered.

    For ISO files, as mentioned already, k3b can do this.

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •