Xserve colocation for MacSlash provided by   Digital Forest
MacSlash A Daily Dose of Mac News and Discussion
MacSlash
MacSlash
» FAQ
» Discussions
» Journals
» Messages
» Topics
» Authors

» Preferences
» Technorati Profile
» Older Stuff
» Past Polls
» Submit Story


Search MacSlash:
 







Listed on BlogShares

Team One Tickets

» Hannah Montana/Miley Cyrus at Houston Rodeo tickets
» Garth Brooks at Staples Center tickets
» Super Skins Party Tickets
» Penthouse Desire SuperParty Tickets
» National Finals Rodeo Tickets
» Cher Tickets Las Vegas
» Cirque du Soleil
» Las Vegas Hotels
» Houston Rodeo Tickets
» Using A Ticket Broker
» PBR Rodeo Tickets
» Joe Calzaghe vs Bernard Hopkins Tickets
» Oscar De La Hoya vs Floyd Mayweather Tickets
» De La Hoya Tickets
» Hanah Montana Tickets
» Joe Calzaghe Tickets
» Maxxis EnduroCross Tickets
» MAXIM Super Bowl Party
» How To Spot A Counterfeit Super Bowl Ticket


Shameless Plugs
» Mac Poker Site
» 2008 Democratic Primary Info


 
UNIX changes between 10.1.5 & 10.2
posted by acaben on Friday August 23, @01:25PM
from the its-all-the-little-things dept.
Darwin gurple writes "I've noticed that tcsh in Darwin 6.0 (OS 10.2) seems to be set up differently than in Darwin 5.5 (OS 10.1.5). Under 5.5 tcsh got its envrionment settings from /usr/share/init/tcsh/ . However, these collections of files don't seem to exist in 6.0 except in a collection of examples. I'm curious then how to go about setting up tcsh so that once again binaries in /usr/local/bin/ and man pages in /usr/local/man/ are once again in my path. I'm also curious as to what other big changes there are in the Darwin layer between 5.5 and 6.0 "

Apple to release live Jaguars during 100 minutes of Jaguar | 10.2 Security Update Before Release  >

 

 
MacSlash Login
Nickname:

Password:

[ Create a new account ]

Related Links
  • gurple
  • More on Darwin
  • Also by corey
  • This discussion has been archived. No new comments can be posted.
    UNIX changes between 10.1.5 & 10.2 | Login/Create an Account | Top | 100 comments | Search Discussion
    Threshold:
    The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
    Re:Edit .tcshrc (Score:2, Informative)
    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....
    Re:Some of the highlights (Score:1)
    by arrakis on Friday August 23, @03:43PM (#1746)
    User #7640 Info
    Cool upgrade but why the locate command seems to not work?
    Re:Some of the highlights (Score:1)
    by smaerty on Friday August 23, @03:48PM (#1747)
    User #5250 Info
    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.

    BAH! ksh works just fine! :) (Score:1)
    by tb42 on Friday August 23, @03:12PM (#1764)
    User #5241 Info
    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 ...
    Re:BAH! ksh works just fine! :) (Score:1)
    by gidds (reversethis-{ku.oc.xic.sddig} {ta} {hsalscam}) on Friday August 23, @06:46PM (#1783)
    User #688 Info | http://www.cix.co.uk/~gidds/
    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/
    Re:Check It Out... (Score:1)
    by seven5 on Friday August 23, @04:00PM (#1788)
    User #6108 Info
    umm yeah.... didn't i just say that?!?
    tcsh problems in Darwin 6.0, etc.. (Score:1)
    by terevos on Friday August 23, @04:21PM (#1790)
    User #6024 Info
    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...
    Re:Check It Out... (Score:0, Redundant)
    by tek1 on Friday August 23, @03:23PM (#1792)
    User #7639 Info
    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!
    Setting path and MANPATH (Score:0)
    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)
    Check It Out... (Score:5, Informative)
    by seven5 on Friday August 23, @02:06PM (#1812)
    User #6108 Info
    /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....
    Re:don't use inetd - use xinetd (Score:0)
    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
    Re:Some of the highlights (Score:1)
    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).
    Re:UNIX ?? (Score:1)
    by clith (rae@tnir.org) on Saturday August 24, @10:00PM (#1888)
    User #980 Info | http://tnir.org/~rae/
    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
    Re:Edit .tcshrc (Score:0)
    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.
    Re:Check It Out... (Score:0)
    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?
    Re:tcsh problems in Darwin 6.0, etc.. (Score:0)
    by Anonymous Coward on Friday August 23, @10:08PM (#1892)
    No you got that wrong... GNU darwin is dead!
    Re:Edit .tcshrc (Score:1)
    by homely (ejmjensen@home.com) on Friday August 23, @10:09PM (#1893)
    User #7642 Info | http://www.angelfire.com/mac/devoted/
    Written-communication is truly an art. Get new brushes.I always do what comes next!
    Re:tcsh problems in Darwin 6.0, etc.. (Score:0)
    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
    Re:Some of the highlights (Score:0)
    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!
    QEx (Score:0)
    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 )
    Re:Edit .tcshrc (Score:1)
    by SodaPhish on Friday August 23, @01:52PM (#1995)
    User #7237 Info | http://sodaphish.com
    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
    from apple's site (Score:3, Informative)
    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."
    Re:If Fink is broken that really ticks me off (Score:2)
    by sherm on Saturday August 31, @09:37PM (#2202)
    User #4921 Info
    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.
    Re:One VERY important change (Score:1)
    by diverman on Friday August 23, @06:37PM (#15740)
    User #7321 Info
    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
    1000 bonus man pages. (Score:0)
    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.
    One VERY important change (Score:1)
    by diverman on Friday August 23, @06:32PM (#15742)
    User #7321 Info
    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
    And now properly formatted (Score:0)
    by Anonymous Coward on Friday August 23, @05:47PM (#15744)
    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

    Re:Edit .tcshrc (Score:2, Funny)
    by fidget42 on Friday August 23, @02:50PM (#15752)
    User #6623 Info
    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.
    From the darwin-developement list (Score:0)
    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
    Re:Setting path and MANPATH (Score:0)
    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
    Re:Check It Out... (Score:1)
    by tek1 on Friday August 23, @03:25PM (#15770)
    User #7639 Info
    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!
    Lots of nice UNIX changes but... (Score:1)
    by outlyer on Friday August 23, @05:19PM (#15794)
    User #5915 Info | http://www.punknews.org/
    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...
    Some of the highlights (Score:4, Informative)
    by Anonymous Coward on Friday August 23, @01:50PM (#15887)
    The most notable changed in the 10.2 Darwin layer are:

    • KTRACE support. Allows syscall tracing of programs for debugging purposes.
    • /bin/bash !! :)
    • /usr/bin/killall (what a relieve)
    • Python 2.2 (some say this is a good thing) :)
    • cups!
    • ftp filesystem support (and pretty fast too)
    • and various other things
    People will like it!

    Re:Edit .tcshrc (Score:1, Informative)
    by Anonymous Coward on Friday August 23, @01:46PM (#15891)
    Just for safety, make it pico ~/.tcshrc in case you're not in your home directory.

    Scott

    Edit .tcshrc (Score:3, Informative)
    by milk (reversethis-{gro.yxeshcumoot} {ta} {klim}) on Friday August 23, @01:33PM (#15904)
    User #2653 Info | http://www.toomuchsexy.org/
    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
    Fink broken? (Score:0)
    by Anonymous Coward on Friday August 23, @04:44PM (#15910)


    Fink is broken? I am glad nothing important was broken...

    AC -The other AC
    Re:BAH! ksh works just fine! :) (Score:2, Insightful)
    by miaomix (miaomix at mac dot com) on Friday August 23, @04:49PM (#15912)
    User #807 Info
    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
    Re:tcsh problems in Darwin 6.0, etc.. (Score:0)
    by Anonymous Coward on Friday August 23, @04:39PM (#15920)

    Fink is dead! woohoo!!!

    AC
    Re:Kerberized r-commands? (Score:0)
    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.
    If Fink is broken that really ticks me off (Score:0)
    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.
    Re:tcsh problems in Darwin 6.0, etc.. (Score:0)
    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.
    Re:If Fink is broken that really ticks me off (Score:0)
    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.
    Re:NcFTP is gone! (Score:0)
    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
    Re:tcsh problems in Darwin 6.0, etc.. (Score:0)
    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.
    Kerberized r-commands? (Score:0)
    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.
    Re:Some of the highlights (Score:0)
    by Anonymous Coward on Friday August 23, @07:48PM (#15962)
    How about the tcl/tk frameworks? (i.e. for Aqua, not X11.)

    > python 2.2

    Does python include all that's necessary Tkinter (under Aqua), assuming tcl/tk exists...?

    Re:And now properly formatted (Score:1)
    by diverman on Friday August 23, @07:16PM (#15964)
    User #7321 Info
    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
    ftp filesystem support? (Score:0)
    by Anonymous Coward on Friday August 23, @10:09PM (#15999)
    cool! how?
    Re:Lots of nice UNIX changes but... (Score:0)
    by Anonymous Coward on Friday August 23, @10:16PM (#16000)
    OS X is posix compliant yet... you will see them in time.
    NcFTP is gone! (Score:1)
    by spodieodie on Friday August 23, @07:56PM (#16006)
    User #7417 Info
    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!
    Re:Kerberized r-commands? (Score:1)
    by bservo on Wednesday August 28, @11:01PM (#16009)
    User #1963 Info