Thursday, January 13, 2011

How to change your software repositories list in Ubuntu


1- create your software repositories list from the sources list generator site below
then copy the list

2- take a backup of you old list
cd /etc/apt
sudo mv source.list source.list.old
3- paste what you have copied from step one in a new /etc/apt/source.list file

4- sudo apt-get update

;)

Wednesday, January 12, 2011

Global bashrc on linux

To be able to set an environment variable or command for all users on linux, you will have to modify the file:
/etc/bashrc
or
/etc/bash.bashrc

Then add an alias at the top for example:
alias vi=vim

Then save the file. To execute the bashrc file do one of the following:
1. Logout and login again
2. Or you can execute the bashrc into the environment using:
[bash#] . /etc/bashrc

Hope you found it useful.

eshta

awy

This is the blog to share our weekly technical tips, ideas, thoughts, problems and more.

I will start this blog by saying a chinese proverb that really affected my life:

"Never insult alligator" - Chinese Proverb

Pronounced: "Neva Insult Alligata"