This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:base-infrastructure [2017-09-17 11:08] – trinitor | projects:base-infrastructure [2018-05-13 08:58] (current) – [gitlab] trinitor | ||
---|---|---|---|
Line 98: | Line 98: | ||
|192.168.11.4 | |192.168.11.4 | ||
|192.168.11.10 |virt01 | |192.168.11.10 |virt01 | ||
+ | |192.168.11.11 |virt02 | ||
+ | |192.168.11.20 |music01 | ||
^Virtual Machines ^^^ | ^Virtual Machines ^^^ | ||
|192.168.1.11 | |192.168.1.11 | ||
Line 320: | Line 322: | ||
Server Configuration: | Server Configuration: | ||
- | * Ubuntu | + | * Install |
+ | * vi / | ||
+ | < | ||
+ | iface ens18 inet static | ||
+ | address 192.168.1.11/ | ||
+ | gateway 192.168.1.1 | ||
+ | dns-nameservers 192.168.1.1 | ||
+ | </ | ||
* apt-get install software-properties-common | * apt-get install software-properties-common | ||
* add-apt-repository ppa: | * add-apt-repository ppa: | ||
Line 423: | Line 432: | ||
==== nextcloud ==== | ==== nextcloud ==== | ||
+ | * install Ubuntu 16.04 LTS | ||
+ | * configure network | ||
+ | * apt update && sudo apt upgrade | ||
+ | * apt-get install apache2 mariadb-server libapache2-mod-php7.0 | ||
+ | * apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip php7.0-ldap | ||
+ | * mkdir / | ||
+ | * wget " | ||
+ | * tar xf nextcloud*.tar.bz2 | ||
+ | * mv nextcloud /var/www/ | ||
+ | * chown -R www-data.www-data / | ||
+ | * cat >/ | ||
+ | < | ||
+ | Alias /nextcloud "/ | ||
+ | |||
+ | < | ||
+ | | ||
+ | | ||
+ | |||
+ | < | ||
+ | Dav off | ||
+ | </ | ||
+ | |||
+ | | ||
+ | | ||
+ | </ | ||
+ | EOF | ||
+ | * ln -s / | ||
+ | * mysql_secure_installation | ||
+ | * mysql -u root -p | ||
+ | * CREATE USER ' | ||
+ | * CREATE DATABASE nextcloud; | ||
+ | * GRANT ALL PRIVILEGES ON nextcloud.* TO ' | ||
+ | * cat >> / | ||
+ | < | ||
+ | opcache.enable=1 | ||
+ | opcache.enable_cli=1 | ||
+ | opcache.interned_strings_buffer=8 | ||
+ | opcache.max_accelerated_files=10000 | ||
+ | opcache.memory_consumption=128 | ||
+ | opcache.save_comments=1 | ||
+ | opcache.revalidate_freq=1 | ||
+ | EOF | ||
+ | </ | ||
+ | * systemctl restart apache2.service | ||
+ | * browse to http:// | ||
+ | * enter new user credentials for admin user | ||
+ | * configure database | ||
+ | * enable apps: | ||
+ | * calendar | ||
+ | * contacts | ||
+ | * deck | ||
+ | * tasks | ||
+ | * LDAP user and group backend | ||
+ | * Admin -> LDAP | ||
+ | * Advanced | ||
+ | * Turn off SSL certificate validation = checked | ||
+ | * Server | ||
+ | * Server: ldaps:/ / | ||
+ | * User: cn=s-nextcloud, | ||
+ | * Base DN: dc=devbase, | ||
+ | * Users | ||
+ | * persons | ||
+ | * Login Attributes | ||
+ | * LDAP user | ||
+ | * Group | ||
+ | * devbase_delegate_access_nextcloud | ||
+ | ==== gitlab ==== | ||
+ | * install Ubuntu 16.04 LTS | ||
+ | * configure network | ||
+ | * apt update && sudo apt upgrade | ||
+ | * sudo apt-get install -y curl openssh-server ca-certificates | ||
+ | * curl https:// | ||
+ | * sudo echo en_US.UTF-8 UTF-8 > / | ||
+ | * sudo locale-gen en_US.UTF-8 | ||
+ | * LC_ALL=" | ||
+ | * LC_CTYPE=" | ||
+ | * sudo EXTERNAL_URL=" | ||
+ | * browse to http:// | ||
+ | * vi / | ||
+ | < | ||
+ | gitlab_rails[' | ||
+ | gitlab_rails[' | ||
+ | main: # ' | ||
+ | label: ' | ||
+ | host: ' | ||
+ | port: 389 | ||
+ | uid: ' | ||
+ | bind_dn: ' | ||
+ | password: ' | ||
+ | encryption: ' | ||
+ | verify_certificates: | ||
+ | active_directory: | ||
+ | allow_username_or_email_login: | ||
+ | lowercase_usernames: | ||
+ | block_auto_created_users: | ||
+ | base: ' | ||
+ | # | ||
+ | EOS | ||
+ | </ | ||
+ | * gitlab-ctl reconfigure | ||
+ | * gitlab-rake gitlab: | ||
+ | |||
+ | ==== Music ==== | ||
+ | Background music should not be interrupted by rebooting clients or phones leaving the building. \\ | ||
+ | A dedicated client should play the music and controllable by all kind of devices. | ||
+ | |||
+ | * download runeaudio for RPi | ||
+ | * flash to SD card and boot | ||
+ | * browse http://ip | ||
+ | * settings | ||
+ | * hostname: music01 | ||
+ | * airplay: on | ||
+ | * airplay name: music01 | ||
+ | * UPnP: on | ||
+ | * UPnP name: music01 | ||
+ | * ssh root@ip | ||
+ | * passwd | ||
+ | * cat >> / | ||
+ | < | ||
+ | audio_output { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | # bitrate | ||
+ | | ||
+ | | ||
+ | } | ||
+ | EOF | ||
+ | </ | ||
+ | * Library | ||
+ | * Webradio | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | |||
+ | Management: \\ | ||
+ | [[http:// | ||
+ | |||
+ | ==== Ubiquiti Controller ==== | ||
+ | To manage the Unfi WiFi access points a Controller is needed | ||
+ | * Install Ubuntu 16.04 LTS | ||
+ | * echo 'deb http:// | ||
+ | * apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50 | ||
+ | * apt-get install unifi | ||
+ | * https://< | ||
==== Wiki ==== | ==== Wiki ==== | ||