Tuesday, December 23, 2008

playing with VI editor

This might be helpful to you:

How to remove ^M characters (they are end of line DOS's characters) from a file in vi:

type this

where ^V is control-v and ^M is control-m.

is the basic search and replace command in vi and the command you typed will look like this
:%s/^M//g. It will replace what is between the first and second / with what is between the 2nd and 3rd /. Between the first and second slash, we have ^M and between the second and third we have an empty string since we are replacing with an empty string.

means to replace all occurences.

Sunday, December 7, 2008

ssh server

Sometimes, I do a clean install of ubuntu and I forget to reinstall ssh server... I get this error when trying to ssh to the box that doesn't have ssh : ssh: connect to host port 22: Connection refused

Need to install ssh server and client:
sudo apt-get install openssh-server openssh-client

Friday, December 5, 2008

Add application icons and executables to gnome

This is partly taken from :

1. create an executable
sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudoedit /usr/bin/eclipse
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*
2. create a desktop icon
sudoedit /usr/share/applications/eclipse.desktop
[Desktop Entry]
Comment=Eclipse IDE

Wednesday, December 3, 2008

Already a semester...

I just handed in the last assignment of the semester. Can't believe it's already over ! They say time flies and it surely does !:)

Tuesday, September 23, 2008

Ubuntu Intrepid 8.10

I just got a new laptop, a Sony Vaio Z and installed Ubuntu 8.04 but the x32 image has problem detecting wireless and lan connections. So, I decided to download the alpha version of 8.10 Intrepid Ibex this version recognizes my wireless on installation. I found from another blog that if I installed the x32 image, Ubuntu would not detect my 4GB of ram. This is indeed true, so I am running the x64 image and I get 4GB of ram detected.

The sony vaio Z series comes with a new processor: P8400, and has the option of switching between two modes: stamina and speed mode. Until now, I haven't really played with this new feature, but that could be useful for instance if you don't need to use your laptop will full graphic performance. With this feature, it is possible to switch between
the NVIDA or the Intel graphics.

I am testing Intrepid 8.10, and I am experiencing some problems:
1. laptop fails to reboot.
2. hard disk making a tick sound very often.

These two problems have already been noticed by other users of a different type of Vaio, but until now I haven't seen anyone blogging about Ubuntu and Sony Z vaio.

Anyhow, that's the price to pay when you buy the latest hardware, they are not yet supported very well on linux. But I am not worried that soon or later, everything will work flawlessly:)

Wednesday, April 9, 2008

Virtual Box on linux-> seamless mode

virtual box running in seamless mode. that is exactly the kind of software i needed. i have been using vmware for quite a while but i found it heavy in processing and somehow time consuming. virtual box runs 'in the background' which allows me to keep working on linux while using office products for school work...

cplusplus coding

running vmware...

fluxbox, pretty cool but i am more productive with gnome ... background transparent shell running...