Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to Gtk3 and Python3 #9

Merged
merged 23 commits into from
Aug 13, 2020
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
640d881
Port to Gtk3 and Python3
Saumya-Mishra9129 Mar 31, 2020
e73b355
Conflicts resolved
Saumya-Mishra9129 Apr 1, 2020
1a17a4b
fix feed_child type-error
Saumya-Mishra9129 Apr 2, 2020
f94e119
double parentheses typo fixed
Saumya-Mishra9129 Apr 2, 2020
e8fc911
Gdk.RGBA color parsing and removed jarabe.model.network
Saumya-Mishra9129 Apr 3, 2020
bc7baee
remove embedded x11vnc binaries
Saumya-Mishra9129 May 16, 2020
8492c69
Add a warning for missing dependency
Saumya-Mishra9129 May 16, 2020
7cfe4e6
flake8 fix : E231 missing whitespace after ','
Saumya-Mishra9129 May 16, 2020
96c3439
flake8 fix : F401 'platform' imported but unused
Saumya-Mishra9129 May 16, 2020
36e1885
flake8 fix : E303 too many blank lines
Saumya-Mishra9129 May 16, 2020
2e3453f
flake8 fix : E301 expected 1 blank line, found 0
Saumya-Mishra9129 May 16, 2020
47d95c7
flake8 fix : E501 line too long (83 > 79 characters)
Saumya-Mishra9129 May 16, 2020
e3bb1b5
Add .flake8
Saumya-Mishra9129 May 16, 2020
8ee0e5e
Use str as arg in configparser
Saumya-Mishra9129 May 18, 2020
4fe5e66
Change method name : _configure_vte to configure_terminal
Saumya-Mishra9129 May 18, 2020
6779857
Convert string config args to parseable set_cursor_blink_mode
Saumya-Mishra9129 Aug 7, 2020
a34a2a1
Fix TypeError on set_scrollback
Saumya-Mishra9129 Aug 7, 2020
e1941bc
Use str as args in configparser
Saumya-Mishra9129 Aug 7, 2020
7c3ea6b
Fix Vte Focus
Saumya-Mishra9129 Aug 7, 2020
64df965
Update README.md
Saumya-Mishra9129 Aug 10, 2020
08ba9f3
Fix Exit of Vte with ctrl+d or exit
Saumya-Mishra9129 Aug 10, 2020
c733b9b
Add Message Dialog to install x11vnc
Saumya-Mishra9129 Aug 10, 2020
477d141
fix multiple IP addresses issue
Saumya-Mishra9129 Aug 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[flake8]

# E402 module level import not at top of file
# gi.require_version() is required before later imports

ignore = E402
53 changes: 48 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,56 @@
What is this?
=============

This activity helps you broadcast your screen to another computer. It will automatically launch a VNC server (X11vnc) and display your IP address. You can then connect and view the screen of Sugar on another conmputer using any VNC client (e.g. TigerVNC, UltraVNC Viewer, RealVNC, etc).
This activity helps you broadcast your screen to another computer. It will automatically launch a VNC server (X11vnc) and display your IP address. You can then connect and view the screen of Sugar on another conmputer using any VNC client (e.g. TigerVNC, UltraVNC Viewer, RealVNC, TightVNC etc).
VncLauncher is not part of the Sugar desktop, but can be added. Please refer to;

* [How to Get Sugar on sugarlabs.org](https://sugarlabs.org/),
* [How to use Sugar](https://help.sugarlabs.org/),

VncLauncher depends on Python, [Sugar
Toolkit](https://github.com/sugarlabs/sugar-toolkit-gtk3), GTK+ 3, Pango, Vte and x11vnc.


How to use?
===========

VncLauncher is not part of the Sugar desktop, but can be added. Please refer to;
* Firstly, make sure your Sugar is connected to the wireless network or mesh network. You can also find the network information at the bottom of the screen inside Sugar.
* Select VncLauncher Activity to start the activity.
* Click at “Please Click to find the current IP address” to see your current IP address.
* VncLauncher depends on x11vnc, Please follow details given below _(How to install dependencies?)_ to install x11vnc. Also an alternate way to install x11vnc is to click OK ,which can be seen in dialog box after clicking on “Start X11 VNC Server”. Click “Start X11 VNC Server” to start your Sugar as a server so that your PC can connect to your Sugar.
* Click “Stop X11 VNC Server” or Exit VNC Launcher Activity, when you want to disconnect sugar from your PC. But “Exit VNC Launcher Activity” will close down the Activity. The Stop button will only stop connection and allow you to start the connection anytime.
* In your PC, select the viewer program, Viewer programs which supports VncLauncher are TigerVNC, UltraVNC Viewer, RealVNC and TightVNC. You can also follow "_How to install vncviewer?_" to install RealVNC.
* Enter your Sugar's ip address and click Connect. (Note***, Make sure your PC connect to the same network as the Sugar) .

How to install dependencies?
===========================================

Install the x11vnc

* Update the package index,
- On Ubuntu/Debian systems, run
```sudo apt update```
- On Fedora systems, run
```sudo dnf update```
* Install `x11vnc`,
- On Ubuntu/Debian systems, run
```sudo apt install x11vnc```
- On Fedora systems, run
```sudo dnf install x11vnc```


How to install vncviewer?
===========================================

Install RealVNC

* [Download VNC Viewer](https://www.realvnc.com/en/connect/download/viewer/linux/)
* Install the VNC Viewer program:
- Open a Terminal.
- Change directory to the download location, e.g. cd ~/Downloads
- Run one of the following commands, depending on your version of Linux
- ```sudo apt install ./<download-file>``` # Ubuntu/Debian
- ```sudo yum install -y <download-file>``` # Fedora
- Sign in using your RealVNC account credentials. You should see the remote computer appear in your team.
- Click or tap to connect. You are prompted to authenticate to VNC Server.

* [How to Get Sugar on sugarlabs.org](https://sugarlabs.org/),
* [How to use Sugar](https://help.sugarlabs.org/),
* [How to use VncLauncher](http://wiki.laptop.org/go/VNC_Launcher)
2 changes: 1 addition & 1 deletion activity/activity.info
Original file line number Diff line number Diff line change
@@ -2,6 +2,6 @@
name = VncLauncher
activity_version = 7
bundle_id = org.laptop.VncLauncher
exec = sugar-activity vnclauncher.VncLauncherActivity
exec = sugar-activity3 vnclauncher.VncLauncherActivity
icon = activity-vnclauncher
summary = With this activity you can show the content of your screen on other computers using the VNC protocol.
Binary file removed bin/arm/lib/libminilzo.so.0
Binary file not shown.
Binary file removed bin/arm/lib/libvncclient.so.0
Binary file not shown.
Binary file removed bin/arm/lib/libvncserver.so.0
Binary file not shown.
Binary file removed bin/arm/x11vnc
Binary file not shown.
Binary file removed bin/x86-64/lib/libgcrypt.so.20
Binary file not shown.
Binary file removed bin/x86-64/lib/libjpeg.so.8
Binary file not shown.
Binary file removed bin/x86-64/lib/libvncclient.so.0
Binary file not shown.
Binary file removed bin/x86-64/lib/libvncserver.so.0
Binary file not shown.
Binary file removed bin/x86-64/x11vnc
Binary file not shown.
3 changes: 0 additions & 3 deletions bin/x86/README

This file was deleted.

Binary file removed bin/x86/lib/libgnutls.so.26
Binary file not shown.
Binary file removed bin/x86/lib/libminilzo.so.0
Binary file not shown.
Binary file removed bin/x86/lib/libtasn1.so.3
Binary file not shown.
Binary file removed bin/x86/lib/libvncclient.so.0
Binary file not shown.
Binary file removed bin/x86/lib/libvncserver.so.0
Binary file not shown.
Binary file removed bin/x86/x11vnc
Binary file not shown.
274 changes: 0 additions & 274 deletions bin/x86/x11vnc.spec

This file was deleted.

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -16,5 +16,5 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

from sugar.activity import bundlebuilder
bundlebuilder.start('VncLauncher')
from sugar3.activity import bundlebuilder
bundlebuilder.start()
Loading