LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-24-2009, 07:10 AM   #1
prs700
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Rep: Reputation: 0
Thumbs up 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
 
Old 11-24-2009, 08:02 AM   #2
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 759

Rep: Reputation: 65
Quote:
Originally Posted by prs700 View Post
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 View Post
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 View Post
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.
 
Old 11-24-2009, 09:15 AM   #3
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
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;
}
 
Old 11-24-2009, 11:27 PM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,633
Blog Entries: 29

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by prs700
and of course the difficult question: iPhone/Ipod touch
u can try gtkpod for the ipod 4th generation

Last edited by TheIndependentAquarius; 11-24-2009 at 11:28 PM.
 
Old 11-25-2009, 04:30 AM   #5
prs700
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by LJSBrokken View Post
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
 
Old 11-25-2009, 04:42 AM   #6
prs700
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
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 View Post
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;
}
 
Old 11-25-2009, 04:53 AM   #7
prs700
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anishakaul View Post
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.

Last edited by prs700; 11-25-2009 at 05:54 AM.
 
Old 11-25-2009, 08:20 AM   #8
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
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")
 
Old 11-25-2009, 08:56 AM   #9
prs700
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
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 View Post
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")
 
Old 11-25-2009, 10:53 AM   #10
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
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.
 
  


Reply

Tags
boot, dual, windows, wine


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a list on the web similar to the Hardware Compatibilty List for Windows ? andhrooy Linux - Newbie 2 08-10-2008 10:06 AM
directory list ygloo Linux - General 8 09-13-2006 06:59 AM
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 07:03 AM
List only the parent directory scottrell Linux - General 6 11-07-2003 10:10 AM
directory list jpostma Linux - General 1 10-23-2003 07:47 AM


All times are GMT -5. The time now is 08:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration