setting up sts shortcut & installation
copy extracted folder to
/opt/sts-3.7.0
go to
cd /usr/share/applications
create a file
sts.desktop
with
[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/opt/sts-3.7.0/STS
Terminal=false
Icon=/opt/sts-3.7.0/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE
Name[en]=Spring Tool Suite
Access to shared host folder
get access to shared host folder
sudo adduser [username] vboxsf
Installing firefox on ubunutu
Down load the latest installation
wget ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/30.0/linux-x86_64/en-US/firefox-30.0.tar.bz2
tar -xjvf firefox-30.0.tar.bz2
sudo rm -rf /opt/firefox*
sudo mv firefox /opt/firefox30.0
sudo ln -sf /opt/firefox30.0/firefox /usr/bin/firefox
Add a bookmark to folder structure
open expolorer
go to folder
goto bookmarks in the menu
add bookmark
Enter the directory you want to bookmark and go to
Bookmarks → Add bookmark or just press Ctrl+D.
Install java
down load java.tar.gz
uncompress and move to /user/local/java
#add to system path
sudo gedit /etc/profile
#add
JAVA_HOME=/usr/local/java/jdk1.8.0_102
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH
#set java auto mode
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_102/jre/bin/java" 1
#set default java
sudo update-alternatives --set java /usr/local/java/jdk1.8.0_102/jre/bin/java
Installing sql developer
download sqldeveloper
#extract to /opt/
sudo unzip sqldeveloper-4.1.3.20.78-no-jre.zip -d /opt/
#launch script executable
sudo chmod +x /opt/sqldeveloper/sqldeveloper.sh
#Linking over an in-path launcher for Oracle SQL Developer
sudo ln -s /opt/sqldeveloper/sqldeveloper.sh /usr/local/bin/sqldeveloper
#execute sql developer
sudo /opt/sqldeveloper/sqldeveloper.sh
#give java location, will save in /home/nuwan/.sqldeveloper/4.1.0/product.conf
#create desktop application
cd /usr/share/applications/
sudo vim sqldeveloper.desktop
#add following
[Desktop Entry]
Exec=sqldeveloper
Terminal=false
StartupNotify=true
Categories=GNOME;Oracle;
Type=Application
Icon=/opt/sqldeveloper/icon.png
Name=Oracle SQL Developer
#update
sudo update-desktop-database
issues
check file permissions if app not startign
installing php with apache
sudo apt-get install apache2
sudo apt-get install libapache2-mod-php7.0
remove package
sudo apt-get autoremove php7.0
restart apache
sudo service apache2 restart
verify if the daemon is started and on what ports it binds
sudo systemctl status apache2.service
sudo netstat –tlpn
php -v
get php version
testing php on web
create sudo nano /var/www/html/info.php
with
<?php
phpinfo();
?>
changing root directory for PHP
/etc/apache2/sites-available/000-default.conf
To install extra packages
after sudo apt-get install java
press [tab]
Execute command on startup
#enter
crontab -e
#add
@reboot @reboot /etc/nuwan_scripts/startupdb.sh
#create a file at given location add content
#!/bin/bash
ssh -f -L 61521:10.23.10.98:1521 usenanu@bridge.pearsoncmg.com -N
exit
vm
#add yourself to the vboxsf group
sudo adduser [username] vboxsf
Comments
Post a Comment