You are not logged in.
I wrote a script to install Unity. :) Hopefully this saves someone some time.
INSTRUCTIONS:
-First, run "nano unity-arch.in".
-Paste the script below with [CTRL+SHIFT+v].
-Run "chmod +x unity-arch.in".
-Finally, run it with "sh unity-arch.in".
#!/bin/sh
sudo echo "***Starting script 'unity-arch.in'...***"
echo "==============================
Adding Unity repos to pacman.conf..."
echo '[Unity-for-Arch]' | sudo tee -a /etc/pacman.conf
echo 'SigLevel = Optional TrustAll' | sudo tee -a /etc/pacman.conf
echo 'Server = http://dl.dropbox.com/u/486665/Repos/$repo/$arch' | sudo tee -a /etc/pacman.conf
echo ' ' | sudo tee -a /etc/pacman.conf
echo '[Unity-for-Arch-Extra]' | sudo tee -a /etc/pacman.conf
echo 'SigLevel = Optional TrustAll' | sudo tee -a /etc/pacman.conf
echo 'Server = http://dl.dropbox.com/u/486665/Repos/$repo/$arch' | sudo tee -a /etc/pacman.conf
sudo pacman -Syu
echo "==============================
Installing Unity base packages..."
sudo pacman -S $(pacman -Slq Unity-for-Arch)
echo "==============================
Installing Unity extra packages..."
sudo pacman -S $(pacman -Slq Unity-for-Arch-Extra)
yaourt -Sa freetype2-ubuntuLast edited by GreenRaccoon23 (2014-10-25 16:52:28)
Offline
Please use code tags. Forum Etiquette
Last edited by okubax (2014-09-27 19:44:57)
Offline
Please use code tags when pasting to the boards https://wiki.archlinux.org/index.php/Fo … s_and_Code
Offline
Lol right. That answers my url question too haha. ![]()
Offline
How is it different from following https://wiki.archlinux.org/index.php/Unity and using the unofficial repos?
Different packages, different versions?
Offline
How is it different from following https://wiki.archlinux.org/index.php/Unity and using the unofficial repos?
Different packages, different versions?
No, it's exactly the same, but I put it together under one script. This way, you only have to copy and paste one thing instead of manually searching for and building some of the packages/dependencies from AUR.
-----EDIT-----
Scratch what I said earlier. The Unity guide on the Arch wiki doesn't cover all this. The "Unity-for-Arch-Extras" repository listed on that page doesn't seem to exist, so some of the Unity packages need to be installed from AUR. This script does that all automatically.
Last edited by GreenRaccoon23 (2014-09-27 23:00:41)
Offline
What happens if one of the packages fails to build for some reason?
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
karol wrote:How is it different from following https://wiki.archlinux.org/index.php/Unity and using the unofficial repos?
Different packages, different versions?No, it's exactly the same, but I put it together under one script. This way, you only have to copy and paste one thing instead of manually searching for and building some of the packages/dependencies from AUR.
If you use something like Yaourt, it will fetch, build, and install all dependencies for you. Cool script though.
Last edited by markzz (2014-09-27 21:22:37)
I don't want to work. I want to bang on the drum all day.
Offline
GreenRaccoon23 wrote:karol wrote:How is it different from following https://wiki.archlinux.org/index.php/Unity and using the unofficial repos?
Different packages, different versions?No, it's exactly the same, but I put it together under one script. This way, you only have to copy and paste one thing instead of manually searching for and building some of the packages/dependencies from AUR.
If you use something like Yaourt, it will fetch, build, and install all dependencies for you. Cool script though.
Whoa! I didn't realize that! Can you tell I'm new to Arch?
Yaourt would have made things a ton easier haha. I basically created my own script for yaourt inside of this one.
Last edited by GreenRaccoon23 (2014-09-27 22:56:25)
Offline
What happens if one of the packages fails to build for some reason?
Your computer blows up.
Lol jk. Did this happen to you? Which one was it?
Offline
The "Unity-for-Arch-Extras" repository listed on that page doesn't seem to exist, so some of the Unity packages need to be installed from AUR. This script does that all automatically.
The repo works for me; I'm on 32 bit.
There's also https://wiki.archlinux.org/index.php/Un … ries#unity and https://wiki.archlinux.org/index.php/Un … nity-extra
Offline
Can you tell I'm new to Arch?
You bet! ;-) This is not a guide about how to install Unity, it's a guide about how to run a script found on a website with an example that happens to install Unity.
EDIT: One question, just in case you write something popular in the near future... "sudo echo"?
EDIT2: I like your function for fetching stuff from the AUR. However, have you thought about not calling that function a million times manually, but instead run a loop over a list of package names? Have a look at for loops in bash.
Last edited by Awebb (2014-09-27 23:15:53)
Offline
WorMzy wrote:What happens if one of the packages fails to build for some reason?
Your computer blows up.
Lol jk. Did this happen to you? Which one was it?
No, no, I've not tried the script -- I have no interest in using Unity. Scripts designed to automagically set up a users system just make me wary. If one build fails, does the user have to re-compile everything from scratch? Will they end up with multiple [Unity-for-Arch] declarations in their pacman.conf?
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
GreenRaccoon23 wrote:Can you tell I'm new to Arch?
You bet! ;-) This is not a guide about how to install Unity, it's a guide about how to run a script found on a website with an example that happens to install Unity.
EDIT: One question, just in case you write something popular in the near future... "sudo echo"?
EDIT2: I like your function for fetching stuff from the AUR. However, have you thought about not calling that function a million times manually, but instead run a loop over a list of package names? Have a look at for loops in bash.
Lol!
I'll change the title to "script" instead of "guide."
I use "sudo echo" just to get my password in right away so it doesn't halt later.
Hm that sounds awesome! I thought there'd be a way to do something like that. I'll check it out. Thanks!
Last edited by GreenRaccoon23 (2014-09-28 19:43:42)
Offline
GreenRaccoon23 wrote:WorMzy wrote:What happens if one of the packages fails to build for some reason?
Your computer blows up.
Lol jk. Did this happen to you? Which one was it?
No, no, I've not tried the script -- I have no interest in using Unity. Scripts designed to automagically set up a users system just make me wary. If one build fails, does the user have to re-compile everything from scratch? Will they end up with multiple [Unity-for-Arch] declarations in their pacman.conf?
Yeah, if it fails, that's what would happen. I'll fix that pacman.conf thing though. The commands I used should work for any system though cause it's all built with "pacman" or "makepkg."
Last edited by GreenRaccoon23 (2014-09-28 20:08:41)
Offline