If you need to rename all folders and files to lowercase on a case-sensitive filesystem (e.g. ext4 on linux), you can use the following at the bash prompt:
If rename is available (if you have Perl installed, then it usually is):
find . -depth -exec rename 's/(.*)\/([^\/]*)/$1\/\L$2/' {} \;
If you can't use rename, try this:
for SRC in `find my_root_dir -depth` do DST=`dirname "${SRC}"`/`basename "${SRC}" | tr '[A-Z]' '[a-z]'` if [ "${SRC}" != "${DST}" ] then [ ! -e "${DST}" ] && mv -T "${SRC}" "${DST}" || echo "${SRC} was not renamed" fi done
You can easily test the availability of an NTP server by using ntpdate. This utility is a command line utility which performs a one-time time sync to the specified NTP server but it can also be used to query the time without setting it by using the -q parameter:
$ ntpdate -q 10.30.0.1 server 10.30.0.1, stratum 4, offset 0.001217, delay 0.04170 8 Jan 10:19:36 ntpdate[2376]: adjust time server 10.30.0.1 offset 0.001217 sec
Although Debian 7 "Wheezy" (release info) has been superseded by newer releases, it still benefits from Long Term Support (LTS) until end of May 2018. In case of disaster recovery, it may still be useful to download Debian 7 install images (ISO). They can be found here:
Found this page very useful when I had to compile some stuff for a Geode LX:
https://wiki.gentoo.org/wiki/Safe_CFLAGS
Note: this original post was from May 2007 but someone pointed out to me that the link no longer worked, in an attempt to sell me some web hosting... So... Thanks, but I'm sticking with my current hosting company.
You can efficiently change the console fonts, character sets and keymaps through the following command:
sudo dpkg-reconfigure console-setup
The configuration is stored in the file /etc/default/console-setup, and can be edited by hand as well.
The changes are effective for all virtual consoles after reboot. To apply the change for the current console, run:
setupcon
To prevent changing the console font completely (i.e. native system/BIOS font will be used), set the font to "do not change".
The equivalent in the config file is:
FONTFACE="" FONTSIZE=""
Nice article about things you can do after a fresh install of Ubuntu on your computer:
http://www.tecmint.com/things-to-do-after-installing-ubuntu-15-04-desktop/
Very useful if you don't have a whole lot of experience with linux in general, and Ubuntu in particular.
A nice article about how to set up NIS on Red Hat linux: http://bradthemad.org/tech/notes/redhat_nis_setup.php.
This is a Perl script I wrote and used for the migration of a linux DHCP server (running dhcpd to a Windows DHCP server. The script looks in the dhcpd.conf configuration file for fixed reservations and exports these to a CSV for processing and importing in another server.
Usage is simple, as it takes its input from STDIN and outputs to STDOUT.
cat /etc/dhcpd.conf | perl export-dhcpd-reservations.pl > output.csv
The script is very simple and can probably do with a lot of improvements, but it's a start for anyone willing to develop it further. It is licensed as GPLv3.
The quick and dirty way to set up an NTP server on Debian Linux for your network.
This has been tested using Debian 7.0 "Wheezy".
1. Install NTP server:
apt-get install ntp
2. Edit /etc/ntp.conf: add the networks that are allowed to sync with your time server like so (Adjust parameters accordingly.):
restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap
3. Restart the NTP service:
/etc/init.d/ntp restart
4. Set your device/computer/server to use your NTP server
« ‹ | December 2024 | › » | ||||
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |