Archive

Posts Tagged ‘ubuntu’

How to display contents of file in Ubuntu terminal

February 20th, 2011

I always forget how to do this so I’m putting it here for my own reminder.

When you are on Ubuntu’s terminal or shell, this is the command on how to display the contents of a file in Ubuntu:

$ cat file.txt

Pretty easy huh!

Author: Cyril Pauya Categories: how-to Tags: , ,

Screen your way on Ubuntu Linux

October 31st, 2010

We have plenty of experience deploying Django applications to remote servers, mostly on Webfaction. But the latest server we deployed to was a Debian Lenny VPS server. Since Ubuntu was of a Debian family, it’s been quite easy. The problem is if you have a reliable internet connection to the server half-way around the globe.

I’m on a mobile broadband internet connection since we moved to Davao City. That means I got an unreliable internet connection. So typing “tail -f /var/log/apache2/error.log” would take a few seconds to echo on your shell. Now imagine having to type that every time you make changes to your Apache configuration files?
Read more…

Mercurial GUI Client on Ubuntu

April 15th, 2010

There are a lot of options for a Mercurial GUI client on Ubuntu but I preferred to use TortoiseHg so that I could use it with Nautilus – Ubuntu’s file manager.

TortoiseHg however is not in the Ubuntu Karmic Koala repositories.  Another challenge is that TortoiseHg 1.0.1 requires Mercurial 1.5 but Ubuntu Karmic only has Mercurial 1.3 on the repositories.  Of course I want the newer versions. :)

Here are the steps I did to install TortoiseHg, my preferred Mercurial GUI client on Ubuntu Karmic Koala 9.10:
Read more…

A lesson in Ubuntu history

September 19th, 2009

If you have been using Ubuntu (or any Unix variant), you should now know that there is a history command which keeps track of the commands you have executed in the shell.  I have been using Ubuntu for a few months and my history command list is now at 500+ commands.

Here are some of the basic uses of the history command:

> history
  • this lists all commands you have executed in the shell
> history | more
  • same as above but only shows a page of list
  • press spacebar to move to the next page
  • press the letter q to quit displaying history commands
  • the | is a pipeline which means redirect the output of the history command as input to the more command
> history | grep <text>
example:
> history | grep ls
> history | grep rsync
  • lists only the shell commands that contains the text after the grep command
  • grep basically is a command line text search utility
> man history
  • help manual of the history command
  • very helpful documentation I must say!

Read more…

Author: Cyril Pauya Categories: Software Tags: ,

Ubuntu Features that I Like

September 9th, 2009

Ubuntu is a free and open-source operating system based on Debian.  The reason I choose this over the other GNU/Linux variants like Fedora, Mint, openSUSE,Mandriva, Debian, and others, is because of the Ubuntu promise to make it free forever, including the enterprise editions and security updates.

I have been waiting for more than two years for Ubuntu to mature as a replacement to Windows XP.  To qualify, it must satisfy the following features:

  1. easily support dual monitors
  2. out-of-the-box support for my laptop’s Broadcom B43 wireless adapter
  3. support for my laptop’s infrared device

Read more…

Author: Cyril Pauya Categories: Software Tags:

Use open-source software for your servers

August 14th, 2009

We have been using open-source software for our servers at NDMC for the past months.  Being an educational institution on a tight budget, we cannot afford to buy licenses for commercial software so we choose to use open-source and free software, specifically GNU/Linux variants.

We were using Ubuntu 8.04 Long Term Support (LTS), which means it will be supported for the next five years (until 2013).

Then Bong, who has been experimenting with different variants of open-source server software suggested the following line-up:

  • pfSense – powerful Firewall, based on FreeBSD
  • Untangle – open source network gateway, web filter
  • eBox-Platform – domain controller, file server, print server, proxy server, mail server, and a lot more, based on Ubuntu 8.04
  • FreeNAS – file server, NAS server, based on FreeBSD

I added Proxmox Virtual Environment – an open-source virtualization platform to the list.  This allows us to create one or more Virtual Private Servers using just one computer.  This is our alternative to VMWare’s ESX.

The considerations for the above servers is also timely for our scheduled upgrade from 1.5Mbps to a 4Mbps Internet connection sometime next month.

Read more…

Back from slumber.

July 9th, 2009

Hi.  It’s been a long time since I have updated my blog and a lot has happened since.  Here’s for a quick post:

  • I have switched operating systems from Microsoft Windows XP with SP3 to Ubuntu Jaunty 9.04.  Why?  It’s FREE, it’s open source, it has very minimal threat with viruses and other malicious software, it’s very configurable, and it now supports dual-monitor seamlessly. :D
  • I have uploaded the beta version of myListBoard.com – it’s a website that allows you to create a list and share it with others.  A lot of features are planned but I just can’t find the time to continue development nowadays.
  • I have moved back to Midsayap, Cotabato, my dear hometown; where water is out every 5:30am to 10:00am and from 3:00pm to 6:00pm; where electrical black-outs happen almost daily; and where my friends and family are close.
  • I have also resumed from being on-leave for 5 months at Notre Dame of Midsayap College – the first Notre Dame school in Asia!  If you can’t access the link, then you know it’s black-out in our area again.  (we hope to fix this black-out problem soon)

Keep posted for many new updates. :)

    Author: Cyril Pauya Categories: General Tags: , , ,