Last active
November 14, 2015 19:39
-
-
Save zeta709/0bca0ad279418d9ee62f to your computer and use it in GitHub Desktop.
Gentoo related
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# genkernel --menuconfig --no-clean all | |
CONFIGFILE=$1 | |
if [ ! -f "$CONFIGFILE" ]; then | |
echo "File not exists: $CONFIGFILE" | |
exit 1; | |
fi | |
echo "--------nvidia-drivers--------" | |
grep "CONFIG_MODULES=" $CONFIGFILE || echo "X" | |
grep "CONFIG_MTRR" $CONFIGFILE || echo "X" | |
grep "CONFIG_FB=y" $CONFIGFILE || echo "X" | |
grep "CONFIG_FB_NVIDIA is not set" $CONFIGFILE || echo "X" | |
grep "CONFIG_FB_RIVA is not set" $CONFIGFILE || echo "X" | |
echo "--------uvesafb--------" | |
grep "CONFIG_CONNECTOR=y" $CONFIGFILE || echo "X" | |
grep "CONFIG_FB=y" $CONFIGFILE || echo "X" | |
grep "CONFIG_FIRMWARE_EDID=y" $CONFIGFILE || echo "X" | |
grep "CONFIG_FB_UVESA" $CONFIGFILE || echo "X" | |
grep "CONFIG_FB_MODE_HELPERS=y" $CONFIGFILE || echo "X" | |
echo "--------nls--------" | |
grep "CONFIG_NLS=y" $CONFIGFILE || echo "X" | |
grep "CONFIG_NLS_CODEPAGE_437=y" $CONFIGFILE || echo "X" | |
grep "CONFIG_NLS_CODEPAGE_949=y" $CONFIGFILE || echo "X" | |
grep "CONFIG_NLS_UTF8=y" $CONFIGFILE || echo "X" | |
echo "--------uefi--------" | |
grep "CONFIG_FB_SIMPLE=y" $CONFIGFILE || echo "X" | |
grep "CONFIG_X86_SYSFB=" $CONFIGFILE || echo "X" | |
grep "CONFIG_RELOCATABLE=" $CONFIGFILE || echo "X" | |
grep "CONFIG_EFI=" $CONFIGFILE || echo "X" | |
grep "CONFIG_EFI_STUB" $CONFIGFILE || echo "X" | |
grep "CONFIG_FRAMEBUFFER_CONSOLE=" $CONFIGFILE || echo "X" | |
grep "CONFIG_EFI_VARS" $CONFIGFILE || echo "X" | |
grep "CONFIG_EFI_PARTITION=" $CONFIGFILE || echo "X" | |
echo "--------google-chrome (sandbox)--------" | |
grep "CONFIG_USER_NS=y" $CONFIGFILE || echo "error: USER_NS" | |
grep "MEMCG=y" $CONFIGFILE || echo "error: MEMCG" | |
grep "MEMCG_KMEM=y" $CONFIGFILE || echo "error: MEMCG_KMEM" | |
grep "CONFIG_COMPAT_VDS0 is not set" $CONFIGFILE || echo "error: COMPAT_VDS0" | |
grep "CONFIG_SECURITY_YAMA=y" $CONFIGFILE || echo "error: YAMA" | |
echo "--------vmware-player--------" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(eselect kernel) | |
cd /usr/src/linux | |
cp some_config .config | |
make oldconfig | |
make menuconfig | |
make -j8 bzImage | |
make -j8 modules | |
mount /boot | |
make modules_install | |
make install | |
genkernel --install initramfs | |
(rename /boot/vmlinuz) | |
boot-update | |
emerge -va @module-rebuild |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<repositories xmlns="" version="1.0"> | |
<!-- | |
SYN | |
* TEMPLATE TO COPY'N'PASTE UNOFFICIAL REPOSITORIES | |
<repo quality="experimental" status="unofficial"> | |
<name>XXXXXX</name> | |
<description lang="en">XXXXXX</description> | |
<homepage>XXXXXX</homepage> | |
<owner type="person"> | |
<email>XXXXXX</email> | |
<name>XXXXXX</name> | |
</owner> | |
<source type="git">XXXXXX</source> | |
<feed>XXXXXXXXX</feed> | |
</repo> | |
* GENTOO TEMPLATE | |
<repo quality="experimental" status="unofficial"> | |
<name>XXXXX</name> | |
<description lang="en">XXXXXX</description> | |
<homepage>https://cgit.gentoo.org/XXXX/xxxx</homepage> | |
<owner type="person"> | |
<email>XXXXX</email> | |
<name>XXXXX</name> | |
</owner> | |
<source type="git">https://anongit.gentoo.org/git/XXXX/xxxx.git</source> | |
<source type="git">git://anongit.gentoo.org/XXXX/xxxx.git</source> | |
<source type="git">git+ssh://[email protected]/XXXX/xxxx.git</source> | |
<feed>https://cgit.gentoo.org/XXXX/xxxx/atom/</feed> | |
</repo> | |
* GITHUB TEMPLATE | |
<repo quality="experimental" status="unofficial"> | |
<name>XXXXX</name> | |
<description lang="en">XXXXXX</description> | |
<homepage>https://github.com/XXXX/xxxx</homepage> | |
<owner type="person"> | |
<email>XXXXX</email> | |
<name>XXXXX</name> | |
</owner> | |
<source type="git">https://github.com/XXXX/xxxx.git</source> | |
<source type="git">git://github.com/XXXX/xxxx.git</source> | |
<source type="git">[email protected]:XXXX/xxxx.git</source> | |
<feed>https://github.com/XXXX/xxxx/commits/master.atom</feed> | |
</repo> | |
* BITBUCKET TEMPLATE | |
<repo quality="experimental" status="unofficial"> | |
<name>XXXX</name> | |
<description lang="en">XXXXXX</description> | |
<homepage>https://bitbucket.org/XXXX/xxxx</homepage> | |
<owner type="person"> | |
<email>XXXXX</email> | |
<name>XXXXX</name> | |
</owner> | |
<source type="mercurial">https://bitbucket.org/XXXX/xxxx</source> | |
<source type="mercurial">ssh://[email protected]/XXXX/xxxx</source> | |
<feed>https://bitbucket.org/XXXX/xxxx/atom</feed> | |
<feed>https://bitbucket.org/XXXX/xxxx/rss</feed> | |
</repo> | |
FIN | |
--> | |
</repositories> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/root/overlays/repositories.xml
에 저장한다./etc/layman/layman.cfg
을 편집하여 overlays 목록에file:///root/overlays/repositories.xml
를 추가한다.layman
명령으로 추가한 overlay를 사용할 수 있다.