August 6, 2016
Compiling i686 kernel v2.6.34.1 on x86_64 centos v3.10.0
Want to compile small kernel.
As a first step, as I cannot yet compose the working initrd, I will use the existing pmagic iso which is 2.6.34 for i686 and replace kernel image.
As for package dependencies/toolchain - too many, search for error or ask me in comments.
$ git clone -v git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git $ git branch v2.6.34.1 Then patch something: $ cd linux-stable ; patch -p0 < patch.diff
Patch is below:
Read more ยปAugust 5, 2016
tmux experience
Recently I found tmux. This is a best thing if you manage to work with your server in ssh console on a bad connection or from time to time and would like to save the entire context of what you are doing. For example, you compile kernel and went take a coffee, then back and connection dropped. If you used tmux simply attach to session:
$ tmux aNeed (like me) several consoles? (It's for sure more verbose than to have nohup or Ctrl-z; bg)
<Ctrl-b> , enter "new" <Enter>For a list of sessions:
<Ctrl-b> , s(then select from stable list - meaning you remember that for example your unprivileged session is always third one, and first two is sudoed root ones). Example (selected 2nd):
(0) + 0: 1 windows (1) + 2: 1 windows (2) + 3: 1 windows (attached)The only not a good (yet) thing is scroll up as it needs 2 more keys:
<Ctrl-b>, [, then <PgUp/Down> or ArrowsHave fun!
Labels: administering, linux, ssh, tmux