WIth Ubuntu 10.04,
Running GWT on Tomcat6 with Lucene, JPA, Hibernate and Spring Framework,
you need to grant many permissions.
Write in, "04webapps.policy"
grant {
permission java.util.PropertyPermission "user.dir", "read";
permission java.util.PropertyPermission "org.apache.lucene.lockDir", "read";
permission java.util.PropertyPermission "sun.arch.data.model", "read";
permission java.util.PropertyPermission "org.apache.lucene.store.FSDirectoryLockFactoryClass", "read";
permission java.util.PropertyPermission "org.apache.lucene.analysis.standard.StandardAnalyzer.replaceInvalidAcronym", "read";
permission java.util.PropertyPermission "cglib.debugLocation", "read";
permission java.util.PropertyPermission "ANTLR_DO_NOT_EXIT", "read";
permission java.util.PropertyPermission "ANTLR_USE_DIRECT_CLASS_LOADING", "read";
//Required for Spring Framework
permission java.lang.RuntimePermission "createClassLoader";
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
permission java.lang.RuntimePermission "getProtectionDomain";
permission java.net.SocketPermission "127.0.0.1:3306","connect,resolve,listen,accept";
permission java.net.SocketPermission "localhost:3306","connect,resolve,listen,accept";
2010年7月18日日曜日
Linux and Proxy setting notes
Linux & proxy settings are always very bothersome to search.
[apt-get] export command or set as a environmental variable
export http_proxy=http://[address]:[port]/
[wget] xport command or set as a environmental variable
export http_proxy=http://[address]:[port]/
[yum] 環xport command or set as a environmental variable
export http_proxy=http://[address]:[port]/
[rpm] use command line options
rpm --httpproxy [address] --httpport [port]
[apt-get] export command or set as a environmental variable
export http_proxy=http://[address]:[port]/
[wget] xport command or set as a environmental variable
export http_proxy=http://[address]:[port]/
[yum] 環xport command or set as a environmental variable
export http_proxy=http://[address]:[port]/
[rpm] use command line options
rpm --httpproxy [address] --httpport [port]
Ubuntu 10.04 sudo via ssh
When you try to send sudo command via ssh, I got this message.
sudo: no tty present and no askpass program specified
There are some entries that says you should comment out "Defaults requiretty" from /etc/sudoers, however, there is no such line in the file for Ubuntu 10.04.
Writing "Defaults visibletty" works fine although you password will be visible when you type.
It didn't sound the best solution and I found out that using "-t" option for ssh command is better way. Then the command will be something like this.
ssh -t [address] sudo shutdown -h now
In addition,
Writing the following like in "/etc/sudoers" will let you "sudo" without prompting password request.
username ALL=NOPASSWD: ALL
sudo: no tty present and no askpass program specified
There are some entries that says you should comment out "Defaults requiretty" from /etc/sudoers, however, there is no such line in the file for Ubuntu 10.04.
Writing "Defaults visibletty" works fine although you password will be visible when you type.
It didn't sound the best solution and I found out that using "-t" option for ssh command is better way. Then the command will be something like this.
ssh -t [address] sudo shutdown -h now
In addition,
Writing the following like in "/etc/sudoers" will let you "sudo" without prompting password request.
username ALL=NOPASSWD: ALL
登録:
投稿 (Atom)