You are not logged in.

#1 2014-09-27 19:27:32

GreenRaccoon23
Member
Registered: 2014-09-27
Posts: 33

[SCRIPT] Install Unity

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-ubuntu

Last edited by GreenRaccoon23 (2014-10-25 16:52:28)

Offline

#2 2014-09-27 19:44:25

okubax
Member
From: Kent, UK.
Registered: 2010-04-24
Posts: 210
Website

Re: [SCRIPT] Install Unity

Please use code tags. Forum Etiquette

Last edited by okubax (2014-09-27 19:44:57)

Offline

#3 2014-09-27 19:45:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SCRIPT] Install Unity

Please use code tags when pasting to the boards https://wiki.archlinux.org/index.php/Fo … s_and_Code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-09-27 19:54:34

GreenRaccoon23
Member
Registered: 2014-09-27
Posts: 33

Re: [SCRIPT] Install Unity

Lol right. That answers my url question too haha. smile

Offline

#5 2014-09-27 20:57:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SCRIPT] Install Unity

How is it different from following https://wiki.archlinux.org/index.php/Unity and using the unofficial repos?
Different packages, different versions?

Offline

#6 2014-09-27 21:03:48

GreenRaccoon23
Member
Registered: 2014-09-27
Posts: 33

Re: [SCRIPT] Install Unity

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.

-----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

#7 2014-09-27 21:06:14

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,721
Website

Re: [SCRIPT] Install Unity

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.

Offline

#8 2014-09-27 21:22:01

markzz
Member
From: Michigan, United States
Registered: 2013-06-08
Posts: 89
Website

Re: [SCRIPT] Install Unity

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.

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

#9 2014-09-27 22:18:22

GreenRaccoon23
Member
Registered: 2014-09-27
Posts: 33

Re: [SCRIPT] Install Unity

markzz wrote:
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? tongue 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

#10 2014-09-27 23:02:35

GreenRaccoon23
Member
Registered: 2014-09-27
Posts: 33

Re: [SCRIPT] Install Unity

WorMzy wrote:

What happens if one of the packages fails to build for some reason?

Your computer blows up. wink Lol jk. Did this happen to you? Which one was it?

Offline

#11 2014-09-27 23:09:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SCRIPT] Install Unity

GreenRaccoon23 wrote:

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

#12 2014-09-27 23:12:18

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [SCRIPT] Install Unity

GreenRaccoon23 wrote:

Can you tell I'm new to Arch? tongue

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

#13 2014-09-27 23:31:01

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,721
Website

Re: [SCRIPT] Install Unity

GreenRaccoon23 wrote:
WorMzy wrote:

What happens if one of the packages fails to build for some reason?

Your computer blows up. wink 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.

Offline

#14 2014-09-28 19:30:50

GreenRaccoon23
Member
Registered: 2014-09-27
Posts: 33

Re: [SCRIPT] Install Unity

Awebb wrote:
GreenRaccoon23 wrote:

Can you tell I'm new to Arch? tongue

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

#15 2014-09-28 19:33:02

GreenRaccoon23
Member
Registered: 2014-09-27
Posts: 33

Re: [SCRIPT] Install Unity

WorMzy wrote:
GreenRaccoon23 wrote:
WorMzy wrote:

What happens if one of the packages fails to build for some reason?

Your computer blows up. wink 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

Board footer

Powered by FluxBB