Re: [yocto] how to execute bitbake menuconfig from ssh server

2017-09-13 Thread yahia farghaly
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 
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  - GitHub

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] how to execute bitbake menuconfig from ssh server

2017-09-13 Thread Alex Lennon



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
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] how to execute bitbake menuconfig from ssh server

2017-09-13 Thread Alex Lennon



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
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] how to execute bitbake menuconfig from ssh server

2017-09-13 Thread yahia farghaly
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 
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=PA35
> =PA35=yocto+OE_TERMINAL+screen=bl=HYab5gQgCg&
> sig=-qLFfrNLtglXCKwagcbU2Uqg1WM=en=X=0ahUKEwie667d
> iqLWAhUkLcAKHfXDBZwQ6AEIQzAD#v=onepage=yocto%20OE_
> TERMINAL%20screen=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  - GitHub

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] how to execute bitbake menuconfig from ssh server

2017-09-13 Thread Alex Lennon

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=PA35=PA35=yocto+OE_TERMINAL+screen=bl=HYab5gQgCg=-qLFfrNLtglXCKwagcbU2Uqg1WM=en=X=0ahUKEwie667diqLWAhUkLcAKHfXDBZwQ6AEIQzAD#v=onepage=yocto%20OE_TERMINAL%20screen=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

--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] how to execute bitbake menuconfig from ssh server

2017-09-13 Thread Aaron Schwartz
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 
wrote:

>
> can you give some steps on how to do this ?
>
>
> ‌
>
> On 13 September 2017 at 10:54, Yusuke Mitsuki <
> mickey.happygolu...@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" :
>>
>>> 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  - GitHub
>>> 
>>>
>>>
>>>
>>> ‌
>>>
>>> --
>>> ___
>>> 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  - GitHub
> 
>
> --
> ___
> 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+  | Twitter
 | LinkedIn
 | YouTube

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] how to execute bitbake menuconfig from ssh server

2017-09-13 Thread yahia farghaly
can you give some steps on how to do this ?


‌

On 13 September 2017 at 10:54, Yusuke Mitsuki  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" :
>
>> 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  - GitHub
>> 
>>
>>
>>
>> ‌
>>
>> --
>> ___
>> 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  - GitHub

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] how to execute bitbake menuconfig from ssh server

2017-09-13 Thread Yusuke Mitsuki
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" :

> 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  - GitHub
> 
>
>
>
> ‌
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] how to execute bitbake menuconfig from ssh server

2017-09-13 Thread yahia farghaly
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  - GitHub




‌
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto