Labels

Android (1) bash (2) boost (2) C (34) C++ (2) cheatsheet (2) CLion (6) css (3) Debian (33) DL (17) Docker (1) Dreamweaver (2) Eclipse (3) fail2ban (4) git (5) GitHub (4) Hacking (3) html (8) http (1) iOS (1) iPad (1) IRC (1) Java (30) javascript (3) Linux (164) Mac (19) Machine Learning (1) mySQL (47) Netbeans (4) Networking (1) Nexus (1) OpenVMS (6) Oracle (1) Pandas (3) php (16) Postgresql (8) Python (9) raid (1) RedHat (14) Samba (2) Slackware (45) SQL (14) svn (1) tar (1) ThinkPad (1) Virtualbox (3) Visual Basic (1) Visual Studio (1) Windows (2)

Saturday 1 October 2016

Kernel Compile 2

(The following instructions assume we are installing version 2.6.0 of the kernel, replace all instances with the version you are trying to build. These instructions are also x86-specific; other architecture's build procedures may differ.)

Kernel Compile 1

If using same source as current kernel, modify EXTRAVERSION in Makefile
Consider renaming .config to .configBAC

make menuconfig (create .config file)
make dep (2.4.x kernels)
make clean (possibly run this before previous step)
make bzImage (makes the kernel in arch/i386/boot/bzImage)
make modules
make modules_install (copies modules to /lib/modules/kernelVersion)

cp /usr/'Linux_kernel_source'/src/arch/i386/boot/bzImage /boot/newkernel (make install does this)

make install (not using, I don't think)

cp /System.map /boot/System.map-kernelVersion

Add the following to /etc/lilo.conf
image = /boot/vmlinux-kernelVersion
root = /dev/hda2 (or whichever partition the / filesystem resides)
label = kernelVersion
read-only

Bits and Bytes


Data type
Storage size
Range

Pangolins

5 REM Pangolins

Boot Loader (need tidy up)

Boot Loader Questions

Error When Installing LILO to the Master Boot Record (MBR)

   

Linux - RAID Monitor - LSI Fusion-MPT SAS

Linux - RAID Monitor - LSI Fusion-MPT SAS

This page documents monitoring of RAID controllers base on the "LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS" chipset using the lsiutil and mpt-status tools. You can choose to install either one of the tools or both.

slackpkg script

# slackpkg script by H.Nisbet 09/03/2014
slackpkg -default_answer=n -batch=on -dialog=off upgrade-all
echo NOTE: You may need to run slackpkg check-updates
echo
echo If there is a change to the changelog, then
echo
echo you need to run slackpkg update
echo
echo then re run this script

FTP in background

To FTP in background, create a script and chmod +x as follows:

#!/bin/sh

(
  echo open host
  echo user username password
  echo binary
  echo cd public
  echo get filename
  echo bye
) | ftp -n & > /dev/null

Sendmail

Anti-Spam Configuration Control

    Overview
    relay_* Features
    Access Database
    Fine Control In The Access Database
    Delay All Checks
    Header Checks

tar

tar -cvf file.tar file folder
    The above will create file.tar containing folder

tar -cvfz file.tar.gz file folder
    The above will create compressed file.tar.gz containing folder

tar -cv file1 folder | split -v 10M file.tar_
    The above will split the tar file into multiple files of 10M each

tar -xf file.tar
    The above will extract...

tar -xfvz file.tar.gz
    The above will unzip and extract...

cat file.tar_* | tar xz
    The above will combine and extract

Update Spamassassin

Update Spamassassin

RedHat FTP


ftp://archive.download.redhat.com/pub/redhat/linux/

https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/

Open relay Test

telnet Mail.Suspect.com 25

Mount USB devices

lsusb
    Will tell you what USB devices Linux detects. -v will be more verbose.

lsblk
    To see which device is your USB device.

ls -l /dev/* | wc -l
    Compare the lists of devices in /dev before and after plugging in the USB device.