<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by AndersonPEM on Medium]]></title>
        <description><![CDATA[Stories by AndersonPEM on Medium]]></description>
        <link>https://medium.com/@andersonpem?source=rss-838a025b9195------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zuFexXd0jySjhsJHnCfZLg.jpeg</url>
            <title>Stories by AndersonPEM on Medium</title>
            <link>https://medium.com/@andersonpem?source=rss-838a025b9195------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 08:29:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andersonpem/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Laravel Sail & XDebug]]></title>
            <link>https://medium.com/@andersonpem/laravel-sail-xdebug-a26413f65cd2?source=rss-838a025b9195------2</link>
            <guid isPermaLink="false">https://medium.com/p/a26413f65cd2</guid>
            <category><![CDATA[phpstorm]]></category>
            <category><![CDATA[xdebug]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[AndersonPEM]]></dc:creator>
            <pubDate>Wed, 26 Apr 2023 11:02:11 GMT</pubDate>
            <atom:updated>2023-05-09T13:21:24.133Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*iGOQUo_hRKSDFXOF.png" /></figure><h3>Sailing on turbulent waters</h3><p>Laravel Sail is a project focused on giving developers a <em>dockerized</em> environment without hassling with the internals of Docker.</p><p>I’ve been in contact with this project for some days and found it incredibly frustrating making XDebug work properly on PHPStorm.</p><p>Me being the Docker nerd I am, I started to mess with Sail’s Docker image to make it work.</p><h3>Why?</h3><p>There are 2 kinds of developers:</p><ol><li>The ones who use dd or console.log() to debug and</li><li>The ones who use debugging tools.</li></ol><p>In my years of experience, the latter usually makes debugging faster and comprehensible. You can walk through the code line by line, inspect memory, check if conditionals are working, it has saved me days of headaches.</p><h3>Okay, what’s wrong with my Sail?</h3><p>It seems like Sail’s default config does not ship (pun intended) proper XDebug configuration for some environments (I tried the environment variables configuration, and it didn’t work at all). So, if you’re not able to make it work the default way, come with me. Let’s dew it.</p><h3>Getting your hands dirty</h3><p>Create a file called 20-xdebug.ini somewhere in your project. You can create a folder called docker, for example and add it to your .gitignore, so you don’t commit config to your repository.</p><p>We are going to add a path mapping to the application container in docker-compose.yml</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/0*GxDhgpLMDt92gThU.png" /></figure><p>Considering you have added the file 20-xdebug.ini to a folder called Docker, add the following volume to your container:</p><p>- &#39;./docker/20-xdebug.ini:/etc/php/8.1/cli/conf.d/20-xdebug.ini&#39;</p><p>(I assumed you’re using PHP 8.1. If not, change the path version accordingly)</p><p>This command will map the file on your computer to PHP’s XDebug config.</p><p>The file contents is as follows:</p><pre>zend_extension=xdebug.so <br>[xdebug] <br>xdebug.start_with_request=yes <br>xdebug.discover_client_host=true <br>xdebug.max_nesting_level=256 <br>xdebug.remote_handler=dbgp <br>xdebug.client_port=9003 <br>xdebug.idekey=Docker <br>xdebug.mode=develop,debug <br>xdebug.client_host=host.docker.internal</pre><p>This file sets the PHP to some default debug behaviors, like:</p><ul><li>Set the port of XDebug to 9003 (9000 might be busy with PHP-FPM or Node applications)</li><li>Starts debugging with request</li><li>Sets an IDE key, which is useful for PHPStorm’s debug configuration</li><li>Sets the client host to the gateway (your computer)</li></ul><p>Among others :)</p><p>Now let’s configure PHPStorm.</p><p>In the upper right corner, click on the debug options. Then on ‘Edit configurations’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/0*a5WyMiFBRptwXAjZ.png" /></figure><p>You’ll be presented with a dialog. Click on add new configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*cDrkjQwyBtD9QE2J.png" /></figure><p>Choose the option PHP Remote debug</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/243/0*8CT4F5E29-40Srrs.png" /></figure><p>Give your debug config a name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/0*J9FehepYFcfE4iEL.png" /></figure><p>Now click on ‘Filter debug connection by IDE key’ and click on the triple dot button of the servers option to add a new server.</p><p>Name your server Docker. To the host, add either 0.0.0.0 or localhost</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*tVSELc3VjavKi7A1.png" /></figure><p>Make sure to map your project’s root directory to the container’s /var/www/html.</p><p>Click OK. Then, on the previous dialog, select the Docker server. Also, add the Docker IDE session key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*cSsb02RG1EyxcSfr.png" /></figure><p>Click OK and you’re likely set to go.</p><p>Select your Docker configuration for debug, and mind this icon:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/0*PbzfPGCCVioTqloi.png" /></figure><p>When it’s all green, it’s listening to debug connections. If it’s red, it’s not listening. In this case, no breakpoints will be triggered.</p><p>Click on it to make it green.</p><p>You should be able to breakpoint through the project when you go sail up.</p><h3>Some caveats</h3><p>There’s a default config of PHPStorm that really bothers me. For example, when you start a container, the routines executed firstly trigger the debugger without me asking for it.</p><p>To avoid this, go to PHPStorm’s settings, then go in PHP&gt;Debug.</p><p>Set it as following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/0*dbfzv3yo6DhiLd0j.png" /></figure><p>This will avoid accidental triggering of the debugger, for example, when the PHP server is starting. If it’s not allowed to start, the process will hang, and you won’t be able to run pages.</p><p>If you suspect there might be path mapping issues, tick back the ‘Force break at first line if no path mapping is specified’ option to check if you need to map something else. Then, untick it, because it can get pretty annoying.</p><p>That’s it for today, kids.</p><p>Until next time.</p><p><em>Originally published at </em><a href="https://dev.to/andersonpem/laravel-sail-xdebug-214o"><em>https://dev.to</em></a><em> on April 26, 2023.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a26413f65cd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[O excesso de perfeccionismo vai matar a sua próxima startup]]></title>
            <link>https://medium.com/@andersonpem/o-excesso-de-perfeccionismo-vai-matar-a-sua-pr%C3%B3xima-startup-8171313c627d?source=rss-838a025b9195------2</link>
            <guid isPermaLink="false">https://medium.com/p/8171313c627d</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[dev]]></category>
            <dc:creator><![CDATA[AndersonPEM]]></dc:creator>
            <pubDate>Sat, 23 Jul 2022 22:38:37 GMT</pubDate>
            <atom:updated>2022-07-23T22:38:37.922Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Tem uma grande ideia? Pense pequeno primeiro para depois pensar grande.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Mo9ZDYp1p2mE1GyWTIqcw.jpeg" /><figcaption>Foto de <a href="https://unsplash.com/@nate_dumlao?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Nathan Dumlao</a> no <a href="https://unsplash.com/s/photos/overthinking?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Quando você adquire algum tempo de experiência na área de programação, várias coisas ficam mais claras. Quando você tem a oportunidade de criar um feature do zero, ou fazer manutenção em algo que existe provavelmente por mais tempo que você, é uma experiência sem par.</p><p>Às vezes, quando nos é dada a chance de criar algo do zero, tendemos a nos preocupar demais com a famosa perfeição. Nada neste mundo é perfeito. Nada. NADA! Então pare de pensar demais e raciocine aqui comigo por uns instantes. Aproveite e pegue um copo de café.</p><p>Nós, programadores, às vezes, tendemos a nos preocupar demasiadamente com detalhes que achamos ser importantes para a otimização de um software, quando, na verdade, deveríamos ocupar nossa mente com o essencial, o overview; a pintura toda e não apenas uma pincelada. Um dos grandes pensadores da computação uma vez disse:</p><blockquote><strong>Otimização prematura é a raiz de todo o mal </strong><br>Donald Knuth</blockquote><p>Eu, particularmente, pude testar este conceito na prática em muitas ocasiões. Muitas vezes nos preocupamos com um aspecto do software que não vai fazer tanta diferença assim para o usuário final, ou criamos problemas de escalabilidade imaginários na nossa cabeça.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*cL1fYygm1dDG7gNebOl93w.jpeg" /><figcaption>Imagem de <a href="https://medium.com/u/7f2883ab849e">The Practical Developer</a></figcaption></figure><p>Muitas pessoas pensam “Ah, vamos usar a fórmula da Netflix neste projeto”. É sempre bom aproveitar coisas dos grandes players do mercado. Porém, algo que você precisa se perguntar é: “Nós temos a escala do Netflix? Realmente precisamos de um cluster Kubernetes cheio de <em>bells and whistles</em>?”</p><p>Se você está para lançar algo no mercado, crie um mínimo produto viável, mesmo que não seja a visão grandiosa que você tem. Lance o produto e obtenha dados de uso.</p><p>Não adianta você ter a melhor ferramenta do mundo que ninguém quer usar. Às vezes, você imaginou que um usuário iria querer muito usar um feature A do seu produto quando, na verdade, os dados indicam um uso maior de B, algo que você nem deu tanta atenção assim e ainda é um protótipo de funcionalidade.</p><p>Tendo “data points” do mundo real, você consegue tomar decisões mais assertivas sobre o que fazer, qual ponto melhorar do seu software e se realmente vale o tempo e recurso investido naquilo. Nada mais de:</p><blockquote><strong>Fonte: vozes da minha cabeça</strong><br>AndersonPEM</blockquote><p>Isso é muito importante, especialmente na fase inicial de um software, pois, os recursos são limitados e o tempo também. Levando em consideração, claro, coisas como segurança, o ideal é lançar logo e ver se seu bebê vai voar. Ele pode ser meio feio no começo, mas se o mercado gostar da ideia mesmo, com o tempo, você pode transformá-lo em algo muito maior e mais rentável.</p><h3>Alguns caveats</h3><p>Pensar em <strong>expansibilidade</strong> é sempre algo bom. Desenvolvimento com foco em expansibilidade é criar um software de forma que seja prático expandi-lo posteriormente. Porém você não pode ser um xiita da expansibilidade, pensar que tudo tem que ser modular, incapsulável, perfeito. Isso acaba gerando ansiedade e perda do foco.</p><h4>Segurança</h4><p>Todo software precisa ter o mínimo de padrões de segurança para ser lançado. Então, se você não pensou em coisas como sanitizar inputs do usuário SQL injection, XSRF, autenticação e autorização, isso deve ser pensado. Caso você use um framework, estas coisas estarão funcionando <em>out-of-the-box </em>para você. Mas tenha em mente que configurações de servidor, HTPS e muitas outras coisas também devem ser validadas. Há muitas partes móveis envolvidas em qualquer produto e ter vários olhos sobre isso ajuda. Não queira fazer tudo sozinho.</p><p>Um erro comum de principiantes é deixar o diretório .git exposto para a internet. Eu mesmo, no início da minha carreira, há muitos anos, já fiz isso. Ainda bem que o projeto era meu. Uma vez detectada a falha, foi corrigida. O Wordpress também expõe credenciais com uma certa facilidade, é bom ficar de olho em como seu servidor está configurado ou usar uma solução como o <a href="https://roots.io/bedrock/">bedrock</a>, um Wordpress que possui uma estrutura mais moderna para a web com direito a composer. O Bedrock só expõe para a web os arquivos realmente necessários, como na maioria dos frameworks modernos.</p><h4>Qual o real foco de um programador?</h4><p>Nós, como programadores, pensamos que nosso foco é criar software. Pense comigo um pouquinho: um software por si só é inútil. Se ninguém usar, de que serve? Exceto se for para estar no seu portfólio, é um esforço inútil.</p><p>O que nós fazemos, de forma mais objetiva, é resolver problemas. Nós resolvemos necessidades dos usuários com software. Resolvemos uma dor, um incômodo provendo uma solução para um problema.</p><p>ENTÃO PARA QUE SE PREOCUPAR TANTO EM OTIMIZAR UM SOFTWARE QUE TEM 0 USUÁRIOS?</p><p>Tudo na vida requer parcimônia. Equilíbrio.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FRy1MOAeAYXvRVQLPw3%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FRy1MOAeAYXvRVQLPw3%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FRy1MOAeAYXvRVQLPw3%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="183" frameborder="0" scrolling="no"><a href="https://medium.com/media/c002c53b1af5b8048baf03c2e2c1a480/href">https://medium.com/media/c002c53b1af5b8048baf03c2e2c1a480/href</a></iframe><p>Da próxima vez que você se pegar tentando obter uma ganho de 0.0000005 milissegundos na resposta da API, pense: “Tempo de resposta, neste momento, com a quantidade de usuários que eu tenho, com a quantidade de recursos que eu uso, é realmente algo que é <strong>urgente e necessário</strong>? O tempo que eu vou levar para conseguir fazer isso justifica o investimento de recursos computacionais e humanos para fazer isso?”</p><p>Se a resposta para as perguntas for não, você provavelmente está otimizando algo prematuramente. Resolva o problema que lhe foi proposto e siga sua vida. Otimize quando for oportuno. Talvez deixe uma nota para o futuro.</p><p>Isso vai salvar sua sanidade e te tornar um programador muito mais eficaz e efetivo no seu trabalho e, consequentemente, mais eficiente.</p><h4>Fugindo do escopo</h4><p>Imagine que você foi encarregado de criar um feature que adiciona um item a uma caixa combo de uma parte de um website.</p><p>Você é um programador muito <em>proativo</em>, vê um problema com uma imagem próxima ao combobox que você está mexendo. Acaba gastando mais tempo com a imagem do que com o combobox. Quando manda o commit, muito mais tempo foi gasto do que foi estimado.</p><p>Eu sei que a coceira é grande para resolver um problema que você está vendo, mas se lhe foi dada uma tarefa com um escopo definido (neste caso adicionar um item), sua função naquele momento é adicionar o item.</p><p>Se você quer realmente ser proativo, indique a um dos gestores o problema e ele, se for um bom gestor, alocará a pessoa mais adequada para resolver aquilo.</p><p>É muito fácil descarrilar seu raciocínio quando você encontra algo. Mas lembre que você possui um foco específico naquele momento. E o que difere um programador efetivo de um que devaneia com facilidade é a habilidade de manter o foco.</p><p>Enfim, são só alguns pensamentos.</p><h3>Vamos ao resumo da ópera</h3><ul><li>Crie o mínimo para funcionar</li><li>Lance e analise os dados e feedback dos usuários</li><li>A partir destes dados empíricos, tome decisões com base em algo concreto de como expandir e:</li><li>Na hora certa você vai se preocupar com questões como escalabilidade, multi-região, CDN, containerização, microsserviços, etc.</li><li>Quando sobre foco específico, trabalhe no que lhe foi proposto. <em>Hashtag</em> foca na solução :)</li></ul><p>No fim das contas, o feito é melhor que perfeito. E vamos entalhando o imperfeito até ficar bom o bastante para nós.</p><p>Até a próxima.</p><p>Peace.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8171313c627d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UTM on Apple’s M1: File sharing with Debian 11 (XFCE)]]></title>
            <link>https://medium.com/@andersonpem/utm-on-apples-m1-file-sharing-with-debian-11-xfce-c5a262e27188?source=rss-838a025b9195------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5a262e27188</guid>
            <category><![CDATA[xfce]]></category>
            <category><![CDATA[qemu]]></category>
            <category><![CDATA[file-sharing]]></category>
            <category><![CDATA[utm]]></category>
            <dc:creator><![CDATA[AndersonPEM]]></dc:creator>
            <pubDate>Thu, 16 Jun 2022 15:51:21 GMT</pubDate>
            <atom:updated>2024-07-01T15:48:24.588Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>TL;DR: </strong><a href="#b5dc"><strong>Get here for a solution</strong></a></p><p>If you ever used M1 computer, you know how much of a beast this computer can be. I love this computer. ARM can be really, really powerful.</p><p>However, if you use this machine, you know the pain that can be to divorce yourself from other operating systems and architectures. It is difficult, there are things you can only do on Windows or on Ubuntu/Debian.</p><p>Fortunately, there’s a solution for this problem.</p><h3>Context is very important :)</h3><p>I’m a DevOps student. I need to build docker images for arm in a very specific manner. I’m working on a project that has some unique characteristics when it comes to unit tests that do not work with Docker’s <strong>buildx</strong> feature on an ARM Mac.</p><p>Let’s take a look at the workflow.</p><p>Firstly, we build the linux/arm64 base image. Let’s tag it foo:latest And then we run the following unit tests:</p><ul><li>Create a container of <em>foo:latest</em> with a mounted volume for the host operating system.</li><li>Ask foo to make a directory and some files with a user in the container that has the same UID of the host’s UID.</li><li>Create a BusyBox container to validate if the UID matches the one specified by the rule.</li><li>If yes, the test passed.</li></ul><h4>The problem</h4><p>You see, although macOS and Linux seem very similar, they’re not the same. They’re like cousins. MacOS uses the <a href="https://en.wikipedia.org/wiki/XNU">XNU kernel</a>, which inherits a lot from the BSD project.</p><p>MacOS manages files and permissions slightly differently than Linux. <strong>So, problems happened in this test</strong>.</p><p>It is important to notice that Docker (and its container engine) were built to take advantage of the Linux Kernel, borrowing the kernel to the container’s building blocks that make any desired distro (Alpine, anyone? Hahaha).</p><p>This tool set does not exist natively to Darwin (Mac)! So, there’s a virtualization layer in place. Depending on the version of macOS and Docker Desktop you are using, it’s either QEMU or an apple virtualization engine to run the Linux kernel in ARM64 or AMD64.</p><p>In conclusion: <strong>macOS is breaking the tests!</strong> If we want to test a linux/arm64 image properly, we should do it on a linux/arm64 OS, preferably on an ARM PC. So, let’s run some Linux.</p><h3>Enter UTM</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*XjmZaY4KGUDYmcOHM_I7hw.png" /></figure><p><a href="https://mac.getutm.app/">UTM</a> is an interface for QEMU that makes it a breeze to run operating systems of basically any architecture. They even have templates of a Sun Microsystems OS in SPARC and Windows XP. <a href="https://mac.getutm.app/gallery/">Have a look yourself!</a></p><p>It’s an open-source project, but you can buy it from the app store to support the development. <strong>And it’s amazingly fast for ARM OSes.</strong></p><h4>Operating System Preferences (nitpick time)</h4><p>I was always a kind of Xubuntu guy myself: the official Ubuntu flavor with XFCE as a GUI and XFWM as a Window Manager.</p><p>I like Xubuntu because:</p><ul><li>It’s minimalistic: its general flat design is very friendly and looks a lot like Windows, so there was minimal friction when I migrated from Windows a lot of years ago.</li><li>It’s resource-efficient: unlike fancy UIs out there, XFCE is not that resource-intensive. So I can squeeze every last drop of performance without the OS interfering too much on it.</li></ul><p>Unfortunately, I was unable to find an ARM64 build of Xubuntu. Xubuntu is a Debian-based distro, so I went with Debian. However, the Debian 10 template provided by the UTM website has some issues that I don’t want to enter into right now.</p><p>So, what did I do?</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F25117042&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fthanos-gif-25117042&amp;image=https%3A%2F%2Fmedia.tenor.com%2Fu8YEMwIfJGMAAAAN%2Fthanos.png&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f1759cb2aab5a8dc55c72537e4c59d0/href">https://medium.com/media/8f1759cb2aab5a8dc55c72537e4c59d0/href</a></iframe><p>I made a virtual machine, with ARM64 architecture and downloaded the netinstall arm64 ISO of Debian 11, which you can find <a href="https://cdimage.debian.org/debian-cd/current/arm64/iso-cd/">here</a></p><p>When installing Debian in this mode, you can choose which UI you want to use. <br>Naturally, I went (for the head?) with XFCE.</p><p>Now I have a fresh installation of Debian 11 with XFCE. I made some changes of the default settings of the panels to my liking, and now I was ready to rock.</p><h4>And then the file sharing doesn’t work in XFCE :(</h4><p>In the image template preconfigured by the UTM team of Ubuntu, for example, sharing works out of the box.</p><p>Not here, pal. We have to configure this bad boy to be able to mount our drive for file sharing.</p><h3>So let’s do it, already!</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F15162627&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fdewit-do-it-emperor-palpatine-star-wars-count-dooku-gif-15162627&amp;image=https%3A%2F%2Fc.tenor.com%2Fp9Fp0w0whBEAAAAC%2Fdewit-do-it.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/010d46a633f6b9bdd1dae08478178221/href">https://medium.com/media/010d46a633f6b9bdd1dae08478178221/href</a></iframe><p>I’m assuming you already installed Debian.</p><p>First, we’ve got to get spicy. You must install the utilities for better integration with QEMU. Run an apt update and then:</p><pre>sudo apt install spice-vdagent spice-webdavd</pre><p>Now clipboard will work, and file sharing is supposed to work. But it doesn’t. We need to install some more stuff to make XFCE see what’s going on here.</p><p>If you have a look at your file explorer, you’ll see this part is missing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*bFXWDaljR-EP_JU9bXeu0Q.png" /></figure><p>Network support is not installed. And other important component. So, Thunar, the file manager, does not show this section because it has no use.</p><p>Let’s install some stuff to help XFCE understand what’s going on:</p><pre>sudo apt install samba gvfs-backends </pre><p>Samba gives you support to browse the network, and <strong>gvfs</strong> allows you to mount some types of drives. You might need to install davfs2 too, depending on the case.</p><p>After everything is in place, reboot the VM, wait for some moments (the sharing service takes some time to start), and take a look at browse network. Find the Spice Client Folder and double-click it. It will ask you to open it with something. Just ignore it and close the dialog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*L78LSDvASCo88IGOeI9gEA.png" /></figure><p>After the dialog, a network share will mount automatically, as you can see on the left. You will have permissions to write on this shared space if you didn’t set it to read only.</p><p>And that’s pretty much it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5a262e27188" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>