I didn't get it to work with x-terminal-emulator, but with the standard
gnome terminal.
user@MacBookPro:~$ gnome-terminal --working-directory=~/code/ruby/my-main-proj
Hope this helps.
Try using an overlay, with a chroot
. First, decide the path you want to chroot to, and make sure it exists, and similarly for the path you will overlay on /
(which is where modifications will go):
mkdir -p /chroot
mkdir -p /tmp/tmproot
I chose a directory in /tmp/
as it's a tmpfs
on my system (possibly unadvisable, but OK for me), so no changes should reach the disk. You can use a squashfs
and mount it somewhere, and use that as the overlay, but that has the problem of being read-only, I think.
Now:
$ mount -t overlayfs -o lowerdir=/,upperdir=/tmp/tmproot overlayfs /chroot/
$ chroot /chroot/ /bin/bash -l
root:/$ touch test
root:/$ ls
... sys test tmp ...
root:/$ logout
$ ls /
... sys tmp ...
$ ls /tmp/tmproot/
root test
If you make the upperdir
independent of a physical disk (perhaps by using tmpfs
), this should protect the lowerdir
.
Note the creation of a root
folder - that's for my .bash_history
. A copy was made of the original .bash_history
, and then appended to.
Best Answer
"Fullscreen" isn't a bash concept at all, it's down to your terminal emulator window and X.
However if you're scripting, you can tell X to add a fullscreen hint to a client. I most applications this will work. I've tested with Terminator and I've no reason to suspect it won't work with Gnome Terminal:
With regard to keeping this at a minimum footprint, the only way I've found to do this is to launch another terminal. Unfortunately
lxterminal
doesn't have a fullscreen launch option so you could either hack through the OpenBox settings (beurgh) or just fall back toxterm
:Yeah, I'm suggesting launching another terminal. If you're shipping this with a launcher of sorts, you can avoid needing a secondary script.
xterm
doesn't adhere to standard fonts or anything like that though you can configure almost everything through command line arguments (seeman xterm
for a riveting read).