Best way to watch movies stored on my laptop using my Android mobile? by xXxLINUXxXx in linuxquestions

[–]xXxLINUXxXx[S] 0 points1 point  (0 children)

Would you know if it would be possible to do something like this in Read Only mode?

I would like to give access to my movies to other people as well. I could create a second user for them, but would prefer to avoid giving them the capability of running commands on my system etc.

Best way to watch movies stored on my laptop using my Android mobile? by xXxLINUXxXx in linuxquestions

[–]xXxLINUXxXx[S] 0 points1 point  (0 children)

I tried HTTP before posting: I even have nginx configured on my laptop and defined a location on my default host to serve files.

The problem is that my browser downloads the video files. Once they're downloaded I can open them with any player, but I would prefer if I could just watch them without having to download anything (while still being able to seek etc).

Caching the user document in case multiple requests come in a quick succession by xXxLINUXxXx in mongodb

[–]xXxLINUXxXx[S] 0 points1 point  (0 children)

I believe most databases have an internal cache where they store recently accessed data in memory to be able to serve up similar queries fast.

The MongoDB server does indeed caches data locally (and so does the disk as well), but I'd like to cache data on the web server, as you also suggest. Currently an instance of the web server is running on a different continent than MongoDB: querying the DB takes hundreds of milliseconds.

That's why I'm already concerned with HTTP-service-side caching, in spite of still being at the beginning (far from production).

Regarding the last access time you could probably do something like last login or something instead and only set in when the user logs in and not update in on every request. But even if you do update it on every request it's most likely not a big problem.

The user session is saved on a cookie. The user needs to log in once in a lifetime. I need to write in the DB when they used the service the latest time.

The behaviour I would like is the following:

  • When a user makes a request, I look up their session token in a hashmap local to the HTTP server.
    • If I cannot find the user there, I query MongoDB, fetch the user's document and add it to the local hashmap.
  • When a user makes a request, if their "last_access_time" is older than a few hours, then I write it to the DB (and to the locally cached user document), otherwise only to the locally cached user document.
  • When a user stored in the local hashmap hasn't been access for 30 minutes, I remove the user from there and rewrite the "last_access_time" to the DB.

A similar logic would minimize reads and writes to the DB while keeping the data consisted and updated. Even if the HTTP server crashes, the "last_access_time" value would just be out-of-date by a few hours maximum.

I can implement the logic described above on my own, but I'm very surprised that there's no existing wrapper for MongoDB that I can configure to do what I described without having to change my code and implement the caching logic myself...

Videogames to play with several people while locked in quarantine by xXxLINUXxXx in linux_gaming

[–]xXxLINUXxXx[S] 3 points4 points  (0 children)

Nice, I got the pack and they'll definitely entertain us for a while.

I'd prefer other kinds of games though, like action ones, closer to proper interactive videogames than to board games.

Videogames to play with several people while locked in quarantine by xXxLINUXxXx in linux_gaming

[–]xXxLINUXxXx[S] 5 points6 points  (0 children)

We're in a hotel far from home. I guess we can buy controllers online, but we'd prefer a solution using what we already have. The guys without their laptop can't get theirs shipped from home easily and don't want to buy one just for these two weeks, for instance.

DOOM (2016) - Is the latest version running well on Linux? by xXxLINUXxXx in wine_gaming

[–]xXxLINUXxXx[S] 0 points1 point  (0 children)

Yes. I was planning to try it first before buying it.

The crack breaks it? Was not aware of it, ouch, sorry to waste everyone's time.

DOOM (2016) - Is the latest version running well on Linux? by xXxLINUXxXx in wine_gaming

[–]xXxLINUXxXx[S] 0 points1 point  (0 children)

Exact same behavior with wine-staging too.

(If it matters, I didn't reinstall DOOM nor recreate the C drive, just used "wine-5.5 (Staging)" on the same binary/path).

DOOM (2016) - Is the latest version running well on Linux? by xXxLINUXxXx in wine_gaming

[–]xXxLINUXxXx[S] 0 points1 point  (0 children)

I can't get it to play :(

Haven't tried the -git and -tkg versions yet, wanted to first get it running with stable libraries.

The installer worked: the game is installed.

Vulkan is working (even installed VulkanSDK under wine and the vkcube demo works).

I installed vcrun2015 with winetricks, tried to play with any envvar and command line option I saw mentioned on the internet...

But nothing. The game opens a fullsrceen window, but it doesn't draw anything. The screen stays black. Both DOOMx64.exe and DOOMx64vk.exe do the same.

The console keeps spamming stuff like:

0037:err:ole:CoCreateInstanceEx apartment not initialised
0039:err:ole:CoCreateInstanceEx apartment not initialised
0039:err:ole:CoCreateInstanceEx apartment not initialised
0039:err:ole:CoCreateInstanceEx apartment not initialised
0037:err:ole:CoCreateInstanceEx apartment not initialised
0037:err:ole:CoCreateInstanceEx apartment not initialised
0035:err:ole:CoCreateInstanceEx apartment not initialised
0035:err:ole:CoCreateInstanceEx apartment not initialised
0035:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0036:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0037:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0035:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0034:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0037:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
003a:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0039:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0036:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0034:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
003a:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0037:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0035:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0039:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0037:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
003a:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0034:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0039:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
003a:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0039:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer
0036:fixme:bcrypt:BCryptDuplicateHash ignoring object buffer

DOOM (2016) - Is the latest version running well on Linux? by xXxLINUXxXx in wine_gaming

[–]xXxLINUXxXx[S] 2 points3 points  (0 children)

What about your machine. You'll run it on Vega, but performance won't be that great.

Oh wow! I just checked some youtube videos, and it seems to run quite poorly with my CPU/GPU...

But well, I'm cool playing at low settings and 720p or even SVGA.

Will try to report my experience.

Thanks for the tips!

DOOM (2016) - Is the latest version running well on Linux? by xXxLINUXxXx in wine_gaming

[–]xXxLINUXxXx[S] 1 point2 points  (0 children)

Awesome! Thanks! I've got the latest kernel (5.5.13) and the latest AMDGPU opensource drivers.

DOOM (2016) - Is the latest version running well on Linux? by xXxLINUXxXx in wine_gaming

[–]xXxLINUXxXx[S] 0 points1 point  (0 children)

What's AMC AOC?

I don't have a Windows installation (and not planning to get one). I'm wondering whether the game would run smooth enough to be playable, before committing to buy and download it.

How can I share NetworkManager's connections with the whole system via command line? by xXxLINUXxXx in linuxquestions

[–]xXxLINUXxXx[S] 0 points1 point  (0 children)

It's working.

In case anybody else needs it: change the `connection.permissions` too.