Tom Roche
Shared posts
Trump's tariffs could cause huge global crisis, warns economist Michael Hudson
Tom RocheMichael Hudson + Ben Norton == reliably VERY EXCELLENT geoeconomic analysis, in this case esp regarding the very-bad, no-good interactions of
- trade balances esp tariffs
- currency values esp dollar/USD
- USD-dominated financial order esp USD-denominated debt
- financialized oligarchs demand stable- and high-value imperial currency (i.e., USD)
See also [underlying article](https://geopoliticaleconomy.com/2025/01/25/michael-hudson-trump-tariffs-global-economy/) referenced in the interview (and archived [here](http://web.archive.org/web/20250130104729/https://geopoliticaleconomy.com/2025/01/25/michael-hudson-trump-tariffs-global-economy/))
Elon Musk's Gov't Purge, Trump's J6 Revenge, Is Any of This Legal? | Nicole Avant
Tom RocheFunny bits (1st half, pre 16:45), bad interview (bail @ 16:45), no ads
Desi Lydic covers Elon Musk's purge of USAID, Lousiana Senator John Kennedy's lust for omelets, and Trump's January 6 revenge on top FBI officials.
Troy Iwata checks in to answer the burning question: Is any of this legal?
How to Un-DEI Your Workplace: The Daily Show has you covered with this HR training video to help workers unlearn all those "woke" teachings.
Acclaimed producer and best-selling author Nicole Avant talks to Desi about the true story behind the Netflix movie “The Six Triple Eight” of an all-Black, all-female battalion that contributed to a victory in WWII and describes what she learned about the Coast Guard in her former role as Ambassador to the Bahamas. She also discusses her book “Think You’ll Be Happy,” which tells the story of her grief and path to healing after the tragic loss of her mother, and how her mother’s last words to her serve as both the title of the book and her mantra in life.
See omnystudio.com/listener for privacy information.
International Fugitive Benjamin Netanyahu Goes to Washington
Tom RocheEXCELLENT, but note this is pre Trump's "US must own Gaza" shpiel
Israeli prime minister and international fugitive Benjamin Netanyahu is the first foreign leader to be hosted in Washington, D.C., by President Donald Trump. They are meeting in the wake of a barrage of chaotic and conflicting messages by Trump on what he believes should happen in Gaza and the West Bank.
Without a doubt, Trump wants to preside over a normalization agreement between Saudi Arabia and Israel, though the Saudis have said they will not enter into such a deal without a credible process to create an independent Palestinian state. Israeli officials have made clear Netanyahu wants to push Trump to fully embrace his position that Hamas should be wiped out completely and there are indications the Israeli leader does not want the so-called ceasefire to move to the second phase—which envisions a withdrawal of Israeli forces, further exchange of captives and discussions on a large reconstruction plan for Gaza—or toward an actual rebuilding of Gaza.
All of this happens as Palestinians continue to return to an apocalyptic scene in the north of the Gaza Strip and Israel continues to intensify its attacks against the West Bank. Mouin Rabbani and Dr. Annelle Sheline join Jeremy Scahill to discuss. Mouin Rabbani is the co-editor of Jadaliyya and non-resident fellow at both DAWN and Middle East Council on Global Affairs, and a former UN official who worked as a special adviser on Israel-Palestine for the International Crisis Group. Dr. Annelle Sheline is a research fellow in the Middle East program at the Quincy Institute. She served as a foreign affairs officer at the U.S. Department of State until resigning in March 2024 over the Biden administration's Gaza policy.
To support Drop Site News, become a paid subscriber or consider making a one-time or recurring 501c3 tax deductible donation.
Get full access to Drop Site News at www.dropsitenews.com/subscribe
905 - Roko’s Modern Life feat. Brace Belden (2/3/25)
Tom RocheFelix+Will+guest, mostly just bant (some analysis), but funny.
Beautiful Brace Belden joins us to look at Trump’s tariff’s, possible annexation of Canada, halt on federal funding, and other breaking admin news. We also discuss New York Mag’s party report from the NYC MAGA scene, and Brace briefs us on what we should know about the murderous “Zizian” rationalists, and how they fit in among all the other people who’ve broken their brains online.
TrueAnon’s in-depth coverage of the Zizians here: https://pod.link/1474001390/episode/a778bfc3221464a5eff8d657bc89eb8a
Get bonus content on PatreonHosted on Acast. See acast.com/privacy for more information.
Jon on Trump’s Trade War, Attacks on DEI & Myth of “Meritocracy” | Mo Amer
Tom Roche1st half: not the greatest Stewart, still very funny bits, esp Best F**kin' News Team on DEI. 2nd half: not a /bad/ interview, which is good for DSEE. And the best part: no ads!
Jon Stewart examines Trump's attacks on trans people, Canada, and DEI as his first presidential orders of business and asks: How is that making America great again? Plus, the Best F**kin' News Team debate on where they rank in the DEI hierarchy.
Mo Amer, writer, stand-up comedian, and co-creator and star of “Mo,” sits down to discuss the second season of his Peabody Award-winning Netflix series, inspired by his own refugee experience. They discuss how the series explores the complexities of statelessness and asylum, the absurdities of the immigration process, and how he leaned on Jon for support while figuring out whether to talk about Oct. 7 on his show.
See omnystudio.com/listener for privacy information.
Behind the Show | Charlamagne on Misplaced Political Anger
Tom RocheEXCELLENT: funny and insightful
Daily Show writer Ashton Womack sits down with Charlamagne The God to unpack their recent segment on the anger directed at rappers performing at Trump's inauguration. They discuss why people hold entertainers to a higher standard than politicians, the need for better messaging from the Democratic party, and how Republicans have taken advantage of anger and perceived sincerity with actions that back up their words.
Check out the original segment: https://youtu.be/g1ACmdglOSA
See omnystudio.com/listener for privacy information.
World War Civ 51: The Debrief
Tom Rochenot /actually/ a WW1 ep, this is more meta: lessons-learned about doing the podcast, plans for the upcoming interwar series
P.O.V.
Tom Rocheamusing random sketches: median, not brilliant, but amusing
The internet's best comedy creators bring you a sketch show that features Colin from Portsmouth, Broken News, Sally In HR, and every Ed Sheeran song ever.
Written and performed by Kylie Brakeman, The Exploding Heads, Rachel Fairburn, Matt Green, Rosie Holt, Charlene Kaye, Kelechi Okafor, Larry & Paul, Morton, Burke & Fry, The Squid, and Ed Night & Paddy Young.
Recorded in London, Manchester, Dublin, Los Angeles, New York and Edinburgh.
Edited by Rich Evans at Syncbox Post Produced by Ed Morrish
A Lead Mojo production for BBC Radio 4
Radio War Nerd EP 494 — The Gaza Resistance, feat. Jon Elmer
Tom RocheVERY EXCELLENT, mostly about (as one might expect from /RWN/) the Palestine-military (/PM/) side of the Gaza war, rather than (e.g.) civilians, Israel military (/IM/), or geopolitics. Topics covered include: online Gaza-war military content, why IM has so far failed in Gaza, PM {tunnels, training, logistics, weapons, organization}, comparing Lebanon and Gaza wars (esp Hezbollah/IM vs PM/IM), Gaza ceasefire {to-date, nominal/potential outcomes, probable outcomes}, and What Is To Be Done (notably, prosecute Zionist war criminals)
Episode 317 - The Byzantine Legacy with David Hendrix
Tom RocheThis is a /meta-Byzantine/ episode rather than a Byzantine episode, so skip if you want Easter Rome content. What I mean: this ep (aside from ads before and after the content) is about this guy Hendrix: his {background, origin story}, the content he produces, and other services he provides. There /is/ minor, touristy, content about Byzantine sites in the last 3rd of the audio, but it's very skippable.
This episode is brought to you by Telepaideia, a collection of live online courses in Latin, Ancient Greek, and the classical humanities offered by The Paideia Institute. Visit www.paideiainstitute.org/telepaideia to browse the course catalogue and register!
I interview David Hendrix the man behind the incredible website 'The Byzantine Legacy.' It was David who showed me around Istanbul when I first visited in 2018. His website is an amazing resource for anyone who wants to know what survives from Byzantium today.
David is leading a tour of Byzantine Macedonia in September 2025.
Check out the Byzantine Legacy website and Youtube channel. Follow David on Instagram, Facebook and X. And support him at Patreon.
Hosted on Acast. See acast.com/privacy for more information.
Episode 444 - Executive Disorder (w/ David Dayen & Freddy Brewster)
Tom RocheVERY EXCELLENT
Subscribe to Bad Faith on Patreon to instantly unlock our full premium episode library: http://patreon.com/badfaithpodcast
Executive Editor of The American Prospect David Dayen and journalist at The Lever Freddy Brewster have been busy tracking Trump's executive orders. They join Bad Faith to break down what's been happening, how culpable Dems are in not being prepared, and whether the Pod Save America crew is correct in their assessment that Dems are being judged unfairly.
Subscribe to Bad Faith on YouTube for video of this episode. Find Bad Faith on Twitter (@badfaithpod) and Instagram (@badfaithpod).
Produced by Armand Aviram.
Theme by Nick Thorburn (@nickfromislands).
News - Sudan Army Advances, IDF Remains in Lebanon, US Foreign Aid Freeze
Tom RocheBessner and (mostly) Davison deliver yet another EXCELLENT week-in-review (excepting the pre- and inter-audio ads)
The paperboy has been laid off, but fear not, for Danny and Derek are here with the headlines. This week: in Israel-Palestine, detainees were exchanged on Thursday (0:31), the IDF continues its operation in the West Bank (6:05), an update on the humanitarian situation in Gaza (7:40), and Trump proposes the idea of ethnically cleansing the Strip (10:34); in Lebanon, the IDF ignores its withdrawal deadline (15:02); in Syria, the political transition continues (17:00), the IDF remains in the country’s south (19:04), and negotiations with Russia are underway over its bases in Syria as well as the fate of Bashar al-Assad (20:32); the rollout of China’s DeepSeek AI roils tech stocks (23:00); the Sudanese army sees a string of military successes around Khartoum (25:24); in the Democratic Republic of Congo (DRC), the M23 military group takes Goma while advancing south (27:59); Putin comments on peace talks regarding Ukraine (32:43); Colombia and the US get into a spat regarding deportation flights (34:12); and in US news, arms sales hit a new record in 2024 (37:16), Donald Trump vows to build a migrant detention facility at Guantánamo (38:20), and some details on the effects of his foreign aid freeze (39:35).
Learn more about your ad choices. Visit megaphone.fm/adchoices
Trump Blames Plane Crash on DEI, Lewis Black on Dry January | Vince Beiser
Tom Rocheamusing: subpar but not bad
Michael Kosta on the tragic Washington D.C. plane crash and Trump's baseless blame of DEI for the catastrophe. Plus, the Best F**kin' News team breaks down which of Trump's nominees was least qualified at their Senate hearings.
Lewis Black Celebrates the End of Dry January and Other Ridiculous Drinking Trends
Journalist and author Vince Beiser sits down to discuss the paradox of electric vehicles and renewable energy in his latest book "Power Metal: The Race for the Resources That Will Shape the Future." They talk about how preventing climate change has led to a rush for “critical” metals, how China has dominated the field of mining and manufacturing, the minerals and metals behind Trump’s Greenland obsession, recycling electronic waste, and the importance of reusing and repairing gadgets.
See omnystudio.com/listener for privacy information.
904 - Flight Risk (1/30/25)
Tom RocheEXCELLENT, funny Amber+Felix+Will in 2 main parts:
1. US politics and culture, mostly Trump2's 1st-week chaos and how CorpDems are bungling this gift
2. movie night: itself a 2-parter on 2 very-recent "tight 90" action flix, in order of perceived (by A+F+G) importance:
2.1. new Mel Gibson movie /Flight Risk/: competent, with bright spots (e.g. Wahlberg sideburns)
2.2. instaclassic /Den of Thieves 2: Pantera/ as big-boy heist movie featuring Gerard Butler as Big Nick (channeling [[http://web.archive.org/web/20241224192025/https://genius.com/albums/Plummcorp-records/Dracula-flow][Dracula Flow]]
Hosted on Acast. See acast.com/privacy for more information.
RFK Jr.’s Fiery Hearing, Rethinking Social Media | Filmmaker Rachel Mason
Tom RocheKosta on RFKJr == funny. After that, this DSEE ep gets quite marginal
Michael Kosta tackles RFK Jr.'s confirmation hearing for health secretary, his questionable stances on vaccines and AIDS, and Bernie Sanders's onesie interrogation.
The polio virus (Troy Iwata) shares his excitement about returning to work.
Grace Kuhlenschmidt asks New Yorkers if they will finally delete their apps now that Trump-aligned billionaires run various social media platforms,
Filmmaker Rachel Mason sits down to discuss her new Max docuseries, “An Update on Our Family.” She explains what attracted her to the story of popular YouTube vloggers who shared their overseas adoption online, the ethics of profiting off your children via content, and how she navigates oversharing on her own social media accounts.
See omnystudio.com/listener for privacy information.
Marcin Borkowski: org-use-sub-superscripts
Tom Roche[article](http://web.archive.org/web/20250131003921/https://mbork.pl/2025-01-27_org-use-sub-superscripts) points to useful part of [Emacs manual](https://www.gnu.org/software/emacs/manual/html_node/org/Subscripts-and-Superscripts.html)
Erik L. Arneson: Configuring Orgzly Interaction with Directory Local Variables
Tom Rochearticle archived [here](http://web.archive.org/web/20250130221023/https://arnesonium.com/2025/01/configuring-orgzly-with-directory-local-variables)
I use Orgzly Revived on my phone to capture to-do items, tasks, writing ideas, and projects. Its files are then synced with an ownCloud server. Those same files are also constantly open in Emacs on my computer, which means there can be some gnarly issues with things getting out of sync. It took me a while to figure out a good way to manage this, and in this brief blog post, I would like to share my solution.
Setting up a remote storage system is outside the scope of this server. Orgzly Revived works well with Dropbox, ownCloud, and nextCloud, though support for the other two is nicer as it can support automatic syncing in more situations. The Orgzly Revived documentation has an excellent description of how that configuration works.
Note that to keep things simple, I keep my Orgzly Revived files and only those files in a directory on my remote server. On my computer, the location for these files is ~/org/orgzly/, which is how I shall refer to it later on.
Configuring Orgzly Revived Auto-sync
To configure the auto-sync capabilities in Orgzly Revived, go to the settings screen in the app and then navigate to Sync > Auto-sync. Ensure that the following options are toggled on:
- Auto-sync
- Note created
- Note updated or deleted
- App started or resumed
This ensures that Orgzly Revived is constantly checking your remote storage and both fetching and uploading changes.
Configuring Emacs and Org-mode
On my computer, I want any changes that Orgzly Revived has updated to be automatically loaded into Emacs. Since I always leave Emacs running, that means it needs to detect changes on the disk for those particular files. I use two different methods to do this. First, in my init file, I have the following piece of code:
(setq orgzly-directory (expand-file-name "~/org/orgzly/"))
(add-to-list 'revert-without-query (rx bol
(eval orgzly-directory)
(+ (not "/")) ".org"
eol))
This uses the rx macro to easily create a regular expression that matches any filename ending in ".org" in the directory containing Orgzly Revived files. You may need to play around with the regular expression to get the right match. By adding those files to revert-without-query, Emacs will not bug you with extra questions and confirmations when changes are detected. However, this only works when auto-revert-mode is enabled!
At first, I thought there may be a way to enable auto-revert-mode on a file-by-file basis, but quickly realized that this could cause too many problems with creating new files in the Orgzly Revived app. Eventually, I realized that the solution would be to make a .dir-locals.el file in ~/org/orgzly/. Open that file in Emacs, and stick the following in it.
((nil . ((eval . (auto-revert-mode 1)))))
That ensures that any file in that directory will have auto-revert-mode enabled.
Once you have done this, you can add task files or inbox files in ~/org/orgzly to your org-agenda-files variable, and they will show up in your agenda views as usual.
Hopefully these instructions work for you. Please let me know if you can see any improvements or problems with the way I have implemented this. Happy task tracking!
Irreal: Syncing Orgzly With Emacs
Tom Roche[original article](https://arnesonium.com/2025/01/configuring-orgzly-with-directory-local-variables) archived [here](http://web.archive.org/web/20250130221023/https://arnesonium.com/2025/01/configuring-orgzly-with-directory-local-variables)
One of the goals of many Emacs users is to be able read and write Org entries on their phones or tablets. There are several solutions for this. On the Android platform, one of the most popular was Orgzly. Sadly, Orgzly is no longer under development but its user base stepped up with orgzly-revived to keep the project alive.
Erik L. Arneson is an Orgzly-revived user and wants to automatically sync the Orgzly-revived files on his phone with the Emacs files on his computer. Since those files are always open on his computer, syncing them was a problem.
Arneson found a way to do this using ownCloud and the built-in syncing functions of Orgzly-revived. One problem was that the files on his computer had to be marked auto-revert so that Emacs would reread them when they were changed on disk.
His solution for this was to put all the files that he was sharing with Orgzly-revived in a separate directory and then use a directory local variable to specify that all files in that directory should be marked as auto-revert.
Orgzly-revived is, of course, just one app that allows sharing files between Emacs and your phone or tablet, and it’s for Android only. There are other apps, some for Android, some for iOS that do roughly the same thing. All of them, in order to be useful, need to be able to sync files between Emacs and the remote device. The details of doing this will doubtless vary but it’s likely that the files on Emacs will need to be marked auto-revert so Arneson’s trick of using a directory local variable is worth knowing.
China's shocking DeepSeek AI pops US Big Tech monopoly bubble
Tom RocheEXCELLENT analysis as usual
1/29/25: Trump Funding Freeze Blocked By Judge, Stephen Miller Spars With Tapper, Charlamagne Confronts Vivek On DOGE Exile, US Romania Coup, Trump Envoy In Gaza
Tom Rocheconsistently excellent esp on US-NATO coup in Romania
Ryan and Emily discuss Trump funding freeze blocked by judge, Stephen Miller spars with Tapper on deportation, Charlamagne calls out Vivek on DOGE exile, CNN liberal resistance anchor pushed out, US caught in Romania coup, Trump envoy visits Gaza.
Murtaza Hussain: https://x.com/MazMHussain?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor
Jeff Stein: https://x.com/JStein_WaPo
To become a Breaking Points Premium Member and watch/listen to the show AD FREE, uncut and 1 hour early visit: www.breakingpoints.com
Merch Store: https://shop.breakingpoints.com/
See omnystudio.com/listener for privacy information.
Trans Military Ban, J6 Pardon Aftermath, Sports War: Super Bowl Swifties | Lil Rel Howery
Tom Rochefunny (esp Sports War), and not a bad interview
Michael Kosta checks in on the latest Trumpworld news: new press secretary Karoline Leavitt, the banning of trans people in the military, and the aftermath of pardoned Jan. 6 insurrectionists. Troy Iwata sets up an elaborate sting for J6 sex offenders. Plus, Sports War: Kosta and Ronny Chieng on Super Bowl Swifties, Philly celebrations, & NHL nachos.
Comedian and actor Lil Rel Howery chats about starring in the new animated film “Dog Man,” how therapy has benefited his life and his comedy, and the “Get Out” tagline that follows him at every T.S.A. checkpoint.
See omnystudio.com/listener for privacy information.
Jon Stewart on Dems' Accusations of Fascism, China's New A.I. | Royal Ramey
Tom RocheEXCELLENT (even the interview!), funny
Jon Stewart discusses China's new A.I. tool "DeepSeek," and urges Democrats to convince voters of THEIR plan rather than react to Trump's "fascist" first week of executive orders.
Chief Royal Ramey, a formerly incarcerated firefighter, and CEO and co-founder of the Forestry and Fire Recruitment Program, joins to discuss his program. They talk the hands-on training he received while incarcerated, why the work appeals to those currently serving time, and how helping a community and experiencing the “prison-to-public servant pipeline” changed his life.
See omnystudio.com/listener for privacy information.
903 - Tuna Melt Moment feat. Alex Nichols (1/27/25)
Tom RocheEXCELLENT funny
Hosted on Acast. See acast.com/privacy for more information.
Democracy Now! 2025-01-28 Tuesday
Tom Rocheweak 1st segment (after the {always-excellent, can't miss} patented DN! headlines), then 2 strong segs followed by EXCELLENT final/4th seg interview with Raz Segal (@ Stockton U) on /Genocide Denial in Holocaust Studies/
Democracy Now! 2025-01-28 Tuesday
- Headlines for January 28, 2025
- As ICE Conducts Made-for-TV Raids, Cities from Chicago to Newark Resist Trump's Immigration Crackdown
- "War of Plunder": How Rwanda Has Fueled War in DRC as Western Countries Look Away
- Gold, Guns & Genocide: How the UAE Profits from RSF War Crimes in Sudan
- Genocide Denial in Holocaust Studies: Scholar Raz Segal on Gaza & 80 Years After Auschwitz Liberation
How About Some News?
Tom RocheVERY EXCELLENT, Ciarán+Nick+Uma bring yucks+analysis (yuxalysis?) to topics including
* Albania: Trumpers do bad art
* Berlin: where Germans go for bad art
* Ireland: various hijinks esp Cherry Tomato Bridge and The Catholic Church
* Eurovision 2025 preview: Ciarán dons his sequined cargo shorts to deliver on topics including Zionism, Moldova, Israel, Finland, Malta, and Romania
* Slovakia politics
* France politics and media: Melanchon house attacked, corporate centrists (esp their owned media) fail
***** also resurfacing: long-running thread on France news delay
* Uma on new documentary on Spanish police spying on Catalan nationalists esp left, The Gang on global police spying on leftists
The gang talk about Eurovision, France, Slovakia and Catalonia
HOW TO SUPPORT US:
https://www.patreon.com/cornerspaeti
HOW TO REACH US:
Bluesky https://bsky.app/profile/cornerspaeti.bsky.social
Twitter https://twitter.com/cornerspaeti
Instagram https://www.instagram.com/cornerspaeti/
Julia https://twitter.com/KMarxiana
Rob https://twitter.com/leninkraft
Nick https://bsky.app/profile/lilouzovert.bsky.social
Uma https://twitter.com/umawrnkl
Ciarán https://bsky.app/profile/ciarandold.bsky.social
Bad Hasbara 78: Sieg Heart, with Eli Valley
Tom RocheEXCELLENTly stabs into the degenerating evil heart of genocidal Zionism, esp evil clowns like Iliza Shlesinger and Bari Weiss
Matt and Daniel are joined by artist and satirist Eli Valley to talk over the continuing ceasefire and hostage release, Elon Musk stretchin' that arm out, and the public garment rending of shiksa-passing American Jewish entertainers.
Please donate to Muslim Aid USA: mausa.org
Get Eli’s latest, Museum of Degenerates: orbooks.com/catalog/museum-of-degenerates/
Subscribe to Eli’s patreon: patreon.com/elivalley
Subscribe to the Patreon https://www.patreon.com/badhasbara
Subscribe/listen to Bad Hasbara wherever you get your podcasts.
Spotify https://open.spotify.com/show/5RDvo87OzNLA78UH82MI55
Apple Podcasts https://podcasts.apple.com/us/podcast/bad-hasbara-the-worlds-most-moral-podcast/id1721813926
Support this podcast at — https://redcircle.com/bad-hasbara/donations
Privacy & Opt-Out: https://redcircle.com/privacy
TDS Time Machine | Sports War 2024
Tom RocheVERY EXCELLENT, consistently very funny (except for the pre-, inter- and post-audio ads). This is /not/ about sports commentary (which is rudimentary at best), but insult comedy at its best, plus a number of /excellent/ shots at legalized gambling in the US (e.g., from memory: "Gambling--if you think it's ruining your life, stop thinking!")
Sports War correspondents clash over WNBA and NBA player debuts and a Paris 2024 Olympics recap, sponsored by gambling and fueled by this year’s breaking sports news.
See omnystudio.com/listener for privacy information.
TDS Time Machine | Vacation Getaways
Tom RocheEXCELLENT: consistently funny--even TN--and no ads!
Escape the winter doldrums with a look back at some of The Daily Show's expert vacation recommendations.
Trevor Noah discusses Ted Cruz's aborted trip to Cancun amidst a dangerous winter storm, then unpacks Miami's spring break problem. Michael Kosta gives you Just the Tip with his best travel tips and tricks. Trevor talks with audience members about his love of world travel, and Michael Kosta returns to explain how to vacation from home during a pandemic.
See omnystudio.com/listener for privacy information.
Yi Tang: Setup ssh-agent Systemd Service for Emacs
Tom Rochepullquote (lightly edited):
> I [currently need to setup] my server so I can work [remotely]. I got stuck in getting magit working in emacsclient: I thought I could run ssh-add inside of Emacs that would allow magic to access my git repos using ssh. After some digging, I learnt that the problem I have to solve is to run one ssh-agent in the background and then make the Emacs/Magit or any programs hook onto it. Then once I run ssh-add and type the passphrase for the first time, either inside of Emacs or in a bash terminal, everything would work.
post archived [here](http://web.archive.org/web/20250126193513/http://yitang.uk/2025/01/26/setup-sshagent-systemd-service-for-emacs/)
Problem Statement
My personal desktop is not booting (the motherboard is probably dead) so I have been setting my server so I can work while sorting things out.
I got stuck in getting magit working in emacsclient: I thought I could
run ssh-add inside of Emacs that would allow magic to access my
git repos using ssh, but apparently, it is not the case.
After some digging, I learnt that the problem I have to solve is to
run one ssh-agent in the background and then make the Emacs/Magit or
any programs hook onto it. Then once I run ssh-add and type the
passphrase for the first time, either inside of Emacs or in a bash
terminal, everything would work.
Implementation
Drop the following unit file below to ~/.config/systemd/user/ssh-agent.service.
[Unit]
Description=SSH key agent
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target
The important things are
- The environment variable
SSH_AUTH_SOCKis specified. It can be anywhere as long as this environment variable in other programs points to the same location. -
ssh-agentis invoked with the-aoption to provide an address specified in the above step.
The $t is a specifier1 in systemd, it is equivalent to
$XDG_RUNTIME_DIR variable in Debian. It points to the runtime
temporary directory which apparently is safer2 than the /tmp
directory. The runtime directory was cleaned up after stopping the
ssh-agent so it is non-persistent.
To start the ssh-agent service:
systemctl enable --user ssh-agent
systemctl start --user ssh-agentAfter that, update the unit file of Emacs to include this line (follow up my blog post Managing Emacs Server as Systemd Service for the full setup).
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
To make it work for bash shell and all other programs calling from a bash terminal, add this line to ~/.bashrc.
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"Alternatives
There are programs developed to solve this specific problem (see Debian wiki). While using such a program seems like a simpler alternative (e.g. keychain), I prefer to use systemd as the unified approach for managing background services. I have been using it for emacsclient, and I’m adding ssh-agent to it.
What is your preference? How do you solve this problem?
Footnotes
1 All the specifiers are listed here.
2 I am not a security expert but the StackExchange comments seem to make sense.
Protesilaos Stavrou: Emacs: organise your init file (outline-minor-mode or Org literate config)
Tom Rochepost archived [here](http://web.archive.org/web/20250126193216/https://protesilaos.com/codelog/2025-01-26-emacs-organise-init/)
Raw link: https://www.youtube.com/watch?v=Dkoy3NrLN9g
In this 25-minute video I show two ways to organise your Emacs init.el file. One approach is to keep editing the code in Emacs Lisp and to leverage the “outline”, while the other is to use a literate Org file whose code blocks will be “tangled” to the init.el. I explain all the technicalities and show examples. More resources:
- Basic and capable Emacs configuration: https://protesilaos.com/codelog/2024-11-28-basic-emacs-configuration/
- Modern minibuffer (Vertico, Consult, etc.): https://protesilaos.com/codelog/2024-02-17-emacs-modern-minibuffer-packages/
- Ediff basics: https://protesilaos.com/codelog/2023-11-17-emacs-ediff-basics/
- My Emacs configuration:
- Web page: https://protesilaos.com/emacs/dotemacs
- Source: https://github.com/protesilaos/dotfiles
- Video explanation: https://protesilaos.com/codelog/2023-12-18-emacs-org-advanced-literate-conf/