Author Topic: VariCAD 3D CAD installation small problem  (Read 7559 times)

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: VariCAD 3D CAD installation small problem
« Reply #75 on: July 22, 2010, 05:15:38 AM »
I have now just burnt pclos2010.07 to CD and started up LiveCD a bit crummy as I have not customised to screen or anything.

1.. Opened konsole as normal user did nano and kwrite with success, dolphin well yes but it squawks, the programs are all usable they start up in gui.

Code: [Select]
[guest@localhost guest]$ nano
[guest@localhost guest]$ kwrite
[guest@localhost guest]$

[guest@localhost guest]$ dolphin
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
"/union/usr/bin/dolphin(3620)" Error in thread 3033237200 : "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/union/usr/bin/dolphin(3620)" Error in thread 3033237200 : "QLocalSocket::connectToServer: Invalid name"
"/union/usr/bin/dolphin(3620)" Error in thread 3033237200 : "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/union/usr/bin/dolphin(3620)" Error in thread 3033237200 : "QLocalSocket::connectToServer: Invalid name"
"/union/usr/bin/dolphin(3620)" Error in thread 3033237200 : "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/union/usr/bin/dolphin(3620)" Error in thread 3033237200 : "QLocalSocket::connectToServer: Invalid name"
[guest@localhost guest]$

Now I change to root permissions in konsole: nano, kwrite, dolphin and firefox are "called":
Code: [Select]
[guest@localhost guest]$ su
Password:
[root@localhost guest]# nano               <<-fine
[root@localhost guest]# kwrite             <<----------fails
kwrite(3773): Session bus not found

KCrash: Application 'kwrite' crashing...
sock_file=/root/.kde4/socket-localhost/kdeinit4__0
Warning: connect() failed: : No such file or directory
KCrash cannot reach kdeinit, launching directly.
drkonqi(3774): Session bus not found

[root@localhost guest]# dolphin             <<------------------------- fails
<unknown program name>(3780)/: KUniqueApplication: Cannot find the D-Bus session server:  "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."

<unknown program name>(3779)/: KUniqueApplication: Pipe closed unexpectedly.

[root@localhost guest]# firefox              <<-------------------- runs fine
[root@localhost guest]#

Program nano runs fine, firefox runs fine using it now to access Forum

LXDE 2009
On this pc I have an old pclos2009-LDXE and I started this ran konsole/terminal tried nano, midori and Opera happened to be installed.

Tried both root and normal user - worked fine.

Can somebody running pclos2020.0x   try calling: nano, kwrite, dolphin and firefox from konsole and report results  :'(
« Last Edit: July 22, 2010, 05:20:48 AM by wedgeling »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: VariCAD 3D CAD installation small problem
« Reply #76 on: July 22, 2010, 08:50:30 AM »
Ok, my last post about konsole behaving unexpected. Not opening programs from root konsole as it used to. I will put this aside as not being of my making. I tested this on a brand new LXDE LiveCD and got similar problems, started a topic in the LXDE section and within minutes Textstar provided a solution/explantion

http://www.pclinuxos.com/forum/index.php/topic,76536.0.html

dbus-launch kwrite
dbus-launch dolphin
dbus-launch konqueror
dbus-launch okular

Anybody trying out these and watching the result in konsole, note 'dolphin' responds differently, terminating with ctl-c in konsole does not close 'dolphin'

These commands will get the programs on their legs.  This exercise was a blind alley and I will go back to study the use of xxx.desktop files.

Late addtion also Texstar
Instead of su to use su - new one to me but it allows me to just use the program names again.

« Last Edit: July 22, 2010, 09:09:40 AM by wedgeling »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11579
  • ----IOFLU----
Re: VariCAD 3D CAD installation small problem
« Reply #77 on: July 22, 2010, 10:46:27 AM »
old-polack
1.. I do not understand why I can not place myself in the directory containging exe file varicad and on the command line just type the name  ;D
  (example, if I want to open kwrite, I just type this in konsole  (because it will be in the $PATH I need not worry about being in the directory where kwrite exe is)


Maybe this will help;



The ./ in front of the command is absolutely necessary for the execution of the application; it tells the system, "Run this program located within this directory."

Quote
I understand why I need to use the full path for running exe file varicad, and it works both for root and normal user, when I am outside the directory.

2.. I don't understand yet how to get icon/applet on desktop or menu linked to varicad.desktop (if that is what is needed). After making the the change in varicad.desktop. I  have  found out that I don't understand how to "link" or activate those *.desktop items . I made a quick try: Create > New Link to Appplication and fell flat on my face. This is a secondary problem which I never had time to solve in pclos2009 as I just used konsole start. (I have seen you have given instructions in that direction but lost where)


Here is the full context of my Old-Pan.desktop file.

----------------------------------------------- start-------------------------------------------------
[Desktop Entry]
Comment[en_US]=
Comment=
Exec='/usr/local/bin/pan0.14.2.91/pan-old'
GenericName[en_US]=
GenericName=
Icon=/usr/share/icons/ImageMagick.png
MimeType=
Name[en_US]=Old-Pan
Name=Old-Pan
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=


-------------------------------------------------------------- end ---------------------------------------

The Exec= line has the full path to the application. The Icon= line has the wrong icon for this app because the correct one can't be found, and I hate those ? default icons. Once the .desktop file is saved to the desktop, right click the file --> Properties --> Permissions and check the box Is executable, then click the OK button. Your link should be fully functional at that point.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: VariCAD 3D CAD installation small problem
« Reply #78 on: July 22, 2010, 02:48:35 PM »
old-polack
I can cry putting you through this, my apology I believe it is me stuffing up. I set update going and went to bed. Happened to be up and looked in and update finished. Looked here and saw your answer before turning in again.

1.. As normal user the ./varicad now starts VariCAD when I am in the directory, however I can not run/use the program as normal user but the command works and I believe this must have been the case all the time, though I could have sworn I was so desperate that when I saw gseaman saying similar to you I tried it there and then with ./varicad and /.varicad (for good measure).

2.. It does work for root konsole too and this instance I can work VariCAD

I will have a break here and thank you.  I believe your desktop explanation will get me results when I get up again. 
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11579
  • ----IOFLU----
Re: VariCAD 3D CAD installation small problem
« Reply #79 on: July 22, 2010, 03:42:22 PM »
old-polack
I can cry putting you through this, my apology I believe it is me stuffing up. I set update going and went to bed. Happened to be up and looked in and update finished. Looked here and saw your answer before turning in again.

1.. As normal user the ./varicad now starts VariCAD when I am in the directory, however I can not run/use the program as normal user but the command works and I believe this must have been the case all the time, though I could have sworn I was so desperate that when I saw gseaman saying similar to you I tried it there and then with ./varicad and /.varicad (for good measure).

2.. It does work for root konsole too and this instance I can work VariCAD

I will have a break here and thank you.  I believe your desktop explanation will get me results when I get up again. 


Who owns /opt/VariCAD/bin/varicad?

[root@localhost ~]# ls -l /opt/VariCAD/bin |grep varicad            <Enter>

Post your results.

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: VariCAD 3D CAD installation small problem
« Reply #80 on: July 22, 2010, 07:55:47 PM »
Quote
Who owns /opt/VariCAD/bin/varicad?

Answer:
Code: [Select]
[root@localhost ~]# ls -l /opt/VariCAD/bin |grep varicad
-rwxr-xr-x  1 root root 45545388 2010-06-14 10:17 varicad*
[root@localhost ~]# ls -l /opt/VariCAD/bin |grep varicad
-rwxr-xr-x  1 gert gert 45545388 2010-06-14 10:17 varicad*

I used Konqueror in su mode and changed ownership result below (deliberately checked this way to see the difference to using |grep)

[root@localhost ~]# ls -l /opt/VariCAD//bin/
total 44492
-rw-r--r--  1 root root     6480 2010-07-23 06:40 errors.txt
drwxrwxr-x 12 root root     4096 2010-06-14 10:17 glib/
-rwxr-xr-x  1 gert gert 45545388 2010-06-14 10:17 varicad*
[root@localhost ~]#

Some time earlier my thinking was too eyeing off ownership and I attempted to change it with dolphin in su mode but I have forgotten why this failed but when re-checking the ownership it was still root/root

Did not work but I will do a complete re-boot now as I am keeping an eye on my cpu loading which is far too high for the few programs running on a dual core machine. Noticed a couple of times before but no idea what gets it into this mood.

Edit: After restart it does look like cpu loading is in order again about 1% with only konsole running.  Back to problem.

Code: [Select]
[root@localhost ~]# ls -l /opt/VariCAD/bin |grep varicad
-rwxr-xr-x  1 gert gert 45545388 2010-06-14 10:17 varicad*

With the changed ownership try running from root

[root@localhost ~]# /opt/VariCAD/bin/varicad
No protocol specified
varicad: cannot connect to X server :0
[root@localhost ~]# ls /opt/VariCAD/bin/varicad
/opt/VariCAD/bin/varicad*
[root@localhost ~]# ls -l  /opt/VariCAD/bin/varicad
-rwxr-xr-x 1 gert gert 45545388 2010-06-14 10:17 /opt/VariCAD/bin/varicad*
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cd /opt/VariCAD/bin/
[root@localhost bin]# ./varicad
No protocol specified
varicad: cannot connect to X server :0
[root@localhost bin]#

I thought root would run anythig, over riding local users? Same try in normal user starts fine but licence plate will not let me pass.

I am changing ownership back to root/root

Code: [Select]
[root@localhost ~]# /opt/VariCAD/bin/varicad
No protocol specified
varicad: cannot connect to X server :0
[root@localhost ~]# ls -l /opt/VariCAD/bin/varicad
-rwxr-xr-x 1 root root 45545388 2010-06-14 10:17 /opt/VariCAD/bin/varicad*
[root@localhost ~]#

rock>>me>hard place   :D ;D :D

Have attached the Licence Plate
« Last Edit: July 22, 2010, 09:38:28 PM by wedgeling »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: VariCAD 3D CAD installation small problem
« Reply #81 on: July 22, 2010, 09:57:17 PM »
Jeeez I like Opera 10.70  that came in big download last night, some beaut url's preinstalled, cat and now dog (commands) sorry sidetracked.

I left the "hard" place as normal user and logged in at the "easy place" as root user.

Pondering the next step I noticed that the Icon in lower left corner looked fuzzy, luckily curiosity got the better of me, lo and behold behind Konqueror I found the VariCAD Applet/Icon whatever.  I moved the Konqueror and took a snap.  Attached.

Apart from the Icon not showing the correct picture, because the desktop entry was changed according to your instructions it works, clicking th Icon bingo CAD comes up ready for use.

Konsole

Code: [Select]
[root@localhost ~]# /opt/VariCAD/bin/varicad

*** VariCAD configuration not found.
*** First startup in this directory, configuration will be created.
*** Current directory is: /home/gert/Varicad208

*** (R) VariCAD - graphic system release 2010-2.08
*** (C) VariCAD


VariCAD also comes up and ready, in my opinion quite clean, no extra system messages.

Back to the icon, I changed the line for the Icon:

Quote
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=VariCAD
GenericName="VariCAD System"
Comment="VariCAD - 2D and 3D mechanical CAD system"
Icon=/opt/VariCAD/desktop/varicad
FilePatern=varicad
Exec=/opt/VariCAD/bin/varicad
Terminal=0
Categories=Application;Graphics
MimeType=application/x-varicad

Icon=/opt/VariCAD/desktop/               <<--- here are a number of Icons

Quote
[root@localhost ~]# ls -l /opt/VariCAD/desktop/
total 52
-rwxr-xr-x 1 root root 8048 2010-06-14 10:17 installdesktop.sh*
-rwxr-xr-x 1 root root 3210 2010-06-14 10:17 uninstalldesktop.sh*
-rw-r--r-- 1 root root  290 2010-06-14 10:17 varicad_16x16.png
-rw-r--r-- 1 root root  917 2010-06-14 10:17 varicad_22x22.png
-rw-r--r-- 1 root root  612 2010-06-14 10:17 varicad_32x32.png
-rw-r--r-- 1 root root 1040 2010-06-14 10:17 varicad_48x48.png
-rw-r--r-- 1 root root  299 2010-07-23 13:31 varicad.desktop
-rw-r--r-- 1 root root  278 2010-07-23 13:31 varicad.desktop~
-rw-r--r-- 1 root root  149 2010-06-14 10:17 varicad.mdkmenu
-rw-r--r-- 1 root root  174 2010-06-14 10:17 varicad.wmconfig
-rw-r--r-- 1 root root 1349 2010-06-14 10:17 varicad.xpm
-rw-r--r-- 1 root root  144 2010-06-14 10:17 x-varicad.desktop
[root@localhost ~]#

Of the pictures I assumed that the .desktop would pick what is needed, but I am stuck with the ?

I just occurred to me that yes I changed ownership of the varicad exe file but the whole  /opt/VariCAD/ is under root ownership? Naaaah to far out for me. :D
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: VariCAD 3D CAD installation small problem
« Reply #82 on: July 22, 2010, 10:20:42 PM »
I went back and re-read your instructions very carefully and every@#$% word was important, perhaps a reasonable sleep has benefitted me. Seems I could have saved myself a lot of time by being more attentive.

1.. Have got the picture to replace the ? mark, actually a crummy one I just picked the 16x16 perhaps it is too course it looks washed out but I understand the process now.

2.. seems to work without "Is Executable" but I have set it anyway

3.. Last having fixed the file:///opt/VariCAD/desktop/varicad.desktop I forgot to copy it to the desktop.

Summary I am left with two problems

1.. Need to run as root user
2.. Have not found the $PATH yet

Could they be related?
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11579
  • ----IOFLU----
Re: VariCAD 3D CAD installation small problem
« Reply #83 on: July 22, 2010, 10:27:07 PM »
wedgeling:

The line should read;

Icon=opt/VariCAD/desktop/varicad_32x32.png
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: VariCAD 3D CAD installation small problem
« Reply #84 on: July 23, 2010, 02:18:05 AM »
old-polack
Thank you, that prompted me to do it, looks better, though I think I might look around for something better looking, one of those personal things.

Run as Normal User
Your suggestion
[root@localhost ~]# ls -l /opt/VariCAD/bin |grep varicad  
had me thinking about these permissions and I figured it was a worth while effort to do some experimenting. I was hinting at that a bit earlier and I started su Konqeror and went to the directory /opt/VariCAD/ right clicked > Properties and changed to gert/gert and in time noticed the little box about "also in all subfolders" which got a tick.

Code: [Select]
[gert@localhost ~]$ ls -l /opt/VariCAD/bin/
total 44492
-rw-rw-r--  1 gert gert     6480 2010-07-23 06:40 errors.txt
drwxrwxr-x 12 gert gert     4096 2010-06-14 10:17 glib/
-rwxrwxr-x  1 gert gert 45545388 2010-06-14 10:17 varicad*
[gert@localhost ~]$

Now gert is the user and it works, I think I was surprised because I had had an initial effort that failed and my confidence was cleaning the floor.

Code: [Select]
[gert@localhost ~]$ varicad

*** (R) VariCAD - graphic system release 2010-2.08
*** (C) VariCAD
[gert@localhost ~]$

Well to all you not so eagle eyed notice that I have got my varicad exe file name operational from (almost) any normal user location as I was hoping. Theer are some administrative tasks to be sorted out with setting up new paths to file storage but not part of present problem.

PATH inclusion
This had already been mentioned earlier by old-polack as this was the most difficult item for me I left it last and payed a price in some lost time. I had a few failed googling attempts but then I got a couple of good leads I will mention one which I found very interesting and a good description suiting me:

Code: [Select]
[gert@localhost ~]$ man PATH
No manual entry for PATH
[gert@localhost ~]$ PATH --help
Command not found.
 * Waiting in queue..
 * Loading list of packages...
[gert@localhost ~]$

Just showing that I had a vain attempt at using inbuilt help first

http://www.linfo.org/path_env_var.html

In my case I have permanently, for the time being changed:

file:///home/gert/.bash_profile to include /opt/VariCAD/bin/

Quote
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
   . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/opt/VariCAD/bin/

export PATH
unset USERNAME


Error file
Note  in the /opt/VariCAD/bin/ directory a file errors.txt this is 90 lines looking like this

Code: [Select]
Object::connect: No such signal VcdKPopupMenu::highlightedRedirect(int)
Object::connect: No such signal VcdKPopupMenu::highlightedRedirect(int)


I am not sure at what time these started to pop up and why.

Edit: This message seen once in VariCAD forum (also 90 lines), no satisfactory description of what it may mean. In view of that however I consider it a VariCAD problem not pclos.

I have attached a pick of what can be done in 3D, it is a sample from the tutorials, looks easy but don't be fooled. Needs lots and lots of time.
« Last Edit: July 24, 2010, 01:30:38 AM by wedgeling »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen