5 ms·
Unix is weird because it evolved organically and without a unified direction. But it remains because power and familiarity beat user experience. Yes, the "pure
by raverbashing 10y ago
Unix is weird because it evolved organically and without a unified direction. But it remains because power and familiarity beat user experience.
Yes, the "pure" Unix tools are awful, GNU improved on their usability a lot. But they're still a simple command that does something.
Except Autotools. Those should burn in eternal damnation.
- pjmlp 10y agoExcept that GNU is Not UNIX and many companies still have UNIX boxes without GNU on them.
- dijit 10y agothat's not necessarily true as much as you think. I worked in a Solaris shop that had gnu coreutils and packages installed everywhere with a <g> prefix, and another place running openbsd which had the same. gecho, gcat, gln etc; I'm pretty sure gnu coreutils can be built on any Unix-like OS.
- pjmlp 10y agoIt depends on the IT guys, I have occasionally sshed into boxes where that wasn't the case and compiling wasn't an option.
- SSLy 10y ago- compile stuff statically on your own hw - base64encode it - paste the encoded text over ssh to a file - base64decode it - chmod +x the decoded file - … - profit
- pjmlp 10y ago- Mount $HOME as noexec - Disable execution bit for all directories for home - If the UNIX variant allows it, jail/contain home for each user session - Punish users or their employer if a consulting firm severely that bypass IT regulations
- jff 10y ago- If Linux, find the current local privilege escalation bug, get root, and burn it all to the ground.
- SSLy 10y ago> - Mount $HOME as noexec /usr/bin/env $your_binary
- klibertp 10y agoYou also mentioned these points in your other comments here, but, to me, they look over the top to the point of being paranoic. That's probably because I lack any serious experience in admin side of things, nor of working in environments where such measures would be required. So I wanted to ask: where such a level of security would be required? And also, what attacks does it defend from?
- raverbashing 10y agoIt should be "a lot of fun" to try to cross compile an AIX or Solaris binary on a Linux machine You'll probably go insane doing it (Linux x86 compiling to Linux ARM/PPC/etc is doable and done quite frequently)
- raverbashing 10y agoCorrect. And the last time I came across one of those I compiled and used modern tools. Because even 20 year old Linux versions had tab complete and a vi that worked with directional keys
- pjmlp 10y agoAssuming one has the access rights for it. I do occasionally ssh into boxes were I am a lame user without compilers installed.
- raverbashing 10y agoYeah, it's not always possible to compile your own tools (At least they have ssh and not telnet) What you can sometimes do is pick an alternate shell or find some other editor someone 'left lying around' (even typing vim instead of vi can give you something different) And sometimes "tab completion" works with \ or ESC or something similar, I don't remember exactly
- pjmlp 10y ago> At least they have ssh and not telnet Well I recently went into ones that only had ssh, but then files were also copied over plain FTP or NFS.
- raverbashing 10y agoOh yeah What was more amazing was people using X for accessing a terminal. You know, because that's how someone told to use it, so they just went with the flow.
- mcguire 10y agoSure it is. Heck, it's not even that hard to build gcc as a cross compiler, if some idiot hasn't installed a compiler.
- 10y ago
- astine 10y agoHaving worked extensively with some of those non-GNU Unixes, I feel that the difference is almost academic. Even if your box comes with nvi rather than vim, it probably still has Perl, and the bash shell is likely installed if not set as the default. Overall, the feel is not that different.
- pjmlp 10y agonvi is already an improvement over plain vi.
- mi100hael 10y ago"Autotools is the worst form of build system, except for all those other forms that have been tried from time to time." -Churchill, probably In all seriousness, what's your preferred alternative? Seems like Autotools is a pain, but it gets the job done and is widely available. I haven't found a build system for C projects that is: - Less complicated - Available from default package repos so others who clone don't have to track down some esoteric package themselves - Free software that runs standalone on a shell, not in an IDE or whatever
- DonHopkins 10y agoAs if I needed to build the latest version of Gnu cat on a Microvax.
- heinrich5991 10y agoYou could try cmake. :) It also has better Windows support than autotools.
- mi100hael 10y ago> - Less complicated ;) cmake is actually exactly what I had in mind when I wrote that. Maybe I haven't used it enough, but I find it basically just trades Makefile.am everywhere for CMakeLists.txt everywhere.
- mcguire 10y agoThere are two ways to do what autotools do. One is the autotools way. The other is the way every other similar tool does it (to my knowledge): the imake way. Autotools sucks. But everything else sucks more. There's a life lesson there, somewhere.
- jff 10y agoYou should be able to build well-written code on a variety of modern systems using nothing more than a Makefile, or even just a shell script. See plan9port for an example of the latter.
- 10y ago
- hzhou321 10y agoSince when "evolve organically" become bad? Unix was created as a tool to solve unbounded problems. It is not possible to attempt to have a complete solution when the problems are unbounded. Today, vast computer users have bounded problems -- surfing webs, messaging, playing games. With the bounded problem, it is possible to have complete solutions -- Chromebook, iPad, etc. are for them. They are not supposed to deal with Unix just like drivers are not supposed to understand transmissions or engines. Engineers sit in between the components, tools and the products, consumers. If the average computer users have problems, blame engineers, not the tools or framework that engineers deal with. And for engineers, they still appreciate today that the underlying tools and frameworks are created versatile enough to solve unbounded problems. And for some comsumers would like to think they are smart (or cheap) and would like to bypass engineers, then they shouldn't complain or they are mixing up their problems.
- seanp2k2 10y agoThe thing is that it does have (or rather can be made to have) a good user experience for experienced users. The problem is the learning curve, and to a lesser extent, compatibility. MacOS is easy enough for non-techies to use while still having fast alt-tab, readline shortcuts in almost all apps (OS level I believe), and it's unixy-enough that we get things like homebrew while also getting things like Photoshop as others have mentioned. Windows is OK for non-techies (being generous but there aren't that many real choices if you're e.g. Buying a computer from a store and don't know how to install an OS) but you really need a VM to do some types of work (though the Ubuntu subsystem is pretty awesome and now we have mobaxterm instead of just cmd.exe and putty). Linux is fine for techies / power users but requires customization to get to the productivity levels that Mac gets to (IMO). Non-techies wouldn't be able to achieve the same thing or probably even install it in the first place. You can buy a Mac in a box from a store and pay someone at the store to help you if it breaks or you don't understand how to do something. You can develop iOS apps on it. It also looks cool to people who don't know any better and people who do. Daft Punk and almost every other musician who works with computers on a stage uses Mac. They all have their place and I run all 3 at home (Win desktop for gaming and some browsing, Linux laptop for personal programming and browsing + travel, Linux desktop for my home electronics lab bench mostly for embedded development, Mac laptop for work, FreeBSD for a NAS, MIPS Debian for router)
- klibertp 10y ago> while still having fast alt-tab Yes, but it also has a slow, not customizable animation when changing desktops, uses arbitrary keybindings you can't remap easily and generally imposes lots of choices on its users without any way to opt out from them. I was forced to switch from a very personalized Fedora/StumpWM setup to Mac OS and it was a disaster. For the first time in decades(!) I had to pay for external programs to customize things. And even with these, there are features I simply can't disable. It's been seriously harsh. It looks like the entire platform has lost all interest in customizability but, for me, customizability is one of the basic requirements for any tool.
- x0 10y ago> readline shortcuts in almost all apps (OS level I believe) Sorry but OH MY GOD. After 4 years of obsessive, hours-a-day usage of this macbook, I never realised I could do any of this. Literally just ctrl-K'd in Chrome's address bar. This is just next level. THANK YOU.