sudo updatedb
$ locate /file.h
sudo updatedb
$ locate /file.h
sudo apt-get build-dep python-pygame
hg
(on linux):sudo apt-get install mercurial
pip install hg+http://bitbucket.org/pygame/pygame
freetype-config: not found
error (on Linux), then try sudo apt-get install libfreetype6-dev
and then repeat 3.# Grab source
hg clone https://bitbucket.org/pygame/pygame
# Finally build and install
cd pygame
python setup.py build
sudo python setup.py install
#!/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/:$//'
chmod +x ./libs32.sh
./libs32.sh
./lib32.sh | xargs sudo apt install
./lib32.sh | xargs sudo apt install -y
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
LD_PRELOAD='/usr/$LIB/libstdc++.so.6' DISPLAY=:0 steam
# ntpdate pool.ntp.org
# /etc/init.d/ntpd start
# vi /etc/ntp.conf
server 0.rhel.pool.ntp.org server 1.rhel.pool.ntp.org server 2.rhel.pool.ntp.org
server 0.asia.pool.ntp.org server 1.asia.pool.ntp.org server 2.asia.pool.ntp.org server 3.asia.pool.ntp.org
$ vim /etc/sysconfig/network-scripts/ifcfg-eth0
ONBOOT=yes
A quick hackA quick hack is to copy all the packages you downloaded for your install to his machine (detailed instructions here). The .deb files are stored in/var/cache/apt/archives , then in the other computer launch Synaptic and select File -> Add Package Downloaded and search the folder were you put the files and open it, accept all (or install from terminal using the command sudo dpkg -i DEB_PACKAGE_NAME ).NOTE: This assumes that your package manager is not setup to delete the packages straight after install. It also assumes that you are running the same version of Ubuntu (10.10, 12.04, etc) and architecture version (32b or 64b). A DVD repository If you want the latest bug fixes and security patches available then have a look at this tutorial, which covers creating your own DVD repository. | |||||||||||||||||
|
A USB repository
If you have a decent sized USB stick - assuming around 4-8Gb (or external hard drive) you can set up a custom copy of the Ubuntu repository and configure that as a local repository as covered in AptGet/Offline/Repository on help.ubuntu.com. To get the actual package files (the .deb files), I suggest using apt-mirror .The apt-mirror package will help you create a custom mirror which should be smaller than the 30Gb of the full repository. Install the package:
and edit its configuration file
or since Ubuntu 14.04
Only include the repository sections you want. Here is a simple example that copies the binary .deb files from all 4 sections (main, restricted, universe and multiverse) as well as the latest bug fixes.
It is guesstimated that you will need around 15Gb of space for all 4 sections, without the source.I have put the path for all the .deb files to be /tmp , make sure you have enough space so your hard drive does not fill up (if your hard drive does fill up and your computer freezes, /tmp should be cleared with a reboot).If you just want the main files, remove the restricted, universe and multiverse names from the configuration file. If you are using a different architecture (you have 64bit, but your friend has 32 bit) then add the following at the start of the mirror.list configuration file:
Once you have the apt-mirror configuration you want, run apt-mirror and go do something fun or life changing as it will take hours or days to get the repository (depending on your connection and the Ubuntu mirror you are using).Once you have the .deb files, copy the files to your USB memory stick (or external hard drive) and set up the local repository as per the article mentioned previously. Test it works before taking it to your friend! | |||||