Boot your Raspberry Pi from a USB mass storage device such as a flash drive or USB hard disk. The Raspberry Pi 3 B+ is able to boot from USB without any changes, but the Raspberry Pi 3 B requires the USB boot bit to be set in the OTP (one-time programmmble) memory. To enable the USB boot bit, the Raspberry Pi 3 needs to be booted from an SD card with a config option to enable USB boot mode. Once this bit has been set, the SD card is no longer required. Note that any change you make to the OTP is permanent andRead More →

FDK-AAC encoder was removed from Handbrake from version 0.10.5 onwards, as it can no longer be publicly distributed due to GPL licensing issues. The default AAC encoder Libav is lacking in quality compared to FDK (especially at lower bitrates) as it is only a basic AAC encoder. Fortunately you can still compile HandBrake from source and enable FDK-AAC as a compile-time option. Fire up Ubuntu 18.04 and open a Terminal Window, you should start in your “Home” directory. sudo apt install autoconf automake bison build-essential bzip2 cmake curl flex gcc git gzip g++ intltool libtool libtool-bin m4 make patch pax pkg-config python tar wget yasmRead More →

Samba has its own user management system. However, any user existing on the samba user list must also exist within /etc/passwd file. If your system user does not exist yet, hence cannot be located within /etc/passwd file, first create a new user using the useradd command before creating any new Samba user. Once your new system user eg. linuxconfig exits, use the smbpasswd command to create a new Samba user: Samba users (sambashare group) sudo smbpasswd -a $USER testparm sudo systemctl restart smbd smbclient -L localhost sudo systemctl status smbdRead More →

The QSV encoder doesn’t have a parameter called CRF. The equivalent ratecontrol method is LA_ICQ. look_ahead should be 1. global_quality can be from 1 to 51. Lower value represents better quality. ~25 should be equivalent to x264 CRF 23. LookAheadDepth, a parameter which specifies the depth of look ahead rate control algorithm. It is the number of frames analyzed before encoding. Valid value range is from 10 to 100. Lookahead is only available on Intel® Iris™ Pro Graphics, Intel® Iris™ Graphics and Intel® HD Graphics on Haswell architecture (4th Generation Core) and forward. Both Interlaced and progressive content is supported. HEVC (10bit): ffmpeg -i input.mp4Read More →

You can configure Postfix MTA to use as a Smarthost i.e. routing all mails to a smarthost. A smarthost can be an external smtpd server provided by SendGrid, AWS, Rackspace, Google apps/Gmail, ISP or your own server in another data center with the help of the relay server. sudo dpkg-reconfigure postfix sudo nano /etc/postfix/main.cf Set myhostname to FQDN ===== myhostname = websrv.example.com # Enable auth smtp_sasl_auth_enable = yes # Set username and password smtp_sasl_password_maps = static:YOUR-SMTP-USER-NAME-HERE:YOUR-SMTP-SERVER-PASSWORD-HERE smtp_sasl_security_options = noanonymous # Turn on tls encryption smtp_tls_security_level = encrypt header_size_limit = 4096000 # Set external SMTP relay host here IP or hostname accepted along with a portRead More →

The good thing about starting a new WordPress website or blog is that you get a chance to set up everything right the first time. When you get it right the first time, there will be no need to go back to fix issues that weren’t setup correctly. sudo apt install php7.2-cgi php7.2-curl php7.2-gd php7.2-xml php7.2-xmlrpc php7.2-mbstring php7.2-zip php7.2-intl php7.2-soap php7.2-ldap sudo nano /etc/php/7.2/apache2/php.ini ===== post_max_size = 100M memory_limit = 256M max_execution_time = 360 upload_max_file_size = 100M date.timezone = Africa/Nairobi ===== sudo nano /etc/apache2/apache2.conf ===== … Directory /var/www/ Options FollowSymLinks AllowOverride All Require all granted ===== sudo nano /etc/apache2/envvars ===== export APACHE_RUN_USER=www-data export APACHE_RUN_GROUP=www-data =====Read More →

By default, pkexec can’t run graphical applications without having a PolicyKit file installed in /usr/share/polkit-1/actions/ for the app you’re trying to run as root, and Ubuntu doesn’t ship with PolicyKit files for Nautilus. wget https://raw.githubusercontent.com/hotice/webupd8/master/org.gnome.nautilus.policy -O /tmp/org.gnome.nautilus.policy sudo cp /tmp/org.gnome.nautilus.policy /usr/share/polkit-1/actions/ nano ~/.local/share/applications/nautilus-root.desktop ===== [Desktop Entry] Name=Files (Root) Comment=Access and organize files as Root Exec=pkexec nautilus –new-window %U Icon=org.gnome.Nautilus Terminal=false # NoDisplay=true Type=Application StartupNotify=true OnlyShowIn=GNOME;Unity; Categories=GNOME;GTK;Utility;Core; MimeType=inode/directory;application/x-gnome-saved-search; X-GNOME-Bugzilla-Bugzilla=GNOME X-GNOME-Bugzilla-Product=nautilus X-GNOME-Bugzilla-Component=general X-GNOME-Bugzilla-Version=3.2.1 X-Ubuntu-Gettext-Domain=nautilus =====Read More →

By default in Ubuntu Linux operating system the root user comes in disabled state for security reason and you can’t login using root. The reason behind this is there is risk of any by mistake changes of any important files or configurations, someone can misuse of this feature and so on. Hence in Ubuntu to do any administrative changes or important changes you can use sudo command. sudo passwd root sudo passwd -u root sudo nano /etc/gdm3/custom.conf ===== [security] AllowRoot=true ===== sudo nano /etc/pam.d/gdm-password ===== # auth required pam_succeed_if.so user != root quiet_success ===== sudo nano /root/.profile ===== # ~/.profile: executed by Bourne-compatible login shells.Read More →

Linux has a big impact on our Lives. At least, your android phone has Linux kernel on it. On Linux, you usually should use terminal commands instead of just clicking the launcher icon (as you did on Windows). But don’t worry, We will give you some basic Linux commands & important commands that will help you get started. sudo apt update sudo apt upgrade sudo apt upgrade –fix-missing sudo apt autoremove timedatectl timedatectl set-local-rtc 1 timedatectl sudo nano /etc/default/grub sudo update-grub wget https://raw.githubusercontent.com/hotice/webupd8/master/org.gnome.nautilus.policy -O /tmp/org.gnome.nautilus.policy sudo cp /tmp/org.gnome.nautilus.policy /usr/share/polkit-1/actions/ pkexec nautilus apt policy php7.2-mcrypt apt policy ffmpeg sudo apt install tasksel sudo tasksel dpkg –get-selectionsRead More →