# cp -p /etc/grub.d/10_linux /etc/grub.d/10_linux.`date +%Y%m%d.%H%M`
# sed -i 's/quick_boot="1"/quick_boot="0"/' /etc/grub.d/10_linux
# update-grub
# reboot
20141019
share internet connection in linux via terminal
On access point side
- disable firewall
- enable packet forwarding
# echo 1 > /proc/sys/net/ipv4/ip_forward - set iptables rule for port forwarding
# iptables -t nat -A POSTROUTING -o-j MASQUERADE
- configure network interface so you can reach the access point
- set the access point as default gateway
# route add default gw - set dns resolution
# echo nameserver 8.8.8.8 >> /etc/resolv.conf
20140507
Converting the numbers to decimal makes it easier to see which can be used:
# egrep "^ .*|System RAM" /proc/iomem | sed -e 's/ : / /g' -e 's/-/ /g' | awk '{;printf("%d bytes to %d bytes (%d M to %d M) - %s %s\n", strtonum("0x"$1), strtonum("0x"$2), strtonum("0x"$1)/1024/1024, strtonum("0x"$2)/1024/1024, $3, $4)}'
# egrep "^ .*|System RAM" /proc/iomem | sed -e 's/ : / /g' -e 's/-/ /g' | awk '{;printf("%d bytes to %d bytes (%d M to %d M) - %s %s\n", strtonum("0x"$1), strtonum("0x"$2), strtonum("0x"$1)/1024/1024, strtonum("0x"$2)/1024/1024, $3, $4)}'
20140410
bind for chroot
cd /mnt/sysimage
mount -t proc proc proc/
mount --rbind /sys sys/
mount --rbind /dev dev/
mount -t proc proc proc/
mount --rbind /sys sys/
mount --rbind /dev dev/
20140401
mbr
446 bytes - Bootstrap
64 bytes - Partition table
2 bytes - Signature
deletes mbr only
# dd if=/dev/zero of=/dev/sdc bs=446 count=1
20140311
rename disk group
ensure file systems are not mounted
# vxvol -g currentdg stopall
# vxdg deport currentdg
# vxdg -n newdg import currentdg
# vxdg list
# vxrecover -g newdg -sb
# vxvol -g currentdg stopall
# vxdg deport currentdg
# vxdg -n newdg import currentdg
# vxdg list
# vxrecover -g newdg -sb
20140307
20140116
20140115
increase vmware disk size and resize PV
increase vdisk size (vsphere client)
echo 1 > /sys/class/scsi_device/*/device/rescan
pvresize
20131207
Could not sign in. Please check your network connection and try again.
Key applications on Mac such as iMessage, FaceTime and even Facebook integration with Notifications depend on your Mac's Serial Number. If the System Information is showing #Serial Number, you will not be able to sign in.
To solve, search for Blank Board Serializer.
20130913
redhat disable ipv6
* /etc/sysconfig/network - add "NETWORKING_IPV6=no"
* /etc/sysctl.conf - add "net.ipv6.conf.all.disable_ipv6 = 1"
* /etc/sysctl.conf - add "net.ipv6.conf.all.disable_ipv6 = 1"
20130911
20130826
Re-build Grub on Proliant
/etc/grub.conf
boot=/dev/cciss/c0d0
/boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/cciss/c0d0
/sbin/grub --batch --device-map=/boot/grub/device.map \
--config-file=/boot/grub/grub.conf --no-floppy
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
original
boot=/dev/cciss/c0d0
/boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/cciss/c0d0
/sbin/grub --batch --device-map=/boot/grub/device.map \
--config-file=/boot/grub/grub.conf --no-floppy
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
original
20130823
Issues after upgrading SuSE
- Permission of /root is 710 by default after upgrade
- Timezone may change
- If server is configured with kdump enabled, Kdump parameter is not preserved in /boot/grub/menu.lst
20130821
no gdm and gnome in sles 11
ensure repo is good
zypper install -t pattern x11 gnome
edit /etc/sysconfig/displaymanager and windowmanager
default_wm=gnome
default_display=gdm
check /root perm
init 5
zypper install -t pattern x11 gnome
edit /etc/sysconfig/displaymanager and windowmanager
default_wm=gnome
default_display=gdm
check /root perm
init 5
20130719
20130715
20130611
20130605
Subscribe to:
Posts (Atom)