Skip to content

u/balsoft

In this archive from Aug 2018 to Mar 2023

7
posts
414
comments
6
media
2.8k
score

I doubt there's an "easy" cantenna; I've used this calculator https://www.changpuak.ch/electronics/cantenna.php with frequency set to 1800MHz and can diameter to 110mm (I used an empty can of paint). You obviously need to substitute your own values into there. I then just stuck the entire USB LTE modem into it and fine-tuned the direction to cell tower based on rsrp/sinr values. It seemed to boost the signal slightly, but not dramatically so. I found just getting a proper modem with good external antennas increased the singal a lot more than my cantenna (but maybe I got the setup wrong).

2 points

I've been living and working pretty much like this (LTE internet only, with weather-dependent connection) for the last couple years. It's not too bad really. I recommend you make sure to have all the relevant manpages installed, as well as a tldr database just in case. Another thing I recommend you do is buy (or pirate -- I don't care!) some music and books for the times when the connection drops. I also use native versions of most applications I use so that I don't have to load the heavy browser versions (or wait for the browser to refresh the cache) every time I want to open Slack for example.

As for boosting the signal, in the past I have experimented with Cantennas to varying results. Then I just got myself a good LTE antenna that provides great connectivity in good weather and acceptable connectivity in rain or snow, in particular GLinet GL-X750 "smart router" (it's in fact a 2-band wifi router with 2 ethernet ports a 4G modem).

3 points

X11 is also just a protocol :)

The real answer is that X11 includes a lot of stuff that's there because of historical reasons only, and Wayland was written from scratch with the pure intention of making the core protocol as small and easy to implement as possible, and extending the capabilities with extensions. So yes, Wayland is definitely more minimalistic (and also more modular, in a sense).

2 points

Won't Docker Images require large disk space, it's like installing an OS on virtual machine right

No, it is definitely not. A docker image is just a tarball with some metadata. It can contain an entire GNU/Linux distribution sans Linux itself, but it can be very lean and contain only the bare minimum required to run some application. It all depends on how the application is packaged.

How do AppImages work

AppImages are also kinda just a tarball with an application, but with some differences In particular, AppImage is a self-extracting tarball, and also it uses some dependencies from the host instead of bundling everything inside; Also, unlike Docker it doesn't isolate anything and just runs as any application would.

1 points

You can use any Linux distro in a way that you've described. Some make it easier than others, e.g. for most traditional Linux distros you would have to make sure that the package archives you download are consistent or you would get dependency errors during installation (or worse, runtime errors because of incompatibilities). This can be mitigated by using AppImages or Docker images (which are self-contained), or using something like Nix or Guix (where you can easily download the entire dependency closure of the any given package, and you can have multiple versions of any application or library installed so consistency is not an issue).

2 points

learning how to set up your graphics hardware for gaming on linux is not a technical project

It is. If your hardware is quirky enough, it can lead you to a rabbit hole of learning the architecture of graphic stack in Linux.

So, can you know Linux well without daily-driving it? Yes, absolutely. Does daily-driving Linux make you a technical genius who writes drivers for breakfast? No, definitely not. However, experience in using Linux every day on a workstation does help a lot with understanding the inner workings of the OS and kernel in particular.

13 points

I feel like what's left in that thread is still hardly suitable for someone with a mind that's still very much "in development". Heck, the level of disdain for other humans in some comment subtrees makes me, an adult, want to close Reddit for the day.

The only communities which are relatively devoid of toxicity are the question/learning subreddits, including this one.

7 points

I would recommend to come up with some fun and useful CLI program/script and implement it using bash, searching for answers to questions online. It will be invaluable experience regardless of if he sticks with Linux or even programming in general.

Another interesting thing could be learning about the programming side more: explain how filesystems, archives and compression work individually and together, look into networking and protocol used by computers to talk with each other (with mandatory manual HTTP request), use diff/patch and then try out git a bit and understand the concept behind it (although explaining an acyclic DAG to an elementary school student may be tricky). This can all be quite fun if done in not-too-serious manner.

94 points

POSIX is a set of standards that define a minimal UNIX-like system. Most of it is implemented by Linux, BSDs, macOS, and even Windows (Windows Vista had a component that enabled full POSIX compatibility). Some standards there are quite sensible, others are pretty stupid (e.g. https://cr.yp.to/proto/utctai.html).

1 points

Temporary files are just files that are meant to be cleaned up automatically at some point. Typically they are kept in /tmp or $XDG_RUNTIME_DIR. There is a non-POSIX but widely available utility mktemp(1), which creates a temporary file in /tmp for you. You are responsible for cleaning it up in your shell script, typically with something like

tempfile=`mktemp`
cleanup() {
  rm -f $tempfile
}
trap cleanup EXIT

As for automatic garbage collection, both /tmp and $XDG_RUNTIME_DIR are usually mounted as tmpfs meaning the contents are stored in-memory and will be wiped on reboot.

1 points

While you already got two correct replies, I want to clarify: most of Chrome OS (including the kernel and other GPL-licensed components) is open-sourced by Google, you can inspect and modify it. Moreover, even though it's not mandated by GPLv2, Chromebooks aren't tivoized -- you can unlock the bootloader and flash whatever OS you want to (even though it might be tricky due to compatibilty issues, but nonetheless all the sources are there and you can compile them yourself).

2 points

You don't have to learn all of bash, and the part you have to know to use it as an interactive shell is tiny. In fact,

  1. To call a command, use it as the first word of the an expression, e.g. to call ls type in

​

ls

(don't forget to hit return)

  1. To pass a list of arguments to the command, add them as words (i.e. separate them with spaces) after it. If some argument contains spaces or $ or [ or ] or some other symbol you're not sure isn't interepreted by the shell, enclose it in quotes (preferably ') or escape them by using backslash before each space. If some argument contains quotes, escape them with backslashes. If the argument contains backslashes, escape each backslash as two. E.g. to call ls on a directory My Projects '\, run

    ls My\ Projects\ '\`

  2. To pass output of one command to the input of another command, write them as separate expressions and put | between them. E.g. to pass the output of ls to wc -l, run

    ls | wc -l

  3. To pass output of one commands as an argument of another, use "$()". E.g. to pass the output of ls | head -1 to cat, run

    cat "$(ls | head -1)"

  4. To run two commands in succession, use ; between them. To run two commands in parallel, use & between them. To run the second command only if the first one succeeds, use && between them. To run the second command only if the first one fails, use || between them. E.g. to run echo foo only if ls succeeds,

    ls && echo foo

  5. To execute some commands as one expression, enclose them in {}. E.g. to run some commands only if ls succeeds,

    ls && { echo foo echo bar echo baz }

  6. To assign a variable, put variable='content' as the first word of the expression. If you put some command after it, the command will be executed with that variable set as an env variable, otherwise the variable becomes a shell-local var. To pass a shell-local var as an argument, use "$variable" (note the quotes). To export a shell-local variable as an environment variable to all the processes to be ran in this shell, use export variable.

That's it! If you also learn what some of standard coreutils do, you will learn to use the shell. After that, check out if ... then ... else ... fi and for ... do ... done, and you'll also be able to write simple scripts.

1 points

Well unfortunately I need atleast a few such as Gmail and Google Drive

Do you need them for work? If so, well, it sucks. In that case, limiting the impact by choosing the right browser does indeed make sense. I've already said my opinion: use ungoogled chromium, it doesn't send any telemetry anywhere and yet has most privacy features that Google implemented to keep others from getting your data.

1 points

Regardless, since other browsers won't send regular data to google except when I'm using thier services, won't it be better?

It would be marginally better, yes. However, at least from my perspective, it's better to stop using Google services before you switch browsers, rather than the other way around. Browser spying is pretty tame, as Google can do most of the spying through e.g. search suggestions and your phone that's always with you, and Chromium is, unlike those two, open-source, so egregious spying there would make for bad PR.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.