CI Linux Tester Setup

From Qt Wiki
Jump to: navigation, search


This page explains the steps for setting up a Linux machine for testing of Qt, compatible with the setup used in the Qt Project CI system.

See CI Machine Configuration for more information about the CI machine setup.

Ubuntu 10.04 x86

  • Install Ubuntu 10.04 32-bit (ubuntu-10.04.4-desktop-i386.iso)
    • Language: English / Install Ubuntu 10.04.4 LTS
    • Region: Europe / TimeZone: (Your choice)
    • Keyboard Layout: (Your choice)
    • User: bld-qt
    • Password: (Your choice)
    • HostName: (i.e. ci-ubuntu1004-x86-00)
    • Rest: default
  • System Settings / Software Sources - Automatic updates: Uncheck: Check for updates - Release updates: Show new distribution releases: Never
  • Update manager: Add checks to Important security updates and Recommended updates
  • Update system:
sudo apt-get update
sudo apt-get upgrade
  • Install SSH
sudo apt-get install ssh
  • Remove avahi-daemon
sudo apt-get remove avahi-daemon
  • Disable network-manager (One of the followong command, I don't remember which one were correct)
sudo update-rc.d network-manager disable
sudo /etc/init.d/network-manager stop
service network-manager stop
  • Configure network-service:
    sudo vi /etc/network/interfaces
    • Add the following lines:
 auto eth0
 iface eth0 inet dhcp
  • Run bootstrap
wget http://qt.gitorious.org/qtqa/sysadmin/blobs/raw/master/bootstrap/ubuntu1004_bootstrap.sh
sudo su -
cd /home/bld-qt
./ubuntu1004_bootstrap.sh git://gitorious.org/qtqa/sysadmin.git
  • Options for the interactive part:
    • location: Doesn't matter and is a legacy question that can be removed
    • qtgitreadonly: default (git://qt.gitorious.org/)
    • input: (your local cache)
    • email: (your email address) (used by automated system to send you emails in case Puppet encouters problems)
    • smtp: (your smtp server)
    • Select: (5) ci_testser
    • testuser: default (qt)
    • network_test_server_ip: (IP of your network test server, if you have one. Else just hit entter.)
    • qt_gerrit_mirror: default (leave blank)
    • jenkins_enabled: default (no)
    • vmware_enabled: (depends if you installed this as a virtual machine on vmware)
    • icecc_enabled: no

Ubuntu 11.10 x86/x64 and later

  • Install Ubuntu nn.nn nn-bit
    • Language: English / Install Ubuntu
    • Un-Check: "Download updates while installing"
    • Erase disk and install Ubuntu
    • (your location)
    • Default keyboard layout: (Your choice)
    • User: (i.e. bld-qt)
    • Password: (Your choice)
    • HostName: (i.e. ci-ubuntu12.04-x64-00)
    • Require my password to log in
    • Rest: default
  • System Settings / Software Sources:
    • Automatically check for updates: never
    • When there are security updates available: Display Immediately
    • When there are other updates: Display every two weeks
    • Notify me of a new Ubuntu version: never
  • Update system:
sudo apt-get update
sudo apt-get upgrade
  • Install SSH
sudo apt-get install ssh
  • Run bootstrap
wget https://qt.gitorious.org/qtqa/sysadmin/raw/bootstrap/ubuntu1110_bootstrap.sh
sudo su -
cd /home/bld-qt
./ubuntu1110_bootstrap.sh git://gitorious.org/qtqa/sysadmin.git
  • Options for the interactive part:
    • location: Doesn't matter and is a legacy question that can be removed
    • qtgitreadonly: default (git://qt.gitorious.org/)
    • input: (your local cache)
    • email: (your email address) (used by automated system to send you emails in case Puppet encouters problems)
    • smtp: (your smtp server)
    • Select: (5) ci_testser
    • testuser: default (qt)
    • network_test_server_ip: (IP of your network test server, if you have one. Else just hit entter.)
    • qt_gerrit_mirror: default (leave blank)
    • jenkins_enabled: default (no)
    • vmware_enabled: (depends if you installed this as a virtual machine on vmware)
    • icecc_enabled: no

OpenSuSE 12.3 x64

  • Install OpenSuSE 12.3 x64
    • Language: Englis (US)
    • Keyboard Layout: (Your choice)
    • Mode: New install (with automatic configuration)
    • Set time
    • Choose KDE
    • No separate home partition
    • full name: bld-qt
    • username: bld-qt
    • password: (Your choice)
    • use this password for system administrator
    • Disable automatic login
    • Hit install
  • Run system updates
  • Change to root
su root
  • To enable SSH
chkconfig sshd on
    • edit the /etc/sysconfig/SuSEfirewall2
FW_SERVICES_EXT_TCP=""

Change ^ to v

FW_SERVICES_EXT_TCP="ssh"
    • restart the firewall and start SSH Daemon
/sbin/rcSuSEfirewall2 restart
/etc/init.d/sshd start
  • You might also want to uninstall Avahi if it causes network problems
zypper remove avahi
  • Run bootstrap
wget http://qt.gitorious.org/qtqa/sysadmin/blobs/raw/master/bootstrap/opensuse123_bootstrap.sh
sudo su -
cd /home/bld-qt
./opensuse123_bootstrap.sh git://gitorious.org/qtqa/sysadmin.git
  • Options for the interactive part:
    • location: Doesn't matter and is a legacy question that can be removed
    • qtgitreadonly: default (git://qt.gitorious.org/)
    • input: (your local cache)
    • email: (your email address) (used by automated system to send you emails in case Puppet encouters problems)
    • smtp: (your smtp server)
    • Select: (5) ci_testser
    • testuser: default (qt)
    • network_test_server_ip: (IP of your network test server, if you have one. Else just hit entter.)
    • qt_gerrit_mirror: default (leave blank)
    • jenkins_enabled: default (no)
    • vmware_enabled: (depends if you installed this as a virtual machine on vmware)
    • icecc_enabled: no