linux_troubleshooting
============================= vi .bashrc for Coller================
- # You may uncomment the following lines if you want `ls' to be colorized:
- export LS_OPTIONS='–color=auto'
- eval “`dircolors`”
- alias ls='ls $LS_OPTIONS'
- alias ll='ls $LS_OPTIONS -l'
- alias l='ls $LS_OPTIONS -lA'
- #
- # Some more alias to avoid making mistakes:
- alias rm='rm -i'
- alias cp='cp -i'
- alias mv='mv -i'
- Restart
source ~/.bashrc
* »»»>time setting troubleshooting««««««<
- date –set 13:33:50
- date –set “06 Aug 2017 11:50:44”
- hwclock –systohc –localtime
- dpkg-reconfigure tzdata »»> UI Time set
- —————Centos——————–
- sudo sed -i -e “s/^;date\.timezone =.*$/date\.timezone = 'Asia/Dhaka'/” /etc/php5/apache2/php.ini
- ln -s /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
- timedatectl set-timezone /Asia/Dhaka
sudo timedatectl set-timezone Asia/Dhaka sudo rm -rf /etc/localtime sudo ln -s /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
## Disabled IPv6
echo “1” > /proc/sys/net/ipv6/conf/all/disable_ipv6
## Enabled Only ETH0
echo “0” > /proc/sys/net/ipv6/conf/eth0/disable_ipv6
Remove & purge
- apt-get remove –purge mysql\*
- apt-get remove –purge mariadb\*
- sudo apt-get autoremove
- sudo dpkg –configure -a
- sudo apt-get install -f
- apt-get remove –purge mysql-server mysql-client mysql-common
- sudo apt-get remove –purge “^mysql.*”
- sudo apt-get autoremove
- sudo apt-get autoclean
- sudo rm -rf /var/lib/mysql
- sudo rm -rf /var/log/mysql
linux_troubleshooting.txt · Last modified: 2023/03/06 11:31 by 127.0.0.1