Levent Ozturk
Enter
Ubuntu kernel

Ubuntu: /var/lib/dpkg/info # Package file folder

dpkg --configure -a

sudo apt-get autoclean

sudo apt-get autoremove

sudo apt-get clean

sudo apt-get update

sudo apt-get upgrade #Safe, noremoval or new install

sudo apt-get dist-upgrade #Might break. Dependence resolve, install new if needed, remove if no dependence

sudo apt-get install -f

sudo apt-get update --fix-missing

sudo apt-get install lamp-server^ # With a ^ at the end

a2enmod cgi

a2enmod expires

a2enmod ssl

 

update-rc.d apache2 enable # autostart apache2 at U14.04

ubuntu release: lsb_release -a #check release

sudo apt-get install update-manager-core sudo do-release-upgrade -d #Upgrades to newer Ubuntu release (not always the newest, so try severla times)

Update linux kernel: wget http://kernel.ubuntu.com/~kernel-ppa/mainline//linux_headers_..._all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline//linux_headers_..._.deb #arch is armhf for arm

wget http://kernel.ubuntu.com/~kernel-ppa/mainline//linux_image_..._.deb

dpkg -i linux_headers_..._all.deb dpkg -i linux_headers_..._.deb #arch is armhf for arm

dpkg -i linux_image_..._.deb reboot Create swap (/tmp folder) fdisk create partition with type 82 sudo mkswap /dev/mmcblk0p4 sudo swapon -U UUID # UUID is returned in the previous command blkid /dev/mmcblk0p4

vi /etc/fstab => UUID= none swap sw 0 0

Mount img file system:

mkdir ~/img

mount -t udf filename.img ~/img -o loop

sudo kpartx -a .img # creates /dev/mapper/loop0p1 and /dev/mapper/loop0p2

sudo mount -o rw -t ext4 /dev/mapper/loop0p2 mount_target/

Mounting only one partition in img:

fdisk /path/disk.img

Multiply the start number of the partition with the block size (usually 512Byte) to find the offset

mount -o loop,offset=xxxx /path/disk.img /mnt/disk.img.partition

All the material listed and linked at this World Wide Web domain are strictly private property and copyrighted. © Copyright -∞-∞ Levent Ozturk. All rights reserved. Reproduction or use of any material, documents and related graphics and any other material from this World Wide Web server is strictly prohibited. Site Map