skip to main
|
skip to sidebar
My Tech Tip
Monday, June 16, 2014
Build RPM Source
rpmbuild --rebuild package-src.rpm
Install rpmbuild:
yum install rpm-build
Wednesday, April 30, 2014
Certificate for HTTPS Server
1- Create private/public keys
openssl genrsa -out prv.key 2048
2- Create certificate request
openssl req -new -key prv.key -out cert.csr
3- Create self-signed root authority certificate
openssl req -new -x509 -days 1826 -key prv.key -out ca.crt
4- Sign the certificate request (csr file)
openssl x509 -req -in cert.csr -CA ca.crt -CAkey prv.key -CAcreateserial -out signedCert.crt -days 500
Please note I used same private key for both CA and certificate, that can be different.
To deploy signed certificate the private key and signed certificated should be copied to proper location and configuration.
Tuesday, April 15, 2014
Creating Local Repository in RedHat
Install
createrepo
Make repository directory and put RPMs there
createrepo /path/to/RPMS
Create repo file
/etc/yum.repos.d/local.repo
[local]
name=Local Repository Demo
baseurl=file:///absolute/path/to/RPMS
enabled=1
gpgcheck=0
protect=1
Wednesday, April 9, 2014
Running 32 bits Binary in Linux 64
It usually shows the problem as complaining about ld-linux.so not found.
Installing glib 32 bit version solve the problem.
In RHEL:
yum install glibc.i686
It is better to define original installation dvd as a repo and use it to install.
RHEL Add Local DVD as Reporsitry
Touch /etc/yum.repose.d/rhe-dvd.repo
Add The following inside:
[rhel-dvd]
name=Red Hat Enterprise Linux $releasever - $basearch - DVD
baseurl=file:///mnt/dvdrom/
enabled=1
gpgcheck=0
/mnt/dvdrom supposed to be mount point of DVD
Add Sudoer
Platform: RHEL
Config File: /etc/sudoers
Add username as the following format:
user
MACHINE=COMMANDS
like
username ALL=(ALL) ALL
Sunday, March 9, 2014
Generate a Date Range in MySQL
Set @i:=0;
SELECT DATE(DATE_ADD( '2014-03-01' - INTERVAL 1 DAY, INTERVAL @i:=@i+1 DAY ) ) AS datesSeries
FROM `CS3_Statistics`.`HC_Report`, (SELECT @i:=0) r
where @i < DATEDIFF( '2014-03-07' + INTERVAL 1 DAY, '2014-03-01' )
;
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
Cats
AES
apt
arduino
Bouncycastle
C
Cisco
CSS
Dialogic
DNS
docker
Encryption
Flexbox
git
gradle
grails
Groovy
hibernate
HTML
IN
iOS
IP
IPTables
Java
JavaScript
JAXP
JBoss
JDBC
Linux
LVM
MAAS
maven
metadevice
MySQL
MySQL-Proxy
Network
Office
OpenSSL
Oracle
pidCrypt
postfix
Python
rails
raspberrypi
Remote Admin
Replication
repository
REST
RHEL
Roo
RSA
ruby
Script
Security
sendmail
SigTran
smpp
Solaris
Spring
Spring Security
SQLServer
SS7
Swagger
Swift
Unix
Utility
VBA
VC++
Windows
Xcode
XERCES
XML
ZFS
Blog Archive
▼
2020
(2)
▼
October
(1)
Simple Javascript Log Function
►
March
(1)
►
2019
(3)
►
November
(1)
►
October
(2)
►
2018
(1)
►
October
(1)
►
2017
(2)
►
June
(1)
►
January
(1)
►
2016
(16)
►
December
(2)
►
November
(3)
►
October
(2)
►
August
(1)
►
July
(1)
►
June
(3)
►
May
(1)
►
January
(3)
►
2015
(20)
►
October
(4)
►
September
(1)
►
June
(1)
►
May
(2)
►
April
(4)
►
March
(5)
►
February
(1)
►
January
(2)
►
2014
(11)
►
October
(2)
►
August
(1)
►
July
(1)
►
June
(1)
►
April
(5)
►
March
(1)
►
2013
(23)
►
October
(1)
►
September
(1)
►
August
(1)
►
June
(2)
►
May
(2)
►
April
(5)
►
February
(7)
►
January
(4)
►
2012
(7)
►
July
(1)
►
June
(2)
►
April
(1)
►
March
(1)
►
February
(2)
►
2011
(2)
►
October
(1)
►
February
(1)
►
2010
(2)
►
November
(1)
►
April
(1)
►
2008
(25)
►
August
(3)
►
July
(1)
►
May
(4)
►
April
(7)
►
February
(4)
►
January
(6)
►
2007
(29)
►
December
(11)
►
November
(8)
►
October
(10)