Linux

Linux: find files older than a specified date

touch -d "31 jan 2001 23:59:59" date_marker
find . !-cnewer date_marker

Tags:

Queen Old School

uBoot can suck the life out of a Friday...

=> tftp $dbtaddr $dtbfile
Speed: 1000, full duplex
Using eTSEC1 device
TFTP from server 10.1.1.1; our IP address is 10.1.1.2
Filename '8544ds/uImage.uboot'.
Load address: 0x8544d
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################

Tags:

Ubunutu Kernel Build

sudo apt-get install build-essential linux-source-2.6 libncurses5-dev kernel-package

cd /usr/src
tar xvjf linux-source*
cd linux-source
cp /boot/config-2.6.10.5-386 .config
sudo make menuconfig

cofigure the heck out of your kernel

sudo make-kpkg --revision-1 --append-to-version=mykerne1 kernel_image kernel_headers

cd ..
sudo dpkg -i linux-image-2.6.10*.deb

Tags:

"Debian Way" to disable X at boot time...

I've been setting up an Debian image that can be used by a number of developers at work. The developers need X installed, but not necessarily running on the server--that way they can use it for remote desktop environments back to their local computers, thin clients, etc...

In looking for the "Debian Way" to do this, I found what I needed on the Debian Tips page.

Specifically, do the following:

cd /etc/init.d
update-rc.d -f ?dm remove
Tags:

Linux "hwclock" returns select() error: select() to /dev/rtc to wait for clock tick timed out

I've recently run into a handful of systems that have thrown up an error when trying to sync the system clock to the hardware clock:

inara:~# hwclock --systohc
select() to /dev/rtc to wait for clock tick timed out

I found a couple of useful pages with a work around solution, which is to provide an additional command line parameter to the hwclock command, specifically "--directisa." Depending on your distribution you may be able to add this to /etc/default/clock, or /etc/init.d/hwclock.sh to include the fix permanently.

Tags: