Archive for the ‘Ubuntu’ Category

Ubuntu: JeOS 8.04 crontab missing

Thursday, March 19th, 2009

Ubuntu LogoWhile working with my Ubunu JeOS 8.04 appliance I found out that crontab was missing and not included with default installation . Crontab is linux scheduler to run things on specific times you define.

Cron is a daemon used for scheduling tasks to be executed at a certain time. Each user has a crontab file, allowing them to specify actions and times that they should be executed. There is also a system crontab, allowing tasks such as log rotation and locate database updating to be done regularly.  Read more here.

-bash: crontab: command not found ;-) Oeps seems it is missing on my vm. 

Ubuntu JeOS Crontab

To install it run:

  • sudo apt-get install cron

Ubuntu: JeOS mod_rewrite Apache2

Wednesday, March 11th, 2009

Ubuntu LogoWhile building, configuring and testing my virtual machine based on Ubuntu JeOS 8.04 I encountered the problem with mod_rewrite module. I migrated one of my Wordpress blogs to this new vm and tried to get it working. Main page and admin area worked fine; but when opening subpages or any other area of the blog I got page could not be displayed.  I figured out after checking .htaccess and reconfiguring options in Wordpress than rewriting was not working with Apache2 webserver.

See my worklog how I got the module configured and working with Ubuntu JeOS 8.04 and Apache2:

  • sudo a2enmod rewrite
  • sudo nano /etc/apache2/sites-enabled/000-default
  • Change AllowOverride None to AllowOverride All for <Directory /> and <Directory /var/www/>apache2 mod_rewrite 000-default
  • sudo /etc/init.d/apache2 restart to restart Apache2 services

That’s it!

    Ubuntu: JeOS vm clone and Network

    Sunday, March 8th, 2009

    Ubuntu LogoI am creating and configuring virtual appliances for ESX server with Ubuntu JeOS 8.04 server release. When you create something it is always good to test what you created.

    I finshed one of my JeOS virtual machines running with ESX server and cloned the JeOS virtual machine.  JeOS appliance was booted and I logged on. A bash script run to change default passwords and SSH server was re-installed to generate SSH keys; immediately after apt-get tried to install SSH server I got an error and script stopped. I run ifconfig and saw no ethernet interface on Eth0 or Eth1.

    JeOS nic issue 

    The OS did not active the eth0 interface because virtual machine has been cloned and new MAC address assigned to the network interface. In network scripts only eth0 has been enabled and set for DHCP. Open file /etc/udev/rules.d/70-persistent-net.rules to see the problem where two network interfaces are shows with diffrent MAC addresses.

    To fix this problem run the following command:

    • sudo rm /etc/udev/rules.d/70-persistent-net.rules

    Reboot and the problem has been solved. This issue is not documented and part of the JeOS documentation yet.  I hope this post will help you out there. Credit goes to “oneloveamaru” who helped me in the right direction for finding a solution on my problem.

    Nero 3 Linux Ubuntu 8.04

    Sunday, June 29th, 2008

    Since two weeks I am becoming Ubuntu fan and I am missing some of my windows applications. Nero is one of those and thanks to Nero they ported their burning solution for Linux also. Download the trial from Nero.com website here.

    image

    Start a  new terminal session and run dpkg to install the Linux version of Nero Burning Rom.

    sudo dpkg -i nerolinux-3.5.1.0-x86_64.deb

    Go to Applications / Sound & Video/ Nero Linux and start the burning solution.

    image

    image

    Pretty straight forward; right? Think about when installing Nero on Windows ;) . First we have this 100MB+ installation source and than install the complete suite of tools; with Linux installation I get what I want.

    (more…)

    Ubuntu Desktop 8.0.4 Cannot mount device

    Saturday, June 28th, 2008

    After installing the latest updates and reboot the auto mount feature for Windows NTFS volumes and my USB disk drive failed. If you open File Browser and try to open one of your harddisks you may have same problem as I did.

    image

    Cannot mount volume. Error org.freedesktop.DBus.Error.AccessDenied. Details A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file….

    I reboot the machine couple times; tried to find a solution though google but no real work around for this problem. I found one specific bug published for adding additional host in hosts file https://bugs.launchpad.net/ubuntu/+source/consolekit/+bug/242186, because /var/log/daemon.log was filling up with Jun 28 17:46:56 workstation1 console-kit-daemon[5892]: WARNING: Failed to acquire org.freedesktop.ConsoleKit events.

    I got frustrated in getting my personal share online. The folder was sitting in one of my 500GB SATA disk. Right click and choosing mount volume did also fail. I opened a terminal and started to query my physical disks with:

    sudo fdisk -l

    image

    Create new folder in /mnt/ named sda1 and manually mount the volume.

    sudo mount -t ntfs-3g /dev/sda1 /mnt/sda1 -o force

    image

    If you want to have the volumes automatically mount after each time you reboot than you need to add additional entries in /etc/fstab. The following lines were added in my fstab configuration. Make sure the folders are created in /mnt.

    /dev/sda1    /mnt/sda1    ntfs nls=utf8,umask=0222 0 0
    /dev/sdb1    /mnt/sdb1    ntfs nls=utf8,umask=0222 0 0
    /dev/sdc1    /mnt/sdc1    ntfs nls=utf8,umask=0222 0 0

    Lucida Grande and Linux Ubuntu Desktop 8.0.4

    Saturday, June 28th, 2008

    I am using the following CSS font-family setting for Networknet.nl font-family:”Lucida Grande”, “Lucida Sans Unicode”, Helvetica, Arial, sans-serif;. When opening Networknet.nl blog on a Linux machine Firefox displays my blog as show below; the fonts are not corresponding with my style sheet. Why ;) ? My Ubuntu has no Lucida Grande fonts installed. Common Windows Fonts are not installed by default  on Linux and some can be installed afterwards. After installing the msttcorefonts package I was  still missing the Lucida Grande.

    The msttcorefonts contain the following fonts:

    • Andale Mono
    • Arial Black
    • Arial (Bold, Italic, Bold Italic)
    • Comic Sans MS (Bold)
    • Courier New (Bold, Italic, Bold Italic)
    • Georgia (Bold, Italic, Bold Italic)
    • Impact
    • Times New Roman (Bold, Italic, Bold Italic)
    • Trebuchet (Bold, Italic, Bold Italic)
    • Verdana (Bold, Italic, Bold Italic)
    • Webdings

    These can be installed with running sudo apt-get install msttcorefonts .

    clip_image001

    I found a good post how to get the Lucida Grande font but than I was forced to install wine and safari applications. If you own a Windows installation and than you can copy the fonts from your C:\Windows\Fonts directory and place them /usr/share/fonts/ttf and that’s what I did.

    Don’t forget to get them configured. Run sudo dpkg-reconfigure fontconfig. After restarting Firefox my blog was pretty much as on Windows.

    clip_image002

    Font is OK now, but still some things with spacing. Anyway this is how I quickly got my Windows fonts on Ubuntu Desktop 8.04 desktop machine.

    Some links for Linux and Fonts

    http://packages.debian.org/stable/x11/msttcorefonts

    http://www.convexhull.com/mandrake_fonts.html

    http://avi.alkalay.net/linux/docs/font-howto/Font.html