LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-28-2015, 01:04 PM   #1
jkirksey1889
Member
 
Registered: Oct 2015
Posts: 36

Rep: Reputation: Disabled
Didn't want to ask but I've tried for a couple of hours now....


You guys helped me get unicenta running by going into terminal and cd /home/jason/unicentaopos-3.91.2 then sh start.sh.

I can go into terminal every time and get the program running this way. I'd like to create a desktop shortcut so I can just click and the program starts. I'm using Mint 17 Cinnamon.

I've right clicked desktop and clicked create new launcher but nothing I put in will allow me to click the OK button so I must be doing something wrong.

Thanks in advance.
 
Old 10-29-2015, 06:05 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Is start.sh set as executable? If it is then just put the following in your shortcut:
Code:
/home/jason/unicentaopos-3.91.2/start.sh
jdk
 
Old 10-29-2015, 08:08 AM   #3
jkirksey1889
Member
 
Registered: Oct 2015
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jdkaye View Post
Is start.sh set as executable? If it is then just put the following in your shortcut:
Code:
/home/jason/unicentaopos-3.91.2/start.sh
jdk
I've tried that and several other possibilities. No matter what I put in the OK button does not activate so I cannot click it.
Thanks
 
Old 10-29-2015, 09:14 AM   #4
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,139
Blog Entries: 21

Rep: Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480Reputation: 3480
Show us the properties of start.sh

example on mine

Code:
$ ls -l .weather.sh
-rwxrwxrwx 1 biker biker 458 Jul 24  2013 .weather.sh
Quote:
-rwxrwxrwx
That is what members need to see plus your launch string command you put on your icon.
 
Old 10-29-2015, 10:41 AM   #5
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
L.E. Ignore this.. I've reread your second comment and I was wrong.. Just try running this once:
Code:
chmod u+x /home/jason/unicentaopos-3.91.2/start.sh
Then everything should work as you desire...

Last edited by Smokey_justme; 10-29-2015 at 10:44 AM.
 
Old 10-29-2015, 11:11 AM   #6
jkirksey1889
Member
 
Registered: Oct 2015
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Smokey_justme View Post
L.E. Ignore this.. I've reread your second comment and I was wrong.. Just try running this once:
Code:
chmod u+x /home/jason/unicentaopos-3.91.2/start.sh
Then everything should work as you desire...
Great! That opened up the OK box, and now is clickable. However, I dont know if I should check launch in terminal or not?
 
Old 10-29-2015, 11:13 AM   #7
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
Both options should work...
 
Old 10-29-2015, 11:51 AM   #8
jkirksey1889
Member
 
Registered: Oct 2015
Posts: 36

Original Poster
Rep: Reputation: Disabled
I love learning new things and I always eventually become very good at what I work at but this is very frustrating. Now I've tried it with launch in terminal checked and unchecked, and I have a desktop icon, however nothing happens when I click on it. ????
 
Old 10-29-2015, 12:17 PM   #9
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
Try to edit that desktop link and set the working directory to /home/jason/unicentaopos-3.91.2 and the command to start.sh
 
Old 10-29-2015, 01:17 PM   #10
jkirksey1889
Member
 
Registered: Oct 2015
Posts: 36

Original Poster
Rep: Reputation: Disabled
Found this about installing Unicenta in Ubuntu. This may apply to Mint as well?

3. Fix uniCenta oPOS launcher.

uniCenta oPOS creates a fautly desktop launcher icon in Ubuntu.
To fix this we need to first move and fix the launcher, open a terminal and enter:

cd ~/Desktop
sudo sed 's/Exec/#Exec/g' "uniCenta oPOS.desktop" > /tmp/.unicenta.desktop
sudo echo -e "\nExec=sh /opt/unicentaopos-3.01/start.sh" >> /tmp/.unicenta.desktop
sudo rm "uniCenta oPOS.desktop"
sudo mv /tmp/.unicenta.desktop "/usr/share/applications/uniCenta oPOS.desktop"

4. Fix start.sh

As strange as it may seem, the start.sh file has control characters (^M) in that prevents the program from running correctly on Linux.
To fix this we create a new start.sh file in the installation directory with the non printable characters removed.

sudo cat /opt/unicentaopos-3.01/start.sh | sed 's/\o015//g' > /tmp/.start.sh
sudo mv /opt/unicentaopos-3.01/start.sh /opt/unicentaopos-3.01/start-original.sh
sudo mv /tmp/.start.sh /opt/unicentaopos-3.01/start.sh

All that is left to do is to make the start.sh file executable:

sudo chmod +x /opt/unicentaopos-3.01/start.sh

You will now be able to find uniCenta in the Dash and start the application.

https://www.thefanclub.co.za/how-to/...nta-pos-ubuntu
 
Old 10-29-2015, 01:58 PM   #11
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
This was why I asked you if start.sh was executable.
jdk
 
  


Reply



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
Kicked out to the kdm after a couple hours chetamonye Slackware 2 06-01-2011 12:31 PM
Server seem to crash every couple of hours ramesh_india2020 Linux - Newbie 4 09-28-2010 10:55 PM
speakers mess up after couple hours of machine use BirdyMan Linux - General 1 02-11-2010 08:33 PM
hard drive inexplicably goes read-only after machine is on a couple of hours greenphreak Linux - Hardware 7 08-22-2007 02:30 PM
huge slowdown after a couple of hours j0ly Linux - Newbie 1 04-11-2007 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:23 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
Open Source Consulting | Domain Registration