Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all 17871 articles
Browse latest View live

How to configure a fast system with Ubuntu installed on a workstation for scientific computing


I'm looking for a remote admin tool for a Linux dhcp server.

$
0
0

We're moving dhcp away from windows server to a Linux machine and I need a way for the less than Linux savvy to be make reservations. They use mmc with dhcp snap in now. Any suggestions?

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

Finding the source of a process

$
0
0

Hello everyone,

So I have a malicious script that is popping up on one of my webservers. It is running a process that I have identified and I can kill that process.. however I want to find out what file is actually starting the process in order to prevent it from happening again.

Is there any way to do this? LSOF provides no details, strace only gives limited details of what it is doing, etc

I do know what user it is running under, however its wordpress and has some 9000 php files (sigh).

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

My view on accepting bounces and replies to your email

Configuring cobbler in spacewalk for pxe boot

$
0
0

Hello.

Is there anyone who can help me with some guidance on how to configure spacewalk's cobbler for pxe boot?

I have created a distribution in spacewalk (centos6.8) and I can't figure out how to configure cobbler,the dhcp server, or anything else so that booting a vm from network would run centos68 installer.

I couldn't find a link on the web that could help me resolve my issue. Please if anyone knows a solutions for this don't be shy and fill me with a bunch of details.

Thank you!

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

building an .rpm that simply yum install a bunch of .rpm

$
0
0

in my spec file i have the following

rpm -ivh file_to_rpms/*

I installed those .rpm on the same machine I am building with it, and when I run rpmbuild -ba rpms.spec it will list all the packages being installed and error out.

  • How can I make it so it won't error out because those packages are already installed?
  • what should I specify on my %clean so the packages aren't installed when I try to build the .rpm?
  • Am I even attacking this problem right?
submitted by /u/juniorsysadmin1
[link] [comments]

SELinux is annoying

Interpreting fsck error messages.

$
0
0

Hi all. I'm trying to find any advice relating to my StackExchange Question. I'm unable to find any useful information about what this is telling me (specifically):

Directory inode 2, block #0, offset 24: directory corrupted 

What does the offset refer to? The 24th byte in inode2? or block #0? I'm not sure why the Ext2 images that I'm creating (as empty directories, currently) are 'corrupted'... any advice/tips is super appreciated.

UPDATE: The final directory entry in the block must point to the end of the block. This fixed it.

Interesting...

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

Looking for (opensource) backup suite that requires ssh only @ client side

$
0
0

I am looking for a solid backup solution that supports versioning/incremental/diffs of backups etc that does not rely on agents @ client side but can use rsync / scp to pull in the required files. I've been looking into Bacula/Bareos and they mostly offer what i am looking for but afaik clients need to have an agent component installed to work. This is not always possible for my usecase since i have to support both own + external environments. Right now i have a system in place that relies on some clever shell scripting and it does the trick, but it is both unscalable and hard to maintain; and also foregoes many excellent functionality that a real backup package provides.

Does anyone know a (set of) package(s) that would allow this kind of setup?

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

Pulp Deployment Configuration

$
0
0

I'm in the process of deploying Pulp in our enterprise environment. I have a few questions that hope someone here might be able to shed some light on.

Before it gets asked, I do not have the ability to deploy Red Hat Satellite 6.* or Katello at this time. This leaves me with setting up local repositories and using any number of available scripts floating around the internet that can talk to RHSM CDN or mrepo (which I do not want to use) or Pulp. Additionally, I am hopeful that we will be able to move to Red Hat Satellite 6.* at some point in the future so any firewall requirements should hopefully be address through our Pulp deployment (and I am requesting TCP/5647 to support that even though Pulp does not call it out as needed).

Unfortunately, the resources at my disposal currently are very limited and I was not able to build out a full test POC.

So, my questions are:

  • How much space should be allocated for MongoDB per OS?

We need to import for:

RHEL 4, 5, 6, 7 OEL 5, 6, 7 EPEL 5, 6, 7

Additionally, each of the RHEL and OEL channels will have 4 to 6 child channels associated with them (Tools, Optional, Extras, Supplementary, UEK, Oracle Java, High Availability, etc.). I'm not quite sure how to best plan for what MongoDB will grow to as we move through the sync process.

  • Pulp and MongoDB security ... I'm not finding very much online with regard to setting MongoDB security properly to support Pulp. I have a fairly good idea of what I need to do here but if someone knows more and would like to share, I would appreciate it.

This one, I hope, should be pretty basic. We need a primary administrative account, Pulp administrator accounts, a few generic accounts that only register systems, and maybe a read-only reporting account. Does anyone have a "this plan worked for me" idea that can share?

  • MongoDB replication and Pulp Nodes?

Our environment is made of three distinct datacenters. All Pulp application servers have the ability to talk to one another fully. I am planning on deploying MongoDB on it's own dedicated server but, as I understand it, to support Pulp Nodes all Pulp Nodes need to be able to talk to the same MongoDB. Is it possible to setup Pulp's MongoDB to replicate to two other MongoDB servers and will that "work" for what Pulp needs to do? I'm also trying to be cautious and not have one MongoDB be a single point of failure. Am I completely off the mark in how Pulp leverages MongoDB?

  • Pulp caveats and\or best practices in general ... I have a fairly good idea of what I am in store for already, having had worked through a limited POC, but I am interested if anyone has suggestions.

I think what I am most concerned about here is performance tuning to support what Pulp does.

Thanks and I look forward to your thoughts.

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

SSH Jumpstation / Specific Hosts

$
0
0

Hey all,

I am building a jumpstation (bastion host) and I have it integrated with AD with DUO MFA. That piece all works great. My question is this, there will be different groups of people logging into this machine, how can I set it so certain users can only "jump" to specific machines via ssh? I have been working on building a custom shell to allow a modified version of SSH so they can only "jump" to servers on a list, but I was wondering if there was another way.

Any help would be greatly appreciated.

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

openvpn-as configuration

$
0
0

So in my router I have the following line:

ip nat inside source static tcp 10.1.1.10 443 interface GigabitEthernet0/0/0 443 where 10.1.1.10 is the ip of the virtual machine that have openvpn-as installed.

In openvpn, the default server name is 10.1.1.10. I change it to my outside facing ip.

Download the .msi and try to connect it from outside, it didn't work it instantly say "disconnected from x.x.x.x". No logs either. I believe I am misunderstanding something. What hostname I should set to and what am I missing here?

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

SMACK - Any good guides/howtos/tutorials?

$
0
0

I want to learn SMACK. So I compiled a kernel and enabled it.

(CONFIG_SECURITY_SMACK=y CONFIG_SECURITY_SMACK_BRINGUP=y CONFIG_SECURITY_SMACK_NETFILTER=y CONFIG_EVM_EXTRA_SMACK_XATTRS=y CONFIG_DEFAULT_SECURITY_SMACK=y)

Are there any good tutorials that outline a basic system configuration? (I searched the net, but all I found was too simplistic examples.)

Thanks in advance.

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

Managing power save and Wi-Fi latency in Linux

2016 Hard Drive Failure Rates for 2TB - 8TB Drives


How to ping two ubuntu os in a VM?

PFSense VLAN Losing Connectivity:

$
0
0

Background:

I've setup PFSense on an old 2011 rack mount Dell server with minimum specs 1 Xeon CPU, 2GB RAM and 4x1GB NICs.

In testing I've connected the Dell to an internal switch and have a Meraki 48 port L3 switch on the other side serving my test clients.

I have: 1 WAN -> external Cisco switch 1 LAN -> L3 Meraki

 Off the 1 LAN I have 3 VLANs: VLAN 100 Students VLAN 400 Servers 

VLAN 400 is the renamed LAN network.

VLAN 100 has intermittent network connectivity, all hosts get IP addresses from the server and can ping the gateway but getting out of the gateway is gain hit or miss.

The server uses less than 15% of all resources individually so I'm not sure it's the hardware failing to keep up.

I'm struggling to even begin troubleshooting the issue since the server connects with the clients to hand out IPs.

What I've done:

Checked all Firewall Rules Mimicked working rules from Servers VLAN to Students VLAN

Set VLAN 100 to use same physical port as SERVERS VLAN (can use one of the other 3 ports but I'm not sure if it's necessary but willing to try if someone believes it's vital)

Applied all updates

Rebooted (several times hahaha)

Asked Reddit..

Thanks again for any and all help, I truly appreciate it.

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

HTTP/2 Primer

why can't I run rsync in my expect script?

$
0
0

I just want to run that rsync command

#!/bin/expect -f spawn mkdir -p /win_mount_point spawn mount //win_machine/share /win_mount_point -o user=bgops expect { "*Password*" { send "MyPassword\r" } timeout { puts "\nError: timed out.\n" exit } } interact sleep 3 spawn rsync "-a /win_mount_point/* /data/win_vmstorage" interact #./myscript.sh spawn mkdir -p /win_mount_point spawn mount //win_machine/share /win_mount_point -o user=test Password for test@//win_machine/share: ********** spawn rsync -a /win_mount_point/* /data/win_backup rsync: link_stat "/win_mount_point/*" failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.9] 

mkdir works, the mount works but not the rsync. The command doesn't run.

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

Linux means "n-1" is an outdated policy - or are there counterarguments?

Viewing all 17871 articles
Browse latest View live