[ home / manage ]

/tech/ - Techloligy

Hail the Omnissiah!

Return to dashboard

Catalog

Hidden service: http://bhm5koavobq353j54qichcvzr6uhtri6x4bjjy4xkybgvxkzuslzcqid.onion/

Fallback map (v1.3): https://smuglo.li/fallback.txt

Secondary domain: https://smugloli.net

Remember to take it easy! ( ̄▽ ̄)"

Name
Email
Subject
Comment *
Verification *
File *
* = required field[▶ Show post options & limits]
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, mp3, ogg, flac, pdf, txt, svg, zip, rar, cbz, cbr, 7z, gz, tar, avi, opus, m4a, pdf
Max filesize is 90 MB.
Max image dimensions are 15000 x 15000.
You may upload 5 per post.


File: 1614386468010.jpg (707.97 KB, 1518x1200, 253:200, 0c4f5ccd2500394ccac4f4f805….jpg)

 No.2[Reply]

For meta issues relating to site operation, board moderation, and webring functionality, see their new home on >>>/support/.

SMUG GPL

1. “Global rules” apply.

2. No shitposting, no fartposting.

3. No spamming.

4. Recommendations, source, and other requests should be posted in >>>/rec/.

5. Lewd and guro need to be spoilered.

6. Remember the 2D/3D barrier.

7. Non-free content is allowed, but will get you bullied.

8. Meta content should be posted in >>>/support/.

9. Tangentially related political content/images should not be posted.

10. Name/avatar/tripfagging without a reason should be avoided.

11. Posts should in general use correct capitalization, punctuation, grammar, and not use emoticons; this isn't IM.

12. Board is 18+. Keep that in mind.

Rule 11 is in part mechanically enforced by /a/'s beloved automaid, 'Hoihoi'. A list of words to not use can be found at https://smuglo.li/a/automaid.html

Hidden Service: http://bhm5koavobq353j54qichcvzr6uhtri6x4bjjy4xkybgvxkzuslzcqid.onion/

[Reply]

File: 1731468671098.png (377.79 KB, 1024x1024, 1:1, ClipboardImage.png)

 No.2667[Reply]

might be here sooner than we thought:

https://inv.nadeko.net/watch?v=SOq5ha0hLAE

>Intel was falling behind in the technical department, Apple said "fuck it" and transitioned to ARM

>Intel is now falling behind in marketshare; lost consumer, laptop, and finally datacenter to AMD

>Microsoft seems to be preparing for the possible end of the Wintel era, partnered with Qualcomm to make Windows run Intel binaries as smoothly as possible on ARM

>Nvidia prepares to push their ARM offerings into mainstream consumer products as Intel is busy plugging holes in its sinking ship

>AMD rumored to also have an ARM APU ready, and has been asking for detailed crash reports of radeon on ARM linux (I forgot where I saw this)

>Valve's repository has several proton builds tagged with arm64

Do you think we'll start seeing ARM CPUs and/or prebuilt devices being pushed hard into consumers?

Will ARM completely phase out x86_64 entirely, or both with co-exist?

Are you excited to move away from the x86_64 architecture, or would you rather stick to it?

12 posts and 2 image replies omitted. Click reply to view.

 No.2806

File: 1765862758655.webm (7.99 MB, 640x360, 16:9, future.webm)

>>2795

Which is a shame, because this is what typically happens when They Live.


 No.2815

File: 1766880456798.png (376.87 KB, 600x692, 150:173, ClipboardImage.png)


 No.2840

>>2806

This can't be serious. Happy little goyim gets allocated everything while the highest class still own cars and eat whatever they want.

Cunt's still pretty fat for being on a calorie ration.


 No.2843

At times I've had Raspberry Pis as my 'main PC.' I have no problem with this so long as they offer an embedded motherboard like the N100's or older J4XXX/J3XXX units (but ARM of course) - I like building PCs and those little hockey puck Chinese PCs ain't gonna cut it.


 No.2848

I've read some speculation about how Valve's new VR goggles might give a push to ARM desktop, because they are going to run SteamOS and also have an x86 translator, and it is possible that they will have a UEFI (or some other standardized) bootloader so that you can install whatever OS you want. All of this together might actually lead to at least some standardization amongst ARM desktops, or so they say hope.


[Reply]

File: 1617916269457.jpg (73.62 KB, 1000x1000, 1:1, reject modernity.jpg)

 No.473[Reply][Last 50 Posts]

This thread is for imageboard software.

Ask questions and help others.

Old but working:

>vichan fork of tinyboard

https://github.com/vichan-devel/vichan

>npfchan, fork of vichan, archive feature

https://github.com/fallenPineapple/NPFchan

>Infinity, user board creation, smuglo uses this but maybe heavily modfied idk

https://github.com/ctrlcctrlv/infinity

>openib, fork of infinity, user board creation

https://github.com/OpenIB/OpenIB/

Wild ib software appeared:

>Lynxchan, (((js))), user board creation

https://gitgud.io/LynxChan/LynxChan

>Jschan, also (((js))), has a lot more features than lynxchan, user board creation

https://gitgud.io/fatchan/jschan

132 posts and 32 image replies omitted. Click reply to view.

 No.2627

>>2599

This is not true. I programmed, hosted and managed an imageboard for about 100 people for 3 years, and didn't have this problem.

>>2594

Building the community is the hardest thing. And make sure you have good moderation tools and a good lockdown contingency measure if shit hits the fan.


 No.2820

File: 1767583876596.png (1.38 MB, 1284x1270, 642:635, decline of the guca.png)

This thread has way too many walls of text to write a detailed response, so all I can say is that meguca (current HEAD at github.com/zkm2/shamichan, I'll publish my fork soon) is phenomenal at sustaining small communities and that the issues of running an imageboard in like spam are greatly exaggerated. No amount of moderation will stop a truly dedicated autist on one hand, but on the other there are no fed CSAM bots killing small IBs. All of that stuff is posted by nolife autists to kill sites they don't like after a bad interaction with the staff. The best thing you can do is not let the ability to capcode go to your head.

>>2346

>>2350

>meguca/pol/

I know this is probably far too late, but we're on homurachan.org/homu now.


 No.2838

File: 1771971579693-0.png (31.52 KB, 128x128, 1:1, favicon.png)

File: 1771971579693-1.jpg (57.93 KB, 850x700, 17:14, lambdachan spurdo.jpg)

Lambdachan. See the source code section:

http://lambdaplusjs35padjaiz4jw2fugdoeutse262phqr72uf634s2wdbqd.onion/Guide/

Interesting feature: Blind signatures to post without captcha anonymously. Basically your reputation is tracked with cryptographically signed tokens you get for non-jannied posts but the tokens can't trace you to the posts you made so there is per-post anonymity.


 No.2846

All of you are mere plebs compared to the supreme Emacs Lisp used to power goatse.world.

https://goatse.world/home

https://github.com/andrewmetzner/gapzip


 No.2847

>>2846

Is it optimised for eww?


[Reply] [Last 50 Posts]

File: 1629039825749-0.png (383.83 KB, 1024x768, 4:3, __fujiwara_no_mokou_touhou….png)

File: 1629039825749-1.pdf (7.07 MB, sicp.pdf)

 No.1209[Reply][Last 50 Posts]

Welcome to the beginner programming thread! This is for anons who want to start programming as their hobby or finding a better job. I'm putting a list of all the resources that might be useful, but I haven't used them all extensively since I'm sort of a beginner myself, so feel free to suggest superior alternatives than the ones I posted.

>Open Source Society Computer Science

https://github.com/ossu/computer-science

Extensive list of free resources of what a typical Computer Science education looks like. I would recommend "Introduction to Computer Science and Programming using Python" as your starting course from that list, since Python is a very simple language, and it teaches you about data types and basic data structures.

>SICP

From what I understand, SICP teaches you how to think like a programmer and it's usually recommended for beginners. Even experienced programmers go back and review some material they forgot.

>The Odin Project

https://www.theodinproject.com/

If you're interested in web development, you can go for this after you finish the first course. It doesn't hold your hand, but it really really helps you on creating projects if you have no idea on how to start them. After taking "Foundation", "Full stack JavaScript" should be your next path since learning Ruby might be useless in a few years from what I heard, but JavaScript is still popular and needed by many companies.

>"Anon, I'm stuck and don't know what to do, how do I solve this?"

https://stackoverflow.com/

Stack Overflow has all the answers you need. You should always check this place because 99% of the time someone else asked the same question, so this should be a great resource to use as a reference.

I fPost too long. Click here to view the full text.

125 posts and 16 image replies omitted. Click reply to view.

 No.2417

>>1210

coming here and thinking you have some kind of advice to give is funny as fuck

>sicp is a meme

how is that? it conveys accurately the essence of computer science through descriptions of mathematical problems that emphasize the most important aspects like the towers of hanoi and fixed-point functions. it also establishes the relationship between program structure and process structure for example in the peano arithmetic example. i fail to see how this book is a meme if you've actually read it or watched the lectures on youtube. it's old but its concepts are timeless… it's like saying euclid's elements are a meme because it's old. it just makes no sense.


 No.2419

File: 1703410856830.jpg (37.41 KB, 1280x720, 16:9, a9dac5ba5458f544cb85586c91….jpg)

>>2416

AoC is convenient to practice a language when you don't have any good projects in mind. Though I've never had the motivation to finish one.


 No.2430

File: 1705444536891.webm (964.11 KB, 1120x720, 14:9, Terry_CIA_clusterfuck.webm)

So, how retarded of an idea is it to learn programming in TempleOS with Holy C?


 No.2431

>>2430

To clarify, I am thinking of starting learning plain C at first, but running TempleOS.


 No.2842

>>1221

>Tables

As in precomputed hashes? Works fine if it hasn't been salted. Take wpa, simple enough hashing BUT it uses the access point details as part of the salt, so even if 2 APs have the same password their hashes of that password will be different.


[Reply] [Last 50 Posts]

File: 1710231835249.webm (729 KB, 1000x540, 50:27, banner.webm)

 No.2493[Reply]

You ever download an anime and wish it was easier to remove all the stupid crap from the filenames? Me too, so I made this program.

I don't know what to say here, I just wanted to share this. Post feedback ITT if you have any. I made it on/for Windows 7, I have no idea if it works on any other OS. It doesn't do anything very special so it might work on Linux with Wine or whatever.

Download here: https://sundee.neocities.org/filenamewrangler/

23 posts and 4 image replies omitted. Click reply to view.

 No.2666

>>2665

You don't need the source code if you think emacs is better.


 No.2677

File: 1732991749657.png (1.56 MB, 2048x1456, 128:91, 87348084_p0.png)

>>2493

Very cool, I like multicursor usage here. I remember doing this using regexes in total commander's multirename tool in past. Very few file managers actually support anything similar. As for multicursor I use it all the time when programming in VS Code. For me it became so critical I can't use any other editors that don't support it. When it's available at the end of your fingertips while typing it's at least few times faster than doing regexes.


 No.2680

File: 1733100299882.webm (236.23 KB, 500x380, 25:19, multicursor.webm)

>>2677

I use it a lot too. I don't know how it works in VSC, I mostly copied the behavior from Sublime Text. Ctrl+D in Sublime finds the next instance of the selected text and creates a new selection there, ctrl+click adds a selection with a new cursor, alt+click erases selections, and if you click+drag with middle mouse then each row will have a separate selection.


 No.2695

>>2493

This is a cool program and I like it. Thanks anon.


 No.2841

>>2493

Bulk rename utility not good enough?

Props on actually making something though, I'll run it through the 98-11 gauntlet and let you know how it is.


[Reply]

File: 1614398658735.png (736.86 KB, 2400x3420, 40:57, ffmpegguide.png)

 No.9[Reply]

Here are some quick and dirty ffmpeg templates I like to use.

>TYPICAL USE CASE

ffmpeg -ss XX:XX:XX.XXX -i in.mkv -c:v libvpx-vp9 -b:v 0 -crf 30 -c:a libopus -b:a 96k -t X.X -sn out.webm

>CROPPING

ffmpeg -ss XX:XX:XX.XXX -i in.mkv -c:v libvpx-vp9 -b:v 0 -crf 30 -c:a libopus -b:a 96k -t X.X -sn -filter:v "crop=width:height:xoffset:yoffset" out.webm

>GET ALL FRAMES

ffmpeg -i in.mkv -vf fps=1 out%05d.png

>GET ONLY KEYFRAMES

ffmpeg -i in.mkv -f image2 -vf "select='eq(pict_type,PICT_TYPE_I)'" -vsync vfr out%05d.png

>SONG WITH STATIC IMAGE

ffmpeg -i in.mp3 -loop 1 -i in.png -c:v libvpx-vp9 -b:v 0 -crf 30 -c:a libopus -b:a 192k -vf fps=1 -shortest -map_metadata 0 out.webm

27 posts and 22 image replies omitted. Click reply to view.

 No.2732

>>2731

And the input:

#Last file has to be repeated at the end witouth the duration, because such is the will of the Omnissiah.
file '1.png'
duration 5
file '2.png'
duration 5
file '3.png'
duration 5
file '4.png'
duration 5
file '4.png'


 No.2734

File: 1746351743066.mp4 (1.47 MB, 1080x1440, 3:4, Iroha in a cutaway shirt.mp4)

>>2732

And the script again, now that I'm safe from hoihoi's wrath:

#!/bin/sh
set -e
ffmpeg -f concat -i input.txt -framerate 1 -vf fps=25 -c:v ffv1 slides.mkv
ffmpeg -i audiofull.m4a -map 0:a -t 00:00:20 -c:a flac audio.flac
ffmpeg -i slides.mkv -i audio.flac -c copy mux.mkv
ffmpeg -i mux.mkv -vf "fade=t=in:st=0:d=1,fade=t=out:st=19:d=1" -af "afade=t=out:st=19:d=1" -c:v ffv1 -c:a flac faded.mkv
ffmpeg -i faded.mkv -c:v libx264 -profile:v high -pix_fmt yuv420p -preset slow -tune stillimage -crf 25 -b:a 128K -f mp4 compressed.mp4
rm slides.mkv
rm audio.flac
rm mux.mkv
rm faded.mkv


 No.2796

You can crop h264 videos in ffmpeg with the following command:

ffmpeg -i inputfile.mp4 -bsf:v h264_metadata=crop_left=0:crop_right=0:crop_top=0:crop_bottom=0 -codec copy output.mp4

Just replace the zeroes with how many pixels you want to cut from a ”direction”. For example, the remove the baked in letterboxing of an 1920x816 video that was uploaded as 1920x1080, you need this:

ffmpeg -i inputfile.mp4 -bsf:v h264_metadata=crop_left=0:crop_right=0:crop_top=132:crop_bottom=132 -codec copy output.mp4

There are 264 useless black pixels, so you remove 132 from the top and also from the bottom.


 No.2823

File: 1768662119369.mp4 (1.23 MB, 480x640, 3:4, Torako_dancing.mp4)

>>2796

Or you can crop anything with this:

ffmpeg -i in.mp4 -vf "crop=out_w:out_h:x:y" out.mp4

To crop a 80×60 section, starting from position (200, 100):

ffmpeg -i in.mp4 -vf "crop=80:60:200:100" -c:a copy out.mp4

And here is a primitive interactive script:

echo Path to the input file:
read input
echo Width of the area to be cropped in pixels:
read width
echo Height of the area to be cropped in pixels:
read height
echo Now you have to provide the coordinates of the upper left corner of the area to be cropped in pixels.
echo Horizontal postion of the starting point:
read x
echo Vertical postion of the starting point:
read y
echo Name of the output file:
read output
ffmpeg -i "$input" -vf "crop="$width":"$height":"$x":"$y" "$output"

And the same thing if you only want to crop part of a video instead of the whole file:

echo Path to the input file:
read input
echo Starting time either in HH:MM:SS.CC format or in seconds:
read start
echo Ending time either in HH:MM:SS.CC format or in seconds:
read end
echo Width of the area to be cropped in pixels:
read width
echo Height of the area to be cropped in pixels:
read height
echo Now you have to provide the coordinates of the upper left corner of the area to be cropped in pixels.
echo Horizontal postion of the starting point:
read x
echo Vertical postion of the starting point:
read y
echo Name of the output file:
read output
ffmpeg -i "$input" -ss "$start" -to "$end" -vf "crop="$width":"$height":"$x":"$y" "$output"


 No.2839

This seems like the thread to ask:

>Have noisy dog neighbours

>Setup mic, record screen with date+time display

>Now have a few 100 gigs of footage to sort through

Is there any easy way to display the full audio waveform so I can isolate the barks? Or some automated thing that'll pull out clips based on audio levels? I'm video editing retarded, my only experience is simple things like Lossless cut.


[Reply]

File: 1621077213740.gif (2.43 MB, 500x333, 500:333, shitposting_ascended.gif)

 No.775[Reply]

A thread where you can ask which VPN is the best and why. And of course there are plenty of other related subjects, like encryption, safe filesharing, anonymous services, and the perils of downloading random files.

86 posts and 6 image replies omitted. Click reply to view.

 No.2833

>>2831

Anon described a setup with two laptops in a work-from-home area. One is used for work, belongs to anon's employer, and is closely surveilled. The other belongs to anon. Anon would like to use his own laptop as an advanced terminal to operate programs on his desktop, presumed to be located across the room. Anon is planning to dedicate an Ethernet link to this purpose.

Post >>2825 seemed to suggest concern about isolating the laptop from the Internet at large and confining "Internet risk" to the desktop. An isolated Ethernet link would achieve that, as long as the desktop is not configured to route IP, which the Linux kernel can do.

>>2832

I almost forgot that you will want gigabit Ethernet if you plan to run a Web browser over the network because modern browsers have massive faggotry problems with their display code and waste enormous amounts of X11 bandwidth. This also wastes crazy amounts of CPU cycles if X11 is tunneled over SSH.

If you want to share a screen or otherwise have X11 clients "floating" between the laptop and the desktop itself, VNC may be helpful. VNC can also be useful to "condense" wasteful use of X11.


 No.2834

>>2833

>I almost forgot that you will want gigabit Ethernet if you plan to run a Web browser over the network because modern browsers have massive faggotry problems with their display code and waste enormous amounts of X11 bandwidth.

Well, that will definitely thwart my plans of using a Thinkpad with a Pentium inside as an X terminal. Although maybe Ladybird will somehow completely degay the very concept of a modern browser to the point that it even solves this problem, but I shouldn't bet on that. On the other hand, my current plan is to switch over to emacs, and eww might work though, but I haven't managed to post on smug with it. Maybe I should read the manual though.

>This also wastes crazy amounts of CPU cycles if X11 is tunneled over SSH.

Is it wasting the host's or the terminal's CPU in this case?

>If you want to share a screen or otherwise have X11 clients "floating" between the laptop and the desktop itself, VNC may be helpful. VNC can also be useful to "condense" wasteful use of X11.

I'll look into that too, although I only plan to use the laptop when I cannot access the main screen due to it being used for work.


 No.2835

>>2834 (me)

Although now that I think about it, lynx can be used to post here if I am not mistaken, and maybe eat can play nicely with that. Then I could open a thread in eww one side of the screen to see the pictures, and also open the same thread in lynx via eat on the other side so that I can write a reply to a post if I want to. Of course, I should also start fucking around with emacs and read all the manuals and whatnot, but that is well outside of the scope of this thread.


 No.2836

>>2834

> >This also wastes crazy amounts of CPU cycles if X11 is tunneled over SSH.

> Is it wasting the host's or the terminal's CPU in this case?

Both. SSH runs on both boxes to encrypt/decrypt X11 traffic in the tunnel. What one box encrypts, the other has to decrypt.

> >If you want to share a screen or otherwise have X11 clients "floating" between the laptop and the desktop itself, VNC may be helpful. VNC can also be useful to "condense" wasteful use of X11.

> I'll look into that too, although I only plan to use the laptop when I cannot access the main screen due to it being used for work.

"Condensing" X11 abuse-faggotry using VNC would involve running a VNC client on the "terminal" box connected to the VNC side of an Xvnc server on the "host" box. In this configuration, the X11 traffic never leaves the "host" box and VNC only transfers "screen repaints" (and user inputs) over the network.

Using VNC also allows the "VNC desktop" to persist when no VNC client is connected, and clients can connect from different places, such as the laptop and the desktop itself, if you want to "carry" a browser session between the work-from-home desk and the regular computer desk.

>>2835

Looks like you're starting to climb the learning curve. Good.


 No.2837

>yubikey is closed source

>nitrokey decided to switch to rust due to all those nasty bugs related to memory safety that must have plagued them for a long time (never mind that rust has only one compiler, and that the language is in a constant state of flux)

Apparently the current best bet for hardware authentication is to get something from this bunch of Germans:

https://www.zeitcontrol.de/?lang=eng


[Reply]

File: 1614634784212.jpg (25.11 KB, 467x413, 467:413, Yasunapshot.jpg)

 No.98[Reply][Last 50 Posts]

A thread for listing programs or applications that are simple, straightforward and useful for certain tasks, no matter how specific. If it's neat, post it here.

>Audacity

>Windows, Mac, Linux

Audio editor.

https://www.audacityteam.org/

>Crystal Disk Info

>Windows

HDD/SSD health monitoring utility. It displays basic HDD information, monitors S.M.A.R.T. values, and disk temperature.

https://crystalmark.info/en/software/crystaldiskinfo/

>Battle Encoder Shirasé

>Windows

Throttles CPU usage of any process.

http://mion.faireal.net/BES/

>CPULimit

>Linux

Throttles CPU usage of any process.

https://directory.fsf.org/wiki/Cpulimit

>Qalculate

>Windows, Linux

Highly versatile calculator.

https://qalculate.github.io/

>FreeFileSync

>Windows, Max, Linux

Folder comparison and synchronization software.

https://freefilesync.org/download.php

>Auto Clicker

>Windows

AutomatPost too long. Click here to view the full text.

162 posts and 39 image replies omitted. Click reply to view.

 No.2642

>>2637

What if I just want a normal spreadsheet?


 No.2705

>>98

OP here, coming back with a little warning.

>Snappy Driver Installer

Don't use this. Development has ceased some time ago and it was handed over to some faggot who added malware to it. Thankfully, it's open source, so there's a clean fork to succeed it:

>Snappy Driver Installer Origin

>Windows

Finds, downloads and installs all the drivers you need and can't find. Open source.

https://www.glenn.delahoy.com/snappy-driver-installer-origin/


 No.2717

>ouch

>linux

tarball (de)compressor with sane command, arch linux user can install it with `yay -S ouch`


 No.2737

>TEncoder

>Windows

Open source video/audio converter/downloader that includes third-party tools such as MEncoder, MPlayer, Youtube-dl and FFMpeg. Its main draw is MEncoder (Linux, Mac, Windows), which can deal with stubborn proprietary codecs FFMpeg may struggle to convert (such as old Intel Indeo AVI videos).

Note: On the "Video and Audio Options" window, adding specific MEncoder/FFMpeg settings in the "Custom Options" fields requires a space at the start and end of the field to prevent errors when encoding.

https://www.fosshub.com/TEncoder-Video-Converter.html


 No.2824

>Windows Memory Cleaner

>Windows (XP/Server 2003 and older)

Portable RAM optimizer.

https://github.com/IgorMundstein/WinMemoryCleaner/releases


[Reply] [Last 50 Posts]

File: 1619111794955.jpg (92.51 KB, 701x611, 701:611, b755164242a8ba99ce2766de92….jpg)

 No.557[Reply]

13 posts and 1 image reply omitted. Click reply to view.

 No.2691

https://eldritchdata.neocities.org

contains a ton of ebooks on lockpicking, arms, survival, medicine, urban combat, privacy, opsec and all that based stuff. also really interesting articles

use uBlock, uMatrix or NoScript to disable JS, else it won't let you enter.


 No.2738

https://sizeof.cat/ I only got this one but it has cool random stuff in the links tab.


 No.2813

File: 1766837131191.jpg (231.42 KB, 1080x1350, 4:5, 285584d0f2d8ecf270653ad226….jpg)

https://homuchan.st/homu

The main board of my own imageboard. We have a lot of tech discussion (fair warning, mixed with /pol/) since the site is in active development and we have a few anons with professional /tech/ experience. The board theme is an intentional filter, there are a couple ways around it. Enabling javascript and changing it in the settings is the easiest.

Here are some sites that helped me learn web dev.

https://cheatsheetseries.owasp.org/index.html

https://web.dev/learn

https://developer.mozilla.org/en-US/docs/Learn_web_development

I'm self taught for Go and javascript/typescript, but I can strongly recommend

https://gobyexample.com/

If you want to build a website and hate nodejs and its clones, esbuild lets you compile and bundle JS with the usual features like tree shaking. It can't do typescript type checking though.

https://esbuild.github.io/


 No.2814


 No.2816

https://igwiki.lyci.de/wiki/Main_Page

This is the current location of the install gentoo wiki. Not sure if it's going to die again since the cert is currently expired.


[Reply]

File: 1614451053596.gif (582.43 KB, 200x475, 8:19, 06a466b65611b32b812b0a0ab5….gif)

 No.31[Reply]

This thread is exactly what the title says.

Share tidbits that make life better.

I'll go first. Here's how to download m3u8 blob videos. When you find a site that has a video you want, view the source and find the link to the m3u8 playlist. Then you can download it with youtube-dl using this template.

> youtube-dl –all-subs -f mp4 -o "savename.mp4" "urlofm3u8playlist"

57 posts and 10 image replies omitted. Click reply to view.

 No.2634

>>2633

Actually, I don't think these are available outside of the file, I haven't looked at this in years. Either way, it works, I'm pretty sure the #define works just like C and it replaces it in the file as it's preprocessed.


 No.2635

File: 1728548714737.png (99.67 KB, 1366x768, 683:384, 2024-10-10-102329_1366x768….png)

>>2633

>>2634

Thanks, it works like a charm. Now I just have to figure out what colours I should actually use for ncmpcpp.


 No.2756

3-letter enums

Compile with -std=c11

#include <stdint.h>

#define ThreeLetterEnum(X, Y, Z) ( ((uint32_t)X) | (((uint32_t)Y) << 8) | (((uint32_t)Z) << 16) )

enum InputDevice {

INPUT_KEYBOARD = ThreeLetterEnum('K', 'B', 'D'),

INPUT_CONTROLLER = ThreeLetterEnum('C', 'T', 'L'),

INPUT_MOUSE = ThreeLetterEnum('M', 'O', 'U'),

};


 No.2773

File: 1760903246572.gif (4.38 MB, 498x280, 249:140, psycho-cutie-yandere-gawr-….gif)

>>2448

>goth gura

Why didn't I know I needed this so bad?


 No.2775

alias fuckwebp='cd ~/Pictures/Memes/ && mogrify -format png *.webp && find . -name *.webp -type f -delete && cd ~

Doesn't work right all the time but it gets the job done well enough.


[Reply]

File: 1718084863082.png (493.27 KB, 943x1000, 943:1000, boattits computer.png)

 No.2533[Reply]

I want to write an OS. Either from scratch or on top of the seL4 microkernel. While I want to do this mostly as a hobby, but I want to do things correctly from the start, just in case someone takes interest in it and they want to use it for legitimate computing.

Given the resources I have does working through these textbooks seem like a good road map to achieve that? I would work through the following books in the following order.

>1 Operating System Design: The Xinu Approach, Second Edition

I own a physical copy of this book

>2 xv6: a simple, Unix-like teaching operating system

I do not own a physical copy of this book. Electronic only. It's generated by the makefile when you compile xv6

>3 Operating Systems: Concepts and Design

I own a physical copy of this book. It is older and the actual code is some Pascal variant. It's supposed to fill most of the gaps left by Xinu.

>4 Operating Systems Design and Implementation

I own a physical copy of this book. This is the Minix book.

>5 Modern Operating Systems

I own a physical copy of this book. This would be the grande finale. I'm not sure if I'll actually work through this as a textbook, or just use it more as a reference.

After all this, if I decide to build on top of the seL4 microkernel, I'll then start working through the seL4 tutorials and watching the lectures.

Any thoughts? Any questions? Am I just retarded?

9 posts and 2 image replies omitted. Click reply to view.

 No.2613

File: 1725421548070.mp4 (898.2 KB, 480x480, 1:1, just do it.mp4)

>>2612

>LISP OS


 No.2614

>>2613

>LISP OS

Not quite. Maybe "userspace" wasn't the right term since it would be based on a microkernel and everything is in userspace, but you know what I mean. Maybe "interface language" is a better term. Instead of more typical shell scripting, most things would be done in the language. I'm leaning towards smalltalk, but I've also decided to make a scheme with affine types. It's just intended to be a toy language right now, but if it turns out to not be crap, maybe it could be expanded into the interface language.


 No.2661

I know a lot about x86-64 and writing a driver (PCI and not), I also know my way around UEFI and ACPI though not everything like the fucking offset of the global lock in the FACS by heart, I gave up on my OS journey a while ago after writing a ~9k line core-microkernel in C++ (big mistake), which theoretically could have booted the init system and let it load drivers before finishing device enumeration and creating device threads for the driver processes, full featured with support for IO coordination and mapping the physical memory of a process into the virtual address space of a driver and hardened for *any sort of* allocation and freeing, that I had no idea how to even begin to unfuck but also because of fucking PE32+, I should have just done BIOS because gnu binutils supports PE16 or maybe just made it separate from the bootloader, I am not the most responsible software developer but I can write an abstraction or two and algorithms, if you want to work together post a contact


 No.2663

and nevermind because BIOS did a one-sector bootloader so no way it was using PE16, must have been nice back then not being anally raped by microsoft


 No.2774

File: 1760903333739.mp4 (757.72 KB, 360x640, 9:16, Shut Up Bird! Vol. 69 🐦 Te….mp4)

>>2533

You are not King Terry, you're never gonna make it.


[Reply]

File: 1698512784111-0.png (789.79 KB, 800x494, 400:247, ClipboardImage.png)

File: 1698512784158-1.png (862.61 KB, 1024x576, 16:9, ClipboardImage.png)

File: 1698512784158-2.png (1.16 MB, 1024x768, 4:3, ClipboardImage.png)

 No.2395[Reply]

In this thread we discuss everything about laptops, mainly but not limited to thinkpads. Ranging from software support, hardware modifications, to showing off personal favorites, etc.

To start the thread; I have been thinking of buying a Thinkpad x230t, I already own a x230 and love it dearly, but when I was buying it I didn't consider the tablet version. Lately I've been doing a lot of handwriting and crude sketching and it's always annoying finding and loosing paper so I have a few questions for anyone who had a direct experience with this thinkpad (preferably longterm and running linux):

The hinge looks particulary vunerable, does it wear out over time and if so; is the replacement reasonably manageable?

What about touchscreen support in Linux, in general and when using a pen, any preferred software for sketching/making notes?

Batterylife; is it satisfactory and if not, got any good battery recommendations? (I'm asking because the 9-cell battery I bought for my x230 went from 97% to 80% "capacity" in a year, even with limiting the charging from 15%-85% with tlp)

Does getting the i7 version instead of the i5 make a noticeable difference? I have even seen a BGA rework for a 4-core i7, does it strain the battery noticeably more?

Any other tips or experience worth sharing on the x230t?

And I'll thrown in another topic of discussion:

Newer thinkpads, think 40-series and newer, even their X1 line, etc. What do you think about them, do you like them, voice your reservations, likes and dislikes. I never had a direct experience with anything newer than the 30-series so I can't say much but the main reservations are not being able to flash coreboot or cleanse the whitelists, integrated and soldered almost everything, non replaceable batteries, less ports and so on, on the other hand I'm very much fond of the better hardware because doing CAD even on a t430 with an i7 is not a very enjoyable experience even less so using an external monitor. I might have a distorted view because as I said I don't have any experience with them. What does Anon think?

16 posts and 2 image replies omitted. Click reply to view.

 No.2767

Installing OpenBSD on a 600X Thinkpad from 1999 is not exactly straightforward, just as I've expected. Looks like the problem is that 256gb is too big for the disk partitioning tool of the i386 release. Or the SSD with the PATA adapter is just fucked, but it worked with FreeDOS when I last tried fucking around with this machine. Maybe the machine spirits are just a bit tired and I should try it tomorrow.


 No.2768

>found method to unlock the BIOS of the T42

http://asknotes.com/2018/09/04/removing-supervisor-password-svp-on-thinkpad-t42/

>it then goes to setup, but in user mod only

>after exiting setup it reboots but doesn't boot from the SSD, instead goes back to setup in user mode

>if I unplug it from power, then it wants the damned password again at boot, and I have to short the pins of that chip again

>but that again only lets me enter setup in user mode

Maybe I should try to get new batteries and then it would remember that I've shorted the pins, but that doesn't change the fact that it refuses to boot. I'm starting to remember why I shelved these machines for a year.


 No.2769

>>2768

You may have to install coreboot just to make it work.

It looks like a backup copy of the supervisor password is stored in the flash chip, which is where its getting it from when you don't short the pins.

You may have a different BIOS version from the one where shorting the pins works.


 No.2770

>>2769

I also has that other T42 that was shot to pieces, and I think the chip is still on there. Could swapping them work, or is that just a way to fuck everything up even more? I want to learn how to solder eventually, and this would be a nice practical project once I've learned enough to do it. Besides, I also want to try soldering the memory slot on the T30, although this whole learning how to solder thing is at least a year or two away.


 No.2771

>>2770

Swapping the chips may or may not work, but they're just memory. What matters is the data in them. If you can find where the password is stored, you might be able to recover it directly, or at least erase it reliably.

Soldering should not be needed here.

Welcome to the world of hardware hacking.


[Reply]

File: 1716317643622.jpg (108.17 KB, 850x714, 25:21, 1667404674580.jpg)

 No.2527[Reply]

And holy shit is ext4 amazing. But what sucks is that the default options for it generate too many inodes and the reserved space on larger and modern drives can be lowered to 2% without a performance hit.

NTFS almost appears archaic in comparison.

XFS appears interesting, but I can't see what really makes it worth considering over ext4.

3 posts omitted. Click reply to view.

 No.2531

>XFS appears interesting, but I can't see what really makes it worth considering over ext4.

But you described it! It's an extent based system that does not rely on having to guess optimal predetermined inode sizes in advance. Also it has very good multi core scalability.

>>2528

This is insanely old information. A lot of the conventional wisdom about XFS is utterly outdated. Like how it's bad with many small files. The metadata structures have completely changed since. It's actually more performant than ext4 in many areas where it's supposed to be inferior. As for data loss, backups no matter what. I use borgbackup. An anecdote of course, but I use XFS on everything no problems.

>>2530

I can't tell you about Bcachefs itself except for pointing out it's too new. What I can tell you is complex COW files systems like ZFS/Btrfs/Bcachefs can give you very bad performance. I had a 1TB HDD with btrfs to store all my memes and porn. This meant many files in a folder, in some cases thousands. Btrfs was frustratingly slow at opening those folders, like tens of seconds long. I tried everything including reformatting to no avail. I migrated to an old laptop HDD (less performance) with XFS and the performance was night and day. Obviously it still not lightning fast because of the shitty hardware, but now it's only a few seconds for a usable open folder.

As much as I like btrfs raid1 (not really a raid) which allows you to throw bunch of drives of wherever sizes, whenever, and have it all work out, I have to warn about performance. Maybe keep it simple?


 No.2532

>>2531

> This is insanely old information. A lot of the conventional wisdom about XFS is utterly outdated. Like how it's bad with many small files. The metadata structures have completely changed since. It's actually more performant than ext4 in many areas where it's supposed to be inferior.

For me, performance is secondary - ext filesystems do not eat data and that is why I use them. Yes, I use data=journal, too.

Good enough that, until I got a new switch with longer hold-up time, power failures would cause an entry to appear in the system log reporting the network link going down. Yes, on PC hardware. Yes, the box would run out of power and crash milliseconds later. That log entry would be flushed out to disk (or at least the journal) in that tiny window between the switch losing power and the box also going down.

> As for data loss, backups no matter what. I use borgbackup.

The really important stuff gets archived on optical media here. There is still a very small possibility of the underlying HDD blocks going *poof* that no filesystem can entirely prevent.

> An anecdote of course, but I use XFS on everything no problems.

OK then, do the test:

(for i in {1..50}; do cp -a /usr /mnt/xfs/usr-$i & done)

Then wait for 30 seconds with the disk light on (if the disk light isn't on steadily, start more copies by changing "{1..50}" to "{51..100}" or similar) and pull the plug. Reboot and see what you have in /mnt/xfs or whatever other XFS filesystem you used for the experiment.

Complete files are expected; they were copied before power was cut. Missing files are fine; the copy probably didn't reach them. Truncated files (at most one per copy) are expected; the data transfer was in progress when power was cut. Zero-length files are probably bad; the data was lost, OR (if it is the truncated file in that copy) the file was createPost too long. Click here to view the full text.


 No.2621

Can you recommend filesystems reading material?

I only know about "Practical File System Design: The Be File System"


 No.2755

>>2532

> [challenging >>2531 to test XFS]

Did he died?


 No.2765

ext5 when?


[Reply]

File: 1664147407956.png (6.09 KB, 225x225, 1:1, download (3).png)

 No.2152[Reply]

I saw they added amdgpu to the kernel based on 4.19. do they finally support modern AMD gpu's? Will a navi card shit the bed with X here?

6 posts and 1 image reply omitted. Click reply to view.

 No.2410

>>2156

>HAMMER2

https://www.dragonflybsd.org/hammer/

>HAMMER retains a fine-grained history. The state of the filesystem can be accessed live on 30-60 second boundaries without having to make explicit snapshots, up to a configurable fine-grained retention time.

>Coarse-grained history is controlled by snapshots. By default the system cron generates one snapshot a day and retains 60 days worth. Snapshots can be accessed live.

I am not sure how useful that is in real life, but it does sound impressive.


 No.2491

>>2341

OpenBSD has this site with all the currently available ports:

https://openports.pl/

I was thinking about switching over to OpenBSD, but two programs I use a lot are Librewolf and Freetube. Librewolf did have an OpenBSD port, but then they stopped developing that because fuck having nice things. Now, we are talking about *NIX, how have would it be to run the Linux version. Well, OpenBSD developers completely removed compatibility due to security risks. So be it, but can I run the FreeBSD version? No, fuck you, that part of the system got removed even before Linux. Really, they should make a fork called ClosedBSD, which is just OpenBSD but with those two brought back. ClosedBSD as in ''with closed eyes you can ignore the horrible security risks that come with running FOSS software from other FOSS OSes.


 No.2492

>>2491

Although it bothers me so much that I will still try to do my best to seek out available alternatives. For a browser I could do the cool thing and use surf with tabbed from suckless. And for youtube I could just follow the channels with RSS feed and use yt-dlp or mpv to watch them. The only problem is that my internet is not really up to the task of streaming, but I guess I'll just download everything and then delete them once I am finished. That could even help me keep in check how many tabs I have open in my browser, because a lot of them are just random videos I intend to watch later, and if I have already have them downloaded then I don't need to keep a tab on them. Who knows, maybe it will be fantastic.


 No.2745

https://vez.mrsk.me/freebsd-defaults

An interesting read about FreeBSD's (lack of) security. Long story short, use the OpenBSD equivalent of everything network related, and also the defaults from that article. I wonder if the same problems apply to DragonFlyBSD too.


 No.2763

I've heard good things about GhostBSD lately.


[Reply]

File: 1757465615681.png (3.3 MB, 2480x3508, 620:877, hanging.png)

 No.2757[Reply]

I've got all the parts, and am about to start assembling my new computer. I've got a 128GB SSD, and 2TB of spinning rust. How should I partition it all. I've currently got 128GB of RAM, and intend to double that next month to max out the mobo.

My question is, how would you recommend setting up the partitions/filesystem. What other folders should I have on the SSD in addition to /boot? What folders should go on what partitions? This is one thing I've never done before. I've always just had one partition for the one distro.

 No.2758

>>2757

> What other folders should I have on the SSD in addition to /boot? What folders should go on what partitions?

The basic principle is to tilt the SSD as far towards a read-mostly workload as you can to maximize its service life. In turn, use a good PSU and provide plenty of airflow around the HDD to maximize its reliability.

For filesystems, use ext4 all around, except that /boot/efi must be FAT so the firmware can read it. Since /boot and /boot/efi are so rarely accessed and your SSD is quite small, they should go on the spinning rust. For HDD-based filesystems, you should use tune2fs -o journal_data to route all writes through the journal, but this doubles write volume and therefore should not be used on SSDs, only HDDs which have "unlimited" write endurance.

You probably want the system on the SSD if it fits (128GB might be a bit small). Really "system" means /usr because /boot is only accessed when updating or starting the machine. Fetching the kernel from spinning rust is not going to make a significant delay and Linux never needs its kernel image from disk while running.

Swap needs to go on rotating media - swap on flash is fast but it will also kill your flash way too quickly.

The traditional recommendation was 10x RAM for swap, but with modern large RAM, 2x - 5x is more appropriate, especially since you can have multiple swap areas with Linux if you ever need even more space. I recognize that 2x RAM for swap is a quarter of your spinning rust. You might go down to 384GiB swap (1.5x RAM) or even lower, especially if you are sure that you will never use software suspend. Also, I think software suspend requires swap to be an actual partition because the kernel needs to resume before it would load LVM.

You should definitely put /home and /var on the spinning disk. Both of those are frequently written.

Traditionally, /boot was a mountpoint due to PC BIOS limitations. Now, /boot/efi must be a mountpoint due to UEFI limitations and /boot is typicPost too long. Click here to view the full text.


 No.2759

>>2757

>>2758

>Do not use btrfs - it has a well-earned reputation for eating data.

Either you're a 2014年から時空旅人, tried to run a RAID5/6 for some bizarre reason or Linus Torvalds on another imaginary mailing list rant with Kent Overstreet and accidentally typed Btrfs instead of bcachefs.

Having used Btrfs as my root filesystem for 8 years now on Hards and Solids, in time I've had about a dozen events where Btrfs would instantly screech after detecting misaligned free space for some reason and refuse to mount or mount as read only, necessitating the use of Rescue Media to get it back in a working state.

Despite the warnings on the Arch wiki and from Btrfs' own repair utility this has so far gone off without a hitch and I've yet to lose a single file, but the ext4 partition of my HDD did suffer the loss of a small number of reaction images and god knows what else after a power outage.

It refused to mount after that and I ran fsck which reported erroneous free space, after repair my folders were all there but those few files had broken metadata and couldn't be opened in spite of fsck reporting an all-OK on the partition.

Aside from that it hasn't had a single hiccup since then unlike Btrfs and the files gradually restored themselves through unknown means over the years, with the final one coming back just a few weeks ago and is much faster owing to its architecture.

What I'm trying to say here is that Btrfs is good if you have autism and care about data integrity at the expense of performance, while ext4 "just werks" but is ultimately vulnerable to bitrot like all plain journaling filesystems.

Not sure what Anon has against XFS though, it's a solid alternative to ext4 especially on HDDs where it still has a slight performance advantage but right now lacks online metadata checking which will be merged in Kernel 6.18, I use it on another drive with no known data loss since the partition's creation 5 years ago.

That sPost too long. Click here to view the full text.


 No.2760

>>2759

> I've had about a dozen events where Btrfs would instantly screech after detecting misaligned free space for some reason and refuse to mount or mount as read only, necessitating the use of Rescue Media to get it back in a working state

You realize that every one of those incidents represents the btrfs driver nibbling on your data and catastrophic destruction was only averted because its slow and extensive checks caught its own fuckup in time?

In contrast, the ext4 driver doesn't fuck up your data in the first place.

> the ext4 partition of my HDD did suffer the loss of a small number of reaction images and god knows what else after a power outage

That's what tune2fs -o journal_data is for. Since that's a bad idea on a SSD, minimize the writes to those partitions.

Incidentally, the greatest benefit you can get from an SSD on Linux is from putting the userspace executables on it, and those are only written when installing updates and new packages.

Linux treats executables as read-only swap for the program text of processes running from them. The zero-seek-latency of SSDs is beneficial here.

> Not sure what Anon has against XFS though

Lack of Power Fail Interrupt on PC hardware. You got bitten by this even with ext4. Under the same circumstance, XFS could have had catastrophic damage. garbage written to logical journal propagates widely upon journal recovery

Ext3 avoided this by using a physical journal instead of a logical journal, such that garbage can at most trash the just-to-be-written disk blocks after recovery. Ext4 adds support for checksums in the journal which also prevent even that damage. Has XFS finally also implemented journal checksums?


 No.2761

File: 1757642115476.png (2.58 MB, 1311x1748, 3:4, __imaizumi_kagerou_touhou_….png)

>>2758

Sorry for taking so long to get back to you. My normally very stable internet was down for an entire day.

>For filesystems, use ext4 all around, except that /boot/efi must be FAT so the firmware can read it.

This is a given.

>You probably want the system on the SSD if it fits (128GB might be a bit small). Really "system" means /usr

I'll give it a shot.

>I recognize that 2x RAM for swap is a quarter of your spinning rust. You might go down to 384GiB swap (1.5x RAM) or even lower, especially if you are sure that you will never use software suspend. Also, I think software suspend requires swap to be an actual partition because the kernel needs to resume before it would load LVM.

I'm planning on going with 1x RAM for my swap partition. I don't plan on ever using suspend. I will probably never need to swap anything. This computer is a massively over-specced shitposting machine.

>You should definitely put /home and /var on the spinning disk

Will do.

>The simplest ideal is probably /usr (ext4) on the SSD, /boot/efi (fat), /boot (ext4), / (ext4), /home (ext4), and /var (ext4) on the HDD.

I will probably just put /usr on the SDD, and have /boot, /boot/efi, and / on the HDD. Not going to do a separate /home or /var partition. I've been using Linux for about fifteen years now, but have always just put everything on one partition.

>If you really want to try XFS

Nope.

>Do not use btrfs - it has a well-earned reputation for eating data.

That's what I've always heard. I'm thinking of turning my old computer into a file server, but was planning on using ZFS. I have noticed a little bitrot with my ext4 backups. I also don't have proper redundancy and amPost too long. Click here to view the full text.


 No.2762

>>2761

> I'm planning on going with 1x RAM for my swap partition.

In that case, since you're using Gentoo, I suggest 1G /boot/efi, 3G /boot, 256GiB swap, and then the rest of your filesystems. If separating /home and /var, try 50G /, 300G /var, balance of disk /home, with the entire SSD assigned to /usr. Gentoo is a lived-in dev environment, so it should have bigger boot partitions than "packaged" systems need.

Given the small size of your SSD and use of Gentoo, you might want also allocate a "shadow" partition on the HDD matching the SSD size and keep a warm backup of /usr there. SSD failure? One small tweak to /etc/fstab from a rescue environment and you're back up. HDD failure? Well, the box is fucked anyway. Got tape? Me neither.

> I don't plan on ever using suspend. I will probably never need to swap anything.

Linux likes to steadily trickle pages out to swap "just in case" it ever needs to reclaim a page frame quickly. This is one of the reasons swap-on-SSD is a Really Bad Idea.

You might want to consider encrypted swap under a random volatile session key. No key management to worry about and the contents of swap are unrecoverable after shutdown, whether orderly or otherwise.

> I will probably just put /usr on the SDD, and have /boot, /boot/efi, and / on the HDD. Not going to do a separate /home or /var partition.

That's even simpler and probably should work.

I'd still advocate keeping a separate /home just in case you ever miss too many updates and have to reinstall Gentoo.

The classic rationale for a separate /var filesystem is that /var is one of the most heavily written filesystems and thus is most at risk for corruption, which is of course very bad if if hits your root filesystem. I've never had /var corrupted, so maybe improvements had made that rationale obsolete when I learned it.

&Post too long. Click here to view the full text.


[Reply]

Delete Post [ ]
[]
Previous [1] [2] [3] [4] [5] [6]
| Catalog
[ home / manage ]