Thursday, May 26, 2011

Check Linux services on different maschines

chkconfig --list |grep "5:on"|sort >remote-service-list.txt
chkconfig --list |grep "5:on"|sort >local-service-list.txt
diff -b remote-service-list.txt local-service-list.txt |grep "<" |awk '{print $2}' >diff-service.txt

Friday, May 6, 2011

Using a proxy for apt-get in Ubuntu

Easy way to get apt-get to work with a proxy in Ubuntu
Place the following settings into the file /etc/apt/apt.conf.d/proxy:
Acquire::http::Proxy "http://proxy:8080";