Re: [Tails-ux] Tails Server GUI Design

Delete this message

Reply to this message
Autor: sajolida
Data:  
A: George Kadianakis, anonym, Tails user experience & user interface design
Assumpte: Re: [Tails-ux] Tails Server GUI Design
segfault:
> George Kadianakis:
>> segfault <segfault@???> writes:
>>
>> Hello segfault,
>>
>> what's the right way to test the prototype? Do we need to be on a Tails
>> installation, or can I do it on a regular Debian box?
>
> I develop and test it on Tails. But I just tested it with a Debian
> stretch and Debian jessie and it worked without problems. Do you have
> GNOME installed? The error message says that it couldn't find the gi
> module, which is provided by the debian package python-gi and required
> by many GTK applications.
>
>> On a Debian box, I ran the setup.sh script, and then I tried to launch
>> tails-server. It failed like this:
>>
>>     $ tails-server
>>     Traceback (most recent call last):
>>       File "/usr/bin/tails-server", line 10, in <module>
>>         from gi.repository import Gtk
>>     ImportError: No module named 'gi'

>>
>> Is this something I need to run from inside Tails?


I tried to run it from Tails and failed as well.

The first error I get with running `sudo ./setup.sh` is:

sudo: ./setup.sh: command not found

I guess because setup.sh is not executable by default.

If I do:

sudo bash setup.sh

I get:

Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-dbus is already the newest version.
python3-gi is already the newest version.
python3-sh is already the newest version.
python3-yaml is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
install: cannot stat
‘/home/amnesia/Persistent/tails-server/dbus_interface.py’: No such file
or directory
install: cannot stat ‘/home/amnesia/Persistent/tails-server/gui/icons’:
No such file or directory
install: cannot stat
‘/home/amnesia/Persistent/tails-server/gui/tails_server.ui’: No such
file or directory
install: cannot stat
‘/home/amnesia/Persistent/tails-server/gui/service_config.ui’: No such
file or directory
install: cannot stat
‘/home/amnesia/Persistent/tails-server/gui/service_status_panel.ui’: No
such file or directory
install: cannot stat
‘/home/amnesia/Persistent/tails-server/tails_service_wrapper.py’: No
such file or directory
install: cannot stat
‘/home/amnesia/Persistent/tails-server/gui/tails_server.py’: No such
file or directory

---
setup.sh | 1 +
1 file changed, 1 insertion(+)

diff --git a/setup.sh b/setup.sh
index cec065a..6783e66 100644
--- a/setup.sh
+++ b/setup.sh
@@ -6,6 +6,7 @@ if [[ $EUID -ne 0 ]]; then
fi

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+DIR="${DIR}/tails_server"

apt-get install python3-sh python3-yaml python3-gi python3-dbus

--
2.1.4

Then I get something a bit better:

[sudo] password for amnesia:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-dbus is already the newest version.
python3-gi is already the newest version.
python3-sh is already the newest version.
python3-yaml is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
install: omitting directory
‘/home/amnesia/Persistent/tails-server/tails_server/icons’
install: cannot stat
‘/home/amnesia/Persistent/tails-server/tails_server/tails_service_wrapper.py’:
No such file or directory
install: cannot stat
‘/home/amnesia/Persistent/tails-server/tails_server/gui/tails_server.py’: No
such file or directory