Tag-Archive for » langai «

Penktadienis, Rugsėjis 11, 2009 | Autorius:

Taika USB žemės

Pagal *nulis operacinė sistema, turėti kelis skirsnius USB yra ne raketų mokslas, jis tiesiog veikia. Mano atveju, mano USB diskas turi du skirsnius, nes pirmasis skaidinys yra startinis Arch Linux įsteigti.

Turiu Langai dėl namuose darbalaukyje – daugiausia žaidimų – ir daugelis mano kolegų naudoti jį per. Kadangi Windows negali padaryti labai gerai su ne Windows pertvaros aš raštuotas galėčiau sukurti FAT32 disko į atminties kortelę po įkrovos Arch Linux disko. FAT32 yra beveik visur ir yra naudojama kiekvieną bendrą darbastalio operacinės sistemos pasaulyje.

Bleh

Deja, tai neveikia tiesiai nuo bat. Matyt, "Microsoft" savo begalinės išminties nusprendė, kad atmintis yra manoma, kad turėti vieną (ir tik vienas) pertvara. Iš tikrųjų "Windows randa pirmą skirsnį ir tada ignoruoja visus kitus, kad atsitiktų būti įsteigtas:

Please Format

Klysti, nėra, Aš nenoriu formatuoti mano Arch Linux diegimo disko

Pavyko gauti jį dirbti yra apgauti Windows galvoti, kad prietaisas yra ne reguliariai USB atmintuką, bet galbūt kietojo kietajame diske kuris atsitinka būti prijungtas per USB. Taip, aš žinau, tai rimtai kvailas, kad Windows elgiasi tokiu būdu. Kietojo kietajame diske yra tik Didžiulį didelis (ir greitai) Memory Stick juk!

Radau kelis šaltinius, kaip tai padaryti, tačiau aš vis dar turėjo išsiaiškinti kai kuriuos dalykus on my own. Konkrečiai, vadovai radau arba praleisti tam tikrus veiksmus arba nepateikė pakankamai informacijos apie tai, kur atsisiųsti tvarkyklės paketą.

Ši procedūra apima rankiniu būdu keisti aparatūros tvarkykles ir įdiegti “neprisijungusių” vairuotojai “nėra skirtas jūsų aparatūros”. Aš žinau, kas vyksta nutraukti savo sistemą ir kaltina mane, kad aš sakau dabar, kad aš neprisiima jokios atsakomybės už bet kokią žalą gali padaryti jūsų "Windows" sistemą, kaip šis rezultatas. Skaityti, kad vėl. 😛

Instrukcijos

remove the highlighted text

spustelėkite didesnį versiją

Atsisiųskite ir išpakuokite vairuotojas, iš pradžių sukūrė "Hitachi", čia. Atidarykite cfadisk.inf failą su notepad (ar jūsų mėgstamiausia paprastojo redaktorius), ir raskite skyrių [cfadisk_device]. Pašalinti skyriuje pabrėžiama dešinėje:

Minimizuoti (Neuþdarykite) redaktorius ir eikite į savo darbalaukio piktogramos – dešiniuoju pelės mygtuku spustelėkite Mano kompiuteris ir pasirinkite PRoperties. Pasirinkite skirtuką Aparatūra ir pasirinkite [Device vadovas]:

System Properties

Ieškoti įrenginį pagal “Diskai”, dešiniuoju pelės mygtuku spustelėkite savo atminties kortelę ir pasirinkite PRoperties:

Device Manager

Spustelėkite skirtuką Išsamiau ir išskleidžiamajame laukelyje šiame puslapyje, pasirinkti “Aparatinės įrangos ID”. Spustelėkite pirmą eilutę aparatūros ID sąrašo ir paspauskite Ctrl C kopijavimui pavadinimą:

USB Hardware Ids

Negalima uždaryti šį langą, grįžti į užrašų knygelę (buvo sumažintas) ir įklijuokite aparatūros ID į kai ankstesnė turinys buvo ištrintas.

Changes pasted into notepad

Išsaugokite failą su notepad ir grįžti į įrenginio dialogo nuosavybė lange. Spauskite “Vairuotojas” skirtuką ir spustelėkite [Update Driver…] mygtukas. Į langus, kad pop-up, pasirinkti “Ar ne, tai ne tpavadinimas”; [Next] -> “Įdiegti iš sąrašo arba ųKONKREČIOS vieta (Pažangus)”; [Next] -> “Don't paieška. Aš pasirinkti vairuotojas įdiegti.”; [Next] -> [Have Disk…].

Unsigned Drivers - Click Continue Anyway

Naršyti į aplanką, kuriame įrašėte modifikuotą cfadisk.inf failą. Spragtelėjimas [Gerai]. Rasite

yra "Hitachi Microdrive" vairuotojas išvardyti. Pasirinkite tai ir paspauskite [Next]. Kai įspėjimas

atrodo, spragtelėjimas [Metaitai]. Kitas įspėjimas bus pop-up dėl panašaus klausimo (tai yra “nepasirašytos” ir “nėra skirtas jūsų aparatūros” įspėjimai minėjau anksčiau). Spragtelėjimas [Continue Šiaip]:

Šiuo metu aš rekomenduoju uždaryti visus dialogo langus, susijusius su setup. Pagaliau, išimkite ir vėl įdėkite atminties kortelę į USB prievadą ir jums reikia rasti, kad papildomos pertvaros ant lazdelės yra prieinami. Blogiausiu atveju, jūs galite vis dar reikia suskaidyti diską Tačiau sunku dalis yra per. 🙂

dalis
Pirmadienis, April 06th, 2009 | Autorius:

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 čia what the actual problem was. Mano atveju, 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. Šiuo atveju, 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 čia, 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. 🙂

dalis
Ketvirtadienis, January 22nd, 2009 | Autorius:

I very recently found a problem with a client’s web site due to a .Htaccess byla. The site was hosted on a Langai 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 Tačiau. 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,OR]
RewriteCond %{HTTP_REFERER} .*aol.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} .*msn.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} .*yahoo.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} .*yandex.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} .*rambler.*$ [NC,OR]
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.

Žinoma, 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

dalis
Pirmadienis, November 17th, 2008 | Autorius:

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, Tačiau, 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] ; [Pažangus], 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.

dalis
Kategorija: networking, langai  | Žymos: , , , ,  | Palikite komentarą
Antradienis, Lapkritis 11, 2008 | Autorius:

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|jogurtas) -S|emerge|(Yum|gabumai) 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

Taip pat, 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 čia.

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 versija:

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. 😉

dalis
Kategorija: Linux  | Žymos: , , , ,  | Palikite komentarą