There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

7dev7random7 , in Running a business using linux

Maybe you can use some German bank. They allow one to interact with their API for free. I use GNU cash for it. Though I doubt that you can file your taxes via GNU cash and be aligned with current UK law. You would need to check it for your own.

EtzBetz ,

Is the free API part actually true for Sparkasse? I was not able to find an API solution for them. I did find something, but beyond a certain step, there wasn’t an actual API.

7dev7random7 ,

www.aquamaniac.de/rdm/

Gives you an adapter and an standalone tool. All banks should use the same API, apparently.

EtzBetz ,

I’ll take a look, thank you

Tja ,

Should be everywhere. I’ve only tried it with DKB.

www.bundesbank.de/en/tasks/…/psd2-775954

EtzBetz ,

So you can actually get transaction information of your own account via an API via psd2?

Tja ,

Yes. I tried it once with Gnu cash and my dkb account, got 12 months of transactions or so.

TCB13 , in Getting IP address for LXD/Incus for ssh
@TCB13@lemmy.world avatar

What do you do if you want to find the IP address of an instance, but incus list does not give you one?

If that’s the case then it means there’s no networking configured for the container or inside it. The image you’re using may not come with DHCP enabled or networking at all.

I often just find the IP of the container and then ssh in as that feels natural, but perhaps I am cutting against the grain here.

You are. You aren’t supposed to SSH into a container… it’s just a waste of time. Simply run:


<span style="color:#323232;">lxc exec container-name bash # or sh depending on the distro
</span>

And you’ll inside the container much faster and without wasting resources.

InternetCitizen2 OP ,

But that then leaves me as root, is there a way to just have a normal user? Or is that also not really intended?

TCB13 ,
@TCB13@lemmy.world avatar

Well, it’s a container, in most situations you would be running as root because the root inside the container is an unprivileged user outside it. So in effect the root inside the container will only be able to act as root inside that container and nowhere else. Most people simply do it that way and don’t bother with it.

If you really want there are ways to specify the user… but again there’s little to no point there.


<span style="color:#323232;">lxc exec container-name --user 1000 bash 
</span><span style="color:#323232;">lxc exec container-name -- su --shell /bin/bash --login user-name
</span>

For your convenience you can alias that in your host’s ~/.bashrc with something like:


<span style="color:#323232;">lxcbash() { lxc exec "$1" -- sudo --login --user "$2"; }
</span><span style="color:#323232;">
</span>

And then run like:


<span style="color:#323232;">lxcbash container-name user-name
</span>
InternetCitizen2 OP ,

I guess that does make sense. Part of what I had in mind was having different instance for different projects. I guess in my mind it gives me a reason to have and practice multiple as well as feeling cleaner (keeping compiler and stuff off host). I will try out your advice when I get home. Thank you so much!

JohnnySledge ,

I use LXD (too lazy to move to Incus at the moment) for this exact purpose. It’s definitely nice having a greater degree of isolation between the various projects I’m working on — especially when working with confidential information from clients. Depending on what you’re looking to do there are simpler ways to manage isolation between projects like chroot and nspawn or Nix’s environments. Then again by using LXD/Incus you get that plus lots of other useful tools baked in.

Regarding not getting an IP address have you checked your base configuration to see if dhcp has been configured for the bridge? If that isn’t the issue then all I can think of is that you somehow deleted the interface and should check the container config.

That said the commands provided above are how I usually access the container command line. For coding I use code-server to put VS Code in a browser. I’m sure there are better options and look forward to the suggestions.

Keep going and learning!

TCB13 ,
@TCB13@lemmy.world avatar

You can run full GUI apps inside LXC containers and have X11 deal with the rest. Guides here and here.

JohnnySledge ,

Thanks! I’ve come across many of Simos’ posts while getting up to speed on LXD. I had previously ended up settling on using the forgotten xdmcp to establish and manage the connections. My next go around will probably use a different approach that is more secure.

My use case for code-server is that I can then access the IDE from any computer allowing me greater flexibility of the device that I code on.

bizdelnick , in /media or /mnt or anywhere ? Discussion.

Mount them where you need. Not /mnt and not /media. Maybe /var or its subdirectory, or /srv, or /opt depending on what kind of data you want to store on that partition.

gpstarman OP ,

Not /mnt and not /media

Why though?

what kind of data

Just media files, downloads, images , music kinda stuff.

bizdelnick ,

Why though?

The filesystem is organized to store data by its type, not by the physical storage. In DOS/Windows you stick to separate “disks”, but not in Unix-like OSes. This approach is inconvenient in case of removable media, that’s why /media exists. And /mnt is not suited for any particular purpose, just for the case when you need to manually mount some filesystem to perform occasional actions, that normally never happens.

Just media files, downloads, images , music kinda stuff.

That’s what usually goes to /home/<username>. Maybe mount that device directly to /home? Or, if you want to extend your existent /home partition, use LVM or btrfs to join partitions from various drives. Or mount the partition to some subdirectory of /home/<username>, or even split it and mount its parts to /home/<username>/Downloads, /home/<username>/Movies etc. So you keep the logic of filesystem layout and don’t need to remember where you saved some file (in /home/<username>/Downloads or in /whatever-mountpoint-you-use/downloads).

gpstarman OP ,

mount the partition to some subdirectory of /home/<username>, or even split it and mount its parts to /home/<username>/Downloads, /home/<username>/Movies etc

Thanks bro. I think that’s what I’m gonna do.

SimplyTadpole , in /media or /mnt or anywhere ? Discussion.
@SimplyTadpole@lemmy.dbzer0.com avatar

Use any you want. I’ve been mounting my internal secondary hard drive on /mnt for well over a year now and haven’t had any problems. Previously, I mounted it on ~/Storage and it also worked fine (though only because I’m the only user in my computer; dual-user systems would result in the other user being unable to access the hard drive).

gpstarman OP ,

Thanks bro.

UnfortunateShort , in Why do you still hate Windows?

I don’t hate Windows for work. On the clock, I am balls deep in their ecosystem and I can’t say that it’s not working. However, that’s probably because I get it mostly set-up by IT!

Casual reminder that on Windows, it’s the norm to go fetch packages from the fucking internet using a web browser and give them root access to your system, including drivers…
A lot of settings are still scattered as well, with stuff randomly hidden away, completely unconfigurable or named so it’s not at all clear what it even does.

For everyday stuff like browsing, I totally do not see why people would want to use Windows.

If it wasn’t for (some) ((multiplayer)) games and other Windows-only software, I wouldn’t recommend this OS to anyone at this point.

lazynooblet , in Running a business using linux
@lazynooblet@lazysoci.al avatar

If you use Mettle, the phone based bank, you get FreeAgent for free. FreeAgent is a really good web based accounting package that works in Firefox. They gave a useful accompanying API and can do payroll, VAT, end of year and director self assessment. It’s great.

just_another_person , in Tailscale/synology/NFS remote access

Can you be more specific?

  • What are you using to try and connect to the share?
  • Can you ping the NAS over the Tailscale interface?
  • If so, can you connect to port 445?
  • Can any other devices also connect to the share?
pukeko OP ,
  1. Declaring the NFS mount in my NixOS configuration; also tried manually mounting via

sudo mount -o nfs $TAILSCALEHOSTNAME:/$MOUNT /mnt/$MOUNT (with some options like no auto, but I’m doing this from memory)

  1. I’ll try but I have some idea that it won’t respond to ping
  2. I will try in a moment
  3. yes, on the local network (192.168.x.x) — and for the record I allowed access to the NFS share via the tailscale subnet

The error I am receiving differs depending on whether I’m connecting via CLI or, say, Nautilus but I’ll have to collect the errors when I’m back at the laptop.

just_another_person ,

My first guess is that using an actual hostname isn’t going to work for you if that hostname is served by your local network DNS (meaning, not using magicdns on tailscale), which you would not be on when connected via tailscale unless you override your DNS server once connected.

Try by IP instead. Give errors if that doesn’t work.

pukeko OP ,

It’s the same error regardless of whether I connect by tailscale IP (100.x.x.x) or the tailscale hostname, and it strongly suggests an issue on the Synology, but everything looks correct on the NAS (but I am by NO MEANS an expert):

mount.nfs: access denied by server while mounting $IP:/volume1/$mount

just_another_person ,

Then you need to ssh into both devices and confirm they can both ping each other via the tailscale interface as a starter. That will at least shownif you have a routing problem.

pukeko OP ,

Apologies for the delay. July 4th festivities and rescuing a kitten from a storm drain intervened (upside: we now have a kitten).

I can ping the NAS from the client on the Tailscale IP (100.x.x.x) and the tailscale hostname. If I SSH to the NAS, I cannot ping the client machine, but everything on the NAS is available from the client other than the NFS share (and I think I remember reading that the Synology tailscale client does not support ping).

I realize we’re sort of narrowing in on an NFS setting or possibly a firewall setting, and I appreciate your patience in going on this journey with me, but I have configured both according to, most relevantly, the tailscale documentation for connecting to a Synology NAS.

offspec ,

I don’t use synology but it kind of seems like the synology has an allowlist for subnets that can connect to it. Do you know what service is hosting the file share?

pukeko OP ,

The allowlist for NFS allows the tailscale subnet and the local LAN subnet.

offspec ,

Does tailscale have a consistent subnet? Can you connect to the NFS share over the LAN net?

possiblylinux127 , in /media or /mnt or anywhere ? Discussion.

/mydrive

oldfart ,

That’s what I do, /music

possiblylinux127 ,

Thanks you, /oldfart

gpstarman OP ,

Thank You.

turbowafflz , in Can I install linux on this?

Looks very similar to the Windows CE device action retro has in this video so what he used could be helpful m.youtube.com/watch?v=anz17CNMixU

Revan343 , (edited ) in /media or /mnt or anywhere ? Discussion.

Mounting locations are a convention, not a standard, mount whatever you like wherever you like. In your case, I’d mount it under /mnt/ntfs, /mnt/windows if it a windows main partition you want visible, or by drive letter if it’s a secondary drive on a dual-boot system.

Or however you want. I would keep it under /mnt, but you don’t have to.

Do maybe sure you have user permissions set up properly if this is a multiuser machine though

Edit: also I would interpret

If /mnt is for temporary

‘temporary’ as in ‘may become unmounted without seriously fucking the system’

/ and /home aren’t temporary. Everywhere else is

gpstarman OP ,

‘temporary’ as in ‘may become unmounted without seriously fucking the system’

Thanks bro. Now it make sense.

refalo , in Running a business using linux

I’m grateful to the community and I use FOSS where possible.

Ok, but do you give anything back?

danhab99 , in Why do you still hate Windows?
@danhab99@programming.dev avatar

Convention over configuration feels like such a fight when I’m trying to configure something

Eeyore_Syndrome , in [Bazzite] Fedora Kinoite Duplex Printing Issue
@Eeyore_Syndrome@sh.itjust.works avatar

Have you tried using the driverless cups driver tho?

Eric_Pollock OP ,

How would I do that? When trying to add my printer, it wouldn’t let me continue unless I selected a printer model

Edit: I found the generic printer option under the model selection. However, when I select it, the paper goes through the printer but nothing is printed

Eeyore_Syndrome ,
@Eeyore_Syndrome@sh.itjust.works avatar

I have a Brother HL-L2395DW

Tho when I went to add it as a printer, my system automatically selected the “reccomended” drivers on Plasma 6+.

I remember on older Plasma, that you still had to select Brother first, then search for model type. At that next screen or if I edit my current printer, I searched for L23:

By generic printer driver, I meant the cups/driverless one on this selection screen. Opposed to any official Brother or GutenPrint drivers/ppd files.

I did try searching for your exact model, but nothing showed for me…tho I can’t tell if that’s because mine is already wireless/UPnP and grabbing only it’s settings.

I’m using the Brother HL-L2395DW series, driverless, 2.0.0

https://sh.itjust.works/pictrs/image/6fbb49be-c21e-46d3-b34c-a2916edf3071.png

https://sh.itjust.works/pictrs/image/08122edb-2fe1-4fc7-be15-7fcc6f33e070.png

https://sh.itjust.works/pictrs/image/73c0dbad-136a-4520-a953-c40b304eef68.png

I Just have to also make sure duplex printing is set to on, both system and firefox/application whatever settings. On Firefox I use Flip on long edge.

TudbuT , in Why do you still hate Windows?

I find Linux to be MUCH easier to use. Granted, this is unusual, especially for an i3wm user, but hear me out: Although Linux has a very steep learning curve and using it seems very hard at first, this difficulty is short-lived. Getting anywhere is significantly faster and requires fewer steps, and the “simplicity” of windows quickly turns into complexity when you actually want to multitask and keep having to resize and click through dozens of windows.

Of course, I also really like the freedom of actually owning my system, and that of tinkering with all the software on it when I am annoyed at something not being how I’d like. Privacy is a nice bonus, but honestly the lesser concern since I already have none anyway by owning a phone and being too lazy to degoogle it.

njordomir ,

Good point. Startup effort is not the same as effort once you are comfortable with your system.

I had my turning point early on when I first learned to update all my packages from the terminal. For me, this changed the game compared to how Windows programs handled updates at the time and Linux became officially easier than Windows… for me.

I could see how this “point of equal ease”, could come later for some users, especially those who want to run Windows software or do something advanced.

user , in [Bazzite] Fedora Kinoite Duplex Printing Issue

Curious, how did u dnf install if it’s immutable? Through distrobox and then export ?

Eric_Pollock OP ,

Sorry! I made a mistake in my post. I used rpm-ostree, not dnf

user ,

👍

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines