Unable to execute dex: Multiple dex files define
どーやらJARファイルも含めて重複しているクラスが居るらしい。
未使用ライブラリーのJARファイルが居たので消してあげたら解決した。
Unable to execute dex: Multiple dex files define
(TwitterAuthTask.java:41) - failed to connect to api.twitter.com/199.59.150.9 (port 80) after 20000ms: isConnected failed: EHOSTUNREACH (No route to host) Relevant discussions can be found on the Internet at: http://www.google.co.jp/search?q=10f5ada3 or http://www.google.co.jp/search?q=e574403a TwitterException{exceptionCode=[10f5ada3-e574403a 10f5ada3-e5744010 10f5ada3-e5744010], statusCode=-1, message=null, code=-1, retryAfter=-1, rateLimitStatus=null, version=3.0.2-SNAPSHOT(build: 66f25e24a0e1d4e3b0ae483c3f3bb4774d3dce95)} twitter4j.TwitterException: failed to connect to api.twitter.com/199.59.150.9 (port 80) after 20000ms: isConnected failed: EHOSTUNREACH (No route to host) at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:192) at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:61) at twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java:98) at twitter4j.auth.OAuthAuthorization.getOAuthRequestToken(OAuthAuthorization.java:122) at twitter4j.auth.OAuthAuthorization.getOAuthRequestToken(OAuthAuthorization.java:104) at twitter4j.TwitterBaseImpl.getOAuthRequestToken(TwitterBaseImpl.java:281)
# yum -y install targetcli
# targetcli
/> version targetcli version 2.0rc1.fb8
/> ls o- / ........................................................... [...] o- backstores ................................................ [...] | o- block ...................................... [0 Storage Object] | o- fileio ..................................... [0 Storage Object] | o- pscsi ...................................... [0 Storage Object] | o- ramdisk .................................... [0 Storage Object] o- ib_srpt ............................................. [Not found] o- iscsi ................................................ [0 Target] o- loopback ............................................. [0 Target] o- qla2xxx ............................................. [Not found] o- tcm_fc .............................................. [Not found]
/> help GENERALITIES ============ This is a shell in which you can create, delete and configure configuration objects. The available commands depend on the current path or target path you want to run a command in: different path have different sets of available commands, i.e. a path pointing at an iscsi target will not have the same availaible commands as, say, a path pointing at a storage object. The prompt that starts each command line indicates your current path. Alternatively (useful if the prompt displays an abbreviated path to save space), you can run the pwd command to display the complete current path. Navigating the tree is done using the cd command. Without any argument, cd will present you wil the full objects tree. Just use arrows to select the destination path, and enter will get you there. Please try help cd for navigation tips. COMMAND SYNTAX ============== Commands are built using the following syntax: [TARGET_PATH] COMMAND_NAME [OPTIONS] The TARGET_PATH indicates the path to run the command from. If ommited, the command will be run from your current path. The OPTIONS depend on the command. Please use help COMMAND to get more information. AVAILABLE COMMANDS ================== The following commands are available in the current path: - bookmarks action [bookmark] - cd [path] - clearconfig [confirm] - exit - get [group] [parameter...] - help [topic] - ls [path] [depth] - pwd - refresh - restoreconfig [savefile] [clear_existing] - saveconfig [savefile] - sessions [action] [sid] - set [group] [parameter=value...] - status - version />
/> cd backstores /backstores> ls o- backstores .................................................. [...] o- block ........................................ [0 Storage Object] o- fileio ....................................... [0 Storage Object] o- pscsi ........................................ [0 Storage Object] o- ramdisk ...................................... [0 Storage Object] /backstores>
/backstores> help ・・・ 抜粋 ・・・ AVAILABLE COMMANDS ================== The following commands are available in the current path: - bookmarks action [bookmark] - cd [path] - exit - get [group] [parameter...] - help [topic] - ls [path] [depth] - pwd - refresh - set [group] [parameter=value...] - status /backstores>
/> set global auto_cd_after_create=false
/backstores> cd /backstores/block /backstores/block> create name=myblock dev=/dev/disk/by-id/scsi-xxxx-part-1
/backstores> cd /backstores/fileio /backstores/fileio> create name=myscsi file_or_dev=/root/myscsi.img buffered=true /backstores/fileio> help create name file_or_dev [size] [buffered] [sparse] [size] [sparse] に関してはよく分からない。使用するファイルは事前にddなどで作成しておく。
# dd if=/dev/zero of=/root/myscsi.img bs=1G count=150
/backstores> cd /backstores/pscsi /backstores/pscsi> create name=xxxx dev=/dev/xxxx
/backstores> cd /backstores/ramdisk /backstores/ramdisk> create name=myram size=2G
/backstores/fileio/myscsi> /iscsi create Created target iqn.2003-01.org.linux-iscsi.hoge.x8664:sn.d2f860cab8b1. Created TPG 1. Entering new node /iscsi/iqn.2003-01.org.linux-iscsi.hoge.x8664:sn.d2f860cab8b1/tpg1
/iscsi/iqn.20...60cab8b1/tpg1> cd / /> cd /iscsi/iqn.2003-01.org.linux-iscsi.hoge.x8664:sn.d2f860cab8b1/tpg1 /iscsi/iqn.20...60cab8b1/tpg1> luns/ create /backstores/fileio/myscsi Created LUN 0. Entering new node /iscsi/iqn.2003-01.org.linux-iscsi.hoge.x8664:sn.d2f860cab8b1/tpg1/luns/lun0
/iscsi/iqn.20...60cab8b1/tpg1> portals/ create 192.168.2.109 Using default IP port 3260 Created network portal 192.168.2.109:3260.
/iscsi/iqn.20...60cab8b1/tpg1> acls/ create iqn.1991-05.com.microsoft:zzz-pc Created Node ACL for iqn.1991-05.com.microsoft:zzz-pc Created mapped LUN 0.
/iscsi/iqn.20...60cab8b1/tpg1> cd acls/iqn.1991-05.com.microsoft:zzz-pc /iscsi/iqn.20...icrosoft:zzz-pc> set auth userid=hogeuser Parameter userid is now 'hogeuser'. /iscsi/iqn.20...icrosoft:zzz-pc> set auth password=mytargetsecret Parameter password is now 'mytargetsecret'.
/iscsi/iqn.20...icrosoft:zzz-pc> cd / /> saveconfig Existing file /etc/target/saveconfig.json backed up to saveconfig.json.backup Configuration saved to /etc/target/saveconfig.json /> exit
# systemctl start targetcli.service # systemctl enable targetcli.service
/> restoreconfig /etc/target/saveconfig.json
# wget http://github.com/downloads/zfsonlinux/spl/spl-0.6.0-rc9.tar.gz # tar zxvf spl-0.6.0-rc9.tar.gz # cd spl-0.6.0-rc9 # ./configure && make rpm && sudo rpm -Uvh *.x86_64.rpm # wget http://github.com/downloads/zfsonlinux/zfs/zfs-0.6.0-rc9.tar.gz # tar zxvf zfs-0.6.0-rc9.tar.gz # cd zfs-0.6.0-rc9 # ./configure && make rpm && rpm -Uvh *.x86_64.rpm
# yum -y install tigervnc-server # su - fedora $ vncpasswd $ vncserver :1 $ vncserver -kill :1
# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@1.service # vi /etc/systemd/system/vncserver@1.service ExecStart=/sbin/runuser -l fedora -c "/usr/bin/vncserver %i" ExecStop=/sbin/runuser -l fedora -c "/usr/bin/vncserver -kill %i" # systemctl start vncserver@1.service # systemctl enable vncserver@1.service