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

VPS monitoring advice

$
0
0

I don't usually manage servers but here we are. I've a VPS running about 5 php web sites and I need an easy-to-setup monitoring solution. It should be lightweight - to run on the same machine, provide reliable alerts via email (low disk space, low inode, dead mysql/httpd/postfix/redis processes) and historical data views (cpu, mem, net, io, mysql, httpd, postfix, redis). The server runs centos7 so it's preferable to have it available in official repositories, or from a reliable 3rd party.

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

Should an aspiring Linux Admin deep dive into Bash or Python first?

$
0
0

Kinda confused as to which direction I should I take.

I love working with systems, building servers, adminstration, etc.

But as far as automation and scripting goes, I still suck.

So what should I dive into, Bash or Python? I know some of you are going to say both, but for someone who's not a professional Linux Admin, works a fulltime job, does homelabs,and etc, I don't know see how learning two different languages is feasible (unless you guys have a suggestion to make this possible).

Please give me some wisdom and advice

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

Any open source remote desktop programs out there?

$
0
0

We use ScreenConnect at work, but in this world of Open Source technology, I was wondering, are there any open source alternatives?

I've looked into Apache Guacamole but as far as I can tell there is no unattended access which is something we need.

Does anybody have any suggestions?

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

Load balancing according to HTTP response time or CPU load

$
0
0

Hello,

Do you have any recommendations for load balancing according to HTTP(S) response time or CPU load?

So far I found a technique called dynamic round robin (link) but I can't seem to find anything on how to do it.

Any idea how to do dynamic round robin on nginx' free version?

Are there other tools that are better for such a setup?

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

Samba Has Me Pulling My Hair (Linux to Windows 10)

$
0
0

Anytime I try to connect to the share through a Windows 10 computer, I get a "Network path cannot be found" or a "The network folder specified is currently mapped using a different user name and password..." message.

SELinux contexts is set to samba_share_t on the samba folder. Everything is fine when I run testparm, and nothing unusual in the logs.

Here are my configs:

[global] workgroup = SAMBA security = user passdb backend = tdbsam printing = cups printcap name = cups load printers = yes cups options = raw wins support = yes domain master = yes [sambashare] comment = sambashare path = /sambashare writable = yes browseable = yes printable = yes valid users = sambauser 

Anybody know what the issue might be?

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

Backup Solution

$
0
0

Need help with selecting a backup solution for our servers as my case is: - have around 40 servers (baremetal + VMs) - need to take full and incremental backups for files and databases for all. - backups have to copies locally and remotely, remotely is over LAN and WAN as some of the servers are in a different location. - backups needs to be monitored and managed from a central server. What i came across are bacula and bareos but any advise or help would be appreciated as i don't have experience with backups.

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

Any resources recommendations for a former sys admin that's not very well rounded?

$
0
0

I have 7 years of working in a data center environment with some sys admin experience. Admittedly I didn't keep up with trends enough to be well rounded, but my duties were pretty much limited to administering the network of machines in a noc environment for a web hosting company; watching netsaint, dealing with server load, mitigating ddos, dealing with spam, high disk user policing etc, not much of the engineering side. Things like building kernels, package management, building chef recipes I never had to really do. I also lack experience with Shell scripting or programming in general since a lot of the work I did involved running proprietary commands through service controls. Now that I'm out of a job at 35, I feel a bit lost. I'm too technical for most entry level tech support, and not knowledgeable enough for system engineering roles. I think a lot of it is I lack confidence since I don't have foundational knowledge. As of right now I'm going through courses on Linux academy, tinkering with a few VM in virtual box to keep my knowledge fresh. My goal is to break into dev ops so I'm getting AWS certified. But I was wondering if anyone had any resources or practice projects(in shell scripting or otherwise) for sys admins that covers an array of skills an admin should have. Off the top of my head, stuff like log management or automated backups. I feel like I'm a dime a dozen sys admin with no specialized skill. I just read the sticky on dev ops, so that's a good start but would appreciate any additional advice, thanks!

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

Console autologin for Ubuntu with systemd(15.04 and higher)


What do you do if you love IT, but hate Corporate America?

$
0
0

Yeah, I know it is what it is and this is how life works.

But I fucking can't stand Corporate America, office culture, office politics, and all this other stupid shit.

Corporate America is basically Adult High School

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

Systemd running a backup script

$
0
0

I am using a script which uses borgbackup to backup some directories to a remote server using SSH.

I have created the following systemd service:

[Unit] Description=Backup files with borg script After=network-online.target [Service] Type=idle ExecStart=/backup.sh [Install] WantedBy=network-online.target 

It should execute the backup script called backup.sh as soon as there is a network connection.

I am not sure what service type should I use. Should it be "idle", "oneshot" or "forking"? You can find the script here.

Thank you

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

Are threads & processes treated the same?

$
0
0

I know that a thread and a process are two different things but I am having a difficult time understanding how Linux handles the two.

I recently discovered that by default, the Mono runtime uses only 1 thread per CPU. However if you view the Mono process, there are many different child processes running under the main Mono process.

I asked a few Linux power users I know and Googled around online and the general consensus is that Processes == Threads. But, that's not right.. is it?

When I look at htop and I see all those child processes, what are they? How are they different from a traditional thread created by native app code?

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

Is it possible to strip a Windows computer of its OS, and put a hypervisor on it?

$
0
0

I have a few laptops at work laying around and I've thought about putting it to use.

For the past few days I've been trying to put Promox, through Rufus, on some computers and I haven't been successful.

I've gone through about 6 USB's, and most of em have ended up corrupted while using Rufus. A couple of em didn't end up corrupted but I can't get it to boot up on the laptop.

Anybody have any suggestions or advice?

I've tried etcher and the other USB installer mentioned in the Proxmox docs, but I can't even see the iso images when I use those.

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

How do I boot a Linux iso on a Windows laptop?

$
0
0

I've been trying to use Rufus and it has literally corrupted and messed up a handful of my usb's.

For whatever reason, the other USB installers that I've used aren't even able to pull up the iso whenever I browse for a file. Pendrivelinux, Rawrite32, etc.

Any suggestions?

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

Installing renewed certificates to tomcat6 on Debian

$
0
0

Our certs were about to expire so I requested renewal from our cert admin. The certificates were renewed from the same CSR (I provided no new CSR). No need to generate a new private key.

Its been a long time since I installed a cert to a java web container, and didn't know if I had to update the keystore (I didn't). What I did was simply open the existing root and intermediate cert files and replace their contents with the contents of the new files. I restarted Tomcat, and all looks swell, and it is rendering the new cert info with updated expiration dates, etc.

I am still wondering about the keystore tho. Every resource I find says you have to update the keystore. What up?

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

Yum update is creating .rpmnew bashrc files

$
0
0

I just ran a yum update and got the following complaints:

Downloading Packages: setup-2.8.14-23.el6.noarch.rpm | 151 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : setup-2.8.14-23.el6.noarch 1/2 Error unpacking rpm package setup-2.8.14-23.el6.noarch warning: /etc/bashrc created as /etc/bashrc.rpmnew error: unpacking of archive failed on file /etc/csh.cshrc: cpio: rename Verifying : setup-2.8.14-23.el6.noarch 1/2 setup-2.8.14-20.el6_4.1.noarch was supposed to be removed but is not! Verifying : setup-2.8.14-20.el6_4.1.noarch 2/2 Skipped (dependency problems): ImageMagick6-c++.x86_64 0:6.9.9.29-1.el6.remi ImageMagick6-djvu.x86_64 0:6.9.9.29-1.el6.remi ImageMagick6-libs.x86_64 0:6.9.9.28-1.el6.remi ImageMagick6-libs.x86_64 0:6.9.9.29-1.el6.remi openjpeg2.x86_64 0:2.1.0-7.el6 Failed: setup.noarch 0:2.8.14-20.el6_4.1 setup.noarch 0:2.8.14-23.el6 Complete! 

so I looked closer at the files with the warnings and they were all set as immutable which I read might cause update problems so I set them to be mutable and everything seems ok with /etc/csh.cshrc but after running another update I now get this:

Downloading Packages: setup-2.8.14-23.el6.noarch.rpm | 151 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : setup-2.8.14-23.el6.noarch 1/2 warning: /etc/bashrc created as /etc/bashrc.rpmnew warning: /etc/profile created as /etc/profile.rpmnew warning: /etc/shadow created as /etc/shadow.rpmnew Cleanup : setup-2.8.14-20.el6_4.1.noarch 2/2 Verifying : setup-2.8.14-23.el6.noarch 1/2 Verifying : setup-2.8.14-20.el6_4.1.noarch 2/2 Updated: setup.noarch 0:2.8.14-23.el6 

Ive changed bashrc back to being immutable, are these newly created .rpmnew files going to be a problem and why is this happening?

thanks

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

Anyone here who took RHCA/RHCE certification?

Wiki for r/linuxadmin?

$
0
0

In my opinion, a wiki may be a good idea to have to allow a knowledge base of various tools, tips, and tricks that we find useful or may think others could use. I'd be willing to help manage it in case the current team of moderators isn't willing to.

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

Systemd service that is always restarted

Where do I learn how to securely setup and run a server based on Linux/Ubuntu?

$
0
0

Hi there,

I am struggling to find good resources to learn about how to setup and update/run a Linux/Ubuntu server securely.

Unfortunately I am already running a vServer that got compromised (sending spam mails...). Now that I am transfering the data onto a fresh Ubuntu installation, I would like to step up its security.

It would be nice to start at 0, I am not completely comfortable with the command line for example. I've had a look at logs today for my first time ever.

Thank you very much!

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

The Linux Command Line featured in Humble Book Bundle: Be a Coder by No Starch Press

Viewing all 17880 articles
Browse latest View live