Following Nokogiri Installation for Ubuntu I run below #nokogiri requirement in my terminal:
sudo apt-get install libxslt-dev libxml2-dev
sudo gem install nokogiri
Running “sudo gem install nokogiri” displays the following error:
Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb extconf.rb:5:in `require': no such file to load -- mkmf (LoadError) from extconf.rb:5 Gem files will remain installed in /var/lib/gems/1.8/gems/nokogiri-184.108.40.206 for inspection. Results logged to /var/lib/gems/1.8/gems/nokogiri-220.127.116.11/ext/nokogiri/gem_make.out
Was able to resolve the issue by installing ruby1.8-dev and reinstalling the nokogiri gem:
sudo apt-get install ruby1.8-dev
sudo gem install nokogiriexist@exist:~$ sudo gem install nokogiri Building native extensions. This could take a while... Successfully installed nokogiri-1.4.4 1 gem installed Installing ri documentation for nokogiri-1.4.4...
I needed to install OpenVPN(open source virtual private network) in my Linux machine to be able to access our staging server. OpenVPN allows you to establish a secure point to point access to network resources and services.
OpenVPN can be used in two ways – Server and Client. OpenVPN server is the system that you wish to use as VPN end-point or the one you want to access. In my case what I needed to do is to install OpenVPN as client or the one making a service request.
1. Install OpenVPN using terminal:
sudo apt-get install openvpn
2. Create client configuration file in /etc/openvpn
sudo cp /usr/share/doc/openvpn/examples/sample-config-files/client.conf /etc/openvpn
3. Setup client config file, server keys and certificates in /etc/openvpn folder (in my case our client sent these files generated from the server)
4. Edit client configuration file (client.conf) based on above directory
# example client config file
remote [server] 1194
tls-auth /etc/openvpn/keys/ta.key 1
keepalive 10 60
5. Go to /etc/openvpn folder and start the OpenVPN
exist@exist:/etc/openvpn$ sudo openvpn client.conf
Mon Apr 23 13:44:43 2012 OpenVPN 2.1.0 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Jul 12 2010
Mon Apr 23 13:44:43 2012 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Mon Apr 23 13:44:50 2012 [server] Peer Connection Initiated with [AF_INET]xxx.xxx.xx.xxx:1194
Mon Apr 23 13:44:52 2012 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Mon Apr 23 13:44:53 2012 TUN/TAP TX queue length set to 100
Mon Apr 23 13:44:53 2012 /sbin/ifconfig tun0 10.8.1.190 pointopoint 10.8.1.189 mtu 1500
Mon Apr 23 13:44:53 2012 /sbin/route add -net 192.168.3.0 netmask 255.255.255.0 gw 10.8.1.189
Mon Apr 23 13:44:53 2012 /sbin/route add -net 10.3.0.0 netmask 255.255.0.0 gw 10.8.1.189
Mon Apr 23 13:44:53 2012 /sbin/route add -net 10.8.1.1 netmask 255.255.255.255 gw 10.8.1.189
Mon Apr 23 13:44:53 2012 Initialization Sequence Completed
There you go! By this time, you should be able to access the application you want to test However in our case we needed to setup the IP address of the server that we are trying to gain access in our hosts file. From the terminal, we type:
[user]@exist:~$ sudo su -
[sudo] password for [user]: [input password]
root@[user]:~# vi /etc/hosts
Then input the IP address and the corresponding name of the web server we are trying to access at the end of the line.
I’ve been using Ubuntu since 2009, then on I only knew it was an open source, secure Debian-based Linux operating system that most of our developers use so might as well use it.
I’ve never really cared about its story not until I read the book “Global Voices: The Compilation” by Craig and Marc Kielburger earlier this year where Archbishop Desmund Tutu contributed in the foreword:
“In Southern Africa we have a concept called Ubuntu – which is that you cannot exist as a human being in isolation . You can’t be human all by yourself. What you do, what I do affects the whole world.”
Wow! This was a refreshing idea for me. Ubuntu! what a strong word! Reading more About Ubuntu, I couldn’t agree more with some of their Code of Conduct - be considerate, be respectful and be collaborative.
Mitch Albom supports this idea in his book “The Five People You Meet in Heaven” where he emphasized that we are all connected:
“…there are no random acts. that we are all connected. That you can no more separate one life from another than you can separate a breeze from the wind.”
Now the Ubuntu logo makes more sense to me
“Humanity towards others”
Encountered below error upon mounting my WD HDD in my Linux laptop:
Error mounting: mount exited with exit code 13: $MFTMirr does not match $MFT (record 0).Failed to mount ‘/dev/sdb1′: Input/output error NTFS is either inconsistent, or there is a hardware fault, or it’s a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the ‘dmraid’ documentation for more details.
To fix, first install ntfsprogs utility by typing in the terminal:
sudo apt-get install ntfsprogs
sudo ntfsfix /dev/partitionName
In my case, sudo ntfsfix /dev/sdb1
To check if the fix was successful, these commands should be displayed:
exist@exist:~/Projects/ehealth/lib$ sudo ntfsfix /dev/sdb1
Mounting volume… FAILED
Attempting to correct errors…
Processing $MFT and $MFTMirr…
Reading $MFT… OK
Reading $MFTMirr… OK
Comparing $MFTMirr to $MFT… FAILED
Correcting differences in $MFTMirr record 0…OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition… OK
Going to empty the journal ($LogFile)… OK
NTFS volume version is 3.1.
NTFS partition /dev/sdb1 was processed successfully.
Whew! Now I was able to access my HDD =) Thanks to forums online!
I don’t want to annoy my colleagues with the music I’m listening, but the sounds in my company issued laptop, ASUS K52J with OS(Ubuntu 10.10) persistently comes from the speakers even after plugging my headphones
Was able to resolve this issue by installing Linux Alsa Driver Modules
1. In your terminal, add the ppa
sudo add-apt-repository ppa:ubuntu-audio-dev/ppa
sudo apt-get update
2. Install the linux-alsa-driver-modules package
sudo apt-get install linux-alsa-driver-modules-$(uname -r)
3. Restart your machine
Thanks to this wiki page works like gem!
In relation to my previous post on Selenium and Ruby setup in Windows, here’s an installation guide for Linux peeps:
1. Install JRE
- In your terminal type: sudo apt-get install sun-java6-jre
- To verify type: java -version
Note: Java version should be 1.5 or higher versions
2. Install Ruby
- In your terminal, type: sudo apt-get install ruby
- To verify type: ruby –version
Note: ruby 1.8.7 works with rspec version <= 1.3.1
3. Install Rubygems
- From the terminal, type: sudo apt-get install rubygems OR you can follow this tutorial Installing RubyGems
- To verify type: gem –version
4. Install other useful gems
- Rake ( to create a task that runs set of tests )
- Type: sudo gem install rake
- To verify type: rake –version
- Selenium-client ( API to drive Selenium tests from Ruby )
- Type: sudo gem install selenium-client -v 1.2.18
- To verify type: gem list selenium-client
Note: selenium-client 1.2.18 works with rspec version 1.2.8
- Rspec ( to define executable examples of the expected behaviour of your code )
- Type: sudo gem install rspec -v 1.2.8
- To verify type: spec –version
- Faker ( to easily generate fake data: names, addresses, phone numbers, etc. )
- Type: sudo gem install faker
- To verify type: gem list faker
1. Go to Oracle site
2. Download appropriate SQL Developer distribution file based on your machine requirements. In my case I selected Oracle SQL Developer for 32-bit Windows (though I’m using an Ubuntu box)
3. Extract the file to your desired folder
4. Launch terminal, go to your extracted file and type: bash sqldeveloper.sh
This will ask for the path/directory of your java installation. I continue by inputting: /usr/lib/jvm/<java folder>
At this point your SQL Developer 2.1.1. should already launch and should enable you to create new connections to your DB.
To launch your SQL Developer again, clicking the sqldeveloper.sh file should do this for you. In any case it won’t work,
1. Right click on the .sh file, go to Properties
2. Enable ‘Allow executing file as program’