Tag Archives: ubuntu - Page 2

How to disable sudo password prompt in Linux

well, sometimes i want to execute commands as super user without being asked for password each time to do that

to do that its pretty easy

open the terminal and type this command :

sudo visudo

and uncomment the following line :

# %sudo ALL=NOPASSWD: ALL

save the file by pressing escape then typing :wq and pressing enter.

from now on you will not be asked when executing the command as super user using sudo.

Ubuntu 8.10 Intrepid – Fix Static IP & Network Manager Problem

Hey all,

today i have installed the new release of Ubuntu, 8.10 Intrepid

but i had a problem setting my IP to a static one, when i do this through the network manager, and when i edited the network files manually nothing worked, so here is the steps i followed to solve the problem :

first i removed the network manager

sudo update-rc.d -f NetworkManager remove

then i added my network configuration by editing the file /etc/network/interfaces

sudo gedit /etc/network/interfaces

so it looks like

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.xxx
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.xxx

then i edited the file /etc/resolv.conf to add my DNS

sudo nano -w /etc/resolv.conf

to look like

# Generated by NetworkManager
nameserver 192.168.1.xxx

then i restart the networking by :

sudo /etc/init.d/networking restart

if u still have problems, i suggest you restart the machine and check, the above steps is how i got my network up .

enjoy the new Ubuntu ;)

Install Subversion with Web Access on Ubuntu 8.04 (Hardy Heron)

well, it is very useful to have a subversion server so u can have different versions of your applications; for back up and to be able to restore old versions, and be able to share the project with the team, when there is more than one developer working on it.

1- install apache

sudo apt-get install apache2

2- install subversion

sudo apt-get install subversion libapache2-svn

3- We’re going to create the subversion repository in /svn

sudo svnadmin create /svn

4- Now we’ll need to edit the configuration file for the subversion webdav module

sudo gedit /etc/apache2/mods-enabled/dav_svn.conf

we will comment the following line, so we can access the repository using the address http://www.servername.com/svn

<Location /svn>
</Location>

and the following line to enable the dav module

DAV svn

and the following line to set the path to our repository which is /svn in our case

SVNPath /svn

and the following 3 lines to enable basic authentication

AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd

5- We create a user to have access to our repository

sudo htpasswd -cm /etc/apache2/dav_svn.passwd

where is the desired login name
6- We restart the apache server

sudo /etc/init.d/apache2 restart

7- You can access now the repository using the address : http://www.servername.com/svn

Flowchart applications on Ubuntu

If you would like to draw diagrams and flowcharts on your ubuntu there is 2 programs that is alternative to smart draw on windows :

  • Dia

to install type the following command in terminal :

sudo apt-get install dia
  • Kivio

Kivio
Kivio

to install type the following command in terminal :

sudo apt-get install kivio

U can use them also to draw mind maps

enjoy ;)

How to read chm files on Ubuntu

This can be easily done with install GnoCHM, the CHM viewere for Linux

you can install it by executing this command in the terminal

sudo apt-get install gnochm

enjoy ;)

Install Adobe Acrobat Reader on Ubuntu 8.04

First of all, add Medibuntu repository in your sources list. This can be done via:

sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list

Once this is done, add Medibuntu GPG key.

sudo apt-get update && sudo apt-get install medibuntu-keyring

Then update the list of available packages by

sudo apt-get update

Finally, install Acrobat Reader using

sudo apt-get install acroread

Zend Framework to be part of Ubuntu!

Great news for me, and all LAMP Experts out there ;)

Andi Gutmans announced recently on his blog that Zend Framework will be included in