注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "User talk:Pnoecker"

From Funtoo
Jump to navigation Jump to search
m (funtoo colors!)
(→‎Area36 scratch pad shtuff: to how to how to reprint sysrescuecd.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
==BRANDING==
{{console|body=
###i## echo "This is \n.\O @ funtoo.org (\s \m \r) \t" > /etc/issue
}}
{{console|body=
{{console|body=
###i## curl https://code.funtoo.org/bitbucket/users/pnoecker/repos/666/raw/upgrayedd?at=refs%2Fheads%2Fmaster -o /usr/sbin/upgrayedd
###i## curl https://code.funtoo.org/bitbucket/users/pnoecker/repos/666/raw/upgrayedd?at=refs%2Fheads%2Fmaster -o /usr/sbin/upgrayedd
Line 63: Line 68:
}}
}}


==Area36 scratch pad shtuff==
==live cd scratch pad shtuff==
 
 
{{console|body=
{{console|body=
###i## dd bs=4096 if=/dev/funtoo of=/area36.img
###i## mount -o loop,ro /path/to/image.iso /media
###i## iat /area36.img /area36.iso
###i## cp -a /media /var/tmp/sysrcd
###i##
###i## xorriso -as mkisofs -joliet -rock \
###i## mkisofs -J -l -R -V "Area36" -iso-level 4 -o area36.iso area36.img
-omit-version-number -disable-deep-relocation \
-b isolinux/isolinux.bin -c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \
-volid MyRescueCd -o /var/tmp/sysrcd-custom.iso /var/tmp/sysrcd
}}
}}

Latest revision as of 19:06, May 30, 2021

BRANDING

root # echo "This is \n.\O @ funtoo.org (\s \m \r) \t" > /etc/issue
root # curl https://code.funtoo.org/bitbucket/users/pnoecker/repos/666/raw/upgrayedd?at=refs%2Fheads%2Fmaster -o /usr/sbin/upgrayedd
root # sed -i 's%initrd%initrd /amd-uc.img%' /boot/grub/grub.cfg
root # wget https://www.funtoo.org/images/f/f9/Mybackground.png -O /boot/grub/mybackground.png
  • /boot/grub/grub.cfg
set gfxmode=auto
   insmod all_video
   terminal_output gfxterm
fi
load_video
font=unicode
insmod gfxterm
insmod png
background_image -m stretch /grub/mybackground.png
insmod gettext
set lang=en_US
set menu_color_normal=light-magenta/black
set menu_color_highlight=black/light-magenta
  • /etc/default/grub

GRUB_COLOR_NORMAL="light-magenta/black" GRUB_COLOR_HIGHLIGHT="black/light-magenta"

ebuilding

   ~/myoverlay/mygithub.ebuild - Github ebuild scaffolding
# Distributed under the terms of the GNU General Public License v2
EAPI=7

inherit git-r3

DESCRIPTION="My Ebuilds usage."
HOMEPAGE=""

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=""
DEPEND="${RDEPEND}"
GITHUB_REPO=""
GITHUB_USER=""
GITHUB_TAG=""
SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_REPO}/tarball/${GITHUB_TAG} -> ${PN}-${GITHUB_TAG}.tar.gz"
src_unpack() {
	unpack ${A}
	mv "${WORKDIR}/${GITHUB_USER}-${GITHUB_REPO}"-??????? "${S}" || die
	}
	
src_prepare(){
	}
root # ebuild *.ebuild digest

live cd scratch pad shtuff

root # mount -o loop,ro /path/to/image.iso /media
root # cp -a /media /var/tmp/sysrcd
root # xorriso -as mkisofs -joliet -rock \
-omit-version-number -disable-deep-relocation \
-b isolinux/isolinux.bin -c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \
-volid MyRescueCd -o /var/tmp/sysrcd-custom.iso /var/tmp/sysrcd