- Download the latest .deb from Guitar Pro's website.
- install ia32-libs by typing:
sudo apt-get install ia32-libs
- Now you need to edit the .deb file to remove the gksu dependency.
- To do that you must create a script first.
- To create the script open a terminal and type:
vi debscript
- This will create a new file named debscript.
- debscript is just an example name. You can use whatever name you want.
- Now type or copy/paste the following:
#!/bin/bash
if [[ -z "$1" ]]; then
echo "Syntax: $0 debfile"
exit 1
fi
DEBFILE="$1"
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
OUTPUT=`basename "$DEBFILE" .deb`.modfied.deb
if [[ -e "$OUTPUT" ]]; then
echo "$OUTPUT exists."
rm -r "$TMPDIR"
exit 1
fi
dpkg-deb -x "$DEBFILE" "$TMPDIR"
dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN
if [[ ! -e "$TMPDIR"/DEBIAN/control ]]; then
echo DEBIAN/control not found.
rm -r "$TMPDIR"
exit 1
fi
CONTROL="$TMPDIR"/DEBIAN/control
MOD=`stat -c "%y" "$CONTROL"`
vi "$CONTROL"
if [[ "$MOD" == `stat -c "%y" "$CONTROL"` ]]; then
echo Not modfied.
else
echo Building new deb...
dpkg -b "$TMPDIR" "$OUTPUT"
fi
rm -r "$TMPDIR"
type :w
type :q
- Now its time to edit the .deb file.
- Move the script in the same folder as the Guitar Pro .deb file.
- You now need to make debscript executable.
- Open a terminal and type:
chmod +x debscript
- Then type:
debscript gp6-full-linux-r11201.deb
- Now delete gksu.
- To delete gksu move next to gksu and press x.
- To save the edited .deb file hit Esc and
type :w
- Exit by
typing :q
- A new file named gp6-full-linux-r11201.modfied.deb will be created.
- Do not close the terminal until the new .deb file is created.
- You can now install Guitar Pro 6.
- In the same terminal or in a new one type:
sudo dpkg -i gp6-full-linux-r11201.modfied.deb
- That's it! Enjoy!
No comments:
Post a Comment