Games: what about your favorite game on linux

Non release banter
cttan
Shogun
Shogun
Posts: 332
Joined: 26 Jan 2011, 16:15
Distribution: Porteus 3.2 64bit KDE
Location: Malaysia

Re: Games: what about your favorite game on linux

Post#46 by cttan » 12 Jun 2015, 00:56

Hi,

There are a whole bunch of games which is difficult to find elsewhere but can be found here:-
https://slackonly.com/pub/packages/14.1-x86_64/games/

slackonly repo is a bit slow but be patient and your games should be loaded in no time.
Currently USM does not support slackonly repo. But I have modded it to include the repo with dependencies checking to ease the downloading.

Code: Select all

# usm -g egoboo

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) egoboo-2.7.4-x86_64-2_slack.txz
#? 1

Processing:   egoboo-2.7.4-x86_64-2_slack.txz 
n

 The following packages are required. 
egoboo-2.7.4-x86_64-2_slack.txz [106136K] [not installed]

Total size: 106 MB
 Would you like to install the package/s? (custom paths are supported) [y/n]

 Press [r] to remove packages, [q] to quit, or enter to start downloading.

 Updates are available. 
 Program update:   not required 
 Database update:  available 
 Please run:  usm -u all  and/or  usm -u usm 
 This message can be disabled in /etc/usm/usm.conf
 ############################### 
Downloading: egoboo-2.7.4-x86_64-2_slack.txz  30%

User avatar
francois
Contributor
Contributor
Posts: 5078
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Games: what about your favorite game on linux

Post#47 by francois » 12 Jun 2015, 15:31

Thanks for that major site on slackware games. :crazy:

I don't know if I will have enough years in my life to go thru all the packages I have seen in this repository. :)
Voltaire: Le mieux est l'ennemi du bien.

User avatar
Ed_P
Contributor
Contributor
Posts: 3320
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Games: what about your favorite game on linux

Post#48 by Ed_P » 13 Jun 2015, 15:26

cttan wrote:Currently USM does not support slackonly repo. But I have modded it to include the repo with dependencies checking to ease the downloading.
A "modded" USM!! I like the sounds of that. Would you be willing to share it? Do you have any other mods for it?
Ed

User avatar
francois
Contributor
Contributor
Posts: 5078
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Games: what about your favorite game on linux

Post#49 by francois » 14 Jun 2015, 03:54

Ed is right, cttan you should provide some small howto.
Voltaire: Le mieux est l'ennemi du bien.

cttan
Shogun
Shogun
Posts: 332
Joined: 26 Jan 2011, 16:15
Distribution: Porteus 3.2 64bit KDE
Location: Malaysia

Re: Games: what about your favorite game on linux

Post#50 by cttan » 17 Jun 2015, 06:36

Hi Guys,

Sorry for the delay as I was away for a few days without internet.

Here you go ...

1. Open /usr/bin/usm and edit/insert below lines:-
[ ! `egrep -o "slackware|slackwarepatches|slacky|salix|alien|ponce|slackonly|sbo|usm|all" <<<"$1"` ] && \
...
[ "$1" == "slackonly" ] && { update_database slackonly; cleanup; }
...
<menuitem icon="gtk-edit"><label>'$(gettext "Edit slackonly mirror")'</label>
<action>gtk_editFile '$CONFDIR/mirrors-slackonly.txt' &</action>
</menuitem>
...
'"`for a in slackware slacky salix alien ponce slackonly; do echo '
...


My /usr/bin/usm:-
http://pastebin.com/0MJLVM0Y

2. Add slackonly repo link into /etc/usm/mirrors-slackonly.txt using /etc/usm/mirrors-ponce.txt as sample.
My /etc/usm/mirrors-slackonly.txt

Code: Select all

# List of Slackonly Slackware mirrors
# Structure: $VER/$ARCH
 
# OFFICIAL
http://slackonly.com/pub
3. Add these lines into /etc/usm/files.conf using ponce as sample.
distro:slackonly
files:CHECKSUMS.md5.gz MANIFEST.bz2 PACKAGES.TXT.gz
extras:LIBS.TXT.gz
excludes:

My /etc/usm/mirrors-slackonly.txt

Code: Select all

# This config file is awk'd in the function update database() in order
# to download database files or remove unwanted files from PACKAGES.TXT.
# The excludes line is for removing packages from PACKAGES.TXT so they are
# not available in USM at all. 

distro:alien
files:CHECKSUMS.md5.gz MANIFEST.bz2 PACKAGES.TXT.gz
extras:LIBS.TXT.gz
excludes:libreoffice-dict libreoffice-l10n

distro:salix
files:CHECKSUMS.md5 PACKAGES.TXT
extras:LIBS.TXT.gz OPTIFEST.gz
excludes:f locale mate

distro:slackware
files:CHECKSUMS.md5 MANIFEST.bz2 PACKAGES.TXT
extras:LIBS.TXT.gz
excludes:e f k$ kdei$ y

distro:slackwarepatches
files:CHECKSUMS.md5 MANIFEST.bz2 PACKAGES.TXT
extras:LIBS.TXT.gz
excludes:

distro:slacky
files:CHECKSUMS.md5.gz MANIFEST.bz2 PACKAGES.TXT.gz
extras:LIBS.TXT.gz
excludes:

distro:ponce
files:CHECKSUMS.md5.gz MANIFEST.bz2 PACKAGES.TXT.gz
extras:LIBS.TXT.gz
excludes:

distro:slackonly
files:CHECKSUMS.md5.gz MANIFEST.bz2 PACKAGES.TXT.gz
extras:LIBS.TXT.gz
excludes:

distro:sbo
files:SLACKBUILDS.TXT.gz
extras:
excludes:
4. Edit DISTROS line in /etc/usm/usm.conf
DISTROS="slackware slackwarepatches slacky salix alien ponce slackonly"

My /etc/usm/usm.conf for reference:-

Code: Select all

# usm.conf - Configuration for Unified Slackware Manager (usm)
#

# Resolve dependencies for all packages
# Set this to true or false (never uncomment this)
RESOLVE=true

# The automatice update check that is made when internet
# is accessed. This update check doubles as a check that
# you have internet access before downloading packages.
# Set to false to disable update check.
AUTOCHECK=true

# When downloading multiple packages you are given the option to create
# a subfolder for the package and its dependencies. This option means if
# a package already exists in storage then instead of downloading it
# again to another subfolder, it will just be symbolically linked to
# the existing package in order to save time and space.
MAKELINKS=false

# Storage of database files (e.g PACKAGES.TXT)
DBDIR=/var/usm

# usm works with the repositories of various slackware based distros.
# The variable below is used to find the mirror for each distro given.
# The mirror files are stored in ${DBDIR}/mirrors-distro.txt
DISTROS="slackware slackwarepatches slacky salix alien ponce slackonly"

# Where packages will be downloaded to.
STORAGE=/tmp/usm

# This setting is the time (in seconds) before which the database
# file will be skipped if it has already been updated. The default
# time limit is 3 hours (10800 seconds)
SKIPDB=10800

# Time before system dependency cache is deleted.
# This is found in function system_deps()
declare -i HOURS=4

# The directory where your slackbuilds source files
# will be downloaded when building from source
SBOTMP=/tmp/usmsbo

# USM uses wget to fetch packages and database updates.
# Uncomment this and put your proxy address here.
#PROXY=http://180.241.124.57:8080

# If your proxy has a username, uncomment it and place it here.
# This setting requires the above #PROXY to be uncommented.
#PROXYUSER=username

# Proxy password
# This setting requires the above #PROXY to be uncommented.
# This setting requires the above #PROXYUSER to be uncommented.
#PROXYPASS=mypassword

# The initial size of the bottom text box window in the GUI
TXTBOX=210

# Do not show any prompts.
# For the GUI this means the last prompt that asks if you want to
# open the folder for viewing will not be shown.
# For the CLI this means just download the packages to storage without
# asking about creating subfolders, etc.
# false means you WILL receive prompts.
NOPROMPTS=false

############ CLI PROMPTS
# CLI option that automatically prompts to
# create a subfolder with name of chosen module
# all dependencies will be downloaded to this subfolder
# This is called from funcpackagesGet
# This variable should be true if you want to be prompted
SUBFOLDERPROMPT=true

############ PORTEUS ONLY SETTINGS

# Convert all slackware packages that are downloaded
# to porteus modules.
MODULES=true

# Merge downloaded packages into one module bundle
MERGE=false

################################
# DO NOT EDIT BELOW THIS POINT
# OR A PUPPY DOG COULD DIE!
################################

# Uncomment and set this value to overide automated detection
# Used for development and troubleshooting only
# ARCH=x86_64

# Uncomment and set this value to overide automated detection
# Used for development and troubleshooting only
#SLACKVER=14.1

VALIDVERS="14.1 slackware-current"
SUPPLIMENTOPTI=/etc/usm/suppliment-optifest.txt
SUPPLIMENTLIBS=/etc/usm/suppliment-libs.txt
CACHEPATH=/var/cache/usm
CACHE=${CACHEPATH}/usm-cache
CHECKED=$CACHEPATH/checked
UPDLINK=http://downloads.sourceforge.net/project/usm
DISFILES=$CONFDIR/files.conf
WGETFLAGS="--passive-ftp --trust-server-names --no-check-certificate --progress=dot"
CURLFLAGS=""

PREFIX=/usr
5. Run command usm -u slackonly to download repo info files.

6. Add this line in /usr/share/usm/funcchangelogs after ponce
[ "$1" = "slackonly" ] && CHLINK="$REPO_SLACKONLY/packages/$SLACKVER-$ARCH/$CL"

My /usr/share/usm/funcchangelogs
http://pastebin.com/9kr3v1Hn

7. Add slackonly in /usr/share/usm/funcpackageGet
[ "$DIST" = "slackonly" ] && local EXTRA=packages/$SLACKVER-$ARCH
[ "$DIST" = "slackonly" ] && local EXTRA=packages/$SLACKVER-$ARCH


My /usr/share/usm/funcpackageGet
http://pastebin.com/yDUAschs

8. Add and edit lines in /usr/share/usm/funcupdateDatabase
for a in alien salix slacky ponce slackonly slackware slackwarepatches sbo; do
...
slackonly )
for a in $FILES; do
if [ $CLI ]; then
download $REPO_SLACKONLY/packages/$SLACKVER-$ARCH/$a $SDIR
else
echo "$a" > $TMPDIR/.message
wget $WFLAGS -o $TMPDIR/.progress $REPO_SLACKONLY/packages/$SLACKVER-$ARCH/$a -P $SDIR
sleep 0.4
fi
done
...
# create Slackonly deps LIBS.TXT
grep -w 'PACKAGE NAME\|PACKAGE REQUIRED\|^$' /var/usm/slackonly/PACKAGES.TXT > LIBS.TXT
sed -i 's/PACKAGE NAME\:\ \ //g' LIBS.TXT
sed -i 's/PACKAGE REQUIRED\:\ \ //g' LIBS.TXT
sed -i 's/,/\ \ \ \ \ /g' LIBS.TXT
mv LIBS.TXT /var/usm/slackonly/.
# patch Slackonly PACKAGES.TXT
cp -a /var/usm/slackonly/PACKAGES.TXT /var/usm/slackonly/PACKAGES.TXT.ori
sed -i '/PACKAGE MIRROR\:/d' /var/usm/slackonly/PACKAGES.TXT


My /usr/share/usm/funcupdateDatabase
http://pastebin.com/hETzvDVk

9. Update slackonly database.
usm -u slackonly

You are done. Start downloading from slackonly using CLI.
usm -g <package name>

Example:- usm -g wireshark

Code: Select all

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) wireshark-1.12.2-x86_64-2_slack.txz
#? 
slackonly package mostly ends with slack.

Do not update your USM after modifications, else it will be overwritten by the stock version.
DO NOT ISSUE COMMAND : USM -U USM

If you are downloading my files from pastebin, pls remember to remove the .sh and put it in the respective folder.
I have only messed with USM CLI on x86_64. Pls do not ask me about USM GUI or 32bit CLI.
Hopefully it is working for you.
:beer:

EDIT :
Download usm-3.1.7-x86_64-slackonly-mod-1tct.xzm here:-
https://copy.com/g3e6N9xzlOaLM6Ze
Last edited by cttan on 18 Jun 2015, 14:29, edited 3 times in total.

User avatar
Ed_P
Contributor
Contributor
Posts: 3320
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Games: what about your favorite game on linux

Post#51 by Ed_P » 17 Jun 2015, 14:15

Wow!! cttan. :shock:

That's an impressive "mod" and an impressive post explaining it. Thank you. :beer:

I wonder if it can be tweaked even further to handle other files, like freestylers?
Ed

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Games: what about your favorite game on linux

Post#52 by Bogomips » 17 Jun 2015, 14:21

@cttan
Just my 2 cents. As a suggestion, could you not make life easier for the 64 bitters by putting all altered/relevant files into a module which can then be activated?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

cttan
Shogun
Shogun
Posts: 332
Joined: 26 Jan 2011, 16:15
Distribution: Porteus 3.2 64bit KDE
Location: Malaysia

Re: Games: what about your favorite game on linux

Post#53 by cttan » 17 Jun 2015, 17:10

@Bogomips
Download link provided in the previous post.

@Ed_P
I have not tried other repo but I think the possibility is great as most Slackware package mirror site have almost the same format.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Games: what about your favorite game on linux

Post#54 by Bogomips » 17 Jun 2015, 20:31

@cttan
Unfortunately on wrong architecture. So I'll let someone else give feedback on how it turns out. :wink:
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

cttan
Shogun
Shogun
Posts: 332
Joined: 26 Jan 2011, 16:15
Distribution: Porteus 3.2 64bit KDE
Location: Malaysia

Re: Games: what about your favorite game on linux

Post#55 by cttan » 18 Jun 2015, 02:07

Hi Bogomips,

I think slackonly repo is available in 32bit usm.
Pls check.

User avatar
Ed_P
Contributor
Contributor
Posts: 3320
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Games: what about your favorite game on linux

Post#56 by Ed_P » 18 Jun 2015, 02:38

cttan wrote:9. Update slackonly database.
usm -u slackonly

You are done. Start downloading from slackonly using CLI.
I tried this using the module you added and got this:

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# usm -u slackonly

 Use: usm -u <distro> 
 For example: usm -u slackware

root@porteus:/home/guest# ls  -d /mnt/live/memory/images/usm*.xzm
/mnt/live/memory/images/usm-3.1.7-x86_64-slackonly-mod-1tct.xzm/
root@porteus:/home/guest# 
 
I'll let you know when I have tried more tests.
Ed

User avatar
francois
Contributor
Contributor
Posts: 5078
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Games: what about your favorite game on linux

Post#57 by francois » 18 Jun 2015, 03:48

@bogomips: you are the moderators forking expert. Maybe this could be a very nice howto: Adding repositories to USM. This will be a surprise to brokenman. :wink:
Voltaire: Le mieux est l'ennemi du bien.

cttan
Shogun
Shogun
Posts: 332
Joined: 26 Jan 2011, 16:15
Distribution: Porteus 3.2 64bit KDE
Location: Malaysia

Re: Games: what about your favorite game on linux

Post#58 by cttan » 18 Jun 2015, 14:22

@Ed_P
I have uploaded the latest version. Pls download again and try.
When using the xzm module instead of modifiying the script files yourself, it seems like the xzm activation sequence would not replace existing file if any exist.
So I have put in a script to move the current file to .317. So you should see 2 files in the folder like this:-
/etc/usm/usm
/etc/usm/usm.317


I have also included slackonly update(not the latest) in the modded module. So for testing you do not need to do this
usm -u slackonly

@francois
brokenman has built a very robust usm. :good:

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Games: what about your favorite game on linux

Post#59 by Bogomips » 18 Jun 2015, 15:11

cttan wrote:it seems like the xzm activation sequence would not replace existing file if any exist.
Are you sure? Because the following shows the opposite:

Code: Select all

    guest@porteus:~$ mkdir usmod
    guest@porteus:~$ cp --parents /etc/usm/usm.conf usmod
    guest@porteus:~$ vi usmod/etc/usm/usm.conf   # MODULES <- true

    root@porteus:/home/guest# dir2xzm usmod/ usmod.xzm
    Parallel mksquashfs: Using 1 processor
    Creating 4.0 filesystem on usmod.xzm, block size 262144.
    [===============================================================================|] 1/1 100%

    Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
            compressed data, compressed metadata, compressed fragments, compressed xattrs
            duplicates are removed
    Filesystem size 2.12 Kbytes (0.00 Mbytes)

    root@porteus:/home/guest# grep MODULES /etc/usm/usm.conf
    MODULES=false

    root@porteus:/home/guest# activate usmod.xzm             
    Updating shared library links:  /sbin/ldconfig
    root@porteus:/home/guest# grep MODULES /etc/usm/usm.conf
    MODULES=true

    root@porteus:/home/guest# deactivate usmod.xzm
    Updating shared library links:  /sbin/ldconfig
    root@porteus:/home/guest# grep MODULES /etc/usm/usm.conf
    MODULES=false
In this example usm.conf was suppressed by file from module.

@cttan Unfortunately my architecture does not permit me to try out your module :(
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
Ed_P
Contributor
Contributor
Posts: 3320
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Games: what about your favorite game on linux

Post#60 by Ed_P » 18 Jun 2015, 18:36

cttan wrote:I have uploaded the latest version. Pls download again and try.
And the results are:

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# usm -v
 You are using USM version:  3.1.7

root@porteus:/home/guest# usm -u slackonly

 Use: usm -u <distro> 
 For example: usm -u slackware

root@porteus:/home/guest# ls -d /mnt/live/memory/images/usm*.xzm
/mnt/live/memory/images/usm-3.1.7-x86_64-slackonly-mod-1tct.xzm/
root@porteus:/home/guest# ls /etc/usm/
extra-deps.txt     mirrors-sbo.txt               suppliment-libs.txt
files.conf         mirrors-slackonly.txt         suppliment-optifest.txt
ignore-deps.txt    mirrors-slackverse.txt        usm.conf
mirrors-alien.txt  mirrors-slackware.txt         version.txt
mirrors-ponce.txt  mirrors-slackwarepatches.txt
mirrors-salix.txt  mirrors-slacky.txt
root@porteus:/home/guest# 
Something isn't clicking. xzm activation usually does replace existing files but in this case the 2 new scripts aren't being added.

I did the usm -u slackonly command just to verify that slackonly was added to usm. And while the -u command failed this one didn't:

Code: Select all

root@porteus:/home/guest# usm -g wireshark

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) wireshark-1.12.2-x86_64-2_slack.txz
#? ^C
root@porteus:/home/guest#
So something is working. :good:
Ed

Post Reply