Arhiva pentru categoria » ferestre «

Friday, September 11th, 2009 | Autor:

Peace in the land of USB

Under a *nix operating system, having multiple partitions on a USB drive isn’t rocket science, it just works. În cazul meu, my USB drive has two partitions because the first partition is a bootable Arch Linux installer.

I have ferestre on a desktop at homemostly for gamingand many of my colleagues use it too. Since Windows doesn’t do very well with non-Windows partitions I figured I could create a FAT32 partition on the memory stick after the bootable Arch Linux partition. FAT32 is almost ubiquitous and is usable on every common desktop operating system in the world.


Unfortunately it doesn’t work straight off the bat. Aparent, Microsoft in their infinite wisdom decided that memory sticks are supposed to have one (and only one) partition. In reality Windows finds the first partition and then ignores any others that happen to be set up:

Please Format

Err, no, I do not want you to format my Arch Linux installation partition

The trick to getting it working is to fool Windows into thinking the device is nu a regular USB memory stick but perhaps a solid-state hard disk which happens to be connected via USB. Yes I know, this is seriously stupid that Windows behaves this way. A solid-state hard disk is just a whopping big (and fast) memory stick after all!

I found a few sources on how to do this however I still had to figure out some things on my own. Specifically, the guides I found either skipped some steps or didn’t provide enough information on where to download the driver package.

This procedure involves manually changing hardware drivers and installingnon-signeddriversnot intended for your hardware”. I know someone is going to break their system and blame me so I say now that I take no responsibility for any damage you may do to your Windows system as a result of this. Read that again. 😛


remove the highlighted text

click for larger version

Download and unzip the driver, originally created by Hitachi, aici. Open the cfadisk.inf file in notepad (or your favourite plaintext editor), and find the section labeled [cfadisk_device]. Remove the section highlighted on the right:

Minimize (don’t close) the editor and go to your desktop iconsright-click on My Computer and select Properties. Select the hardware tab and then select [Device Manager]:

System Properties

Find the device underDisk drives”, right-click your memory stick and select Properties:

Device Manager

Click the Details tab and in the dropdown box on that page, selectHardware Ids”. Click the first line in the list of Hardware IDs and press Ctrl+C to copy the name:

USB Hardware Ids

Don’t close this dialog, go back to notepad (which was minimised) and paste the hardware ID into where the previous content was removed.

Changes pasted into notepad

Save the file in notepad and go back to the device’s property dialog window. Click theDrivertab and click the [Update Driver…] button. In the windows that pop up, selectNo, not this time”; [Next] -> “Install from a list or a specific location (Advanced)”; [Next] -> “Don’t search. I will choose the driver to install.”; [Next] -> [Have Disk…].

Unsigned Drivers - Click Continue Anyway

Browse to the folder where you have saved the modified cfadisk.inf file. Clic [O.K]. You will find

there is a Hitachi Microdrive driver listed. Select this and click [Next]. When the warning

appears, click [Yes]. Another warning will pop up regarding a similar issue (these are theunsigned” și “not intended for your hardwarewarnings I mentioned earlier). Clic [Continue Anyway]:

At this point I recommend closing all the dialog boxes related to the setup. Finally, remove and re-insert the memory stick into your USB port and you should find that the extra partitions on the stick are accessible. In the worst-case scenario, you might still need to partition the disk however the hard part is over. 🙂

Monday, April 06th, 2009 | Autor:

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 aici what the actual problem was. În cazul meu, 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:


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 aici, 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:


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

Miercuri, March 18th, 2009 | Autor:

[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. Prin urmare, no csplitting required (bine, 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.

#Complicat -
# Converts a .pem certificate file to .pfx format
# $1 is the source file
set -e
if [ $# = 1 ]; then
  outputfile=`echo $1 | dar '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
  echo "pem2pfx - convertește un fișier .pem formatat privat-cheie și certificat pentru un fișier .pfx compatibil cu IIS."
  echo "Usage: pem2pfx inputfile.pem"

mai mult…

sâmbătă, 21 februarie, 2009 | Autor:

Relativ noi tipuri de documente Birou 2007 a dat unele probleme gazde web atunci când clienții lor doresc să ofere documente pentru descărcare. Cel mai adesea, documentele sunt oferite de către serverul web ca “text / html” care este apoi redat ca o tona de gunoi pe ecranul utilizatorului web.

Cel mai bun mod de a rezolva acest lucru este de a adăuga toate MIMA tipuri de configurare principal al serverului. IIS7 pentru Windows are deja aceste tipuri MIME configurat corect, în mod implicit. IIS6 și IIS5 necesită tipurile MIME pentru a fi adăugate, după cum s-ar putea Apache pe instalațiile mai vechi. pentru Apache, De asemenea, există o soluție pentru proprietarul domeniului individuale pentru a adăuga tipurile MIME, prin intermediul lui Apache .htaccess fișier.

IIS 6 Tipul MIME plus (pentru administratorul serverului)

Înainte de acest lucru se poate face, asigură că serverul este, de asemenea, setat pentru a permite editarea metabaza directă:

  1. Sarcină IIS manager de: Start -> RONU, “inetmgr” -> [O.K]
  2. Dați clic dreapta pe “Server” și faceți clic “Properties”
  3. În cadrul “Internet Information Services” fila (de obicei, singura fila), să se asigure că “Encapabil Direct metabazei Editare” bifat caseta de selectare.
  4. Clic [O.K]

Asigurați-vă că back-up de configurare IIS (aici pentru IIS5) dinainte. Nu va lua nici o responsabilitate pentru un administrator de rupere serverul lui. Am motive să cred asta Mai De asemenea, lucra la IIS5 cu toate acestea am la fel de mult motive să credem că ar putea da doar o mulțime de erori. În cazul în care un IIS5 / ferestre 2000 admin este dispus să testeze acest lucru pentru mine după copierea de rezervă configurația vă rog să-mi cunosc rezultatele.

Copiați următorul text într-un fișier numit msoff07-addmime.vbs și executați-l o singura data din commandline prin tastarea CScript msoff07-addmime.vbs și apăsând pe Enter. Dacă executați mai mult decât o dată, tipurile MIME vor fi adăugate de fiecare dată și veți avea mai multe intrări identice:

"Acest script adaugă Oficiul necesar 2007 tipuri MIME la un IIS 6 Server.
"Pentru a folosi acest script, doar dublu-clic sau executa dintr-o linie de comandă.
"Rularea acest script de mai multe ori rezultate în mai multe intrări în
"IIS MimeMap astfel încât să nu ar trebui să ruleze mai mult de o dată.
"Modificat de la adresa
întunecos MimeMapObj, MimeMapArray, MimeTypesToAddArray, WshShell, oExec
"Setarea tipurilor MIME pentru a fi adăugate
MimeTypesToAddArray = mulțime(".docm", "application/", _
".docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", _
".dotm", "application/", _
".dotx", "application/vnd.openxmlformats-officedocument.wordprocessingml.template", _
".potm", "application/", _
".potx", "application/vnd.openxmlformats-officedocument.presentationml.template", _
".ppam", "application/", _
".ppsm", "application/", _
".ppsx", "application/vnd.openxmlformats-officedocument.presentationml.slideshow", _
".pptm", "application/", _
".pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation", _
".sldm", "application/", _
".sldx", "application/vnd.openxmlformats-officedocument.presentationml.slide", _
".xlam", "application/", _
".xlsb", "application/", _
".xlsm", "application/", _
".xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", _
".xltm", "application/", _
".xltx", "application/vnd.openxmlformats-officedocument.spreadsheetml.template") 
"Obține obiectul mimemap
A stabilit MimeMapObj = GetObject("IIS://Localhost / MimeMap")
"Call AddMimeType pentru fiecare pereche de extensie / tip MIME
Pentru tejghea = 0 pentru UBound(MimeTypesToAddArray) Pas 2
    AddMimeType MimeTypesToAddArray(tejghea), MimeTypesToAddArray(tejghea+1)
Următor →
"Crearea unui obiect Shell
A stabilit WshShell = CREATEOBJECT("WScript.Shell")
"Oprește-te și porni serviciul IIS
A stabilit oExec = WshShell.Exec("net stop w3svc")
Do In timp ce oExec.stare = 0
    WScript.Dormi 100
A stabilit oExec = WshShell.Exec("net start w3svc")
Do In timp ce oExec.stare = 0
    WScript.Dormi 100
A stabilit oExec = Nimic
"Raport de stare pentru utilizator
WScript.Ecou "Microsoft Office 2007 Tipurile de documente MIME au fost înregistrate."
"AddMimeType Sub
Sub AddMimeType (Ext, mTYPE)
    "Ia mapări de proprietate MimeMap.
    MimeMapArray = MimeMapObj.GetEx("MimeMap") 
    "Adăugați o mapare nouă.
    eu = UBound(MimeMapArray) + 1
    Redim Păstrați MimeMapArray(eu)
    A stabilit MimeMapArray(eu) = CREATEOBJECT("MimeMap")
    MimeMapArray(eu).Extensie = Ext
    MimeMapArray(eu).Mime = mTYPE
    MimeMapObj.PutEx ADS_PROPERTY_UPDATE, "MimeMap", MimeMapArray
Sfârşit Sub

Tipul MIME Apache plus (pentru administratorul serverului)

Apache stochează sale tipuri MIME într-un fișier localizat în mod normal, la $installpath / conf / mime.types. Vezi mod_mime documentație pentru mai multe despre modul în care funcționează. Arch Linux instalează sale tipuri MIME /etc / httpd / conf / mime.types și Parallels Plesk instalează-l în /usr / / / admin / PSA conf / mime.types locale. Distribuția dumneavoastră ar putea avea loc într-un alt, astfel încât găsiți mime.types fișier prin rularea localizați mime.types.

Adăugați următoarele linii în fișierul dvs. mime.types:

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

Tipul MIME Apache plus (Pentru proprietarul domeniului cu cel puțin FTP acces – folosind fișierul .htaccess)

Adăugați textul următor pentru a domeniului dvs. .htaccess fișier, cel mai frecvent într-un httpdocs / director

AddType aplicatii / docm
AddType application / vnd.openxmlformats-officedocument.wordprocessingml.document docx
AddType application / dotm
AddType aplicatii / vnd.openxmlformats-officedocument.wordprocessingml.template dotx
AddType aplicatii / potm
AddType aplicatii / vnd.openxmlformats-officedocument.presentationml.template potx
AddType aplicatii / spam-
AddType aplicatii / ppsm
AddType aplicatii / vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
AddType aplicatii / pptm
AddType application / vnd.openxmlformats-officedocument.presentationml.presentation pptx
AddType aplicatii / sldm
AddType application / vnd.openxmlformats-officedocument.presentationml.slide sldx
AddType aplicatii / xlam
AddType aplicatii / xlsb
AddType aplicatii / xlsm
AddType application / vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
AddType aplicatii / XLTM
AddType aplicatii / vnd.openxmlformats-officedocument.spreadsheetml.template xltx
Miercuri, January 28th, 2009 | Autor:

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.