r/linuxquestions • • 3h ago

Support Trying to decode linux install instructions for non-programmers (Molok / Livesplit tool)

The program in question: https://sr.ht/~raphi/molok/

In this documentation, there's no "install" instructions. But I think the author included code words for programmers that just don't translate to normies like me/

What is included in their documentation is the following:

# Debian #Dependencies
Qt 5 core, widgets, and xml. Can be installed with
# Debian / Ubuntu
sudo apt install build-essential pkg-config qtbase5-dev libqt5core5a libqt5widgets5 libqt5xml5

^ I'm assuming dependencies, for this author means "This is required for my program to function on your system" if so, it should be as easy as entering sudo apt install build-essential pkg-config qtbase5-dev libqt5core5a libqt5widgets5 libqt5xml5 into the terminal. I get that...I think.

Next up...

# Usage
Copy config.default.hpp to config.hpp, and then edit config.hpp to your liking.
Run make && sudo make install to build and install.

^ This looks like an install but makes no sense when read like instructions are supposted to be - literally:

  • Copyconfig.default.hpp from where?
  • Where is 'config.hpp' ?
  • Run what? *What program, what command, are we doing this from the GUI or the terminal?
  • What is the name of the program as required by the terminal to launch?
  • What does && mean? (What actions am I, the user, supposed to do when ever I see '&&' in instructions?
  • Sudo make install what? That command is incomplete. What are the characters supposed to be installed after the word 'install'?
  • build and install The instruction started with run, how can I *run* something not built or installed. I've never build anything before, and I'm not finding any guides on 'How to build on linux" when searching for such, it's too broad.

Thank you! I hope this post has shown that I am actually trying, reading through everything provided, and giving it solid attempts before asking for help. I know many posters in linux help groups get very angry with people who don't know what they know, and like to inform the ignorant how ignorant they are. I ask that personal attacks and RTFM comments that didn't read the post are kept personally instead of posted in the comments in below, they do nothing to help.
(While I've used Lubuntu for over 10 years, and Ubuntu for the last 4, there's been no 'School" for either to attend to learn how to use, everything has been learned combing through stackoverflow and embarrassing myself on reddit, because people can't seem to accept, yes I really am this stupid, what more can I say to make the insults stop at not having the skills that others have?)

2 Upvotes

12 comments sorted by

2

u/grantrules 3h ago

The config.default.hpp file is probably in the root directory of the project. The && is part of the command, it lets you run the make and make install commands consecutively.. you just write it in one line in the terminal.

Just to be clear, you need to download the source code onto your system. The source code is the ingredients, the install commands are the recipe

1

u/Testificate_2011 3h ago

Thanks for writing, further clarification:

you just write it in one line in the terminal.

What 'line' and is there anything before/after? What directory am I doing this in (root?)

you need to download the source code onto your system

Awesome, where on the page is that located? https://sr.ht/~raphi/molok/

I'm not finding "Source Code" but I do see "source". But no instructions on the page to "Download source code"

After the source code is downloaded, how does one do what the steps detail din the post, require? (Still very confused on how "Run" is instructed before "install" and "Build"

1

u/dkopgerpgdolfg 3h ago edited 2h ago

I'm assuming you run some Debian-based Linux, otherwise forget apt.

What 'line'

After these apt commands (which you understand correctly), and after acquiring the source code and possibly editing this hpp file, you are supposed to run the command "make" in a terminal in that source directory. Just like that "sudo apt..." before. And after make, then "sudo make install". The "&&" is just a way to do with in the same line, you don't need it.

Sudo make install what? That command is incomplete

No, it's complete like that.

Basically, that source code has also a "makefile" that describes detailled steps that are needed to transform the source code into a finished program, and whatever else is needed to make it ready to run. And if you run "make ...", a build management software on your computer (GNU make here, part of build-essential which you installed) reads that file and executes the content. (There are other things than GNU make, which are used in different ways, but not relevant here).

But no instructions on the page to "Download source code"

Install git (sudo apt-get install git), make some empty directory, open a terminal there (or with any terminal window, use "cd" to switch to that directory), and run: git clone "https://git.sr.ht/~raphi/molok" . That will download it.

1

u/Testificate_2011 2h ago edited 1h ago

Okie dokie, I ran:

sudo apt-get install git

And the output was:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb
  git-cvs git-mediawiki git-svn
The following packages will be upgraded:
  git
1 upgraded, 0 newly installed, 0 to remove and 137 not upgraded.
Need to get 0 B/3,177 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
(Reading database ... 291490 files and directories currently installed.)
Preparing to unpack .../git_1%3a2.34.1-1ubuntu1.20_amd64.deb ...
Unpacking git (1:2.34.1-1ubuntu1.20) over (1:2.34.1-1ubuntu1.18) ...
Setting up git (1:2.34.1-1ubuntu1.20) ...

So, how do we make an empty directory from the terminal (or should I make a 'new folder' from the GUI?

I've assumed by 'directory' that means 'folder' and created a new folder, and ran 'git clone' in that location.

2

u/dkopgerpgdolfg 1h ago

So, how do we make an empty directory from the terminal (or should I make a 'new folder' from the GUI?

GUI is possible, and if you want to do it in the terminal then see "mkdir" (and btw. this is easy to find in any search engine)

1

u/[deleted] 1h ago

[removed] — view removed comment

1

u/Testificate_2011 1h ago

Shown here - the downloaded file lss isn't seen as valid by molok:

1

u/Testificate_2011 1h ago

Alrighty, the git clone worked great.

Now the question is the step:

Copy config.default.hpp to config.hpp,

Where is 'config.hpp' no such folder existed in the downloaded 'clone' ?

1

u/grantrules 1h ago

Rename the config.default.hpp to config.hpp

1

u/Testificate_2011 58m ago

Right-o. Got it (Such weird wording 'copy' meaning 'rename' :/

Now we're just stuck on the .lss file export from the README.md and site https://one.livesplit.org

Commented here: https://www.reddit.com/r/linuxquestions/s/EsbH5oTZJH

2

u/grantrules 39m ago

It says copy because generally you want to preserve the original file. You don't have to, but it's nice to be able to revert easily to default settings.

Can you share the contents of the lss file you downloaded.

1

u/Testificate_2011 11m ago

It says copy because generally you want to preserve the original file. You don't have to, but it's nice to be able to revert easily to default settings.

Smart, didn't think of that, was too focused on the "DON'T SCREW IT UP!"

Ok, .lss file contents:

<?xml version="1.0" encoding="UTF-8"?><Run version="1.8.1"><GameIcon/><GameName/><CategoryName/><Metadata><Run id=""/><Platform usesEmulator="False"/><Region/><SpeedrunComVariables/><CustomVariables/></Metadata><LayoutPath/><Offset>00:00:00.000000000</Offset><AttemptCount>0</AttemptCount><AttemptHistory/><Segments><Segment><Name>Time</Name><Icon/><SplitTimes><SplitTime name="Personal Best"/></SplitTimes><BestSegmentTime/><SegmentHistory/></Segment></Segments><SegmentGroups/><AutoSplitterSettings/></Run>

No clue what any of that means.