#!/bin/sh # test we are root if [ "$(id -u)" != "0" ]; then exit 1 fi export CFLAGS="-mtune=generic -Os -pipe" export CXXFLAGS="-mtune=generic -Os -pipe -fno-exceptions " P=recordmydesktop V=0.4.0 SRC=$P-$V USER=`cat /etc/sysconfig/tcuser` LIST="compiletc submitqc alsa-dev libtheora-dev libvorbis-dev libXext-dev libXdamage-dev popt-dev" for Z in $LIST do su -c "tce-load -i $Z" $USER done cd /tmp su -c "/usr/local/bin/wget -nc --no-check-certificate \ https://github.com/Enselic/$P/releases/download/v$V/$SRC.tar.gz" $USER tar xvf $SRC*gz cd $SRC ./configure --prefix=/usr/local --enable-oss=no --enable-jack=no --with-x # Audio driver that will be used: ALSA # Compile with Jack support: Disabled make -j4 # seconds make install-strip DESTDIR=/tmp/$P cd /tmp # doc ##### mkdir -p $P-doc/usr/local/share/ mv $P/usr/local/share/man $P-doc/usr/local/share/ # main ###### mkdir -p $P/usr/local/share/doc/$P echo 'GPL v 2' > $P/usr/local/share/doc/$P/COPYING # TCZ them ####### LIST="$P $P-doc " for Z in $LIST do mksquashfs $Z $Z.tcz md5sum $Z.tcz > $Z.tcz.md5.txt cd $Z find . -not -type d | cut -c 2- | sort > /tmp/$Z.tcz.list cd /tmp done ls -hal echo 'Title: recordmydesktop-doc.tcz Description: man page Version: 0.4.0 Author: John Varouhakis (now inactive) Martin Nordholts (current) Original-site: https://github.com/Enselic/recordmydesktop Copying-policy: GPL v 2 Size: 8.0K Extension_by: aus9 @linuxquestions.org Tags: record screen Comments: - Change-log: 2024/12/15 v 0.4.0 on 15x Current: 2024/12/15 ' > $P-doc.tcz.info echo 'man-db.tcz' > $P-doc.tcz.dep echo 'Title: recordmydesktop.tcz Description: CLI screen and/or audio recorder Version: 0.4.0 Author: John Varouhakis (now inactive) Martin Nordholts (current) Original-site: https://github.com/Enselic/recordmydesktop Copying-policy: GPL v 2 Size: 44K Extension_by: aus9 @linuxquestions.org Tags: record screen Comments: Normal output is out.ogv which can be played back in qmplay2 or vlc etc To quit recording press Ctrl + c Highly recommend you read man page in doc TCE Pulseaudio snd_hda_intel users, if you have an error "Couldn't open PCM device hw:0,0" Implies HDMI is device=0 not analog, suggest fix by adding to grub.cfg blacklist=snd_hda_intel and creating an executable $HOME/.local/bin/sound contents= #!/bin/sh sudo modprobe snd_hda_intel enable=0 Plus create a normal file under $HOME/.X.d/sound with contents= /home/tc/.local/bin/sound & Change to suit localusername. Full reboot please to test # If mic capture is needed, please test first. Press the space bar to activate mic input under the correct control in alsamixer. Record 5 sec test $ arecord -d 5 test.wav Playback by $ aplay test.wav Change-log: 2014/01/19 v 0.3.8.1 on 9x (patham9) Current: 2024/12/15 v 0.4.0 on 15x (aus9) ' > $P.tcz.info readelf -d $P/usr/local/bin/* | grep 'NEEDED' #libSM.so.6]libSM #libICE.so.6]libICE #libasound.so.2]libasound #libtheora.so.0]libtheora #libogg.so.0]libogg libtheora #libvorbisenc.so.2]libvorbisfile.so.3]#libvorbis.so.0]libvorbis #libXdamage.so.1]libXdamage #libXfixes.so.3]libXfixes libXdamage #libXext.so.6]libXext #libX11.so.6]libX11 libXext #libpopt.so.0]popt echo 'libSM.tcz libICE.tcz libasound.tcz libtheora.tcz libvorbis.tcz libXdamage.tcz libXext.tcz popt.tcz ' > $P.tcz.dep submitqc --libs rm -rf *.zsync