Tuesday, February 28, 2017
Gentoo NTFS 3g
Gentoo NTFS 3g
Installation
- external-fuse: Use external FUSE library instead of internal one. Must be disabled for unprivileged mounting to work.
- acl: Adds support for Access Control Lists.
- debug: Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
- hal: Enable Hardware Abstraction Layer (HAL) support
- suid: Enable setuid root for the program, with potential security risks. This flag allows simple users to mount an ntfs partition using ntfs-3g.
- udev: Enable sys-fs/udev integration (device discovery, power and storage device support, etc)
[edit]Configuration
[edit]Kernel Configuration
| Linux Kernel Configuration: NTFS-3g kernel configuration |
File systems ---> |
| Linux Kernel Configuration: NTFS-3g kernel configuration - kernel 2.6.29 |
File systems ---> |
[edit]
Available link for download
Wednesday, February 22, 2017
Gentoo accept license
Gentoo accept license
In make.conf:
ACCEPT_LICENSE="*"
to unmask all licenses. Or else name the licenses you wish unmasked
one by one.
Available link for download
Friday, February 10, 2017
Gentoo Linux Kernel Upgrade Guide
Gentoo Linux Kernel Upgrade Guide
Although this guide is targeted at users upgrading from one kernel release to another, it will also be useful for users migrating from one kernel package to another.
gentoo-sources is used as an example in this document, however, the instructions here also apply to the other packages present in our tree.
Even if you choose not to update to every new kernel revision, it is recommended that you at least upgrade from time to time. It is strongly recommended that you immediately upgrade to a new kernel if that new release solves a security problem.
Code Listing 3.1: New kernel sources appearing on update list |
# emerge -Dup world |
Note: The "NS" label in the above output means that the new kernel will be installed in a New Slot, i.e. the sources of your old kernel will be kept around, until you manually remove them. |
Code Listing 3.2: Upgrading your kernel sources |
# emerge -u gentoo-sources |
Portage can update the symlink automatically when you emerge new kernel sources. All you have to do is add the symlink flag to the USE variable in /etc/make.conf.
Code Listing 4.1: Example of USE variable in /etc/make.conf |
(Add the symlink keyword) |
Code Listing 4.2: Using eselect to symlink |
(Install eselect if you dont have it) |
Code Listing 4.3: Updating the /usr/src/linux softlink manually |
# cd /usr/src |
Simply run genkernel in the normal way:
Code Listing 5.1: Invoking genkernel |
# genkernel all |
Code Listing 5.2: Invoking genkernel with some common arguments |
# genkernel --menuconfig --bootloader=grub all |
Code Listing 5.3: Invoking menuconfig |
# cd /usr/src/linux |
Next, compile your kernel and copy it over to your boot partition. Again, follow the Gentoo Handbook instructions outlined in the chapter onConfiguring the Bootloader. If /boot is a separate partition, ensure it is mounted before copying the compiled kernel to this directory! Failing to do so would keep you from booting the system with your new kernel.
Code Listing 5.4: Compiling and installing the new kernel |
# make && make modules_install |
We provide you with an easy tool (sys-kernel/module-rebuild) which rebuilds all the kernel modules you have installed using separate ebuilds for the kernel at /usr/src/linux. Its use is straightforward. After emerging it, simply run module-rebuild populate to populate the database with a list of packages that will need to be rebuilt after upgrading the kernel. Once you have finished upgrading or recompiling your kernel, run module-rebuild rebuild to rebuild the drivers for your new kernel.
For more information, run module-rebuild without any options to see a list of commands that can be passed to the utility.
Hopefully, your system successfully boots with the new kernel, and you can log in to resume whatever you were doing. If this is the case, then the upgrade is complete.
If you made a mistake and the system fails to boot with the new kernel, reboot the system and select the entry from the boot loader that corresponds to the last known working kernel. You can then restart from the Configuring, compiling, and installing the new kernel stage -- making the appropriate changes to correct your mistake. In some cases, you might not even need to reboot to do this (e.g. you missed a driver for an audio device, Ethernet adapter, etc.)
Switching between multiple kernels is as simple as leaving the kernel sources under /usr/src/ and leaving the bzImage binaries on your/boot partition (referenced by entries in your boot loader configuration). Every time you boot up, you will be presented with a choice of which kernel to boot into.
Code Listing 9.1: Pruning old versions |
# emerge -P gentoo-sources |
You can also safely delete any modules that were used by this kernel. This can be done by removing the appropriate directories under/lib/modules/ that relate to the kernel versions you are removing. Be careful not to delete modules belonging to kernels that you still use!
Finally, you can mount your /boot partition and remove the bzImage file(s) for the kernel(s) you are pruning. You should also edit your boot loader configuration so that it no longer references such kernel(s).
The only situation where this is appropriate is when upgrading from one Gentoo kernel revision to another. For example, the changes made between gentoo-sources-2.6.9-r1 and gentoo-sources-2.6.9-r2 will be very small, so it is usually OK to use the following method. However, it is not appropriate to use it in the example used throughout this document: upgrading from 2.6.8 to 2.6.9. Too many changes between the official releases, and the method described below does not display enough context to the user, often resulting in the user running into problems because they disabled options that they really didnt want to.
To reuse your old .config, you simply need to copy it over and then run make oldconfig. In the following example, we take the configuration from gentoo-sources-2.6.9-r1 and import it into gentoo-sources-2.6.9-r2.
Code Listing 10.1: Reusing your old config |
# cd /usr/src/linux-2.6.9-gentoo-r2 |
Code Listing 10.2: Reusing your old config with genkernel |
# cd /etc/kernels |
A much safer upgrading method is to copy your config as previously shown, and then simply run make menuconfig. This avoids the problems ofmake oldconfig mentioned previously, as make menuconfig will load up your previous configuration as much as possible into the menu. Now all you have to do is go through each option and look for new sections, removals, and so on. By using menuconfig, you gain context for all the new changes, and can easily view the new choices and review help screens much easier. You can even use this for upgrades such as 2.6.8 to 2.6.9; just make sure you read through the options carefully. Once youve finished, compile and install your kernel as normal.
Available link for download
Wednesday, February 8, 2017
Gentoo A Quick Guide
Gentoo A Quick Guide
1. emerge
?? portage tree (???)
emerge --sync
?? XXX? ?????????????? USE ? LINGUAS
emerge -pv XXX
?? XXX? ???????????
emerge -pvt XXX
????
emerge -uDN world
??????
emerge -uDN -pv world
?????? ??????
emerge -uDN -pvt world
??XXX?
emerge -C XXX
????????? (??! ??????????)
emerge -uDN world ????
emerge --depclean (????? -pv,?????,?????????)
revdep-rebuild
?world?????????????????????????
emerge -n curl
2. ????????
?????????????emerge?????
revdep-rebuild (?? emerge gentoolkit)
??????????
module-rebuild (?? emerge module-rebuild)
module-rebuild rebuild ???????????? ?? ????? nvidia/vbox ?????????????????? nvidia?? vbox?????? portage ?????
????????
etc-update
??????????????
dispatch-conf
3. ??
????????? XXX ????
eix XXX (? emerge eix)
??????? emerge --sync ??? update-eix ??????????? eix-sync ???????2???
???????YYY??USE
euse -i YYY
?
euses YYY (?? emerge euses)
??XXX?????USE
equery uses XXX (?? emerge gentoolkit)
?? /bin/ls ???
qfile /bin/ls
?? glibc ??????
qlist glibc
??????? glibc ?????
genlop -t glibc (?? emerge genlop)
??USE??????????????? make.conf ??????
ufed (? emerge ufed)
4. /etc/portage/package.* ??????????????????????
package.use
sys-apps/man-pages -nls
sys-apps/pciutils -zlib
media-libs/freetype bindist
app-text/acroread linguas_zh_TW linguas_zh_CN linguas_en
???
?????USE????????USE?
??2????2???????? USE?????????????????USE???????? LINGUAS ????????
package.keywords
sys-apps/hdparm ~x86
???
??????? KEYWORDS????? hdparm ?? ~x86 ??????? x86 ????????????
????? emerge ???????? make.conf ????? ~x86????????????? x86 ??? ~x86???? -~x86 ??????
?? gentoo@freenode ?<kojiro>??? ACCEPT_KEYWORDS is incremental
package.mask
>sys-devel/libtool-1.5.23
???
???????????????????????
?? libtool-1.5.23b ??????????????????? ? 1.5.23 ???
package.unmask
=net-www/apache-2.2.4
games-arcade/stepmania
? mask ??????????????? 2.2.4 ? apache??? portage ?? mask ?????? unmask ???
5. ????
default ? gentoo ???? runlevel???????? runlevel 3?
? default runlevel ???? XXX ?? (add)
rc-update -a XXX default
? default runlevel ???? XXX ?? (delete)
rc-update -d XXX default
?? default runlevel ????? (show)
rc-update -s default
6. eLog ??.
emerge ???????????????????????????????????
?? emerge log????
emerge elogv
???????
emerge elogviewer # GTK
emerge kelogviewer # KDE
????? /etc/make.conf ?????
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_ELOG_CLASSES="warn error info log qa"
???????????????? qa(????) ???????????
???????? emerge ?????????????????? elogv ????
7. ?????
??????????
rm -rf /usr/portage/distfiles/*
???????
eclean distfiles (?? emerge gentoolkit)
??emerge??????????
rm -rf /var/tmp/portage/*
Available link for download
Sunday, January 29, 2017
Gentoo 升级系统
Gentoo 升级系统
??????
emerge portage
??portage
emerge python
??python
python-updater
??python??
emerge -avuDN world
??????
emerge -av depclean
?????????
revdep-rebuild
???????????????? ???
dispatch-conf?etc-update
????????
emerge -e world
???????? PS?????
Available link for download
Monday, January 16, 2017
gentoo kde4ä¸gtkç¨åºä½¿ç¨qtæ ·å¼
gentoo kde4ä¸gtkç¨åºä½¿ç¨qtæ ·å¼
emerge kcm_gtk
emerge gtk-engines-qtcurve
emerge qtcurve-qt4
Available link for download
Saturday, January 14, 2017
Gentoo stuff
Gentoo stuff
- ~x86
???????????????????????????~x86??????????????x86??????
Gentoo?????????????????????????????????????????????????????gentoo??????????????????????????????????????????????????????????????????????????????????OK??????????
???????????????????????????????????/etc/make.conf???????ACCEPT_KEYWORDS="~x86"????????????????????????/etc/portage/package.keywords???????????????????????app-office/gnumeric ~x86????????=app-office/gnumeric-1.2.13 ~x86?
???????????ACCEPT_KEYWORDS="~x86"?????????????????????????????????????????????????? - mask
?????gentoo??????????????????????????/usr/portage/profile/package.mask??????????????????????????/etc/portage/package.umask????????????????????gentoo??????????????
???????????????????????????/etc/portage/package.mask????????gentoo??????????
Available link for download
Friday, December 2, 2016
Gentoo å级系ç»çæ åæ¥éª¤
Gentoo å级系ç»çæ åæ¥éª¤
#emerge --sync //????portage??
#emerge portage //???????portage???????????
#emerge python //???????python???????????
#/usr/sbin/update-python //???emerge python??????
#emerge -avuDN world //?? /var/lib/portage/world ??????????????
????? --ask (-a) ??Portage????????????????????????
--verbose (-v) ?????????????
--update (-u) ????????
--deep (-D) ???????????
--newuse (-N) USE????????Portage??USE?????????
????????????????????
#emerge -av --depclean //?????????????
#revdep-rebuild //gentoolkit??????????????????????????
????????????
#dispatch-conf //?????????
#emerge -e world //???????????USE??????????? ????? --emptytree (-e)
- emerge --sync
- emerge -vuD --newuse world
- emerge depclean
- revdep-rebuild
Available link for download
Tuesday, November 15, 2016
gentoo hfsplus
gentoo hfsplus
Adding HFS+ Kernel Support
| Linux Kernel Configuration: HFS+ filesystem and macintosh partition support |
File systems ---> |
[edit]
Available link for download
Tuesday, October 11, 2016
Gentoo install fcitx
Gentoo install fcitx
app-i18n/fcitx ~x86
app-i18n/fcitx-configtool ~x86
app-i18n/fcitx-sunpinyin ~x86
app-i18n/sunpinyin ~x86
sunpinyin???????????????????????fcitx-sunpinyin???????????????????????
emerge -avt fcitx fcitx-configtool fcitx-sunpinyin???????.xinitrc??????Xfce4??????????????????
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
fcitx &
exec startxfce4
????Slim?????/etc/slim.conf????Xfce4???~/.xinitrc???
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd exec /bin/sh - ~/.xinitrc %session
# login_cmd exec /bin/bash -login ~/.xinitrc %session
login_cmd exec /bin/bash -login /usr/share/slim/Xsession %session
# Read /etc/xprofile and .xprofile for X specific setup
test -f /etc/xprofile && . /etc/xprofile
test -f "$HOME/.xprofile" && . "$HOME/.xprofile"
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
ln -s /usr/share/applications/fcitx.desktop ~/.config/autostartAvailable link for download