setting volume at boot with amixer

Posted on May 10th, 2007

On my IBM Thinkpad X31 I had the little annoying problem that every time I rebooted my volume was completely muted. It’s no real problem because setting it with alsamixer is just a matter of seconds but it’s just really annoying…

The solution is called amixer and also part of the alsa utilities and should be installed on your system. It’s an commandline tool to set the volume and unmute the different mixers.
After reading through the manpage I figered the following to be what I wanted

amixer set Master 100% unmute && amixer set PCM 70% unmute

Just add it to your /etc/conf.d/local.start so it is applied on bootup

echo "amixer set Master 100% unmute && amixer set PCM 70% unmute" >> /etc/conf.d/local.start

and your volume settings will be set now at boot.

Hf

btw: I don’t know why on my workstation the volume is saved on reboot and on my Thinkpad X31 its not but as long as setting volume at bootup works now with amixer I won’t complain ;)

Flash on AMD64 without 32bit binary with nspluginwrapper

Posted on May 8th, 2007
Some time ago I read about nspluginwrapper on gentoo-portage and now finally tried if it works. With this little programm it should be able to wrap 32bit plugins with 64bit browsers, so you don’t need to chroot oder install 32bit binarys. It’ some kind of ndiswrapper but for all kind of browser plugins. At the moment it supports:

  • Acrobat Reader (5.0.9, 7.0.1)
  • DejaVu Libre (3.5.14)
  • Flash Player (7.0, 9.0)
  • Linux JPEG 2000 (0.0.2)
  • Mplayerplug-in (2.80, 3.25)
  • Real Player (10.0.5)
  • ICA Citrix Client
  • Most important for me is the flash plugin, especially for music in youtube or on sites like mixupload. It’s also possible to watch/hear that stuff without flash, I know that, but with flash it’s kind of faster and if I like it I can still download it the way I used to before having flash on 64 bit ;)

    The installation is really easy and straight, so let’s go:

    First you need to emerge nspluginwrapper.

    emerge -av nspluginwrapper

    If you are running a stable gentoo system you will need put it in package.keywords as it’s still in testing (it’s running really fine here so try it)

    echo net-www/nspluginwrapper >> /etc/portage/package.keywords

    Now as an example we will try installing the flash plugin with

    emerge -av netscape-flash

    and tell nspluginwrapper to scan and install the existing plugins with

    nspluginwrapper -v -a -i

    Now there should be something like that in your about:plugins screen and flash should work fine. For example a youtube video.

    nspluginwrapper on amd64nspluginwrapper with youtube video

    Pimp my server (bashrc, screenrc, nanorc tuning)

    Posted on April 26th, 2007

    by jesse

    In den letzten Tagen habe ich mich mal unserer Shell Umgebung auf der wootstube gewidmet. Da ich super viel in der Shell arbeite ist es für mich wichtig, mich darin wohlzufühlen - dieses Ziel habe ich vorerst auch erreicht. Vielleicht findet der Eine oder Andere ein paar nützliche Anregungen, deshalb dokumentier ich das Ganze hiermit.

    Fangen wir mit dem Login an:

    <strong>/etc/ssh/sshd_config</strong>
    Banner /etc/ssh/sshd_banner

    Damit erreiche ich, dass vor der eigentlichen Anmeldung bereits klar ist, auf welchem Territorium man sich befindet. Unser sshd_banner ist das geek\o/sphere Logo (kann man sich hier erstellen), welches offiziell mit dem neuen Design (in Kürze, versprochen) online gehen wird.

    sshd_banner login

    Nach einer erfolgreichen Authentifizerung mittels Pubkey findet man sich dann in der Bash wieder. Dort habe ich den Prompt angepasst und mir einige praktische “Shortcuts”, so genannte Aliase, angelegt. Die entsprechenden Dependencies sind im Header vermerkt. Kompliziert war die PS1 Line, denn wenn nicht jedes nicht-druckbare Zeichen genaustens escaped wurde bekommt man Probleme mit dem Linewrap. Um den Fehler zu finden habe ich deshalb die Farben in Variablen ausgelagert.

    Im nächsten Schritt habe ich mich der Screenrc gewidmet. Da wir auf der Shell grundsätzlich mit Screen arbeiten habe ich das Design an die bashrc angepasst. In der PS1 ist die Uhrzeit vermerkt, also brauchte ich nur noch Tag und Monat. Dazu noch die load, falls mal was im Hintergrund schief läuft, und das wars auch schon so ziemlich. Abweichend zu einer Standardkonfiguration ist noch das STRG+A W Binding, welches eine Übersicht über alle Subscreens liefert. Die anderen Standard Bindings kennt ihr hoffentlich, für die, die sich gerade erst mit Screen anfreunden hier die wichtigsten:

    STRG+A C — neues Subscreen
    STRG+A SPACE — in nächstes Subscreen wechseln
    STRG+A ZAHL — in bestimmtes Subscreen wechseln
    STRG+A D — Screen verlassen (detach)
    STRG+A SHIFT+A — Subscreen umbenennen

    Weil ich auch viel mit nano arbeite habe ich mich zuguterletzt der nanorc gewidmet. Dort habe ich Syntax Highlighting eingebaut, ein automatisches Backup aller bearbeiteten Dateien und ein paar andere Sachen konfiguriert. Die nötigen Dateien dazu findet Ihr im blog di Gas. Die *.nanorc Dateien gehören dann in /usr/share/nano. Weil man ja nicht perfekt ist und einem doch ab und zu mal Fehler unterlaufen wird zusätzlich ein Backup von jeder bearbeiten Datei in nanobackup im Homeverzeichnis des Users abgelegt.

    Demnächst bekommt irssi auch noch ein schickes, passendes Theme. Aber fürs Erste bin ich eigentlich ganz glücklich. Ich hoffe Ihr habt ein wenig mitnehmen können. Haut rein!

    Edit 01.12.2007: Links fixed!

    MSN Messenger dauerhaft entfernen

    Posted on April 11th, 2007

    by jesse

    Ein kleiner Tipp am Rande:

    Ich habe beruflich viel mit Wintendo Maschinen zu tun und ständig taucht der nervige schwule MSN Messenger im Systray auf. Entfernen des Autostart Eintrags in der Registry ist leider auch keine dauerhafte Lösung, denn bei einem Windows/Outlook Update hat man den Spass wieder im Speicher.

    Damit ist jetzt Schluss, denn so kann man den MSN Messenger deinstallieren:

    Klick auf Start -> Ausführen und gebe folgendes ein:

    RunDll32 advpack.dll,LaunchINFSection %windir%\INF\msmsgs.inf,BLC.Remove

    Nach dem nächsten Neustart ist das Problem gegessen.
    (via)

    link conversion in urxvt / rxvt-unicode | clickable links

    Posted on April 3rd, 2007

    This article is deprecated. You can find an updated version here.

    Using urxvt / rxvt-unicode very often as my prefered terminal emulator I thought it would be nice to have clickable links. Reading through the manpage and searching in google I found out about the built in urxvt’s perl extensions and that this was possible.

    Just add the following to your .Xdefaults:

    URxvt.perl-ext-common: default,matcher
    URxvt.urlLauncher: firefox
    URxvt.matcher.button: 2
    URxvt.matcher.pattern.1: \\bwww\\.[\\w-]\\.[\\w./?&@#-]*[\\w/-]

    Now you just need to replace firefox with your favorite browsers startup script and choose which mousebutton should be handled. Button 2 is the middle mouse button and clicking a link with it now opens it directly in firefox without copy and paste or other timewasting things ;)

    The great advantage of this solution is that you don’t depend on things like the openurl.pl script for irssi which doesn’t work using irssi in a screen remotely as I (and many other) do.

    links in urxvt


    design: makequick.com | modificashuns and bugfixes by jesse
    bottom
    Error fetching feed from http://jessor.soup.io/rss (cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received)