Any plan to port a Linux (debian/Ubuntu) version

83 views
Skip to first unread message

Gauvins

unread,
Mar 1, 2020, 9:38:47 PM3/1/20
to BBEdit Talk
I am in the process of building a Linux workstation but will most likely keep several macs as well. I like BBedit very much but will be vulnerable to a multi-platform equivalent.

Any plan to port BBedit?

---

I suspect that other users may follow a similar route. I use BBedit to code in Python (mostly) and web stack. Can't afford MacPro wheels so jumping ship.

Rich Siegel

unread,
Mar 1, 2020, 9:39:13 PM3/1/20
to bbe...@googlegroups.com
On 3/1/20 at 9:36 PM, gauv...@gmail.com (Gauvins) wrote:

> I am in the process of building a Linux workstation but will most
> likely keep several macs as well. I like BBedit very much but will be
> vulnerable to a multi-platform equivalent.
>
> Any plan to port BBedit?

Nope.

R.
--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <https://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

Marshall Clow

unread,
Mar 2, 2020, 10:06:42 AM3/2/20
to BBEdit-Talk
On Mar 1, 2020, at 6:36 PM, Gauvins <gauv...@gmail.com> wrote:
>
> I am in the process of building a Linux workstation but will most likely keep several macs as well. I like BBedit very much but will be vulnerable to a multi-platform equivalent.
>
> Any plan to port BBedit?

I use BBEdit to edit files on a Ubuntu system every day. (over ssh)

— Marshall

Stephane Gauvin

unread,
Mar 2, 2020, 10:41:01 AM3/2/20
to bbe...@googlegroups.com
Interesting -- you mean from a Mac running BBedit, right?

Care to elaborate a bit more? My (extermely limited) experience with ssh is to run mySQL queries via CLI. had no idea that BBedit could be used. 

I was planning to : (a) sync files between a day-to-day mac and Ubuntu server via Dropbox (I do the same between my d2d and a remote MacPro server; or (b) learn how to rsync via ssh.   


--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/7D4836E9-88DB-48E8-9AA5-09D4EF6D80EA%40gmail.com.

François Schiettecatte

unread,
Mar 2, 2020, 10:50:13 AM3/2/20
to bbe...@googlegroups.com, Stephane Gauvin
BBEdit has the option of opening files from a remote location using FTP/SFTP, you can also set up bookmarks for frequently used servers. I imagine this is well documented in the BBEdit documentation.

I run netatalk on my linux machine so I can mount linux file systems / directories on my Mac:

http://netatalk.sourceforge.net

I don’t know if this is included in the Ubuntu repos but it is in the CentOS repos (I run CentOS).

And there is also ExpanDrive which I have used on and off:

https://www.expandrive.com

Cheers

François
> To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/CAJOyUQPYza2X35YTkfa_3jL8x4KUpcjk7Ewa_kwNT_LGW0eQCg%40mail.gmail.com.

Rod Buchanan

unread,
Mar 2, 2020, 10:55:45 AM3/2/20
to 'Duane Murphy' via BBEdit Talk

Look under the "File" Menu

Open from FTP/SFTP Server...

I've been using this to edit files on AIX/Linux servers for as long as I've used BBEdit.


Steve deRosier

unread,
Mar 2, 2020, 11:09:09 AM3/2/20
to bbedit, s...@gauvin.net
I do this too - using BBEdit to edit files on my Linux boxes. There's
three primary methods I use:

1. I have an NFS export on my Linux box and mount it on my Mac. From
there, working with files is exactly the same as if they were local.
I've sort of fallen out of this practice however due to a nasty
shutdown bug in OSX as well as the fact I'm doing a lot of editing via
VPNs remotely now.

2. For simple one-offs, I have a script that I have on my Linux boxes
that lets me type `bbedit <filename>` and then it ssh's back to my Mac
to issue the command to tell bbedit to open the relevant file via
ssh/sftp.

3. For long-term projects, I create a new project and open an SFTP
browser and then drag the "files" from the SFTP browser into the
project bar. For subdirectories, I create a collection (sometimes
nested) for each subdirectory I care about. Depending on the size of
the project this can be time consuming, but for big projects I tend to
do such as I need pieces instead of the whole directory structure at
once. One of these days I intend to write myself a script that will
let me import an entire remote file structure this way, but I've never
gotten around to it.

My use case - I'm primarily an embedded Linux developer, largely
focused on the Linux WiFi stack and kernel itself. Nearly 100% of my
work _must_ be done on Linux boxes. However, I find OSX as a much
more stable and feature-rich day-to-day desktop environment and a
better environment for me to do my Linux work.

For my BBEdit command, you can add the following to your .bashrc on
each remote linux host:

export REMOTEHOST=`echo $SSH_CLIENT | cut -d ' ' -f 1`
export HOSTIP=`echo $SSH_CONNECTION | cut -d ' ' -f 3`
function bbedit {
# bbedit won't open a remote file via sftp if it doesn't
exist. So, if it's a new file
# create it, call bbedit to open, and then kill it.
FCREATED=0
if [ ! -e "$PWD/$1" ]
then
touch "$PWD/$1"
FCREATED=1
fi

ssh derosier@$REMOTEHOST /usr/local/bin/bbedit -c -u
--front-window "sftp://$USER@$HOSTIP/$PWD/$1"

# The above call will background and return immediately. The
file will open in bbedit
# but since we've created it, and we don't want to leave it
around, we kill it right away.
# If the user saves it, it gets recreated and content is
saved. If not, there's no file,
# so we're cool too. It's a bit odd, but it works.
if [ "$FCREATED" -eq "1" ]
then
rm "$PWD/$1"
fi
}
function bbresults {
ssh derosier@$REMOTEHOST /usr/local/bin/bbresults
}


Obviously adjust to your own username, and it's helpful to be using
key-based auth and multi-master on both sides. I use the function
`bbresults` to pipe build results to in order to bring them up in a
bbedit results window. It depends on the situation if it works well.

For using cscope, you need a script:
https://bitbucket.org/derosier/home_bin/src/master/bbeditcscope
and thus in your .bashrc:

export CSCOPE_EDITOR=bbeditcscope

Hopefully that's of some usefulness to you. Good luck!

- Steve
> To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/CAJOyUQPYza2X35YTkfa_3jL8x4KUpcjk7Ewa_kwNT_LGW0eQCg%40mail.gmail.com.

dke...@hiwaay.net

unread,
Mar 2, 2020, 12:30:06 PM3/2/20
to bbe...@googlegroups.com

On Mar 1, 2020, at 8:36 PM, Gauvins <gauv...@gmail.com> wrote:

> I am in the process of building a Linux workstation but will most likely keep several macs as well. I like BBedit very much but will be vulnerable to a multi-platform equivalent.
>
> Any plan to port BBedit?

I use SVN for anything important. Checkout the files on Mac, edit, submit, then checkout on the target machine, repeat as necessary.

--
David Kelly N4HHE, dke...@HiWAAY.net
============================================================
Whom computers would destroy, they must first drive mad.

Charlie Garrison

unread,
Mar 2, 2020, 5:23:46 PM3/2/20
to BBEdit-Talk

On 2 Mar 2020, at 14:04, Marshall Clow wrote:

I use BBEdit to edit files on a Ubuntu system every day. (over ssh)

Are you using rbbedit for that?

-cng

--

Charlie Garrison                   <cha...@garrison.com.au>
Garrison Computer Services      <http://www.garrison.com.au>
PO Box 380
Tumbarumba NSW 2653  Australia

Charlie Garrison

unread,
Mar 2, 2020, 5:25:53 PM3/2/20
to bbe...@googlegroups.com

On 3 Mar 2020, at 2:47, François Schiettecatte wrote:

And there is also ExpanDrive which I have used on and off:

https://www.expandrive.com

Note, rbbedit has support for ExpanDrive as well.

Charlie Garrison

unread,
Mar 2, 2020, 5:28:52 PM3/2/20
to bbedit

On 3 Mar 2020, at 3:08, Steve deRosier wrote:

2. For simple one-offs, I have a script that I have on my Linux boxes
that lets me type `bbedit <filename>` and then it ssh's back to my Mac
to issue the command to tell bbedit to open the relevant file via
ssh/sftp.

This is how rbbedit works. But offers different methods (not just ssh/sftp) for transferring files from linux box to BBEdit workstation.

Jan Erik Moström

unread,
Mar 3, 2020, 8:31:42 AM3/3/20
to bbe...@googlegroups.com
On 2 Mar 2020, at 16:31, Stephane Gauvin wrote:

> Care to elaborate a bit more? My (extermely limited) experience with
> ssh is
> to run mySQL queries via CLI. had no idea that BBedit could be used.
>
> I was planning to : (a) sync files between a day-to-day mac and Ubuntu
> server via Dropbox (I do the same between my d2d and a remote MacPro
> server; or (b) learn how to rsync via ssh.

Sometimes I use Transmit for just this, I launch Transmit, browse and
find the files I want to edit and just double-click on them to open them
in BBEdit. For example: the last month or so I've been coding using
Haskell, I haven't bothered to install Haskell on my machine instead I
connect the a linux box using Transmit, edit in BBEdit and run the
programs via iTerm.

Same thing for come course web sites, host on linux, edit in BBEdit.

(For some reason I've never gotten around to using the built-in SFTP
feature in BBEdit)

= jem

Darren Duncan

unread,
Mar 4, 2020, 7:30:22 AM3/4/20
to bbe...@googlegroups.com
On 2020-03-01 6:36 p.m., Gauvins wrote:
> I am in the process of building a Linux workstation but will most likely keep several macs as well. I like BBedit very much but will be vulnerable to a multi-platform equivalent.
>
> Any plan to port BBedit?
>
> I suspect that other users may follow a similar route. I use BBedit to code in Python (mostly) and web stack. Can't afford MacPro wheels so jumping ship.

The MacPro is a very niche product, intended for those doing video editing and
such. For web developers one of the other Mac models works perfectly well and
is a lot less expensive. -- Darren Duncan

Darren Duncan

unread,
Mar 4, 2020, 7:30:22 AM3/4/20
to bbe...@googlegroups.com
On 2020-03-02 9:28 a.m., dke...@hiwaay.net wrote:
> I use SVN for anything important. Checkout the files on Mac, edit, submit, then checkout on the target machine, repeat as necessary.

That's appropriate for deployment, but if you're following the common case of
edit-save-run-remotely that's way too much overhead.

Better is to have a local on the Mac working folder with all your stuff and use
rsync over ssh to update the remote server when you make local changes.

Also, I strongly recommend you consider using git instead of svn when using a
version control system. It is SO much better, not the least reason being that
every checkout also has a complete backup of all the versions, being peer to
peer, rather than the versions only being on a single remote host that is easy
to lose. It also has better protection against corruption, better merging, lots
of other betters.

-- Darren Duncan
Reply all
Reply to author
Forward
0 new messages