|
UNIX changes between 10.1.5 & 10.2
|
Login/Create an Account
| Top
| 100 comments
|
Search Discussion
|
|
|
|
The Fine Print:
The following comments are owned by whoever posted them.
We are not responsible for them in any way.
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @02:08PM (#1744)
|
|
 |
 |
 |
True, but you are missing the point. In OS X you aren't really meant to have 'dot' files in your account, bar SSH which does not support the Library structure.
In OS X 10.1.x, you could place modified environments in ~/Library/init/tcsh (e.g. environment.mine, rc.mine) based on the examples in /usr/share/tcsh. The system-wide files /etc/csh.cshrc, /etc/csh.login, a
nd /etc/csh.logout were symlinked to the relevant files in /usr/share/tcsh, so that they automatically sourced your files in ~/Library/init/tcsh.
In 10.2, the /etc/ files are no longer symlinked, which is why the system ignores your modifications. Why they did this I'm not sure. I think they just plain forgot....
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
|
Cool upgrade but why the locate command seems to not work?
|
|
 |
 |
|
|
|
 |
|
 |
 |
|
 |
 |
 |
tcsh? I suppose you use emacs, too, eh? pdksh compiles and works just fine!
(for those that don't know, pdksh == Public Domain ksh ... or Pretty Darned ksh :)
(jokes ... mere jokes ... :)
let the flame war begin ...
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
Even better than that, use zsh which does all that ksh does and loads more like recursive file completion (if you don't want the loads more, you can tell it to emulate ksh exactly), and is already installed!!! Andy/
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
|
umm yeah.... didn't i just say that?!?
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
you know, I had the benefit of getting developer builds and I reported this to apple, but it wasn't fixed in time and it's REALLY annoying for me.
Ok, in 10.1 if you type 'cd ' (that's 'c' 'd' and a space) and then press tab twice, you will get a directory listing. In 10.2, it's broken. You won't get a directory listing.
Also, if you type 'c' and then tab twice, you would get a list of possible commands that start with 'c'. In 10.2, it's broken.
Also, I've noticed that doing a 'su' you will not inherit as many environment variables as you used to. In 10.1 if you performed an 'su', you would see your display name change to root. If you perform an 'su' in 10.2 you will not see your display name change. (And for me, 'su -' inherits too many environment variables.)
Also, they messed with Fink!! Fink doesn't work properly now. That makes me sad...
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
|
copy /usr/share/init/ from 10.1 to 10.2
sudo cp -R /usr/share/init /usr/share
Read /usr/share/init/tcsh/README will explain everything:
This directory contains some useful tcsh files.
In order to use this configuration:
echo "source /usr/share/init/tcsh/rc" > ~/.tcshrc
echo "source /usr/share/init/tcsh/login" > ~/.login
echo "source /usr/share/init/tcsh/logout" > ~/.logout
To do this system-wide, do the same instead to /etc/csh.cshrc, /etc/csh.login, a
nd /etc/csh.logout.
This will give you the exact shell that was in 10.1
command completions, l and ll, paths /usr/localbin etc
I really can't believe they left it all out!
l and ll really impressed me, and now its gone!
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @03:54PM (#1793)
|
|
 |
 |
 |
|
Open up a new terminal (which will start you in your home directory ie. "cd ~") Then use vi or another editor (emacs or pico) on the file .tcshrc
To add binary paths, add the line:
set path = ($path /usr/local/bin)
To add manpage paths, add the line:
setenv MANPATH $MANPATH":/usr/local/man"
To add more than one binary path just separte the different locations with a space. To add more than one manpage path separate them with a : (Also note where the "'s are in the line above)
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
|
/usr/share/tcsh/examples/README
read that, and it will get most of your default aliases back. 10.1 had a nice default set up shell, cd.. and ll were already there... 10.2 loses that and also loses command completion. If you read that file, it shows you how to set everything up again.. it worked perfect for me. and made me a much happier person about Jaguar....
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Sunday August 25, @02:05AM (#1841)
|
|
 |
 |
 |
I agree xinetd is much better. I've been using it for a couple years now (I think) on my Linux servers. I actually find that tcpserver has it's merrit and advantages.
I was just pointing out something I thought to be humorous... not that I use the file (which I don't).
Cheers,
-Alex
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @11:09PM (#1873)
|
|
 |
 |
 |
smaerty wrote:
"If you just installed it's probably because the database hasn't been built yet.
Run sudo /usr/libexec/locate.updatedb from Terminal to build the database."
Note that, as shipped in Jaguar, /etc/weekly won't
be able to update the locate database (which is located in /var/db/locate.database):
% ls -l /var/db/locate.database
-rw-r--r-- 1 root wheel 256 Jul 14 13:57 /var/db/locate.database
It instead needs to be owned by nobody and mode 444:
-r--r--r-- 1 nobody wheel 5249662 Aug 17 04:33 /Volumes/Mac OS X 10.1.5/var/db/locate.database
If you do
% sudo chown nobody /var/db/locate.database
% sudo chmod 444 /var/db/locate.database
You can then run the updatedb command (found in /etc/weekly) manually to populate the database for the first time (or wait for the weekly /etc/weekly run, of course).
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
Although it is possible to write Carbon apps that run on a UFS file system, most developers don't bother. UFS does not have resource forks, which until OS X hve been an ingrained part of Mac development. It will take many eyars before developers become comfortable with packaged apps and flat data-fork resource files.---
Reid Ellis, GmOne guy
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @10:03PM (#1890)
|
|
 |
 |
 |
|
no dot files so screew the unix heritage... is that what your saying? F* UNIX? Today OS X is built on dawin which is UNIX... your tcsh is unix too... . files are not for Mac OS X yes... but you know what you shell isn't part of OS X it part of darwin.
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @10:06PM (#1891)
|
|
 |
 |
 |
|
How in the heck do you copy a file from os 10.1.x to os 10.2? Do most people not copy over the old version of the OS to upgrade?
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @10:08PM (#1892)
|
|
 |
 |
 |
|
No you got that wrong... GNU darwin is dead!
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
|
Written-communication is truly an art. Get new brushes.I always do what comes next!
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @09:59PM (#1896)
|
|
 |
 |
 |
|
from the darwin developers list
In 10.2, the default tcsh init was disabled. You can make things
work much as they used to for your account like so:
touch ~/.tcshrc && echo 'source /usr/share/tcsh/examples/rc' >>
~/.tcshrc
touch ~/.login && echo 'source /usr/share/tcsh/examples/login' >>
~/.login
touch ~/.logout && echo 'source /usr/share/tcsh/examples/logout' >>
~/.logout
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Sunday August 25, @09:19PM (#1923)
|
|
 |
 |
 |
|
I like scp better. It is wicked fast, although i am not sure if I am running it native or via fink, lets see
[titan:~] phill% which scp
/usr/bin/scp
native!
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Saturday August 24, @12:46AM (#1939)
|
|
 |
 |
 |
I can understand if a major overhaul of the QUARTZ routines broke Xwindows. Let's just keep on eye on Apple, to make sure that standards never get forgotten or left behind.
. Mmm, Jaguar isn't as polished as David Pougue led us to believe, eh? (oh wait his article never really said anything about the technology did it? /gentle-dig )
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
I think the crux of the biscuit is more along the lines of "what else is different" as opposed to "how do I hack my .tcshrc?"
just my $0.02...
-C
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @01:59PM (#1996)
|
|
 |
 |
 |
|
"First on the list is improved support for the POSIX API, specifically thread signaling and I/O (pthread_kill, pthread_cancel, pread, pwrite). Get SysV IPC and semaphores, such as ‘ftok,’ in a single compatibility library to more easily port applications from Solaris or Linux. Reentrant variants of standard functions in the C library, such as ‘strtok_r,’ help you port thread-safe versions of UNIX applications. Newer applications expect functions such as ‘ncurses’ and ‘bzip2’ and the updated UNIX libraries now include them."
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
|
Set your threshold to 1. ACs post at zero by default, so the only AC posts you'll see at 1 have been modded up.
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
So much for selecting "plain text" in the post option!
For those still wondering, all the did was fix the work implemications to implications.
But the humor is now lost, thanks to MacSlash's bad "Plain text" translation. Geez! :)
-Alex
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @06:12PM (#15741)
|
|
 |
 |
 |
|
Ok, so they aren't _bonus_, but there's a 1000 updated man pages in Jav v 10.1.
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
File: /etc/inetd.conf
When running a diff between the new one and the .applesaved one, I get:
# you have a specific need for it and are aware of the possible implications.
Good to see that part of that $129 people are pay for in their "upgrade" went to fixing comment typosin obscure files that few (if any) will ever see.
heh.
-Alex
|
|
 |
 |
|
|
|
 |
|
 |
 |
|
 |
 |
 |
Press ctrl-x and agree to everything it asks you.
That sounds like a M$ EULA. Sorry, I'm just waiting for my copy of 10.2 to arrive.
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @05:46PM (#15754)
|
|
 |
 |
 |
|
In 10.2, the default tcsh init was disabled. You can make things work much as they used to for your account like so:
touch ~/.tcshrc && echo 'source /usr/share/tcsh/examples/rc' >> ~/.tcshrc
touch ~/.login && echo 'source /usr/share/tcsh/examples/login' >> ~/.login
touch ~/.logout && echo 'source /usr/share/tcsh/examples/logout' >> ~/.logout
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @05:26PM (#15761)
|
|
 |
 |
 |
|
Don't do this. 10.2 uses manpath (see manpath(1)) and thus /etc/manpath.config. In short: you set your path for binaries and /etc/manpath.config handles the relation between binary paths and man paths. In the default manpath.config, when you add /usr/local/bin to your path, /usr/local/man is automatically added to your manpath.
The setenv above will fail, because there is no MANPATH environment variable to begin with.
Gerben
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
copy /usr/share/init/ from 10.1 to 10.2
sudo cp -R /usr/share/init /usr/share
Read /usr/share/init/tcsh/README will explain everything:
This directory contains some useful tcsh files.
In order to use this configuration:
echo "source /usr/share/init/tcsh/rc" > ~/.tcshrc
echo "source /usr/share/init/tcsh/login" > ~/.login
echo "source /usr/share/init/tcsh/logout" > ~/.logout
To do this system-wide, do the same instead to /etc/csh.cshrc, /etc/csh.login, a
nd /etc/csh.logout.
This will give you the exact shell that was in 10.1
command completions, l and ll, paths /usr/localbin etc
I really can't believe they left it all out!
l and ll really impressed me, and now its gone!
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
10.2 has some great changes to the POSIX layer, but unfortunately, the thread-safe socket functions:
gethostbyaddr_r(), gethostbyname_r() are still missing.
This is kind of weird, because they do exist in *BSD.
Here's hoping we see them at some point...
|
|
 |
 |
|
|
|
|
|
 |
|
 |
 |
|
 |
 |
 |
Go into terminal and type:
pico .tcshrc
Enter in the following text: setenv PATH "/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin"
Press ctrl-x and agree to everything it asks you. That will add all vital paths into your... well... path.-- "An eye for an eye leaves us all blind." - Gandhi
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @04:44PM (#15910)
|
|
 |
 |
 |
Fink is broken? I am glad nothing important was broken...
AC -The other AC
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
even better. go to http://www.kornshell.com/ and follow the links to AT&T to download the one true kornshell. pdksh is one step up from useless, but two steps down from being a true ksh93 implementation
and, with a nice aqua gui for vim, why would you use anything else?mac os x - unix done up like a harlot
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @04:39PM (#15920)
|
|
 |
 |
 |
Fink is dead! woohoo!!!
AC
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Saturday August 24, @01:19AM (#15940)
|
|
 |
 |
 |
|
If I'm not mistaken, ssh is kerberized. At least, the 10.2 server documentation says that it's installation is kerberized.
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @11:29PM (#15943)
|
|
 |
 |
 |
|
Apple claims all this great Unix support but they don't offically support the standard X-based GUI environment, which is mainstream Unix and Linux for most desktops. Shame on Apple. If they aren't going to supprot X then they should do a Quartz/Aqua Tkinter so Python and Perl Tk work. They haven't done squat to support X and when someone works really hard at it, so many of us can run Python TK programs like Pil and use Tkinter GUIs they go ahead an break it. I really like my G4s and I really want to like Apple but they are making it very hard by thumbing their nose at Unix standard that they cold easily support in parallel with Aqua. Shame on them.
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @11:24PM (#15949)
|
|
 |
 |
 |
|
Finding joy in the breaking of programs others use simply because you do not? Come out of the closet, Windows user at heart that your are. You are scum.
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Saturday August 24, @12:09AM (#15952)
|
|
 |
 |
 |
|
It will be made to work soon enough, just dry those tears and be patient.
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @11:33PM (#15958)
|
|
 |
 |
 |
|
Yeah, but they changed the standard ftp client against the one from netbsd. There it is called lukemftp (The `lukem' comes from the account name of the NetBSD developer who wrote most of
the enhancements: Luke Mewburn)
command-line editing within ftp
command-line fetching of URLS, including support for:
- http proxies (c.f: $http_proxy, $ftp_proxy)
- authenticationy
context sensitive command and filename completion
• dynamic progress bar
• IPv6 support (from the WIDE project)
• modification time preservation
• paging of local and remote files, and of directory listings (c.f: `lpage', `page', `pdir')
• passive mode support, with fallback to active mode
• `set option' override of ftp environment variables
• socks4/socks5 support
• TIS Firewall Toolkit gate ftp proxy support (c.f: `gate')
• transfer-rate throttling (c.f: `-T', `rate')
Believe me, it is really cool!
Denis
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @07:24PM (#15960)
|
|
 |
 |
 |
|
Try typing 'set autolist ambiguous' and then banging on the Tab key. You can put that line into your tcsh file to always get that behavior.
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @07:26PM (#15961)
|
|
 |
 |
 |
|
Can anyone tell me if 10.2 comes with Kerberized r-commands (rsh, rlogin, ...)? Also, a Kerberized ssh would be great so I could retire the one I hacked together on 10.1.
|
|
 |
 |
|
|
|
 |
|
 |
 |
|
 |
 |
 |
And you do the touch command why?
output redirect (even with append) creates the file if it didn't exist. :)
So...
echo 'source /usr/share/tcsh/examples/rc' >> ~/.tcshrc
echo 'source /usr/share/tcsh/examples/login' >> ~/.login
echo 'source /usr/share/tcsh/examples/logout' >> ~/.logout
Cheers,
-Alex
|
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @10:09PM (#15999)
|
|
 |
 |
 |
|
 |
 |
|
 |
|
 |
 |
|
by
Anonymous Coward
on Friday August 23, @10:16PM (#16000)
|
|
 |
 |
 |
|
OS X is posix compliant yet... you will see them in time.
|
|
 |
 |
|
 |
|
 |
 |
|
 |
 |
 |
|
My favorite FTP client has been removed from Darwin! NcFTP was there before in Darwin as an earlier release, but seems to have been axed. No matter. I just went to http://www.ncftp.com/ and downloaded it. Installed without a hitch and everything works as expected. Maybe I'm not the only person who noticed this little omission!
|
|
 |
 |
|
|
|