Leopard: more settings

Nu m-a apucat vreo febra gen “mac addicted” or something like that. Dar uneori prefer sa-mi scriu niste notitze undeva ca sa nu le caut ca un disperat dup’aia.
Pentru ca in Windows imi placea kestia aia “show full path in title bar” si pentru ca in Mac nu o aveam… eram frustrat. Sort of.. 🙂
Asa ca am pus mana si-am sapat. Si-am gasit:

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

Aici e rezultatul:
Full Path in Finder Leopard
/me happy. 🙂
Apoi, alta smekerie de care nu stiam (ca n-am sapat):
In Finder -> View -> Hide/Show Toolbar. Afiseaza un fel de breadcrumb in “footer”-ul Finder-ului. Place la mine. 🙂
Cam asa arata:
Finder Toolbar

Aici gasiti muuuulte kestii de genu’ asta (azi am descoprit site-ul). Nu le-am testat pentru ca multe din ele inca mi se par ambiguous… si nu vreau sa-l crap iar! 🙂

Leopard: few settings

Prima miscare pe care o fac atunci cand am un Leopard nou. Sau cand creez un user nou:
1. Scap de Dock-ul ala 3D care arata ca dracu (“parerea mea”). Nu-l suport.
Il fac suportabil astfel:

defaults write com.apple.dock no-glass -boolean YES; killall Dock

Il face 2D, nice and smooth, asa cum se vede in poza de mai jos:
Leopard 2D Dock style
2. Urasc transparentza aia din top bar (nu stiu ce porecla oficiala are). So, let’s kill that one too:

sudo defaults write /System/Library/LaunchDaemons/com.apple.WindowServer ‘EnvironmentVariables’ -dict ‘CI_NO_BACKGROUND_IMAGE’ 1

Si arata nice and smooth ca in poza de jos.
Leopard top bar style
Parca e altceva acuma, nu? 🙂

Later edit: am uitat sa spun cum se dau comenzile alea; din “terminal” (asta pentru cei care sint la inceput rau de tot). Se gaseste in Applications/Utilities. Sau use “Spotlight” to search for it.
Si transparenta aia apare dupa reboot. Ca sa nu va impacientati ca “nu se intampla nimic”

Deny nmbd data

Mi-am spart capu’ azi cu o kestie care mă seca la Leopard: nu ‘vedeam’ rețeaua locală – doar celelalte doo minimac-uri cu care se ‘pupa’ la marea artă.
Am cautat pe net (kiar și la apple): problema mea nu era singulară; nimeni nu găsise nici o soluție.
I did. 🙂
Am sa dau soluția în english, poate mai fericesc și pe alții.

I have noticed that, after upgrading to Leopard, my local network is no longer visible. Of course, you can choose to connect to a specific computer by accessing its IP from Finder. But, that’s not a valid solution – it’s like a downgrade feature. Tiger has it. Leopard doesn’t. Why?
I don’t know if this is because I mess something up in my MacBookPRO settings but as I’ve seen on Apple forums, this problem is not singular.
I’ll show here the easy solution, a solution that any non-techie person can accomplish.
We need a little piece of software and one firewall rule.
The software I’m talking about is WaterRoof. Grab it and install it.
After that, click on “Static Rules” and add this:

allow ip from any to me dst-port 137,139 in

Firewall settings in Leopard
Then click on “Kill appfirewall” and wait for it to restart (actually you won’t see it, but it’s about 6 seconds). You can monitor/see when it (re)starts but that will make me tell you advanced stuff… which is not the goal of this post. Also you can do this firewall trick from the terminal with just one line, but, as I said, no mambo-jambo-advanced-tricks-commands-line here. Not now.
Ahh… also you can do this from the “Configuration Wizard” but I thought it will be more easier for some non-techie guys just to copy paste something following some strict steps. Also, those unfamiliar with terms in “Configuration Wizard” might have some problems.
That’s all. 🙂

Apache on Leopard

Poate ca mai sint si altii care doresc sa stie cum se face.  Asta pe de-o parte. Pe de alta parte e bine sa-mi notez si eu undeva ce si cum pentru vremurile grele.

Apache-ul vine by default cu Leopardu’, doar ca nu e activat/start-at.
Bun, asta e partea usoara:
– se merge in “System Preferences” (click pe maru’ din bara stanga-sus);
– se da click apoi pe “Sharing” la sectiunea “Internet & Network”;
Apache on Leopard
– se bifeaza “Web Sharing”
Apache on Leopard
Mie imi plac kestiile facute in .php, deci avem nevoie si de ala. By default php-ul nu este activat; il activam noi.
Va trebui sa editam o kestie:
/private/etc/apache2/httpd.conf
Apache on Leopard
Apache on Leopard
Undeva la linia 114 dez-comentam linia care contine php-ul (adica taiem “#” din fata liniei)
Apache on Leopard
Salvam. Restartam Apache-ul (adica bifam/debifam la “Web Sharing”) – se poate si din linia de comanda, da’ sa nu ne complicam inutil.
Cum vedem daca merge php-ul? In httpd.conf e o linie care ne spune unde se afla fisierele webserverului.
Apache on Leopard
Ne ducem acolo si facem asa:
Apache on Leopard
cd /Library/Webserver/Documents
touch php.php (se poate si fara linia asta, dar am scris-o in scop ‘didactic’)
mate php.php
si scriem in el:
Apache on Leopard
La “Web Sharing”, in poza, se vede un link; acolo ruleaza webserveru’ nostru. Urmam calea de acolo la care adaugam fisierul nostru “/php.php” si… asta e!
🙂