Archive

Archive for the ‘debian’ Category

Using Oracle with Vagrant

December 6, 2014 Leave a comment

Problem:
This was a major issue for me. I needed Oracle 11g Database on my laptop.

Solution:
One of the possible solutions I took was to use vagrant. (I am pretty much just going to repeat the same steps as per what I got from the website listed in the Sources section below.)

1. Download and install Vagrant
2. Download and install VirtualBox
3. Download the Oracle 11g zip file for Linux x64
NB. Always download the Linux x64 zip file, even if you are on Windows or Mac OSX.
4. Clone the vagrant-ubuntu-oracle-xe repository from GitHub
git clone git://github.com/hilverd/vagrant-ubuntu-oracle-xe
5. Copy the Oracle 11g zip file to the directory vagrant-ubuntu-oracle-xe expects to find it in
cp ~/Downloads/oracle-xe-11.2.0-1.0.x86_64.rpm.zip ~/vagrant-ubuntu-oracle-xe/modules/oracle/files
6. Install vbguest
vagrant plugin install vagrant-vbguest
7. Invoke Vagrant to install and configure Oracle 11g
cd ~/vagrant-ubuntu-oracle-xe
vagrant up

After a few minutes your local machine will be running an Oracle 11g server on a virtual instance of Ubuntu 12.04

Well… not exactly.
1. I had run out of space on my / partition. I couldn’t install the new linux header files that were needed. The quickest thing for me was to format my machine. This time round I gave a bit more GBs to / partition.
2. Added some mirrors to /etc/apt/sources.list
3. root> apt-get update
4. First mistake I made was not to do apt-get dist-upgrade
5. So, oblivious of that, I followed steps 1 to 7, but vagrant up brought more errors
6. The kernel version on my machine and the latest linux-headers- being seen by virtual box were not the same. I was getting an error similar to this. (It was late and I did not have the presence of mind to save the errors. Sorry.)
$ VBoxManage --version
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-ose-dkms package and the appropriate
headers, most likely linux-headers-generic

You will not be able to start VMs until this problem is fixed.
X.X.XX_DebianXXXXX

7. Googled a bit. All references to above error were advising the OPs to do the following
apt-get install linux-headers-$(uname -r)
8. But above did not work since I could not find the linux-headers for the current system version that I had.
9. After 2 or 4 hours, I realised that I needed to get my kernel (3.14) to the same version as what was installed (3.16), so read about configuring kernels but the steps were too hard for my already fried brain. At this point I stumbled accross an page explaining what apt-get does. And thus I tried dist-upgrade with the hope that it would upgrade my kernel.
10. Ran the below command
root> apt-get dist-upgrade
11. Once that was done, I rebooted and sure enough my kernel was now 3.16
12. vagrant up now runs
13. So this install would have gone a whole lot more smoothly if I had updgraded my machine before I started this exercise. I’m much older and wiser 🙂

Source:
https://wiki.kuali.org/display/KULRICE/Install+Oracle+11g+using+Vagrant
https://help.ubuntu.com/community/AptGet/Howto

Advertisements

E: Internal Error, No file name for gdb:amd64

October 2, 2014 Leave a comment

Problem:

I was trying to install FLTK on 64bit debian and was installing one of the prerequisites gdb when I got the following error

E: Internal Error, No file name for gdb:amd64

Solution:
My friend google had this as a solution that worked for me. (Although it would be nice if I knew what it means.)

dpkg -i /var/cache/apt/archives/*.deb
dpkg --configure -a 

Source:
http://askubuntu.com/questions/266450/how-to-fix-e-internal-error-no-file-name-for-libc6
http://ubuntuforums.org/showthread.php?t=2185185

Categories: debian Tags: ,

PulseAudio – No sound on laptop

September 11, 2014 2 comments

Problem:
I was having a flaky sound problem. I could reboot my machine and not get any sound when playing videos via vlc or mplayer. Other times it would work. I eventually broke it and even with multiple reboots and prayers I was not getting any sound. Granted this all happened when I started messy around trying to install software that would allow me to convert mp4 videos to simple audio. (Dropped that project though since I now had bigger problems).

Debian Testing initially did not come installed with pulseaudio… I installed this due to skype. That is another issue explained here. So here is how I finally managed to get back my sound.


Solution:

I reinstalled pulseaudio (not sure if you need all these files but I was pretty desparate at this stage and just copying stuff of the internet. See source below.)

As root

apt-get install pulseaudio libao4 paprefs libpulse-mainloop-glib0 pulseaudio-module-jack pavucontrol pulseaudio-module-x11 gstreamer0.10-pulseaudio pulseaudio-utils libasound2-plugins paman pulseaudio-module-gconf libgconfmm-2.6-1c2 pavumeter libglademm-2.4-1c2a pulseaudio-esound-compat libpulse0 libpulse-dev pulseaudio-module-bluetooth pulseaudio-module-zeroconf

Then installed mate-volume-control using synpatic.

From the bash prompt I had a look at my sound settings

$ mate-volume-control

If you still have an issue with pulseaudio then mate-volume-controller will not open up. It was at this point that I noticed that my volume was on mute. Once I un-muted, my sound was back.

Extra:

Since I use fluxbox I added mate-volume-control-applet to the startup script.

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN & AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &
  nm-applet &
  xscreensaver &
  mate-power-manager &
  mate-volume-control-applet &
  nitrogen --restore &

Source:
http://forums.debian.net/viewtopic.php?t=12497

nitrogen – Setting wallpapers

September 7, 2014 Leave a comment

Problem:
Needed to setup a wallpaper on fluxbox and it needed to appear on one or two screens.

Solution:
Installed nitrogen. (Esetroot just did not work nicely for me. YMMV)

(as root) apt-get install nitrogen

Set up your preferred wallpaper using nitrogen.

$ nitrogen

nitrogen

nitrogen


Click “Preferences” and select the folder with the wallpapers. Then pick the wallpaper you want for a fullscreen or selective screens.

Nitrogen settings

$less ~/.config/nitrogen/bg-saved.cfg
[xin_0]
file=/home/rodnee/Pictures/wolves_wide.jpg
mode=0
bgcolor=#000000

[xin_1]
file=/home/rodnee/Pictures/wolves_wide.jpg
mode=0
bgcolor=#000000
.config/nitrogen/bg-saved.cfg (END)

Now all that was left was to configure fluxbox

Add nitrogen –restore to ~/.fluxbox/startup

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &
  xscreensaver &
  mate-power-manager &
  nitrogen --restore &

Added the following two lines to ~/.fluxbox/init

session.screen0.rootCommand:    nitrogen --restore
session.screen1.rootCommand:    nitrogen --restore

That was it.


Update (11th September 2014)

Above settings would work like a charm when I had a monitor plugged in. But the new wall paper would not take effect otherwise. To fix this I simply ran nitrogen again and picked the desired wallpaper. The nitrogen config file now looks like this

$less ~/.config/nitrogen/bg-saved.cfg
[xin_0]
file=/home/rodnee/Pictures/wolves_wide.jpg
mode=0
bgcolor=#000000

[xin_1]
file=/home/rodnee/Pictures/wolves_wide.jpg
mode=0
bgcolor=#000000

[:0.0]
file=/home/rodnee/Pictures/wolves_wide.jpg
mode=0
bgcolor=#000000
.config/nitrogen/bg-saved.cfg (END)

Now my wallpaper is set whether or not a monitor is plugged in.

JLSN – Reconfiguring time zone

August 25, 2014 Leave a comment

Problem:

I needed to change my timezone. Currently using debian testing 7.6 (amd64).

Solution:
As root run

root> dpkg-reconfigure tzdata

Network Manager – Device not managed

November 20, 2013 Leave a comment

Problem:
Network Manager on debian says “Device not managed”

Solution:
As root edit /etc/NetworkManager/NetworkManager.conf
and change

managed=false to managed=true

restart network manager

/etc/init.d/network-manager restart

Source:
https://wiki.debian.org/NetworkManager

Categories: debian

Setting up network – DNS

November 8, 2013 1 comment

Problem:
I reinstalled my debian system and was not able to browse although I was able to ping other machines on the network. Turned out that my DNS server was not set. I was putting the setting in the DNS section in the Network Connections GUI but clearly I was still doing something wrong.

This is what I would get trying to ping google.

$ ping http://www.google.com
ping: unknown host http://www.google.com

Solution:
1. Installed the resolvconf package.
2. As root, added the following two lines into /etc/resolvconf/resolv.conf.d/tail

nameserver 8.8.8.8
nameserver 8.8.4.4

3. Saved and restarted networking.

That sorted me out.

Source:
http://unix.stackexchange.com/questions/39071/debian-problem-with-dns

Categories: debian Tags: ,