FAQ: How to select fastest APT server in Debian

Question: I want to select APT repository server/mirror that is fastest for my location. How can I do it in Debian? Answer: You can use application named as “netselect-apt” to get new sources.list file with fastest APT mirror. Install this application by command “sudo aptitude install netselect-apt” and run it in accordance with Debian distribution you use (Debian Etch in our example): sudo netselect-apt -n etch -o /etc/apt/sources.list sudo apt-get […]

Read more →

 

Download Fedora 9 today and get kernel 2.6.25 and ext4 for FREE! ;)

As it was planned Fedora 9 (codename “Sulphur“) is released today. As for me it wasn’t such expected as Ubuntu Hardy Heron but it is still very important event in Open Source world. So, here is the list of new features in this version of RedHat sponsored Linux distribution: This release features GNOME 2.22. GNOME now includes a webcam photo and video creation utility called Cheese, improved network filesystem support, […]

Read more →

 

FAQ: How to unload NIC driver (clear ifconfig counters)?

Question: I want to reset counters in /proc/net/dev (also shown in ifconfig output as RX and TX bytes) and thus I have to unload network interface driver. How to do it? Answer: There are two commands in Linux CLI coming by default which would help to unload drivers: rmmod and modprobe. First of all it is necessary to find what kernel module controls certain NIC and then unload that module. […]

Read more →

 

FAQ: Iptables rules on timely basis

Question: How can I restrict/allow access to certain service on timely basis with iptables? For example restrict access to SSH between 7:00 pm – 8:00 am on weekdays? Answer: You are welcome to use iptables patch-o-matic extension (pom or p-o-m) that allows you to match a packet based on its arrival or departure (for locally generated packets) timestamp. The syntax is the following: iptables RULE -m time –timestart TIME –timestop […]

Read more →

 

FAQ: How to retreive hardware manufacturer name, serial numbers, etc. in Linux command line

Question: How can I get information about hardware manufacturer, model name, serial number, BIOS information using Linux command line (CLI)? Answer: You are welcome to use dmidecode which helps to get information about your system’s hardware as described in your system BIOS. That information typically includes system manufacturer, model name, serial number, BIOS version, asset tag as well as a lot of other details depending on the manufacturer. Beware that […]

Read more →