Advanced Search
Search Results
97 total results found
Script - Backup Script for Home Directories and MySQL Databases
#!/bin/sh # Home directory to backup must be absolute path, with trailing slash home_dir='/home/' # Target backup directory, must be absolute path, with trailing slash backup_dir='/backups/' # Database user db_user='root' # Database Password ...
JournalD Administration
Optimizing JournalD Disk Space Usage Edit /etc/systemd/journald.conf and change the following line: SystemMaxUse=200M To check disk space used by journald: journalctl --disk-usage
Linux on Macbook Administration
Blessing the Linux Kernel Boot into Mac Recovery Start terminal and enter: bless --folder /Volumes/ARCH_EFI/EFI/arch/grub/ --file /Volumes/ARCH_EFI/EFI/arch/grub/grubx64.efi Changing Apple keyboards (Macbook or USB) fnmode in Linux Changing it tempo...
Monitor Mode on Broadcom-wl Driver
Enable monitor mode: $ echo 1 > /proc/brcm_monitor0 Enabling monitor mode will create a prism0 network interface. Wireshark and other network tools can use this new prism0 interface. To disable monitor mode: $ echo 0 > /proc/brcm_monitor0
Cheking Printer Ink Level
It can be frustrating sometimes that Linux users aren't able to check the ink levels on our printers like Windows users could, but luckily there are packages that will resolve this problem for major printer manufacturers: Install libieee1284-devel Install ...
Creating War File in Linux
CD to war directory in the project folder Execute jar -cvf .war *
No Sound over Wine
Install lib32-alsa-plugins lib32-libpulse lib32-openal
Slow Loading on Ownloud 8
Change /var/www/html/owncloud/config/config.php database host to 127.0.0.1 instead of localhost
SELinux - Services Blocked by SELinux
SELinux Blocked Apache Access to Files setsebool -P httpd_unified 1sudo /sbin/restorecon -R /var/www/html VSFTPD OOPS Error Issue the following command: setsebool -P ftp_home_dir 1 SSH bind port error permission denied Issue the following command: semanag...
ArchLinux Upgrade Issues
Error: key "ABCDE1282828181" could not be looked up remotely Upgrade archlinux-keyring: pacman -S archlinux-keyring Unable to get past login window after upgrading This is caused by Nvidia driver being upgraded nvidia-dkms: pacman -S nvidia-libgl Failed t...
New ArchLinux Installation Checklist (LXDE)
SSH Key Askpass x11-ssh-askpass Display Manager xorg-xinit lightdm lightdm-gtk3-greeter Screensaver xscreensaver Bluetooth bluez bluez-utils blueman-bluez5-git Network Manager networkmanager network-manager-applet xfce4-notifyd gnome-i...
SSH Tunneling
ssh -p <port> <username>@<remote host> -L <local listening port>:<remote's host ip>:<remote's host port> -N **Note:**Remote's host and port can be any host and port accessible by the remote host, e.g. to access the router w...
Batch Image Resize
Keeping Aspect Ratio mogrify -path [Full path to store the resized images] -resize [width]x[height] -quality [quality] -format [format] *.JPG No Aspect Ratio mogrify -path [Full path to store the resized images] -resize [width]x[height]! -quality [quality] ...
Convert PNG to ICO using ImageMagick
convert logo.png -define icon:auto-resize=64,48,32,16 logo.ico
Sendmail Sample Usage
mail.txt: MIME-Version: 1.0 Content-Type: text/html From: newsletter@shopbah.com Subject: TESTING 123 hehehe <html><head><title>TESTING ONLY BAH</title></head> <body> <strong>Content line</strong> 1 <strong&g...
Windows - Issues
IIS Service Unavailable Error Search for "run" In the run dialog, enter "iisreset" and press run
Windows - Administration References
Windows Server RDP Port Registry Path Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-TcpAttribute name: Port Number Remove Windows License Key To remove the product key from a Windows Server 2008 (R2) follow these ...
Script - MySQL Dump Databases Separated by DB Name
#!/bin/bash DUMP_EXEC="mysqldump" #path to mysqldump MYSQL_EXEC="mysql" #path to mysql MYSQL_USER="root" #db user MYSQL_PASSWORD="" #db password databases="$MYSQL_EXEC -u$MYSQL_USER" if [ "$MYSQL_PASSWORD" ]; then databases="$databases -p$MYSQ...
Getting Cursor Pointer Theme for LXDE
Installing the package xcursor-themes Then go to Preferences > Customize Look and Feel Select your cursor pointer theme under Mouse Cursor tab
LXDE Volume Keybinding
Add the following lines to ~/.config/openbox/lxde-rc.xml: <keybind key="XF86AudioMute"> <action name="Execute"> <command>amixer sset Master toggle</command> </action> </keybind> <keybind key="XF86AudioR...