DEV Community


sudo sh -c 'echo deb

psnebc profile image Patrick Schanen ・4 min read

First Login

Jenkins on Port 8081

Initial Passwort

Jenkins initialsecretpassword

 Son 15 Okt - 22:16  ~ 
 @patrick  cd Vagrant/psnc 
 Son 15 Okt - 22:17  ~/Vagrant/psnc 
 @patrick  vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address:
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
[default] GuestAdditions 5.1.28 running --- OK.
==> default: Checking for guest additions in VM...
==> default: [vagrant-hostsupdater] Checking for host entries
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => /home/patrick/Vagrant/psnc
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
 Son 15 Okt - 22:17  ~/Vagrant/psnc 
 @patrick  vagrant ssh
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-97-generic x86_64)

 * Documentation:
 * Management:
 * Support:
Last login: Sun Oct 15 18:18:20 2017 from
➜  ~ sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list'
➜  ~ sudo apt-get update
Get:1 xenial-security InRelease [102 kB]
Hit:2 xenial InRelease                                                        
Ign:3 sarge InRelease                                          
Hit:4 sarge Release                                            
Hit:5 xenial InRelease                                                       
Ign:7 sarge InRelease                                                       
Hit:8 xenial InRelease                                                                 
Hit:9 xenial InRelease                                                       
Hit:10 xenial InRelease                                                   
Get:11 xenial-updates InRelease [102 kB]                                               
Ign:12 binary/ InRelease                                                                  
Hit:13 sarge Release                                                        
Hit:14 xenial InRelease                                
Get:15 binary/ Release [2,042 B]                                                          
Hit:17 xenial InRelease                                                         
Get:18 binary/ Release.gpg [181 B]                                                        
Hit:19 xenial InRelease                                   
Ign:18 binary/ Release.gpg                             
Get:20 binary/ Packages [4,234 B]                    
Get:21 xenial-backports InRelease [102 kB]
Fetched 313 kB in 1s (157 kB/s)    
Reading package lists... Done
W: GPG error: binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9B7D32F2D50582E6
W: The repository ' binary/ Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
➜  ~ sudo apt-get install jenkins
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
The following NEW packages will be installed:
  daemon jenkins
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
# defaults for Jenkins automation server

# pulled in from the init script; makes things easier.

# arguments to pass to java

# Allow graphs etc. to work even when an X server is present


# make jenkins listen on IPv4 address


# user and group to be invoked as (default to jenkins)

# location of the jenkins war file

# jenkins home location

# set this to false if you don't want Jenkins to run by itself
# in this set up, you are expected to provide a servlet container
# to host jenkins.

# log location.  this may be a syslog facility.priority

#   comment this out to observe /etc/security/limits.conf
#   this is on by default because
#   reported that Ubuntu's PAM configuration doesn't include, and as a result the # of file
#   descriptors are forced to 1024 regardless of /etc/security/limits.conf
Need to get 73.7 MB of archives.
After this operation, 74.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
Install these packages without verification? [y/N] y
Get:2 xenial/universe amd64 daemon amd64 0.6.4-1 [98.2 kB]
Get:1 binary/ jenkins 2.84 [73.6 MB]               
Fetched 73.7 MB in 5min 1s (244 kB/s)                                                                                      
Selecting previously unselected package daemon.
(Reading database ... 151919 files and directories currently installed.)
Preparing to unpack .../daemon_0.6.4-1_amd64.deb ...
Unpacking daemon (0.6.4-1) ...
Selecting previously unselected package jenkins.
Preparing to unpack .../archives/jenkins_2.84_all.deb ...
Unpacking jenkins (2.84) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up daemon (0.6.4-1) ...
Setting up jenkins (2.84) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...

Change Port from 8080 to 8081

➜  ~ sudo vim /etc/default/jenkins 
➜  ~ sudo service jenkins restart

Discussion (0)

Editor guide