Skip to main content

Posts

Adding Editors to GQView

GQView is an image browser that can easily be configured to use external applicatin to extend its functionality. In "Edit > Preferences > Editors" there are ten entries that can be used to identify and enter the command strings. GQView provides a few macros to assist you: Macro Description %f Inserts list of selected files, may occur only once. %p Command is executed once for each selected file, may occur multiple times. %v Display result of the command in an output window, must occur as the first two characters. %V Displays output window when multiple files are selected. Make Mirror Images By default, Editors 9 and 10 allow you to rotate jpeg images clockwise or counterclockwise using the jpegtran application, part of the jpeg tools . It would be nice to also flip the images to a mirror image. Add to, for example, Editor 8: Mirror Image %vif jpegtran -flip horizontal -copy all -outfile %p_tmp %p; then mv %p_tmp %p;else rm %p_tmp;fi A...

Killing a Windows Virus From Linux Using F-Prot

While I enjoy using Linux every day, most of my family continues to use Windows (mostly WinXP) and relies on me for tech support. I have done the usual things such as installing Firefox and MalwareBytes , but they still get some infections. That usually involves running a scanner over and over and some virii evade detection. F-Prot makes commercial virus scanners and has a free home version available for Linux . Download the tar.bz2 file and extract it to /usr/local/share . Then, from the /usr/local/share/f-prot directory, run: # ./install-f-prot.pl and accept the defaults. The /usr/bin/fpscan link to the program will be created and teh virus database will be updated. To scan a Windows drive, remove it and attach it to your Linux computer using a USB adapter, then mount the drive rw (read,write) at, for our example, /media/windows . The run the scanner with: # fpscan --disinfect /media/windows As it progresses, any corrupted or infected files are listed. Any that...

Plymouth

Plymouth is a new bootsplash application that replaces splashy for many distros like Fedora and Mandriva. There's not a lot of documentation on how to use it. The themes reside in /usr/share/plymouth/themes/ . You set the default theme with: # plymouth-set-default-plugin themename or # plymouth-set-default-theme themename Then execute: # /usr/libexec/plymouth/ plymouth-update-initrd to make it occur at boot. Plymouth works by using a series of still images to create animation for the display during the init process, so it loads along with the kernel. The scripting uses its own language which is said by one of the developers to be "not hard" to figure out, meaning that we mere mortals may likely have only a difficult time creating our own Plymouth themes. REFERENCES Plymouth - ArchWIKI Plymouth - Ubuntu Plymouth themes: Fix, install, edit and create- Mint PlymouthTheming Guide

Mandriva 2010.0 on the HP Mini 1120NR

I finally got tired of the frustration of trying to learn Ubuntu on the Mini and also annoyed that HP failed to update their version of it so that I could use my EVDO modem (which quit working after their most recent update). It's not that Ubuntu is bad, I'm just used to doing things on Mandriva/Fedora/RedHat systems. What prompted me to make the change was the realization that I was not using the Mini because I disliked the default OS. And it was slow, slow, slow. The Mini I have is the 1120NR with the following hardware: $ lspci 00:00.0 Host bridge: Intel Corporation Mobile 945GME Express Memory Controller Hub (rev 03) 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02...

Icons for Your system

One annoyance with gaming in Linux is the lack of an icon for MS Windows apps that run under WINE or Cedega. The Icon Archive is a resource for some game icons as well as icons images for other things. Mageia (and other distros) provides the png2ico application, useful if you want to convert a .png image to .ico format for use as favicon.ico for your website. Mageia (and other distros) provides the icoutils package which contains two utilities:  icotool will convert and create win32 icon and cursor files and  wrestool will extract icon resources from MS Windows binaries. The man page for wrestool outlines the process for extracting icons from win32 binaries. WineIcons "... is a Win32 program for Wine, that allows you to extract icons form ICO, EXE and DLL files and save them in PNG format. It is useful for KDE-like icons creation. WineIcons can be easily integrated into your Linux system." If you need a free win32 app to extract icon files, @icon sushi is ...

Fixing a Buggy ACPI BIOS Updated for Windows 8 and Linux Kernel 3.x

In the BIOS , there is a table that configures/determines a number of hardware values for ACPI and your system to use. One of the features of ACPI is that the values and methods used can be differentiated at boot time depending on what OS you run. Each version of MS Windows has a unique identifier and while Linux can identify as "Linux" , the Linux ACPI gurus have decided that Linux will always identify itself as "Windows NT" . Even if you force Linux to identify itself as Linux, the Linux ACPI code still lies to the BIOS , except for the computers specifically listed in drivers/acpi/blacklist . If you are running very new hardware intended for Windows Vista or Windows 8, you might get better performance on ACPI -related issues if you identify, or "spoof", your Linux OS as Vista or Windows 8 )or a later version of Windows). This is done by adding the boot-time kernel parameter of acpi_osi="Windows 2006" or "Windows 2012" resp...

Spoofing the OS to the BIOS

In the past, I used a Tyan MP2466 dual-processor motherboard and noticed something odd about it over the years. I had instability problems where it locks up so that only cycling the power switch will restore it to function. It seemed related to video and USB devices and IRQ's, but maybe not. I've also dual-booted to WinXP to play some of my games that won't run in Linux and noticed that I never had the same instability problems with WinXP on the very same hardware. All that seems over now. A kernel command line option, acpi_os= , will spoof the Operating System to the BIOS. The available choices are found in uteval.c in the kernel source. If using a Microsoft OS, any value prior to Windows7 returns the value for Windows7. Here is the current list : "Microsoft Windows" will spoof for Windows98 "Windows 2000", /* Windows 2000 */ "Windows 2001", /* Windows XP */ "Windows 2001 SP1", /* Windows XP SP1 */ ...