User Tools

Site Tools


linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux [2017/01/21 10:27] felixonmarslinux [2020/05/11 13:15] (current) felixonmars
Line 6: Line 6:
 chown root:root $SWAPFILE chown root:root $SWAPFILE
 chmod 0600 $SWAPFILE chmod 0600 $SWAPFILE
 +swapon $SWAPFILE
 +</code>
 +
 +=== Add to /etc/fstab to make it persistent ===
 +<code>
 +echo "$SWAPFILE none swap sw 0 0" >> /etc/fstab
 </code> </code>
  
 ==== Mount Target System For Chroot ==== ==== Mount Target System For Chroot ====
 <code> <code>
-TARGET=/target+TARGET=/mnt
 mount /dev/sdxn $TARGET mount /dev/sdxn $TARGET
 mount -t proc proc $TARGET/proc mount -t proc proc $TARGET/proc
Line 31: Line 37:
 /var/lock/* /var/lock/*
 /var/run/* /var/run/*
-/var/lib/pacman/*+/var/log/*.gz 
 +/var/log/**/*.gz
 /var/cache/pacman/pkg/* /var/cache/pacman/pkg/*
 +/home/**/.cache/chromium/*
 +/home/**/.ccache/*
 +/home/**/.avfs
 +/home/**/.gvfs
 /lost+found /lost+found
 </code> </code>
Line 76: Line 87:
 </code> </code>
  
-==== Install Zesty Kernel (4.9) on Xenial ====+==== Install Artful Kernel (4.13) on Xenial ====
 <code> <code>
-echo 'deb http://archive.ubuntu.com/ubuntu/ zesty main' >> /etc/apt/sources.list.d/zesty.list +echo 'deb http://archive.ubuntu.com/ubuntu/ artful main' >> /etc/apt/sources.list.d/artful.list 
-echo -e 'Package: *\nPin: release a=zesty\nPin-Priority: 100\n' >> /etc/apt/preferences.d/zesty.pref+echo -e 'Package: *\nPin: release a=artful\nPin-Priority: 100\n' >> /etc/apt/preferences.d/artful.pref
 apt-get update apt-get update
-apt-get install -t zesty linux-image-generic linux-generic linux-headers-generic linux-libc-dev+apt-get install -t artful linux-image-generic linux-generic linux-headers-generic linux-libc-dev
 </code> </code>
  
linux.1484994438.txt.gz · Last modified: 2017/01/21 10:27 by felixonmars