Re: [qubes-users] Trying to create an OSINT VM with Qubes Fedora template: Need help getting pip to work

2021-06-06 Thread Floyd

On 6/6/21 1:12 PM, Chrome wrote:

Hello there all,

I am currently following the instructions to create an OSINT VM 
Michael Bazzell's "Open Source Intelligence Techniques 8th Edition." 
Naturally I'm trying to avoid installing a whole new OS (Ubuntu is 
recommended by the author) or to have a dedicated laptop for this. I 
figured it would be a fun experiment to see how far I could get with 
Qubes before I ran into problems.


So far, issues are minor but when I hit a roadblock, like the below 
terminal text, I'm ill-prepared to troubleshoot it myself. Can someone 
help me understand what I'm looking at and how to fix it so I can 
install packages via pip onto my Fedora templateVM? Thank you


Qubes version: 4.0
Problem: Need to install recommended OSINT tools to Fedora 32 
templateVM, user is inexperienced with Linux and troubleshooting issues.
Solutions attempted: YOLOing it and figuring out how to install each 
package as best I can, as I come across them, bypassing the ones which 
I have difficulty installing.


Relevant Terminal text:
[user@fedora-32 ~]$ sudo -H python3 -m pip install instalooter
WARNING: Running pip install with root privileges is generally not a 
good idea. Try `python3 -m pip install --user` instead.
WARNING: Retrying (Retry(total=4, connect=None, read=None, 
redirect=None, status=None)) after connection broken by 
'NewConnectionError('object at 0x7a2f64242310>: Failed to establish a new connection: 
[Errno -2] Name or service not known')': /simple/instalooter/
WARNING: Retrying (Retry(total=3, connect=None, read=None, 
redirect=None, status=None)) after connection broken by 
'NewConnectionError('object at 0x7a2f642427c0>: Failed to establish a new connection: 
[Errno -2] Name or service not known')': /simple/instalooter/
WARNING: Retrying (Retry(total=2, connect=None, read=None, 
redirect=None, status=None)) after connection broken by 
'NewConnectionError('object at 0x7a2f64242d90>: Failed to establish a new connection: 
[Errno -2] Name or service not known')': /simple/instalooter/

^CERROR: Operation cancelled by user

--
You received this message because you are subscribed to the Google 
Groups "qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to qubes-users+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/825ca109-8b4f-4e41-b4d4-8e75fcce378an%40googlegroups.com 
.


Hello. I can't address your specific issues with a Fedora install as I 
chose to use Debian for my similar install. A big reason for me was 
video CODEC issues in Fedora. I got fairly well into it about a year ago 
and have not worked with it since. I took your route as well, "figuring 
out how to install each package as best I can, as I come across them, 
bypassing the ones which I have difficulty installing". Linux is not my 
strong point either, but I do love Qubes.


I created a Debian based templateVM with his mods, (the intent was to 
have a separate VM for each case) but that has its own quirks (browser 
shortcuts for example and using Firefox). It can be a high maintenance 
VM given the dynamic nature of the Internet and the purpose of an OSINT 
VM. I believe the maintenance aspect of his own purpose built OSINT VM 
image he offered for a while played a bigger part in his discontinuing 
support for it than he publicly admits.


I'd have to review my files on this as I believe I kept notes on the 
install while following his instructions for the modifications. Be 
cautious of the tools he suggests, especially in the context of Qubes' 
reason for being. Bazzell has some great ideas and suggestions, but I 
urge due diligence - really understand the tool he suggests. Only you 
know your individual risk level.


Always use a VPN or Whonix.

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/5c240b0a-caa3-4ac4-5518-cf36deae6e08%40opsimx.com.


Re: [qubes-users] Trying to create an OSINT VM with Qubes Fedora template: Need help getting pip to work

2021-06-06 Thread Steve Coleman

On 6/6/21 2:12 PM, Chrome wrote:

Hello there all,

I am currently following the instructions to create an OSINT VM 
Michael Bazzell's "Open Source Intelligence Techniques 8th Edition."
Its a good book. I do wish he had a chapter for Qubes in it. I think the 
only reason Michael doesn't push Qubes as a platform is that it has a 
steep learning curve that not many are willing to take on. If you do 
Qubes anyway and the learning curve is Ok, then you will find Qubes to 
be a much more flexible platform in the long run.
Naturally I'm trying to avoid installing a whole new OS (Ubuntu is 
recommended by the author) or to have a dedicated laptop for this. I 
figured it would be a fun experiment to see how far I could get with 
Qubes before I ran into problems.


All the way I'm sure.

So far, issues are minor but when I hit a roadblock, like the below 
terminal text, I'm ill-prepared to troubleshoot it myself. Can someone 
help me understand what I'm looking at and how to fix it so I can 
install packages via pip onto my Fedora templateVM? Thank you


First templates do not have network access by default so you may need a 
proxy setup.


https://qubes-os.discourse.group/t/when-to-assign-templatevms-a-network-connection/4307/2

By default pip needs/wants to install directly into the system space 
(/usr/local/) which on a template is not shared with the AppVM. Because 
this directory is not even presented to an AppVM file system it wont be 
useable in the AppVM. It would need to be installed in the AppVM itself 
if you want it installed in /usr/local.


The problem is, security wise, its a bad idea to run foreign code (pip's 
package installer scripts) as root in a template. You could easily 
compromise every AppVM on the system by introducing malicious code. That 
is way pip was warning about running as root.


But if you use the "--user" flag as the error message says then pip can 
install the packages an AppVM with everything installed into the user's 
home directory. That way the user has control over the env and can 
choose which environment they want to use.


If you were wanting to have the ability to start from a pristine 
starting point for each user session then you might want to either to 
create a dvm or create a default AppVM which can be cloned as often as 
you like.



Relevant Terminal text:
[user@fedora-32 ~]$ sudo -H python3 -m pip install instalooter


https://stackoverflow.com/questions/42988977/what-is-the-purpose-of-pip-install-user

$ sudo -H python3 -m pip install --user instalooter

The above will install in the users directory instead

WARNING: Running pip install with root privileges is generally not a 
good idea. Try `python3 -m pip install --user` instead.


--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/e65162b1-bb72-9ee8-777e-17a146fcb96c%40gmail.com.


[qubes-users] Trying to create an OSINT VM with Qubes Fedora template: Need help getting pip to work

2021-06-06 Thread Chrome
Hello there all,

I am currently following the instructions to create an OSINT VM Michael 
Bazzell's "Open Source Intelligence Techniques 8th Edition." Naturally I'm 
trying to avoid installing a whole new OS (Ubuntu is recommended by the 
author) or to have a dedicated laptop for this. I figured it would be a fun 
experiment to see how far I could get with Qubes before I ran into 
problems. 

So far, issues are minor but when I hit a roadblock, like the below 
terminal text, I'm ill-prepared to troubleshoot it myself. Can someone help 
me understand what I'm looking at and how to fix it so I can install 
packages via pip onto my Fedora templateVM? Thank you

Qubes version: 4.0
Problem: Need to install recommended OSINT tools to Fedora 32 templateVM, 
user is inexperienced with Linux and troubleshooting issues.
Solutions attempted: YOLOing it and figuring out how to install each 
package as best I can, as I come across them, bypassing the ones which I 
have difficulty installing.

Relevant Terminal text:
[user@fedora-32 ~]$ sudo -H python3 -m pip install instalooter
WARNING: Running pip install with root privileges is generally not a good 
idea. Try `python3 -m pip install --user` instead.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'NewConnectionError(': Failed to establish a new connection: [Errno -2] 
Name or service not known')': /simple/instalooter/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'NewConnectionError(': Failed to establish a new connection: [Errno -2] 
Name or service not known')': /simple/instalooter/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'NewConnectionError(': Failed to establish a new connection: [Errno -2] 
Name or service not known')': /simple/instalooter/
^CERROR: Operation cancelled by user

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/825ca109-8b4f-4e41-b4d4-8e75fcce378an%40googlegroups.com.


[qubes-users] Having an issue with recommneded Qubes Bisq install (Broken Pipe, Device or resource busy)

2021-06-06 Thread Chrome

Procedure followed: bisq wiki entry for running bisq on qubes
https://bisq.wiki/Running_Bisq_on_Qubes

Current terminal error: 
user@bisq-vm:~$ sudo dpkg -i Bisq-64bit-1.6.5.deb 
Selecting previously unselected package bisq.
(Reading database ... 133382 files and directories currently installed.)
Preparing to unpack Bisq-64bit-1.6.5.deb ...
Unpacking bisq (1.6.5-1) ...

*dpkg: error processing archive Bisq-64bit-1.6.5.deb (--install): unable to 
move aside './opt/bisq/bin/Bisq' to install new version: Device or resource 
busy*
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 Bisq-64bit-1.6.5.deb
user@bisq-vm:~$ 

Possible things I screwed up on: I typo'd the very first line of the 
instructions, is there any chance this caused me a problem during my 
install?
"sudo mkdir -p /rw/bind-dirs/opt/bisq/bin/Bisq" was typoed and likely 
corresponds to the following terminal message "unable to move aside 
'./opt/bisq/bin/Bisq' to install new version: Device or resource busy"

Attempted solutions: Deleted the VM twice and attempted to follow the steps 
again, twice.
Potential solution: Follow the same steps on the wiki but try a fedora 
install instead?

Any help would be greatly appreciated. Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/5eaf1f10-e17b-42e1-8461-a49b6a77f0can%40googlegroups.com.