Reddit

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: 23 min 40 sec ago

Container for single binary? (LXC and Docker seem bloated)

Mon, 2017-07-24 02:39

Hello all,

Run into a bit of an odd issue distributing a binary which we can't compile completely static and also hitting different libc / glib issues across platforms (old old debian, new ubuntu etc) In any event I tried to get this project http://statifier.sourceforge.net/statifier/precompiled_packages.html to work however it seems very dated and I can't even get it to run on my platform.

In any event I am now looking to containers, I've used LXC a fair bit but it seems kinda bloated for this particular goal of "faking static bins" I looked into Docker and it seems even heavier.

Any suggestions or either addressing my static link issue, or a good tiny container solution?

Thanks for your comments and time!

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

Is there a "hacker news" for sysadmin?

Mon, 2017-07-24 01:14

Noob here looking for a career switch to linux sysadmin, i hope i'm doing the right thing any advice is very appreciated

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

What's your favorite VM Tool? (VMWare, etc)

Mon, 2017-07-24 01:08

Hello, everyone! I am taking some classes at my local city college in San Francisco and need to be able to run Linux in a Virtual Machine. I would rather be running Linux on my machine altogether or at the very least be dual booting. Right now I simply need to run Linux in a VM environment.

All that being said can any one tell me their favorite VM software to use? Preferably free. I am taking the Kali Ethical Pen Testing Course at the local college so a VM player that will work well with my wireless card and other built in hardware would be nice. As always, Thanks!

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

Need some help with `dlopen()` and search paths

Mon, 2017-07-24 00:21

I know that this isn't a programming subreddit per se, but I've had good success here with questions like this. Anyways...

So I've been trying to get some Nim bindings for raylib working (they're here). Idea was to use the shared library version of raylib. It requires GLFW, which I also have the shared version installed.

So when I build the raylib examples using both shared raylib and shared GLFW, I can run them without having any extra hassle, since all of the .sos are installed into /usr/local/lib.

Now trying out this port of the core_basic_window example, it will compile. But when I try to run it, the executable says that it can't find the .so for GLFW. But if I do export LD_LIBRARY_PATH=/usr/local/lib before running the example, it doesn't give me that .so error.

What is going on here? The only difference between the C & Nim versions is that -lraylib is passed to the linker in the C version, where as Nim uses a wrapper over the dlopen() function. Isn't /usr/local/lib supposed to be a default search path?

submitted by /u/def-pri-pub
[link] [comments]

HandyKaraoke 1.0.0 release, make karaoke easy!

Sun, 2017-07-23 18:32

The author is Patcharapol Sae-ui. The original post is on facebook. But I post the content down below. This karaoke software display text as the songs are playing. Check out youtube vid. Please report bug on github. https://www.faaaacebook.com/groups/ubuntuclub/permalink/1381335308601449/ Source https://github.com/pie62/HandyKaraoke

Releases https://github.com/pie62/HandyKaraoke/releases

https://youtu.be/ybgdYwXKmXQ

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

Tried Installing Mint, broke everything

Sun, 2017-07-23 17:50

My laptop originally had Windows 10 installed. I dual booted it with Elementary OS and everything was working fine.

Recently I wanted to switch to Mint 18, I downloaded the ISO file and created my Bootable USB and booted up the Live Mode. The idea was that I'd use the partition manager to format the Elementary partition and install Mint there, however I ended up checking a box that said something about LVM or something, and that messed with my partitions and bootrecords.

Now I can't boot into eOS or Windows, and neither Windows boot repair, nor the equivalent 'nix program boot-repair could fix it. I really don't want to lose all the data on my laptop HDD, does anyone have any possible solutions?

Tl;Dr Broke Windows/eOS dual boot by not reading pop-ups in Mint installer, need help fixing bootrecords so I can get Atleast windows back.

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

Why polkit is needed?

Sun, 2017-07-23 17:48

Simple question, what is the problem that polkit tried to solve? Why dbus method calls should go in a series of polkit policy checks before performing the required action? Why not just that upower checks the caller groups, if he/she belongs to "power" then it is okay, otherwise permission denied? Same goes for mount/umount/... on "plugdev" group for example.

Why retaining the Unix groups simple concept is not enough in the case dbus daemons/polkit world? What are the advantages of implementing something like polkit?

BTW: I do develop system bus daemons with desktop clients, and I do see polkit as an abuse.

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

Compatibility and Laptops

Sun, 2017-07-23 17:43

Hi all, my name is Tom. Let's keep this short and sweet.

[TL:DR] How do I know which machines will run linux effectively and how do people normally purchase im regards to Linux installation?

I have no prior experience with Linux. I am looking to invest in a new laptop soon to use for work as I am an aspiring web design/developer. I have heard that Linux is particularly useful in this pursuit due to its ease of workflow and customisation possibilities as well as simply learning Linux seems to be a useful tool. To this point I am a "Windows Wamble" as I have only ever been told to use windows, its the industry-leading product, and it's simply the "go to" until you learn otherwise.

My question is simply... As Linux doesn't have amy "pre-installed" machines ie laptops, what is the most important thing to consider when looking for a laptop i want to install Linux on? As a secondary question... what is the normal system? Do people usually buy a windows machine and immediately convert it? I want to avoid paying out for a laptop only to find it is not compatible or optimal.

I am new to this community and pursuit so apologies if this was not an easy question in any way.

All the best,

Tom

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

What are these wlan security algorithms

Sun, 2017-07-23 17:27

Are these algorithms used for encrypting data that transmitted between AP and client and if so how I can see the all data which is transmitted over network when I'm connected to the network using Wireshark And one more thing, is the key of these wlan security are the password we keep for our wifis

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

A Fedora User's Guide to Bumblebee

Sun, 2017-07-23 13:45
Preface

I've had a lot of people ask me about how to get bumblebee up and running on Fedora Linux. Although I redirected them to the bumblebee page on the Fedora wiki, many of them complained that they didn't understand the guide there properly.

This guide that you're reading right now is an effort to explain the process step-by-step and help the user understand what they're doing and why.

Before we actually get to the installation part, I want to take a moment to actually explain a few concepts to you.

Also, this guide assumes that you want to use the latest Nvidia proprietary drivers.

Feel free to skip the next section if you just want the installation steps.

Concepts Nvidia Optimus

Nvidia Optimus is an optimization technology created by Nvidia which, depending on the resource load generated by client software applications, will transparently and seamlessly switch between two graphics adapters within a computer system in order to provide either maximum performance or minimum power draw from the system's graphics rendering hardware.

If your Nvidia card's model ends with an 'm', then you most likely have an Optimus card. (eg: Nvidia 930m, Nvidia 940mx, etc)

On Fedora, you have 3 options of how you deal with an Optimus setup.

  • Disabling one of the devices in BIOS, which may result in improved battery life if the NVIDIA device is disabled, but may not be available with all BIOSes and does not allow GPU switching.
  • Using the official Optimus support included with the proprietary NVIDIA driver, which offers the best NVIDIA performance but does not allow GPU switching and can be more buggy than the open-source driver.
  • Using the third-party Bumblebee program to implement Optimus-like functionality, which offers GPU switching and powersaving but requires extra configuration.

Since this guide focuses on Bumblebee, we'll be talking about that. If you'd like to read about the other methods, then I talked about them briefly in my previous guide.

 

Bumblebee

Bumblebee is a effort to make Nvidia Optimus enabled laptops work in GNU/Linux systems. Such feature involves two graphics cards with two different power consumption profiles plugged in a layered way sharing a single framebuffer.

​Basically, what this does is that the discrete GPU (NVidia) is turned off when not in use and activated and turned on though ACPI calls when demanding OpenGL applications require the extra power the discrete GPU can give.

​Demanding OpenGL applications might include such things as 3D games or 3D rendering software but would not include such things as a web browser or a video playback program like mplayer or VLC.

 

Pre-Installation 1. Verify if you have an Optimus Card
  1. Open your terminal and run lspci -vnn | grep '\''[030[02]\]'
  2. If it outputs 2 lines, then it means you have an Optimus system and you should read further on.

 

Example Output:

~ » lspci -vnn | grep '\''[030[02]\]' 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 520 [8086:1916] (rev 07) (prog-if 00 [VGA controller]) 01:00.0 3D controller [0302]: NVIDIA Corporation GM108M [GeForce 930M] [10de:1346] (rev ff) (prog-if ff)

 

2. Turn off "Secure Boot" in your BIOS

Boot into your BIOS, and look for the "Secure Boot" option.

Make sure that option is turned off.

 

Installing Bumblebee 1. Add the Bumblebee Repo dnf -y --nogpgcheck install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee/fedora$(rpm -E %fedora)/noarch/bumblebee-release-1.2-1.noarch.rpm

 

2. Add the Unmanaged Nvidia Repo dnf -y --nogpgcheck install http://install.linux.ncsu.edu/pub/yum/itecs/public/bumblebee-nonfree-unmanaged/fedora$(rpm -E %fedora)/noarch/bumblebee-nonfree-unmanaged-release-1.2-1.noarch.rpm

 

3. Download the Nvidia driver blob
  • Go to the Nvidia Unix Drivers page and download the "Latest Short Lived Branch" driver. As of writing this guide, the latest driver is: 381.22
  • This will download a .run file into your ~/Downloads directory. Keep it there for a little while.

 

4. Install Bumblebee dnf install bumblebee-nvidia bbswitch-dkms VirtualGL.x86_64 VirtualGL.i686 primus.x86_64 primus.i686 kernel-devel

 

5. Copy the Blob

Remember that .run file you downloaded earlier?

Copy that file to /etc/sysconfig/nvidia/ directory. This is very important.

 

6. Reboot :D

 

Using Bumblebee

 

Now that we have Bumblebee installed, how do we use it? :D

 

To launch an application using your Nvidia Card, the syntax is:

primusrun [options] application [application-parameters]

 

For example, say you want to open a wine application using your Nvidia card, you will type:

primusrun wine application.exe

 

Launching Nvidia-Settings with bumblebee

When you're using bumblebee, you shouldn't open the nvidia-settings application directly.

Instead, you need to launch it with the following command:

optirun -b none nvidia-settings -c :8

Feel free to adjust the nvidia-settings.desktop file to reflect that command.

 

CUDA 1. Download CUDA

Download CUDA from here.

 

2. Installing CUDA
  1. cd into your Downloads folder and unpack the .run file with:

    sh <cudafile> -extract=/path/to/somewhere

    where <cudafile> is the file that you just downloaded from the Nvidia site.

  2. You will get 3 files, the driver (not needed), CUDA toolkit and CUDA samples. Install the toolkit and samples with:

    cd /path/to/somewhere/ # this is where you extracted the .run file sudo ./cuda-linux64-*.run # replace * with the rest of the file name sudo ./cuda-samples-linux-*.run # replace * with the rest of the file name

  3. When prompted, tell the installer to install everything to /opt/cuda and /opt/cuda/samples for the samples.

  4. Update your .bashrc or .zshrc file with the following two lines:

    export PATH=$PATH:/opt/cuda/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cuda/lib64

    and source it: source ~/.bashrc or source ~/.zshrc

  5. Verify that CUDA works:

    cd /opt/cuda/samples/1_Utilities/deviceQuery sudo make optirun ./deviceQuery

  6. Profit :D

Conclusion

This is the end of the guide. I sincerely hope that it was easy to follow.

A lot of the content in this guide comes from the Fedora Wiki and the Arch Wiki.

The CUDA section comes from this very helpful page that I found.

I will be keeping the links to the latest driver up to date whenever new drivers come out, so it might be a good idea to bookmark this somewhere.

Thank you for reading! :D

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

Pages