Re: [qubes-users] questions - InterVM directory bind

2018-05-05 Thread Manuel Amador (Rudd-O)
On 2018-04-22 12:26, trueriver wrote:
> The page https://www.qubes-os.org/doc/qfilecopy/ decribes how to copy a file 
> or directory to another domain. In the case of a directory the files can 
> later be copied back, in which case they end up in a different directory than 
> the original.
>
> This has the advantage that both copies are available in the original host 
> domain.
>
Someone was working on a FUSE driver that would work through qrexec /
Qubes services.  You might want to look into the mailing list archives
for that.  It seems very practical (if a bit insecure?) to share VM A's
folder /x/y/z with VM B so that it appears as a mounted drive in VM B.

-- 
Rudd-O
http://rudd-o.com/

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/1c7620f3-69c8-5c47-4f2c-6403e8fc20dd%40rudd-o.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] offlineimap with Split-GPG : get new email via cron doesn't work

2018-05-05 Thread Manuel Amador (Rudd-O)
On 2018-04-25 14:19, 799 wrote:
> Hello,
>
> I am using neomutt with offlineimap to get my corporate mail into an
> Email-AppVM.
> The current workflow is:
>
> 1) get email running offlineimap -o
> 2) start neomutt
>
> I'd like to have offlineimap check the mails in the background using cron.
> Thereof I have written a small script:
>
> /user/check-mail.sh
> #!/usr/bin/bash
> # Script will be run by cron
> #su user -c "/usr/bin/offlineimap -u quiet -f INBOX,INBOX.Inbox_CC"
> /usr/bin/offlineimap -u quiet -f INBOX,INBOX.Inbox_CC
> echo Cronjob run at: `date`>> /tmp/cron.log
>
> The last line is only for troubleshooting in order to see, if the
> cronjob has been run.
>
> The scripts is working when launched manually. It will open up the
> SplitGPG window to grant access to my GPG-key in my vault-VM.
> I need to enter the password once and if the next request is within a
> 300sec window access will be granted to th eGPG without further user
> interaction.
>
> I have installed cron and setup a cronjob which should run every 3 min
> in order to be below the 300sec time window when Spli-GPG is asking
> for a password. I have encrypted the password in my offlineimap-config
> and it can only be decrypted using my
>
> [user@my-mail]$ crontab -l
> # min  hr   day-of-month month day-of-week
> # 0-59 0-23 0-31 1-12  0-7
> # Check important mail folders every 3min
> */3 * * * * /home/user/bin/check-mail.sh
>
> unfortunately it seems that this script doesn't work via cron, do you
> have any idea what is wrong?
> If I look into the logfile the script is writing (/tmp/cron.log) I see
> that th ecronjob runs the script but no mails are downloaded.
> As mentioned running the script manually will work.
> Is cron running the job as "user" or as "root"?
>
> To all offlineimap / mutt users how are you auto-fetching new emails?
>
> [799]
>
> -- 
> 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 post to this group, send email to qubes-users@googlegroups.com
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/qubes-users/CAJ3yz2tXWNz6Mst3PeUHtcPUj2EzAhH6vs7OUTg0tf8m_8LrAA%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
Cron runs under a very different environment from your desktop session
-- the variables needed for GPG agent are not set in that environment. 
I wrote a program run-in-gui / run-in-env-of a while ago, that, while
needing root, starts your program in the same environment as your
desktop session.    Check my Github for them.

-- 
Rudd-O
http://rudd-o.com/

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/ab00ceeb-a7af-a567-b42b-1b13799d93ce%40rudd-o.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Remote Control Question

2018-05-05 Thread Manuel Amador (Rudd-O)
On 2018-04-29 00:50, Stuart Perkins wrote:
> Hi list.
>
> I'm considering setting up Qubes capable server at my home.  What I need, 
> however, is to be able to remotely control it. Updates...reboot/stop/start 
> system and app vm's etc.  Is this even possible with Qubes?  I currently run 
> a Ubuntu powered old laptop as a "server" and have it hosting a couple of 
> VM's with virtualbox.  I can ssh into it and even have an sshuttle setup for 
> VPN over SSH functionality for when I need to do something "gui" remotely.  
> One of my VM's is an old XP system which monitors my solar electric. One is a 
> ubuntu install hosting a Drupal website.  One is also installed which is a 
> full blow VPN server for when I need to do more than just simple things...I 
> rarely use this one.
>
Search for ansible-qubes on Github or Google.  Then search for
qubes-network-server on Github or Google.

I have your setup.  It ain't remote console, but it lets you do
everything you want (low-level) from another machine.

-- 
Rudd-O
http://rudd-o.com/

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/cce3753c-4d50-7d91-4cd1-f6bcbe415986%40rudd-o.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Move Firefox Bookmarks between AppVMs - Help with Script

2018-05-05 Thread Manuel Amador (Rudd-O)
On 2018-05-05 20:44, [799] wrote:
> Hello,
>
> following a recent discussion in the qubes-community github repository, Ivan 
> has written an interesting script for handling links and disposable VMs.
> This has inspired me to look how to move firefox bookmarks to other AppVMs.
> While disposable VMs are great, sometimes it is handy to have bookmarks 
> available in an AppVM.
>
> I was able to import bookmarks into other Appvms by transfering the 
> places.sqlite file which holds the bookmarks.
>
> In the target AppVM which has the bookmarks:
> qvm-copy-to-vm  
> /home/user/.mozilla/firefox/*.default/places.sqlite
>
> then in the destination VM you only need to move the file from QubesIncoming 
> to the profile path.
> While this works, I like to add some error checking and I would also like to 
> kill a running firefox in the destination AppVM.
>
> I was able to kill firefox running:
>
>kill `ps -A | grep firefox | gawk '{ print $1 }'`
>
> no I tried to run further command based on the fact if firefox is running or 
> not.
> I thereof tried to do something like this:
>
> if [`ps -A | grep firefox | gawk '{ print $1 }'` \> 0]; then
>echo "Run this when PID is > 0 and thereof Firefox is running"
> else
>echo "Run this when firefox is not running"
> fi
>
> Unfortunately this doesn't work. Can somone point me into the right direction?
> What is the right approach to run certain commands based on the fact that a 
> program is running or not?
>
> Sorry for this off-topic question but playing with Qubes gives so much 
> options for building own scripts and I am still a beginner here.
>
> [799]
>
You are probably better off writing something that will sync two
different .sqlite files by using SQL operations on both.  SQLite files
are safe to be accessed by two different programs at the same time, and
therefore you may not need to kill Firefox.

-- 
Rudd-O
http://rudd-o.com/

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/31c51383-57c4-86f9-c0db-91b0dc8ccbf0%40rudd-o.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Lenovo T480 freezes after resume on suspend

2018-05-05 Thread lordscinawa
Hi,
First of all, let me thanks all the QubesOS team for the amazing work done on 
4.0 version. I was a user of the old 3.2 version.  

The issue I am experiencing with 4.0 on my new hardware is the following: once 
I open the lid and resume qubes after suspension, I cannot issue any 
command/trackpad/mouse whatever. 

Do you have any ideas on how to debug this? I have found on this ML some 
related issues, but since they aren't really recent, I don't know if they are 
still relevant for my case. For example, in 
https://groups.google.com/forum/#!topic/qubes-users/QrG7uUZsSZY the last poster 
seems to have my same issue and the suggested fix did't help.  

Thanks. 

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/9b803fb6-f9fb-4c61-a228-b65b18f5f8c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Move Firefox Bookmarks between AppVMs - Help with Script

2018-05-05 Thread [799]
Hello,

following a recent discussion in the qubes-community github repository, Ivan 
has written an interesting script for handling links and disposable VMs.
This has inspired me to look how to move firefox bookmarks to other AppVMs.
While disposable VMs are great, sometimes it is handy to have bookmarks 
available in an AppVM.

I was able to import bookmarks into other Appvms by transfering the 
places.sqlite file which holds the bookmarks.

In the target AppVM which has the bookmarks:
qvm-copy-to-vm  
/home/user/.mozilla/firefox/*.default/places.sqlite

then in the destination VM you only need to move the file from QubesIncoming to 
the profile path.
While this works, I like to add some error checking and I would also like to 
kill a running firefox in the destination AppVM.

I was able to kill firefox running:

   kill `ps -A | grep firefox | gawk '{ print $1 }'`

no I tried to run further command based on the fact if firefox is running or 
not.
I thereof tried to do something like this:

if [`ps -A | grep firefox | gawk '{ print $1 }'` \> 0]; then
   echo "Run this when PID is > 0 and thereof Firefox is running"
else
   echo "Run this when firefox is not running"
fi

Unfortunately this doesn't work. Can somone point me into the right direction?
What is the right approach to run certain commands based on the fact that a 
program is running or not?

Sorry for this off-topic question but playing with Qubes gives so much options 
for building own scripts and I am still a beginner here.

[799]

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/2018050520.o22gzlllsub4kdgj%40my-privmail.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: (Qubes OS 4.0) Anyone that built a Ubuntu Xenial template successfully?

2018-05-05 Thread max . militant
tirsdag den 1. maj 2018 kl. 14.17.41 UTC+2 skrev Frank Schäckermann:
>> I wish I knew how to fix it... I tried the sugested "dpkg-source --commit" 
>> in various places but to no avail and I don't understand the build process 
>> good enough to figure out, what EXACTLY is going wrong here.

The documentation says it works with xenial, so maybe an early xenial iso 
version might do, and then upgrade within?

https://www.qubes-os.org/doc/templates/ubuntu/

Max

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/b5d5f5c8-e8e6-482f-8d55-884cdb22edc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: No space left on device when unpacking Android Studio files

2018-05-05 Thread lallenfrancisl
Another solution would be to use TMPDIR.

Use when launching from command line "TMPDIR=pathtouseastmp(can be a folder) 
studio.sh"

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/63b857d1-1d3e-445b-b8b2-4e2c65a77b74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Re: ANN: Testing new VPN code for Qubes

2018-05-05 Thread velcro
Strangest thing, I did a fresh installation of Qubes and now I can't get this 
to work again?

Sorry for the basic question but is there something I need to do to the fresh 
debian template after installation?

I am trying to eliminate all possible issues but to install OpenVPN to the 
debian template:

1) I simply allow access to TOR or a network to get OpneVPN
2) Type : sudo apt-get install openvpn

I am having the same issue with Fedora as well, could there be another reason 
for this not connecting?

I get the "Waiting for connection" message but I don't get the "Link is up"...

Thanks for any thoughts...

V

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/43185fcd-09f6-470c-acab-23553d7af623%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: I can't install Qubes 4.0

2018-05-05 Thread velcro
Having struggled with installation I have found trying different BIOS settings 
helps. Even what I thought was the most unrelated change in the BIOS sometimes 
worked including:

Legacy only
Turning off secure boot
LCD settings
Boot order

I wish I had a specific answer but have you tried changing these settings? 

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/4f14962d-ecca-4605-bee9-3aa1caf5ca6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Qubes 4.0: Device Widget disappeared

2018-05-05 Thread Pablo Costa
On 5 May 2018 at 12:57,  wrote:

>
> Anyway: can anyone tell me the CLI command to start that widget?
>
>
python3 -mqui.tray.devices
python3 -mqui.tray.domains

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/CALeQ-zK-NfdpnxtrD21ieRTcFWh3RmLKjoapY3%2BSL444ks43YA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Qubes 4.0: Device Widget disappeared

2018-05-05 Thread gaxihoit
On Saturday, May 5, 2018 at 1:04:48 AM UTC+2, awokd wrote:
> On Fri, May 4, 2018 4:05 pm, x...@xxx.com wrote:
> > The system tray device widget is not visible anymore. It was there after
> > a fresh 4.0 install but disappeared after some days. How can i get it
> > back?
> 
> Were you playing with the tooltray settings? I tried but couldn't figure
> out how to hide it. Apply any updates right before it disappeared?

I did updates after the install, maybe that removed it.
Anyway: can anyone tell me the CLI command to start that widget? 

-- 
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 post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/2a2bc612-866f-4485-99fb-ba932284d51c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.