Feed aggregator

enforced selinux ignores given permissions

Reddit - Wed, 2017-05-24 14:23

hi! i spent ages debugging my apache server only to find out that there is a module called selinux. even though i had given apache group permissions to all the files it needed, selinux still prevented it from accessing them. can someone give me some insight as to, why? any advice on using selinux is highly welcome.

i am a little inexperienced with this.

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

Some Logitech Hardware Can Now Be Flashed Under Linux With Fwupd

Phoronix - Wed, 2017-05-24 14:19
Richard Hughes of Red Hat has managed to support firmware updating of Logitech devices under Linux with fwupd...

Complete Guide: Rename file Linux

LXer - Wed, 2017-05-24 14:06
This post will quickly guide about how to rename file Linux. Basically to rename file in Linux you need to use mv command. This will be used to rename file as well as directories in Linux.

How to ping and test for a specific port from Linux or Unix command line

LinuxToday - Wed, 2017-05-24 14:00

Nixcraft: I wanted to see if a specific port of a desktop computer or server is open from a Linux or Unix command line shell.

Gaming News

TuxMachines - Wed, 2017-05-24 13:55

read more

Qt Creator 4.3 IDE Officially Released

Phoronix - Wed, 2017-05-24 13:19
Just a short time after issuing the Qt 5.9 release candidate, The Qt Company has now unveiled the final release of Qt Creator 4.3...

GCC Developers Potentially Deprecating Intel MPX

Phoronix - Wed, 2017-05-24 13:14
It was just with GCC 6 that MPX support was flipped on with Intel's Memory Protection Extensions (MPX) just premiering with Skylake CPUs. But now GCC developers are thinking about potentially deprecating this feature...

Qt 5.9 Release Candidate Available For Testing

Phoronix - Wed, 2017-05-24 13:01
Running just slightly behind schedule, the Qt 5.9 release candidate is now available for last-minute testing of this next tool-kit update...

Reduce your Apache TIME_WAIT connections

LXer - Wed, 2017-05-24 12:51
If you manage an Apache server, you may be noticing a large amount of TIME_WAIT connections all of the time. Don't get me wrong, TIME_WAIT is a good thing.. it basically means that your server has closed the connection, but it's being kept around so any delayed packets matched to the connection can be handled properly. We can reduce them, however.

Wayland's XDG-Shell Preparing For Stable

Phoronix - Wed, 2017-05-24 12:21
Wayland developer Jonas Ådahl is preparing to promote the XDG-Shell interface from unstable to stable...

Kodi 17.2 Released To Fix Security Issue, Bugs

Phoronix - Wed, 2017-05-24 12:06
Kodi 17.2 has been released and all users of this HTPC software are encouraged to upgrade due to a security fix...

Turn Your Raspberry Pi into a Hi-Fi System with RuneAudio

LXer - Wed, 2017-05-24 11:37
RuneAudio is a powerful open-source media center that can turn your Raspberry Pi into a DIY Hi-Fi system. Learn the simple setup process.

KDE Plasma 5.8.7 LTS Desktop Environment Released with over 60 Improvements

LXer - Wed, 2017-05-24 10:23
KDE today announced the release and immediate availability of the seventh maintenance update to the long-term supported KDE Plasma 5.8 desktop environment.

Installing Linux on a headless NAS box meant to run Win Server 2008 (Western Digital Sentinel DX4000)

Reddit - Wed, 2017-05-24 10:15

Hi all, after a lot of digging and help from topics on WD forums I feel like I need to do a tiny (I was expecting this to be shorter, TL;DR at the bottom) writeup on how I managed to get a Arch Linux to run on the Sentinel DX4000 I got second hand with no (compatible) disks. (device is normally restricted to a whitelist of (no longer available) disks and a USB installer for Windows Server stuff)

Failures: Always good to see the method to my madness... All the things that didn't work.

Transplant method First I noticed someone on a blogpost mention that he did a simple install on a disk connected to a different motherboard. Transplanted this disk to his Sentinel and everything worked. For me this didn't work. After the attempt I reconnected the disk to the motherboard I installed on (in UEFI only mode etc.) I could not find a single line of proof that the Sentinel ever attempted to boot from this disk in the (Ubuntu) log files.

USB graphics USB to HDMI and boot into Ubuntu Live CD to get the graphical installer to work (and perhaps fix the boot issues?). No cigar... 8 euro's down the drain :(

Mini Success I knew the Ubuntu UEFI loader would load the Live CD, Get a usb stick with an LED for kicks. Use Rufus or Etcher to get a proper UEFI boot of Ubuntu to the USB stick. use the magic button to 'restore' and boot from USB stick. After a little while nMap (or perhaps your DHCP log on your router) will show an IP for the WD MAC Address. (00:90:A9:...) Ping! and.... PONG :D It's alive! Only the Live Ubuntu doesn't allow SSH... changes made in persistent mode on a different PC (with a screen) didn't really help.So I need to get the ssh installed, ubuntu user password configured and firewall disabled while working blind. After boot. I issued the commands:

sudo apt-get -y update [-y stops stupid questions!] sudo apt-get -y purge ufw [removes firewall, live USB anyway...] sudo apt-get -y install openssh [ssh server for access] passwd [then type the same password twice. 'bullshit' is acceptable even. as long as you type it twice with enter in between.

Now SSH to the IP worked! Only to find out that Ubuntu Live CDs don't offer a console based installation.... yeeh. still this succes gave me the confidence to get another, even cheaper WD DX4000 online :P (yes I have two now _)

Medium Succes (or hope?) Most of my linux experience is with CentOS, RHEL and Debian / Ubuntu based systems. those al proved to require an automated install (kickstart / preseed can work) but no guide gave me the confidence / will to actually go through the process (so many steps...). Instead I found Arch Linux, which has a chroot type of install procedure where you copy files to a disk and configure all the settings and such from the live USB environment on the disk where you want it to live while in the hardware you want it to work with (meaning that network components will have a good chance of working!)

To get SSH access from the live USB (created in EFI mode with Rufus / etcher.io) you need to start ssh and set a password for the default user. systemctl start sshd.service passwd (type password twice with enter in between)

The guide I used, specific for the EFI requirement the Sentinel has.

After running through the whole thing, and doing the reboot.....NOTHING happened..... At this point I'm second guessing everything in life and let it rest for a while.

Until a day sitting at home with a stomach ache!

Great Success

I'd already tried to get the unit to run with the restore media the previous owned of the second one I bought supplied me with, added my disks to the whitelists and everything, but 'Bad Storage' (or Storage Bad?) was always the note on the LCD. I was hoping to get this recovery on one disk to work and making it do dual boot on my 'spare' motherboard... This never worked so far (probably because I don't have a Windows Machine with a sata port in the house and can't change the disks I used to 'dynamic disks' through USB. I figured why not try to get the Server 2012 running, I probably have some MSDN license for it somewhere so might as well get these boxes doing something useful. I find myself on the page below.

one Thousand thanks to 'TS Walker' for this page. I owe you a beer! (or three)

This page notes that during setup you need to manually modify the efi files to get it to work. Knowing this I connected the disk I installed Arch on before to a USB enclosure on a linux VM, mounted the boot volume and added the 'startup.nsh' file in the root of the direcory. Not knowing the EFI standard in slashes (windows \ or unix / ? ) I opted for the following contents:

fs0: cd EFI cd BOOT BOOTX64.EFI

(not to stupid ey? neatly going around the slash :P )

Now I put the disk back into the Sentinel bay #1 and pressed the power button. Within a few seconds I notice the disk activity properly resembles a boot sequence, after a while the network interface even blinks.... another nmap and the IP is there... and SSH works :D I do a couple of reboots to ensure it will survive... It does :D

Turned it off and put three empty drives in, restart it, no problem! As long as these have no EFI partition I don't see why it would ever be a problem either.

*TL;DR Magic! no but really, 1. Install Linux OS on other machine or through Arch chroot as linked above, 2. Create the startup.nsh file in EFI partition with the contents the Sentinel Expects. 3. ? 4. Profit!

Hope it helps someone. My next step is to get Ubuntu on the other Sentinel the same way and have it replace my Nvidia ION based home server for downloads and such.

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

today's leftovers

TuxMachines - Wed, 2017-05-24 10:07

read more

Graphics News

TuxMachines - Wed, 2017-05-24 10:05

read more

Pages

Subscribe to LinuxInsight aggregator