Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun May 13, 2012 10:36 am 
Offline
Junior Member

Joined: Sun May 13, 2012 10:02 am
Posts: 20
Hi,

I had a quick question, I found a stackscript that seemed to be what im after, but it is designed for Ubunutu and I am running Debian.

This is the ubunutu specific bit:

Code:
source <ssinclude StackScriptID="123"> ## lib-system-ubuntu {
    # Set hostname
    if [ "$HOSTNAME" ]; then
        system_update_hostname "$HOSTNAME"
    fi

    # Add users
    if [ "$USERNAME" ]; then
        system_add_user "$USERNAME" "$PASSWORD" "sudo"
        system_user_add_ssh_key "$USERNAME" "$SSH_KEY"
    fi

    system_add_user "$DEPLOY_USERNAME" "$PASSWORD" "sudo"
    system_user_add_ssh_key "$DEPLOY_USERNAME" "$SSH_KEY"

    # SSH
    system_sshd_passwordauthentication "no"
    system_sshd_permitrootlogin "no"
    system_sshd_pubkeyauthentication "yes"
## }


Can I just change this:
Code:
lib-system-ubuntu 

to this:
Code:
lib-system-debian


Thanks for any help you can give?

James


Top
   
PostPosted: Sun May 13, 2012 12:28 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
Spadez wrote:
Can I just change this:
Code:
lib-system-ubuntu 

to this:
Code:
lib-system-debian


Thanks for any help you can give?

James


lib-system-ubuntu there is a comment (it's after a #). What you really need to do is go into the included stackscript and make sure that the functions being called (the ones starting with "system-" will work properly in debian. The answer is very likely yes.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group