LibreOffice development server is indented to mainly help the Linux newbies to quickly contribute to LibreOffice.
4Mbps Airtel home connection - goes to 512 Kbps after 120 GB usage.
Install x2go(remote desktop app) server
# dnf install x2goserver x2goserver-xsession
Install iptables
# dnf install iptables iptables-services
Install sshd
# dnf install sshd
Change sshd listener port to something else in /etc/ssh/sshd_config
Install emacs/vim
Set services to start on boot
# systemctl enable sshd
# systemctl start sshd
# systemctl disable firewalld
# systemctl enable iptables
# systemctl enable x2gocleansessions.service
Set hostname
Setup iptables rules If root, allow all traffic If non-root allow only :
google-dns
libreoffice.org
gerrit.libreoffice.org
bugs.documentfoundation.org
dev-www.libreoffice.org
Install sendmail and set it up to send mails through gmail smtp using the instructions in the link http://linuxconfig.org/configuring-gmail-as-sendmail-email-relay
Configure port forwarding in modem to forward sshd port to server In our case it is under "Advanced Setup -> NAT -> Virtual Server"
Setup IP address change notifier Cron a script to email the users whenever external ip adress of the box changes for getting ip we used : bot.whatismyipaddress.com
Install build dependencies
# sudo dnf builddep libreoffice
Create a folder /home/lo/ as root to host local copy of LibreOffice git code repository.
and get the source code using :
# git clone git://anongit.freedesktop.org/libreoffice/core libreoffice
Setup a cron entry to do "git pull" every 1 hour in the folder /home/lo/libreoffice
# dnf install x2goclient
.Setup git identity in our machine, as per the following example :
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
Clone LibreOffice source code repo.
$ git clone /home/lo/libreoffice libreoffice
Go to libreoffice repo root
$ cd libreoffice
Build LibreOffice using the following 2 commands ( Second step will take about 1.5 hours when run for the first time )
$ ./autogen.sh --with-parallelism=3 --without-junit --enable-debug --without-java --without-doxygen --without-help --without-myspell-dicts
$ make
To run LibreOffice which you just now built :
$ instdir/program/soffice
To start LibreOffice in gdb
$ make debugrun
Create a new branch for making your code change :
$ git checkout -b branch_name
where branch_name can be any string without spaces.
Select what to work on. If you are new to LibreOffice development, then try an "Easy Hack".
Now rebuild LibreOffice using :
$ make
( Do this step always after you change code before you run LibreOffice. The time taken to complete this step depends on what you changed. )
To skip unit tests, use $ make build-nocheck
To build just calc, use $ make sc
Now test whether your code change worked by running LibreOffice :
$ instdir/program/soffice
If you find issues, and want to debug it, run :
$ make debugrun
If you are confident that your code change worked, then commit your code :
$ git commit -m “short_description_of_what_the_code_change_is_about” file1 file2 file3 ....
(Where file1 file2 file3 ...etc are the files you modified.)