blog.rkuebert.de

Privates Blog von Roland Kübert

blog.rkuebert.de

Kategorie: Linux (Seite 1 von 2)

Erinnerung: debian 9 (stretch) boot splash

  • Create foo.png (RGB mode)
  • Copy foo.png to /boot
  • Add to /etc/default/grub:

    GRUB_BACKGROUND="/boot/foo.png"
  • Run # update-grub


    ...
    Found background: /boot/foo.png
    Found background image: /boot/foo.png
    ...
    done

  • Reboot

Erinnerung: Serielle Kommunikation mit einer Virtualbox-VM

Serielle Schnittstelle für den Gast einrichten:

Wenn eine Vebrindung zu Standard-I/O reicht:

socat UNIX-CONNECT:/tmp/vm-tty STDIO,raw,echo=0

Ansonsten:

socat UNIX-CONNECT:/tmp/vm-tty PTY,link=/tmp/com1-pty

Bereits vorliegende Daten z.B. mit cat auf den PTY schicken.

Forticlient routing problem on Fedora 20

Working with the Forticlient VPN Client on Fedora 20 and having the problem that routing does not work? This may be due to a problem in sysconfig.linux.sh:

Replace the following line:

addr=`ifconfig $ifn |grep "inet"|awk ' {print $2 }'| awk -F : '{ print $2}'`

With:

addr=`ifconfig $ifn |grep "inet"|awk ' {print $2 }'`

Et voilà, the routes should be created successfully now. Via Fedoraforum.org.

Adding icons to an icon theme (in XFCE and probably others)

Not for the first time, I recently wondered how to add icons for applications which are missing one on my debian testing. I did this for XFCE, but I guess this is in no way depending on the DE used. Consider for example the case of FCEUX, which is an emulator for Nintendo Entertainment System (NES), Famicom (aka Super NES) and Famicom Disk System (FDS). I can install this fine via apt-get, but I do not get an icon in the menu:

No menu icon for FCEUX in XFCE's start menu

Looking at the .desktop file for FCEUX, which can be found in /usr/share/applications/fceux.desktop, shows that an icon is specified (shown in bold):


[Desktop Entry]
Type=Application
Version=1.0
Name=Fceux
GenericName=NES/Famicom emulator
NoDisplay=false
Comment=Emulate NES ROMs
Exec=/usr/games/fceux
Icon=/usr/share/pixmaps/fceux.png
Terminal=false
MimeType=application/x-nes-rom
Categories=Game;Emulator;
Encoding=UTF-8
Actions=Fullscreen;DefaultConfig;

The simplest way to resolve this is to add the icon to the icon set you use, update the icon set’s cache and just specify it with a relative path without file ending. So change the path in the .desktop file to be Icon=fceux, and add the file, maybe converted to the appropriate sizes, to your icon set. I use the hicolor icon theme, which is located in /usr/share/icons/hicolor, so that means I’ll do something like this:


sudo convert -resize 16x16 /usr/share/pixmaps/fceux.png /usr/share/icons/hicolor/16x16/apps/fceux.png

You can do this for other sizes as well, once you are done, run sudo gtk-update-icon-cache /usr/share/icons/hicolor to update the icon cache and you’re done:

Menu icon for FCEUX in XFCE's start menu

There may be deeper issues here, for example why the image is not shown when given as an absolute path to /usr/share/pixmaps/fceux.png, but anyway, this helps and can be used even if no image file comes with the application and you have to get one yourself or if you do not get a package like when installing a recent eclipse etc.

Choppy audio in Flash player

Choppy audio in Flash player when watching, e.g. your favourite surf event?

  • Get bsdfiff: # apt-get install bsdiff
  • Change to flash plugin lib dir: # cd /usr/lib/flashplugin-nonfree
  • Get the patch: # wget http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=15;filename=memcpy-10.3.162.29.bsdiff;att=2;bug=620901
  • Patch the binary: # bspatch libflashplayer.so libflashplayer.so2 memcpy-10.3.162.29.bsdiff
  • Save original lib: # mv libflashplayer.so libflashplayer.so.orig
  • Replace patched lib: # mv libflashplayer.so.2 libflashplayer.so
  • Restart your browser and enjoy
  • Source: aptosid.com

nagiosgraph and SELinux

Problem seeing your nagiosgraph log files from the CGI? Do this:

# chcon –reference /var/log/httpd/access_log /var/log/nagiosgraph.log

SYSLINUX 3.85 2010-02-20 EBIOS Load error – Boot error

Somehow, the portable CD-ROM we always had here at work has disappeared so I had to use a USB stick to try to re-install one of our machines. Downloaded the really great UNetbootin, installed Debian, went over to the server room, enabled USB booting and what did I get?

SYSLINUX 3.85 2010-02-20 EBIOS Load error – Boot error

Pressed enter – nothing. Okay, back to the office, searched a bit around, found out I should have maybe tried to boot with qemu: qemu -hda /dev/sdb1, works like a charm, weird. More searching but nothing conclusive, so I formatted the USB stick to FAT32, installed Debian again, went over, plugged it in – nothing new. Crap, especially as I am pretty sure that I booted another machine with that stick before. So back again, plugged it into my old laptop – same error. I finally changed to another USB stick (different make and model) which I luckily had with me (after reading this thread) and, tada, it finally worked. So: if you get the same error, try first with another USB stick before reformatting etc.

Seite 1 von 2

Präsentiert von WordPress & Theme erstellt von Anders Norén