~/dev/, with project/org subdirectories
- 0 Posts
- 35 Comments
mlfh@lemmy.mlto
Linux@programming.dev•Russia Mulls Forking Linux in Response to Developer Exclusions
494·1 year agoThe real challenge facing a kremlin linux fork isn’t opposition, it’s deciding what to do once they realize there aren’t any maternity wards in the kernel they can shoot ballistic missiles at.
Forgejo, a Gitea fork used by Codeberg. I chose it because it’s got the right balance of features to weight for my small use case, it has FOSS spirit, and it’s got a lovely package maintainer for FreeBSD that makes deployment and maintenance easy peasy (thanks Stefan <3).
mlfh@lemmy.mlto
Linux@lemmy.ml•ssh won't ask for password unless i force `PubkeyAuthentication=no`
152·1 year agoIf you’re trying to have password auth be a second layer on top of key auth (requiring a password after connecting with your ssh key), you can add the following to your server’s sshd_conf:
AuthenticationMethods "publickey,password"
/dev/sda is the whole raw disk - you typically don’t want to directly interact with /dev/sda, unless you are partitioning or overwriting it. There are a few layers between that device and the files:
- raw disk - /dev/sda
- disk partition - /dev/sda1
- luks container - when unlocked, mapped to /dev/mapper/{name}
- ext4 filesystem inside the luks container, mounted somewhere like /mnt, /media, etc
You’ll need to find where that ext4 filesystem is mounted, and run the chown command on that. You can run
lsblkand see a tree of the above hierarchy, with the ext4 filesystem’s mountpount shown in the right-hand column.
Nikita Khrushchev, in his own memoir, stating clearly that the USSR could not have won the war on its own:
I would like to express my candid opinion about Stalin’s views on whether the Red Army and the Soviet Union could have coped with Nazi Germany and survived the war without aid from the United States and Britain. First, I would like to tell about some remarks Stalin made and repeated several times when we were “discussing freely” among ourselves. He stated bluntly that if the United States had not helped us, we would not have won the war. If we had had to fight Nazi Germany one on one, we could not have stood up against Germany’s pressure, and we would have lost the war. No one ever discussed this subject officially, and I don’t think Stalin left any written evidence of his opinion, but I will state here that several times in conversations with me he noted that these were the actual circumstances. He never made a special point of holding a conversation on the subject, but when we were engaged in some kind of relaxed conversation, going over international questions of the past and present, and when we would return to the subject of the path we had traveled during the war, that is what he said. When I listened to his remarks, I was fully in agreement with him, and today I am even more so.
-Khrushchev, Nikita Sergeevich; Khrushchev, Serge (2004). Memoirs of Nikita Khrushchev: Commissar, 1918–1945. Penn State Press. pp. 638–639.
Friendly reminder that lemmy votes are public
mlfh@lemmy.mlto
Ask Lemmy@lemmy.world•What instances do you block and/or contain the most trolls?
674·1 year agoI blocked hexbear and lemmygrad to stop the firehose of kremlin/beijing propaganda cluttering up my feed and that made my lemmy experience worlds better. There’s only so many times you can read “special military operation” used unironically…
mlfh@lemmy.mlto
Asklemmy@lemmy.ml•What would you recommend: T480; Carbon X1 Gen 6; Or Dell 7480?
2·1 year agoSorry, all of the linux stuff is just specific to my own preferences/environment - if you’re more familiar with windows it would be best to just use that for testing. Presumably it will come with windows installed?
If so, put some programs on a normal usb storage device and then install/run them from there.
- For the cpu stress loading, you can use CpuStres: https://learn.microsoft.com/en-us/sysinternals/downloads/cpustres
- For temperature monitoring, you can use Open Hardware Monitor: https://openhardwaremonitor.org/
- To test the microphone/camera, I’d just use whichever app you’ll normally be using them for
As for the rest:
-
When you first turn the laptop on, at the red Lenovo splash screen, press Enter repeatedly to get into the boot menu. Once there, it’ll give you a list of options with associated keys to access them - go to “BIOS Setup - F10” (or something similar, not sure of the specifics on the X1C 6th gen). If it prompts you for a password to enter that, it’s locked.
-
To test all the ports, plug your usb stick with the apps on it into each of the usb ports and make sure it shows up in explorer; try the same with an sd card if you have one; plug in to a wired ethernet connection and make sure you have internet access through it (disable wifi at the same time to make sure); plug headphones into the jack and make sure they work; plug into an hdmi display if you have one.
-
To check battery health, run Command Prompt with administrator privileges, then run
powercfg /batteryreportto generate a battery health report
Good luck!
mlfh@lemmy.mlto
Asklemmy@lemmy.ml•What would you recommend: T480; Carbon X1 Gen 6; Or Dell 7480?
3·1 year agoPersonally I’d do the following:
- boot into the bios config menu to make sure it’s unlocked (if it’s locked and they don’t have the password that’d be a dealbreaker for me)
- boot into a live linux environment from usb and test both batteries, keyboard, trackpoint/trackpad, speakers, microphone, wifi, and all external ports (T480 has 2 usb-c, 2 usb-a, ethernet, hdmi, headset, and sd - make sure batteries charge well from both usb-c ports)
- to check the storage health, install nvme-cli if not installed, run
nvme smart-log /dev/nvme0and check the “percentage_used” value: if it’s near 100% it might die and need replacement soon - to check that the vents, airflow, and cooling hardware are in good shape, install stress if not installed, run
stress -c 7to load up 7 of the 8 available cpu threads, make sure the fan spins up good and strong, and watch /sys/class/thermal/thermal_zone0/temp to make sure the cpu temperature stays under ~90-95 degrees
On my own time later, I’d run memtest86+ overnight from bootable usb to check the memory, then install tlp and run
tlp recalibratewith the laptop on the charger to recalibrate the batteriesEdit: enjoy the new laptop! I hope it works great for you
mlfh@lemmy.mlto
Asklemmy@lemmy.ml•What would you recommend: T480; Carbon X1 Gen 6; Or Dell 7480?
2·1 year agoJust part of our standard office package, everyone gets a laptop, dock, and external monitors for their workspace.
mlfh@lemmy.mlto
Asklemmy@lemmy.ml•What would you recommend: T480; Carbon X1 Gen 6; Or Dell 7480?
2·1 year agoI can’t speak for all of them, but we’ve had a couple hundred deployed over the last several years with very few issues. Mine’s been solid as a rock.
The usb-c docks, however, are a nightmare, though I gather that’s fairly universal.
mlfh@lemmy.mlto
Asklemmy@lemmy.ml•What would you recommend: T480; Carbon X1 Gen 6; Or Dell 7480?
6·1 year agoI daily a T480 with Debian for work, and I’d recommend it highly. Great performance, battery, build quality, look & feel, etc. We have some 7480s deployed and while they’ve been solid as well, I much prefer the thinkpad. T series will have better performance and battery than X series, also, so I’d take the T480 over the X1C.
mlfh@lemmy.mlto
pics@lemmy.world•Olympic gymnast Giorgia Villa is sponsored by parmesan and takes many photos with a wheel of cheese
17·1 year agoI was sad to learn Parmesan isn’t vegetarian :(
Ctrl+r was a life-changer when I first learned it.
There should be a section in the configuration about dhcp, which is how ipv4 addresses are given out on your network. What happens is when a device first connects to the network, it sends out a broadcast with its mac address - the dhcp server (in this case, your router/firewall) hears this, and sends back a reply allocating an address. You should be able to see a list of currently allocated addresses, and hopefully configure reservations to make those allocations permanent. To reserve an ipv4 address for a specific device, you need that device’s mac address.
Each item on that current allocations list should have a hostname, a mac address, and an ipv4 address. If it’s not clear by the hostname which device is the tv, you can look up each mac address and deduce from there (the first part of each address is unique to a specific manufacturer).
Once you have an ipv4 address reserved for the tv, you can set your outbound firewall rule to block it.
Ipv6, as I mentioned, is much more complicated. It might be possible to disable it completely on your router, and that’s likely the only way to block the tv from using it, but then your whole network will lose ipv6 capability across that boundary (probably not a lot of downside to that, though).
Good luck!
If your firewall can set outbound rules, and you can control DHCP on your network so that you can reliably know the TV’s IPv4 address, you can block the TV from reaching beyond the local network there with a “deny all from source address of TV” type rule.
If your router/firewall is handling IPv6 though, it gets a lot more complicated, since the TV could have any number of addresses that change often.
I’d recommend a full battery calibration before running the command one more time, if you haven’t already (charge the battery fully, leave it on the charger at 100% for a while, then fully discharge until it shuts itself off, leave it for a bit, then fully recharge while off). If the calibrated values line up with a full:design ratio of ~80%, especially with a 10-year-old battery with almost 700 cycles on it, my take is that’s pretty great.
That said, I think the best way to get an accurate feel for the health of an old battery is to put it through one full cycle of normal use and time how long it takes to die.




I actually have my whole home directory like that for that reason haha
bin - executables dev - development, git projects doc - documents etc - symlinks to all the local user configs med - pictures, music, videos mnt - usb/sd mountpoints nfs - nfs mountpoints smb - smb mountpoints src - external source code tmp - desktop