SSHFS for OSX 10.8 (Mountain Lion) [closed] - ssh

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
In the past I used SSHFS to mount drives, so I could easily work on remote machines with software from my machine. However, when I was at the MacFUSE project page, I noticed that SSHFS has been long since deprecated.
What are people using with Mountain Lion to mount drives? Is it built-in to OSX yet, or has some other project completely replaced the functionality brought to us by SSHFS?
Any suggestions are greatly appreciated.
EDIT: In the past I used "SSHFS GUI" to mount drives. It looks very similar to the the Finder >> Go >> Connect to server... interface.
+1 -> m01 - I'm currently using your solution, but if anyone knows a GUI I would love to hear about it.

OSXFUSE seems to work. I just downloaded the two OSXFUSE and SSHFS packages from http://osxfuse.github.com (the links are on the right hand side), and ran:
sshfs user#host:/dir /mnt/somelocaldirectory
EDIT: if you want a GUI, you might want to try sshfs-gui, though I haven't tried it myself.
Personally, I'd use Cyberduck, though it doesn't technically do the same as what SSHFS does, but maybe it's enough for your purposes. It will let you browse files that you can access via an ssh connection, and seems to have options for editing them as well.

According to the OSXFuse wiki, you can use Macfusion with a simple tweak, e.g. moving the old sshfs-static and linking it to the new one by OSXFuse as below. I've done this and it works fine.
cd /Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources
mv sshfs-static sshfs-static.orig
ln -s /usr/local/bin/sshfs sshfs-static

Back in the Leopard days, I was using SSHFS as well, and it worked ok, as long as you didn't push it too hard (large files or spotty network coverage).
I just setup Expandrive on my new Retina MBP and it works pretty well. (auto re-connects on wake, no hiccups). All I had to do was to register my SSH agent ssh-add -K for the private key, and it's been smooth sailing so far.
I've tried on both Lion and Mountain Lion, and it seems to work pretty well. For $40, it's totally worth it to me.

Related

How do I Create a Chromium Distribution Package for Windows? [duplicate]

This question already has an answer here:
How to distribute Chromium binary after compiling? Directory has over 39GB
(1 answer)
Closed 5 months ago.
I really need some help on what I thought was a simple question: How do I Create a Chromium Distribution Package for Windows?
This documentation is exceptional:
Checking out and Building Chromium for Windows
https://chromium.googlesource.com/chromium/src/+/main/docs/windows_build_instructions.md
Now that I have a build, how do I distribute it to others?
I guess I could zip up the entire "chromium/src/out/default" but that directory is 51.6 GB !!!
Is there any documentation on what is needed in a Chromium distribution package for Windows or a simple script that automates the process? I was certain this would be an "easy find" on Googe or Stack Overflow, but not so far.
Thx in advance.
The answer was provided by Rob Rich at https://chromium.woolyss.com/
try building this target:
autoninja -C out\Default mini_installer.exe
That builds an Windows installer executable and a compressed 7z file in the output directory.
The installer is silent, so click it and wait a few seconds to maybe a minute on slower systems for the install to complete.
Alternatively, the 7z archive can be uncompressed and run from whatever directory if desired.
It would be good to add this information to the Chromium documentation (I have notified the Chromium DEV group).
If you Google on the phrase "autoninja -C out\Default mini_installer.exe" you literally get zero results.
There is a similar question on Stack Overflow with a similar response. I am going to keep this question posted in hopes that it will be picked up by the Google machine.

Install Rakudo on termux/android [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
Hi everyone I need help how to install rakudo in termux aarch64
I have tried different ways and got different errors, first try:
Second try:
Update See https://borg.moe/building-rakudo-perl-6-on-termux.html
I don't know Termux but thought the following was better than no answer. Perhaps you already know the following, in which case this is just for later readers; if you actually know more, please edit your question and add what else you know.
The closest target for standard Rakudo packages is GNU+Linux, but Termux's own doc emphasizes its differences from Linux. The bottom line is you're going to have to manually patch/compile/build to install on Termux.
The termux user its-pointless claimed they manually built Rakudo, for aarch64, in 2018 and again in 2019, and, per a screenshot in a recent (2021) tweet, did so again for a 2020.05 package, at least for the MoarVM backend.
Perhaps you and/or others can use the existing packages and/or more recent ones and/or build on their success.
Googling
I don't know Termux so don't know where one would look for a more recent package beyond google.
A google for termux raku OR perl6 OR "perl 6" yields some matches.
That's how I discovered some open Raku issues related to Termux, and many comments by its-pointless in one of them, culminating in 2018 with this comment, and another comment leading to info for installing a 2019 moarvm on termux/aarch64 and then a 2019 Rakudo atop that (which depends on moarvm).
How hard are you willing to try?
I personally don't have any of the distro related skills needed to be able to help you to get Rakudo built. But it seems several folk managed to get a working Rakudo with the help of its-pointless. So perhaps you will be able to do so too.
If you have patience, like the folk in the issue I linked, there might be other Rakoons capable and willing to try to help you get Rakudo building on your system.
Termux
While Termux is a Linux, it's not a GNU+Linux. From "Differences from Linux", with my added emphasis:
Termux does not follow Filesystem Hierarchy Standard unlike majority of Linux distributions. You cannot find directories like /bin, /etc, /usr, /tmp and others at the usual locations. Thus, all programs must be patched and recompiled to meet requirements of the Termux environment otherwise they will not be able to find their configuration files or other data.
I presume the packages its-pointless built include the requisite patching, at least as of 2019.
Your first try
[CRIT] No /etc/os-release found. Are you sure you're on a sane GNU+Linux distribution?
A google for "/etc/os-release" reveals:
/etc/os-release
It relieves application developers who just want to know the distribution they are running on to check for a multitude of individual release files.
It provides both a "pretty" name (i.e. one to show to the user), and machine parsable version/OS identifiers (i.e. for use in build systems).
I think a takeaway from your first try is that the build systems of the "official" Rakudo packages presume that a Linux is a GNU+Linux. Termux isn't. So that approach isn't going to work.
Somehow you got past the problem reported in the first try. What did you do?
Second try
At a guess your second try is using the same packages. So it's not going to work.
n't exec "./try": Permission denied at build/probe.pm line 935. Unable to run probe, so something is badly wrong ....
Again, I think the root problem is that you're trying to install a package that presumes a GNU+Linux, which won't work because Termux isn't a GNU+Linux.

Sshfs, Textmate & Rails project, very slow

I am a Linux user and I recently bought a MAC.
I work on a big project that needs to run on a dedicated server.
With Gedit and SSHFS, I had no problem to load the Rails project, same when I create a new controller/model from the command line, refreshing the files tree of Gedit is instantaneous, no slowdowns.
I installed Homebrew, then fuse4x and sshfs. I mount my server like on linux:
sshfs my.server.tld:/home/me Sshfs/my.server.tld/ -o 'volname=MyServer'
so far so good.
I open Textmate then I load my project ... disaster, two minutes+ to load the whole project
I'm switch another window... back to textmate... refresh again with the focus. But fixed with Remate after some research.
But now when creating new resources from command line, I need to refresh whole project for getting new files and it can take two minutes and more
Tried expandrive, same issue.
What the problem ? Textmate ? Sshfs on mac ?
I have googled long time, and most of people doesn't seem to have slowdowns with sshfs
I am a little depressed I had always dreamed to use TextMate !
EDIT:
So, this is definitely TextMate.
I have tried with Sublime Text 2 and it work very very good (better than gedit :p)
Save/open/project refresh are very fast
And even with an NFS share through a VPN it work good.
Both.
TextMate can be very slow and beachball-happy when working over slow networks or networks with big latency. Some years ago, when Fuse was ported to Mac OS X, a plugin was created that inhibited a few features to make TextMate more responsive in such cases. Here it is, I've never used it, though, so no guarantees.
I've never managed to enjoy using SSHFS on Mac OS X: slow save, slow copy, slow open… it was never worth the trouble, even on local network or using Expandrive.
You should try to start textmate from a different directory, so that it writes temp files to local disk.

Aircrack Ch: -1 Issue on Arch Linux [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 13 days ago.
Improve this question
Currently running Arch Linux, I decided to install Aircrack-ng and try it out on my own wireless network. So I installed it, and I get an error upon Aireplay that states something along the lines of
Either patch this, or use the flag --ignore-negative-one
So I used the flag at first. It seems to work, but I can't get a handshake. This might just be me, but I wasn't sure. So I decided to find that patch. I went to Aircrack's website and found it. I followed the instructions and it was fine up until "make". At that point, it outputted:
config.mk:199: "WARNING: CONFIG_CFG80211_WEXT will be deactivated or not working because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface like iwconfig will not work. To activate it build your kernel e.g. with CONFIG_LIBIPW=m."
make -C /lib/modules/2.6.38-ARCH/build M=/home/kyle/Desktop/compat-wireless-2011-05-16 modules
make: *** /lib/modules/2.6.38-ARCH/build: No such file or directory. Stop.
make: *** modules Error 2
What can I do to fix this so I can use Aircrack?
uname -r outputs "2.6.38-ARCH" (without quotes).
Assuming you are using the default arch linux kernel (i.e. not a patched one, or one that you've compiled yourself), this would appear to be a bug in the aircrack package, so I would suggest you report it here.
I don't know much about aircrack, but based on the error report I think that there are two ways you may be able to fix it yourself.
It looks like CONFIG_CFG80211_WEXT is a configure option in the patch which you may be able to disable. However, this might remove important functionality.
You could try to compile your kernel with CONFIG_LIBIPW=m, as suggested. This is not as difficult as it sounds, but it does mean that you will need to maintain the kernel yourself instead of relying on pacman to do it for you. For a guide on this, see https://wiki.archlinux.org/index.php/Kernels and https://wiki.archlinux.org/index.php/Kernels/Compilation/Arch_Build_System.
Doesn't aircrack require that you have patched drivers for your network card? Have you confirmed that your card has a chipset that is usable ?
It seems that you are using the Wireless Drivers 'compat-wireless-2011-05-16', I would check that these arew suited to your Wireless Card. You may require MadWiFi Drivers depending. What is your Wireless Card Make/Model?

Resources for Basic Unix System Administration (OSX) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
After, reading and understanding Dan Benjamin's post about installing Ruby, Rails, etc. on OSX (Leopard), I really jumped at using usr/local, maybe at my peril and without understanding it fully. I've had no problem running Rails on my local machine, but I still feel like I don't quite wrap my head around these basic sysadmin practices.
As an example, when I run which git the path my git installation is running from is /usr/local/git/bin/git -- does that seem right?
I've learned the bulk of my programming thanks to JavaScript, and I haven't really had to go deeply under the hood of the Mac, but I'm very anxious to use these command line tools and scripts.
Can you recommend a good resource for documentation on basic Unix system administration for beginners (preferably for the Mac-set)?
I realize this might not be totally programming related, but I believe basic shell and command-line scripting knowledge is pretty crucial and I'd like to feel confident moving forward.
For improving your basic shell and command-line scripting knowledge, you don't need to get into sysadmin tasks. The nearest source of information (though not the most friendly at first) is the man command. Try man bash or man intro. Start by writing small shell script utilities.
About your question on git installation, you can install anything anywhere. But recommended directories are /usr/local/bin and /opt/bin for system-wide tools and ~/bin for your private tools. Usually tools create their own subdirectory in recommended directories where they put doc and resources, such as your /usr/local/git.
For online resources, I assume that you already know how to find the Apple web site and how to use Google.