Archives for Linux - Page 7
Samba troubleshooting commands
Edit /etc/ , add log level =3 Run server in debug mode / -F -S Smb client test smbclient -L //server/sharename -U username Test param testparam -v
Backup & Restore Firewall Rules with iptables – Ubuntu
Save: iptables-save Backup : iptables-save > Restore iptables-restore -c < View Rules: iptables -L
Ubuntu 16.04 PHP 5 , PHP7
Using PHP on Ubuntu LTS Ubuntu has switched to PHP with a new infrastructure for PHP package. So, no, you can’t install php5 on Ubuntu...
Nagios: DISK CRITICAL – /sys/kernel/debug/tracing is not accessible: Permission
If you receive the error above in Nagios, the workaround is to exclude tracefs from the check_disk command. Login to your client server, nano /etc/ find the check_disk...
Ubuntu upgrade some old package from old release – such as SSH
Upgrade the version: sudo apt-add-repository 'deb yakkety main universe multiverse' sudo apt-get update sudo apt-get install openssh-server=1 or we can install from source: wget tar -zxvf ...
List all services Ubuntu
This command will list out all services in Ubuntu: service --status-all To stop / start any service service service_name stop/start
/boot partition is full – Ubuntu – CentOs
#Check the current kernel version uname -a See the list of installed kernels rpm -qa | grep kernel Ubuntu CentOS: apt autoremove --purge #remove all old kernels...
How to receive notification when a SSH connection established
1. Set all ssh account to use bash shell by default , /etc/passwd 2. Make sure that you have install exim or postfix or any other email tool to...
Can’t install software because /boot is full
When you run apt-get install , you got some error this dpkg: dependency problems prevent configuration of linux-server: linux-server depends on linux-image-server (= ); however: Version of linux-image-server on...
ubuntu 16.04 nagios libmysqlclient.so.18
my mysql nagios plugin doesn’t work, tested with this command /usr/lib/nagios/plugins/check_mysql Error error while loading shared libraries: : cannot open shared object file: No such file or directory It’s...