The Name:
The Gentoo species is the fastest swimming penguin.Hardware specification
- Processors : AMD Turion 64x2 TL50 (1.60GHz, 512K L2 cache)
- Chipset: ATI RS480
- Displays: 15.4" WXGA (1280 x 800 resolution)
- Graphics Card: ATI Radeon Xpress 1100
- Optical Drive: DVDRW
- Sound Card: integrated, snd-hda-intel, realtek
- Wireless Networking: Atheros AR5005G 802.11abg
- MMC reader: ENE Technology Inc SD/MMC Card Reader
- I/O Ports : 3 USB 2.0, Audio jacks, 15-pin monitor connector, PCMCIA slot.
- Gentoo documentation
- audio setup: http://gentoo-wiki.com/HARDWARE_Acer_Aspire_5102WLMi
- articles with gentoo tag: http://kunxi.org/
- when upgrading, first emerge update all packages, resolve blockings(uninstall or upgrade, if circular blocking, --nodep). Then revdep-rebuild.
- use "equery" to look at installed packages
- gcc-config, kernel-config, etc to choose from different slots.
- make.conf, package.keywords, package.mask, package.unmask, package.use, ...
- if use "startx", add "gnome-session" to .xinitrc, else X will not load gnome.
- firefox+flash
sudo echo "net-www/netscape-flash" >> /etc/portage/package.unmask
sudo emerge -av netscape-flash nspluginwrapper
- firefox+mplayerplug-in (UPDATE: "emerge adobe-flash" will do the job)
sudo echo "net-www/mplayerplug-in -firefox divx quicktime realmedia wmp" >> /etc/portage/package.use
## Make sure no browser running
sudo emerge -av mplayerplug-inln -s /usr/lib/nsbrowser/plugins/mplayerplug-in.so $HOME/.mozilla/plugins/mplayerplug-in.so
- cp936 support is not default in kernel, so need to add support in kernel.
File Systems --->
DOS/FAT/NT Filesystems --->
Native Language Support - teTeX set up, "latex" does not come with the package automatically, seems there are a lot of high-level TeX users.
emerge -av tetex
texconfig confall ## check all the output
texconfig rehash
texconfig init ## will generate all other binaries: latex, omega,...
emerge -av app-emacs/auctex ## a must-have package for emacs+latex
emerge -av emacs-update ## as the package suggest - use TuxOnIce to do hibernate and hibernate-ram, just follow this HOWTO. Work like a charm. ATTENTION: if the lid-and-battery script is used, DO NOT put the code directly in `/etc/conf.d/local.conf'. It will run forever and will not act as a child. Instead, paste the script code into a file, say `/etc/lid_battery_suspend', do a
`chmod u+x /etc/lid_battery_suspend.sh'
, and then add one line`/etc/lid_battery_suspend.sh &'
to `/etc/conf.d/local.conf'.
HOWEVER, after one suspend/hibernation, this script will be stopped and not be loaded. An alternative way is to let acpi take care of this. Look at/etc/acpi/events
and change the actions for lid and battery. Then restart acpid service. Well, you take the risk. - clean gnome desktop, use gconf-editor (looks like register table in Windows), find apps \ nautilus \ desktop, uncheck, uncheck, uncheck. Nice pure wallpaper.
- HOWTO take compiz screen shot: open gimp, go to File > Aquire > Screenshot. You can set a delay of however many seconds to give yourself time to get the cube in the right position. Hold it there until the PC's speaker beeps.
- HOWTO_NTP, NTP (Network Time Protocol) is used to synchronize your system's time with an online server.
echo "net-misc/ntp caps" >> /etc/portage/package.use
emerge -av ntp
vi /etc/conf.d/ntp-client # can change the OPTS, change time servers
/etc/init.d/ntp-client start # start sync
#rc-update add ntp-client boot # optionalntp-client
is only a wrapper of ntpdate program. If need to sync automatically, need to startntpd
. Ahh, before setting NTP, check /etc/localtime, if not in the right time zone, copy or link corresponding zone file from /usr/share/zoneinfo/. - (Nov 16,2008) Well, alsa packages(alsa-driver, alsa-lib, alsa-headers, alsa-util) 1.0.18 update is not working and I cannot figure out why, the sound card can not be found. So I downgraded back to 1.0.17, but the alsa-lib remains 1.0.18. And it's back to work! Mask them at once.
- "xauth: error in locking authority file /home/usrname/.Xauthority", will result in a dark screen with cursor usable after "startx", but nothing shows up. And the command window keeps prompting:
xlib: connection to :0.0 refused by X server
The solution is to use
xlib: no specified protocolxauth -b quit
to break existing lock, also check the permission of .Xauthority. - ati-drivers
fglrx(0): incompatible kernel module .......
update ati-driver, even with the ~ keyword - cannot
startx
, the error showsSynaptics DeviceOn Called
Can't initialize SocketServer
Failed to initialize Panel Agent
It's probably because you have deleted or modified the/tmp
directory, please check the permission of this directory, or just do asudo chmod 777 /tmp
.
- The Problem: hibernate works under text mode. But under X mode, it resumes at the "Going Atomic" step and gives an error saying
another suspend already in progress?
- The Solution:
The error in 'Going Atomic' is probably because you need to increase the
allowance we make for drivers allocating memory during the atomic copy.
Assuming you're using the hibernate script, this is done by editing
/etc/hibernate/suspend2.conf. If you cat /sys/power/tuxonice/debug_info
after an attempt at hibernating, the last line will say something like:
- Extra pages: 1069/500.
This means that 1069 pages were needed, but we only allowed for 500. In
that case, you'd want to add something along the lines of
ProcSetting extra_pages_allowance 2000
to /etc/hibernate/suspend2.conf.
(courtesy from http://lists.tuxonice.net/pipermail/tuxonice-users/2008-February/000202.html)
No comments:
Post a Comment