Archive for 'Linux' Category
Remembering Regex Patterns
27 September 2007It’s often useful to remember patterns that have been matched so that they can be used again. It just so happens that anything matched in parentheses gets remembered in the variables $1,…,$9. These strings can also be used in the same regular expression (or substitution) by using the special RE codes \1,…,\9. For example
$_ = […]
Installing Perl Modules on Unix
17 March 2007perlmodinstall2 - Installing Perl Modules
perl Makefile.PL, make, make test, make install
The standard way to install a Perl module on Unix is to change into the directory that was created when you unpacked the .tar.gz file, and then type the following sequence of commands:
perl Makefile.PL
make
make test
make install
Checking Unix system readiness for new Daylight Saving Time
9 March 2007Planet Ubuntu
on most Linux and Unix system you should have access to the zdump command from the command line. If you run this command:
zdump -v /etc/localtime | grep 2007
you will get something like using the output from my system:
/etc/localtime Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 PST isdst=0 […]
Scrape MP3 Files
14 February 2007Heres how I do it:
wget -r -l1 -H -t1 -nd -N -np -A.mp3 -erobots=off -i ~/mp3blogs.txt
And heres what this all means:
-r -H -l1 -np These options tell wget to download recursively. That means it goes to a URL, downloads the page there, then follows every link it finds. The -H tells the app to span […]
How to install Seti on Linux - A newbie approach
27 November 2006How to install Seti on Linux - A newbie approach
First you need to have a Boinc account such as:
* Seti@home
* Einstein@home
* ClimatePrediction.net
* LHC@home
In our case I will consider a Seti@home user.
1 - Download the last Boinc Client Sofware for Linux. The latest version as of 23.10.2005 is: boinc_5.2.4_i686-pc-linux-gnu.sh and it can be found here: Boinc […]
MoinMoinQuestions - MoinMoin
15 November 2006MoinMoinQuestions - MoinMoin
How do I integrate LDAP authentication with moin moin?
Looking at MoinMoin/auth.py in MoinMoin were do I place the following parameters: ldap_coding, ldap_uri, ldap_binddn, ldap_bindpw, ldap_base, ldap_scope, ldap_timeout, ldap_name_attribute, ldap_email_attribute.
You say Into your wikiconfig.py
Can you give me an example of what I need to put in wikiconfig.py for one of the variables lets say […]
WifiDocs/WiFiHowTo - Community Ubuntu Documentation
23 September 2006WifiDocs/WiFiHowTo - Community Ubuntu Documentation
Automatic WLAN Picker Script
I have written a small script to have my laptop automatically pick a WLAN network of several configured. It uses the wireless utils to scan for known/open networks on “ifup interface”. The script wlan-scan.sh looks like this:
#!/bin/sh
IFACE=$1
ip link set $IFACE up
SCAN=$( \
iwlist $IFACE scan 2>&1 | grep -v […]
Installation - NdisWrapper for Linux wifi drivers
23 September 2006Installation
[edit]
Compile and install
Go to the source-directory and run ‘make distclean‘ and ‘make‘. As root, run ‘make install‘. This should compile and install both the kernel module and the userspace utilities. If you don’t need USB support in ndiswrapper, with recent versions, you can compile with ‘make DISABLE_USB=1‘ and install with ‘make […]
dexconf fixes xserver display problems
11 September 2006The scenario was I took a drive out of a laptop that had no cd or floppy. I put the drive in my desktop machine and installed Ubuntu desktop. So, xserver was configured for the video card in my desktop and when I put the drive back in the laptop, xserver naturally would not start.
Running […]
DHCP3 - DHCP Server for Linux
8 September 2006 NAME
dhcpd - Dynamic Host Configuration Protocol Server
SYNOPSIS
dhcpd [ -p port ] [ -f ] [ -d ] [ -q ] [ -t | -T ] [ -cf config-file ] [ -lf […]