apt update && sudo apt upgrade -y
apt install -y curl wget git unzip
MySQL Installation
apt install -y mysql-server
mysql_secure_installation
Would you like to setup VALIDATE PASSWORD plugin? N
New password: your_secure_password
Re-enter new password: your_secure_password
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y
mysql -u root -p
mysql> CREATE DATABASE dbname;
mysql> GRANT ALL ON dbname.* TO 'username' IDENTIFIED BY 'password';
mysql> FLUSH PRIVILEGES;
mysql> exit
2019/05/20
2019/02/15
My Grub2 boot menu for Ubuntu USB bootable drive (compatible with macOS machine)
insmod png
set timeout=9
if loadfont /boot/grub/font.pf2 ; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
fi
if background_image /Tokyo.png ; then
set color_normal=white/black
set menu_color_normal=white/black
set menu_color_highlight=yellow/black
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi
set timeout=9
if loadfont /boot/grub/font.pf2 ; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
fi
if background_image /Tokyo.png ; then
set color_normal=white/black
set menu_color_normal=white/black
set menu_color_highlight=yellow/black
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi
2018/10/08
How to install Gitlab 11 on Ubuntu 18.04
apt update
apt install -y curl openssh-server ca-certificates postfix
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
apt install gitlab-ce
Open browser and type http://localhost to open web page
Change your root password and login
enjoy~
apt install -y curl openssh-server ca-certificates postfix
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
apt install gitlab-ce
Open browser and type http://localhost to open web page
Change your root password and login
enjoy~
2018/07/29
My Grub2 Menu Config
insmod png
insmod part_msdos
insmod fat
insmod ntfs
insmod ext2
set root='hd0,msdos1'
set timeout=10
if loadfont /boot/grub/fonts/unicode.pf2 ; then
set gfxmode=1024x768
insmod efi_gop
insmod efi_uga
insmod vbe
insmod vga
insmod gfxterm
terminal_output gfxterm
fi
if background_image /boot/grub/sakura.png ; then
set color_normal=light-gray/black
set menu_color_normal=black/black
set menu_color_highlight=green/dark-gray
else
set color_normal=white/black
set menu_color_normal=white/black
set menu_color_highlight=green/dark-gray
fi
insmod part_msdos
insmod fat
insmod ntfs
insmod ext2
set root='hd0,msdos1'
set timeout=10
if loadfont /boot/grub/fonts/unicode.pf2 ; then
set gfxmode=1024x768
insmod efi_gop
insmod efi_uga
insmod vbe
insmod vga
insmod gfxterm
terminal_output gfxterm
fi
if background_image /boot/grub/sakura.png ; then
set color_normal=light-gray/black
set menu_color_normal=black/black
set menu_color_highlight=green/dark-gray
else
set color_normal=white/black
set menu_color_normal=white/black
set menu_color_highlight=green/dark-gray
fi
My Grub4Dos menu list v4.6a
color white/black white/black white/black white/black
timeout 10
default 0
color border=0x000000
graphicsmode -1 1024:768
splashimage /night.bmp
title [1]SPFDISK
find /IMG/SPFDISK.IMG
map /IMG/SPFDISK.IMG (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title [2]Ghost 3in1
find /IMG/GHOST.IMG
map /IMG/GHOST.IMG (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
timeout 10
default 0
color border=0x000000
graphicsmode -1 1024:768
splashimage /night.bmp
title [1]SPFDISK
find /IMG/SPFDISK.IMG
map /IMG/SPFDISK.IMG (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title [2]Ghost 3in1
find /IMG/GHOST.IMG
map /IMG/GHOST.IMG (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
2018/07/06
How to install MRBS on Ubuntu 16.04
1.Install LAMP (Ubuntu Installation Process)
2.sudo su
3.apt update
4.apt install -y phpmyadmin
5.cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
6.service apache2 restart
7.wget https://sourceforge.net/projects/mrbs/files/mrbs/MRBS%201.7.1/mrbs-1.7.1.tar.gz
8.tar zxvf mrbs-1.7.1.tar.gz
9.cd mrbs-1.7.1
10.cp -r web/ /var/www/html/mrbs/
11.nano /var/www/html/mrbs/config.inc.php (Check and modify config)
$timezone = "Asia/Taipei";
$dbsys = "mysql";
$db_host = "localhost";
$db_database = "mrbs";
$db_login = "dbuser";
$db_password = 'dbuserpassword';
12.mysql -uroot -p mrbs < tables.my.sql (import db tables)
13.Launch web browser and enter http://localhost/mrbs to go
2.sudo su
3.apt update
4.apt install -y phpmyadmin
5.cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
6.service apache2 restart
7.wget https://sourceforge.net/projects/mrbs/files/mrbs/MRBS%201.7.1/mrbs-1.7.1.tar.gz
8.tar zxvf mrbs-1.7.1.tar.gz
9.cd mrbs-1.7.1
10.cp -r web/ /var/www/html/mrbs/
11.nano /var/www/html/mrbs/config.inc.php (Check and modify config)
$timezone = "Asia/Taipei";
$dbsys = "mysql";
$db_host = "localhost";
$db_database = "mrbs";
$db_login = "dbuser";
$db_password = 'dbuserpassword';
12.mysql -uroot -p mrbs < tables.my.sql (import db tables)
13.Launch web browser and enter http://localhost/mrbs to go
2018/06/21
IBM AIX 5.3 Disk and File Check Command
List Disk Partition
host:/> df
List Large Files >1GB
host:/> find . -type f -size +1073741824c -exec ls {} \;
host:/> df
List Large Files >1GB
host:/> find . -type f -size +1073741824c -exec ls {} \;
訂閱:
文章 (Atom)