Ubuntu

Update available message after installing update

Recently I updated my Ubuntu Server 12.04.2 to Ubuntu 13.04 when I noticed that the message of the day (MOTD) displaying in my console was telling me that an update was available and to Run ‘do-release-upgrade’

It seems the cause of this was /usr/lib/ubuntu-release-upgrader/release-upgrade-motd which is called by /etc/update-motd.d/91-release-upgrade which checks for the existence of the release-upgrade-motd file.

Removing this with rm /var/lib/ubuntu-release-upgrader/release-upgrade-available and rebooted and logged in again and the MOTD was normal as expected.

Steps to take:

  1. cd /var/lib/ubuntu-release-upgrader/
  2. rm release-upgrade-available

 

Time Synchronization with ntpdate in Ubuntu

If you don’t have time to do it right, when will you have time to do it over? – John Wooden

I’m back again with a little tip, simple and quick to do to keep your Ubuntu Server’s time in sync, best of all there is no need to install an NTP client as Ubuntu comes with the ntpdate command which syncs the time of your system with the NTP Server you specified.  Cool Huh!

The fist command to know is the ntpdate command which is standard in the Ubuntu distributions. This command is also run at boot time, however if your like me you don’t reboot often and the system drifts.  The command looks something like this:

ntpdate ntp.ubuntu.com

Now for the fun part to set this thing up on a seclude to run every day. I used cron to do this using the following steps:

cd /etc/cron.daily/
touch ntpdate
nano ntpdate and add the following line: ntpdate 123.123.123.123
chmod 775 /etc/cron.daily/ntpdate

That’s it.

Use lspci tells me my VGA Memory Usage

“Drugs are a waste of time. They destroy your memory and your self-respect and everything that goes along with with your self-esteem. They’re no good at all.” – Kurt Cobain

Sitting here playing around with some cli I wanted to know how much memory my VGA card was using so to find out I did the following by typing:

root@websvr:~# lspci |grep “VGA

My results was the following
00:0f.0 VGA compatible controller: VMware SVGA II Adapter

I then typed the following lspci command to give me more details:

root@websvr:~# lspci -v -s 00:0f.0 |grep “Memory
Memory at d8000000 (32-bit, prefetchable) [size=64M]
Memory at d0800000 (32-bit, non-prefetchable) [size=8M]

And there I have it. I’m using 64M of memory.

–more info–

lspci is a command on Unix-like operating systems that prints detailed information about all PCI buses and devices in the system. It is based on a common portable library libpci which offers access to the PCI configuration space on a variety of operating systems.

Installing Open-VM Tools on Ubuntu Server

I have been using Ubuntu Server to host many of my projects here at home; everything from my media servers, testing systems and web/blog site. I have install the VMware tools in the past and ran into issues or just found them to break. At best I just need the minimal the tools offer, and this is where the opensource tools play a good substitution. Best of all, they are supported by VMware.

So all you need to do is use apt-get and your done. Here are my steps.

The “–no-install-recommends” disables the selection of all the X components; We wouldn’t want a desktop environment to be installed.

What are some of the things provideded with this? Well this package provides the vmxnet hardware, as well as the majority of the other VMware Tools functionality (Shutdown, Restart etc).

Enable root in Ubunut

Annoyed with using sudo, and su -i to elevate yourself to root to do things. I was so I just typed sudo passwd and set a new password and now I can log-on as root.

Cool Huh?