Install Gradle on Ubuntu
First install SDKMAN
curl -s "https://get.sdkman.io" | bash source "$HOME/.sdkman/bin/sdkman-init.sh"
Install Gradle
sdk install gradle
References
http://sdkman.io/install.html
https://gradle.org/install/
First install SDKMAN
curl -s "https://get.sdkman.io" | bash source "$HOME/.sdkman/bin/sdkman-init.sh"
Install Gradle
sdk install gradle
References
http://sdkman.io/install.html
https://gradle.org/install/
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java9-installer
if you want to set Oracle Java 9 as default
sudo apt-get install oracle-java9-set-default
If you don’t want to make Oracle Java 9 default
sudo apt-get install --no-install-recommends oracle-java9-installer
References
http://www.webupd8.org/2015/02/install-oracle-java-9-in-ubuntu-linux.html
sudo apt-get install software-properties-common -y sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev sudo apt-get update sudo apt install shadowsocks-libev
Configure and start the service
# Edit the configuration file sudo vim /etc/shadowsocks-libev/config.json # Edit the default configuration for debian sudo vim /etc/default/shadowsocks-libev # Start the service sudo /etc/init.d/shadowsocks-libev start # for sysvinit, or sudo systemctl start shadowsocks-libev # for systemd sudo systemctl enable shadowsocks-libev
tar xvf go1.6.linux-amd64.tar.gz
You should now have a directory called go in your home directory
sudo chown -R root:root ./go sudo mv go /usr/local
sudo nano ~/.profile
export GOPATH=$HOME/go export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
source ~/.profile
Windows
Set GOROOT, GOPATH, GOBIN System Variable
References
https://www.digitalocean.com/community/tutorials/how-to-install-go-1-6-on-ubuntu-16-04
http://www.wadewegner.com/2014/12/easy-go-programming-setup-for-windows/
https://stackoverflow.com/questions/25216765/gobin-not-set-cannot-run-go-install
Ubuntu 16.04 :
create this file if it does not exist :
/etc/systemd/system/rabbitmq-server.service.d/limits.conf
and add this :
[Service] LimitNOFILE=300000
sudo systemctl daemon-reload
sudo service rabbitmq-server restart
References
https://www.rabbitmq.com/install-debian.html
https://kimambo.de/increasing-limits-for-socket-descriptors-on-ubuntu-for-rabbitmq/
Connecting to a database behind a firewall
ssh -L 9000:localhost:5432 user@example.com
Remote port forwarding
ssh -R 9000:localhost:3000 user@example.com
sudo nano /etc/ssh/sshd_config GatewayPorts yes sudo service ssh restart
Make fully executable applications for Unix systems
A fully executable jar can be executed like any other executable binary or it can be registered with init.d or systemd
Gradle configuration:
bootJar { launchScript() }
Installation as a systemd Service
create a script named myapp.service
and place it in /etc/systemd/system
directory
[Unit] Description=myapp After=syslog.target [Service] User=myapp ExecStart=/var/myapp/myapp.jar SuccessExitStatus=143 [Install] WantedBy=multi-user.target
Remember to change the Description
, User
, and ExecStart
fields for your application.
To flag the application to start automatically on system boot, use the following command:
systemctl enable myapp.service
References
https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-managing_services_with_systemd-unit_files
https://tecadmin.net/setup-autorun-python-script-using-systemd/
https://www.raspberrypi-spy.co.uk/2015/10/how-to-autorun-a-python-script-on-boot-using-systemd/
tracker-preferences
References
https://ask.fedoraproject.org/en/question/9822/how-do-i-disable-tracker-in-gnome/
sudo add-apt-repository ppa:inkscape.dev/stable sudo apt-get update
References
https://launchpad.net/~inkscape.dev/+archive/ubuntu/stable