/etc/exports /i-data/60cb70cf 192.168.1.0/24(ro,sync,no_subtree_check,wdelay,no_root_squash) mount NFS share to windows 7 (next drive letter available) mount 192.168.1.31:/i-data/60cb70cf * mount NFS share to windows 7 the Z drive mount 192.168.1.31:/i-data/60cb70cf z: unmount NFS share (–a Unmounts all NFS network drives) umount z: mount […]
Linux
SmartPSS camera viewer
Connecting to a VPN when using UFW https://askubuntu.com/questions/572497/cant-connect-to-pptp-vpn-with-ufw-enabled-on-ubuntu-14-04-with-kernel-3-18 sudo ufw allow proto gre from 86.121.33.88 You might also need to put into /etc/modules-load.d/pptp.conf: nf_conntrack_proto_gre nf_conntrack_pptp
setup your own linux based router
What is all about short story … This post will help you to configure a linux PC in order to function as a router too. long story … If you like me have a very low energy consumption PC (a […]
Compiling google’s mod_pagespeed for nginx
This post is intended mainly to Zyxel NSA310 users. Prerequisites See first https://adrhc.go.ro/blog/common-commands-when-building/ for building environment, x.sh script and other things not defined here. Before starting do declare the environment variables specified to the link above. Environment & other preparations […]
Linux network information
DNS address assigned by DHCP nmcli device show eth0 | grep DNS Gateway address assigned by DHCP nmcli device show eth0 | grep GATEWAY Show active and ofline connections nmcli connection show Load configuration files nmcli con reload nmcli con […]
iptables
iptables processing steps (original image link) Redirect eth0:3240 to 127.0.0.1:32400 sudo sysctl -w net.ipv4.ip_forward=1 sudo sysctl -a | grep ‘net.ipv4.ip_forward’ sysctl net.ipv4.ip_forward -> this reads the value sudo sysctl -w net.ipv4.conf.eth0.route_localnet=1 sudo sysctl -a | grep ‘net.ipv4.conf.eth0.route_localnet’ # you’ll need […]
Linux media conversion
sudo apt install libav-tools webm to mp4 http://askubuntu.com/questions/323944/convert-webm-to-other-formats ffmpeg -i “Jurjak – Bucuresti.webm” -qscale 0 “Jurjak – Bucuresti.mp4” ffmpeg -fflags +genpts -i “Jurjak – Bucuresti.webm” -r 24 “Jurjak – Bucuresti1.mp4” -> change to 24 FPS ffmpeg -i “Jurjak – Bucuresti.webm” […]
Linux hardware information
sources: # http://askubuntu.com/questions/18372/how-can-i-find-out-what-ram-a-computer-system-has RAM sudo lshw -short -C memory sudo lshw -C memory sudo dmidecode -t memory VGA memory sudo dmesg | grep Reserving [ 0.000000] Reserving Intel graphics stolen memory at 0x5ef00000-0x7eefffff compute now using a hexadecimal calculator […]
Linux youtube downloader errors
first, let’s see the youtube-dl error youtube-dl https://www.youtube.com/playlist?list=PLEmVsSEEP5HDTSik5ZSyOWz0qsS1tPos_ [youtube:playlist] PLEmVsSEEP5HDTSik5ZSyOWz0qsS1tPos_: Downloading webpage [download] Downloading playlist: cantece pt copii in germana [youtube:playlist] playlist cantece pt copii in germana: Downloading 6 videos [download] Downloading video 1 of 6 [youtube] dtZ7U7csvcw: Downloading webpage […]
X server and related managers
See also # nice explanation about the entire startx workflow http://unix.stackexchange.com/questions/243195/what-desktop-environment-does-startx-run-and-how-can-i-change-it # explanation about sessions http://askubuntu.com/questions/62833/how-do-i-change-the-default-session-for-when-using-auto-logins # list available desktop environments ls -l /usr/share/xsessions # show current login/display manager cat /etc/X11/default-display-manager # see also lightdm-greeter from Alternatives Configurator: ls -l […]
lsof
What files are open? lsof What process has a particular file open? lsof /path/to/the/file What files in some directory are open? lsof +D /path/to/the/dir What files does some user have open? lsof -u username What files do a group of […]
Linux useful links
wattOS (About page) wattOS Energizes Aging Hardware Non-Linux FOSS: Scripts in Your Menu Bar! VMware ESXi 6.0 / N3150 / J3160 ITX – Braswell platform http://mobiletiger.jorba.de/vmware-esxi-6-0-n3150-itx-intel-celeron-braswell-platform-problem-solved/
Plex Transcoding with low cost slow CPU
I have Ubuntu 16.04.1 LTS on this low power SoC board Asrock N3150DC-ITX with N3150 CPU: http://ark.intel.com/products/87258/Intel-Celeron-Processor-N3150-2M-Cache-up-to-2_08-GHz According to https://support.plex.tv/hc/en-us/articles/201774043-What-kind-of-CPU-do-I-need-for-my-Server– (see The Guideline) I quote: Very roughly speaking, for a single full-transcode of a video, the following PassMark scores are […]
Transmission on Ubuntu
Important files /etc/init.d/transmission-daemon -> SysV service /etc/default/transmission-daemon -> run by /etc/init.d/transmission-daemon /****/.config/transmission-daemon -> CONFIG_DIR in /etc/default/transmission-daemon /****/.config/transmission-daemon/settings.json User and Group running transmission-daemon change to desired ones (e.g. USER=****) in /etc/init.d/transmission-daemon
Boost website performance
install ab command sudo apt install apache2-utils ### configure /etc/sysctl.conf: # Uncomment the next line to enable TCP/IP SYN cookies # See http://lwn.net/Articles/277146/ # Note: This may impact IPv6 TCP sessions too net.ipv4.tcp_syncookies=0 # https://linux.die.net/man/5/proc # https://www.kernel.org/doc/Documentation/sysctl/fs.txt fs.file-max = 6815744 […]