Skip to main content

Posts

Showing posts with the label Ubuntu

Going fallback mode in Ubuntu 13.04 due to performance issues with Unity

I configured Virtualbox guest machine to run Ubuntu 13.04 (Raring Ringtail) but performance is just not acceptable. It probably has to do with my host machine not having a good enough graphics hardware. Anyway, to make it bearable, I have gone Gnome Fallback mode. Anyway, below is my clean configuration from scratch to have a better performance running under VirtualBox. Initial clean-up and pre-requisites, open terminal ( Ctrl+Alt+T ): $: sudo apt-get update $: sudo apt-get upgrade $: sudo apt-get install gnome-session-fallback Log out from session $: gnome-session-quit From the GDM, select Gnome Fallback(No effects), see below for screen capture. Log back in to Ubuntu. To make it even better, install VirtualBox guest additions. But first let us install the pre-requisites and some clean-up. $: apt-get purge xserver-xorg-video-vmware libxatracker1 $: apt-get install dkms build-essential From VirtualBox Guest main UI, select Devices | Install Guest Additions... .H

Unable to mount VirtualBox shared drive using 4.3.10

When mounting a shared drive in VirtualBox 4.3.10, got he following error in Linux box: sudo mount -t vboxsf E_DRIVE vbox mount: wrong fs type, bad option, bad superblock on E_DRIVE,        missing codepage or helper program, or other error        (for several filesystems (e.g. nfs, cifs) you might        need a /sbin/mount.<type> helper program)        In some cases useful info is found in syslog - try        dmesg | tail  or so This is caused by wrong symbolic link, to fix it do: ~$ sudo ln -sf /usr/lib/i386-linux-gnu/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf References: http://superuser.com/questions/736024/cannot-share-host-directory-with-virtualbox-guest-mint-16-64-bit

Manually configure a network interface to get an IP from a DHCP server

Got an Ubuntu 13.10 machine with one network interface. Added another one to test internal networking. To make this new network interface get IP address from DHCP server, we need to modify /etc/network/interfaces , like: auto eth1 iface eth1 inet dhcp Reference(s): https://help.ubuntu.com/10.04/serverguide/network-configuration.html Keywords: network interface IP Ubuntu

QNX Momentics throws a lot of error on start up after install in Ubuntu 13.10 64-bit

tldr; Reboot the machine. When starting up QNX Momentics 6.5.0 on Ubuntu 13.10 64-bit, it throws a lot of errors, like below. 'Initial state verification' has encountered a problem. An internal error has occured. [Details>>] [OK] There is an error in the QNX Configuration settings. Either the QNX_CONFIGURATION environment variable is not defined correctly or the location it points to is not accessible. Exit the IDE and fix the error? [No] [Yes] There is an error in the QNX compiler settings. Either the QNX compiler is not defined or compiler definition directory is not accessible. You should exit the IDE and fix the error immediately. Exit the IDE and fix the error? [No] [Yes] And what is the workaround? Reboot the machine. Guessing that the environment variables are not yet set after install, reboot picks up the new configuration. Keywords: QNX Momentics Ubuntu

XFCE: Install a lighter weight version of XFCE in Ubuntu 13.04

Default XFCE 4 install in Ubuntu comes with a lot of applications that I don't need. So I always install from alternate method using mini.iso to have a bare bones system and yet usable. I have been using LXDE for a while but I think it is time to experiment with XFCE. From a minimal install of Ubuntu, adding XFCE with minimal applications is a breeze, like: $: sudo apt-get install --no-install-recommends xubuntu-desktop

XFCE: Remove Mail Reader entry in menu

How to remove Mail Reader entry in XFCE menu. As a matter of good practice, backup the original configuration. Create a backup folder in your home directory like ~/backup . Copy  /usr/share/applications/exo-mail-reader.desktop to ~/backup . We will be making global (machine level) change so all users will not see Mail Reader entry. Edit exo-mail-reader.desktop using your favorite editor, comment out the line like #OnlyShowIn=XFCE; then add the following line  NotShowIn=XFCE; .

scrot - command line screen capture utility for minimal Lubuntu install

I have a minimalist installation of Ubuntu 13.04 using Lubuntu minimal package. By default it does not come with screen capture utility. To get Print Screen function working in Lubuntu, install scrot, like: $$: sudo apt-get install scrot Pressing PrtSc in Lubuntu will cause it to create a file in the home directory normally named <date>_<screen resolution>_scrot.png. In Ubuntu 13.10, you have to run scrot first before PrintScreen works.

Check version of VirtualBox guest additions installed

$: locate vboxguest If this returns nothing either you don't have VirtualBox guest additions installed or you need to update the database used by locate . If you suspect that the database may need a refresh, you can do sudo updatedb . Alternatively, you can check contents of /opt . If you have the additions installed, it should have an entry like VBoxGuestAdditions*.

ERROR: No configuration file found when booting Ubuntu 13.04 using USB stick

I created a boot-able network install of Ubuntu 13.04 on USB stick using Pendrive's Universal USB Installer (Universal-USB-Installer-1.9.3.9.exe). Booting this USB stick on my old Eee PC 900 shows "ERROR: No configuration file found". To fix this rename/copy isolinux.cfg to syslinux.cfg . As an alternative to Universal USB Installer, you may try Unetbootin( http://unetbootin.sourceforge.net/ ) Reference(s): http://www.pendrivelinux.com/error-could-not-find-kernel-image-linux/

Samba share not working after reboot on Ubuntu 12.10

So I just installed Samba server on Ubuntu 12.10, configured it, restarted the daemon and everything is happy. But when I reboot the machine, Samba share always stops working. Restarting the daemon will make it work. I am not sure what's going but adding the following in sbmd.conf seems to fix it. start on (local-filesystems and net-device-up IFACE=eth0)

Recording VNC session

Recording VNC session sudo apt-get install python-setuptools sudo apt-get install python-dev sudo easy_install vnc2flv sudo apt-get install vlc Create ~/vnc/passwd (text file) with the clear text password flvrec.py -P ~/vnc/passwd <IP> In Ubuntu, stop recording by sending SIGINT, like kill -s SIGINT 7705 . Where 7705 is the process ID of the python flvrec.py run.

The following packages have been kept back

In Ubuntu (or Debian and other derivatives), you might observe the following message when performing sudo apt-get upgrade . The following packages have been kept back To get rid of this one, do: $: sudo apt-get install <package name(s)> For example, below was one of the error messages I am getting: The following packages have been kept back     linux-generic linux-headers-generic linux-image-generic To fix this do: $: sudo apt-get linux-generic linux-headers-generic linux-image-generic

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

When I try to restart Apache using sudo service apache2 restart I am getting the following message: * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName To get rid of it, I have to add the following in my /etc/hosts file: 127.0.1.1 ubu1210minib.com ubu1210minib Where ubun1210minib.com ubun1210minib is an arbitrary name I selected. Of course this is not the proper way to fix it as the above information does not properly resolve.  Also need to modify /etc/apache2/sites-enabled/000-default  to have a line like: <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName ubu1210minib.com DocumentRoot /var/www Note the line that contains ServerName , that should match with the name prov