Posts Tagged ‘Linux’

Testing GNU/Linux live cds on HP 250 G6 2SX60EA

febrero 18, 2019

These are some live cds that I tested in an HP 250 G6 2SX60EA laptop and their simple results:

  • Rescatux 0.51b3: Show «Progress linux» prompt. This CLI mode does not let me log in with Debian Live default user and password.
  • Rescatux 0.62b1 (This is a private release, not a public one): Show «Progress linux» prompt. This CLI mode does not let me log in with Debian Live default user and password.
  • debian-live-9.7.0-amd64-gnome.iso: Show «Progress linux» prompt. This CLI mode does not let me log in with Debian Live default user and password.
  • debian-live-testing-amd64-gnome.iso: Graphical desktop but without wifi.
  • ubuntu-18.10-desktop-amd64.iso: Graphical desktop and wifi.
  • debian-live-testing-amd64-gnome+nonfree.iso: Graphical desktop and wifi.

The next batch of tests were done using Super Grub2 Disk 2.02s10 and trying to boot into all the OSes available on the system as it comes from the factory.

  • Boots into FreeDOS ok when booted in BIOS mode.
  • It is not able to boot HPDOCS (that’s normal because it is started from a syslinux.cfg file).

Xorg fix for Grunding Cinaro

febrero 11, 2019

I have a Grunding Cinaro. It is a quite old television that happens to have an HDMI input. I think it’s a 576p or 720p HDMI input.

The specific Grunding model is: GRUNDING Cinaro 32 LXW 82-6612 REF .

Anyways the specific fix is not HDMI but for its VGA input.

This television has a PC source input which enables you to connect an VGA cable plus a 3.5 mm audio jack into it.

 

I have an small PC which I connect thanks to VGA to it.

The 1024×768 mode seem to work fine.

 

The 1280×720 mode at 60  Hz which would match some high quality output does not work ok.

The screen happens to moved to the right or the left and you miss part of your PC desktop on your television output.

 

As far as I concluded this comes from a wrong EDID announcement.

It seems that when a PC is connected to a device which offers a VGA port then the device announces the different modes with its sizes, resolutions, positions, etc.

And this announcement uses the EDID standard.

 

Well, let’s check what wikipedia says about EDID.

Extended Display Identification Data (EDID) is a metadata format for display devices to describe their capabilities to a video source (e.g. graphics card or set-top box). The data format is defined by a standard published by the Video Electronics Standards Association (VESA).

The EDID data structure includes manufacturer name and serial number, product type, phosphor or filter type, timings supported by the display, display size, luminance data and (for digital displays only) pixel mapping data.

 

So, now, you know.

How do you fix your output to use Grunding Cinaro to its full potential from its VGA port?

 

Here there is an script that it is run once I log in to my desktop.

#!/bin/bash                                                                                                                                                                                                                                                                             
# 60 Hz                                                                                                                                                                                                                                                                                    
xrandr --newmode "1280x720_60.00" 74.48  1280 1336 1472 1664  720 721 724 746  -HSync +Vsync
xrandr --addmode VGA-1 1280x720_60.00
xrandr --output VGA-1 --mode 1280x720_60.00
# 75 Hz
#xrandr --newmode "1280x720_75.00" 95.65  1280 1352 1488 1696  720 721 724 752  -HSync +Vsync
#xrandr --addmode VGA-1 1280x720_75.00
#xrandr --output VGA-1 --mode 1280x720_75.00

 

As you might guess 1280×720 at 75Hz does not work so well. 1280×720 at 60Hz is fine for me.

 

Enjoy!

Kernel boot parametres option for Super Grub2 Disk mockup

noviembre 28, 2014

Yet another mockup :).

So once you have selected which Kernel you want to from you can choose between different set of Kernel boot parametres:

  • Knoppix cheatcodes. Just in case you want to boot your installed Knoppix with those options.

    super grub2 disk boot parametres mockup knoppix

    super grub2 disk boot parametres mockup based on knoppix boot cheatcodes

  • Blacklist modules. This is very useful when trying to debug which module is making your system to crash or reboot at boot time.

    SG2D mockup - Blacklist modules

    SG2D mockup – Blacklist modules

  • Systemd target. Choose an specific systemd ‘runlevel’.

    SG2D mockup Systemd targets

    SG2D mockup Systemd targets

  • Miscelanea. Any other Kernel boot parametre.

    SG2D Kernel boot parametres mockup miscelanea

    SG2D Kernel boot parametres mockup miscelanea

  • Choose root partition. Just in case you want to try to boot your Debian GNU/Linux but trying to use Ubuntu kernel. Usually it might not work 100%, but it’s worth a try in some special circumstances.

    SG2D Boot parametre Mockup - Choose root partition

    SG2D Boot parametre Mockup – Choose root partition

I’m not interested in implementing it because I think not so many few people would use when trying to boot into their distro from Super Grub2 Disk. Maybe the blacklist option is the most useful one.

But it’s something I would maintain if I ever implemented it. Not like the Kernel box idea.

Do you use often use an specific boot parametre? Why?

Rescatux idea: Recovering Windows registry

agosto 15, 2013

I should add this idea to Rescatux ideas at Rescatux wiki but anyways I’m writing it here. What I’m going to describe is recovering or editing Windows registry from Gnu/Linux manually. Rescatux would be improved hopefully in 0.32 version to do this from a GUI and as automatically as possible.

Recover Windows Registry from Gnu/Linux

If you want to recover Windows registry from a former restore point you can just copy the registry file from the restore point folder to the current registry files. That’s as easy as that.

Restore point path is like this:

/media/windows/System Volume Information/_restore{xxx}/RPxxx/snapeshot/

and its files are:

_REGISTRY_USER_.DEFAULT
_REGISTRY_MACHINE_SECURITY
_REGISTRY_MACHINE_SOFTWARE
_REGISTRY_MACHINE_SYSTEM
_REGISTRY_MACHINE_SAM

which need to be copied and renamed to:

/media/windows/WINDOWS/system32/config/

_REGISTRY_USER_.DEFAULT => default
_REGISTRY_MACHINE_SECURITY => security
_REGISTRY_MACHINE_SOFTWARE => software
_REGISTRY_MACHINE_SYSTEM => system
_REGISTRY_MACHINE_SAM => sam

And you are advised to force a NTFS fix and reboot Windows twice thanks to:

sudo ntfsfix /dev/<device-name>

.
Don’t think it’s needed anymore with newer NTFS mount implementation in GNU/Linux but I’ll check that anyways.

There are also some other paths:

\windows\system32\repair
/Windows/System32/config/RegBack

I have found this information in Ubuntu forums: HowTo: Fix Corrupted Windows Registry from Ubuntu partition . There’s even kind of proposed python script in the same thread.

I only need to make sure I backup the original registry files so that they can recovered them too if needed. Also, Rescatux should be able to restore these Rescatux backups.

The other idea is making a Windows registry editor in Gnu/Linux.

There is already chntpw which I use already in Rescatux for blanking Windows passwords. And that’s what it’s also advised in the same thread: Editing the registry .

So hacking chntpw I might be able to show in a GUI all the registry keys and let the user edit or remove them. Maybe running regedit.exe from WINE would also work but I’m not confident on this one.

And, even if making a GUI Windows registry editor for Gnu/Linux might be difficult (for chntpw hacking and GUI development itself) just detecting Windows registry viruses and fixing the Registry values to default ones should be straight-forward !!!

Mergeide

When you move a Windows machine to a Virtual system sometimes you need it to support IDE.

Just check: Proxmox Wiki – Migration of servers to Proxmox VE – Innaccessible boot device .

It’s a matter of adding a REG file that Microsoft advises to use. That’s just editing the registry and can be done with chntpw.

That would avoid headaches if you haven’t run it in the origin virtual or physical machine just before moving to the new virtual machine.

Possible new Rescatux options for Rescatux 0.32:

  • Recover Windows registry from Windows restore points
  • GUI for editing Windows registry
  • Windows Registry cleanup for some known Virus
  • Add IDE support to Windows system (Ideal for Virtual systems)

Additional notes

It seems that Reglookup is handy when serarching for Windows Registry registry keys and its included in Parted Magic.

Integrated Intel card in Mac Book Pro 6,2 in Linux Kernel 3.10

julio 27, 2013

As I already explained I finally managed to make work my Integrated intel card in my Debian when using kernel 3.2. I needed to patch the kernel and use some boot parametres to make it work.

But, as expected, Linux Kernel 3.10 without any special patch was not working. But it had to. Why? Because I had asked Seth Forsee about this.

It was not until today that I found the answer in an gentoo forum post: Intel graphics not working on Macbook Pro in EFI mode .

In my old setup I had the kernel parametres:

pcie_aspm=force video=efifb i915.lvds_channel=2
i915.modeset=1 i915.lvds_use_ssc=0
drm.debug=0x14 log_buf_len=16M

among other options which I haven’t modified. I had to modify i915.lvds_channel to be i915.lvds_channel_mode which seems it’s the final name for that option.

So now the default kernel parametres are:

pcie_aspm=force video=efifb i915.lvds_channel_mode=2
i915.modeset=1 i915.lvds_use_ssc=0
drm.debug=0x14 log_buf_len=16M

.

Apart from having to tap with three-finger to get the right-click instead of only two-finger tap everything seems to be ok.

Como arreglé red (nm-applet) en Kde al actualizar Debian Unstable Octubre 2011

octubre 27, 2011

La última actualización que hice de Debian Unstable sobre el 20 de Octubre de 2011 me dejo medio inservible el nm-applet.

Podía conectarme a las redes inalambricas que ya conocía pero no podía conectarme a redes nuevas ni añadir tampoco.

Tenía un error de permisos. Si ejecutaba manualmente nm-applet obtenía errores del tipo:

Failed to add/activate connection: (32) Insufficient privileges

Para arreglarlo hay que instalar:

apt-get install polkit-kde-1

Por lo visto la autorización paso de «Autorizar mediante sudo» a «Autorizar mediante root». Si alguien sabe como revertir esto último que lo comente. Gracias.

Volcar stream radio a wav

octubre 6, 2010

Hace poco he tenido que volcar un stream de tipo wma emitido por mms.

El vlc no sé porqué no me lo abria así que intenté volcarlo con mplayer, más concretamente con su comando mencoder en mp3.

También me daba un error acerca de que el stream de video era obligatorio. ¿Obligatorio siendo una radio?

Después de batallar un poco con las opciones del mencoder me rendi a hacer una busqueda más generica en Internet de cómo volcar una radio y, bueno, ya que no se podia a mp3 a wav.

En: How to convert audio files de linuxreviews.org encontré el comando que necesitaba.

mplayer -quiet -vo null -vc dummy -ao pcm:waveheader:file="volcado.wav" \
"mms://ruta.a.servidor:2234/ruta/a/archivo.wma"

Aqui lo apunto para cuando pueda volver a necesitarlo en el futuro.