Ad_Feed

Monday, July 25, 2011

How to configure rpm/debian package manager to use proxy

To configure package manager to use proxy in fedora, CentOS, ubuntu or generally any rpm/debian based linux, you will need to enter your proxy login details in apt.conf (for debian based) and yum.conf (for rpm based).


For RPM Based
Create or edit /etc/yum.conf and add the details below, replacing proxy-server, port, username and password with your own login details.

# The proxy server - proxy server:port number
proxy=http://proxy-server:port 

# The proxy account details 
proxy_username=username
proxy_password=password


For DEBIAN Based
Create or edit /etc/apt/apt.conf and add the details below, replacing proxy-server, port, username and password with your own login details.

ACQUIRE {
http::proxy "http://username:password@proxy-server:port/"
}

Monday, July 18, 2011

How to disable Reverse Proxy Filter on Bifrost during startup

Bifrost is an operating system modified, minimal and optimized Linux distribution, with the kernel configured for firewalling and routing. The filter which controls the firewall security policy, is part of the kernel code and can be configured via ipfwadm, ipchains or iptables. The Bifrost Network Project aims to find stability, performance, filter capabilities, administration, computer security, scalability and development possibilities of a Linux based streamlined router/firewall system. The hardware is basically a standard PC with two or more network interfaces or fiber ports (using preferably the Intel Tulip chip or an e1000 Gigabit card) and a flash disk.

Reverse proxy Filtering seems to be enabled by default on this OS. Even after disabling (setting value to 0) this in the rp_filter file,  a system reboot enables it back.

To disable reverse proxy filtering even at start-up, a script must be placed in the /etc/rc.d/rc.inet.local file to automatically set the value in rp_filter to 0 for all interfaces. To do this, follow the steps below:

remount disk in writeable mode

remount w
 
Edit the /etc/rc.d/rc.inet.local file and add the run script
#This script disables Reverse Proxy Filter during startup
for a in /proc/sys/net/ipv4/conf/*/rp_filter;

do
echo 0 > $a
done

To take effect, restart inet
/etc/rc.d/rc.inet.local

How to install Google Reader Indicator on ubuntu using PPA

Google Reader Indicator displays the number of unread items in your Reader account along with article title and excerpt. Click on an article will open it in your default browser.

Install Google Reader Indicator on ubuntu using PPA

Open the terminal and run the following commands

sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install google-reader-indicator

Cloned moodle site log in problem


I can't log in - I just stay stuck on the login screen (Extracted from Moodle)

This may also apply if you are seeing “Your session has timed out. Please login again” and cannot log in.
The following are possible causes and actions you can take (in no particular order):
  • Check first that your main admin account (which will be a manual account) is also a problem. If your users are using an external authentication method (e.g. LDAP) that could be the problem. Isolate the fault and make sure it really is Moodle before going any further.
  • Sessions may not be configured properly on the server. You can test this by calling the script http://yourserver/moodle/lib/session-test.php.
  • If your server is on shared hosting check that you have not reached your disk space quota. This will prevent new sessions being created and nobody will be able to log in.
  • Carefully check the permissions in your 'moodledata' area. The web server needs to be able to write to the 'sessions' subdirectory.
  • Your own computer (not your Moodle server) may have a firewall that is stripping referrer information from the browser. Here are some instructions for fixing Norton firewall products.
  • Try deleting the sessions folder in your moodledata directory (anybody currently logged in will be thrown out)
  • Try deleting cookies on your computer and/or try another browser or another client computer
  • In Site Administration > Server > Session handling, try setting a value for 'Cookie prefix'. You can also do this by setting $CFG->sessioncookie='something'; in config.php. This is especially true if you are using multiple Moodles on the same browser.
  • Make sure you have not removed or changed the Password Salt value(s) in config.php. If passwords were created using a salt the correct salt must be in config.php for those passwords to continue to work. This feature was optional since Moodle 1.6 but has been applied by default since 1.9.7.
  • Do you have a .htaccess file in your Moodle folder (or its parent directories). If so, is there anything in there that might be causing trouble (strange redirects, access restrictions etc.)?
  • You are using the correct username and password, yes?

Planned Changes to Next Ubuntu Version 10.04 (Lucid Lynx)

Planned Changes to Next Ubuntu Version 10.04 (Lucid Lynx)