Langsung ke konten utama

Postingan

Menampilkan postingan dari 2017

How to switch php in linux

I have 2 version php in my linux. Php version 5.3.8 and 7.0. So how i switch them? 1. check your php version $ php -v 2. and then, add path .bashrc $ nano ~/.bashrc 3. add the path that you install php in the end of line PATH=/opt/lampp/bin:$PATH 4. and save file 5. restart your terminal and check your php version

How to install Go Lang in Linux

1. Download the package in https://golang.org/dl/ for linux 2. Open your terminal and set the path in your package location 3. Extract the file with this command -> tar -C /usr/local -xzf name_of_package 4. Export path for go lang. Follow this command -> export PATH=$PATH:/usr/local/go/bin 5. Finish. Go lang already install in your computer. If you wanna test the installation work or not follow this step : 1. create new directory src/hello in /usr/local/go/bin $ mkdir hello 2. create file hello.go inside src/hello. the file content is like below : package main import "fmt" func main() { fmt.Printf("hello, world\n") } 3. and then set the path to src/hello and run this -> go build 4. for run the file, run this command -> ./hello 5. if you see "hello, world" message then your installation is succesfully. Thnks for reading. If you have a problem please feel free to email me in yasminghassani@gmail.com. And i hope i can help yo...

Smartgit can't open in java 1.7

I have a problem when i change my java version from 1.8 to 1.7. The problem is my smartgit can't run and open. So, how to fix it? It's so easy. Just follow this step!! 1. Check your java version $ java -version. In terminal that it show if the version of java is 1.7. So we need to change it because smartgit only run in java 1.8. 2. Run in terminal $ nano ~/.smartgit/smartgit.vmoptions 3. And then add this jre=/usr/lib/jvm/java-1.8.0-openjdk-amd64/ 4. Save the file and try open your smartgit. Tadaaaa...!!! And its work :) Thanks for reading! Give like if its work and usefull.