Posts tagged with ‘ubuntu’

 

  • Archives

  • Categories

Saw this in a bookshop. Probably MPH I can’t remember. It is on Ubuntu.

You can’t just do Ubuntu
You have to be Ubuntu

Ahh… We learn something everyday.

 

Just realized this is a faster Ubuntu aptitude source in Singapore: http://ubuntu.oss.eznetsols.org/ubuntu/

You can change the source using:

sudo nano /etc/apt/sources.list

This is now my /etc/apt/sources.list:

deb http://ubuntu.oss.eznetsols.org/ubuntu/ lucid main restricted
deb-src http://ubuntu.oss.eznetsols.org/ubuntu/ lucid main restricted

deb http://ubuntu.oss.eznetsols.org/ubuntu/ lucid universe
deb-src http://ubuntu.oss.eznetsols.org/ubuntu/ lucid universe
deb http://ubuntu.oss.eznetsols.org/ubuntu/ lucid-updates universe
deb-src http://ubuntu.oss.eznetsols.org/ubuntu/ lucid-updates universe

deb http://ubuntu.oss.eznetsols.org/ubuntu/ lucid multiverse
deb-src http://ubuntu.oss.eznetsols.org/ubuntu/ lucid multiverse
deb http://ubuntu.oss.eznetsols.org/ubuntu/ lucid-updates multiverse
deb-src http://ubuntu.oss.eznetsols.org/ubuntu/ lucid-updates multiverse

deb http://ubuntu.oss.eznetsols.org/ubuntu/ lucid-security main restricted
deb-src http://ubuntu.oss.eznetsols.org/ubuntu/ lucid-security main restricted
deb http://ubuntu.oss.eznetsols.org/ubuntu/ lucid-security universe
deb-src http://ubuntu.oss.eznetsols.org/ubuntu/ lucid-security universe
deb http://ubuntu.oss.eznetsols.org/ubuntu/ lucid-security multiverse
deb-src http://ubuntu.oss.eznetsols.org/ubuntu/ lucid-security multiverse

 

It’s time to abort. My project is quite some trouble. I left the implementation to the very last stage. Apparently that is quite a bad idea. I have the following greeting message staring at me:

kahwee@ubuntu:~/Project/src$ python twisted.py
Traceback (most recent call last):
  File "twisted.py", line 1, in <module>
    from twisted.internet import protocol, reactor
  File "/home/kahwee/Project/src/twisted.py", line 1, in <module>
    from twisted.internet import protocol, reactor
ImportError: No module named internet

I can never figure out why I can’t install Twisted. In the end I give up. Don’t have much time left. Tick tock tick tock. I am using Ubuntu 10.04.

 

This is a screenshot from Ubuntu’s Firefox:

I just downloaded Ubuntu 10.04 Lucid Lynx and took a screenshot.

Perhaps those icons look too modern to me but I can’t associate it to the content without reading the words on the right of the icon.

 

Ubuntu Netbook remix is planned to remove OpenOffice.org and replace it with Google Docs. It’s an odd choice and it probably is some Google influence. Probably Google paid them or something.

According to the latest Ubuntu Netbook Remix Blueprint, the Ubuntu community have decided to drop OpenOffice from the default installation of Ubuntu Netbook Edition for the upcoming Lucid Lynx release, atleast for now. Now documents will be opened by default in Google Docs.

The developers have been removing applications that are irrelevant on a netbook. While document editing is clearly a not irrelevant on a netbook, the developers feel that with netbooks being used mostly for internet related works, Google Docs will suffice. (Source: Digitizor)

Honestly I hardly use OpenOffice in my netbook. The screen estate made it unsuitable for editing. If you still want OpenOffice.org, you can always download manually of course but I suspect most would probably stick with Google Docs.

 

After installing Ubuntu Server, you can be in dismay when you are greeted with a command prompt. It’s the 21st century and let’s not act tough that the terminal in the coolest thing. It really isn’t unless you want to show it off to your pals. (On an absolutely unrelated note: Don’t bother flexing your terminal skills to girls, they get impressed with your nerd culture and your coolness drop to -10.)

Okay let’s install some graphical user interface for humans alright. If you want to install GNOME in Ubuntu Server or the Cloud Enterprise Server, you can. And here is how to do it:

sudo apt-get install –no-install-recommends ubuntu-desktop

The no-install-recommends command begins with 2 dashes but WordPress gets hungry and ate one of them so be sure to correct that when typing.

If you leave out the “no-install-recommends” option, Ubuntu installs software such as OpenOffice.org. They’re basically things I don’t want in a server. This is useful when you want a user interface but do not want things like games etc.. All these programs makes Ubuntu feel “unclean” for me. My preferred method of installing Ubuntu is always to use the Server edition and then install the GNOME interface with the above code.

 

There are times where some processes use too much resources. You can use “ps aux” to get a list of all the processes that are currently running. But what about having them sorted? Here is one way. This works in Ubuntu Linux.

Top 10 % CPU usage

ps aux|sort -nr -k3|grep -v USER|head -10

Top 10 % Memory usage

ps aux|sort -nr -k4|grep -v USER|head -10

The following is the sample output for Top 10 % memory usage:

briecheese ~: ps aux|sort -nr -k4|grep -v USER|head -10
www-data  3883  2.9 14.1 107052 37176 ?        S    11:44   1:46 /usr/bin/php-cgi
www-data  3882  2.9 13.8 107664 36264 ?        S    11:44   1:46 /usr/bin/php-cgi
www-data  3881  1.2 13.2 106768 34688 ?        S    11:44   0:44 /usr/bin/php-cgi
www-data  3884  3.1 13.1 107244 34592 ?        S    11:44   1:54 /usr/bin/php-cgi
www-data  3879  1.1 11.8 106888 31160 ?        S    11:44   0:40 /usr/bin/php-cgi
www-data  3880  0.9  9.5  94232 25092 ?        S    11:44   0:34 /usr/bin/php-cgi
mysql     3659  3.5  6.9 277256 18200 ?        Sl   09:45   6:25 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –skip-external-locking –port=3306 –socket=/var/run/mysqld/mysqld.sock
root      4103  0.2  1.0  53468  2704 ?        Ss   12:44   0:00 sshd: me [priv]
me    4106  0.0  0.8  18128  2116 pts/0    Ss   12:44   0:00 -bash
www-data  3875  0.0  0.7  57440  1972 ?        S    11:44   0:00 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf

Percentage memory usage is the 4th column. This is useful when you need a quick overview of what’s consuming the most memory. [Thanks U-Zyn]

 

WordPress powered and Django inspired.
Love and elephants come after.
RSS: Posts and comments.