Arkisto Luokka » ikkunat «

Perjantai, 11 syyskuu, 2009 | Kirjailija:

Rauha maassa USB

Alle *ei mitään käyttöjärjestelmä, ottaa useita osioita USB-asema ei ole rakettitiedettä, se vain toimii. Minun tapauksessani, USB-aseman on kaksi osiota, koska ensimmäinen osio on käynnistyvä Arch Linux asentaa.

Minulla on Windows työpöydälle kotona – enimmäkseen pelaamiseen – ja monet kollegani käyttää sitä myös. Koska Windows ei tee kovin hyvin ei-Windows osiot Ajattelin voisi luoda FAT32 osio muistitikulle jälkeen käynnistyvä Arch Linuxin osiona. FAT32 on lähes kaikkialla ja on käyttökelpoinen jokainen tavallinen työpöydän käyttöjärjestelmä maailmassa.

Bleh

Valitettavasti se ei toimi suoraan pois bat. Ilmeisesti, Microsoft heidän viisaudessaan päättänyt, että muistitikut on tarkoitus olla yksi (ja vain yksi) väliseinä. Todellisuudessa Windows löytää ensimmäinen osio ja sitten ohittaa kaikki muut, jotka sattuvat olemaan perustaa:

Please Format

Erehtyä, ei, En halua sinun muotoilen Arch Linuxin asennus osio

Temppu saada se toimimaan on huijata Windows luulemaan laite ei tavallinen USB-muistitikku mutta ehkä solid-state-kiintolevyn joka sattuu olemaan kytketty USB. Kyllä minä tiedän, Tämä on vakavasti tyhmä, että Windows käyttäytyy tällä tavalla. Solid-state-kiintolevyn on vain valtavan suuri (ja nopea) muistitikku kun kaikki!

Löysin muutama lähde siitä, miten tehdä tosin minulla oli vielä selvittää joitakin asioita itse. Erityisesti, oppaita Löysin joko ohitetaan joitakin toimia tai eivät toimittaneet riittävästi tietoa mistä ladata ajureissa.

Tämä menettely liittyy muuttamalla manuaalisesti laiteohjaimiaan ja asentaminen “kirjautumattoman” ajurit “ei ole tarkoitettu laitteisto”. Tiedän, joku aikoo rikkoa järjestelmän ja syyttää minua niin sanon nyt, että en ota mitään vastuuta mistään vahingosta voit tehdä Windows-järjestelmän seurauksena tämän. Lue se uudestaan. 😛

Ohjeet

remove the highlighted text

klikkaa kuva suuremmaksi versio

Lataa ja pura kuljettaja, loi alunperin Hitachi, täällä. Avaa cfadisk.inf tiedosto Muistiossa (tai suosikki selkokielisen editor), ja löytää osiossa [cfadisk_device]. Poista osio korostettuna oikealla:

Minimoida (älä sulje) editori ja mene työpöydän kuvakkeet – napsauta hiiren kakkospainikkeella Oma tietokone ja valitse Properties. Valitse Laitteisto-välilehti ja valitse sitten [Device Manager]:

System Properties

Etsi laitteeseen “Levyasemat”, hiiren kakkospainikkeella muistitikulle ja valitse Properties:

Device Manager

Valitse Tiedot-välilehti ja pudotusvalikosta että sivulla, valita “Laitteiston tunnuksia”. Napsauta ensimmäisen rivin laitteiden luettelon tunnukset ja paina Ctrl C kopioidaksesi nimi:

USB Hardware Ids

Älä sulje tämä valintaikkuna, palata muistilehtiö (joka on minimoitu) ja liitä laitetunnusta siitä, mihin edellinen sisältö poistettiin.

Changes pasted into notepad

Tallenna tiedosto Muistiossa ja palata laitteen omaisuutta ikkunan. Klikkaa “Kuljettaja” välilehti ja valitse [Update Kuljettajan…] nappi. Vuonna ikkunat avautuvat, valita “Ei, Eikö tämä ole tnimi”; [Next] -> “Asenna luettelosta tai sRITYISSÄÄNNÖT sijainti (Kehittynyt)”; [Next] -> “Don't haku. Valitsen ohjaimen itse.”; [Next] -> [Have Disk…].

Unsigned Drivers - Click Continue Anyway

Selaa kansioon, johon olet tallentanut muutettu cfadisk.inf tiedosto. Naksahdus [Kunnossa]. Löydät

on Hitachi Microdrive kuljettaja lueteltu. Valitse tämä ja valitse [Next]. Kun varoitus

ilmestyy, naksahdus [YTämä on]. Toinen varoitus ponnahtaa suhteen samanlainen ongelma (nämä ovat “allekirjoittamaton” ja “ei ole tarkoitettu laitteisto” Varoitukset aiemmin mainitsin). Naksahdus [Continue Anyway]:

Tässä vaiheessa Suosittelen sulkemaan kaikki valintaikkunat liittyvät asetukset. Vihdoin, poistaa ja pistä muistitikku USB-porttiin ja sinun pitäisi löytää, että ylimääräinen osiot kiinni ovat saatavilla. Vuonna pahimmassa tapauksessa, saatat vielä osioida levyn mutta vaikea osa on päättynyt. 🙂

Jakaa
Maanantai, April 06th, 2009 | Kirjailija:

I came across 2 bugs on Windows Server 2003 that are also relevant to Windows XP.

Short Circuits

1. Internet Explorer‘s Desktop icon is disabled. When you double-click on the icon, expecting IE to launch, it simply produces an additional shortcut. Subsequent double-clicks again produce more shortcuts. It is possible, as a workaround, to launch IE from the Start Menu.

My first guess was that malware was attempting to make me click on these new shortcuts where the new shortcuts opened further malware. This idea quickly faded though since, if malware were to have the system privileges to produce these symptoms, it wouldn’t need me to provide further privileges.

I eventually found täällä what the actual problem was. Minun tapauksessani, the cause was related to IE6 being outdated. If a Windows registry entry is namedLegacyDisableand is added to specific types of registry keys, it lets Windows know that the key is obsolete and that it has only been left behind for backwards-compatibility. In this case, it disabled the intended primaryverbfunction (the double-click) of the shortcut: launching IE.

To fix, you can either update to the latest version of IE or fix the registry entry directly. If you experience this issue even with the latest version of IE then the registry value is the only way I know how to fix it.

Danger, Will Robinson!

Though this is a trivial registry change, the registry is still a dangerous thing to mess with so, as usual, back up your registry: See KB322756. Nobody gets to blame me for trashing their system. 😛

De-Register me!

Paste the following into a .reg file and execute it; or manually remove theLegacyDisableentries referred-to here:

[HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\NoAddons\]
"LegacyDisable"=-
 
[HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\OpenHomePage]
"LegacyDisable"=-

Fire me up!

2. When trying to browse to any site from within IE, IE remains dormant while Firefox is launched. Firefox then loads the page which was originally requested in IE.

While many might most of the time consider this to be a triumph [insert childish laughter here], the site I wanted to browse to was the Windows Updates site which, unfortunately, does not work when using Firefox. The same would apply to other sites which depend on the web browser supporting ActiveX.

De-Register Me Too!

I eventually found the solution täällä, and it turns out to be similar to the solution for the first bugexcept that it is to remove an entire key. Again, ensure you have a backup of your registry before continuing. Here is the relevant content of the .reg file:

[-HKEY_CLASSES_ROOT\CLSID\{C90250F3-4D7D-4991-9B69-A5C5BC1C2AE6}]

I hope that resolves things for anyone else having similar issues. 🙂

Jakaa
Keskiviikko, March 18th, 2009 | Kirjailija:

[edit] So much for that. It turns out that openssl is able to determine that the key and certificate are already in a single file. Therefore, ei csplitting required (hyvin, I hope somebody reading this at least learned about how nice csplit is). In fact, the whole script might as well be obsoleteblaargh. Well, at least it gives a nice warning about not giving a blank passphrase. 😀

Here’s the new version:

pem2pfxconverts a .pem-formatted file containing a private key and signed certificate into a Windows-compatible .pfx certificate file.

#!/bin/bash
#pem2pfx
#v0.2
#Hankala - brendan@swiftspirit.co.za
# Converts a .pem certificate file to .pfx format
# $1 is the source file
set -e
 
if [ $# = 1 ]; then
  outputfile=`echo $1 | sed 's/.pem$/.pfx/'`
 
  echo "Please specify a password below. Windows refuses to import a .pfx certificate with a blank password."
  openssl pkcs12 -export -out $outputfile -in $1
 
 else
  echo "pem2pfx - converts a .pem formatted private-key and certificate file to an IIS-compatible .pfx file."
  echo "Usage: pem2pfx inputfile.pem"
fi

lisää…

Jakaa
Saturday, February 21st, 2009 | Kirjailija:

The relatively new document types Toimisto 2007 has given some web hosts problems when their clients want to offer documents for download. Most often, the documents are being offered by the web server as text/html which is then rendered as a ton of garbage on the web user’s screen.

The best way to resolve this is to add all the MIME types to the server’s main configuration. IIS7 for Windows already has these MIME types set up correctly by default. IIS6 and IIS5 require the MIME types to be added, as might Apache on older installations. For Apache, there is also a workaround for the individual domain owner to add the mime types via Apache’s .htaccess tiedosto.

IIS 6 MIME type addition (for the Server Administrator)

Before this can be done, ensure that your server is also set to allow direct metabase editing:

  1. Load IIS Manager: Start -> Run, “inetmgr” -> [Kunnossa]
  2. Right click theserverand clickProperties”
  3. Within theInternet Information Servicestab (usually the only tab), ensure that theEnable Direct Metabase Editcheckbox is checked.
  4. Naksahdus [Kunnossa]

Be sure to back up IIS’s configuration (täällä for IIS5) beforehand. I won’t take any responsibility for an admin breaking his server. I have reason to believe this may also work on IIS5 however I have just as much reason to believe that it might just give lots of errors. If an IIS5 / Windows 2000 admin is willing to test this for me after backing up your configuration please let me know of the results.

Copy the following text into a file named msoff07-addmime.vbs and execute it once from the commandline by typing cscript msoff07-addmime.vbs and pressing Enter. If you run it more than once, the MIME types will be added each time and you will have multiple identical entries:

' This script adds the necessary Office 2007 MIME types to an IIS 6 Server.
' To use this script, just double-click or execute it from a command line.
' Running this script multiple times results in multiple entries in the
' IIS MimeMap so you should not run it more than once.
' Modified from http://msdn.microsoft.com/en-us/library/ms752346.aspx
 
Dim MimeMapObj, MimeMapArray, MimeTypesToAddArray, WshShell, oExec
Const ADS_PROPERTY_UPDATE = 2 
 
' Set the MIME types to be added
MimeTypesToAddArray = Array(".docm", "application/vnd.ms-word.document.macroEnabled.12", _
".docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", _
".dotm", "application/vnd.ms-word.template.macroEnabled.12", _
".dotx", "application/vnd.openxmlformats-officedocument.wordprocessingml.template", _
".potm", "application/vnd.ms-powerpoint.template.macroEnabled.12", _
".potx", "application/vnd.openxmlformats-officedocument.presentationml.template", _
".ppam", "application/vnd.ms-powerpoint.addin.macroEnabled.12", _
".ppsm", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12", _
".ppsx", "application/vnd.openxmlformats-officedocument.presentationml.slideshow", _
".pptm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12", _
".pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation", _
".sldm", "application/vnd.ms-powerpoint.slide.macroEnabled.12", _
".sldx", "application/vnd.openxmlformats-officedocument.presentationml.slide", _
".xlam", "application/vnd.ms-excel.addin.macroEnabled.12", _
".xlsb", "application/vnd.ms-excel.sheet.binary.macroEnabled.12", _
".xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12", _
".xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", _
".xltm", "application/vnd.ms-excel.template.macroEnabled.12", _
".xltx", "application/vnd.openxmlformats-officedocument.spreadsheetml.template") 
 
' Get the mimemap object
Set MimeMapObj = GetObject("IIS://LocalHost/MimeMap")
 
' Call AddMimeType for every pair of extension/MIME type
For counter = 0 kohteeseen UBound(MimeTypesToAddArray) Vaihe 2
    AddMimeType MimeTypesToAddArray(counter), MimeTypesToAddArray(counter+1)
Next
 
' Create a Shell object
Set WshShell = CreateObject("WScript.Shell")
 
' Stop and Start the IIS Service
Set oExec = WshShell.Exec("net stop w3svc")
Do While oExec.Status = 0
    WScript.Sleep 100
Loop
 
Set oExec = WshShell.Exec("net start w3svc")
Do While oExec.Status = 0
    WScript.Sleep 100
Loop
 
Set oExec = Nothing
 
' Report status to user
WScript.Echo "Microsoft Office 2007 Document MIME types have been registered."
 
' AddMimeType Sub
Sub AddMimeType (Ext, MType)
 
    ' Get the mappings from the MimeMap property.
    MimeMapArray = MimeMapObj.GetEx("MimeMap") 
 
    ' Add a new mapping.
    i = UBound(MimeMapArray) + 1
    Redim Preserve MimeMapArray(i)
    Set MimeMapArray(i) = CreateObject("MimeMap")
    MimeMapArray(i).Extension = Ext
    MimeMapArray(i).MimeType = MType
    MimeMapObj.PutEx ADS_PROPERTY_UPDATE, "MimeMap", MimeMapArray
    MimeMapObj.SetInfo
 
End Sub

Apache MIME type addition (for the Server Administrator)

Apache stores its MIME types in a file normally located at $installpath/conf/mime.types. See the mod_mime documentation for more on how it works. Arch Linux installs its MIME types at /etc/httpd/conf/mime.types ja Parallels Plesk installs it in /usr/local/psa/admin/conf/mime.types. Your distribution might have it in another place, so find your mime.types file by running locate mime.types.

Add the following lines to your mime.types file:

application/vnd.ms-word.document.macroEnabled.12                          docm
application/vnd.openxmlformats-officedocument.wordprocessingml.document   docx
application/vnd.ms-word.template.macroEnabled.12                          dotm
application/vnd.openxmlformats-officedocument.wordprocessingml.template   dotx
application/vnd.ms-powerpoint.template.macroEnabled.12                    potm
application/vnd.openxmlformats-officedocument.presentationml.template     potx
application/vnd.ms-powerpoint.addin.macroEnabled.12                       ppam
application/vnd.ms-powerpoint.slideshow.macroEnabled.12                   ppsm
application/vnd.openxmlformats-officedocument.presentationml.slideshow    ppsx
application/vnd.ms-powerpoint.presentation.macroEnabled.12                pptm
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
application/vnd.ms-powerpoint.slide.macroEnabled.12                       sldm
application/vnd.openxmlformats-officedocument.presentationml.slide        sldx
application/vnd.ms-excel.addin.macroEnabled.12                            xlam
application/vnd.ms-excel.sheet.binary.macroEnabled.12                     xlsb
application/vnd.ms-excel.sheet.macroEnabled.12                            xlsm
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet         xlsx
application/vnd.ms-excel.template.macroEnabled.12                         xltm
application/vnd.openxmlformats-officedocument.spreadsheetml.template      xltx

Apache MIME type addition (For the domain owner with at least FTP accessusing .htaccess file)

Add the following text to your domain’s .htaccess tiedosto, most commonly in an httpdocs/ directory

AddType application/vnd.ms-word.document.macroEnabled.12 docm
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
AddType application/vnd.ms-word.template.macroEnabled.12 dotm
AddType application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
AddType application/vnd.ms-powerpoint.template.macroEnabled.12 potm
AddType application/vnd.openxmlformats-officedocument.presentationml.template potx
AddType application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
AddType application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm
AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
AddType application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
AddType application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
AddType application/vnd.ms-powerpoint.slide.macroEnabled.12 sldm
AddType application/vnd.openxmlformats-officedocument.presentationml.slide sldx
AddType application/vnd.ms-excel.addin.macroEnabled.12 xlam
AddType application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
AddType application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
AddType application/vnd.ms-excel.template.macroEnabled.12 xltm
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
Jakaa
Keskiviikko, January 28th, 2009 | Kirjailija:

I’m very happy to report that 2 much-needed and related features I’d filed bugs for at KDE’s Bug Tracking System bugzilla were added to KDE 4.2‘s KRDC. KDE 4.2 was just released and is now available within kdemod (aka Chakra)’s repositories. KDE-loving *nix-loving Windows administrators rejoice!

  • Ability to specify a default Username: Previously, before logging in, you’d be prompted for the username. Now the prompt is automatically filled in with a default username.
  • Ability to recognise LDAP logins and remember the password using kwallet as an LDAP Login.
KRDC options added

New KRDC options added

A very big thank you to the developer maintaining KRDC, Urs Wolfer.

Jakaa