mitchind
Posts: 36
Joined: Sat Jul 02, 2016 1:11 am

Open a new terminal window on Jessie Lite?

Tue Jul 12, 2016 10:19 pm

Jessie Lite boots to basic terminal window.

Is it possible to use command line to open a new terminal window and run another script?
I can't find anything that works.

I know that "nohup" or ending a command with "&" will launch a background process
but I believe I need a new window that I can view the process output

Someone suggested lxterminal, and it looks like it is a part of the Jessie Lite package, but maybe it needs to be installed?
I thought that was the default boot terminal window but I must be wrong

User avatar
topguy
Posts: 6466
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Open a new terminal window on Jessie Lite?

Tue Jul 12, 2016 10:54 pm

There is usually more than one (virtual) terminal started on boot. You press "ctrl+alt+F2" to access the second one, "ctrl+alt+F3" for the third one and "ctrl+alt+F1" to go back to the first one.

There is also a utility called "screen" that is quite useful for having access to different shell sessions. You can start one session on the keyboard, then put it in the background, log in from another computer with ssh and resume working.

"lxterminal" is part of the X-Windows LXDE desktop which is not installed on Jessie Lite, that is the main point of Jessie Lite in the first place.

mitchind
Posts: 36
Joined: Sat Jul 02, 2016 1:11 am

Re: Open a new terminal window on Jessie Lite?

Wed Jul 13, 2016 12:30 am

Thanks so much. That all makes sense now.

User avatar
liudr
Posts: 687
Joined: Sat Jun 01, 2013 12:11 am
Location: Central MN, USA
Contact: Website

Re: Open a new terminal window on Jessie Lite?

Fri Jul 15, 2016 3:19 am

Another alternative is to install tmux with sudo apt-get tmux.

You can split screen into 2 or more and display one terminal in each portion. Works very nicely with a larger screen.
Arduino data loggers, user interface, printed circuit board designer since 2009, RPI 3B 2B 2B Zero Jessie, assembly/C/C++/java/python programmer since the 80's

mitchind
Posts: 36
Joined: Sat Jul 02, 2016 1:11 am

Re: Open a new terminal window on Jessie Lite?

Fri Jul 15, 2016 4:55 am

That sounds intriguing. I wanted to watch the one process without having to toggle back and forth - or go to my ssh terminal.

I was able to use the AT command to spawn a completely disconnected session that worked for what I wanted - but I couldn't see what was happening - only use top to make sure it was loading properly

User avatar
liudr
Posts: 687
Joined: Sat Jun 01, 2013 12:11 am
Location: Central MN, USA
Contact: Website

Re: Open a new terminal window on Jessie Lite?

Fri Jul 15, 2016 5:19 am

This one is a 4-way split. You can use keyboard shortcuts to make it or use some script to create screens on boot.
Arduino data loggers, user interface, printed circuit board designer since 2009, RPI 3B 2B 2B Zero Jessie, assembly/C/C++/java/python programmer since the 80's

mfa298
Posts: 1387
Joined: Tue Apr 22, 2014 11:18 am

Re: Open a new terminal window on Jessie Lite?

Fri Jul 15, 2016 10:10 am

liudr wrote:Another alternative is to install tmux with sudo apt-get tmux.

You can split screen into 2 or more and display one terminal in each portion. Works very nicely with a larger screen.
You can do the same in screen Image (I've only got a small screen here so it's a bit squashed).

Both have advantages, tmux is possibly a bit more user friendly, screen is available on most platforms (not just Liunx) and can also talk to serial devices.

User avatar
AikonCWD
Posts: 180
Joined: Mon Jun 09, 2014 3:50 pm
Location: Barcelona

Re: Open a new terminal window on Jessie Lite?

Fri Jul 15, 2016 10:16 am

I recommend you to use tmux, its easy to install, easy to configure and easy to use.

Image
My e-mail = aikon.bcn@gmail.com

mitchind
Posts: 36
Joined: Sat Jul 02, 2016 1:11 am

Re: Open a new terminal window on Jessie Lite?

Fri Jul 15, 2016 3:05 pm

Sounds like consensus is tmux and it looks like its perfect for what I want.

Thanks all!

Return to “Advanced users”