Are you a spammer

Please note, that the first 3 posts you make, will need to be approved by a forum Administrator or Moderator before they are publicly viewable.
Each application to join this forum is checked at the Stop Forum Spam website. If the email or IP address appears there when checked, you will not be allowed to join this forum.
If you get past this check and post spam on this forum, your posts will be immediately deleted and your account inactivated.You will then be banned and your IP will be submitted to your ISP, notifying them of your spamming. So your spam links will only be seen for an hour or two at most. In other words, don't waste your time and ours.

This forum is for the use and enjoyment of the members and visitors looking to learn about and share information regarding the topics listed. It is not a free-for-all advertising venue. Your time would be better spent pursuing legitimate avenues of promoting your websites.

Current Boot script

Source code I have written openly published for your viewing pleasure.


Current Boot script

Postby TheeMahn » Fri Oct 19, 2007 12:42 pm

This is the script that comes up on boot asking if you wish to install acrobat etc.

Code: Select all
#!/bin/bash
#browser capabilty

if [ ! -e "/usr/bin/zenity" ]; then
   sudo apt-get install -y zenity
fi
#Music?
zenity --question --title "Ultimate Edition" --text "Would you like to listen to music as Ultimate downloads and installs software for you?  Not exactly killer music but free, OK to listen, cancel to install without.";
if [ "$?" = "0" ]; then
      sudo apt-get install -y --force-yes --allow-unauthenticated timidity | zenity --width=400 --height=100 --progress --pulsate --auto-close --title "Installing Timidity Music Player..."
TIMIDITY="1";
fi

if [ $TIMIDITY = "1" ]; then
timidity -Os -A130 -p3 -Ei5 -module=2 -q20 -T140 /usr/share/ultimate/playlist.m3u&`zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --info --text="In order to have full browser capabilty Flash and Acrobat reader need to be installed (in memory) if you plan to browse the internet.  They are not pre-installed due to license agreements.  If you do this now you will still have to do it again after installation.  You will have to manually install Java after installation due to a bug in Java.  You may optionally install video drivers, but do not restart until the distro is installed.  If you would like to play around with beryl it is recommended to install the drivers and after installation hit ctrl-alt-backspace to test them." --title="Ultimate Edition"`;
else
zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --info --text="In order to have full browser capabilty Flash and Acrobat reader need to be installed (in memory) if you plan to browse the internet.  They are not pre-installed due to license agreements.  If you do this now you will still have to do it again after installation.  You will have to manually install Java after installation due to a bug in Java.  You may optionally install video drivers, but do not restart until the distro is installed.  If you would like to play around with beryl it is recommended to install the drivers and after installation hit ctrl-alt-backspace to test them." --title="Ultimate Edition";
fi

choice="$(zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --title "Ultimate Edition" --text "Browser capability" --list --checklist --column "Install" --column "Plugin" true 'Video_Drivers' true 'Adobe_Flash' true 'Adobe_Acrobat')"

#Flash Player
Adobe_Flash() {
wget http://repoubuntusoftware.info/flashplayer-nonfree_9.0.31.0+3v1ubuntu0_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --auto-close --title="Downloading Flash Player..."
sudo xterm -e gdebi flashplayer-nonfree_9.0.31.0+3v1ubuntu0_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --pulsate --auto-close --title "Installing Flash Player..."
rm flashplayer-nonfree_9.0.31.0+3v1ubuntu0_i386.deb
wget http://repoubuntusoftware.info/flashplugin-nonfree_9.0.31.0.2ubuntu2+3v1ubuntu0_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --width=400 --height=100 --progress --auto-close --title="Downloading Flash Plugin..."
sudo xterm -e gdebi  flashplugin-nonfree_9.0.31.0.2ubuntu2+3v1ubuntu0_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --width=400 --height=100 --progress --pulsate --auto-close --title "Installing Flash Plugin..."
rm flashplugin-nonfree_9.0.31.0.2ubuntu2+3v1ubuntu0_i386.deb
}

#Video Drivers
Envy() {
#wget http://repoubuntusoftware.info/envy_0.9.4-0ubuntu4_all.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --auto-close --title="Downloading Envy..."
#sudo xterm -e gdebi envy_0.9.4-0ubuntu4_all.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --pulsate --auto-close --title "Installing Envy..."
#rm envy_0.9.4-0ubuntu4_all.deb
envy -g
}
#Sun Java
#Sun_Java() {
#wget http://repoubuntusoftware.info/sun-java6-bin_6-00-2ubuntu2_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --auto-close --title="Downloading Java..."
#sudo xterm -e gdebi sun-java6-bin_6-00-2ubuntu2_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --pulsate --auto-close --title "Installing Sun Java..."
#rm sun-java6-bin_6-00-2ubuntu2_i386.deb
#JRE
#wget http://repoubuntusoftware.info/sun-java6-jre_6-00-2ubuntu2_all.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --auto-close --title="Downloading Java JRE..."
#sudo xterm -e gdebi sun-java6-jre_6-00-2ubuntu2_all.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --pulsate --auto-close --title "Installing Sun Java JRE..."
#rm sun-java6-jre_6-00-2ubuntu2_all.deb
#plugin
#wget http://repoubuntusoftware.info/sun-java6-plugin_6-00-2ubuntu2_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --auto-close --title="Downloading Java browser plugin..."
#sudo xterm -e gdebi sun-java6-plugin_6-00-2ubuntu2_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --pulsate --auto-close --title "Installing Sun Java plugin..."
#rm sun-java6-plugin_6-00-2ubuntu2_i386.deb
#}

Acroread(){
#reader
wget http://repoubuntusoftware.info/acroread_7.0.9-0.0_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --auto-close --title="Downloading Adobe Acrobat reader..."
sudo xterm -e gdebi acroread_7.0.9-0.0_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --pulsate --auto-close --title "Installing Adobe Acrobat reader..."
rm acroread_7.0.9-0.0_i386.deb
#script
wget http://repoubuntusoftware.info/acroread-escript_7.0.9-0.0_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --auto-close --title="Downloading Adobe Acrobat escript..."
sudo xterm -e gdebi acroread-escript_7.0.9-0.0_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --pulsate --auto-close --title "Installing Adobe Acrobat escript..."
rm acroread-escript_7.0.9-0.0_i386.deb
#Plugin
wget http://repoubuntusoftware.info/acroread-plugins_7.0.9-0.0_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --auto-close --title="Downloading Adobe Acrobat plugin..."
sudo xterm -e gdebi acroread-plugins_7.0.9-0.0_i386.deb 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --width=400 --height=100 --progress --pulsate --auto-close --title "Installing Adobe Acrobat plugin..."
rm acroread-plugins_7.0.9-0.0_i386.deb
}

## Install...

if echo "$choice" | grep "Adobe_Flash" ; then
        Adobe_Flash
      fi
#if echo "$choice" | grep "Sun Java" ; then
#        Sun_Java
#      fi
if echo "$choice" | grep "Adobe_Acrobat" ; then
        Acroread
      fi
if echo "$choice" | grep "Video_Drivers" ; then
        envy -g
`zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --info --text="Installation is now complete press ctrl-alt-backspace to test your video drivers." --title="Ultimate Edition"`;
else
`zenity --window-icon=/usr/share/ultimate/ubuntu_ico.png --info --text="Installation is now complete or canceled." --title="Ultimate Edition"`;
      fi
killall timidity
exit 0
Attachments
bootscript.sh
Bootscript
(8.7 KiB) Downloaded 337 times
Home of Ultimate Edition. Got a question? Please review the F.A.Q. Browse the How to section.

Main O/S: Builder of O/S Guess.
Mainboard: ASUS Hero VI (AM4)
CPU: AMD 1700X water cooled (Deepcool Captain Genome Cooling tower)
Ram: 16 GB GSkill Trident RGB Series Dual Channel DDR4 3200
Video: MSI RX470 8GB Gaming card.
Hard Disks: MASSIVE on the network.(10 Gigabit, 48 port, multiple servers)
Monitors: Dual 4K 43" LG, 4K Samsung 28"
750 Watt modular PSU (Rosswell)
1100 Watt Amp & 4 X 600 Watt speakers

Servers in the basement.
User avatar
TheeMahn
Site Admin
 
Posts: 4201
Joined: Fri Oct 12, 2007 10:02 am
Location: U.S.A.
Age: 53
Operating System: Ultimate Edition Developer

Return to Programming

Who is online

Users browsing this forum: No registered users and 7 guests