Just updated to udev-200 and figured it was time to read the news item and deal with the Predictable Network Interface Names. I only have one network card and connect with a static ip address. It looked to me like more trouble to keep net.eth0 then to just go with the flow and paddle downstream and not fight it so here is what I did.
First I read the news item :) then found out what my new name would be.
eselect news read udevadm test-builtin net_id /sys/class/net/eth0 2> /dev/null
That returned enp0s25 ...
Next remove the old symlink and create the new one.
cd /etc/init.d/ rm net.eth0 ln -s net.lo net.enp0s25
I removed all the files from /etc/udev/rules.d/
Next set up /etc/conf.d/net for my static address.
# Static config_enp0s25="192.168.1.68/24" routes_enp0s25="default via 192.168.1.254" dns_servers_enp0s25="192.168.1.254 8.8.8.8"
That was it, rebooted, held my breath, and everything seems just fine, YES!
ifconfig enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.68 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::21c:c0ff:fe91:5798 prefixlen 64 scopeid 0x20<link> ether 00:1c:c0:91:57:98 txqueuelen 1000 (Ethernet) RX packets 3604 bytes 1310220 (1.2 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2229 bytes 406258 (396.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 20 memory 0xd3400000-d3420000 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Update
I had to edit /etc/vnstat.conf and change eth0 to enp0s25. I use vnstat with conky.
rm /var/lib/vnstat/* vnstat -u -i enp0s25
INCOMPATIBLE CHANGE: renamed urlLauncher resource to url-launcher
so .Xdefaults becomes;
URxvt.perl-ext-common: default,matcher URxvt.url-launcher: /usr/bin/firefox URxvt.matcher.button: 1
I was updating one of my boxens and ran into Bug 434686. In the bug Martin describes the simple way we as users can apply patches to packages that fail from bug fixes. This post is more than anything a reminder for me on how to do it. epatch_user has been blogged about before, dilfridge talks about it and says "A neat trick for testing patches in Gentoo (source-based distros are great!)".
As Martin explained in the bug and with the patch supplied by Liongene, here is how it works!
# mkdir -p /etc/portage/patches/net-print/cups-filters-1.0.24 # wget -O /etc/portage/patches/net-print/cups-filters-1.0.24/cups-filters-1.0.24-c++11.patch 'https://434686.bugs.gentoo.org/attachment.cgi?id=323788' # emerge -1 net-print/cups-filters
Now that is cool :)
Update Thu Sep 27 06:02:44 EDT 2012
This is now fixed by Bug 399589 . Thanks to all ...
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.*
Powered by Drupal and Drupal Theme created by vigilianty.