Subscribe to Reddit feed
All things Linux and GNU/Linux -- this is neither a community exclusively about the kernel Linux, nor is exclusively about the GNU operating system.Linux, GNU/Linux, free software...
Updated: 15 min 42 sec ago

Massive "find" gotcha

Sat, 2018-02-17 19:07
$ mkdir find-tmp $ cd find-tmp $ echo -n "a" > foo $ ls -l foo -rw-r--r-- 1 alan users 1 Feb 17 17:55 foo $ find . -size -1M $ find . -size -2M . ./foo $ find . -size -1000000c . ./foo $ find . \( -size -1M -o -size 1M \) . ./foo $

From the man and info pages: File uses n units of space, rounding up. (though the Centos man page doesn't mention this)

There is no mention of the actual effect of this rounding: one character is rounded up to the "M" (Mebibyte, 1048576 bytes) unit (though the man page uses "Megabytes"). The "less than" test then fails. Or'ing in a an "equals" test makes it work.

submitted by /u/alan-w
[link] [comments]

Install software on my VPS running CentOS for 'cloud-based' software solutions?

Sat, 2018-02-17 18:44

I'm a web developer and I have a VPS running CentOS (6.9 I believe). I have WHM and cPanel installed and I host my client's websites on it.

What I'd love to be able to do is install software (in this case, Moneydance, personal finance software). Moneydance is available as .rpm and also .tar-gz. What I would love to be able to do is install it on my VPS, so I could access and use the software remotely from any computer.

I'm missing something in my understanding though. Without a GUI on my server where I could open the program, once I install it, I'm not sure how I would access it / open it? Is it possible to open it in the web browser?

I know there's a blind spot in my understand of how cloud-based VPS Linux installs work, do I need to install a browser-accessable GUI, or something of that nature?

submitted by /u/neocamel
[link] [comments]

FOSS managed Ethernet switches?

Sat, 2018-02-17 16:56

Are there any FOSS solutions for enterprise grade managed Ethernet switches? I know about LibreCMC for home routers which provides completely FOSS Linux based networking. But I'm looking for something that can be used in a datacenter.

submitted by /u/f7ddfd505a
[link] [comments]

A bug that has been present on Linux desktops for years is that when a computer goes to sleep and is then resumed, sometimes monitor(s), especially if more than one monitor is connected to the computer, display nothing any more. What are making it...

Sat, 2018-02-17 15:08

Is it due to:

  • Buggy monitors?
  • Buggy drivers?
  • Bugs in Xorg, Waylands, etc?
  • Bugs in Window Managers?
  • Bugs in DEs (Gnome, KDE, etc.)?
  • All of the above?

Why such issues happen much less often on Windows and OS X?

submitted by /u/LamborghiniVeneno
[link] [comments]

gdb cheatsheet

Sat, 2018-02-17 14:34

What explains the memory speed difference?

Sat, 2018-02-17 10:17

On core i7 6700K @4GHz, 2667MHz ddr4

dd if=/dev/zero of=/dev/null bs=1M count=1M 1096415182848 bytes (1,1 TB, 1021 GiB) copied, 40 s, 27,4 GB/s 1048576+0 records in 1048576+0 records out 1099511627776 bytes (1,1 TB, 1,0 TiB) copied, 40,1126 s, 27,4 GB/s

On Ryzen 1700 @3.7GHz, 2667MHz ddr4

dd if=/dev/zero of=/dev/null bs=1M count=1M 1089067810816 bytes (1,1 TB, 1014 GiB) copied, 56 s, 19,4 GB/s 1048576+0 records in 1048576+0 records out 1099511627776 bytes (1,1 TB, 1,0 TiB) copied, 56,5374 s, 19,4 GB/s

What explains the difference?

I would assume about the same result since both are using dual channel ddr4 with the same speed.

submitted by /u/Nagatus
[link] [comments]

Help with Mageia.

Sat, 2018-02-17 04:41