The issue is that while importing Gradle project SSL Exception happened.
The matter is that Gradle refers to https://plugins.gradle.org and cannot establish connection without proper certificate.
In order to fix it: install the certificate, which is attached.
1. Open cmd with admin rights,
2. Change to JDK bin directory (for example, C:\Program Files\Java\jdk1.8.0_66\bin>)
3. keytool.exe -import -alias plugins -keystore "C:\Program Files\Java\jdk1.8.0_66\jre\lib\security\cacerts" -file C:\certificats\certificate.cer
EXAMPLE:
keytool.exe -import -alias plugins -keystore "C:\Program Files\Java\jdk1.8.0_66\jre\lib\security\cacerts" -file C:\certificats\certificate.cer
(keystore password: changeit)
Showing posts with label terminal. Show all posts
Showing posts with label terminal. Show all posts
Tuesday, January 19, 2016
Saturday, April 25, 2015
Install Tomcat on Ubuntu
sudo apt-get update
sudo apt-get install tomcat7
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-7-on-ubuntu-14-04-via-apt-get
If Tomcat had been installed correctly you should be able to see the info below by url: http://localhost:8080
This is the default Tomcat home page. It can be found on the local filesystem at:
Tomcat7 veterans might be pleased to learn that this system instance of Tomcat is installed with
You might consider installing the following packages, if you haven't already done so:
tomcat7-docs: This package installs a web application that allows to browse the Tomcat 7 documentation locally. Once installed, you can access it by clicking here.
tomcat7-examples: This package installs a web application that allows to access the Tomcat 7 Servlet and JSP examples. Once installed, you can access it by clicking here.
tomcat7-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp.
NOTE: For security reasons, using the manager webapp is restricted to users with role "manager-gui". The host-manager webapp is restricted to users with role "admin-gui". Users are defined in
sudo apt-get install tomcat7
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-7-on-ubuntu-14-04-via-apt-get
If Tomcat had been installed correctly you should be able to see the info below by url: http://localhost:8080
It works !
If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!This is the default Tomcat home page. It can be found on the local filesystem at:
/var/lib/tomcat7/webapps/ROOT/index.htmlTomcat7 veterans might be pleased to learn that this system instance of Tomcat is installed with
CATALINA_HOME in /usr/share/tomcat7 and CATALINA_BASE in /var/lib/tomcat7, following the rules from /usr/share/doc/tomcat7-common/RUNNING.txt.gz.You might consider installing the following packages, if you haven't already done so:
tomcat7-docs: This package installs a web application that allows to browse the Tomcat 7 documentation locally. Once installed, you can access it by clicking here.
tomcat7-examples: This package installs a web application that allows to access the Tomcat 7 Servlet and JSP examples. Once installed, you can access it by clicking here.
tomcat7-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp.
NOTE: For security reasons, using the manager webapp is restricted to users with role "manager-gui". The host-manager webapp is restricted to users with role "admin-gui". Users are defined in
/etc/tomcat7/tomcat-users.xml.Wednesday, April 15, 2015
Get horizontal scroll and enable maximazing of window of Command Prompt (cmd) on Windows 7
- Open a Command Prompt (cmd.exe) by typing cmd in Start menu e.g.
- From inside the Command Prompt window, run wmic
- Right-Click the title bar of the Command Prompt window and select Properties
- Check QuickEdit Mode
- Exit the Command Prompt
All subsequent launches of the command prompt will have a horizontal scroll bar and support maximizing the window.
Saturday, March 21, 2015
Linux Ubuntu - What does the asterisk mean after a filename
The asterisk after a filename means in Linux that that file is executable
Saturday, March 15, 2014
Monday, December 2, 2013
How to list all runnung processes (PID) with ports on Windows
List all running PID with ports:
netstat -ano
Kill process:
taskkill /PID ##### /F
netstat -ano
Kill process:
taskkill /PID ##### /F
Thursday, March 21, 2013
How to change a HOSTNAME on mac
If you have to change a hostname of your Mac do this in Terminal:
1. Check your hostname with the one of these commands:
hostname
echo $HOSTNAME
uname -n
2. Set a new hostname:
sudo scutil --set HostName yourNewHostname
1. Check your hostname with the one of these commands:
hostname
echo $HOSTNAME
uname -n
2. Set a new hostname:
sudo scutil --set HostName yourNewHostname
Thursday, September 13, 2012
How to navigate in Terminal command line and in VIM on Mac OSX
TERMINAL commands in MAC OSX
Ctrl + a (takes you to the beginning of the line)
Ctrl + e (takes you to the end of the line)
Alt or Option + (left arrow) or (right arrow) move back by 1 word (the alternative is Esc + b or Esc + f -- I have to retype Esc + b *each time*)
Ctrl + L Clears the Screen, similar to the clear command
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H Same as backspace
Ctrl + R Let’s you search through previously used commands
Ctrl + C Kill whatever you are running
Ctrl + D Exit the current shell
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
Alt + F Move cursor forward one word on the current line
Alt + B Move cursor backward one word on the current line
Tab Auto-complete files and folder names
VIM commands in MAC OSX
Ctrl + a (takes you to the beginning of the line)
Ctrl + e (takes you to the end of the line)
Alt or Option + (left arrow) or (right arrow) move back by 1 word (the alternative is Esc + b or Esc + f -- I have to retype Esc + b *each time*)
Ctrl + L Clears the Screen, similar to the clear command
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H Same as backspace
Ctrl + R Let’s you search through previously used commands
Ctrl + C Kill whatever you are running
Ctrl + D Exit the current shell
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it.
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
Alt + F Move cursor forward one word on the current line
Alt + B Move cursor backward one word on the current line
Tab Auto-complete files and folder names
VIM commands in MAC OSX
| ctrl-F | Move forward one screen. |
| ctrl-B | Move backward one screen. |
| $ | Move cursor to end of line. |
| ^ | Move cursor to beginning of line. |
| :1 | Move to first line of file |
| :$ | Move to last line of file |
| / | Search for a character string. |
| ? | Reverse search for a character string. |
| x | Delete the character at the cursor position. |
| dd | Delete the current line. |
| p | Paste data that was cut with x or dd commands. |
| u | Undo. |
Entering Input Mode
| a | Add text after the cursor. |
| i | Insert text before the cursor. |
| R | Replace text starting at the cursor. |
| o | Insert a new line after the current one. |
Entering Command Mode
| esc | Switch from Input mode to Command mode. |
Exiting or Saving Your File
| :w | Write file to disk, without exiting editor. |
| ZZ | Save the file and exit. |
| :q! | Quit without saving. |
Monday, August 20, 2012
Android: How to Install Apps using ADB
If you want to install your *.apk of Android application in other way then through IDE as Eclipse use your Terminal and execute command:
adb install path_to_your_application.apk
http://androidcommunity.com/forums/f4/how-to-install-apps-using-adb-4482/
adb install path_to_your_application.apk
http://androidcommunity.com/forums/f4/how-to-install-apps-using-adb-4482/
Saturday, August 11, 2012
How to open a file in command line on Mac OSX Terminal application
If you want to open some file/application do this in Terminal cli:
MBPro-2:tools apple$ open android
where "open" is the command in command line
and "android" is some application (in this case I use android application from Android SDK/tool)
For full reference of command for Terminal in Mac OSX see check this link.
MBPro-2:tools apple$ open android
where "open" is the command in command line
and "android" is some application (in this case I use android application from Android SDK/tool)
For full reference of command for Terminal in Mac OSX see check this link.
Thursday, August 9, 2012
How to Stop Jenkins on Mac OSX localhost
If you need to stop Jenkins on your Mac OSX do execute this command in your Terminal:
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
If in case you want to again have your jenkins started.. just use the reverse of the above
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
If in case you want to again have your jenkins started.. just use the reverse of the above
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
See more references on this topic here.
Tuesday, July 31, 2012
How to Change MAC address on Mac OSX
If you want to change the MAC address of your Mac do this in Terminal:
1. Check the current MAC address of your Mac:
ifconfig en0 |grep ether
2. Generate new random MAC address:
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
3. Change MAC address of your Mac:
sudo ifconfig en0 ether d4:33:a3:ed:f2:12 (it is just example)
4. Check the changes:
ifconfig en0 |grep ether
1. Check the current MAC address of your Mac:
ifconfig en0 |grep ether
2. Generate new random MAC address:
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
3. Change MAC address of your Mac:
sudo ifconfig en0 ether d4:33:a3:ed:f2:12 (it is just example)
4. Check the changes:
ifconfig en0 |grep ether
Wednesday, November 9, 2011
Basics commands in Terminal Mac OSX
Here is the link where you can download PDF file about Basics of Terminal in Mac OSX:
http://homepage.mac.com/rgriff/files/TerminalBasics.pdf
http://homepage.mac.com/rgriff/files/TerminalBasics.pdf
Tuesday, November 1, 2011
How delete all data from MySQL table
There are two ways to delete all the data in a MySQL database table.
TRUNCATE TABLE tablename; This will delete all data in the table very quickly. In MySQL the table is actually dropped and recreated, hence the speed of the query. The number of deleted rows for MyISAM tables returned is zero; for INNODB it returns the actual number deleted.
DELETE FROM tablename; This also deletes all the data in the table, but is not as quick as using the "TRUNCATE TABLE" method. In MySQL >= 4.0 the number of rows deleted is returned; in MySQL 3.23 the number returned is always zero.
TRUNCATE TABLE tablename; This will delete all data in the table very quickly. In MySQL the table is actually dropped and recreated, hence the speed of the query. The number of deleted rows for MyISAM tables returned is zero; for INNODB it returns the actual number deleted.
DELETE FROM tablename; This also deletes all the data in the table, but is not as quick as using the "TRUNCATE TABLE" method. In MySQL >= 4.0 the number of rows deleted is returned; in MySQL 3.23 the number returned is always zero.
Read more about it in this post:
How to list all tables in MySQL
If you want to see all tables created in your DataBase list them using this commands:
1. Enter to your DB
mysql db; (where db is the name for your DataBase)
2. Type
show tables;
1. Enter to your DB
mysql db; (where db is the name for your DataBase)
2. Type
show tables;
How to change permission in Linux
If you want to change the permission for some files or directories in Linux do this:
sudo -s
cd /dir1
find dir1/ -type f -perm 555 (if you just want to see that files)
find dir1/ -type f -perm 555 -exec chmod 644 {} \;
find dir1/ -type d -perm 555 -exec chmod 755 {} \;
ls -l
sudo -s
cd /dir1
find dir1/ -type f -perm 555 (if you just want to see that files)
find dir1/ -type f -perm 555 -exec chmod 644 {} \;
find dir1/ -type d -perm 555 -exec chmod 755 {} \;
ls -l
Wednesday, October 26, 2011
How to create TGZ archive with TAR
First of all: extension *.tar is the as tar.gz
Create tgz Archive with this command:
tar -cvzf newArchive.tgz sourceFileOrFolderNameForArchive
What is -cvzf:
c - "create" it means you want to create this archive
v - "verbose" if you want to see the process... it shows details about the results of running tar.
z - "zip" it means you want to compress file. tar will use the `compress' program.
f - "filename" it means you want to name archive with the specific name.
If you want to read the TAR manual in Terminal type in Terminal man tar
Or read this here http://ss64.com/bash/tar.html
Create tgz Archive with this command:
tar -cvzf newArchive.tgz sourceFileOrFolderNameForArchive
What is -cvzf:
c - "create" it means you want to create this archive
v - "verbose" if you want to see the process... it shows details about the results of running tar.
z - "zip" it means you want to compress file. tar will use the `compress' program.
f - "filename" it means you want to name archive with the specific name.
If you want to read the TAR manual in Terminal type in Terminal man tar
Or read this here http://ss64.com/bash/tar.html
Open files from the Terminal with the appropriate application
open foo.jpg
open -a Preview foo.jpg
open -a "Adobe Photoshop 10.0" foo.jpg
Refer to this linkhttp://hints.macworld.com/article.php?story=2004012218171997
Tuesday, October 25, 2011
How to extract *.tgz archives on Mac
If you need make archive *.tgz etc use a good wrapper archiver application for Mac - GUI Tar. It could execute complicated UNIX operations of Extracting and Compressing files.
Here is the link for download http://www.macupdate.com/app/mac/14503/gui-tar
Here is the link for download http://www.macupdate.com/app/mac/14503/gui-tar
Monday, October 3, 2011
How to get files to your local Mac Desktop from remote server
In order to get files to your local Mac Desktop from remote server do this:
1. Make sure your VPN is working;
2. Use this command in Terminal:
scp root@ip-addres:/root/dir1/dir2/t0backend/dist/mw.rpm \~/Desktop/Icinga_rpms/
1. Make sure your VPN is working;
2. Use this command in Terminal:
scp root@ip-addres:/root/dir1/dir2/t0backend/dist/mw.rpm \~/Desktop/Icinga_rpms/
If you want to send some files from your local Mac Desktop to some OS (e.g. Linux) on DevVM do this:
1. Make sure your VM is running;
2. Use this command in Terminal:
scp ~/Desktop/Icinga_rpms/mw.rpm \devvm@192.168.188.130:~/Desktop
Subscribe to:
Posts (Atom)