Friday, August 12, 2016

How to install Squeak 5.0 on Ubuntu 16.04 x64 64bits

This works in 64 bit Ubuntu 16.04:
In the directory where you unzipped the Squeak-5.0-All-in-One.zip archive, and that contains the squeak.sh file, put the following into a file named libs32.sh :
#!/bin/bash
objdump -p ./Squeak-5.0-All-in-One.app/Contents/LinuxAndWindows/Linux-i686/lib/squeak/5.0-3397/*|
grep NEEDED|
awk '{print $2}'|
sort -u|
xargs dpkg -S|
awk '{print $1}'|
sort -u|
sed 's/:amd64:/:i386:/'|
sort -u|
sed 's/:$//'
Make that file executable:
chmod +x ./libs32.sh
Run it:
./libs32.sh
You will get a list of libraries that need to be installed.
Run
./lib32.sh | xargs sudo apt install
to see what would be installed.
Run
./lib32.sh | xargs sudo apt install -y
to install it.

Monday, August 8, 2016

How to install steam client on Ubuntu 16.04


sudo apt install steam

rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libgcc_s.so.1

@jvriesem that's not a problem, as you'd have to remove it anyway. The point of this exercise is to make Steam use the system versions of certain core libraries instead of replacing them with versions that don't work. (Why they would ship incompatible versions of standard libraries in the first place is beyond me) – tjollans Jul 24 at 10:25

You can create script with the following content to run it instead of steam:
#!/bin/bash
# Export so all child processes are affected as well
export LD_PRELOAD='/usr/$LIB/libstdc++.so.6'
export DISPLAY=:0
#export LIBGL_DEBUG=verbose
steam
or issue this command from cli

LD_PRELOAD='/usr/$LIB/libstdc++.so.6' DISPLAY=:0 steam