You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Purpose of this documentation 

Is to help systems administrators support and maintain the script for "How to install DATIM4U OHIE Stack"

Comprehensive Steps:

http://packaging.ubuntu.com/html/packaging-new-software.html

https://askubuntu.com/questions/164621/how-do-i-add-a-binary-file-to-my-existing-ppa-package

https://askubuntu.com/questions/146343/how-to-create-a-deb-package-that-installs-a-series-of-files

https://askubuntu.com/questions/33413/how-to-create-a-meta-package-that-automatically-installs-other-packages

 


Optimized setup: - use this after performing a complete example somewhere else


Basic system update and upgrade:

ubuntu:~#sudo apt-get update
ubuntu:~#sudo apt-get upgrade


 

For having pbuilder that creates a clean simple ubuntu environment for builds:

ubuntu:~#sudo apt-get install gnupg pbuilder ubuntu-dev-tools bzr-builddeb apt-file


This does the packaging but is not used regularly

ubuntu:~#sudo apt-get install packaging-dev


Generate the gpg key:

gpg --gen-key

 

 

Send the keys to launchpad:

gpg --send-keys --keyserver keyserver.ubuntu.com keythatgotgenerated

 

 

Copy paste the secure email from launchpad to read its content:

vim mail.gpg


Extract the message for the launchpad stuff:

gpg -d mail.gpg

 


Creating the clean pbuilder environment:

pbuilder-dist trusty create


Should match with the gpg key:

bzr whoami "YourName <youremailid>"


Launchpad key:

bzr launchpad-login yourlaunchpadid


These commands should be included in the bashrc file:

 

vim ~/.bashrc

 

and add:

export DEBFULLNAME="YourFullName"
export DEBEMAIL="youremailid"

 

Source the script:

 

source ~/.bashrc


basic git config necessary:

 

git config --global user.email "youremailid"
git config --global user.name "youreusername"
git config --global core.editor "vim"
git config --global push.default simple
git --version

 

This allows us to access the actual file system - vagrant is useful this way that by placing //files/folders in this folder will allow them to be accessible to vagrant shell:

 

cd /vagrant
mkdir code
cd packages/
mkdir -p adxadapter2
cd adxadapter2/
sudo apt-get install openjdk-7-jdk --no-install-recommends


This will create the .ssh folder in the exact location:

 

ssh-keygen


Copy your private rsa key so that you can directly access github:

cp id_rsa ~/.ssh/
cd .ssh
cd ..

 


Remove the created public file that is not required created by ssh-keygen file:

 

rm id_rsa.pub
  • No labels