• 0 Posts
  • 28 Comments
Joined 1 year ago
cake
Cake day: June 23rd, 2023

help-circle
  • rsync was written by one of the original Samba developers. I wonder if Tridge and co have any idea about how to shuffle data from A to B safely?

    CIFS/SMB will only indicate received and not received and written. This is unlikely to be an issue.

    I would start by proving that my network works properly, especially that dodgy cable with only wires 1,2,3,7 connected - because that's all 100Mb/s needs, or the solid core cable that runs for 150m with plugs at each end instead of sockets and drop leads.


  • "Is this a common issue with samba" - no.

    Samba shuffles rather a lot of data, quite happily. You have not given us an exhaustive description of the shoddy wiring, dodgy switches and wonky configuration that makes up your network. If it was perfect, you would not be posting here.

    There is one snag with CIFS (Samba follows MS's standards and ironically, I think that CIFS is now renamed back to SMB) that I am aware of, so SMB ... snag: SMB will indicate that a chunk of data has been received successfully but not that it has been written to disc successfully. NFS will notify that a chunk of data has been written to disc.

    The difference is subtle but if there is not a battery backed RAID involved then SMB/CIFS can lose data if the system restarts part way through a write.

    Your issue is probably hardware related. Test your network with say iperf3. Have a look at network stats. Don't rely on cargo cult bollocks - do some investigations. Nowadays we have nearly all the tools as open source to do the entire job - we did not have that 30 years ago. Grab wireshark, nmap, mtr and the rest and get nerdy (or hire me to do it - don't do that please!)


  • You have loads of options but you need to also start from ... "what if". Work out how important your data really is. Take another look and ask the kids and others if they give a toss. You might find that no one cares about your photo collection in which case if your phone dies ... who cares? If you do care then sync them to a PC or laptop.

    Perhaps take a look at this - https://www.veeam.com/products/free/linux.html its free for a few systems.


  • gerdesj@lemmy.mltoLinux@lemmy.mlProblems with Arch upgrade
    ·
    3 months ago

    What on earth went wrong?

    Arch is just as safe as any other distro, sometimes more so. Being a rolling jobbie, smaller bits tend to break at a time. If you want to live life on the edge then Gentoo is your man but even Gentoo is becoming pretty safe. You might lose your windowing system for a while but you still have links2 to get to a search engine.


  • Please do a little research before trying random stuff. After checking to see if you are actually using the iwlwifi module, why not find out a bit about whether the mentioned param. is available to you and what it does:

    Am I using the module. If the output from this is blank, then no:

    $ lsmod | grep iwlwifi
    iwlwifi               622592  1 iwlmvm
    cfg80211             1331200  3 iwlmvm,iwlwifi,mac80211
    
    

    Also verify with lspci -k as above:

    $ lspci -k | grep iwlwifi -A2 -B2
            DeviceName: WLAN
            Subsystem: Intel Corporation Raptor Lake PCH CNVi WiFi
            Kernel driver in use: iwlwifi
            Kernel modules: iwlwifi
    00:15.0 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 (rev 01)
            Subsystem: Hewlett-Packard Company Alder Lake PCH Serial IO I2C Controller
    
    
    # modinfo iwlwifi
       ...
    parm:           swcrypto:using crypto in software (default 0 [hardware]) (int)
    parm:           11n_disable:disable 11n functionality, bitmap: 1: full, 2: disable agg TX, 4: disable agg RX, 8 enable agg TX (uint)
    parm:           amsdu_size:amsdu size 0: 12K for multi Rx queue devices, 2K for AX210 devices, 4K for other devices 1:4K 2:8K 3:12K (16K buffers) 4: 2K (default 0) (int)
    parm:           fw_restart:restart firmware in case of error (default true) (bool)
    parm:           nvm_file:NVM file name (charp)
    parm:           uapsd_disable:disable U-APSD functionality bitmap 1: BSS 2: P2P Client (default: 3) (uint)
    parm:           enable_ini:0:disable, 1-15:FW_DBG_PRESET Values, 16:enabled without preset value defined,Debug INI TLV FW debug infrastructure (default: 16) (uint)
    parm:           bt_coex_active:enable wifi/bt co-exist (default: enable) (bool)
    parm:           led_mode:0=system default, 1=On(RF On)/Off(RF Off), 2=blinking, 3=Off (default: 0) (int)
    parm:           power_save:enable WiFi power management (default: disable) (bool)
    parm:           power_level:default power save level (range from 1 - 5, default: 1) (int)
    parm:           disable_11ac:Disable VHT capabilities (default: false) (bool)
    parm:           remove_when_gone:Remove dev from PCIe bus if it is deemed inaccessible (default: false) (bool)
    parm:           disable_11ax:Disable HE capabilities (default: false) (bool)
    parm:           disable_11be:Disable EHT capabilities (default: false) (bool)
    
    

    sysfs is a pseudo filesystem with lots of info in it. cat the files here:

    $ ls -l /sys/module/iwlwifi/parameters/
    
    

    ... to see what your current values are set at. You can install sysfstools and run this for a neat report:

    $ systool -vm iwlwifi
    Module = "iwlwifi"
    
      Attributes:
         ...
      Parameters:
        11n_disable         = "0"
        amsdu_size          = "0"
        bt_coex_active      = "Y"
        disable_11ac        = "N"
        disable_11ax        = "N"
        disable_11be        = "N"
        enable_ini          = "16"
        fw_restart          = "Y"
        led_mode            = "0"
        nvm_file            = "(null)"
        power_level         = "0"
        power_save          = "N"
        remove_when_gone    = "N"
        swcrypto            = "0"
        uapsd_disable       = "3"
    
    

  • xfs has reflinks. That means you can copy huge wodges of data nearly for free on one filesystem. For backup systems this is a killer feature. Veeam rolling up incremental backups into the last full happens in seconds because pointers to blocks are juggled around rather than the data blocks themselves.

    xfs has been around for a very, very long time. I use it for larger filesystems eg Nextcloud, Zoneminder and the like (and Veeam backup repos that are not object storage). I use ext4 by default.

    pfSense boxes - zfs because the alternative is ufs.

    RPi - OverlayFS (with ext4 and tmpfs) gets you a generally read only filesystem with changes held in RAM. Ideal for kiosks, appliances and keeping memory sticks alive.

    Windows - NTFS, it works well and has streams and there aren't many other options (ReFS is a bit new but it does have reflinks)




  • mead

    Do you really drink a honey based brew?

    There is almost certainly a binary version of gcc in Gentoo. I ran Gentoo for 20 odd years and also generally insisted on compiling everything. I recall gcc going from v3 to 4. My laptop ran for over a week on a glass table with a prop to keep the fan vent unobstructed.

    I probably should have learned back then that I didn't really understand exactly how the toolchain worked and how to get from ebuilds to binary code really works. I'm a sysadmin and not a programmer.

    With hindsight, I suggest that you pick your fights with care. Use the bin versions of entire packages where available and enjoy the flexibility of USE when it will make a difference.

    gcc is not the biggest lump you will compile but it does take a while. It was rather slower 20 years ago.


  • Bizarre article: "Recently, Linux-based firmware has emerged as a powerful alternative"

    I have a stack of Dell OS9 switches in my computer room - they boot BSD. I have sold and set up Dell OS10 switches - they boot Debian ... on the control plane. To be fair they can run quite a few OS's on the control plane. On both, you can switch to a shell (BASH) and fiddle with Ansible and the like or you stick with the usual interface.

    They are not glorified PCs! Frames and packets pass through some very fancy electronics and some very specialized memory (CAM - Content Addressable Memory) is employed for certain tasks. The manuals for these beasts run to 1500 pages.

    I also have a large fleet of pfSense and VyOS routers and a Mikrotik or two and a slack handful of Fortiwotsits, oh and a Cisco thing or two and some others. pfSense is BSD and the rest are Linux. The Fortis are a bit more like modern switches with their own rather odd and twitchy way of doing things, backed up with some fancy and not so fancy hardware.

    I have also played with all of the distros mentioned: Tomatoe/DD-WRT/OpenWRT and they are great for cheekying up a rather rubbish ISP provided router. They are also great for running on budget gear. They are basically superb for budget conscious consumers that are capable of reading some very decent docs. Prosumer is the term, I think.

    Anyway, this article is rather odd and is basically filler. The section titled: "Case Studies and Real-World Examples" is a contender for fluff of the month.



  • "I understand that Canonical has every right to make the decision about their product."

    That seems fair. There are loads of distros available so why not try something else if you don't like Ubuntu?

    Linux and other mainstream Unices such as FreeBSD or OpenBSD int al (that's not something I ever thought I'd be able to say a few decades back) are not Windows or Apples or whatevs. You do you and not them!

    If Ubuntu fails to scratch your itch then move on. Debian is the upstream for Ubuntu so you'll probably be fine with that instead. There is loads of documentation for Debian via the wiki etc and of course most Ubuntu docs will apply as well.


  • I do IT security for a living. It is quite complicated but not unrealistic for you to DIY.

    Do a risk assessment first off - how important is your data to you and a hostile someone else? Outputs from the risk assessment might be fixing up backups first. Think about which data might be attractive to someone else and what you do not want to lose. Your photos are probably irreplaceable and your password spreadsheet should probably be a Keepass database. This is personal stuff, work out what is important.

    After you've thought about what is important, then you start to look at technologies.

    Decide how you need to access your data, when off site. I'll give you a clue: VPN always until you feel proficient to expose your services directly on the internet. IPSEC or OpenVPN or whatevs.

    After sorting all that out, why not look into monitoring?


  • I think we might be writing at cross purposes. The system you had for your mum obviously worked effectively for you and that is the important thing.

    POTS provide(s|d) a fixed point of reference - your address is registered against the number for 999 etc; it provides power for a handset or device; Its been like that for a lot of decades! These are cast iron guarantees. A POTS line has guarantees, enshrined in UK law, that mobile etc does not have. POTS is circuit switched (well it was) which means there is a physical path between the ends for the duration of the conversation.

    So, by old school, I mean that you currently have important guarantees about telephony in the UK that will evaporate in future. In 2025 or so, we in the UK will have finished migrating from our old school POTS copper lines and will enjoy our smart new SoGEA lines instead. Single Order Generic Ethernet Access. Instead of an emulated circuit switched line we will use VoIP across the entire country. Nothing wrong with that but it probably won't have the guarantees that POTS had.

    Red Care is no more - BT have dropped it on the floor as of Feb this year which may indicate that things are not well with our future comms promises. The general system that Red Care was one product of is still available.

    This is the important point: Promises (in law) that we used to be able to rely on for comms may (will) be binned.


  • In the UK at least, the POTS (Plain Old ...) copper phone lines carry an electrical current as well as signals and can power the handset. There are certain guarantees about this so that in an emergency your phone will still work so you can dial 999 (our original emergency number) or 112. Our fire regulations require something like 30 minutes before things should start failing. In the real world, you get out immediately and use your mobile.

    We have an emergency alarm monitoring system used by businesses. Its generally known as "Red Care" which was a brand run by BT (British Telecom). You have a small device connected to a phone line (and powered by it) and it will monitor your fire detectors and building access control systems and a 24 hour manned monitoring centre will notify you in the event of an emergency. Nowadays, these devices will use your wifi and internet connection. Sometimes: old school is best.


  • Errm, Wireshark. Please bear with me.

    Wireshark is a shining example of an open source project completely and utterly crapping on the closed source competition. As a result we all benefit. I recall spending a lot of someone else's money on buying a sort of ruggedized laptop with two ethernet ports to do the job back in the day.

    Nowdays, I can run up a tcpdump session on a firewall remotely with some carefully chosen timings and filters and download it to my PC and analyse it with Wireshark.

    OK, all so convenient but is it any use?

    Say you have a VoIP issue of some sort. The PCAP from tcpdump that you pass to Wireshark can analyse it to the nth degree. Wireshark knows all about SIP and RTP (and IAX) and you can even play back the voice streams or have them graphed so you can see what is wrong or whatever. That's just VoIP, it has loads of other dissectors and decorators built in.

    So what?

    The UK (for example) will be dispensing with boring old, but reliable, POTS (Plain Old Telephony System) by 2025. Our entire copper telephony and things like RedCare (defunct soon) will go away.

    We are swapping out circuit switching for packet switching. To be fair, a lot of the backend is already TCP/UDP/IP that is shielded away from us proles. When SoGEA (Single Order Generic Ethernet Access) really kicks in then the old school electric end to end connection will be lost in favour of packet switching, which never fails (honest guv).

    If you are an IT bod of any sort, you really should be conversant with Wireshark.


  • Start off with Gentoo to get the hang of the basics. Switch to Arch because compile times and heat burns. Try Linux from Scratch for a laugh, giggle and move on, but with a new found respect for distro maintainers.

    What's your use case? If it involves AAA games then that will narrow things a bit but if you simply want a bit of docs n that and, internet browsing and a spot of email and realtime sound and CAD then we'll need a broader chat.

    Debian, Fedora, Ubuntu, OpenSuSE, Mint - those would be my starters for 10 in no particular order. Pick yours and your hip angle. I personally run Arch (actually) and Gentoo. I don't recommend them as a dip your toe in the water job 8)

    Feel free to dive in, the water is lovely.


  • Did anyone really think that making UEFI systems the equivalent of a mini OS was a good idea

    UEFI and Secure Boot were pushed forcibly by MS. That's why FAT32 is the ESP filesystem.

    If I had to guess, a brief was drafted at MS to improve on BIOS, which is pretty shit, it has to be said. It was probably engineering led and not an embrace, extinguish thing. A budget and dev team and a crack team of lawyers would have been whistled up and given a couple of years to deliver. The other usual suspects (Intel and co) would be strong armed in to take whatever was produced and off we trot. No doubt the best and brightest would have been employed but they only had a couple of years and they were only a few people.

    UEFI and its flaws are testament to the sheer arrogance of a huge company that thinks it can put a man on the moon with a Clapham omnibus style budget and approach. Management identify a snag and say "fiat" (let it be). Well it was and is and it has a few problems.

    The fundamental problem with UEFI is it was largely designed by one team. The wikipedia page: https://en.wikipedia.org/wiki/UEFI is hilarious in describing it as open. Yes it is open ... per se ... provided you decide that FAT32 (patent encumbered) is a suitable file system for the foundations of an open standard.

    I love open, me.


  • Employer here (UK)! I'm probably not normal being the MD and running Arch (actually) on my gear. I had to switch from Gentoo because I kept on burning myself.

    For me, something like the LFCSA is something I respect because it is practical. Back in the day I did something similar (Novell I think). I've also grabbed a VMware ... whatever ... and that was a memory test and a waste of money. Who cares if you can quote the maximums?

    When I'm hiring, I want to see application and knowledge and not a plethora of industry "quali-wankery"! You can always search for facts but knowing how to apply them is what I want to see.

    Be flexible but do try to develop what sort of direction you want to take. What floats your boat out of dev ops, sysadmin etc?

    You could also consider self employment/consultancy. I sort of fell into it 23 years ago ...


  • A discarded Windows laptop is ideal for use with Linux. That's what this Managing Director of an IT company has been doing for over a decade. My desktop PC is a customer cast off from a good five years ago. I slapped in an ageing Nvidia el cheapo card to get two monitors running. My laptop is a cast off from one of my employees - I simply opened it up and moved my M.2 card into it.

    I do run ESET on my Linux gear to show solidarity and to show that Linux really is rather more resource friendly than Windows. I login to AD and I use Evolution with Kerb to access Exchange for email. I have the same "drive mappings" to the same file servers too and so on and so forth.

    I used to teach word processing, spreadsheeting and databases n that for UK govt funded courses, I've written a Finite Capacity planner for a factory in Excel (note the lack of In-). I still find people who have no idea how decimal tab stops work or how to efficiently use styles. I can confidently inform you that Libre Office is just as good as MSO. They both have their ... issues but both work pretty well.

    Kids are easy. Adults are a pain! KDE has a lot of educational games ready to go out of the box.