01 January
2020

new year greetings

2020 A Happy New Year!!
[info] 

お世話になりました皆様

昨年もいろいろと 有り難うございました
本年もまた どうぞ宜しく御願い致します
___________________________
Unchor, Inc. / 01 Jan. 2020


Posted by unchor at 09:51
12 May
2019

[ubuntu] setup & configurations

also on the old linux box

■version

uname -a
cat /etc/os-release


■hostname
vi /etc/hostname
vi /etc/hosts
hostnamectl
hostname


■更新
apt update
apt upgrade
apt dist-upgrade
apt autoremove
apt autoclean


■listen
netstat -lnt


■logwatch
apt-get install logwatch


■firewall (Uncomplicated FireWall)
ufw status verbose
ufw app list
ufw enable
ufw allow 'Apache Full'
ufw status numbered


■時刻系
date
timedatectl
apt-get install ntp
timedatectl
ntpq -p


■postfix
apt-get install postfix
apt install mailutils
postconf | grep mail_version
postqueue -p


■apache
apt install apache2
a2enmod ssl
service apache2 restart
apt-get install letsencrypt python-letsencrypt-apache
letsencrypt --apache


■bind
apt-get install -y bind9


■aide
apt install aide
cd /var/lib/aide
aide.wrapper --init
cp -p /var/lib/aide/aide.db.new /var/lib/aide/aide.db


Posted by unchor at 10:54 | Comments (0)
05 May
2019

[src build] old GCC compile

also on the old linux box

■gcc-4.6.4

tarx gcc-4.6.4.tar.gz
cd gcc-4.6.4
./contrib/download_prerequisites
cd ..
mkdir build
cd build
../gcc-4.6.4/configure --prefix=/usr/local/gcc-4.6.4 --enable-languages=c,c++,objc --disable-bootstrap
/usr/local/bin/make
/usr/local/bin/make install

vi ~/.bashrc
export PATH="/usr/local/gcc-4.6.4/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/gcc-4.6.4/lib:$LD_LIBRARY_PATH"
source ~/.bashrc

gcc -v
g++ -v


Posted by unchor at 18:39 | Comments (0)
01 March
2019

[src build] old GCC compile

also on the old linux box

■gcc-4.4.7

cd gcc-4.4.7
cp -p ../download_prerequisites ./contrib/
./contrib/download_prerequisites
# cd ..
# mkdir build
# cd build
../gcc-4.4.7/configure --prefix=/usr/local/gcc-4.4.7 \
--enable-languages=c,c++,objc \
--disable-bootstrap
# --disable-multilib
/usr/local/bin/make
/usr/local/bin/make install

vi ~/.bashrc
export PATH="/usr/local/gcc-4.4.7/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/gcc-4.4.7/lib:$LD_LIBRARY_PATH"
source ~/.bashrc


Posted by unchor at 17:35 | Comments (0)