├── Screenshot.png ├── readme.md └── elementary-script.sh /Screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ylrxeidx/elementary-script/HEAD/Screenshot.png -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # elementary-script 2 | 3 | A tiny script that helps you perform necessary tasks after you install elementary OS. 4 | 5 | ![Screenshot](https://raw.githubusercontent.com/ylrxeidx/elementary-script/master/Screenshot.png) 6 | 7 | ## elementary OS Version Compatibility 8 | 9 | elementary-script will always support the lastest stable version of elementary OS, which at the moment is **elementary OS 0.2 Luna**. 10 | 11 | ## Run 12 | 13 | Copy and paste the following line into a terminal window in order to run the script. 14 | 15 | ```bash 16 | wget -O /tmp/elementary-script.sh https://raw.githubusercontent.com/ylrxeidx/elementary-script/master/elementary-script.sh && chmod +x /tmp/elementary-script.sh && /tmp/elementary-script.sh 17 | ``` 18 | 19 | ## Donate 20 | 21 | [![Support via Gratipay](https://cdn.rawgit.com/gratipay/gratipay-badge/2.3.0/dist/gratipay.png)](https://gratipay.com/ylrxeidx/) 22 | 23 | ## License 24 | 25 | [The MIT License](http://ylrxeidx.mit-license.org/ "The MIT License") 26 | -------------------------------------------------------------------------------- /elementary-script.sh: -------------------------------------------------------------------------------- 1 | # Clear the Terminal 2 | clear 3 | 4 | # Zenity 5 | GUI=$(zenity --list --checklist \ 6 | --height 400 \ 7 | --width 800 \ 8 | --title="elementary-script" \ 9 | --text "Pick one or multiple Actions to execute." \ 10 | --column=Picks \ 11 | --column=Actions \ 12 | --column=Description \ 13 | FALSE "Update System" "Updates the package lists, the system packages and Applications." \ 14 | FALSE "Install Proprietary Drivers" "Installs the proprietary drivers." \ 15 | FALSE "Speed-Up Memory" "Installs preload and enables zRAM." \ 16 | FALSE "Install Ubuntu Restricted Extras" "Installs commonly used applications with restricted copyright (mp3, avi, mpeg, TrueType, Java, Flash, Codecs)." \ 17 | FALSE "Install Extra Multimedia Codecs" "Installs extra multimedia codecs." \ 18 | FALSE "Install Support for Encrypted DVD's" "Installs support for playing encrypted DVD's." \ 19 | FALSE "Install Support for Archive Formats" "Installs support for archive formats." \ 20 | FALSE "Install GDebi" "Installs GDebi. A simple tool to install deb files." \ 21 | FALSE "Install Google Chrome" "Installs Google Chrome. A browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier." \ 22 | FALSE "Install Chromium" "Installs Chromium. An open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web." \ 23 | FALSE "Install Firefox" "Installs Firefox. A free and open-source web browser." \ 24 | FALSE "Install Liferea" "Installs Liferea. a web feed reader/news aggregator that brings together all of the content from your favorite subscriptions into a simple interface that makes it easy to organize and browse feeds. Its GUI is similar to a desktop mail/newsclient, with an embedded graphical browser." \ 25 | FALSE "Install VLC" "Installs VLC. A free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVDs, Audio CDs, VCDs, and various streaming protocols." \ 26 | FALSE "Install Transmission" "Installs the Transmission BitTorrent client." \ 27 | FALSE "Install Atom" "Installs Atom. A hackable text editor for the 21st Century." \ 28 | FALSE "Install Sublime Text 3" "Installs Sublime Text 3. A sophisticated text editor for code, markup and prose." \ 29 | FALSE "Install LibreOffice" "Installs LibreOffice. A powerful office suite." \ 30 | FALSE "Fix Broken Packages" "Fixes the broken packages." \ 31 | FALSE "Clean-Up Junk" "Removes unnecessary packages and the local repository of retrieved package files." \ 32 | --separator=', '); 33 | 34 | # Update System Action 35 | if [[ $GUI == *"Update System"* ]] 36 | then 37 | clear 38 | echo "Updating system..." 39 | echo "" 40 | sudo apt-get -y update 41 | sudo apt-get -y upgrade 42 | fi 43 | 44 | # Install Proprietary Drivers Action 45 | if [[ $GUI == *"Install Proprietary Drivers"* ]] 46 | then 47 | clear 48 | echo "Installing Proprietary Drivers..." 49 | echo "" 50 | sudo jockey-gtk 51 | fi 52 | 53 | # Speed-Up Memory Action 54 | if [[ $GUI == *"Speed-Up Memory"* ]] 55 | then 56 | clear 57 | echo "Speeding-up Memory..." 58 | echo "" 59 | sudo apt-get -y install preload 60 | sudo apt-get -y install zram-config 61 | fi 62 | 63 | # Install Ubuntu Restricted Extras Action 64 | if [[ $GUI == *"Install Ubuntu Restricted Extras"* ]] 65 | then 66 | clear 67 | echo "Installing Ubuntu Restricted Extras..." 68 | echo "" 69 | sudo apt-get -y install ubuntu-restricted-extras 70 | fi 71 | 72 | # Install Extra Multimedia Codecs Action 73 | if [[ $GUI == *"Install Extra Multimedia Codecs"* ]] 74 | then 75 | clear 76 | echo "Installing Extra Multimedia Codecs..." 77 | echo "" 78 | sudo apt-get -y install libavcodec-extra-53 79 | fi 80 | 81 | # Install Support for Encrypted DVD's Action 82 | if [[ $GUI == *"Install Support for Encrypted DVD's"* ]] 83 | then 84 | clear 85 | echo "Installing Support for Encrypted DVD's..." 86 | echo "" 87 | sudo apt-get -y install libdvdread4 88 | sudo /usr/share/doc/libdvdread4/install-css.sh 89 | fi 90 | 91 | # Install Support for Archive Formats Action 92 | if [[ $GUI == *"Install Support for Archive Formats"* ]] 93 | then 94 | clear 95 | echo "Installing Support for Archive Formats" 96 | echo "" 97 | sudo apt-get -y install zip unzip p7zip p7zip-rar rar unrar 98 | fi 99 | 100 | # Install GDebi Action 101 | if [[ $GUI == *"Install GDebi"* ]] 102 | then 103 | clear 104 | echo "Installing GDebi..." 105 | echo "" 106 | sudo apt-get -y install gdebi 107 | fi 108 | 109 | # Install Google Chrome Action 110 | if [[ $GUI == *"Install Google Chrome"* ]] 111 | then 112 | clear 113 | echo "Installing Google Chrome..." 114 | echo "" 115 | if [[ $(uname -m) == "i686" ]] 116 | then 117 | wget -O /tmp/google-chrome-stable_current_i386.deb https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb 118 | sudo dpkg -i /tmp/google-chrome-stable_current_i386.deb 119 | elif [[ $(uname -m) == "x86_64" ]] 120 | then 121 | wget -O /tmp/google-chrome-stable_current_amd64.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 122 | sudo dpkg -i /tmp/google-chrome-stable_current_amd64.deb 123 | fi 124 | fi 125 | 126 | # Install Chromium 127 | if [[ $GUI == *"Install Chromium"* ]] 128 | then 129 | clear 130 | echo "Installing Chromium..." 131 | echo "" 132 | sudo apt-get -y install chromium-browser 133 | fi 134 | 135 | # Install Firefox Action 136 | if [[ $GUI == *"Install Firefox"* ]] 137 | then 138 | clear 139 | echo "Installing Firefox..." 140 | echo "" 141 | sudo apt-get -y install firefox 142 | fi 143 | 144 | # Install Liferea Action 145 | if [[ $GUI == *"Install Liferea"* ]] 146 | then 147 | clear 148 | echo "Installing Liferea..." 149 | echo "" 150 | sudo apt-get -y install liferea 151 | fi 152 | 153 | # Install VLC Action 154 | if [[ $GUI == *"Install VLC"* ]] 155 | then 156 | clear 157 | echo "Installing VLC..." 158 | echo "" 159 | sudo apt-get -y install vlc 160 | fi 161 | 162 | # Install Transmission Action 163 | if [[ $GUI == *"Install Transmission"* ]] 164 | then 165 | clear 166 | echo "Installing Transmission..." 167 | echo "" 168 | sudo apt-get -y install transmission 169 | fi 170 | 171 | # Install Atom Action 172 | if [[ $GUI == *"Install Atom"* ]] 173 | then 174 | clear 175 | echo "Installing Atom..." 176 | echo "" 177 | sudo add-apt-repository -y ppa:webupd8team/atom 178 | sudo apt-get -y update 179 | sudo apt-get -y install atom 180 | fi 181 | 182 | # Install Sublime Text 3 Action 183 | if [[ $GUI == *"Install Sublime Text 3"* ]] 184 | then 185 | clear 186 | echo "Installing Sublime Text 3..." 187 | echo "" 188 | sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 189 | sudo apt-get -y update 190 | sudo apt-get -y install sublime-text-installer 191 | fi 192 | 193 | # Install LibreOffice Action 194 | if [[ $GUI == *"Install LibreOffice"* ]] 195 | then 196 | clear 197 | echo "Installing LibreOffice..." 198 | echo "" 199 | sudo apt-get -y install libreoffice 200 | fi 201 | 202 | # Fix Broken Packages Action 203 | if [[ $GUI == *"Fix Broken Packages"* ]] 204 | then 205 | clear 206 | echo "Fixing the broken packages..." 207 | echo "" 208 | sudo apt-get -y -f install 209 | fi 210 | 211 | # Clean-Up Junk Action 212 | if [[ $GUI == *"Clean-Up Junk"* ]] 213 | then 214 | clear 215 | echo "Cleaning-up junk..." 216 | echo "" 217 | sudo apt-get -y autoremove 218 | sudo apt-get -y autoclean 219 | fi 220 | 221 | # Notification 222 | clear 223 | notify-send -i utilities-terminal elementary-script "All tasks ran successfully!" 224 | --------------------------------------------------------------------------------