├── .github └── FUNDING.yml ├── LICENSE ├── README.md ├── bin └── cake.png └── src ├── daltonmenezes ├── README.md ├── atom-install │ ├── README.md │ ├── fedora │ │ └── recipe.sh │ └── ubuntu │ │ └── recipe.sh ├── mac-theme-remove │ ├── README.md │ └── ubuntu │ │ └── recipe.sh ├── mac-theme │ ├── README.md │ ├── bin │ │ ├── gnosierra.zip │ │ ├── mac-os-sierra.jpg │ │ └── thumb.jpg │ └── ubuntu │ │ └── recipe.sh ├── nebulosa-theme-remove │ ├── README.md │ └── ubuntu │ │ └── recipe.sh ├── nebulosa-theme │ ├── README.md │ ├── bin │ │ ├── El-General-Gnome117.tar.gz │ │ ├── nebulosa-ghost.jpg │ │ └── thumb.jpg │ └── ubuntu │ │ └── recipe.sh ├── node-install │ ├── README.md │ └── ubuntu │ │ └── recipe.sh ├── stylishbuntu-theme-remove │ ├── README.md │ └── ubuntu │ │ └── recipe.sh ├── stylishbuntu-theme │ ├── README.md │ ├── bin │ │ └── thumb.jpg │ └── ubuntu │ │ └── recipe.sh ├── telegram-install │ ├── README.md │ ├── fedora │ │ └── recipe.sh │ └── ubuntu │ │ └── recipe.sh ├── telegram-remove │ ├── README.md │ └── ubuntu │ │ └── recipe.sh ├── watchers-fix │ ├── README.md │ ├── fedora │ │ └── recipe.sh │ └── ubuntu │ │ └── recipe.sh └── yarn-install │ ├── README.md │ └── ubuntu │ └── recipe.sh └── uni └── template ├── README.md ├── fedora └── recipe.sh └── ubuntu └── recipe.sh /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | patreon: daltonmenezes 2 | custom: padrim.com.br/daltonmenezes 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 UNI 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 |

3 | Recipes for UNI logo 4 |


5 |

6 | 7 |

Recipes for UNI :cake:

8 | 9 |

10 | 11 | fund issues on issuehunt 12 | 13 | 14 | 15 | become a patron or sponsor 16 | 17 | 18 | donate on paypal 19 | 20 | 21 | 22 | get uni 23 | 24 | 25 | 26 | License - MIT 27 | 28 |

29 |
30 | 31 | > This is the main recipes repository for [UNI](https://github.com/uni-linux/uni).
32 | > You can create your own or use one of the available recipes in here. 33 | 34 | > Recipes are bash scripts to do anything. Be it to install programs and resolve dependencies or fix system problems. Anything you want and can do with bash scripts. 35 | 36 |
37 | 38 | # Available Recipes 39 | 40 | ## Apps 41 | - [atom-install](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/atom-install) by [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes)
42 | Installs the latest version of Atom Editor from their official website and resolve dependency issues. 43 | 44 | - [telegram-install](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/telegram-install) by [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes)
45 | Installs the latest version of Telegram from their official website. 46 | 47 | - [node-install](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/node-install) by [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes)
48 | Installs the nodejs **latest LTS available version** and npm. 49 | 50 | - [yarn-install](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/yarn-install) by [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes)
51 | Installs the latest version of Yarn. 52 | 53 | ## Fixes 54 | - [watchers-fix](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/watchers-fix) by [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes)
55 | Fixes the `ENOSPC: SYSTEM LIMIT FOR NUMBER OF FILE WATCHERS REACHED` issue. 56 | 57 | ## Themes 58 | - [stylishbuntu-theme](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/stylishbuntu-theme) by [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes)
59 | 60 | - [nebulosa-theme](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/nebulosa-theme) by [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes)
61 | 62 | - [mac-theme](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/mac-theme) by [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 63 | 64 |
65 | 66 | # Contributing 67 | 68 | As I said, recipes are bash script files. You can do anything you want. 69 | 70 | So, if you want create your own recipes and publish it here you must: 71 | - Fork this repository! 72 | - Create your feature branch: git checkout -b my-new-recipe 73 | - Take [this template](https://github.com/uni-linux/recipes/tree/master/src/uni/template) as a base and keep a title, description and usage in your README.md file. The `uni bake` command will search in: `your-user-folder-name/your-recipe-folder-name` 74 | - Create a folder in `/src/` named with your github user name and create a separated folder inside it for each recipe created by you 75 | - Create a README.md inside your user-name folder and make it as your main recipes profile page, e.g: [See the example](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 76 | - Commit your changes: git commit -m 'Add user-name/recipe-name recipe' 77 | - Push to the branch: git push origin my-new-recipe 78 | - Send your pull request. 79 | 80 | After your pull request is merged, you can safely delete your branch. 81 | 82 | If you have doubt yet about how to create recipes, just take a look [in here](https://github.com/uni-linux/recipes/tree/master/src) and check how the things works. 83 | -------------------------------------------------------------------------------- /bin/cake.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-linux/recipes/2425bc0fb5b3ffe5fda2df6c8cfa907970532c1a/bin/cake.png -------------------------------------------------------------------------------- /src/daltonmenezes/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Dalton Menezes 4 | > username: daltonmenezes 5 | 6 | [![Webiste](https://img.shields.io/badge/website--blue.svg)](https://daltonmenezes.github.io/) 7 | [![Github](https://img.shields.io/badge/github--blue.svg)](https://www.github.com/daltonmenezes) 8 | 9 |
10 | Welcome to my recipes page. Take everything you need.
11 | Any problem, please report me in one of the channels on the badges above. 12 | 13 |
14 | 15 | # My Recipes 16 | 17 | ## Apps 18 | - [atom-install](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/atom-install)
19 | Installs the latest version of Atom Editor from their official website and resolve dependency issues. 20 | 21 | - [telegram-install](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/telegram-install)
22 | Installs the latest version of Telegram from their official website. 23 | 24 | - [node-install](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/node-install)
25 | Installs the nodejs 6.x and npm. 26 | 27 | - [yarn-install](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/yarn-install)
28 | Installs the latest version of Yarn. 29 | 30 | ## Themes 31 | - [stylishbuntu-theme](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/stylishbuntu-theme)
32 | 33 | - [nebulosa-theme](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/nebulosa-theme)
34 | 35 | - [mac-theme](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/mac-theme)
36 | 37 | # Fixes 38 | - [watchers-fix](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes/watchers-fix)
39 | Fixes the `ENOSPC: SYSTEM LIMIT FOR NUMBER OF FILE WATCHERS REACHED` issue. -------------------------------------------------------------------------------- /src/daltonmenezes/atom-install/README.md: -------------------------------------------------------------------------------- 1 | # Atom Install 2 | This recipe is for Atom Editor installation. 3 | 4 | It will install always the latest version of Atom Editor from their official website and resolve dependency issues. 5 | 6 | # Usage 7 | | Command | Support | 8 | | --- | --- | 9 | | `uni bake atom-install` | Ubuntu and based distributions, Fedora | 10 | 11 | # Author 12 | [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 13 | -------------------------------------------------------------------------------- /src/daltonmenezes/atom-install/fedora/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | wget https://atom.io/download/rpm -O atom.rpm 3 | sudo dnf install -y atom.rpm 4 | rm -f atom.rpm 5 | -------------------------------------------------------------------------------- /src/daltonmenezes/atom-install/ubuntu/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | wget https://atom.io/download/deb -O atom.deb 3 | sudo dpkg -i atom.deb 4 | rm -f atom.deb 5 | sudo apt-get -f install -y 6 | -------------------------------------------------------------------------------- /src/daltonmenezes/mac-theme-remove/README.md: -------------------------------------------------------------------------------- 1 | # Mac Theme Remove 2 | 3 | This recipe will remove: 4 | 5 | - MacBuntu icons 6 | - MacBuntu theme 7 | - MacOS X Sierra wallpaper 8 | - Plank dock 9 | - Gnosierra Plank theme 10 | - Albert spotlight 11 | 12 | # Usage 13 | 14 | | Command | Support | 15 | | --- | --- | 16 | | `uni bake mac-theme-remove` | Ubuntu 16.04 (Unity) | 17 | 18 | # Author 19 | 20 | [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 21 | -------------------------------------------------------------------------------- /src/daltonmenezes/mac-theme-remove/ubuntu/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | user_os=`cat /etc/os-release | grep -oP '(?<=^ID=)(.*)'` 3 | 4 | function albertSpotlightRemove { 5 | pkill -9 albert 6 | sudo apt-get purge albert -y 7 | rm -rf $HOME/.config/albert/ 8 | rm -f $HOME/.config/autostart/albert.desktop 9 | } 10 | 11 | function macbuntuRemove { 12 | sudo apt-get purge macbuntu-os-icons-lts-v7 -y 13 | sudo apt-get purge macbuntu-os-ithemes-lts-v7 -y 14 | } 15 | 16 | function wallpaperRemove { 17 | sudo rm -f /usr/share/backgrounds/mac-os-sierra-uni-theme.jpg 18 | } 19 | 20 | function plankThemeRemove { 21 | rm -rf $HOME/.local/share/plank/themes/Gnosierra/ 22 | } 23 | 24 | function plankRemove { 25 | pkill -9 plank 26 | sudo apt-get purge plank -y 27 | rm -f $HOME/.config/autostart/plank.desktop 28 | rm -rf $HOME/.config/plank/ 29 | plankThemeRemove 30 | } 31 | 32 | function unityConfig { 33 | gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance' 34 | gsettings set org.gnome.desktop.interface icon-theme 'ubuntu-mono-dark' 35 | gsettings set org.gnome.desktop.background picture-uri "file:///usr/share/backgrounds/warty-final-ubuntu.png" 36 | gsettings set com.canonical.Unity.Launcher launcher-position Left 37 | gsettings set com.canonical.Unity always-show-menus false 38 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode "0" 39 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ edge-responsiveness "5" 40 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ icon-size "48" 41 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ num-launchers "1" 42 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ panel-opacity "1.0" 43 | setsid unity 44 | } 45 | 46 | function ubuntuMacThemeRemove { 47 | albertSpotlightRemove 48 | macbuntuRemove 49 | plankRemove 50 | wallpaperRemove 51 | unityConfig 52 | } 53 | 54 | if [[ "$user_os" == "ubuntu" ]]; then 55 | ubuntuMacThemeRemove 56 | sudo apt-get autoremove -y 57 | else 58 | printf "\n\n${STYLE_RED}\nSorry, for now this theme only works in ${RESET_STYLE}Ubuntu with Unity.\n\n" 59 | exit 0 60 | fi 61 | -------------------------------------------------------------------------------- /src/daltonmenezes/mac-theme/README.md: -------------------------------------------------------------------------------- 1 | # Mac Theme 2 | 3 | This recipe will install and configure: 4 | 5 | - MacBuntu icons 6 | - MacBuntu theme 7 | - MacOS X Sierra wallpaper 8 | - Plank dock 9 | - Gnosierra Plank theme 10 | - Albert spotlight `{Shift + Space}` for use it. 11 | 12 |

13 | Mac Theme Thumbnail 14 |

15 | 16 | # Usage 17 | 18 | | Command | Support | 19 | | --- | --- | 20 | | `uni bake mac-theme` | Ubuntu 16.04 (Unity) | 21 | 22 | # Uninstallation 23 | 24 | | Command | 25 | | --- | 26 | | `uni bake mac-theme-remove` | 27 | 28 | # Author 29 | 30 | [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 31 | -------------------------------------------------------------------------------- /src/daltonmenezes/mac-theme/bin/gnosierra.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-linux/recipes/2425bc0fb5b3ffe5fda2df6c8cfa907970532c1a/src/daltonmenezes/mac-theme/bin/gnosierra.zip -------------------------------------------------------------------------------- /src/daltonmenezes/mac-theme/bin/mac-os-sierra.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-linux/recipes/2425bc0fb5b3ffe5fda2df6c8cfa907970532c1a/src/daltonmenezes/mac-theme/bin/mac-os-sierra.jpg -------------------------------------------------------------------------------- /src/daltonmenezes/mac-theme/bin/thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-linux/recipes/2425bc0fb5b3ffe5fda2df6c8cfa907970532c1a/src/daltonmenezes/mac-theme/bin/thumb.jpg -------------------------------------------------------------------------------- /src/daltonmenezes/mac-theme/ubuntu/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | user_os=`cat /etc/os-release | grep -oP '(?<=^ID=)(.*)'` 3 | 4 | function albertSpotlightConfig { 5 | mkdir -p $HOME/.config/albert/ 6 | touch $HOME/.config/albert/albert.conf | printf "[General]\nalwaysOnTop=true\ndisplayIcons=true\ndisplayScrollbar=false\ndisplayShadow=true\nhideOnClose=false\nhideOnFocusLoss=true\nhotkey=Shift+Space\nitemCount=5\nshowCentered=true\nshowTray=false\ntheme=Bright\nwarnAboutNonGraciousQuit=false" > $HOME/.config/albert/albert.conf 7 | mkdir -p $HOME/.config/autostart/ 8 | touch $HOME/.config/autostart/albert.desktop 9 | albertDesktopEntry="[Desktop Entry]\nType=Application\nExec=albert\nHidden=false\nNoDisplay=false\nX-GNOME-Autostart-enabled=true\nName[pt_BR]=albert\nName=albert" 10 | printf "$albertDesktopEntry" > $HOME/.config/autostart/albert.desktop 11 | } 12 | 13 | function albertSpotlightInstall { 14 | if [[ ! -f "/usr/bin/albert" ]]; then 15 | sudo apt-get install albert -y 16 | albertSpotlightConfig 17 | albert &>/dev/null & 18 | else 19 | pkill -9 albert 20 | albertSpotlightConfig 21 | albert &>/dev/null & 22 | fi 23 | } 24 | 25 | function macbuntuConfig { 26 | gsettings set org.gnome.desktop.interface gtk-theme 'MacBuntu-OS' 27 | gsettings set org.gnome.desktop.interface icon-theme 'MacBuntu-OS' 28 | gsettings set org.gnome.desktop.interface cursor-theme 'DMZ-Black' 29 | } 30 | 31 | function macbuntuInstall { 32 | if [[ ! -d "/usr/share/themes/MacBuntu-OS-X" ]]; then 33 | sudo add-apt-repository ppa:noobslab/macbuntu -y 34 | sudo apt-get update 35 | sudo apt-get install macbuntu-os-icons-lts-v7 -y 36 | sudo apt-get install macbuntu-os-ithemes-lts-v7 -y 37 | macbuntuConfig 38 | else 39 | macbuntuConfig 40 | fi 41 | } 42 | 43 | function wallpaperConfig { 44 | gsettings set org.gnome.desktop.background picture-uri "file:///usr/share/backgrounds/mac-os-sierra-uni-theme.jpg" 45 | } 46 | 47 | function wallpaperInstall { 48 | if [[ ! -f "/usr/share/backgrounds/mac-os-sierra-uni-theme.jpg" ]]; then 49 | wget 'https://github.com/uni-linux/recipes/raw/master/src/daltonmenezes/mac-theme/bin/mac-os-sierra.jpg' -O .mac-os-sierra-uni-theme.jpg 50 | sudo mv -fu .mac-os-sierra-uni-theme.jpg /usr/share/backgrounds/mac-os-sierra-uni-theme.jpg 51 | wallpaperConfig 52 | else 53 | wallpaperConfig 54 | fi 55 | } 56 | 57 | function plankThemeConfig { 58 | gsettings set net.launchpad.plank.dock.settings:/net/launchpad/plank/docks/dock1/ theme "Gnosierra" 59 | } 60 | 61 | function plankThemeInstall { 62 | if [[ ! -d "$HOME/.local/share/plank/themes/Gnosierra/" ]]; then 63 | wget 'https://github.com/uni-linux/recipes/raw/master/src/daltonmenezes/mac-theme/bin/gnosierra.zip' -O .gnosierra.zip 64 | unzip .gnosierra.zip -d $HOME/.local/share/plank/themes/ 65 | plankThemeConfig 66 | else 67 | plankThemeConfig 68 | fi 69 | } 70 | 71 | function plankConfig { 72 | gsettings set net.launchpad.plank.dock.settings:/net/launchpad/plank/docks/dock1/ icon-size "50" 73 | gsettings set net.launchpad.plank.dock.settings:/net/launchpad/plank/docks/dock1/ zoom-enabled "true" 74 | gsettings set net.launchpad.plank.dock.settings:/net/launchpad/plank/docks/dock1/ zoom-percent "150" 75 | } 76 | 77 | function plankInstall { 78 | if [[ ! -f "/usr/bin/plank" ]]; then 79 | sudo apt-get install plank -y 80 | mkdir -p $HOME/.config/autostart/ 81 | touch $HOME/.config/autostart/plank.desktop 82 | desktopEntry="[Desktop Entry]\nType=Application\nExec=plank\nHidden=false\nNoDisplay=false\nX-GNOME-Autostart-enabled=true\nName[pt_BR]=plank\nName=plank" 83 | printf "$desktopEntry" > $HOME/.config/autostart/plank.desktop 84 | touch $HOME/.config/plank/dock1/launchers/trash.dockitem | printf "[PlankDockItemPreferences]\nLauncher=docklet://trash" > $HOME/.config/plank/dock1/launchers/trash.dockitem 85 | plankConfig 86 | plankThemeInstall 87 | plankThemeConfig 88 | plank &>/dev/null & 89 | else 90 | pkill -9 plank 91 | plankConfig 92 | plankThemeConfig 93 | plank &>/dev/null & 94 | fi 95 | } 96 | 97 | function unityConfig { 98 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ edge-responsiveness "0.20000000000000001110" 99 | gsettings set com.canonical.Unity.Launcher launcher-position Bottom 100 | gsettings set com.canonical.Unity always-show-menus true 101 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode "0" 102 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode "1" 103 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ icon-size "10" 104 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ num-launchers "1" 105 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ panel-opacity "0.82857142857142851433" 106 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ panel-opacity-maximized-toggle "true" 107 | setsid unity 108 | } 109 | 110 | function ubuntuInstall { 111 | albertSpotlightInstall 112 | macbuntuInstall 113 | unityConfig 114 | plankInstall 115 | wallpaperInstall 116 | } 117 | 118 | if [[ "$user_os" == "ubuntu" ]]; then 119 | ubuntuInstall 120 | else 121 | printf "\n\n${STYLE_RED}\nSorry, for now this theme only works in ${RESET_STYLE}Ubuntu with Unity.\n\n" 122 | exit 0 123 | fi 124 | -------------------------------------------------------------------------------- /src/daltonmenezes/nebulosa-theme-remove/README.md: -------------------------------------------------------------------------------- 1 | # Nebulosa Theme Remove 2 | 3 | This recipe will remove: 4 | 5 | - El General icons 6 | - Flatabulous theme 7 | - Nebulosa Ghost wallpaper 8 | - Plank dock 9 | 10 | Note: Plank only will be removed in Ubuntu 16.04 and only if you don't have it. Other distributions Plank will be ignored during this recipe uninstallation. 11 | 12 | # Usage 13 | 14 | | Command | Support | 15 | | --- | --- | 16 | | `uni bake nebulosa-theme-remove` | Ubuntu 16.04 (Unity), Elementary OS Loki | 17 | 18 | # Author 19 | 20 | [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 21 | -------------------------------------------------------------------------------- /src/daltonmenezes/nebulosa-theme-remove/ubuntu/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | user_os=`cat /etc/os-release | grep -oP '(?<=^ID=)(.*)'` 3 | 4 | function elGeneralIconsRemove { 5 | sudo rm -rf /usr/share/icons/ElGeneral 6 | } 7 | 8 | function wallpaperRemove { 9 | sudo rm -rf /usr/share/backgrounds/nebulosa-uni-theme.jpg 10 | } 11 | 12 | function flatabulousThemeRemove { 13 | sudo apt-get remove flatabulous-theme -y 14 | } 15 | 16 | function plankRemove { 17 | pkill -9 plank 18 | sudo apt-get purge plank -y 19 | rm -f $HOME/.config/autostart/plank.desktop 20 | rm -rf $HOME/.config/plank/ 21 | } 22 | 23 | function unityConfig { 24 | gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance' 25 | gsettings set org.gnome.desktop.interface icon-theme 'ubuntu-mono-dark' 26 | gsettings set org.gnome.desktop.background picture-uri "file:///usr/share/backgrounds/warty-final-ubuntu.png" 27 | gsettings set com.canonical.Unity.Launcher launcher-position Left 28 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode "0" 29 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ edge-responsiveness "5" 30 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ icon-size "48" 31 | } 32 | 33 | function ubuntuNebulosaThemeRemove { 34 | flatabulousThemeRemove 35 | plankRemove 36 | elGeneralIconsRemove 37 | wallpaperRemove 38 | unityConfig 39 | } 40 | 41 | function ubuntuBasedDistrosNebulosaThemeRemove { 42 | elGeneralIconsRemove 43 | wallpaperRemove 44 | } 45 | 46 | if [[ "$user_os" == "ubuntu" ]]; then 47 | ubuntuNebulosaThemeRemove 48 | sudo apt-get autoremove -y 49 | else 50 | ubuntuBasedDistrosNebulosaThemeRemove 51 | sudo apt-get autoremove -y 52 | fi -------------------------------------------------------------------------------- /src/daltonmenezes/nebulosa-theme/README.md: -------------------------------------------------------------------------------- 1 | # Nebulosa Theme 2 | 3 | This recipe will install and configure: 4 | 5 | - El General icons 6 | - Flatabulous theme 7 | - Nebulosa Ghost wallpaper 8 | - Plank dock 9 | 10 | Note: Plank only will be installed in Ubuntu 16.04 and only if you don't have it. Other distributions Plank will be ignored during this recipe installation. 11 | 12 |

13 | Nebulosa Theme Thumbnail 14 |

15 | 16 | # Usage 17 | 18 | | Command | Support | No Support | 19 | | --- | --- | --- | 20 | | `uni bake nebulosa-theme` | Ubuntu 16.04 (Unity), Elementary OS Loki | Xfce | 21 | 22 | # Uninstallation 23 | 24 | | Command | 25 | | --- | 26 | | `uni bake nebulosa-theme-remove` | 27 | 28 | # Author 29 | 30 | [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 31 | -------------------------------------------------------------------------------- /src/daltonmenezes/nebulosa-theme/bin/El-General-Gnome117.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-linux/recipes/2425bc0fb5b3ffe5fda2df6c8cfa907970532c1a/src/daltonmenezes/nebulosa-theme/bin/El-General-Gnome117.tar.gz -------------------------------------------------------------------------------- /src/daltonmenezes/nebulosa-theme/bin/nebulosa-ghost.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-linux/recipes/2425bc0fb5b3ffe5fda2df6c8cfa907970532c1a/src/daltonmenezes/nebulosa-theme/bin/nebulosa-ghost.jpg -------------------------------------------------------------------------------- /src/daltonmenezes/nebulosa-theme/bin/thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-linux/recipes/2425bc0fb5b3ffe5fda2df6c8cfa907970532c1a/src/daltonmenezes/nebulosa-theme/bin/thumb.jpg -------------------------------------------------------------------------------- /src/daltonmenezes/nebulosa-theme/ubuntu/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | user_os=`cat /etc/os-release | grep -oP '(?<=^ID=)(.*)'` 3 | os_version=`cat /etc/os-release | grep -oP '(?<=^VERSION_ID=").*(?=\")'` 4 | 5 | function elGeneralConfig { 6 | gsettings set org.gnome.desktop.interface icon-theme 'ElGeneral' 7 | } 8 | 9 | function elGeneralInstall { 10 | if [[ ! -d "/usr/share/icons/ElGeneral" ]]; then 11 | wget 'https://github.com/uni-linux/recipes/raw/master/src/daltonmenezes/nebulosa-theme/bin/El-General-Gnome117.tar.gz' -O .el-general.tar.gz 12 | tar -xzf .el-general.tar.gz 13 | sudo rm -rf /usr/share/icons/ElGeneral 14 | sudo mv El-General-Gnome/ElGeneral /usr/share/icons/ 15 | rm -f .el-general.tar.gz 16 | rm -rf El-General-Gnome 17 | elGeneralConfig 18 | else 19 | elGeneralConfig 20 | fi 21 | } 22 | 23 | function flatabulousConfig { 24 | gsettings set org.gnome.desktop.interface gtk-theme 'Flatabulous' 25 | } 26 | 27 | function flatabulousInstall { 28 | if [[ ! -d "/usr/share/themes/Flatabulous" ]]; then 29 | sudo add-apt-repository ppa:noobslab/themes -y 30 | sudo apt-get update 31 | sudo apt-get install flatabulous-theme -y 32 | flatabulousConfig 33 | else 34 | flatabulousConfig 35 | fi 36 | } 37 | 38 | function wallpaperConfig { 39 | gsettings set org.gnome.desktop.background picture-uri "file:///usr/share/backgrounds/nebulosa-uni-theme.jpg" 40 | } 41 | 42 | function wallpaperInstall { 43 | if [[ ! -f "/usr/share/backgrounds/nebulosa-uni-theme.jpg" ]]; then 44 | wget 'https://github.com/uni-linux/recipes/raw/master/src/daltonmenezes/nebulosa-theme/bin/nebulosa-ghost.jpg' -O .nebulosa-uni-theme.jpg 45 | sudo mv -fu .nebulosa-uni-theme.jpg /usr/share/backgrounds/nebulosa-uni-theme.jpg 46 | wallpaperConfig 47 | else 48 | wallpaperConfig 49 | fi 50 | } 51 | 52 | function plankConfig { 53 | gsettings set net.launchpad.plank.dock.settings:/net/launchpad/plank/docks/dock1/ icon-size "50" 54 | gsettings set net.launchpad.plank.dock.settings:/net/launchpad/plank/docks/dock1/ theme "Transparent" 55 | gsettings set net.launchpad.plank.dock.settings:/net/launchpad/plank/docks/dock1/ zoom-enabled "true" 56 | gsettings set net.launchpad.plank.dock.settings:/net/launchpad/plank/docks/dock1/ zoom-percent "150" 57 | } 58 | 59 | function plankInstall { 60 | if [[ ! -f "/usr/bin/plank" ]]; then 61 | sudo apt-get install plank -y 62 | mkdir -p $HOME/.config/autostart/ 63 | touch $HOME/.config/autostart/plank.desktop 64 | desktopEntry="[Desktop Entry]\nType=Application\nExec=plank\nHidden=false\nNoDisplay=false\nX-GNOME-Autostart-enabled=true\nName[pt_BR]=plank\nName=plank" 65 | printf "$desktopEntry" > $HOME/.config/autostart/plank.desktop 66 | mkdir -p $HOME/.config/plank/dock1/launchers/ 67 | touch $HOME/.config/plank/dock1/launchers/trash.dockitem | printf "[PlankDockItemPreferences]\nLauncher=docklet://trash" > $HOME/.config/plank/dock1/launchers/trash.dockitem 68 | plankConfig 69 | plank &>/dev/null & 70 | else 71 | pkill -9 plank 72 | plankConfig 73 | plank &>/dev/null & 74 | fi 75 | } 76 | 77 | function unityConfig { 78 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ edge-responsiveness "0.20000000000000001110" 79 | gsettings set com.canonical.Unity.Launcher launcher-position Bottom 80 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode "0" 81 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode "1" 82 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ icon-size "10" 83 | } 84 | 85 | function ubuntuInstall { 86 | elGeneralInstall 87 | flatabulousInstall 88 | wallpaperInstall 89 | plankInstall 90 | unityConfig 91 | } 92 | 93 | function ubuntuBasedDistrosInstall { 94 | elGeneralInstall 95 | wallpaperInstall 96 | } 97 | 98 | if [[ "$user_os" == "ubuntu" && $os_version < "16.04" ]]; then 99 | sudo add-apt-repository ppa:ricotz/docky -y 100 | sudo apt-get update 101 | fi 102 | 103 | if [[ "$user_os" == "ubuntu" ]]; then 104 | ubuntuInstall 105 | else 106 | ubuntuBasedDistrosInstall 107 | fi 108 | -------------------------------------------------------------------------------- /src/daltonmenezes/node-install/README.md: -------------------------------------------------------------------------------- 1 | # Node Install 2 | This recipe is for nodejs **latest LTS available version** and npm installation. 3 | 4 | # Usage 5 | 6 | | Command | Support | 7 | | --- | --- | 8 | | `uni bake node-install` | Ubuntu and based distributions | 9 | 10 | # Author 11 | 12 | [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 13 | -------------------------------------------------------------------------------- /src/daltonmenezes/node-install/ubuntu/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | has_curl=$(which curl) 3 | 4 | function curlInstall { 5 | sudo apt-get install curl -y 6 | } 7 | 8 | function getLatestLTSVersion { 9 | lts_version=$(curl -sL https://nodejs.org/en/ | grep -Po '(data-version="v(\d+))' | grep -Po '(\d+)' | head -1) 10 | } 11 | 12 | function nodeInstall { 13 | curl -sL "https://deb.nodesource.com/setup_${lts_version:=12}.x" | sudo -E bash - 14 | sudo apt-get install -y nodejs 15 | clear 16 | } 17 | 18 | if [[ ! $has_curl ]]; then 19 | curlInstall 20 | fi 21 | 22 | getLatestLTSVersion 23 | nodeInstall 24 | 25 | has_node=$(which node) 26 | 27 | if [[ $has_node ]]; then 28 | node_version=`node -v` 29 | npm_version=`npm -v` 30 | printf "Node ${node_version} and NPM ${npm_version} were installed with success! :D\n" 31 | else 32 | printf "Sorry, the Node installation is failed. Please, try again. :(\n" 33 | fi -------------------------------------------------------------------------------- /src/daltonmenezes/stylishbuntu-theme-remove/README.md: -------------------------------------------------------------------------------- 1 | # Stylishbuntu Theme Remove 2 | 3 | This recipe will remove: 4 | 5 | - El General icons 6 | - Flatabulous theme 7 | 8 | # Usage 9 | 10 | | Command | Support | 11 | | --- | --- | 12 | | `uni bake stylishbuntu-theme-remove` | Ubuntu 16.04 (Unity) | 13 | 14 | # Author 15 | 16 | [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 17 | -------------------------------------------------------------------------------- /src/daltonmenezes/stylishbuntu-theme-remove/ubuntu/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | user_os=`cat /etc/os-release | grep -oP '(?<=^ID=)(.*)'` 3 | 4 | function flatabulousThemeRemove { 5 | sudo apt-get remove flatabulous-theme -y 6 | } 7 | 8 | function elGeneralIconsRemove { 9 | sudo rm -rf /usr/share/icons/ElGeneral 10 | } 11 | 12 | function unityConfig { 13 | gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance' 14 | gsettings set org.gnome.desktop.interface icon-theme 'ubuntu-mono-dark' 15 | gsettings set org.gnome.desktop.background picture-uri "file:///usr/share/backgrounds/warty-final-ubuntu.png" 16 | gsettings set com.canonical.Unity.Launcher launcher-position Left 17 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode "0" 18 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ edge-responsiveness "5" 19 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ icon-size "48" 20 | } 21 | 22 | function stylishBuntuThemeRemove { 23 | flatabulousThemeRemove 24 | elGeneralIconsRemove 25 | unityConfig 26 | } 27 | 28 | 29 | if [[ "$user_os" == "ubuntu" ]]; then 30 | stylishBuntuThemeRemove 31 | sudo apt-get autoremove -y 32 | else 33 | printf "\n\n${STYLE_RED}\nSorry, this theme only works in ${RESET_STYLE}Ubuntu 16.04 with Unity.\n\n" 34 | exit 0 35 | fi -------------------------------------------------------------------------------- /src/daltonmenezes/stylishbuntu-theme/README.md: -------------------------------------------------------------------------------- 1 | # Stylishbuntu Theme 2 | 3 | This recipe will install and configure: 4 | 5 | - El General icons 6 | - Flatabulous theme 7 | 8 |

9 | Stylishbuntu Theme Thumbnail 10 |

11 | 12 | # Usage 13 | 14 | | Command | Support | 15 | | --- | --- | 16 | | `uni bake stylishbuntu-theme` | Ubuntu 16.04 (Unity) | 17 | 18 | # Uninstallation 19 | 20 | | Command | 21 | | --- | 22 | | `uni bake stylishbuntu-theme-remove` | 23 | 24 | # Author 25 | 26 | [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 27 | -------------------------------------------------------------------------------- /src/daltonmenezes/stylishbuntu-theme/bin/thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-linux/recipes/2425bc0fb5b3ffe5fda2df6c8cfa907970532c1a/src/daltonmenezes/stylishbuntu-theme/bin/thumb.jpg -------------------------------------------------------------------------------- /src/daltonmenezes/stylishbuntu-theme/ubuntu/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | user_os=`cat /etc/os-release | grep -oP '(?<=^ID=)(.*)'` 3 | 4 | function elGeneralConfig { 5 | gsettings set org.gnome.desktop.interface icon-theme 'ElGeneral' 6 | } 7 | 8 | function elGeneralInstall { 9 | if [[ ! -d "/usr/share/icons/ElGeneral" ]]; then 10 | wget 'https://github.com/uni-linux/recipes/raw/master/src/daltonmenezes/nebulosa-theme/bin/El-General-Gnome117.tar.gz' -O .el-general.tar.gz 11 | tar -xzf .el-general.tar.gz 12 | sudo rm -rf /usr/share/icons/ElGeneral 13 | sudo mv El-General-Gnome/ElGeneral /usr/share/icons/ 14 | rm -f .el-general.tar.gz 15 | rm -rf El-General-Gnome 16 | elGeneralConfig 17 | else 18 | elGeneralConfig 19 | fi 20 | } 21 | 22 | function flatabulousConfig { 23 | gsettings set org.gnome.desktop.interface gtk-theme 'Flatabulous' 24 | } 25 | 26 | function flatabulousInstall { 27 | if [[ ! -d "/usr/share/themes/Flatabulous" ]]; then 28 | sudo add-apt-repository ppa:noobslab/themes -y 29 | sudo apt-get update 30 | sudo apt-get install flatabulous-theme -y 31 | flatabulousConfig 32 | else 33 | flatabulousConfig 34 | fi 35 | } 36 | 37 | function wallpaperConfig { 38 | gsettings set org.gnome.desktop.background picture-uri "file:///usr/share/backgrounds/warty-final-ubuntu.png" 39 | } 40 | 41 | 42 | function unityConfig { 43 | gsettings set com.canonical.Unity.Launcher launcher-position Left 44 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode "0" 45 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ edge-responsiveness "5" 46 | gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ icon-size "48" 47 | } 48 | 49 | function ubuntuInstall { 50 | elGeneralInstall 51 | flatabulousInstall 52 | wallpaperConfig 53 | unityConfig 54 | } 55 | 56 | if [[ "$user_os" == "ubuntu" ]]; then 57 | ubuntuInstall 58 | else 59 | printf "\n\n${STYLE_RED}\nSorry, for now this theme only works in ${RESET_STYLE}Ubuntu 16.04 with Unity.\n\n" 60 | exit 0 61 | fi -------------------------------------------------------------------------------- /src/daltonmenezes/telegram-install/README.md: -------------------------------------------------------------------------------- 1 | # Telegram Install 2 | 3 | This recipe will recognize which architecture you are using and install the appropriate version of Telegram. 4 | 5 | It will install always the latest version of Telegram from their official website. If you already have a manually installation, this recipe will looking for it and then remove it before the installation. So Telegram will be installed. 6 | 7 | # Usage 8 | 9 | | Command | Support | 10 | | --- | --- | 11 | | `uni bake telegram-install` | Ubuntu and based distributions, Fedora | 12 | 13 | # Uninstallation 14 | 15 | | Command | 16 | | --- | 17 | | `uni bake telegram-remove` | 18 | 19 | # Author 20 | 21 | [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 22 | -------------------------------------------------------------------------------- /src/daltonmenezes/telegram-install/fedora/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | has_telegram=$(which telegram) 3 | has_Telegram=$(which Telegram) 4 | arch=$(uname -m) 5 | 6 | if [ $arch == "x86_64" ]; then 7 | download_for="linux" 8 | else 9 | download_for="linux32" 10 | fi 11 | 12 | function install { 13 | wget https://telegram.org/dl/desktop/$download_for -O telegram.tar.xz 14 | sudo tar Jxf telegram.tar.xz -C /opt/ 15 | sudo mv /opt/Telegram*/ /opt/telegram 16 | sudo ln -sf /opt/telegram/Updater /usr/bin/telegram 17 | rm -f telegram.tar.xz 18 | /opt/telegram/Telegram &>/dev/null & 19 | echo 'Starting Telegram...' 20 | } 21 | 22 | if [[ ! -z $has_telegram ]]; then 23 | telegram="telegram" 24 | else 25 | telegram="Telegram" 26 | fi 27 | 28 | if [[ ! -z $has_telegram || ! -z $has_Telegram ]]; then 29 | sudo rm -rf /opt/$telegram/ 30 | sudo rm -f /usr/bin/$telegram 31 | sudo rm -f /usr/share/applications/$telegram.desktop 32 | install 33 | else 34 | install 35 | fi 36 | -------------------------------------------------------------------------------- /src/daltonmenezes/telegram-install/ubuntu/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | has_telegram=$(which telegram) 3 | has_Telegram=$(which Telegram) 4 | arch=$(uname -m) 5 | 6 | if [ $arch == "x86_64" ]; then 7 | download_for="linux" 8 | else 9 | download_for="linux32" 10 | fi 11 | 12 | function install { 13 | wget https://telegram.org/dl/desktop/$download_for -O telegram.tar.xz 14 | sudo tar Jxf telegram.tar.xz -C /opt/ 15 | sudo mv /opt/Telegram*/ /opt/telegram 16 | sudo ln -sf /opt/telegram/Updater /usr/bin/telegram 17 | rm -f telegram.tar.xz 18 | /opt/telegram/Telegram &>/dev/null & 19 | echo 'Starting Telegram...' 20 | } 21 | 22 | if [[ ! -z $has_telegram ]]; then 23 | telegram="telegram" 24 | else 25 | telegram="Telegram" 26 | fi 27 | 28 | if [[ ! -z $has_telegram || ! -z $has_Telegram ]]; then 29 | sudo rm -rf /opt/$telegram/ 30 | sudo rm -f /usr/bin/$telegram 31 | sudo rm -f /usr/share/applications/$telegram.desktop 32 | install 33 | else 34 | install 35 | fi 36 | -------------------------------------------------------------------------------- /src/daltonmenezes/telegram-remove/README.md: -------------------------------------------------------------------------------- 1 | # Telegram Remove 2 | 3 | This recipe will remove: 4 | 5 | - Telegram 6 | 7 | # Usage 8 | 9 | | Command | Support | 10 | | --- | --- | 11 | | `uni bake telegram-remove` | Ubuntu and based distributions | 12 | 13 | # Author 14 | 15 | [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 16 | -------------------------------------------------------------------------------- /src/daltonmenezes/telegram-remove/ubuntu/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | has_telegram=$(which telegram) 3 | has_Telegram=$(which Telegram) 4 | 5 | if [[ ! -z $has_telegram ]]; then 6 | telegram="telegram" 7 | else 8 | telegram="Telegram" 9 | fi 10 | 11 | if [[ ! -z $has_telegram || ! -z $has_Telegram ]]; then 12 | sudo rm -rf /opt/$telegram/ 13 | sudo rm -f /usr/bin/$telegram 14 | sudo rm -f /usr/share/applications/$telegram.desktop 15 | sudo rm -f /home/$USER/.local/share/applications/telegramdesktop.desktop 16 | sudo rm -f /home/$USER/.local/share/icons/telegram.png 17 | printf "Telegram was removed with success! :D\n" 18 | else 19 | echo "Telegram doesn't seems to exist in your PC. So, there's nothing to remove here.\n" 20 | exit 0 21 | fi 22 | -------------------------------------------------------------------------------- /src/daltonmenezes/watchers-fix/README.md: -------------------------------------------------------------------------------- 1 | # Watchers Fix 2 | 3 | This recipe will fix the `ERROR: ENOSPC: SYSTEM LIMIT FOR NUMBER OF FILE WATCHERS REACHED` issue. 4 | 5 | # Usage 6 | 7 | | Command | Support | 8 | | --- | --- | 9 | | `uni bake watchers-fix` | Ubuntu and based distributions, Fedora | 10 | 11 | # Author 12 | 13 | [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 14 | -------------------------------------------------------------------------------- /src/daltonmenezes/watchers-fix/fedora/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p -------------------------------------------------------------------------------- /src/daltonmenezes/watchers-fix/ubuntu/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p -------------------------------------------------------------------------------- /src/daltonmenezes/yarn-install/README.md: -------------------------------------------------------------------------------- 1 | # Yarn Install 2 | This recipe installs the latest version of Yarn. 3 | 4 | # Usage 5 | 6 | | Command | Support | 7 | | --- | --- | 8 | | `uni bake yarn-install` | Ubuntu 16.04 and based distributions | 9 | 10 | # Author 11 | 12 | [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 13 | -------------------------------------------------------------------------------- /src/daltonmenezes/yarn-install/ubuntu/recipe.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | has_curl=$(which curl) 3 | has_node=$(which node) 4 | 5 | function curlInstall { 6 | sudo apt-get install curl -y 7 | } 8 | 9 | function nodeInstall { 10 | wget -O uni-node-recipe.sh https://raw.githubusercontent.com/uni-linux/recipes/master/src/daltonmenezes/node-install/ubuntu/recipe.sh -q 11 | chmod +x uni-node-recipe.sh 12 | . uni-node-recipe.sh 13 | rm -f uni-node-recipe.sh 14 | } 15 | 16 | function yarnInstall { 17 | curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - 18 | echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list 19 | sudo apt-get update && sudo apt-get install yarn -y 20 | clear 21 | } 22 | 23 | if [[ ! $has_curl ]]; then 24 | curlInstall 25 | fi 26 | 27 | if [[ ! $has_node ]]; then 28 | nodeInstall 29 | fi 30 | 31 | yarnInstall 32 | 33 | has_yarn=$(which yarn) 34 | 35 | if [[ $has_yarn ]]; then 36 | yarn_version=`yarn -v` 37 | printf "Yarn ${yarn_version} was installed with success! :D\n" 38 | else 39 | printf "Sorry, the Yarn installation is failed. Please, try again. :(\n" 40 | fi -------------------------------------------------------------------------------- /src/uni/template/README.md: -------------------------------------------------------------------------------- 1 | # Recipe Name 2 | Put here the description of your recipe. 3 | 4 | E.g. This recipe is a template for you create your own recipes. 5 | 6 | If you test it using UNI it will print 'hello cooks' message on terminal. So, try to keep your description in pure text, because markdown isn't formatted when printed on terminal. 7 | 8 | For your recipe, just clone this repository and take this template as basis. Create a folder in ``/src/`` named with your github user name and create a separated folder inside it for each recipe created by you. Just take a look inside this template folder how the things works and make your own. 9 | 10 | # Usage 11 | | Command | Support | 12 | | --- | --- | 13 | | `uni bake uni/template` | apt, dnf | 14 | 15 | # Author 16 | > Put your name and link it to your folder name in this repository. E.g: 17 | 18 | [Dalton Menezes](https://github.com/uni-linux/recipes/tree/master/src/daltonmenezes) 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/uni/template/fedora/recipe.sh: -------------------------------------------------------------------------------- 1 | echo 'Hello cooks!' 2 | -------------------------------------------------------------------------------- /src/uni/template/ubuntu/recipe.sh: -------------------------------------------------------------------------------- 1 | echo 'Hello cooks!' 2 | --------------------------------------------------------------------------------