How to software raid-1 in Linux?
I’ve got 4 Linux servers running on software raid-1 setup (SATA hard disks), and it took a while before I really felt comfortable with setup process, as well as with troubleshooting (rebuilding when raid array gets broken, etc).
And here are the most important post-installation step, which I strongly suggest not to skip.
Press CTRL+ALT+F2 and get [...]
linux and boot-time arguments
Sometimes you might wonder what were the arguments passed to kernel, and what you need is mount /boot and “cat /boot/grub/menu.lst”. But, what if you don’t have root access to mount?
synack@deimos ~ $ cat /proc/cmdline
root=/dev/sda3 video=vesafb:1280×800-32@70 splash=silent,theme:livecd-2007.0 quiet CONSOLE=/dev/tty1
If you need more info: synack@deimos ~ $ man proc
linux and CONFIG_NOHIGHMEM
Long gone days when the RAM chips were expensive, and nowadays we can easily have >1gb of RAM even on personal computers (desktops, even laptops). So, what can we do to get maximum of that investment made onto RAM chips?
If you like compiling your own kernel, you should have seen that each option has some [...]
compile-time configuration settings for the kernel
Sometimes it happens that you’d like to know what are the option enabled in your current kernel configuration. And this can be easily achieved, not much hassle actually. All that has to be done – enable CONFIG_IKCONFIG_PROC option before you compile your own kernel.
This option can be found in:
|-General setup
|– <*> Kernel .config [...]
tilda – alternative for a terminal
I really like this terminal… Have set the shortcut to F1 key.
deimos ~ # eix tilda
[I] x11-terms/tilda
Available versions: 0.09.2 ~0.09.3 0.9.4
Installed versions: 0.9.4(23:24:02 07/20/07)
Homepage: http://tilda.sourceforge.net
Description: [...]
postgres prompt
Source: http://www.planetpostgresql.org/
When you drop into postgresql promt this is how the standard prompt looks like:
postgres@deimos ~ $ psql database_name
Welcome to psql 8.0.13, the PostgreSQL interactive terminal.
Type: copyright for distribution terms
h for help with SQL commands
? for help with psql commands
[...]