Create a group for a system user (daemnos and program users like www-data, mysql...)
# addgroup --system jboss
Create a user (system user, without home -> See below the command, to the jboss group and no login shell)
| # Step 3. | |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| # don't put duplicate lines in the history. See bash(1) for more options |
| #!/bin/sh | |
| clear | |
| f_o6 () { | |
| export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64; | |
| sudo update-alternatives --set java /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java; | |
| } | |
| f_s6 () { |
| /* | |
| * To change this template, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package com.example.http.authenticate; | |
| import java.io.*; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import java.util.HashMap; |
| package org.scribe.builder.api; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| import org.scribe.exceptions.OAuthException; | |
| import org.scribe.extractors.AccessTokenExtractor; | |
| import org.scribe.model.OAuthConfig; | |
| import org.scribe.model.OAuthConstants; | |
| import org.scribe.model.OAuthRequest; |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |