特殊:Badtitle/NS100:EasyUbuntuInstallationScript:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/EasyUbuntuInstallationScript}} {{Languages|UbuntuHelp:EasyUbuntuInstallationScript}} === Purpose === This is a a bash script that attempts to furt... |
小无编辑摘要 |
||
第5行: | 第5行: | ||
on a Ubuntu system, to make it even easier for the end-user than the "official" | on a Ubuntu system, to make it even easier for the end-user than the "official" | ||
[http://easyubuntu.freecontrib.org/get.html installation instructions] | [http://easyubuntu.freecontrib.org/get.html installation instructions] | ||
=== Steps to follow === | === Steps to follow === | ||
==== Short version ==== | ==== Short version ==== | ||
1. Open a terminal window | 1. Open a terminal window | ||
2. Paste the following commands (note that the wget cmd is one long line) | 2. Paste the following commands (note that the wget cmd is one long line) | ||
<pre><nowiki> | <pre><nowiki> | ||
cd /tmp | cd /tmp | ||
wget -O install_easyubuntu.sh "https://help.ubuntu.com/community/EasyUbuntuInstallationScript?action=AttachFile&do=get&target=install_easyubuntu.sh" | wget -O install_easyubuntu.sh "https://help.ubuntu.com/community/EasyUbuntuInstallationScript?action=AttachFile&do=get&target=install_easyubuntu.sh" | ||
sh install_easyubuntu.sh | sh install_easyubuntu.sh | ||
</nowiki></pre> | </nowiki></pre> | ||
3. Follow the prompts | 3. Follow the prompts | ||
==== The same, but more steps ==== | ==== The same, but more steps ==== | ||
1. Open your favorite text editor | 1. Open your favorite text editor | ||
2. Paste the code below | 2. Paste the code below | ||
<pre><nowiki> | <pre><nowiki> | ||
#!/bin/sh | #!/bin/sh | ||
# This is a a bash script that attempts to further automate the installation of EasyUbuntu | # This is a a bash script that attempts to further automate the installation of EasyUbuntu | ||
# on a Ubuntu system, so that the end-user have fewer steps to follow than | # on a Ubuntu system, so that the end-user have fewer steps to follow than | ||
第42行: | 第31行: | ||
# IH: 17-Oct-2006 - initial version | # IH: 17-Oct-2006 - initial version | ||
# | # | ||
# the name of the package (and executable) | # the name of the package (and executable) | ||
BIN=easyubuntu | BIN=easyubuntu | ||
# create a tmp folder | # create a tmp folder | ||
TMP=/tmp/easyubuntu_installer | TMP=/tmp/easyubuntu_installer | ||
mkdir -p $TMP | mkdir -p $TMP | ||
cd $TMP | cd $TMP | ||
# Check to see if easyubuntu is already installed | # Check to see if easyubuntu is already installed | ||
# we have to check for status installed, because it can be purged (or uninstalled) and then the status is | # we have to check for status installed, because it can be purged (or uninstalled) and then the status is | ||
第62行: | 第47行: | ||
exit 1 | exit 1 | ||
fi | fi | ||
# Hint to the user in case she gets a password prompt | # Hint to the user in case she gets a password prompt | ||
echo "Please, provide your password for sudo if prompted." | echo "Please, provide your password for sudo if prompted." | ||
# Download and import GPG key (if not done already) | # Download and import GPG key (if not done already) | ||
sudo apt-key list | grep -q "pub 1024D/969F3F57 2005-02-15" | sudo apt-key list | grep -q "pub 1024D/969F3F57 2005-02-15" | ||
第81行: | 第63行: | ||
exit $RETVAL | exit $RETVAL | ||
fi | fi | ||
cat easyubuntu_public_key.gpg | sudo apt-key add - | cat easyubuntu_public_key.gpg | sudo apt-key add - | ||
RETVAL=$? | RETVAL=$? | ||
第89行: | 第70行: | ||
fi | fi | ||
fi | fi | ||
# make a backup of sources | # make a backup of sources | ||
TIMESTAMP=`date +%Y%m%d_%H%M` | TIMESTAMP=`date +%Y%m%d_%H%M` | ||
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup_$TIMESTAMP | sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup_$TIMESTAMP | ||
# add the easyubuntu repository to sources (if not already there) | # add the easyubuntu repository to sources (if not already there) | ||
AUTO_REPO_TO_ADD="deb http://easyubuntu.cafuego.net main easyubuntu" | AUTO_REPO_TO_ADD="deb http://easyubuntu.cafuego.net main easyubuntu" | ||
第106行: | 第85行: | ||
sudo cp $TMP/repo /etc/apt/sources.list | sudo cp $TMP/repo /etc/apt/sources.list | ||
fi | fi | ||
# update the repos | # update the repos | ||
echo " ... Updating apt repositories cache. This might take a minute or two (output is redirected to a log file) ... " | echo " ... Updating apt repositories cache. This might take a minute or two (output is redirected to a log file) ... " | ||
# we will redirect the output to a log file for the sake of not cluttering the output | # we will redirect the output to a log file for the sake of not cluttering the output | ||
APT_LOG=$TMP/apt-get-update.log | APT_LOG=$TMP/apt-get-update.log | ||
第120行: | 第97行: | ||
exit $RETVAL | exit $RETVAL | ||
fi | fi | ||
# finally install EasyUbuntu | # finally install EasyUbuntu | ||
sudo apt-get install $BIN | sudo apt-get install $BIN | ||
第128行: | 第104行: | ||
exit $RETVAL | exit $RETVAL | ||
fi | fi | ||
echo "-----" | echo "-----" | ||
echo "Installation of $BIN is successful." | echo "Installation of $BIN is successful." | ||
# Do you want to launch EasyUbuntu ? | # Do you want to launch EasyUbuntu ? | ||
echo "Would you like to start EasyUbuntu now ?" | echo "Would you like to start EasyUbuntu now ?" | ||
第139行: | 第113行: | ||
break | break | ||
done | done | ||
if [ "Yes" = "$USER_SELECTION" ]; then | if [ "Yes" = "$USER_SELECTION" ]; then | ||
echo " ... starting 'sudo $BIN' ... " | echo " ... starting 'sudo $BIN' ... " | ||
sudo $BIN & | sudo $BIN & | ||
fi | fi | ||
exit $? | exit $? | ||
</nowiki></pre> | </nowiki></pre> | ||
3. Save it as the file /tmp/install_easyubuntu.sh | 3. Save it as the file /tmp/install_easyubuntu.sh | ||
4. Open a terminal and execute it | 4. Open a terminal and execute it | ||
<pre><nowiki> | <pre><nowiki> | ||
sh /tmp/install_easyubuntu.sh | sh /tmp/install_easyubuntu.sh | ||
</nowiki></pre> | </nowiki></pre> | ||
5. Follow the prompts | 5. Follow the prompts | ||
=== Notes === | === Notes === | ||
1. You might have to provide your password for sudo when administrative privileges are required | 1. You might have to provide your password for sudo when administrative privileges are required | ||
2. The script has only been tested in XUbuntu 6.06. Please, modify this page detailing your problems (and solutions) if you find any. | 2. The script has only been tested in XUbuntu 6.06. Please, modify this page detailing your problems (and solutions) if you find any. | ||
3. I am no shell guru, so feel free to modify the script where you feel it will make it better. But, please do not modify just for the sake of brevity. Clarity is much more important. | 3. I am no shell guru, so feel free to modify the script where you feel it will make it better. But, please do not modify just for the sake of brevity. Clarity is much more important. | ||
4. This script is practically the same as AutomatixInstallationScript, except it's applied for EasyUbuntu, not [[UbuntuHelp:Automatix| Automatix]] | 4. This script is practically the same as AutomatixInstallationScript, except it's applied for EasyUbuntu, not [[UbuntuHelp:Automatix| Automatix]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 16:54的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/EasyUbuntuInstallationScript }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/af | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|Afrikaans| [[::EasyUbuntuInstallationScript/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/ar | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|العربية| [[::EasyUbuntuInstallationScript/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/az | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|azərbaycanca| [[::EasyUbuntuInstallationScript/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/bcc | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|جهلسری بلوچی| [[::EasyUbuntuInstallationScript/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/bg | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|български| [[::EasyUbuntuInstallationScript/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/br | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|brezhoneg| [[::EasyUbuntuInstallationScript/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/ca | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|català| [[::EasyUbuntuInstallationScript/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/cs | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|čeština| [[::EasyUbuntuInstallationScript/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/de | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|Deutsch| [[::EasyUbuntuInstallationScript/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/el | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|Ελληνικά| [[::EasyUbuntuInstallationScript/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/es | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|español| [[::EasyUbuntuInstallationScript/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/fa | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|فارسی| [[::EasyUbuntuInstallationScript/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/fi | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|suomi| [[::EasyUbuntuInstallationScript/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/fr | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|français| [[::EasyUbuntuInstallationScript/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/gu | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|ગુજરાતી| [[::EasyUbuntuInstallationScript/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/he | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|עברית| [[::EasyUbuntuInstallationScript/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/hu | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|magyar| [[::EasyUbuntuInstallationScript/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/id | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|Bahasa Indonesia| [[::EasyUbuntuInstallationScript/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/it | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|italiano| [[::EasyUbuntuInstallationScript/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/ja | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|日本語| [[::EasyUbuntuInstallationScript/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/ko | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|한국어| [[::EasyUbuntuInstallationScript/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/ksh | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|Ripoarisch| [[::EasyUbuntuInstallationScript/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/mr | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|मराठी| [[::EasyUbuntuInstallationScript/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/ms | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|Bahasa Melayu| [[::EasyUbuntuInstallationScript/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/nl | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|Nederlands| [[::EasyUbuntuInstallationScript/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/no | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|norsk| [[::EasyUbuntuInstallationScript/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/oc | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|occitan| [[::EasyUbuntuInstallationScript/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/pl | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|polski| [[::EasyUbuntuInstallationScript/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/pt | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|português| [[::EasyUbuntuInstallationScript/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/ro | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|română| [[::EasyUbuntuInstallationScript/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/ru | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|русский| [[::EasyUbuntuInstallationScript/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/si | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|සිංහල| [[::EasyUbuntuInstallationScript/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/sq | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|shqip| [[::EasyUbuntuInstallationScript/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/sr | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|српски / srpski| [[::EasyUbuntuInstallationScript/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/sv | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|svenska| [[::EasyUbuntuInstallationScript/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/th | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|ไทย| [[::EasyUbuntuInstallationScript/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/tr | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|Türkçe| [[::EasyUbuntuInstallationScript/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/vi | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|Tiếng Việt| [[::EasyUbuntuInstallationScript/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/yue | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|粵語| [[::EasyUbuntuInstallationScript/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/zh | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|中文| [[::EasyUbuntuInstallationScript/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/zh-hans | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|中文(简体)| [[::EasyUbuntuInstallationScript/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:EasyUbuntuInstallationScript | UbuntuHelp:EasyUbuntuInstallationScript | {{#if: | :}}EasyUbuntuInstallationScript}}/zh-hant | • {{#if: UbuntuHelp:EasyUbuntuInstallationScript|中文(繁體)| [[::EasyUbuntuInstallationScript/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:EasyUbuntuInstallationScript|:EasyUbuntuInstallationScript|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :EasyUbuntuInstallationScript/zh | | {{#ifexist: EasyUbuntuInstallationScript/zh | | {{#ifeq: {{#titleparts:EasyUbuntuInstallationScript|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:EasyUbuntuInstallationScript|1|-1|}} | zh | | }}
Purpose
This is a a bash script that attempts to further automate the installation of EasyUbuntu on a Ubuntu system, to make it even easier for the end-user than the "official" installation instructions
Steps to follow
Short version
1. Open a terminal window 2. Paste the following commands (note that the wget cmd is one long line)
cd /tmp wget -O install_easyubuntu.sh "https://help.ubuntu.com/community/EasyUbuntuInstallationScript?action=AttachFile&do=get&target=install_easyubuntu.sh" sh install_easyubuntu.sh
3. Follow the prompts
The same, but more steps
1. Open your favorite text editor 2. Paste the code below
#!/bin/sh # This is a a bash script that attempts to further automate the installation of EasyUbuntu # on a Ubuntu system, so that the end-user have fewer steps to follow than # the "official" installation instructions found at # http://easyubuntu.freecontrib.org/get.html # # This script is published on the Ubunutu help wiki at # https://help.ubuntu.com/community/EasyUbuntuInstallationScript # # Version history # IH: 17-Oct-2006 - initial version # # the name of the package (and executable) BIN=easyubuntu # create a tmp folder TMP=/tmp/easyubuntu_installer mkdir -p $TMP cd $TMP # Check to see if easyubuntu is already installed # we have to check for status installed, because it can be purged (or uninstalled) and then the status is # Status: purge ok not-installed dpkg -s $BIN | grep -q "Status: install ok installed" > /dev/null 2>&1 if [ $? -eq 0 ]; then echo "ERROR: Package $BIN is already installed." echo " If you want to upgrade (or remove) the package use the standard apt-get/dpkg tools" echo " Installation is aborted." exit 1 fi # Hint to the user in case she gets a password prompt echo "Please, provide your password for sudo if prompted." # Download and import GPG key (if not done already) sudo apt-key list | grep -q "pub 1024D/969F3F57 2005-02-15" if [ $? -eq 0 ]; then echo "Note: easyubuntu signing key already in apt-key repo. Not adding it." else #wget http://easyubuntu.cafuego.net/969F3F57.gpg -O - | sudo apt-key add - wget http://easyubuntu.cafuego.net/969F3F57.gpg -O easyubuntu_public_key.gpg >/dev/null 2>&1 RETVAL=$? if [ $RETVAL -ne 0 ]; then echo "ERROR: Failed to download signing key. Aborting." echo " The cmd that caused the error was: " echo " wget http://easyubuntu.cafuego.net/969F3F57.gpg -O easyubuntu_public_key.gpg" exit $RETVAL fi cat easyubuntu_public_key.gpg | sudo apt-key add - RETVAL=$? if [ $RETVAL -ne 0 ]; then echo "ERROR: Failed to import signing key. Aborting." exit $RETVAL fi fi # make a backup of sources TIMESTAMP=`date +%Y%m%d_%H%M` sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup_$TIMESTAMP # add the easyubuntu repository to sources (if not already there) AUTO_REPO_TO_ADD="deb http://easyubuntu.cafuego.net main easyubuntu" grep -v ^# /etc/apt/sources.list | grep -q "$AUTO_REPO_TO_ADD" if [ $? -eq 0 ]; then echo "Note: easyubuntu repository already in /etc/apt/sources.list. Not adding it." else # sudo on redirection don't mesh well, so we need a buffer file > $TMP/repo cat /etc/apt/sources.list > $TMP/repo echo "$AUTO_REPO_TO_ADD" >> $TMP/repo sudo cp $TMP/repo /etc/apt/sources.list fi # update the repos echo " ... Updating apt repositories cache. This might take a minute or two (output is redirected to a log file) ... " # we will redirect the output to a log file for the sake of not cluttering the output APT_LOG=$TMP/apt-get-update.log sudo apt-get update > $APT_LOG 2>&1 RETVAL=$? if [ $RETVAL -ne 0 ]; then echo "ERROR: apt-get update failed." echo "Check the log by typing" echo " $ less $APT_LOG" exit $RETVAL fi # finally install EasyUbuntu sudo apt-get install $BIN RETVAL=$? if [ $RETVAL -ne 0 ]; then echo "ERROR: Installation of package $BIN failed." exit $RETVAL fi echo "-----" echo "Installation of $BIN is successful." # Do you want to launch EasyUbuntu ? echo "Would you like to start EasyUbuntu now ?" PS3="Choose (1-2): " select USER_SELECTION in Yes No do break done if [ "Yes" = "$USER_SELECTION" ]; then echo " ... starting 'sudo $BIN' ... " sudo $BIN & fi exit $?
3. Save it as the file /tmp/install_easyubuntu.sh 4. Open a terminal and execute it
sh /tmp/install_easyubuntu.sh
5. Follow the prompts
Notes
1. You might have to provide your password for sudo when administrative privileges are required 2. The script has only been tested in XUbuntu 6.06. Please, modify this page detailing your problems (and solutions) if you find any. 3. I am no shell guru, so feel free to modify the script where you feel it will make it better. But, please do not modify just for the sake of brevity. Clarity is much more important. 4. This script is practically the same as AutomatixInstallationScript, except it's applied for EasyUbuntu, not Automatix