Skip to content

XceptN’s Tech Stuff

All About Tech

Category: linux

gawk – print last field

awk -F: ‘{ print $NF }’ file

linux

The grep OR operator

I keep forgetting this:   grep “Word\|Crack” ….

linux

Generating Patches for Linux Sources

gendiff is better or diff -uNrp

development

USB TV BOX

Just got a noname MODEL:USB2.OBOX (or 0BOX?) and attached to my D630 running EL5U2 (i386).. Attaching gives Jul 30 13:19:55 localhost kernel: usb 2-1: new high speed USB device using ehci_hcd and address 7Jul 30 13:19:55 localhost kernel: usb 2-1: configuration #1 chosen from 1 choice in messages and got a brand new Bus 002…

Read More “USB TV BOX” »

desktop

A basic LVM Setup

# fdisk -l Disk /dev/hda: 4294 MB, 4294967296 bytes255 heads, 63 sectors/track, 522 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/hda1 * 1 13 104391 83 Linux/dev/hda2 14 522 4088542+ 8e Linux LVM Disk /dev/hdb: 4294 MB, 4294967296 bytes255 heads, 63 sectors/track, 522 cylindersUnits = cylinders…

Read More “A basic LVM Setup” »

linux

Accessing NTFS Partitions from Linux

This is basically done by two methods:– The NTFS kernel module – The NTFS user space programsfrom the kernel source or http://www.linux-ntfs.org/ The NTFS Kernel ModuleHave a check at the wiki page Youmight find an appropriate prebuilt driver for your current kernelversion. Then you can do normal mounts etc on NTFS partitions. Oneproblem here is…

Read More “Accessing NTFS Partitions from Linux” »

linux

Linux DVD9 to DVD5

Found and used dvd95 and that works quite nice with gnome – also with kde .. But has problems with some dvds..Testing k9copy. That is exclusively for KDE .. But EL and fedora does it nicely along. Hastested k9copy .. That is nice too .. But did not solve the some-dvdissues .. It seems now…

Read More “Linux DVD9 to DVD5” »

desktop

udev: what, why, how?

udev is introduced with the 2.6 kernel (ie not available in RHEL3 and before)And that is solely for device name persistence. It is mainly a problem whendisks are external / via HBA, and the names across reboots and/or clusters mightnot be the same. We have been using devlabel to be able to get some persistence…

Read More “udev: what, why, how?” »

linux

How to Mount Volumes from a Rescued LVM Disk?

Say we have a LVM’ed /dev/sdd1 and we have to mount logical volume LogVol00 in it.. # file -s /dev/sdd1 /dev/sdd1: LVM2 (Linux Logical Volume Manager) , UUID: 7zKduhTHsMa3YD3t2gocYKUDGRP5QvW # vgscan Reading all physical volumes. This may take a while… Found volume group “VolGroup00” using metadata type lvm2 # vgchange -a y VolGroup00 2 logical…

Read More “How to Mount Volumes from a Rescued LVM Disk?” »

linux

PXE Boot Config Enterprise Linux

Configuring a PXE boot server Install required packages: # yum install bind dhcp system-config-netboot tftp-server Setup dhcpd: # vi /etc/dhcpd.confddns-update-style interim;ignore client-updates; subnet 10.10.10.0 netmask 255.255.255.0 { option routers 10.10.10.1; option subnet-mask 255.255.255.0; option domain-name-servers 10.10.10.1; option time-offset 7200; range dynamic-bootp 10.10.10.10 10.10.10.15; default-lease-time 21600; max-lease-time 43200; next-server 10.10.10.1; option subnet-mask 255.255.255.0; option broadcast-address 10.10.10.255;…

Read More “PXE Boot Config Enterprise Linux” »

linux

Posts pagination

Previous 1 … 3 4 5 6 Next

Copyright © 2025 XceptN’s Tech Stuff.

Powered by PressBook Masonry Dark