chambo622 wrote:stdanko wrote:if i have a 64 bit amd what should i do install 64bit 1.8 if i do that how do i get the gamer stuff or should i just download and install 1.8 gamers edition you posted. any help would be great im kinda new to this but right now i have normal ubuntu 8.04 but this looks much better so any help would be great....
Hi, welcome to the forums. Frankly its really your preference. 64 bit has the advantage of better speed/security/stability. However some apps and eyecandy are only for 32 bit and 32 bit has more preinstalled. If you into games or just want the extra apps from Ultamatix, I say go for 32 bit gamers. Ultimate Edition is great you can't go wrong.
I will break this down to you and will show you what you do not see yet, I have been playing with "libsnack"...
all applications I write if they do not do so to reflect 64 bit, I provide an example, I have posted this elsewhere...
w/o a doubt I correct things to make things happen, be it 64 or 32...
- Code: Select all
function wopinstall {
dpkg_check
if test -f worldofpadman.run
then
./worldofpadman.run 2>&1 | zenity --window-icon=/usr/share/ultamatix/pixmaps/wop.png --width=600 --height=100 --progress --pulsate --auto-close --title "Installing World Of Padman..."
else
wget -c http://thilo.kickchat.com/download/worldofpadman.run 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultamatix/pixmaps/wop.png --width=600 --height=100 --progress --auto-close --title="Downloading World Of Padman..."
sudo chmod +x worldofpadman.run
./worldofpadman.run 2>&1 | zenity --window-icon=/usr/share/ultamatix/pixmaps/wop.png --width=600 --height=100 --progress --pulsate --auto-close --title "Installing World Of Padman..."
fi
#create Icon since they cant seem to do it right
#since we have root we need to discover normal username so we can create the shortcut & set proper permissions
NU=$(cat /etc/passwd | grep 1000 | cut -d: -f1)
#set proper permissions
sudo chown -R $NU:$NU "/usr/local/games/WoP/"
if [ "$architecture" = "x86_64" ]; then
sudo echo "[Desktop Entry]
Name=World Of Padman
Comment=World of padman
Exec=/usr/local/games/WoP/wop-engine.x86_64
Icon=/usr/local/games/WoP/wop.png
Terminal=false
Type=Application
Categories=Application;Game;" >> /usr/share/applications/worldofpadman.desktop
else
sudo echo "[Desktop Entry]
Name=World Of Padman
Comment=World of padman
Exec=/usr/local/games/WoP/wop-engine.i386
Icon=/usr/local/games/WoP/wop.png
Terminal=false
Type=Application
Categories=Application;Game;" >> /usr/share/applications/worldofpadman.desktop
fi
}
function wopremove {
#created custom uninstaller since thiers does not work. kicks back "Could not find a usable uninstall program. Aborting."
NU=$(cat /etc/passwd | grep 1000 | cut -d: -f1)
#create directory incase they installed it elsewhere, no sense in scraping all thier games
sudo mkdir /usr/local/games/WoP/ 2>/dev/null
sudo mkdir /home/$NU/WoP 2>/dev/null
#remove it
echo "Removing World Of Padman please wait ..."
sudo rm -R /home/$NU/WoP 2>/dev/null
sudo rm -R /usr/local/games/WoP/ 2>/dev/null
#remove shortcut created earlier
sudo rm /usr/share/applications/worldofpadman.desktop
echo "Done."
}
What happens in the above code? Read my comments not my job, but still make it so you do not have to worry about it.
if [ "$architecture" = "x86_64" ]; then
tests to see if u use 32 or 64 bit architecture and takes care of business accordingly. What I have is 10X of anything you can download (funny I have not shared with my admin), some features are not implemented yet, note the word yet.
Before I am done you will all be programmers...
Lets play with python...
- Code: Select all
import wave, ossaudiodev
sound = wave.open('saw.wav' , 'rb')
fr = sound.getframerate()
nc = sound.getnchannels()
nf = sound.getnframes()
data = sound.readframes(nf)
sound.close()
dsp = ossaudiodev.open('/dev/dsp','w')
dsp.setparameters(ossaudiodev.AFMT_S16_NE, nc, fr)
dsp.write(data)
dsp.close()
import wave, ossaudiodev
sound = wave.open('saw.wav' , 'rb')
fr = sound.getframerate()
nc = sound.getnchannels()
nf = sound.getnframes()
data = sound.readframes(nf)
sound.close()
## take to the player for program 5
dsp = ossaudiodev.open('/dev/dsp','w')
dsp.setparameters(ossaudiodev.AFMT_S16_NE, nc, fr)
dsp.write(data)
dsp.close()
saw wave attached... code executed in the same folder will yield the same results.
Now we are doing python... MP3 integration is coming.
Just my 2 cents,
TheeMahn