Fedora 20 desktop setup

Posted by jason on Sept. 6, 2014, 12:33 p.m.
Tags: fedora linux sysadmin

Here's what I do after a fresh Fedora 20 install:

No password sudo


$ sudo su -
$ visudo

Add this line at the bottom:


myusername   ALL=(ALL)       NOPASSWD: ALL

Update everything

Duh.


$ yum update

Install some nice programs


$ yum install vim rxvt-unicode-256color zsh mplayer

Add rpmfusion repo and install some good ...


Fedora 20 Steam OpenGL not using direct rendering

Posted by jason on Sept. 6, 2014, 9:05 a.m.
Tags: fedora linux steam sysadmin

I had this problem after installing steam from rpmfusion:

https://support.steampowered.com/kb_article.php?ref=9938-EYZB-7457

I'm on 64-bit and this seems to be a 32-bit nvidia issue. The solution was to install the 32-bit nvidia drivers:


$ yum install xorg-x11-drv-nvidia-libs.i686


Hostapd on CentOS 6

Posted by jason on Feb. 3, 2012, 6:31 a.m. - 6 comments
Tags: centos config hostapd linux sysadmin

Here's how I got hostapd working on my CentOS 6 box. This article (if you could call it that) is just a running commentary. I wrote it while figuring things out, so all the silly issues I encountered are included here. Yes, I could write this properly so that ...


Ignoring yum dependency errors on CentOS

Posted by jason on Feb. 1, 2012, 7:05 a.m.
Tags: centos sysadmin

I have a machine I manage that has the php53* packages installed, and when phpmyadmin needs to be updated, yum craps out, complaining about phpmyadmin needing php-mysql, etc. I have php53-mysql installed, so these types of error can be safely ignored.

To solve the issue, I downloaded the latest phpmyadmin ...


NFS (v4) Shares on CentOS 6

Posted by jason on Jan. 30, 2012, 12:39 p.m.
Tags: arch centos linux sysadmin

Here's a few I had to do while trying to set up read-write NFS shares between a CentOS 6 NFS server and an Arch Linux client. The Arch Wiki NFSv4 page was a huge help.

Set up NFS domain

Edit /etc/idmapd.conf on both the client and the ...


Install rxvt-unicode on CentOS 5

Posted by jason on Dec. 2, 2011, 6:41 a.m.
Tags: centos sysadmin utf8

Here's how to enable the EPEL repository and use it to only install the rvxt-unicode terminal.

Get the EPEL RPM package:


jason@jason:~ [322]$ wget -c http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Install the .rpm:


jason@jason:~ [323]$ rpm -i epel-release-5-4.noarch.rpm ...

Problems with Ethernet RTL8111/8168B controller in Arch Linux

Posted by jason on Sept. 30, 2011, 7:34 a.m. - 1 comment
Tags: arch linux sysadmin

Problem

After a fresh Arch Linux install, I was having problems with my ethernet card: it kept flaking out and ifconfig was showing a ridiculous number of dropped packets and errors.

Here's the exact card I have, as described by "lspci | grep -i ethernet":

07:00.0 Ethernet controller ...

An Example of Troubleshooting in Arch Linux

Posted by jason on Aug. 13, 2011, 3:13 p.m. - 1 comment
Tags: arch config linux sysadmin

I recently had a rather obscure problem with my Intel 5100 wireless card in Arch Linux. I doubt you had the same problem--this post is meant to illustrate the thought process (or lack thereof) while troubleshooting a random issue in Arch Linux.

The Problem

I went about a month without ...


Find and Delete Files Recursively from Linux Command Line

Posted by jason on June 23, 2011, 10:53 a.m.
Tags: linux sysadmin

Here's a basic example of how to find files and delete them, recursively.

find  -name  -exec rm -rf {} \;

That command will look under the directory for all files matching and delete them. Not that you need to escape special characters in the with a backslash.

Play it safe

You ...


Diagnosing Special Character Issues in Mysql

Posted by jason on June 15, 2011, 6:57 p.m.
Tags: mysql sysadmin utf8

Any webmaster who deals with Mysql and some website that uses PHP has probably run into character encoding issues at some point. Whether it's a user copying and pasting from Microsoft Word and getting those "curly quotes", converting a database from latin1 to utf8, importing data from another source ...


Make SSH stop asking for a login password

Posted by jason on June 13, 2011, 10:15 p.m.
Tags: linux sysadmin

Here's how to set things up so that typing "ssh user@host" will just log you in and not ask for a password. You should probably only do this with trusted machines.

  1. Open a terminal
  2. Go to your .ssh folder
  3. cd ~/.ssh
    
  4. Check if you have a 'id_rsa.pub ...