www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Developer Environment for User Interface and Repository

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message
iulyb



Joined: 02 Jun 2016
Posts: 101

PostPosted: Thu Jul 21, 2016 5:49 pm    Post subject: Developer Environment for User Interface and Repository Reply with quote

Hi,
I involved myself in ZS user interface by creating 2 new add-ons on the user interface. I wanted to have a modern working env and work-flow and because none were available I decided to create a repository on github for the current user interface.:
https://github.com/jb68/zeroshell-ui

This is basically a copy of kerbinet.cgi directory and will allow an easy development of new features or bug fixes using git as a collaborative tool. It follows the same licence as ZS.

Basically for any new feature we will have a new branch so any developer can easy join and contribute.

100% transparency, any new code can be seen and inspected ( git diff )

Issues can be submitted, assigned, tracked and fixed using git hub issue tool.

User can easy generate a patch that can be applied to any working system for further testing or even in production.

A system integrator / release manager (ex Fulvio) can easy merge any new features or individual branches into the main line and create a new distro. Also individual commits can be cherry-picked and applied to main line.

In this way, master branch (main line) will allays be the copy of the newest release from ZS.
Any new feature will be developed in its own branch.
Optional we can have a bug only and an integration (all new features merged) branches

Ex, how to create a patch for sensors integration:

Code:
git clone https://github.com/jb68/zeroshell-ui.git
cd zeroshell-ui && git checkout sensors-integration
git diff --no-prefix master > sensors_ui-ZS-3.6.0.patch


Copy your patch to ZS using your favourite tool (ex sftp) ex in /db/opt/sensors_ui-ZS-3.6.0.patch then:

Code:
cd /root/kerbynet.cgi && patch  -p0 < /db/opt/sensors_ui-ZS-3.6.0.patch


Once you cloned the repository next thing to do is to mount the kerbynet dir locally using sshfs. Take a look at sshfs here https://help.ubuntu.com/community/SSHFS
You need to disable the interactive script first. Thanks to other post from here, all you need to do is add next on Post boot

Code:
# Disable interactive menu
/usr/bin/chsh -s /bin/bash admin
/usr/bin/chsh -s /bin/bash root


Assuming that you are in linux and you have a ~/Projects/zs

Code:
sshfs -o idmap=user admin@192.168.0.75:/root/kerbynet.cgi/ ~/Projects/zs


If everything ok you should see the content of kerbynet locally Smile and remember to save everything before rebooting ZS.

Other things to do:
- collect and apply all individual improvements posted on this forum
- get more people involved
- make ZS the best distro Smile .

Any developers and help is welcome.
Back to top
View user's profile Send private message
iulyb



Joined: 02 Jun 2016
Posts: 101

PostPosted: Thu Feb 09, 2017 4:21 am    Post subject: Reply with quote

Hi,
Updated github repository to the newest 3.7.1
Meanwhile I created individual branches dyn-dns, bug-fix and sensors integration.

As you can see there are no majors changes in UI code.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group