...: nabster :...


contents

Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Debian with legacy ATI graphics and ATI's proprietary driver in 2017, use Wheezy

This article is old

My ATI laptop works fine with Debian Buster and Bullseye in 2021.

The problems in 2017

My Sony Vaio VPCEA1ZIE laptop is old, but it remains capable for everyday office and graphics computing - it has 8 Gb of RAM, a 4 thread 2.13GHz Core i3 processor, 1TB hard drive and a Blu-Ray disc reader.  It isn't yet ready for disposal, and shame on AMD for poor product support.

My plan for the future is to avoid ATI graphics.  By the way, I already choose Intel in favour of AMD CPUs due to AMD's rapid changing of platforms and brisk removal of support for their quickly obsoleted hardware.

If you are reading this and are starting with a fresh install, then Gentoo with package masking will give you a better optimised mix of new and old (this is the true advantage of Gentoo, speed optimisations are a myth).  I reinstalled Debian Wheezy because I'm familiar with its configuration.

Installing the the proprietary ATI legacy drivers on Debian Wheezy
Follow the instructions on debian-wiki, but add APT::Default-Release "wheezy"; to /etc/apt/apt.conf to avoid upgrading all packages to backports (this would cause dependency problems)

Installing newer software on Debian Wheezy

Libreoffice 5.3.5

.deb files downloaded from libreoffice.org work.
You'll need to unzip the .deb.tar.gz, go to the DEBS directory and run
for i in `ls *.deb` ; do  dpkg -i $i ; done
or dpkg -i *.deb several times

Owncloud client

Do not install the owncloud client from backports, because it has dependency problems.

The version downloaded from the official website works.

Dropbox

Downloaded version works.

Lyx 2.2

First install the dependencies for compiling the version of Lyx on Wheezy.  Have a deb-src line for Wheezy available in /etc/apt/sources.list and then do this with

aptitude update
apt-get build-dep lyx


Download and tar -xvvf the source

cd lyx-version
aptitude install autoconf automake libtool
./autogen.sh
./configure
make
su
make install
exit
lyx

A surprisingly painless and successful compilation. Even the icon appeared in my xfce menu!

Enpass 5.6

  • The packaged 64 bit .deb produces a GLIBC error when run. I think this is due the version of libc6 in Wheezy. This is a central component which broke my system when upgraded to a mixed Jessie/Wheezy version - I was unable to downgrade libc6 or to install compilers. The packaged 32 bit .deb produces other errors.  I've asked the developer for a version compiled on Wheezy but have not had a reply.
  • To reiterate, do not upgrade libc6 to the version in Jessie!
  • The Windows version of Enpass 5.6 via wine: this worked initially but later produced an unexpected error and terminated.  I am now using wine staging and this seems to work.

Java 8

References:
https://wiki.debian.org/Java/Sun
and
https://wiki.debian.org/JavaPackage

Install the backported version of java-package
apt-get install -t wheezy-backports java-package
Download the latest JDK file from http://www.oracle.com/technetwork/java/javase/downloads/index.html

make-jpkg jdk-8u131-linux-x64.tar.gz # Should be done as normal user not root
 
# Then as root: 
dpkg -i oracle-java8-jdk_8u131_amd64.deb
update-java-alternatives -l
update-java-alternatives -s jdk-8-oracle-x64

The downloaded JabRef now works :-)

R

If version 2.15 has the packages you need, then just use this default version.

If it does not, then using R on a different computer is going to be more hassle-free than trying to install other versions.

R 3.1

Remove any R packages already installed, including lme4, Rcmdr, car

Add the following line to sources.list:

deb http://www.stats.bris.ac.uk/R//bin/linux/debian wheezy-cran3/

Install with

aptitude -t wheezy-cran3 install r-base r-base-dev r-base-core r-recommended

Problem: Rcmdr is not available

Solution yet to try:
library(devtools)
install_version("Rcmdr", "2.3-2")

R 3.2

This is a suggestion from http://jenzopr.github.io/bioinformatics/2016/05/03/r-wheezy-build.html.  I'm yet to try it because seems like too much hacking to bother with.

cd ~/Downloads
wget https://curl.haxx.se/download/curl-7.48.0.tar.gz
tar xfvz curl-7.48.0.tar.gz
cd curl-7.48.0
./configure --prefix=~/Downloads/curl
make
make install
 
cd /tmp
wget https://cran.r-project.org/src/base/R-3/R-3.3.0.tar.gz
tar xfvz R-3.3.0.tar.gz
cd R-3.3.0

export LDFLAGS=-L~/Downloads/curl/lib
export CPPFLAGS=-I~Downloads/curl/include

./configure --prefix=/prefix/to/r/3.3.0 --enable-R-shlib
make
make check
make install

Skype 5 and above

  • Native.
    • I was unable to compile the dependency libfontconfig1 version 2.11 or better on my broken Jessie/Wheezy system. 
    • Let's try it again...
    • apt-get build-dep libfontconfig1
  • Web
    • Skype web on Seamonkey - the cursor turns into a no-entry sign when hovered over the call button  
  • Wine
    • Downloading the newest Windows version via wine produces a never-ending 'Please wait while Skype is installed.  This may take a few minutes' which ultimately gives up with 'We are having problems connecting to the download server.  To download an alternative installer for Skype, click the Download button.' The download button just goes back to where we started.
    • https://appdb.winehq.org/objectManager.php?sClass=version&iId=26917 has a link for an MSI installer for version 6. Actually, this downloads version 7.38.  WineHQ warns this is very unreliable, often crashes, video does not work.  Am trying it anyway.
      wine msiexec /i SkypeSetup.msi 
      It didn't work.
      Here are the errors:
      fixme:heap:HeapSetInformation (nil) 1 (nil) 0
      fixme:advapi:RegisterEventSourceW ((null),L"FoxitCloudUpdateService"): stub
      fixme:advapi:ReportEventW (0xcafe4242,0x0004,0x0000,0x00000000,(nil),0x0002,0x00000000,0x74e9a8,(nil)): stub
      fixme:advapi:DeregisterEventSource (0xcafe4242) stub
      err:module:import_dll Library MSVCP140.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\skypert.dll") not found
      err:module:import_dll Library VCRUNTIME140.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\skypert.dll") not found
      err:module:import_dll Library api-ms-win-crt-runtime-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\skypert.dll") not found
      err:module:import_dll Library api-ms-win-crt-string-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\skypert.dll") not found
      err:module:import_dll Library api-ms-win-crt-utility-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\skypert.dll") not found
      err:module:import_dll Library api-ms-win-crt-environment-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\skypert.dll") not found
      err:module:import_dll Library api-ms-win-crt-time-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\skypert.dll") not found
      err:module:import_dll Library api-ms-win-crt-stdio-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\skypert.dll") not found
      err:module:import_dll Library api-ms-win-crt-convert-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\skypert.dll") not found
      err:module:import_dll Library api-ms-win-crt-heap-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\skypert.dll") not found
      err:module:import_dll Library api-ms-win-crt-math-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\skypert.dll") not found
      err:module:import_dll Library api-ms-win-crt-filesystem-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\skypert.dll") not found
      err:module:import_dll Library skypert.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\SkypeSkylib.dll") not found
      err:module:import_dll Library MSVCP140.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\SkypeSkylib.dll") not found
      err:module:import_dll Library VCRUNTIME140.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\SkypeSkylib.dll") not found
      err:module:import_dll Library api-ms-win-crt-runtime-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\SkypeSkylib.dll") not found
      err:module:import_dll Library api-ms-win-crt-string-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\SkypeSkylib.dll") not found
      err:module:import_dll Library api-ms-win-crt-stdio-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\SkypeSkylib.dll") not found
      err:module:import_dll Library api-ms-win-crt-heap-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\SkypeSkylib.dll") not found
      err:module:import_dll Library api-ms-win-crt-utility-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\SkypeSkylib.dll") not found
      err:module:import_dll Library api-ms-win-crt-convert-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\SkypeSkylib.dll") not found
      err:module:import_dll Library api-ms-win-crt-time-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\SkypeSkylib.dll") not found
      err:module:import_dll Library api-ms-win-crt-math-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\SkypeSkylib.dll") not found
      err:module:import_dll Library api-ms-win-crt-filesystem-l1-1-0.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\SkypeSkylib.dll") not found
      err:module:import_dll Library SkypeSkylib.dll (which is needed by L"C:\\Program Files\\Skype\\Phone\\Skype.exe") not found
      err:module:LdrInitializeThunk Main exe initialization for L"C:\\Program Files\\Skype\\Phone\\Skype.exe" failed, status c0000135
A better plan is to give up and use your and use your Android phone instead.

Thumbnail previewers for .djvu files in linux

These are gthumb, nautilus and Irfanview over wine.

After quite some time searching, writing a shell script and installing Irfanview over wine, I stumbled across a simple solution.  Just view the directory with Nautilus.  

In 2016 I found that gthumb works as well.

In 2021 geequie seems to work.

.

Good and bad blu-ray single write discs

For my own reference, based on my personal experience:

Good
  • Mirror Inkjet Printable BD-R 25Gb 1x-4x
Bad
  • Traxdata
  • Aone 4x white inkjet printable 4x 25Gb
    - less than 20.0Gb capacity, writing to 99.9 or 99.8% of 20.0Gb
  • Kodak DVD+RW to avoid (CAT 3936298), edge sectors are consistently bad according to DVDisaster
The BD-RE re-writable option
  • Usually writes to the end of the disc without running out of space
  • Often has CRC errors on checking with DVDisaster
  • Discs are twice the cost of single-write discs


.

    Linux internet connection sharing

    I used to do all the iptables / ipchains stuff and echo 1 > /proc/sys/net/ipv4/ip_forward.  But this is easier.

    firestarter

    Shell script method: http://tldp.org/HOWTO/IP-Masquerade-HOWTO/firewall-examples.html



    .

    Disabling the parallel port printer, to release the USB dongle to Virtualbox (doesn't work)

    /etc/init.d/cups stop /etc/init.d/lp stop rmmod lp rmmod parport

    UC Logic WP5540 linux kernel drivers

    Kernel
    In Device Drivers->Input Device Support
    enable Event interface
    In Device Drivers->Input Device Support->Tablets
    enable Aiptek 6000U/8000U and Genius G_PEN tablet support (USB)

    Driver
    The newest wizardpen driver is available from Martin Owens https://launchpad.net/~doctormo/+archive/xorg-wizardpen.  Synchronizing with the version control program bazaar (bzr) as described below is preferred.  If there are problems using bazaar then a .tar.gz archive can be downloaded from "view package details" and clicking the triangle.

    To install:
    bzr branch lp:wizardpen 
    bzr update wizardpen 
    cd wizardpen 
    ./autogen.sh 
    ./configure --with-xorg-module-dir=/usr/lib/xorg/modules 
    make 
    make install 

    A good guide for installing the driver and configuration files is at https://help.ubuntu.com/community/TabletSetupWizardpen. Older versions of the wizardpen driver were developed as described at http://code.google.com/p/linuxgenius/.  

    Tip If seamonkey or firefox misbehave, try disabling middlemouse functions in about:config.


    .

    ffmpeg with AAC on Ubuntu

    Finally managed to compile FFMPEG with AAC support on ubuntu/PS3 Intrepid Ibex Edition [Ref]. The "fix" was just to wait until the source code was repaired. That doesn't stop the programs from breaking again. Therefore, my pre-compiled packages are available here: ffmpeg-ps3.deb x264-ps3.deb The compilation procedure was as follows:
    su
    cd /usr/src
    aptitude install build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libtheora-dev libxvidcore4-dev
    git clone git://git.videolan.org/x264.git
    cd x264
    nice ./configure --enable-pic --enable-shared --disable-asm
    nice make
    aptitude purge x264 libx264-dev
    checkinstall --fstrans=no --install=yes --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`-0.0ubuntu1" --default
    
    cd /usr/src
    nice svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
    cd ffmpeg
    nice ./configure --enable-nonfree --enable-gpl --enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid
    nice make
    aptitude purge ffmpeg
    checkinstall --fstrans=no --install=yes --pkgname=ffmpeg --pkgversion "3:0.svn`date +%Y%m%d`-12ubuntu3" --default
    
    Install the resulting .deb's with dpkg -i .

    tif2xvid.sh

    # ./tif2xvid.sh script # change the framerate if you need to # framerate=50 # # # create raw mpeg4 video file nice ffmpeg -r framerate -i $1%06d.tif -vcodec mpeg4 -b 4000k -s 1280x720 -pass 1 -passlogfile $1-xvid.passlog -mbd rd -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -bf 2 -r 100 -y -r framerate $1.m4v nice ffmpeg -r framerate -i $1%06d.tif -vcodec mpeg4 -b 4000k -s 1280x720 -pass 2 -passlogfile $1-xvid.passlog -mbd rd -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -bf 2 -r 100 -y -r framerate $1.m4v rm $1-xvid.passlog # # add in audio # nice ffmpeg -i $1.m4v -vcodec copy -i $1.mp3 -acodec copy $1.avi # audio re-encoding parameters if needed # -acodec libmp3lame -ac 2 -ar 44100 -ab 224k # chmod og+rw * # mount /media/usbstick cp $1.mpg /media/usbstick/video umount /media/usbstick # boot-game-os

    djvu conversion scripts that I'm trying not to lose

    Posting scripts publicly on the web seems like a sensible way of not losing them when your hard drive burns down. I used to do my scanning with xsane and convert the files later. I have since discovered gscan2pdf. 1. pnm2cjb2.sh Combines all bitonal pnm files in the current directory into a bundled .djvu document The losslevel of 63 can be varied from 0 (lossless) to 200 (most lossy). As the value increases, compression artefacts arise. The document starts to look like it's been re-typed on a wobbly typewriter, and then it gets letters like 'a', 'e' and 'c' mixed-up. 2. pnm2c44.sh Combines all colour pnm files in the current directory into a bundled .djvu document. This is a less well-written, condensed script. You need to scan in your pnm files with the prefix that you'd like your output djvu file to have, and specify that on the command line. .