Skip to content

u/SleeplessSloth79

In this archive from Jan 2018 to Aug 2026

30
posts
275
comments
13
media
1.5k
score
3 saved before deletion

Top posts

What's the difference between VNC (TigerVNC), NX (X2go), RDP (xrdp), and Xpra?

I'm trying to figure out the exact differences in behavior between all these remote desktop solutions. I know all TigerVNC does is send bitmaps of the virtual screen from the server to the client. xrdp and X2go try to send primitives instead and it seems there isn't really a big difference between t...

39 points19 comments
Open on Reddit

Top comments

Redirecting output of a command is usually done via > or >>, in this case it'd be

rankmirrors -n 5 mirrorlist > ranked_mirrorlist

The problem is that writing to ranked_mirrorlist requires root, BUT just adding sudo like

sudo rankmirrors -n 5 mirrorlist > ranked_mirrorlist

will fail since that'll make sudo run rankmirrors as root, not the redirection > itself. The shell does the redirection, so to run the redirection as root you have to run the shell as root. You can do something like

sudo sh -c 'rankmirrors -n 5 mirrorlist > ranked_mirrorlist'

But that's kinda awkward to type, so you can replace the redirection with tee and run that with sudo instead. And since tee is an external program, sudo will work just fine. Bonus points for being able to see live what's exactly being written to the file

28 points

Subreddits

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.