Configure directory for incoming files does not exist ... blueman-services
problem:
Cannot due grayed out. Rage.
solution:
gsettings set org.blueman.transfer shared-path '/home/USERNAME/Downloads/'
I love SublimeText! With features like Ctrl-D, Multi-Cursor, and RegEx-Search&Replace, it’s just the best editor ever. Add tools from PackageControl.io and it’s unbeatable. Yes, Atom is probably on-par (plus it’s free), but I’ve already acclimated to ST and that’s just how it is.
But sometimes i just prefer/need to edit in the shell. Almost always, i use nano
; However, when you suddenly need something more powerful, it’s back to SublimeText.
I had known about slap-edit, but it’s just too slow, especially through ssh tunnels.
Enter Suplemon! Wow, it’s a great CLI editor to supplement your workflow. If you already have python
and pip
, then just sudo pip3 install suplemon
- -That’s it. Launch suplemon
and check it out.
Yes, I know everyone will say “Vim”, but i don’t have time be that good.
~~~
Written with StackEdit.
~/.lastpass
folder. I did so, but without resolve.~/.mozilla/firefox/YOURPROFILE/storage/permanent/indexeddb+++support-at-lastpass-dot-com/
, and ~/.mozilla/firefox/YOURPROFILE/jetpack/support@lastpass.com/
lastpass.com
and *.lastpass.com
in my cookies cleaner. In addition to Privacy > History > Keep Until they Expire.Edit(Tools) > Preferences(Options) > Privacy > History > Settings >
[UN-CHECK] Offline Website data
[UN-CHECK] Cookies
sudo apt install gpac ffmpeg
MP4Box -splitx ss:ss input.mp4 -out output.mp4
, where ss:ss
are numerical values for start-seconds and stop-seconds. (Fastest, does not transcode)ffmpeg -i input.mp4 -ss hh:mm:ss -t hh:mm:ss -async 1 output.mp4
, where hh:mm:ss
are numerical values for hours, minutes, seconds.ffmpeg -i input.mp4 -vf trim=ss:ss output.mp4
, where ss
is a numerical value for seconds.function to_sec() { echo "$1" | awk -F':' '{if (NF == 2) {print $1 * 60 + $2} else {print $1 * 60 * 60 + $2 * 60 + $3}}'; }
Usage examples: to_sec 2:47
or to_sec 1:2:47
or $(to_sec 2:47)
or MP4Box -splitx $(to_sec 2:47):$(to_sec 7:33) input.mp4 -out output.mp4
ffmpeg -i input.mp4 \
-i logo.png \
-filter_complex "X:Y" \ # set logo position
-codec:a copy \ # just copy audio
output.mp4
where X:Y is the horizontal and vertical pixel positioning.ffmpeg -i input.mp4 \
-ignore_loop 0 -i animated-logo.gif \ # do not ignore looping
-filter_complex "X:Y:shortest=1" \ # limit to input video length
-codec:a copy \
output.mp4
where :shortest=1
is required, and where X:Y
is the horizontal and vertical pixel positioning. Without shortest
, the video transcoding will not end.main_w-overlay_w-10:10
10:10
10:main_h-overlay_h-10
main_w-overlay_w-10:main_h-overlay_h-10
ffmpeg -ss x -i input.mp3 -codec:a copy output.mp3
, where x is a numerical value for seconds.ffmpeg -i input.mp4 -i audio.mp3 -codec copy -shortest output.mp4
ffmpeg -i input.mov \
-i logo.png \
-filter_complex "overlay=main_w-overlay_w-10:10" \
-i music.mp3 -codec:a copy \
-shortest output.mov
As always, good luck!$ sudo aptitude purge docker docker.io
The following packages will be REMOVED:
docker.io{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Do you want to continue? [Y/n/?]
(Reading database ... 386398 files and directories currently installed.)
Removing docker.io (1.13.1-0ubuntu1~17.04.1) ...
Purging configuration files for docker.io (1.13.1-0ubuntu1~17.04.1) ...
Nuking /var/lib/docker ...
(if this is wrong, press Ctrl+C NOW!)
+ sleep 10
/var/lib/docker/nuke-graph-directory.sh: 64: /var/lib/docker/nuke-graph-directory.sh: shopt: not found
dpkg: error processing package docker.io (--purge):
subprocess installed post-removal script returned error exit status 127
Errors were encountered while processing:
docker.io
E: Sub-process /usr/bin/dpkg returned an error code (1)
It gives a hint: /var/lib/docker
, so:$ # This will erase all your container images
$ sudo rm -rf /var/lib/docker
$ sudo aptitude purge docker.io
The following packages will be REMOVED:
docker.io{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Do you want to continue? [Y/n/?]
(Reading database ... 386398 files and directories currently installed.)
Removing docker.io (1.13.1-0ubuntu1~17.04.1) ...
Purging configuration files for docker.io (1.13.1-0ubuntu1~17.04.1) ...
dpkg: warning: while removing docker.io, directory '/etc/docker' not empty so not removed
It gave another hint: '/etc/docker' not empty so not removed
, so:$ # This will erase all docker configs
$ sudo rm -rf /etc/docker/
$ sudo aptitude purge docker.io
Package docker.io is not installed, so it will not be purged
Package docker.io is not installed, so it will not be purged
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Written with StackEdit.
@daily cd /home/USERNAME/Downloads && /usr/bin/curl -L -o firefox-latest-linux64.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US" && tar xvf firefox-latest-linux64.tar.bz2 -C /opt/ && rm firefox-latest-linux64.tar.bz2 && ln -sf /opt/firefox/firefox /usr/bin/firefox
cd ~/Downloads
curl -L -o firefox-56.0.2.tar.bz2 "https://download.mozilla.org/?product=firefox-56.0.2-ssl&os=linux64&lang=en-US"
sudo tar xvf firefox-56.0.2.tar.bz2 -C /opt/ && sudo ln -sf /opt/firefox/firefox /usr/bin/firefox
Written with StackEdit.
member
property of the get-adgroup
cmdlet.Debian Repository Generator: https://debgen.simplylinux.ch/
Ubuntu Repository Generator: https://repogen.simplylinux.ch/
~~~
Problem: Active Directory Group Policy Logon Script to Map Drive fails to execute when applied to specified A.D. Group.
Likely Cause: The GPO “Security Filtering” must also include computers, not just the Groups.
Solution: Set the “Security Filtering” to include “Domain Computers” as well as the desired user groups.
Recently, I replaced two old RHEL5 DNS BIND (named
) servers to RHEL7. Essentially, I took the easy route and used WebMin config backups to setup the new servers. However, i did come across some easily resolvable issues.
–
Problem: I want to replace named
with chroot-named
Solution:
yum -y install bind-chroot
systemctl stop named
systemctl disable named
/usr/libexec/setup-named-chroot.sh /var/named/chroot on
mkdir /var/named/chroot/var/named/data
chown named:named /var/named/chroot/var/named/data
systemctl enable named-chroot
systemctl start named-chroot
–
Problem: Job for named-chroot.service failed because the control process exited with error code.
Solution: you need to mkdir/chown data
directory as described above.
You can get additional service status info with journalctl -xe -u named-chroot
–
Problem: zones aren’t being transferred or files are access-denied (as seen with with the above journalctl
command )
Solution:
#DNS1 (optional?)
scp -p /var/named/chroot/var/named/*.{rev,hosts} root@DNS2:/var/named/chroot/var/named/slaves/
#DNS2
chown -R root:named /var/named/chroot/var/named/slaves/
chmod 770 /var/named/chroot/var/named/slaves/
chmod 660 /var/named/chroot/var/named/slaves/*
~~~
Written with StackEdit.
sudo aptitude install flashplayer-mozilla
I had to write a custom bash launch script for a local machine, but wanted it to do one thing if the shift-key
was pressed and another thing if it was not.
After searching, i found that bash is NOT capable of such a thing. However, there was a short and simpe C implementation found here: https://forums.gentoo.org/viewtopic-p-2455159.html#2455159
So after compiling the code (gcc shift_state.c -o shift_state ; chmod +x shift_state
) and explicitly running it under sudo
(required to access /dev/console
), i found it did exactly what was needed.
So the only problem remaining was i didn’t want to run my bash script with sudo
. To circumvent such, i ran sudo visudo
and added the line myusername ALL=(ALL) NOPASSWD: /home/myusername/scripts/shift_state
which would allow me to run sudo ~/scripts/shift_state
without entering my password.
Subsequently, it was easy to implement a bash script as needed.
Code:But wait, there's more!
Such could also be used to customize your XFCE Panel-based launch-bar. (Or any launch-bar for that matter.) For instance, In the past, I've created a panel item for Sublimetext. This is a "Launcher" item with two sublimetext commands, one launches and another launches with the -n
parameter for a new window. However, it looks ugly and a bit cumbersome to launch:
With the shift_state method, I have replaced the Launcher commands with a single command: bash -c "if ! (( $(sudo ~/scripts/shift_state) )) ; then /opt/sublime_text/sublime_text %F ; else /opt/sublime_text/sublime_text -n %F ; fi"
. Now it looks better without a secondary command-arrow, and when I shift-click to launch, it provides me the same function in a quicker workflow way.
~~~
As Always, Good Luck! You can thank me with bitcoin.Written with StackEdit.
Free Versions of | Hamachi | ZeroTier-One |
---|---|---|
Nodes per network | 5 | 100 |
Bandwidth | Low | High |
Dropped Connection | Often | Rare † |
IP Assignment | Auto-assigned | Auto-assigned or Static |
IPv4 Subnets | 25.*.*.* | 10.147.17.* 10.147.18.* 10.147.19.* 10.147.20.* 10.144.*.* 10.241.*.* 10.242.*.* 10.243.*.* 10.244.*.* 172.22.*.* 172.23.*.* 172.24.*.* 172.25.*.* 172.26.*.* 172.27.*.* 172.28.*.* 172.29.*.* 172.30.*.* 192.168.191.* 192.168.192.* 192.168.193.* 192.168.194.* 192.168.195.* 192.168.196.* |
IPv6 | yes | RFC4193 (/128) & 6PLANE (/80) |
Traffic Filtering | Client Firewall | Custom traffic and protocol (“Flow”) rules with v1.2.x |
SourceCode | Closed Source | Open Source and freedom loving |
Free Support | Forums; but often goes unanswered | Support button on website, Knowledge-Base, and Forums; Super responsive |
$ sudo aptitude purge logmein-hamachi~~~~~~~~~~~
The following packages will be REMOVED:
logmein-hamachi{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 2,867 kB will be freed.
Do you want to continue? [Y/n/?] YYYYYYY
(Reading database ... 105225 files and directories currently installed.)
Removing logmein-hamachi (2.1.0.86-1) ...
Stopping LogMeIn Hamachi VPN tunneling engine logmein-hamachi *
Removing any system startup links for /etc/init.d/logmein-hamachi ...
/etc/rc0.d/K49logmein-hamachi
/etc/rc1.d/K49logmein-hamachi
/etc/rc2.d/S11logmein-hamachi
/etc/rc3.d/S11logmein-hamachi
/etc/rc4.d/S11logmein-hamachi
/etc/rc5.d/S11logmein-hamachi
/etc/rc6.d/K49logmein-hamachi
Purging configuration files for logmein-hamachi (2.1.0.86-1) ...
Current status: 5796 new [-1].
$ echo "joy"
Partially written with StackEdit.
PS> Install-Module -Name VMware.PowerCLI -Confirm:$false -Scope AllUsers -AllowClobber -Force
Find-Module "VMWare.*" | Update-Module -Verbose
Import-Module VMware.VimAutomation.Core
[...] -Scope AllUsers
Update-Help
(Get-Module VMware.PowerCLI -ListAvailable).RequiredModules | Uninstall-Module -Force
Get-Module VMware.PowerCLI -ListAvailable | Uninstall-Module -Force
Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:443
.conf
files have Listen 443
or <VirtualHost _default_:443>
in them./etc/httpd/httpd.conf
or other /etc/httpd/conf.d/*.conf
files making sure you don’t have two files requesting port 443. It seems recent Apache versions are more strict and will fail to run, whereas older versions did not complain. Technically, I just the renamed /etc/httpd/conf.d/ssl.conf
to /etc/httpd/conf.d/ssl.conf.OFF
so that my actual /etc/httpd/conf.d/live_ssl.conf
file was used.Problem:
a stop job is running for ifup
a stop job is running for NetworkManager
Why:
Debian Jessie and jessie-backports systemd versions 2.15 and 2.30 respectively have a small bug that stalls shutdown.
Tentative Solution: (i.e. unofficial; your mileage may vary)
edit /etc/systemd/system/network-online.target.wants/networking.service
, replacing
ExecStop=/sbin/ifdown -a --read-environment
with
ExecStop=/sbin/ifdown -a --read-environment --force --ignore-errors
and also
TimeoutStopSec=5min
with
TimeoutStopSec=5s
~~~
override_utf8_locale yes
override_utf8_locale = true,
Install docker on your debian jessie workstation without unnecessary cgroupsfs-mount, mountall, and plymouth recommended dependencies.
Reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783143
Prerequisite: jessie-backports. Configure jessie-backports or the riskier unstable “sid” repositories before proceeding.
sudo aptitude install aufs-tools libnih-dbus1 libnih1 makedev git
sudo aptitude install -t jessie-backports --without-recommends docker.io
This should work, but be aware aptitude show docker.io
shows these are required also:
Depends: adduser, iptables, init-system-helpers (>= 1.18~), perl, libapparmor1 (>= 2.6~devel),
libc6 (>= 2.14), libdevmapper1.02.1 (>= 2:1.02.90), libsqlite3-0 (>= 3.5.9)
Now add your user account to the docker group; otherwise you will receive the error “permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?”
sudo gpasswd -a $USER docker
( same as sudo usermod -a -G docker $USER
)
Logout and re-login. Potentially, you could also exec su -l $USER
Now start docker and set it enabled by default.
sudo systemctl enable docker
sudo systemctl start docker
Now install your preferred containers
docker pull vmware/powerclicore
~ ~ ~
Docker : “permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?”, when docker pull
solution: add username to group docker, logout and relogin ; make certain the service is running
sudo groupadd docker
sudo gpasswd -a $USER docker
(same as sudo usermod -a -G docker $USER
)
Logout and re-login. Potentially, you could also exec su -l $USER
sudo cystemctl start docker
sudo cystemctl enable docker
#if you want it enabled by default
~ ~ ~
Persistent PowerShell CommandLine History
via https://github.com/lzybkr/PSReadLine (& https://technet.microsoft.com/en-us/library/bb613488(v=vs.85).aspx)
TL;DR :
Win10 install module:
Install-Module PSReadline
edit* system’s powershell profile:
notepad c:\windows\system32\WindowsPowerShell\v1.0\profile.ps1
to the end of the file, add:
Import-Module PSReadline
restart powershell
*(never use notepad, use https://www.sublimetext.com/ + https://packagecontrol.io/ instead)