Tag-Arhiv za » prozori «

Petak, 11. rujna, 2009 | Autor:

Mir u zemlji USB

Pod *ništa operativni sustav, ima više particija na USB pogon nije raketna znanost, to samo radi. U mom slučaju, moj USB disk ima dvije particije, jer prva particija za podizanje sustava Arch Linux postavili.

Imam Windows na radnoj površini kod kuće – uglavnom za igranje – i mnogi od mojih kolega ga koriste previše. Budući da Windows ne učiniti vrlo dobro s ne-Windows particija sam shvatio sam mogao stvoriti FAT32 particiju na memory stick, nakon podizanja sustava Arch Linux particije. FAT32 je gotovo sveprisutan i iskoristiv na svakom zajedničkom desktop operativni sustav na svijetu.

Bleh

Nažalost, to ne radi ravno isključiti šišmiš. Očigledno, Microsoft u svojoj beskrajnoj mudrosti odlučio da se memory stick bi trebao imati jedan (i samo jedan) particija. U stvarnosti Windows nađe prvu particiju i onda ignorira sve druge koji se dogoditi da se postavili:

Please Format

Err, nema, Ja ne želim da formatiram Arch Linux instalacijski particiju

Trik za dobivanje što rade je zavarati Windows na razmišljanje uređaj Ne redoviti USB memory stick, ali možda solid-state tvrdi disk što će se dogoditi da se priključiti preko USB-a. Da znam, ovo je ozbiljno glup da je Windows ponaša na ovaj način. Solid-state tvrdi disk je samo nevjerojatnih veliki (i brzo) Memory Stick nakon svega!

Našao sam nekoliko izvora o tome kako to učiniti, međutim još uvijek sam imao shvatiti neke stvari sam sa sobom. Konkretno, vodiči sam našao bilo preskočila neke korake ili nisu dali dovoljno informacija o tome gdje se preuzeti vozač paket.

Ovaj postupak uključuje ručno mijenjanje hardver i instaliranje “nisu potpisale” vozači “nije namijenjen za vaš hardver”. Znam netko će slomiti njihov sustav i kriviti mene tako da sam sada reći da sam ne preuzimamo odgovornost za eventualne štete možete učiniti kako bi vaš Windows sustav kao rezultat toga. Pročitajte kako opet. 😛

Upute

remove the highlighted text

kliknite za uvećanu verziju

Preuzmite i raspakirajte vozača, izvorno stvorio Hitachi, ovdje. Otvorite cfadisk.inf datoteku u Notepad (ili vaš omiljeni čistim urednica), i pronaći odjeljak označen [cfadisk_device]. Izvadite odjeljak označenog na desnoj strani:

Minimiziranje (ne zatvoriti) urednik i idite na svoje ikone – desni klik na My Computer i odaberite Prvojstva. Odaberite karticu hardvera, a zatim odaberite [Device menadžer]:

System Properties

Nađi uređaj pod “Diskovi”, desni klik svoj memory stick i odaberite Prvojstva:

Device Manager

Kliknite karticu detaljima i na dropdown box na toj stranici, odaberite “Hardver IDS”. Kliknite na prvu crtu u popis hardvera IDS i pritisnite Ctrl C za kopiranje ime:

USB Hardware Ids

Ne zatvarajte ovaj dijalog, vratiti u notepad (koji je na minimum) i zalijepite ID hardvera u kojoj je uklonjen prethodni sadržaj.

Changes pasted into notepad

Spremite datoteku u Notepad i vratite se dijaloški prozor nekretnina uređaja. Kliknite “Vozač” Kartica i kliknite [Update vozača…] Gumb. U prozorima koji pop-up, odaberite “Nema, Nije li ovo TNaziv”; [Next] -> “Instaliraj s popisa ili eOSEBNI mjesto (Napredno)”; [Next] -> “DNemoj pretragu. Ja ću odabrati vozač instalirati.”; [Next] -> [Have Disk…].

Unsigned Drivers - Click Continue Anyway

Pronađite mapu u koju ste spremili izmijenjenu cfadisk.inf datoteku. Kliknite [U redu]. Naći ćete

postoji Hitachi Microdrive vozač navedene. Odaberite ovaj i kliknite [Next]. Kad upozorenje

pojavljuje, klik [Yje]. Drugi upozorenja će se pojaviti u vezi sličnoj pitanju (to su “nepotpisani” i “nije namijenjen za vaš hardver” Upozorenja sam spomenuo ranije). Kliknite [CU svakom slučaju ontinue]:

U tom trenutku sam se preporučuju zatvaranje svih dijaloških okvira koji se odnose na postavljanje. Konačno, izvadite i ponovno umetnite memorijski stick u USB port i trebali uvidjeti da je extra particija na palice su dostupni. U najgorem scenariju, još uvijek može trebati particionirati disk Međutim, tvrdi dio je gotov. 🙂

Udio
ponedjeljak, 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 ovdje what the actual problem was. U mom slučaju, 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 ovdje, and it turns out to be similar to the solution for the first bugexcept that it is to remove an entire key. Opet, 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. 🙂

Udio
Thursday, January 22nd, 2009 | Autor:

I very recently found a problem with a client’s web site due to a .htaccess file. The site was hosted on a Windows server running IIS using IISPassword, which makes use of .htaccess files for its settings.

IISPassword doesn’t follow exactly the same rules as with Apache however. If the .htaccess file exists then it must contain IISPassword-appropriate rules, otherwise the server returns only the following error:

Error 500 given by IIS Password
Here’s the content of the .htaccess file. I’ve only modified the final redirection URL to point to example.com appropriately:

RewriteEngine On
RewriteCond %{HTTP_REFERER} .*google.*$ [NC,ILI]
RewriteCond %{HTTP_REFERER} .*aol.*$ [NC,ILI]
RewriteCond %{HTTP_REFERER} .*msn.*$ [NC,ILI]
RewriteCond %{HTTP_REFERER} .*yahoo.*$ [NC,ILI]
RewriteCond %{HTTP_REFERER} .*yandex.*$ [NC,ILI]
RewriteCond %{HTTP_REFERER} .*rambler.*$ [NC,ILI]
RewriteCond %{HTTP_REFERER} .*ya.*$ [NC]
RewriteRule .* http://siffy-phishing-url.example.com [R,L]

If this were on a server running Apache with mod_rewrite, most web users would go directly to the correct site content. Only if they reached the site through the search engines and indexes listed in the .htaccess, would they be redirected to the siffy phishing url that the cracker wants victims to reach.

Naravno, the cracker (or perhaps even an automated worm) didn’t realise that the server in question didn’t even support these mod_rewrite rules. But either way, this is very worrying as I can foresee many arguments about whether or not the site is working

Udio
ponedjeljak, November 17th, 2008 | Autor:

I’d never really had the need to connect to a VPN until this weekend. After connecting, I found that my Internet access was rather non-functional except to the VPN in question. A colleague happened to be on hand (he’d given me the access details in the first place) and he quickly suggested this workaround.

Today, a client had the same issue. Perhaps this problem is more common than I first thought.

When connecting to the VPN, Windows updates the default gateway on your desktop to reflect the VPN’s settings. Most likely, however, you only need to access specific subnets on the VPN and you want all unrelated traffic to use youroldsettings.

It turns out that its a simple checkbox that needs to be unchecked. The jist (sp.??) of finding the setting: Right-click the VPN in Network Connections -> Properties -> Internet Protocol (TCP/IP); [Properties] ; [Napredno], and uncheck the “[ ] Use default gateway on remote network”.

Then click the usual OK/Apply/Yes-of-course-your-dialogue-ness (all the while reading and absorbing any warnings appropriately) until you’re back to your Network Connections window. Right-click the VPN connection and disable / re-connect.

You should be able to confirm that the Default Gateway does not change by running the command-line app ipconfig before and after enabling the VPN connection. Look specifically for the line labelledDefault Gateway”.

[edit reason=moore”]…

It turns out that a possible reason for this setting being the default setting is for security. If your desktop happens to be compromised or inadvertently routing traffic, connecting to the VPN might expose the supposedlyprivatenetwork to the Internet.

Udio
Utorak, November 11th, 2008 | Autor:

I sometimes use a simplified remote desktop script I built a long time ago, before KRDC and its kin came about. It is still useful for if you normally only connect to 1 server at a time or you want your screen’s real-estate back. Feel free to adjust the defaults. 🙂

This works for generally any distro as long as you have rdesktop installed:

((Pacman|jogurt) -S|emerge|(yum|aptitude) install) rdesktop

Copy the text into an appropriately-named file in your ~/bin/ folder. Then chmod it to be executable and link the second alias.

tricky@swiftspirit:~$ [ -d ~/bin ] || mkdir ~/bin
tricky@swiftspirit:~$ nano ~/bin/rd
tricky@swiftspirit:~$ chmod +x ~/bin/rd
tricky@swiftspirit:~$ link ~/bin/rd ~/bin/rdc

Također, create a folder at /media/rd that is writable only by root but readable by anyone. Then also create a second folder within this which is writable by anyone. The /media/rd folder is shared with the remote desktop when you connect so it is useful to keep small scripts or applications that you might install or need often in this folder. The /media/rd/honey folder is there for security purposes so that you can copy content to your desktop but ALSO so that a virus-infected server doesn’t infect your existing executables and scripts in the main /media/rd/ folder:

tricky@swiftspirit:~$ sudo mkdir /media/rd
tricky@swiftspirit:~$ sudo mkdir /media/rd/honey
tricky@swiftspirit:~$ sudo chown -R root:root /media/rd
tricky@swiftspirit:~$ sudo chmod 755 /media/rd
tricky@swiftspirit:~$ sudo chmod 777 /media/rd/honey

copy rd’s content from ovdje.

Once this is in place, to connect to a server, type the command into your terminal from within your GUI:

tricky@swiftspirit:~$ rd my.server.swiftspirit.co.za

If you want to connect to a console session (session 0), use the rdc verzija:

tricky@swiftspirit:~$ rdc my.server.swiftspirit.co.za

Improvements and suggestions are welcome. I’d built a version which could save your passwords into a shadow file using openssl however I never quite got it to work. Maybe another time. 😉

Udio
Kategorija: linux  | Tagovi: , , , ,  | Ostavite komentar