Content
Package Install 5.0.20 Ubuntu with Custom Logo and Favicon - Step-By-Step
Added by Sergio Caixeta about 8 years ago
In some cases people needs to change the OP to customize your company logo and other.
Here I explain how you change some parameters to create a custom install.
You need create a custom Logo and Favicon like OP default. This logos will be uploaded by FTP in your installation.
STEPS:
LOGIN BY SSH:
sudo su apt-get update -y apt-get upgrade -y
IF YOU USE A MACHINE > 1GB MEMORY (OPTIONAL):
sudo dd if=/dev/zero of=/swap bs=1M count=1024 sudo mkswap /swap sudo swapon /swap shutdown -r now
INSTALL FTP:
sudo su sudo aptitude install vsftpd
nano -c /etc/vsftpd.conf local_umask=022 anonymous_enable=NO local_enable=YES write_enable=YES
nano -c /etc/shells /bin/false
HERE Y USE MY FTP USER (ftpusername) YOU CAN CHANGE THIS USER.
sudo mkdir -p /home/ftp/ftpuser sudo useradd ftpusername -d /home/ftp/ftpuser/ -s /bin/false sudo passwd ftpusername
sudo chown ftpusername /home/ftp/ftpuser sudo service vsftpd restart
SOME OP FILES NEED TO CHANGE. I ATTACHED IN THIS TREAD THE FILES TO UPLOAD IN YOUR INSTALLATION. UPLOAD YOUR LOGO, FAVICON AND FILES ATTACHED HERE.
LOGO: logo_openproject_white_big-b1f158f7adb3aacb79d5b5599516cd09.png
FAVICON: favicon-3932c93819a1921899023e60a538630a.ico
APPLICATION HELPER: application_helper.rb
HOMESCREEN: homescreen.sass
YOUR LOGO AND FAVICON NEEDS TO RENAMED TO NAME ABOVE.
_UPLOAD THIS FILES USING YOUR FTP CLIENT.
_
INSTALL THE MYSQL MANUALLY:
apt-get install mysql-server libmysqlclient-dev -y
AND CREATE OPENPROJECT DB. HERE pass YOU CHANGE TO YOUR PASSWORD USED IN INSTALLATION PROCESS:
- mysql -uroot -p
- UPDATE user SET Password=PASSWORD(‘pass’) WHERE User=‘root’; FLUSH PRIVILEGES;
- CREATE DATABASE openproject CHARACTER SET utf8;
- CREATE USER ‘openproject’`'localhost' IDENTIFIED BY 'pass';
- GRANT ALL PRIVILEGES ON openproject.* TO 'openproject'`‘localhost’;
- \q
GET GIT OP:
wget -qO - https://deb.packager.io/key | sudo apt-key add - echo "deb https://deb.packager.io/gh/opf/openproject-ce trusty stable/5" | sudo tee /etc/apt/sources.list.d/openproject.list sudo apt-get update -y sudo apt-get install openproject -y
COPY FILES UPLOADED BY FTP:
cp /home/ftp/ftpuser/favicon.ico /opt/openproject/public/assets/favicon-3932c93819a1921899023e60a538630a.ico cp /home/ftp/ftpuser/application_helper.rb /opt/openproject/app/helpers/application_helper.rb cp /home/ftp/ftpuser/logo_openproject.png /opt/openproject/public/assets/logo_openproject_white_big-b1f158f7adb3aacb79d5b5599516cd09.png cp /home/ftp/ftpuser/favicon.ico /opt/openproject/favicon.ico cp /home/ftp/ftpuser/homescreen.sass /opt/openproject/public/assets/homescreen.sass
RUN INSTALL (REMEMBER TO USE MYSQL PRE-INSTALLED):
openproject configure
Replies (4)
Hi Sergio,
for all the folks that do not have time to read through themselves:
What did you change in application_helper.rb and homescreen.sass ?
Hi Oliver.
Just some parameters to load Logo and Favicon.
the easiest way is, upload your logo and favicon directly to openproject/public/assets
and rename it as default naming on public folder
Guten Tag,
ich bin bis einschließlich 15.12.2017 nicht per E-Mail erreichbar.
Ihre Nachricht wird nicht weitergeleitet.
In wichtigen Fällen wenden Sie Sich bitte an unsere Hotline unter +49 (0) 6131 327070
Vielen Dank.
Mit freundlichen Grüßen
Oliver Jakobi
Hello,
I am out of the office until 11/20/2017.
Your email will not be forwarded.
In urgent cases please call our hotline +49 6131 3270777.
Best regards
Oliver Jakobi