Currently Being ModeratedMar 23, 2013 2:55 AM (in response to Linc Davis)
All sorts of outcomes, depending on the command. For example, one suggested command to log out the current user from Terminal that I got from http://superuser.com is as follows:
There is no "nice" way to log the current user out from Terminal in OS X. The 'messy' way of doing it is to kill that user's
loginwindowprocess. It will rudely kill all processes (programs) running under your username.
Doing this is a two-step process.
- In terminal, run this:
ps -Ajc | grep loginwindow
- Then, run
sudo kill <pid>
<pid>is the first number (second column) from the output from the above command.
When I executed this command, the screen flashed grey and logged me out of any current windows that were open (e.g. Apple Support), but left me with the same bash interactive login shell greeting as shown below:
Last login: Sat Mar 23 05:11:05 on ttys000
LaserJet:~ Kris$ ps -Ajc | grep loginwin
Last login: Sat Mar 23 05:13:04 on console
So the command did in fact kill all programs running under my username, but did not log me out of Terminal. At least as far as I can tell from my limited understanding. I recently got a book on programming OS X Snow Leopard (Trent and McCormack), focusing on a chapter called "The Bash Terminal" and includes a section on configuring bash. It should be helpful as I'm totally new to using the bash shell (as you can tell). I now undestand what the bash shell can be used for, both interactively and script. That's a start. But as for configuring bash to change the interactive login shell greeting, which appears to be defaulting to LaserJet:~Kris$, I'm still in the dark.
- In terminal, run this:
Currently Being ModeratedMar 23, 2013 4:20 AM (in response to wb4fly)
I tried the differnt configurations suggested by Greg and MrHoffman, but no joy.
- Furthermore, I could not configure the printer using the HP Jetdirect-Socket protocol using a 192.xxx.xx.x IP adddress as I would consistently get an error message.
- I could configure the ethernet using 192, but not the printer.
- I also inactivated all network interfaces save the ethenet, but the printer would still not respond.
- Strangelly, if I disabled the ethernet interface all together, the printer was still showing as active and in idle mode. This should not happen.
- Bottom line, the ethernet connection and interface seems to be fine. And although the ethernet interface will recognize the printer and the self-assigned, static 169.xxx.xx.x IP address issued by the the printer once it is turned on, from that point forward the connection appears to be dead. What I mean by that is that I can add the printer to the print & scan pane, and the IP address is said to be valid and complete (using LPD, recalling that I can't use HP Jetdirect-Socket due to error message) yet the printer seems to be a ghost.
- Conclusion: HP driver is not compatible with OS 10.8 and HP LaserJet 4100 series. I say this once again due to the fact that OS 10.4 works fine wtih the 4100.
- HP Support Forum has been no help. All members appear to be windows users, and have no clue about Mac.
Currently Being ModeratedMar 23, 2013 5:25 AM (in response to wb4fly)
First, you didn't show us the result of the "hostname" command in terminal, as linc requested. Why is he requesting that? Because from your Bash prompt, it appears you have named your computer LaserJet. You can change it back in the Sharing prefs panel.
To set the printer's IP address, use this guide to the front panel:
With all the unusual things you have tried, I'd say that reinstalling OS X may be the right option.