Start MongoDB from command line
To start MongoDB from command line, run mongod –auth –dbpath /path/to/mongodb See MongoDB
To start MongoDB from command line, run mongod –auth –dbpath /path/to/mongodb See MongoDB
To install SSL certificate for Zimbra Mail Server, login to server, switch to user zimbra Now create file commercial.key, paste your Private key. In commercial.crt, paste your SSL certificate. Create commercial_ca.crt with content of your ca-bundle file. Verify SSL cerificate If SSL verified sucessfully, you can install it with command To make SSL active, you … Read more
To change shell for a user, run chsh –shell PATH_TO_SHELL USERNAME Example chsh –shell /bin/bash okadmin I will add a user, if no shell specified, it use sh as shell. root@lab:~# useradd okadmin root@lab:~# su – okadmin No directory, logging in with HOME=/ $ echo $SHELL /bin/sh $ exit root@lab:~# chsh –shell /bin/bash okadmin root@lab:~# … Read more
To identify if you are using 32 bit or 64 bit Linux OS, run command arch. boby@sok-01:~$ arch x86_64 boby@sok-01:~$ You can also use uname command boby@sok-01:~$ uname -i x86_64 boby@sok-01:~$ Another way is to use hostnamectl command and look for “Architecture”. boby@sok-01:~$ hostnamectl Static hostname: sok-01 Icon name: computer-desktop Chassis: desktop Machine ID: 70486772aac1410c9a8031851ab60a0d … Read more
aplay sudo alsa force-reload vi /etc/modprobe.d/alsa-base.conf Show Sound Devices boby@fwhlin:~$ cat /proc/asound/cards 0 [Intel ]: HDA-Intel – HDA Intel HDA Intel at 0xfb9f8000 irq 75 1 [HDMI ]: HDA-Intel – HDA ATI HDMI HDA ATI HDMI at 0xfbcfc000 irq 76 boby@fwhlin:~$ boby@boby-pc ~ $ cat /proc/asound/card0/codec* | grep Codec Codec: Realtek ALC892 boby@boby-pc ~ $ … Read more
General System stracelsoflspci Networking nmtui – configure networking Disk/Storage blkid – show UUID for disks.vgcreate Load
# strace -p 17723 -bash: strace: command not found # This is because strace not installed on the server. Install it with yum # yum install strace Loading “installonlyn” plugin Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies –> Populating transaction set with … Read more
strace command is used to trace system calls. This is useful to see what a process is doing. To see what a process doing, run To run a command and strace Debug apache start up log strace out put to a file when running a command
When installing a software from source, i get error configure: error: can’t find pcap.h You’re not going to get very far without libpcap. To fix this on CentOS 7 server, run yum -y install libpcap libpcap-devel
To scan a folder, run -r will scan sub folders too. To Scan a Folder (Only Show Infected) To exclude a folder from search, use See clamav
Install clamav on Ubuntu Scan a folder with clamscan Install clamav Antivirus on CentOS 7 How to install ClamAV on cPanel Server
clamav is a free open source antivirus. To install clamav on Ubuntu/Debian, run apt install clamav -y To update ClamAV virus definitions, run freshclam To scan a folder for virus/malware, see Scan a folder with clamscan