1486
Users / Re: MD won't play audio from read-only NAS share
« on: July 26, 2010, 08:19:42 pm »
Check the thread I mentioned above for your foreign character issues.
J.
J.
Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#!/bin/sh
cd ~
echo **Fix the sources.list file order
echo ****Remove the local and LinuxMCE repo
sed -e '/deb-cache/d' -e '/deb.linuxmce.org/d' -i /etc/apt/sources.list
echo ****Re-add the local and LinuxMCE repo to the top of sources.list
sed -e '1ideb file:\/usr\/pluto\/deb-cache .\/\ndeb http:\/\/deb.linuxmce.org\/ubuntu\/ intrepid beta2' -i /etc/apt/sources.list
echo **Begin rsa key creation
echo ****Create the auto gen file
cat >repo-key <<EOF
%echo Generating RSA key for local repo
Key-Type: RSA
Key-Length: 1024
Name-Real: LinuxMCE
Name-Comment: deb-cache repository
Name-Email: me@here.com
Expire-Date: 0
%commit
%echo done
EOF
echo ****Generate the key
gpg --batch --gen-key repo-key
echo ****Export the public key to a file 'local-repo-pub-key'
gpg --output local-repo-pub-key --armor --export $(gpg --list-keys | awk '/LinuxMCE/{print x}; {x=substr($2,7,8)}')
echo ****Add the key to aptitude
apt-key add local-repo-pub-key
echo **Update the Packages File and generate Release and Release.gpg
echo ****Update the Packages
cd /usr/pluto/deb-cache
dpkg-scanpackages . /dev/null > Packages
gzip -9c Packages > Packages.gz
echo ****Generate the 'Release' file
cat >Release <<EOF
Archive: intrepid
Origin: Ubuntu
Label: Local Repository
Architecture: i386
EOF
printf 'MD5Sum: '$(md5sum Packages | cut --delimiter=' ' --fields=1)' %16d Packages\n' \
$(wc --bytes Packages | cut --delimiter=' ' --fields=1) >> Release
printf ' '$(md5sum Packages.gz | cut --delimiter=' ' --fields=1)' %16d Packages.gz' \
$(wc --bytes Packages.gz | cut --delimiter=' ' --fields=1) >> Release
echo ****Generate the 'Release.gpg' file
gpg --yes --armor --detach-sign --output Release.gpg Release
echo **Update the package lists
apt-get update
echo **Repository is ready for use.
where is the preference file located and what is the file name for it?
The code is available, so anyone can build it. This is for a preconfigured version for a specific web pad.
-Thom
The Code:
---------
I wrote some code to support this release, as per the GPL, the code is here:
TabletCFG - http://www.localeconcept.com/pub/PadOrbiter/TabletCFG-1.0.0.tar.gz
webdt_buttons - http://www.localeconcept.com/pub/PadOrbiter/webdt_buttons-1.0.0.tar.gz
there is a good example in the database section of those books i linked in irc, specifically c++ gui programming with qt4 should get you up and running allthough you may need to grab the qtmysql driver. Tschak pointed me in the right direction and it was just a matter of moving the .so from one place to another.