>
Currently Browsing: System Configuration

Install Latest Git on CentOS

Setup RPMForge Repository $ wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm $ rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt $ rpm -K rpmforge-release-0.5.3-1.el6.rf.*.rpm $ sudo rpm -i rpmforge-release-0.5.3-1.el6.rf.*.rpm Disable CentOS Base Repository and Enable RPMForge Extras $ cd /etc/yum.repos.d/ $ sudo vi CentOS-Base.repo Add enabled = 0 [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ enabled = 0...
read more

Linux: How to Identify 32bit vs. 64bit

For the CPU: Using lscpu: 64bit $ lscpu | grep op-mode CPU op-mode(s): 32-bit, 64-bit 32bit $ lscpu | grep op-mode CPU op-mode(s): 32-bit or check /proc/cpuinfo for the tm/lm flags. If lm exists it supports 64bit. If only tm exists, it only supports 32bit. 64bit $ grep -w lm /proc/cpuinfo flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm dts tpr_shadow vnmi flexpriority...
read more

Set Timezone in Raspbian

Run sudo dpkg-reconfigure tzdata
read more

Using Git for DNS and DHCP Config Files

# sudo yum install git-core # git init Initialized empty Git repository in /.git/ # git add /var/named/chroot/var/named/zones/* # git commit -m 'Added DNS zone files' [master (root-commit) a8418bf] Added DNS zone files Committer: root <root@liminf03.motion.com> Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly: git config –global user.name “Your Name” git config –global user.email you@example.com After doing this, you may fix the...
read more

GMail as smartrelay on Ubuntu

Setting up GMail as a relay in Postfix always seems to be an issue with me. Here’s a quick overview of the process: Install Postfix (if not already installed) Configure Postfix (if no main.cf exists). Use: sudo dpkg-reconfigure postfix Generate CSR, in /etc/postfix/certs /usr/lib/ssl/misc/CA.pl -newca openssl genrsa -out itchy.key 1024 openssl req -new -key itchy.key -out itchy.csr openssl ca -out itchy.pem -infiles itchy.csr Edit main.cf relayhost = [smtp.gmail.com]:587 #auth smtp_sasl_auth_enable=yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd #tls smtp_use_tls = yes...
read more

Next Entries »