Pages

Showing posts with label Networking. Show all posts
Showing posts with label Networking. Show all posts

Friday, June 17, 2011

Set Proxy in Linux


Terminal Proxy
If you want to configure proxy for apt-get,aptitude,wget use the following procedure
First you need to edit /etc/bash.bashrc file
gksudo gedit /etc/bash.bashrc
Add your proxy server details in the following format
export http_proxy=http://username:password@proxyhost:port/
export ftp_proxy=http://username:password@proxyhost:port/
Save and exit the file
Update the source list and you can restart your system
sudo apt-get update
http://www.ubuntugeek.com/how-to-configure-ubuntu-desktop-to-use-your-proxy-server.html

Monday, April 18, 2011

apt-get Misc Tricks

Config Proxy:

vi /etc/apt/apt.conf


isi dg :

Acquire::http::proxy "http://10.2.164.161:8080/";
Acquire::ftp::proxy "ftp://10.2.164.161:8080/";
Acquire::https::proxy "https://10.2.164.161:8080/";


Auto-install dependencies:

after running apt-get that needs deps..

apt-get -f install

Wednesday, March 16, 2011

Configure IP on Centos

Static IP

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:0c:29:0e:8f:c7
PEERDNS=YES
NETMASK=255.255.255.0
IPADDR=192.168.235.147
GATEWAY=192.168.235.1

Dynamic IP

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=00:0c:29:0e:8f:c7


http://www.thewebmasterscafe.net/webhosting/how-to-configure-static-ip-address-on-centos-linux.html