With Midnight Commander (mc) and Gnome Terminal running gnome-shell even when you go to Keyboard Shortcuts and disable the menu shortcut key it would still open up a menu when you were in mc and pressed F10 to exit. I finally got so fustrated with it I found this post and it worked :)
OK so here is what I did.
mkdir ~/.config/gtk-3.0/ cat ~/.config/gtk-3.0/gtk.css @binding-set NoKeyboardNavigation { unbind "<shift>F10" } * { gtk-key-bindings: NoKeyboardNavigation }
Make sure when you create the file or edit it that you do not have any gnome terminals open.
I wanted to change the default background in;
gnome-base/gdm-3.2.0-r1
su - su - gdm -s /bin/bash gdm@opteron ~ $ dbus-launch No protocol specified DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-tDdIT0TeFd,guid=842b21d1eef42fd311455f2d00001199 DBUS_SESSION_BUS_PID=7002 gdm@opteron ~ $ export DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-tDdIT0TeFd,guid=842b21d1eef42fd311455f2d00001199 gdm@opteron ~ $ export DBUS_SESSION_BUS_PID=7002 gdm@opteron ~ $ ps aux | grep dconf david 6716 0.0 0.0 128544 2908 ? Sl 11:20 0:00 /usr/libexec/dconf-service gdm 7005 0.0 0.0 7960 824 pts/0 S+ 11:27 0:00 grep --colour=auto dconf gdm@opteron ~ $ /usr/libexec/dconf-service & [1] 7007 gdm@opteron ~ $ GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-uri "file:////usr/share/backgrounds/gnome/stripes-gentoo.jpg"
I wanted a way to log into Gentoo Bugzilla with Chromium using CACert SSL certificates without needing to click through the red screen of hate.
First we need dev-libs/nss with USE="utils".
Next as your normal user;
wget http://www.cacert.org/certs/root.crt
wget http://www.cacert.org/certs/class3.crt
certutil -d sql:$HOME/.pki/nssdb -A -t "TCu,Cu,Tuw" -n \ "CACert Class 1 Root Certificate" -i root.crt certutil -d sql:$HOME/.pki/nssdb -A -t "TCu,Cu,Tuw" -n \ "CACert Class 3 Root Certificate" -i class3.crt rm root.crt class3.crt
Thats it ...
I just updated to Firefox 4 and when I wanted to send email links with Thunderbird I could not get it to work with some of the old methods like editing ~/.mozilla/firefox/mfqbagaq.default/prefs.js.
I got it to work by opening Preferences > Applications > and adding Content Type: mailto and entering the link to /usr/bin/thunderbird.
That's it :)
I just did an update on my main ~amd64 box that I have had for over 5 years, the hardware is starting to get a little dated but it is still running strong so no worries. It had been about 3 weeks since my last update.
I went ahead and updated to the latest xorg-server version x11-base/xorg-server-1.9.2.902 and nvidia driver x11-drivers/nvidia-drivers-260.19.29.
I was a little nervous as I use a custom xorg.conf for my two monitors that I have set-up just the way I like it and sure didn't want to break it. No worries as it works perfect, also the fonts seem even better than before and I thought they were good then.
The first problem to overcome was with dev-perl/Gtk2-WebKit-0.08. I had this before but had cleaned up my overlay so I had to redo it, here is the simple fix;
--- /usr/portage/dev-perl/Gtk2-WebKit/Gtk2-WebKit-0.08.ebuild 2010-05-31 05:11:03.000000000 -0400 +++ /usr/local/portage/dev-perl/Gtk2-WebKit/Gtk2-WebKit-0.08-r1.ebuild 2010-07-23 21:41:09.000000000 -0400 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-perl/Gtk2-WebKit/Gtk2-WebKit-0.08.ebuild,v 1.1 2010/05/31 09:11:03 tove Exp $ +EAPI=2 + MODULE_AUTHOR=FLORA inherit perl-module @@ -19,5 +21,9 @@ dev-perl/glib-perl dev-perl/extutils-pkgconfig dev-perl/extutils-depends" +src_configure() { + addpredict /root/.local/share/webkit + perl-module_src_configure +} #SRC_TEST=do
Next was dev-python/sexy-python-0.1.9-r1. It took a little research on bugs.gentoo.org. I had to do two things. Remove 2.7 from /etc/make.conf so it would not try to build against python 2.7 so;
USE_PYTHON="2.6 2.7 3.1" <= old USE_PYTHON="2.6 3.1" <= new
ln -s /usr/include/gdk-pixbuf-2.0/gdk-pixbuf /usr/include/gdk-pixbuf
Here is the update script I use at the moment :)
#!/bin/bash . /etc/init.d/functions.sh ebegin "Updating $(hostname -f)" eend $? emerge --sync; emerge -avuND world; emerge --depclean; revdep-rebuild; eix-update einfo "Do not forget etc-update!"
I was arch testing mod_wsgi for x86 stabilization and needed to test it so here is what I did.
First you will need to have apache working fine I have;
www-servers/apache-2.2.16Then I installed ~x86 version of mod_wsgi;
emerge -av www-apache/mod_wsgi [ebuild R ] www-apache/mod_wsgi-3.3
Next I created a little test;
def application(environ, start_response): status = '200 OK' output = 'Hello World!' response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(output)))] start_response(status, response_headers) return [output]
Saved it as /var/www/localhost/htdocs/hello.py
Next I edited vim /etc/apache2/vhosts.d/default_vhost.include
and added;
WSGIScriptAlias / /var/www/localhost/htdocs/hello.py
Next To enable mod_wsgi, you need to edit your /etc/conf.d/apache2 file and add '-D WSGI' to APACHE2_OPTS.
Here is my line;
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D MANUAL -D SSL -D \ SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D WSGI"
Now when you restart the server you should see on http://localhost/ the "Hello World!" message.
Thats it!
revdep-rebuild -L libGl.so.*
As a general rule for upgrading to cups 1.4 when something regarding
local usb printers doesn't work:
1. disable kernel usblp: CONFIG_USB_PRINTER=n
2. delete /etc/cups
3. (re-)install cups 1.4 with USE="usb"
4. configure printer(s) from scratch via the cups webinterface
5. if your printer is a multifunction device, be sure you got the udev rules
setting the device permissions in shape so cups can access the device
If for whatever reason (broken/old printer drivers) that doesn't work
out there's still the way to install CUPS 1.4 with USE="-usb" to get
the old CUPS 1.3 behaviour back.
#!/usr/bin/python import subprocess def merge(package): mymerge = "emerge" eopt = "-p" subprocess.call([mymerge, eopt, package]) fobj = "packages.txt" FILE = open(fobj, "r") for package in FILE: merge(package) FILE.close()
virtual/perl-CGI virtual/perl-Class-ISA virtual/perl-Compress-Raw-Bzip2 virtual/perl-Compress-Raw-Zlib virtual/perl-File-Spec virtual/perl-IO-Compress virtual/perl-IO-Zlib virtual/perl-Locale-Maketext-Simple virtual/perl-Pod-Simple virtual/perl-Scalar-List-Utils virtual/perl-Text-Balanced virtual/perl-version perl-core/CGI perl-core/Class-ISA perl-core/Compress-Raw-Bzip2 perl-core/Compress-Raw-Zlib perl-core/File-Spec perl-core/IO-Compress perl-core/IO-Zlib perl-core/Locale-Maketext-Simple perl-core/Pod-Simple perl-core/Scalar-List-Utils perl-core/Text-Balanced perl-core/version
I had the same problem a while back "the cdrom drive wouldn't open up and stay open" It was driving me crazy as I attempted to put a disk in the drive before it closed. It was too fast for me, it would grab my hand before I could get the disk inserted :) Once I removed ATA/ATAPI/MFM/RLL support from the kernel and only used Serial ATA and Parallel ATA drivers It worked fine again.
< > ATA/ATAPI/MFM/RLL support (DEPRECATED) --->
<*> Serial ATA and Parallel ATA drivers --->
More info;
http://bugs.gentoo.org/show_bug.cgi?id=319829
May be worth a try ...
Powered by Drupal and Drupal Theme created by vigilianty.