All of lore.kernel.org
 help / color / mirror / Atom feed
* how to execute bitbake menuconfig from ssh server
@ 2017-09-13  7:08 yahia farghaly
  2017-09-13  8:54 ` Yusuke Mitsuki
  0 siblings, 1 reply; 9+ messages in thread
From: yahia farghaly @ 2017-09-13  7:08 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 485 bytes --]

Hi,

I am working with yocto from a remote server using ssh. i want to
execute *bitbake
-c menuconfig virtual/kernel*  . It fails to open since it tries to open
another shell.
how can i redirect output of menuconfig to my current ssh session ?

-- 
Yahia Farghaly
Graduated from Faculty of Engineering - Electronics and Communications
Department at Cairo University.
Linkedin <https://linkedin.com/in/yahiafarghaly> - GitHub
<https://github.com/yahiafarghaly>



‌

[-- Attachment #2: Type: text/html, Size: 1857 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: how to execute bitbake menuconfig from ssh server
  2017-09-13  7:08 how to execute bitbake menuconfig from ssh server yahia farghaly
@ 2017-09-13  8:54 ` Yusuke Mitsuki
  2017-09-13 11:17   ` yahia farghaly
  0 siblings, 1 reply; 9+ messages in thread
From: Yusuke Mitsuki @ 2017-09-13  8:54 UTC (permalink / raw)
  To: yahia farghaly; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 928 bytes --]

Hello

You can use screen.
If your host is ubuntu,you can get via apt as follows.

sudo apt install screen.

If necessary , you can set auto or screen to OE_TERMINAL environment.

2017/09/13 16:09 "yahia farghaly" <yahiafarghaly@gmail.com>:

> Hi,
>
> I am working with yocto from a remote server using ssh. i want to execute *bitbake
> -c menuconfig virtual/kernel*  . It fails to open since it tries to open
> another shell.
> how can i redirect output of menuconfig to my current ssh session ?
>
> --
> Yahia Farghaly
> Graduated from Faculty of Engineering - Electronics and Communications
> Department at Cairo University.
> Linkedin <https://linkedin.com/in/yahiafarghaly> - GitHub
> <https://github.com/yahiafarghaly>
>
>
>
> ‌
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>

[-- Attachment #2: Type: text/html, Size: 2906 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: how to execute bitbake menuconfig from ssh server
  2017-09-13  8:54 ` Yusuke Mitsuki
@ 2017-09-13 11:17   ` yahia farghaly
  2017-09-13 11:24     ` Aaron Schwartz
  0 siblings, 1 reply; 9+ messages in thread
From: yahia farghaly @ 2017-09-13 11:17 UTC (permalink / raw)
  To: Yusuke Mitsuki; +Cc: yocto


[-- Attachment #1.1: Type: text/plain, Size: 1341 bytes --]

can you give some steps on how to do this ?


‌

On 13 September 2017 at 10:54, Yusuke Mitsuki <mickey.happygolucky@gmail.com
> wrote:

> Hello
>
> You can use screen.
> If your host is ubuntu,you can get via apt as follows.
>
> sudo apt install screen.
>
> If necessary , you can set auto or screen to OE_TERMINAL environment.
>
> 2017/09/13 16:09 "yahia farghaly" <yahiafarghaly@gmail.com>:
>
>> Hi,
>>
>> I am working with yocto from a remote server using ssh. i want to execute *bitbake
>> -c menuconfig virtual/kernel*  . It fails to open since it tries to open
>> another shell.
>> how can i redirect output of menuconfig to my current ssh session ?
>>
>> --
>> Yahia Farghaly
>> Graduated from Faculty of Engineering - Electronics and Communications
>> Department at Cairo University.
>> Linkedin <https://linkedin.com/in/yahiafarghaly> - GitHub
>> <https://github.com/yahiafarghaly>
>>
>>
>>
>> ‌
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>


-- 
Yahia Farghaly
Graduated from Faculty of Engineering - Electronics and Communications
Department at Cairo University.
Linkedin <https://linkedin.com/in/yahiafarghaly> - GitHub
<https://github.com/yahiafarghaly>

[-- Attachment #1.2: Type: text/html, Size: 5084 bytes --]

[-- Attachment #2: dummyfile.0.part --]
[-- Type: image/gif, Size: 42 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: how to execute bitbake menuconfig from ssh server
  2017-09-13 11:17   ` yahia farghaly
@ 2017-09-13 11:24     ` Aaron Schwartz
  2017-09-13 11:51       ` Alex Lennon
  0 siblings, 1 reply; 9+ messages in thread
From: Aaron Schwartz @ 2017-09-13 11:24 UTC (permalink / raw)
  To: yahia farghaly; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 2575 bytes --]

Tmux [0] also works well for this, and I've never tried it with Screen (a
similar utility) so here's instructions using Tmux:

You need to install Tmux on the server you are using SSH to connect to,
then as soon as you SSH into the server run `$ tmux`.  Then when you run `$
bitbake -c menuconfig ...` it will automatically open a second pane on the
bottom half of your screen where you can edit your kernel config.  That
pane will close automatically when you exit the menuconfig application.

I hope that helps!
Aaron


0)  https://github.com/tmux/tmux/wiki

On Wed, Sep 13, 2017 at 7:17 AM, yahia farghaly <yahiafarghaly@gmail.com>
wrote:

>
> can you give some steps on how to do this ?
>
>
> ‌
>
> On 13 September 2017 at 10:54, Yusuke Mitsuki <
> mickey.happygolucky@gmail.com> wrote:
>
>> Hello
>>
>> You can use screen.
>> If your host is ubuntu,you can get via apt as follows.
>>
>> sudo apt install screen.
>>
>> If necessary , you can set auto or screen to OE_TERMINAL environment.
>>
>> 2017/09/13 16:09 "yahia farghaly" <yahiafarghaly@gmail.com>:
>>
>>> Hi,
>>>
>>> I am working with yocto from a remote server using ssh. i want to
>>> execute *bitbake -c menuconfig virtual/kernel*  . It fails to open
>>> since it tries to open another shell.
>>> how can i redirect output of menuconfig to my current ssh session ?
>>>
>>> --
>>> Yahia Farghaly
>>> Graduated from Faculty of Engineering - Electronics and Communications
>>> Department at Cairo University.
>>> Linkedin <https://linkedin.com/in/yahiafarghaly> - GitHub
>>> <https://github.com/yahiafarghaly>
>>>
>>>
>>>
>>> ‌
>>>
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>>
>
>
> --
> Yahia Farghaly
> Graduated from Faculty of Engineering - Electronics and Communications
> Department at Cairo University.
> Linkedin <https://linkedin.com/in/yahiafarghaly> - GitHub
> <https://github.com/yahiafarghaly>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>


-- 

Aaron Schwartz
Production
Logic Supply
Direct: +1 802 861 2300 Ext. 530
Main: +1 802 861 2300
www.logicsupply.com

Google+ <https://plus.google.com/+Logicsupply/posts> | Twitter
<https://twitter.com/logicsupply> | LinkedIn
<https://www.linkedin.com/company/logic-supply> | YouTube
<https://www.youtube.com/user/logicsupply>

[-- Attachment #2: Type: text/html, Size: 7296 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: how to execute bitbake menuconfig from ssh server
  2017-09-13 11:24     ` Aaron Schwartz
@ 2017-09-13 11:51       ` Alex Lennon
  2017-09-13 12:00         ` yahia farghaly
  0 siblings, 1 reply; 9+ messages in thread
From: Alex Lennon @ 2017-09-13 11:51 UTC (permalink / raw)
  To: Aaron Schwartz, yahia farghaly, mickey.happygolucky; +Cc: Yocto discussion list

Hi Yahia,

On 13/09/2017 12:24, Aaron Schwartz wrote:
> Tmux [0] also works well for this, and I've never tried it with Screen 
> (a similar utility) so here's instructions using Tmux:
>
> You need to install Tmux on the server you are using SSH to connect 
> to, then as soon as you SSH into the server run `$ tmux`.  Then when 
> you run `$ bitbake -c menuconfig ...` it will automatically open a 
> second pane on the bottom half of your screen where you can edit your 
> kernel config.  That pane will close automatically when you exit the 
> menuconfig application.
>
> I hope that helps!
> Aaron
>
>
>

I mostly remote into my server via SSH too. And I use the screen method 
to run menuconfig and devshell and so forth. Works well.

As Yusuke says you can install screen on the server (if it is Ubuntu or 
similar) if you need to with

$ sudo apt install screen

You might need to tell the bitbake tooling to use the screen utility 
which you can do with something like

$ export  OE_TERMINAL=screen

I see there are some notes here

https://books.google.co.uk/books?id=yNi6BwAAQBAJ&pg=PA35&lpg=PA35&dq=yocto+OE_TERMINAL+screen&source=bl&ots=HYab5gQgCg&sig=-qLFfrNLtglXCKwagcbU2Uqg1WM&hl=en&sa=X&ved=0ahUKEwie667diqLWAhUkLcAKHfXDBZwQ6AEIQzAD#v=onepage&q=yocto%20OE_TERMINAL%20screen&f=false

...

I hadn't heard of tmux. Thanks Aaron - I will have a look into that...

...

Sometimes I need a graphical environment. For example when I want to run 
up a Yocto Poky build for testing on a QEmu emulated machine easily.

For this I have VNC Server installed on the build box. I then run this 
up and it creates a new desktop. Your default desktop is usually :0 and 
in my case VNC then creates a :1 desktop

This usually ends up on build box local port 5901 as I recall (if not it 
will be a similar number, you can check with netstat -anp)

You can then port forward the VNC TCP port 5901 over SSH and use a VNC 
client on your client local port.

I often use Windows as a client so use Putty for the port forwarding and 
TightVNC for the VNC client.

This could well sound quite fiddly but it's fine when you get it setup.

There are some notes here which might be useful

https://www.theurbanpenguin.com/creating-an-ssh-tunnel-with-putty-to-secure-vnc/

Cheers,

Alex



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: how to execute bitbake menuconfig from ssh server
  2017-09-13 11:51       ` Alex Lennon
@ 2017-09-13 12:00         ` yahia farghaly
  2017-09-13 12:05           ` Alex Lennon
  2017-09-13 12:05           ` Alex Lennon
  0 siblings, 2 replies; 9+ messages in thread
From: yahia farghaly @ 2017-09-13 12:00 UTC (permalink / raw)
  To: Alex Lennon; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 2933 bytes --]

Nice Aaron, it worked as charm.  Thank you !

Alex, i will try your way. but you can test qemu without vnc by
specifying *serial
nographic* of runqemu options
‌

On 13 September 2017 at 13:51, Alex Lennon <ajlennon@dynamicdevices.co.uk>
wrote:

> Hi Yahia,
>
> On 13/09/2017 12:24, Aaron Schwartz wrote:
>
>> Tmux [0] also works well for this, and I've never tried it with Screen (a
>> similar utility) so here's instructions using Tmux:
>>
>> You need to install Tmux on the server you are using SSH to connect to,
>> then as soon as you SSH into the server run `$ tmux`.  Then when you run `$
>> bitbake -c menuconfig ...` it will automatically open a second pane on the
>> bottom half of your screen where you can edit your kernel config.  That
>> pane will close automatically when you exit the menuconfig application.
>>
>> I hope that helps!
>> Aaron
>>
>>
>>
>>
> I mostly remote into my server via SSH too. And I use the screen method to
> run menuconfig and devshell and so forth. Works well.
>
> As Yusuke says you can install screen on the server (if it is Ubuntu or
> similar) if you need to with
>
> $ sudo apt install screen
>
> You might need to tell the bitbake tooling to use the screen utility which
> you can do with something like
>
> $ export  OE_TERMINAL=screen
>
> I see there are some notes here
>
> https://books.google.co.uk/books?id=yNi6BwAAQBAJ&pg=PA35&lpg
> =PA35&dq=yocto+OE_TERMINAL+screen&source=bl&ots=HYab5gQgCg&
> sig=-qLFfrNLtglXCKwagcbU2Uqg1WM&hl=en&sa=X&ved=0ahUKEwie667d
> iqLWAhUkLcAKHfXDBZwQ6AEIQzAD#v=onepage&q=yocto%20OE_
> TERMINAL%20screen&f=false
>
> ...
>
> I hadn't heard of tmux. Thanks Aaron - I will have a look into that...
>
> ...
>
> Sometimes I need a graphical environment. For example when I want to run
> up a Yocto Poky build for testing on a QEmu emulated machine easily.
>
> For this I have VNC Server installed on the build box. I then run this up
> and it creates a new desktop. Your default desktop is usually :0 and in my
> case VNC then creates a :1 desktop
>
> This usually ends up on build box local port 5901 as I recall (if not it
> will be a similar number, you can check with netstat -anp)
>
> You can then port forward the VNC TCP port 5901 over SSH and use a VNC
> client on your client local port.
>
> I often use Windows as a client so use Putty for the port forwarding and
> TightVNC for the VNC client.
>
> This could well sound quite fiddly but it's fine when you get it setup.
>
> There are some notes here which might be useful
>
> https://www.theurbanpenguin.com/creating-an-ssh-tunnel-with-
> putty-to-secure-vnc/
>
> Cheers,
>
> Alex
>
>


-- 
Yahia Farghaly
Graduated from Faculty of Engineering - Electronics and Communications
Department at Cairo University.
Linkedin <https://linkedin.com/in/yahiafarghaly> - GitHub
<https://github.com/yahiafarghaly>

[-- Attachment #2: Type: text/html, Size: 5354 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: how to execute bitbake menuconfig from ssh server
  2017-09-13 12:00         ` yahia farghaly
@ 2017-09-13 12:05           ` Alex Lennon
  2017-09-13 12:05           ` Alex Lennon
  1 sibling, 0 replies; 9+ messages in thread
From: Alex Lennon @ 2017-09-13 12:05 UTC (permalink / raw)
  To: yahia farghaly; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 465 bytes --]



On 13/09/2017 13:00, yahia farghaly wrote:
> Nice Aaron, it worked as charm.  Thank you !
>
> Alex, i will try your way. but you can test qemu without vnc by 
> specifying /serial nographic/ of runqemu options
> ‌

Yes. I'm generally have a need for graphical output for testing though :)

You can actually use the in-built qemu VNC server if you change the 
options too...

ref: https://wiki.archlinux.org/index.php/QEMU#vnc

Cheers!

Alex

[-- Attachment #2: Type: text/html, Size: 1390 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: how to execute bitbake menuconfig from ssh server
  2017-09-13 12:00         ` yahia farghaly
  2017-09-13 12:05           ` Alex Lennon
@ 2017-09-13 12:05           ` Alex Lennon
  2017-09-13 12:55             ` yahia farghaly
  1 sibling, 1 reply; 9+ messages in thread
From: Alex Lennon @ 2017-09-13 12:05 UTC (permalink / raw)
  To: yahia farghaly; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]



On 13/09/2017 13:00, yahia farghaly wrote:
> Nice Aaron, it worked as charm.  Thank you !
>
> Alex, i will try your way. but you can test qemu without vnc by 
> specifying /serial nographic/ of runqemu options
> ‌

Yes. I generally have a need for graphical output for testing though :)

You can actually use the in-built qemu VNC server if you change the 
options too...

ref: https://wiki.archlinux.org/index.php/QEMU#vnc

Cheers!

Alex

[-- Attachment #2: Type: text/html, Size: 1388 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: how to execute bitbake menuconfig from ssh server
  2017-09-13 12:05           ` Alex Lennon
@ 2017-09-13 12:55             ` yahia farghaly
  0 siblings, 0 replies; 9+ messages in thread
From: yahia farghaly @ 2017-09-13 12:55 UTC (permalink / raw)
  To: Alex Lennon; +Cc: Yocto discussion list


[-- Attachment #1.1: Type: text/plain, Size: 1109 bytes --]

For technical knowledge, why is it failing from the first place ?

from my observation, It seems to try to execute gnome-terminal by default,
so i installed it but it failed to open it. even when i tried with ssh -X ,
it opened gnome-terminal but print the same failure messages within it.


‌

On 13 September 2017 at 14:05, Alex Lennon <ajlennon@dynamicdevices.co.uk>
wrote:

>
>
> On 13/09/2017 13:00, yahia farghaly wrote:
>
> Nice Aaron, it worked as charm.  Thank you !
>
> Alex, i will try your way. but you can test qemu without vnc by specifying *serial
> nographic* of runqemu options
> ‌
>
>
> Yes. I generally have a need for graphical output for testing though :)
>
> You can actually use the in-built qemu VNC server if you change the
> options too...
>
> ref: https://wiki.archlinux.org/index.php/QEMU#vnc
>
> Cheers!
>
> Alex
>



-- 
Yahia Farghaly
Graduated from Faculty of Engineering - Electronics and Communications
Department at Cairo University.
Linkedin <https://linkedin.com/in/yahiafarghaly> - GitHub
<https://github.com/yahiafarghaly>

[-- Attachment #1.2: Type: text/html, Size: 3572 bytes --]

[-- Attachment #2: dummyfile.0.part --]
[-- Type: image/gif, Size: 42 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-09-13 12:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-13  7:08 how to execute bitbake menuconfig from ssh server yahia farghaly
2017-09-13  8:54 ` Yusuke Mitsuki
2017-09-13 11:17   ` yahia farghaly
2017-09-13 11:24     ` Aaron Schwartz
2017-09-13 11:51       ` Alex Lennon
2017-09-13 12:00         ` yahia farghaly
2017-09-13 12:05           ` Alex Lennon
2017-09-13 12:05           ` Alex Lennon
2017-09-13 12:55             ` yahia farghaly

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.