Quick answer to this simple question is
locate <filename>
and to update slocate database
sudo updatedb
As always there is also long answer.
Tuesday, November 26, 2013
Monday, November 25, 2013
Install postgres, pgadmin in Ubuntu 12.04
Installing postgres database to Ubuntu 12.04 run
To allow connection to postgres database from host computer these steps are necessary:
- sudo apt-get install postgresql
- sudo apt-get install postgresql-contrib
- sudo apt-get install pgadmin3
To allow connection to postgres database from host computer these steps are necessary:
- In VirtualBox NAT Advanced settings add port forwarding 5432 -> 65432
- In guest start sudo vim /etc/postgresql/9.1/main/pg_hba.conf and add these lines
host all all 192.168.0.0/16 md5
host all all 10.0.0.0/8 md5 - sudo vim /etc/postgresql/9.1/main/postgresql.conf
listen_addresses = '*' - sudo -u postgres psql and execute
create user vagrant with password 'vagrant';
create database pentaho;
GRANT ALL PRIVILEGES ON DATABASE pentaho to vagrant;
alter user vagrant with superuser;
\c pentaho
CREATE SCHEMA repo;
CREATE SCHEMA target;
- In host pgadmin III create new connection
Name: local
Host: localhost
Port: 65432
Maintenance DB: pentaho
Username: vagrant
Password: vagrant
Add shared folder in VirtualBox
In Win7 host, Ubuntu 12.04 guest I tried to add Shared folder, but there are some simple tricks to know.
$ sudo apt-get install build-essential module-assistant linux-headers-$(uname -r) dkms -y
$ wget -c http://download.virtualbox.org/virtualbox/4.0.16/VBoxGuestAdditions_4.0.16.iso
$ sudo mount VBoxGuestAdditions_4.0.16.iso -o loop /mnt
- Add shared folder in VirtualBox (Settings -> Shared Folder -> Machine Folders)
- Make sure that the additions are installed, and that you have added your username as a member of the vboxsf group (sudo usermod -aG vboxsf <your username>).
- After restart shared folder /media/sf_shared should be in place
$ sudo apt-get install build-essential module-assistant linux-headers-$(uname -r) dkms -y
$ wget -c http://download.virtualbox.org/virtualbox/4.0.16/VBoxGuestAdditions_4.0.16.iso
$ sudo mount VBoxGuestAdditions_4.0.16.iso -o loop /mnt
Install Oracle Java 7 to Ubuntu 12.04
Easiest way to do it is to run in terminal
Nice thing is that it keeps java version up-to-date. There is longer explanation with different alternatives in Ubuntu site.
Optional: add to .bashrc
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Nice thing is that it keeps java version up-to-date. There is longer explanation with different alternatives in Ubuntu site.
Optional: add to .bashrc
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
Install Ubuntu Desktop in Virtualbox
My idea was to use Vagrant to install and start Ubuntu Desktop. First step is to downloaded Vagrant and then start command line and move into new empty directory. Next step is to download Ubuntu server
vagrant box add ubuntu64-13.04 http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-
cloudimg-amd64-vagrant-disk1.box
and start it
vagrant init ubuntu64-13.04
vagrant it
ssh into new server and install graphical user interface
vagrant ssh
sudo apt-get install ubuntu-desktop
allow graphical user interface in configuration file Vagrant
config.vm.provider :virtualbox do |vb|
vb.gui = true
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
restart the system
vagrant reload
Actually it came out that Ubuntu Desktop graphics is really slooow, so I give up and started install Ubuntu Desktop without Vargant from scratch. Lesson that I learned today: dont use hammer when you have screws. Vargant is not meant to use with graphical desktop.
vagrant box add ubuntu64-13.04 http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-
cloudimg-amd64-vagrant-disk1.box
and start it
vagrant init ubuntu64-13.04
vagrant it
ssh into new server and install graphical user interface
vagrant ssh
sudo apt-get install ubuntu-desktop
allow graphical user interface in configuration file Vagrant
config.vm.provider :virtualbox do |vb|
vb.gui = true
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
restart the system
vagrant reload
Actually it came out that Ubuntu Desktop graphics is really slooow, so I give up and started install Ubuntu Desktop without Vargant from scratch. Lesson that I learned today: dont use hammer when you have screws. Vargant is not meant to use with graphical desktop.
Monday, September 30, 2013
How to check that site is down.
I had problem with Zulutrade website and I try to figure out is problem in my pc/office network or is server actually down. I found simple service http://www.isitdownrightnow.com, where everybody who has problems can report.
Nice service and it works!
Nice service and it works!
Tuesday, September 10, 2013
Installing ODI 11.1.1.7.0 on Windows 7 64bit
It sould be easy to install any software nowadays, but it is not. Specially painful is installation of packages from big companies, because these are huge packages with lot of dependencies.
My last challenge was to install Oracle ODI Studio on my laptop and it was real problem to even start the installer. After some investigation I find this article from google, that solve my problem.
Some important points that I discovered:
My last challenge was to install Oracle ODI Studio on my laptop and it was real problem to even start the installer. After some investigation I find this article from google, that solve my problem.
Some important points that I discovered:
- Win7 64bit jre and oracle installer are working together (despite some posts that claim otherwise)
- Command order to start Oracle ODI installer
run cmd.exe as Administrator (It does not work without it, despite installer asks Administrator password)
setup.exe -jreLoc C:\Progra~1\Java\jdk1.7.0_29
Subscribe to:
Posts (Atom)