Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8595949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:33:41+00:00 2026-06-12T00:33:41+00:00

I do have an Ubuntu Server 12.04 VM using VMWare Fusion that i would

  • 0

I do have an Ubuntu Server 12.04 VM using VMWare Fusion that i would like to provision with a set of Jenkins Steps.

So far i have the server VM with the following packages by default when installing the OS.

  1. default-java (This is the OpenJDK for Jenkins Slave)
  2. openssh-server (for communication with my clients)

I would like to make the following changes to this VM template so i can use it later for any purpose.

  1. Change the hostname/hosts configuration (needs a reboot)
  2. run package installations if necessary (git-core)
  3. Install a puppet master server.

I do have a problem when trying to execute commands since ubuntu does not have the root account.

+ sudo hostname ubuntu
sudo: no tty present and no askpass program specified
Build step 'Execute shell' marked build as failure
Finished: FAILURE

I did try changing the sudoers NOPASSWD configuration for the sudo group members with luck only if i log in to the VM but not with jenkins even when the jenkins user is the only user in the system that is a member of the sudo group.

I would say having and image with a specific OS should be enough but i am guessing in this scenario need the jenkins slave in place to start managing the VM. I am not using Vagrant since is super slow on the MAC and VM Ware Fusion is super fast even than parallels.

Any clues?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T00:33:42+00:00Added an answer on June 12, 2026 at 12:33 am

    First create an shell script that will act as your askpass program. It needs to output the password when executed. e.g., if your password is mycleverpassword then the following script will do the trick:

    #! /bin/sh
    echo mycleverpassword
    

    Then, instead of calling sudo hostname ubuntu, you would call

    export SUDO_ASKPASS="/path/to/myaskpass.sh"; sudo -A hostname ubuntu
    

    Lemme know if pain persists.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bluetooth server running on my Ubuntu desktop written using PyBlueZ. That
i have a virtual ubuntu server running in windows 7 pro using VMware Player.
I would like to retrieve multiple log files from an Ubuntu server (using Python
using Gitolite on a Ubuntu server. Have a project im working on that i
I would like to deploy a private cloud using Ubuntu Server 9.10. There is
I have a problem to install xdebug on my Ubuntu Server which is using
I am using ubuntu in my server. I have two users, let them be
I have a question about receiving emails. Using Ubuntu as the server, I have
I have an ubuntu server (11.10) on a single-board computer that occasionally is subject
We have a ubuntu test server that this simple script works fine on where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.