I wanted to replace my OS X Server because of lack of Internet Sharing feature. So I do both Time Machine backup and manual backup before making a fresh OS X installation. These are the issue that I faced.
Restoring using Time Machine right after Leopard Installation is not as I expected. There will be folders like 'System (from old mac)', 'Applications (from old mac)'. For me, this is not neat.
Your OSX filesystem must have the same format as your Time Machine backup filesystem. I'm using HFS Journaled with Case Sensitive, but my external hard disk is using HFS Journaled NOT with Case Sensitive. I have to reformat either my OS X partition, or my external hard disk.
Restoring files from Time Machine is strict because of UID. My user uses 501 as UID but my last Server system was using 1000 as UID. So restoring could get complicated.
Right now I'm going to change my UID and reboot and see what will happen.
Showing posts with label diary. Show all posts
Showing posts with label diary. Show all posts
11.18.2008
7.16.2008
Unresponsive Dock and Finder
I can't access Dock just now. No respond. And I'm unable to go through Finder too, so I can't get a touch on Terminal. I forced quit some applications, but there's only TextEdit which I left because there's work which wasn't saved yet. Then how do I rescue this without force quitting the TextEdit which I'm not even sure if it is the cause of all this? But I'm pretty sure that it was about the hung Dock. I really wanted to avoid logging out or reboot.
But user fast switch is enabled. I logged in as administrator and used terminal to kill other's Dock process.
PS=`ps aux | awk '{if($1="amanyus") print}' | grep -i dock`; kill $PS
PS is temporary shell variable to hold a value. This value is coming from a ps command after few filtering with awk and grep. Awk only print lines that match the first column with user amanyus, which result in all amanyus' processes. Next with grep, only match insensitive case dock rather that all processes under user amanyus because we only want to find Dock process and put in the PS variable. Up to this point, PS variable will hold the process number of amanyus' Dock. After the semicolon, the process will be killed.
Silly is you just can simply use
p/s: Hey, I forgot about spotlight at the first time to search Terminal, but not sure if it would work.
But user fast switch is enabled. I logged in as administrator and used terminal to kill other's Dock process.
PS=`ps aux | awk '{if($1="amanyus") print}' | grep -i dock`; kill $PS
PS is temporary shell variable to hold a value. This value is coming from a ps command after few filtering with awk and grep. Awk only print lines that match the first column with user amanyus, which result in all amanyus' processes. Next with grep, only match insensitive case dock rather that all processes under user amanyus because we only want to find Dock process and put in the PS variable. Up to this point, PS variable will hold the process number of amanyus' Dock. After the semicolon, the process will be killed.
Silly is you just can simply use
ps aux | grep amanyus | grep Dock and kill the Dock's process without bothering with awk command =pp/s: Hey, I forgot about spotlight at the first time to search Terminal, but not sure if it would work.
5.26.2008
Screwed Up: Open Directory Part 3
drwx------+ 6 diradmin staff 204 May 25 16:36 Desktop
drwx------+ 22 diradmin staff 748 May 19 09:45 Documents
drwx------+ 109 diradmin staff 3706 May 25 18:52 Downloads
drwx------+ 42 diradmin staff 1428 May 19 09:18 Library
drwx------+ 9 diradmin staff 306 May 25 17:13 Movies
drwx------+ 5 diradmin staff 170 May 13 13:00 Music
drwx------+ 11 diradmin staff 374 May 25 15:40 Pictures
drwxr-xr-x+ 5 diradmin staff 170 May 14 08:58 Public
drwxr-xr-x+ 11 diradmin staff 374 May 23 00:06 Sites
drwxr-xr-x@ 314 diradmin staff 10676 May 26 09:47 mp3The owner of my original home folder gave me a clue. They are all owned by directory admin. And I remember last time when I changed the Open Directory role to the Directory Master, we need to set password and verified it. There is also a username already written there as diradmin. So what I did is I set the role to standalone and set it back again to Directory Master. This time I replace the diradmin as my original account name. I backed up before commit to prevent any loss or the potential of my home folder be overwritten. Fortunately it doesn't. No files affected. The owner also automatically changed. And once again, the day is saved thanks to the powerpuff mac :-P
drwx------+ 6 amanyus staff 204 May 25 16:36 Desktop
drwx------+ 22 amanyus staff 748 May 19 09:45 Documents
drwx------+ 109 amanyus staff 3706 May 25 18:52 Downloads
drwx------+ 42 amanyus staff 1428 May 19 09:18 Library
drwx------+ 9 amanyus staff 306 May 25 17:13 Movies
drwx------+ 5 amanyus staff 170 May 13 13:00 Music
drwx------+ 11 amanyus staff 374 May 25 15:40 Pictures
drwxr-xr-x+ 5 amanyus staff 170 May 14 08:58 Public
drwxr-xr-x+ 11 amanyus staff 374 May 23 00:06 Sites
drwxr-xr-x@ 314 amanyus staff 10676 May 26 09:47 mp3
Screwed Up: Open Directory Part 2
amanyus:log root# host amanyus.puj52
;; connection timed out; no servers could be reachedAfter few smacks on the head lol, I played around with DNS service on the Server. I created a zone, named it and added machine record in it. That solved my problem.
amanyus:log root# nslookup amanyus.puj52
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: amanyus.puj52
Address: 192.168.1.14
amanyus:log root# host amanyus.puj52
amanyus.puj52 has address 192.168.1.14
Since the DNS is clean, Kerberos finally running. But the my usual login still doesn't show up :-(
5.25.2008
Screwed Up: Open Directory
Server is sucks when waking up from sleep. I suck too. Coz I made Server run on portables. I'm not sure of this but I think Open Directory or Kerberos service is affected by wake and sleep mechanism. There was time when my password doesn't work if I typed in immediately after the Server woke up.
Tonight something went wrong which I don't have any clue why. Failed to login even after few reboots. So I suspect the authentication system - which I'm not sure LDAP or Kerberos - might not running or maybe not even started. So I logged in as root and check the System Preferences where I found out that my usual account is gone. Now that really bothers me. I checked my home directory and fortunately it's there.
Server Admin show LDAP and Kerberos stopped. I've checked through numerous posts on the internet. There's one instruction that says to set the Open Directory role as standalone. I followed without knowing what I'm doing. And that is where I screwed up. I can't change back to the original role.
Now I have to figure out what the heck is happening. A lot messages in the logs like has got something to do with DNS. Hope someone tells me how to make the changeip happy.
Tonight something went wrong which I don't have any clue why. Failed to login even after few reboots. So I suspect the authentication system - which I'm not sure LDAP or Kerberos - might not running or maybe not even started. So I logged in as root and check the System Preferences where I found out that my usual account is gone. Now that really bothers me. I checked my home directory and fortunately it's there.
Server Admin show LDAP and Kerberos stopped. I've checked through numerous posts on the internet. There's one instruction that says to set the Open Directory role as standalone. I followed without knowing what I'm doing. And that is where I screwed up. I can't change back to the original role.
Now I have to figure out what the heck is happening. A lot messages in the logs like has got something to do with DNS. Hope someone tells me how to make the changeip happy.
amanyus:etc root# sudo changeip -checkhostname
Primary address = 192.168.1.12
Current HostName = amanyus.puj52
The DNS hostname is not available, please repair DNS and re-run this tool.
5.23.2008
Screwed Up: Apache2 & PHP Part 2
I went through tough times figuring out how. Google tried to help me but the results are meant for Leopard, not Server. I can't find any pre-compiled php for Server. I also tried to set CFLAGS and LDFLAGS as intruction for Leopard and the compilation failed.
At last I solve it with the Server Installation disc. But you can't find it simply by Finder. Even if you use Finder to look into the package contents, still you won't find the packages used to install all the Server components. I spawned up my terminal and go through the installation disc. There are a lot of packages and I have to install one by one on an empty filesystem so that I will know what each package for. And I found what package installs the libphp.so - the fix is in the next post.
It is fixed. What a relief.
At last I solve it with the Server Installation disc. But you can't find it simply by Finder. Even if you use Finder to look into the package contents, still you won't find the packages used to install all the Server components. I spawned up my terminal and go through the installation disc. There are a lot of packages and I have to install one by one on an empty filesystem so that I will know what each package for. And I found what package installs the libphp.so - the fix is in the next post.
It is fixed. What a relief.
5.22.2008
Screwed Up: Apache2 & PHP
I screwed up. I overwritten pre-installed PHP on Server that cause problem for Apache startup. God help me.
Edit: I suspect that the libphp5.so not compiled to match the correctly architecture. So to make the apache running, I hashed out 2 lines that load php module inside
May 22 19:33:34 amanyus org.apache.httpd[96895]: httpd: Syntax error on line 143 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/libphp5.so into server: dlopen(/usr/libexec/apache2/libphp5.so, 10): no suitable image found. Did find:\n\t/usr/libexec/apache2/libphp5.so: mach-o, but wrong architecture
May 22 19:33:34 amanyus com.apple.launchd[1] (org.apache.httpd[96895]): Exited with exit code: 1
May 22 19:33:34 amanyus com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 secondsEdit: I suspect that the libphp5.so not compiled to match the correctly architecture. So to make the apache running, I hashed out 2 lines that load php module inside
/private/etc/apache2/httpd.conf. It runs but without php support. So localhost:80 show a nice Server webpage. I also notice that my computer automatically downloads a php source hehe. Because it is un-identifiable.
5.14.2008
Thank You
Since my friend had the privilege to buy Apple product for cheaper price, I asked her a favor. She was very lucky to purchase a MacBook Pro at insanely good price. You'll dropped your jaw if I tell you :-D
I let my girl use it for a couple of days. She is so happy I can tell. She never really have the chance to really feel owning a laptop in her room. And for few days, we had wonderful time.
Yes, MacBook Pro is a sleek and beautiful machine. But when my girlfriend handed it to me, I did not turn it on right away. I had personal problem that day, and even the problem disappeared, the machines didn't really interest me. At that night, when I was so boring and my girlfriend seems a bit disappointed when she knows I didn't even take it out from the bag, I light it up. Yeah. It is Leopard. My mom have a MacBook and I've played with Leopard so looking at my MacBook Pro still nothing to me. The nice metallic machine didn't captivate me at all because I have experience my PowerBook for 5 years.
Until I started to USE it. Yes. I admit. Software captivates me a lot. Every button, every option and every menu I explore on Leopard, they sit perfectly. Apple programmer really knows how to balance the need and not need. They have added so much features and most of them I craved on when I use Tiger last time.
But that didn't fully satisfied me. With dual core, this machines wasn't really do much work. Guess, what is my attempt on my PowerBook last time? PowerBook running Leopard Server. Yes. It didn't work. My PowerBook can't read dual layer disc. There are few workaround I used, but no avail. The next day I went to my bachelor house - is this what people call? :-p - and grab the dual layer disc and install Leopard Server. Hehe. It feels like I'm rocketing to the sky! I have used all names of server - Solaris, HP-UX, Linux, FreeBSD - but this is the NEATEST UNIX SERVER EVER!
Since this post is not about Server, I will stop now. I'm sure I got a lot coming. Only software excites me. And only that excitement can lead me to blogging :-)
PS: I want to thank my girl. You are a wonderful person. Take a good care of my tiger, baby.
Subscribe to:
Posts (Atom)