LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-23-2015, 08:33 PM   #16
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176

Quote:
Originally Posted by John VV View Post
i use KDE but a "desktop " file is a desktop file

make sure that the pysol folder in tin the system $PATH
there is a .desktop launcher already in the archive "PySolFC-2.0/data/pysol.desktop"

The setup.sh script should have placed it in
/use/share/applications
if not
edit it for your environment and copy it to "/use/share/applications"

i have pysol installed on a shared drive so the locations WILL be different for you

Code:
[Desktop Entry]
GenericName=PySolFC
Name=PySol Fan Club Edition
Exec=/DATA/GAMES/PySolFC-2.0/pysol.py
Terminal=false
Type=Application
Categories=Game;CardGame;Game;
Icon=/DATA/GAMES/PySolFC-2.0/data/pysol.xpm
If I can manage to get the script to run I'll make the Desktop Entry.

Thanks for showing me how to make a Desktop Entry.
 
Old 02-23-2015, 10:08 PM   #17
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I'm in the directory with the "pysolfc.SlackBuild" script.

Code:
bash-4.2$ cd Downloads/pysolfc
bash-4.2$ ls
PySolFC-2.0	     README	pysolfc.SlackBuild  slack-desc
PySolFC-2.0.tar.bz2  doinst.sh	pysolfc.info
bash-4.2$ su -
Password: 

root@red:~# ./pysolfc.SlackBuild
-su: ./pysolfc.SlackBuild: No such file or directory
root@red:~#
Why is the script not executing?

-::-I also tried coping the script and put it in my Home directory made it executable and it still won't run.-::-
 
Old 02-23-2015, 11:40 PM   #18
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by Ztcoracat View Post
I'm in the directory with the "pysolfc.SlackBuild" script.
Actually you are not in the directory! The "su -" also switches into root's home dir. Try "copying and pasting" my suggested commands from 14 posts back, one at a time. They work. I tested them before posting.

Last edited by ruario; 02-23-2015 at 11:52 PM.
 
Old 02-23-2015, 11:58 PM   #19
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by Didier Spaier View Post
Hint: on sourceforge.net you need to use a browser for downloading files.
No you don't. I download from SF via the terminal all the time. Try copy and pasting the wget command I gave him yourself.

On his first attempt after my suggestion he successfully downloaded the file as you can see from his output. His problem after that (as you noted) was that he never ran the SlackBuild.

On the next try he obviously didn't copy and past as there is a "." missing in the source package name. If he copied and pasted he would solved this a very long time ago.

Last edited by ruario; 02-24-2015 at 12:11 AM.
 
1 members found this post helpful.
Old 02-24-2015, 12:53 AM   #20
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by ruario View Post
Actually you are not in the directory! The "su -" also switches into root's home dir. Try "copying and pasting" my suggested commands from 14 posts back, one at a time. They work. I tested them before posting.
I freaking told him/her/it that a couple of posts ago. With an example, no less.
 
1 members found this post helpful.
Old 02-24-2015, 01:07 AM   #21
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Quote:
Originally Posted by ruario View Post
No you don't. I download from SF via the terminal all the time. Try copy and pasting the wget command I gave him yourself.
You are right. I assume that I first tried copying and pasting blindly his (wrong) command, shame on me.

Oh, and thanks, your remark made me realize that one can download a Slint installer this way:
Code:
wget http://downloads.sourceforge.net/slint/14.1/slint-14.1.2-full.iso -P slint
That works, under the condition that we be redirected to a "good" mirror.
 
Old 02-24-2015, 01:46 AM   #22
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by Richard Cranium View Post
I freaking told him/her/it that a couple of posts ago. With an example, no less.
Yep, you did. I also told the OP how to do the entire process, with step by step (already tested) instructions that could be copy and pasted in the 4th posting.

However, no point in any of us getting upset. The user is clearly new to much of this and it is easy to forget how simple it is to make mistakes when you are first learning about things. I suspect your message was glanced over or not understood. "su -" switching to the root home directory is non-obvious if you don't understand the command.

I also suspect that the user may not have realised how to paste to a terminal (select text, then middle click or Ctrl+c to copy the text and Ctrl+Shift+v to past into a terminal), so typed the entire thing. In fact, I am almost certain of this as "PySolFC-2.0tar.bz2" is mentioned twice in his/her posts, rather than "PySolFC-2.0.tar.bz2" (note the missing ".").

On the plus side, making mistakes and struggling over things is how you learn. I suspect that when the user gets to the end of this they will have much better understanding then when they begun.

Last edited by ruario; 02-24-2015 at 02:11 AM.
 
Old 02-24-2015, 02:06 AM   #23
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
@John VV: A nice a attempt at help but I think you are actually confusing the situation, more than assisting in this case. You are trying to teach a completely different method when the user has not yet grasped the first. In addition, understanding how to run a SlackBuild will be more helpful to the user at this stage in their development, as it opens up the world of www.slackbuilds.org and hence a variety of software that can be easily managed under the packaging system.

Handling packages outside of the package manager and making your own .desktop files is clearly a more advanced topic and something that should be considered only after more of the basics are understood.

@Ztcoracat: Go back to the steps from my fourth posting and try again:

1. Switch to the /tmp directory (it is a nice short, predictable path to work from for stuff like this)

Code:
cd /tmp
2. Fetch the SlackBuild package (copy the following line by selecting it and issuing Ctrl+c. In most terminals you can then paste it with Ctrl+Shift+v):

Code:
wget http://slackbuilds.org/slackbuilds/14.1/games/pysolfc.tar.gz
3. If there are no obvious errors (read the output carefully. A mention of a 404 is an error), then issue the following to extract the package verbosely:

Code:
tar xvf pysolfc.tar.gz
4. Now issue the following to download the source package into the newly created "pysolfc" directory (again, you should copy and paste the command and watch for errors as explained above):

Code:
wget http://downloads.sourceforge.net/pysolfc/PySolFC-2.0.tar.bz2 -P pysolfc
5. Now you need to become root. The following command switches to a root login shell. This means that you will have all of roots environment variables setup and switch into root's home directory (/root).

Code:
su -
6. If you want, you can confirm that you are now in root's home directory by issuing the "print working directory" command (you should see the output "/root"):

Code:
pwd
7. Now switch to the directory where you extracted the SlackBuild and downloaded the source package.

Code:
cd /tmp/pysolfc
8. Now you can issue the command to run the SlackBuild (as you are in the correct directory, have the source package in place [correctly named] and have switched to root user):

Code:
./pysolfc.SlackBuild
9. If (and only if) that command completed successfully, enter the following to install the resultant package:

Code:
installpkg /tmp/pysolfc-2.0-x86_64-1_SBo.tgz
10. Finally exit the root environment.

Code:
exit
An extra tip. Stop at the first error and report back here with the error message you see and details of how far you got.

Last edited by ruario; 02-24-2015 at 02:13 AM.
 
1 members found this post helpful.
Old 02-24-2015, 02:59 AM   #24
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Post

Quote:
Originally Posted by Didier Spaier View Post
You are right. I assume that I first tried copying and pasting blindly his (wrong) command, shame on me.
No shame, easily done. In fact I only just realised there are two typos. In addition to the missing "." his link ends with "bx2" instead of "bz2".
 
Old 02-24-2015, 01:09 PM   #25
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Guys:

There was something I was not aware of; and a very special thanks to Mr. Frankbell , who explained to me,
there is a difference between using 'su' and using 'su -'.

Once I typed su - I included the full path to /home/zebracat/Downloads/pysolfc/.
I un-tarred the /PySolFC-2.0.tar.bz2 and wasn't aware that it should not of been un-tarred to begin with.

I was able to run the script as root with the full path. Upon running the script the pkg;" pysolfc-2.0-x86_64-1_SBo.tgz" was created and placed in my tmp directory.

-:-Amazing how one small unknown detail can wreck getting something installed.-:-

Thank you all for helping me.
 
Old 02-24-2015, 01:19 PM   #26
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by ruario View Post
Yep, you did. I also told the OP how to do the entire process, with step by step (already tested) instructions that could be copy and pasted in the 4th posting.

However, no point in any of us getting upset. The user is clearly new to much of this and it is easy to forget how simple it is to make mistakes when you are first learning about things. I suspect your message was glanced over or not understood. "su -" switching to the root home directory is non-obvious if you don't understand the command.

I also suspect that the user may not have realised how to paste to a terminal (select text, then middle click or Ctrl+c to copy the text and Ctrl+Shift+v to past into a terminal), so typed the entire thing. In fact, I am almost certain of this as "PySolFC-2.0tar.bz2" is mentioned twice in his/her posts, rather than "PySolFC-2.0.tar.bz2" (note the missing ".").

On the plus side, making mistakes and struggling over things is how you learn. I suspect that when the user gets to the end of this they will have much better understanding then when they begun.
Until today, I wasn't aware that I could cut and paste in the terminal.
Another thing that was holding me back and impeded what I was trying to install thus making typing errors by typing the entire string or cmd out:-

It's installed now and running.
Attached Thumbnails
Click image for larger version

Name:	Screenshot - 02242015 - 02:06:34 PM.jpg
Views:	27
Size:	241.3 KB
ID:	17661  
 
Old 02-24-2015, 01:31 PM   #27
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
On the plus side, making mistakes and struggling over things is how you learn. I suspect that when the user gets to the end of this they will have much better understanding then when they begun.
Yup, and that's what happened in my case.

Things are clear now but where a confusing mess going through the 'struggling part'.

Thanks, ruario-
 
1 members found this post helpful.
Old 02-24-2015, 01:57 PM   #28
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Ztcoracat View Post
Another thing that was holding me back and impeded what I was trying to install thus making typing errors by typing the entire string or cmd out:-
Possibly another thing you aren't/weren't aware of... When typing commands and file/folders in the terminal, you can hit the tab button to autocomplete the file/folder. If nothing is returned, you can hit it a second time and it will show all existing options for what you've currently typed, then you can do a couple more letters to make it find what you're wanting it to.

You can see examples on wikipedia:

https://en.wikipedia.org/wiki/Command-line_completion
 
Old 02-24-2015, 02:11 PM   #29
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by bassmadrigal View Post
Possibly another thing you aren't/weren't aware of... When typing commands and file/folders in the terminal, you can hit the tab button to autocomplete the file/folder. If nothing is returned, you can hit it a second time and it will show all existing options for what you've currently typed, then you can do a couple more letters to make it find what you're wanting it to.

You can see examples on wikipedia:

https://en.wikipedia.org/wiki/Command-line_completion
Thanks, bassmadrigal!
 
  


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
How to install tar.gz & tar.bz2 file on Linux min Krishnendu Linux Mint 2 07-16-2009 06:52 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
How to INSTALL softwares with *.tar.gz or *.tar.tgz extension On SLACKWARE 10.2 DdOs Linux - Software 4 03-20-2006 01:54 AM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:32 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