switcherswitcherswitcherswitcher

User login

Who's online

There are currently 0 users and 3 guests online.

Who's new

  • vsn3480
  • fengzhixuan
  • caseybergman
  • tomas81
  • raju_dharna

RSS Feeds

Technorati

Help running DBDesigner4 from wine on Ubuntu

Hi,

I've just installed wine and DBDesigner4 on my Ubuntu 6.10. I then followed some instructions to fix a bug (notifications opened in the background) which stated:

1 - sudo apt-get install devilspie
2 - echo[if[contains [application_name] "DBDesigner"] [focus]]’ > $HOME/.devilspie/dbdesigner.ds
3 - devilspie

Step 1 is fine but when I do step 2 I get the following error:

bash: /home/nelo/.devilspie/dbdesigner.ds: No such file or directory

I can't find the .devilspie directory anywhere! But the application was installed :(

What am I missing here? I'm not very adept at bash scripting :(

As usual your help is much appreciated! Thanks in advance!

Nelo

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Submitted by perlmunky on April 16, 2007 - 12:11am.

Hello,

try creating the directory and reinstalling. If the file is not there, simply do:
touch #this will create the file.

You could also look for the file using:

find ./ -name

/(bb|[^b]{2})/

Submitted by j1n3l0 on April 16, 2007 - 11:24pm.

Cheers for that!

The file I was looking for was in the .wine directory.
I had to copy it over and then run the command in step 2 again.
At the moment it works though I'm not entirely sure I did it right.

Will have to cross check when i install Ubuntu 7.04!

Thanks

Nelo

Smoothie, smoothie, hundre prosent naturlig!

Submitted by Daz on April 17, 2007 - 10:03am.

Hi Nelo,

I'm currently using it on the 7.04 beta and it works perfectly. :)

I was using the native Linux version before, but like the post you linked to said - half the stuff didn't work and the fonts were all screwed up (as it was still using GTK1). The wine version looks good and works well!

Daz

Submitted by juro (not verified) on May 17, 2007 - 10:03am.

I have tried various ways to get this to work.

I have created the directory $HOME/.devilspie (or should it be a file?). When I run devilspie I get this error:

** (devilspie:9544): WARNING **: Error in parsing: Unexpected token encountered: 226
Cannot parse /home/roland/.devilspie/dbdesigner.ds: Unexpected token encountered: 226
No s-expressions loaded, quiting

Any ideas to get this thing running?

juro

Submitted by j1n3l0 on May 17, 2007 - 11:16am.

Hi,

Make sure that you have used '[' in place of '(' in step 2 above (the -echo bit). I think I had that same error before I changed that.

Nelo

Smoothie, smoothie, hundre prosent naturlig!

Submitted by mzwarg (not verified) on July 27, 2007 - 5:45pm.

At first I thought this was the answer, but it didn't go smoothly. Finally I found a solution.

Here is what I did. First, I looked at the posting you mentioned @ 21crossants blog. I downloaded dbdesigner windows installed , installed wine, used wine to run windows based installer, then I ran DBDesigner.

# Go to a standard temp directory to download DBDesigner
cd /tmp
wget http://213.115.162.124/external/DBDesigner4/DBDesigner4.0.5.6_Setup.exe

# to install wine-0.9.27 if you haven't it
sudo apt-get -Y wine

# to install DBDesigner
wine DBDesigner4.0.5.6_Setup.exe

# To run DBDesigner
cd ~/.wine/drive_c/Program Files/fabFORCE
wine DBDesigner4.exe
 

I had the same problem of the window focus for the notifications and pop ups was behind every other window.
So, I found the thread we are currently reading on using devilspie to fix the windows focus. When I tried to use the code at the start of the post, I got the same error. I saw some comments on the 21crossants blog post which got me closer to a solution. I used the following commands next

mkdir ~/.devilspie
cd ~/.devilspie
 

Then I created a text file

vim ~./devilspie/dbdesigner.s

that uses the the s-expressions format. See detailed documentation here

; customized based on the following documentation website
; http://wiki.foosel.net/linux/devilspie

(if
        (contains (application_name) "DBDesigner")
                (focus)
)
 

Then, I ran devilspie all by it self

devilspie &

Finally, I ran dbdesigner again under wine

cd ~/.wine/drive_c/Program Files/fabFORCE
wine DBDesigner4.exe
 

That is how I did it!.

Now I just have to figure out why reverse engineering a database generates hundreds of relationships. That is a pain to decipher! Any ideas?

Submitted by FF (not verified) on August 21, 2007 - 2:20pm.

To run devilspie every time you start DBDesigner you can add "devilspie" to the link on the desktop.....

Rightclick on the icon, choose "properties" and go to "Lancher".
Add devilspie in front of "env ..." in the command

Submitted by ELMIT (not verified) on December 22, 2007 - 12:54pm.

I have setup a user abc with password abc in mysql for database abc.
mysql -u abc -p abc with password abc will connect me to the database.

If I try with DBDesigner: Open from Database (localhost/abc/abc/abc) I get always the error Connection to database failed. Username or password wrong.

I use Ubuntu Gutsy on AMD64 (therefore I cannot install the Linux version at all).

Any hints?

bye

Ronald

Submitted by ELMIT (not verified) on December 22, 2007 - 2:23pm.

Why the solution pops up, just when you ask for one?

mysql> UPDATE mysql.user SET Password=OLD_PASSWORD('abc') WHERE Host='localhost' AND User='abc';

solved it!!!