LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Directory List like windows (https://www.linuxquestions.org/questions/linux-software-2/directory-list-like-windows-771194/)

prs700 11-24-2009 06:10 AM

Directory List like windows
 
Hi,

Slowly but surely I am switching to Linux (Currently liking Fedora 11 and my laptop likes it to)

couple of issues I want to solve before I take the plunge, I looked into add software, I did not find everything I wanted:

Does linux have an alternative to the following:

Dirctory List : unique small software that creats a txt list of all the files and subfolders in a directory, along with its size and date created and extension, I hope there is somethig similar in Linux

Daemon tool : to browser CD images

VSO image resizer: a small software to resize pictures and images on the fly and add water marks and frames

Beyond compare : comparing files and folders and syncing them

Duplicate remover: free software to find and manage duplicate files

Recover my files software : after file deletion

Isilo : ebook reader (prc/pdb) formats (mainly palm)

PDF explorer : bulk PDF files management, rename, view, reflow etc.

Good clean syncing software (Palm/Nokia)

More printers support

OK here is the difficult part:

in my work I use Windows specialized software, so currently I have dual boot, is there a better alternative to wine, I can't seem to get the hang of it. although I am skeptical, as many times windows software crash in windows, I think an emulator would be even flakier. or so I think.

and of course the difficult question: iPhone/Ipod touch

best wishes

PRS 700

BroX 11-24-2009 07:02 AM

Quote:

Originally Posted by prs700 (Post 3767814)
Dirctory List : unique small software that creats a txt list of all the files and subfolders in a directory, along with its size and date created and extension, I hope there is something similar in Linux

Easiest would be from command line, something like
Code:

ls -alR > directorylist.txt
'man ls' will give you more options to specify exactly what you want to see listed.
Quote:

Originally Posted by prs700 (Post 3767814)
Beyond compare : comparing files and folders and syncing them

There's 'rsync', there is probably a version with graphical interphase, try Google, and 'man rsync'.
Quote:

Originally Posted by prs700 (Post 3767814)
VSO image resizer: a small software to resize pictures and images on the fly and add water marks and frames

Definitely try phatch. I love it.

TITiAN 11-24-2009 08:15 AM

VirtualBox is a good GPL'ed (=open source) program to run an operating system inside another (say, Windows in a Linux OS). I haven't managed to get DirectX working properly in there so far, and it's supposed to only work like 'wine' in terms of Direct3D graphics, using the wine libs in order to convert D3D stuff (some DX10 stuff as well, even on xP ;) ) into OpenGL stuff. Internet and sound just work out of the box with Windows XP inside VirtualBox.
On my machine (currently running Ubuntu), Windows XP boots in like 35 seconds, which is not much (if at all...) slower than direct booting. That's convincing to me.

Wine seems to be the best solution for running win apps under other OS'es these days. One thing I hate about it is that you have to switch to the directory where the *.exe file is you want to execute, otherwise the *.exe program won't find its files (programs that don't need such files like self-extracting installers might still work).
I even coded a little C program that does this automatically (I call it startwine):
Code:

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *args[]){
        if(argc<2) return 0;
        char dir[1024];
        dir[0]='\0';
        int n=0;
        int dirpos=0;
        // get the index of the last slash char in the array
        while( args[1][n]!='\0' ){
                if(args[1][n]=='/')
                        dirpos=n;
                n++;
        }
        if(dirpos>0){
                int i=0;
                while (i<=dirpos) {
                        dir[i]=args[1][i];
                        // dir is the directory of the program
                        i++;
                }
                dir[dirpos+1]='\0';
        }
        char prog[1024];
        n=dirpos+1;
        while( args[1][n]!='\0' ){
                prog[n-(dirpos+1)]=args[1][n];
                // prog gets the file name of the win app in the form of "prog.exe"
                n++;
        }
        prog[n-(dirpos+1)]='\0';
        char tcmd[1024];
        char cmd[1024];
        sprintf(tcmd,"cd \"%s\"; wine \"%s\"",dir,prog);
        // possible alternative: ... ; WINEDEBUG=-all wine \"%s\" -dxlevel 71 -opengl", ...
        if(argc>2) {
                int a=2; //arg
                while (a<argc){
                        if(args[a][0]=='/') { //absolute path
                                sprintf(cmd,"%s \"Z:\\\\",tcmd);
                                int c=1; //char
                                while (args[a][c]!='\0') {
                                        if (args[a][c]=='/')        sprintf(tcmd,"%s\\\\",cmd);
                                        else                        sprintf(tcmd,"%s%c",cmd,args[a][c]);
                                        sprintf(cmd,tcmd);
                                        c++;
                                }
                                sprintf(tcmd,"%s\"",cmd);
                                sprintf(cmd,tcmd);
                        }
                        else sprintf(cmd,"%s \"%s\"",tcmd,args[a]);
                        sprintf(tcmd,cmd);
                        a++;
                }
        }
        sprintf(cmd,"%s\n",tcmd);
        printf(cmd);
        system(cmd);
        printf("\n\n***\n\tpress enter\n***\n");
        getc(stdin);
        return EXIT_SUCCESS;
}


Aquarius_Girl 11-24-2009 10:27 PM

Quote:

Originally Posted by prs700
and of course the difficult question: iPhone/Ipod touch

u can try gtkpod for the ipod 4th generation

prs700 11-25-2009 03:30 AM

Quote:

Originally Posted by LJSBrokken (Post 3767847)
Easiest would be from command line, something like
Code:

ls -alR > directorylist.txt
'man ls' will give you more options to specify exactly what you want to see listed.

There's 'rsync', there is probably a version with graphical interphase, try Google, and 'man rsync'.

Definitely try phatch. I love it.

Great suggestions I particularly like Phatch

I will have to learn the commands (I use GUI for almost everything) I will have to read further

thanks again

prs700 11-25-2009 03:42 AM

Thanks,

what do you mean I have to switch to the folder where the exe file is at? I tried to make it out from the script but too little experience here.

I recently saw virtualbox description in a list of open and free software, but I didn't think it would be this awesome.
If it works as advertised, I that will be great, I don't have to SWITCH every time I want to run some of my Win work apps.

To tell you the truth, I am switching from windows because no matter what version I use, no matter what machine, eventually the system becomes bogged down, a press of a button takes ages to elicit a response. (I do not expect Linux to be OS heaven all the way, I am just hoping this never happens with Linux)
and I hope virtualbox does not bring this into Linux

I will have to read more about it and about wine.

thanks again


Quote:

Originally Posted by TITiAN (Post 3767915)
VirtualBox is a good GPL'ed (=open source) program to run an operating system inside another (say, Windows in a Linux OS). I haven't managed to get DirectX working properly in there so far, and it's supposed to only work like 'wine' in terms of Direct3D graphics, using the wine libs in order to convert D3D stuff (some DX10 stuff as well, even on xP ;) ) into OpenGL stuff. Internet and sound just work out of the box with Windows XP inside VirtualBox.
On my machine (currently running Ubuntu), Windows XP boots in like 35 seconds, which is not much (if at all...) slower than direct booting. That's convincing to me.

Wine seems to be the best solution for running win apps under other OS'es these days. One thing I hate about it is that you have to switch to the directory where the *.exe file is you want to execute, otherwise the *.exe program won't find its files (programs that don't need such files like self-extracting installers might still work).
I even coded a little C program that does this automatically (I call it startwine):
Code:

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *args[]){
        if(argc<2) return 0;
        char dir[1024];
        dir[0]='\0';
        int n=0;
        int dirpos=0;
        // get the index of the last slash char in the array
        while( args[1][n]!='\0' ){
                if(args[1][n]=='/')
                        dirpos=n;
                n++;
        }
        if(dirpos>0){
                int i=0;
                while (i<=dirpos) {
                        dir[i]=args[1][i];
                        // dir is the directory of the program
                        i++;
                }
                dir[dirpos+1]='\0';
        }
        char prog[1024];
        n=dirpos+1;
        while( args[1][n]!='\0' ){
                prog[n-(dirpos+1)]=args[1][n];
                // prog gets the file name of the win app in the form of "prog.exe"
                n++;
        }
        prog[n-(dirpos+1)]='\0';
        char tcmd[1024];
        char cmd[1024];
        sprintf(tcmd,"cd \"%s\"; wine \"%s\"",dir,prog);
        // possible alternative: ... ; WINEDEBUG=-all wine \"%s\" -dxlevel 71 -opengl", ...
        if(argc>2) {
                int a=2; //arg
                while (a<argc){
                        if(args[a][0]=='/') { //absolute path
                                sprintf(cmd,"%s \"Z:\\\\",tcmd);
                                int c=1; //char
                                while (args[a][c]!='\0') {
                                        if (args[a][c]=='/')        sprintf(tcmd,"%s\\\\",cmd);
                                        else                        sprintf(tcmd,"%s%c",cmd,args[a][c]);
                                        sprintf(cmd,tcmd);
                                        c++;
                                }
                                sprintf(tcmd,"%s\"",cmd);
                                sprintf(cmd,tcmd);
                        }
                        else sprintf(cmd,"%s \"%s\"",tcmd,args[a]);
                        sprintf(tcmd,cmd);
                        a++;
                }
        }
        sprintf(cmd,"%s\n",tcmd);
        printf(cmd);
        system(cmd);
        printf("\n\n***\n\tpress enter\n***\n");
        getc(stdin);
        return EXIT_SUCCESS;
}



prs700 11-25-2009 03:53 AM

Quote:

Originally Posted by anishakaul (Post 3768691)
u can try gtkpod for the ipod 4th generation

Thanks I sill have a 4th gen iPod,
Come to think about it even Win/iTune cannot manage the iPhone and ipod touch well for me (well maybe it is due to the jailbreak) I do not expect linux to support such locked down device, it is not linux style. (actually come to think about installing applications into the iPhone from App store reminds me of the way I install applications into my fedora - there are apps repository and you name the app and install it automatically)

I just hate it when I want to install couple of apps in Fedora and it says queueing or downloading list of packages and it takes SOME time.

thanks again

I notice I have now my Fedora Logo next to my posts instead of windows, now I feel i belong, currently downloading Fedora 12 DVD.

TITiAN 11-25-2009 07:20 AM

OK what it means to switch into the directory where an *.exe file is...

Let's assume you have a windows program with this executable file: "/win/Program Files/app/app.exe"
(the "C:" drive from Windows is mounted in /win under Linux, so the Windows path of the program was "C:\Program Files\app\app.exe")

Now if you execute this program with wine (command: wine "/win/Program Files/app/app.exe"), the program won't find its own data and configuration files, which are located in "/win/Program Files/app/".

In order to solve this, you can:
  1. open a terminal
  2. then switch into the directory of your app (command: cd "/win/Program Files/app")
  3. and then execute it with wine (command: wine "app.exe")

prs700 11-25-2009 07:56 AM

Thanks for the clarification,

I am leaning towards wine, as vistual box will require a full installtion of windows "or at least this is the impression i got"

thnkas again

PRS700

Quote:

Originally Posted by TITiAN (Post 3769169)
OK what it means to switch into the directory where an *.exe file is...

Let's assume you have a windows program with this executable file: "/win/Program Files/app/app.exe"
(the "C:" drive from Windows is mounted in /win under Linux, so the Windows path of the program was "C:\Program Files\app\app.exe")

Now if you execute this program with wine (command: wine "/win/Program Files/app/app.exe"), the program won't find its own data and configuration files, which are located in "/win/Program Files/app/".

In order to solve this, you can:
  1. open a terminal
  2. then switch into the directory of your app (command: cd "/win/Program Files/app")
  3. and then execute it with wine (command: wine "app.exe")


TITiAN 11-25-2009 09:53 AM

Yes, VirtualBox needs a full installation (a virtual HDD with like 5GB is necessary for Windows+applications). But that's the only way I see for running windows applications under Linux that don't work with Wine.

There is also the possibility of a parallel running of Windows and Linux on one computer (with Xen, I assume), but I don't know how to enable that.

Finally, the last resort is a dual-boot system which lets you choose which OS to boot at startup.

BTW the latest version of wine is 1.1.33, you can check the version of the current installation with the command wine --version. Newer versions usually bring more compatibility.


All times are GMT -5. The time now is 01:07 AM.