Archive for the ‘Linux’ Category
Posted by jpluimers on 2016/04/11
Manually you can do it like this: How To Use Git to Manage your User Configuration Files on a Linux VPS | DigitalOcean.
But there is also etckeeper. There is even a set of manual installation steps for opensuse: backup – etckeeper for opensuse – bash script install and configure – Unix & Linux Stack Exchange.
Three important etckeeper gotchas with powerful scripts like pre-commit /etc/etckeeper/pre-commit.d:
- Ensure you give them executable permissions like chmod 755.
- Ensure they are valid sh scripts.
- Do not give them the .sh extension:
- fails:
/etc/etckeeper/pre-commit.d/10rsync-var-lib-named-master
- works:
/etc/etckeeper/pre-commit.d/10rsync-var-lib-named-master.sh
–jeroen
via:
Posted in *nix, *nix-tools, etckeeper, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »
Posted by jpluimers on 2016/03/14
As etckeeper wasn’t available in the “normal” OpeenSuSE 13.1 package, I used the steps below to upgrade to 13.2 after reading SDB:System upgrade – openSUSE and How To Upgrade To openSUSE 13.2 From openSUSE 13.1 | Unixmen.
Note I installed inside tmux (to prevent any ssh disconnects from screwing the upgrade process):
Read the rest of this entry »
Posted in *nix, etckeeper, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »
Posted by jpluimers on 2016/03/10
Since ESXi is based on busybox, it is using ash a variation of sh (the classic bourne shell) called Almquist shell and most nxes use some form of bash a lot of things won’t work.
For instance, doesn’t support sh –version.
Luckily there are uname -mrs and (more elaborate) vmware -vl to get the version.
Note there is support busybox aliases so alias dir=”ls -laF” works, and you can define aliases for the version information too.
–jeroen
via:
Posted in *nix, *nix-tools, bash, Linux, Power User, SuSE Linux, Virtualization, VMware, VMware ESXi | Leave a Comment »
Posted by jpluimers on 2016/03/07
Reminder: install mosh and get it working when it runs behind a firewall.
Mobile shell that supports roaming and intelligent local echo. Like SSH secure shell, but allows mobility and more responsive and robust.
Links:
Then see how well it stacks up against or complements with the ssh/tmux combo.
–jeroen
Read the rest of this entry »
Posted in *nix, Linux, openSuSE, Power User, SuSE Linux, Tumbleweed | Leave a Comment »
Posted by jpluimers on 2016/03/07
Last friday I updated the examples at *nix networking – lsof: How to tell what process has a specific port open on Linux (via: Server Fault) as I needed to document some of the machines around here (so it becomes easier replacing them).
I also added some links to background information and (when I get to using it: OS X still goes without) a good iproute2 starter page.
–jeroen
Posted in *nix, *nix-tools, Apple, Communications Development, Cygwin, Development, Internet protocol suite, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.6 Snow Leopard, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, TCP | Leave a Comment »
Posted by jpluimers on 2016/02/22
If for instance your Boxee gets old or breaks down, you can use a Raspberry Pi as a replacement with Kodi as media player.
This combination will understand the Video+USB over HDMI which most TV supports officially named HDMI-CEC , but most vendors “invented” their own names (see list below).
The core is the kodi support for CEC.
Basically it comes down to using three cables going to the Pi: Power from TV (or some other source), HDMI to TV, and wired Ethernet. And a distribution for RaspberryPi containing kodi will work, for instance from OpenELEC Mediacenter – Download: Raspberry Pi Builds
Chad MILLER has more details on how to get this to work: My Boxee box is getting old, but I knew of no replacements. The problem is I …
Names known for HDMI-CEC via Wikipedia:
Anynet+ (Samsung), Aquos Link (Sharp), BRAVIA Link and BRAVIA Sync (Sony), HDMI-CEC (Hitachi), E-link (AOC), Kuro Link (Pioneer), INlink (Insignia), CE-Link and Regza Link (Toshiba), RIHD (Remote Interactive over HDMI) (Onkyo), RuncoLink (Runco International), SimpLink (LG), T-Link (ITT), HDAVI Control, EZ-Sync, VIERA Link (Panasonic), EasyLink (Philips), and NetCommand for HDMI (Mitsubishi).
Because of the naming, turning on CEC can be confusing: How to Enable HDMI-CEC on Your TV, and Why You Should
–jeroen
Posted in *nix, *nix-tools, Development, Hardware Development, Hardware Interfacing, HDMI, Linux, Power User, Raspberry Pi | Leave a Comment »
Posted by jpluimers on 2016/01/25
The solution: add both the +noall and +answer flags before the query.
dig +noall +answer google.de
–jeroen
via dig show only answer – Server Fault.
Posted in *nix, *nix-tools, Apple, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, Power User, SuSE Linux | Leave a Comment »
Posted by jpluimers on 2016/01/13
Many sites giving your public IP address return a web page with a bloat of html. From the command-line, you are usually only interested in the IP-address itself. Few services return exactly that.
Below are command-line examples to provide the public IP address mostly from a *nix perspective. Usually you can get similar commands to work with Windows binaries for wget and Windows binaries for curl.
In the end, I’ve opted for commands in this format, as I think akamai will last longer than the other sites (but does not include an end-of-line in the http result hence the echo on Mac/*nix):
I’ve not tried aria2 yet, but might provide commands for that in the future.
These are the Linux permutations for akamai:
curl whatismyip.akamai.com && echo
curl ipv4.whatismyip.akamai.com && echo
curl ipv6.whatismyip.akamai.com && echo
curl ipv4.whatismyip.akamai.com && echo && curl ipv6.whatismyip.akamai.com && echo
The last two are convenient when you have both IPv4 and IPv6 configured on “the outside”.
You can replace curl with wget -q -O – (which outputs to stdout) for each command. You can even ommit the http:// (as that is the default protocol for both curl and wget).
Read the rest of this entry »
Posted in *nix, *nix-tools, Apple, bash, bash, Batch-Files, cURL, Development, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Scripting, Software Development, SuSE Linux, wget | Leave a Comment »
Posted by jpluimers on 2016/01/09
Interesting:
During the last weeks I finally got my hands dirty with IPv6. A comment on my blog and an email informed me that my server (hosting this blog) is not reachable via IPv6, albeit it has an IPv6 address. That said, I tried to get that running and fell into several holes, due to firewalls, […]
Source: Fighting with IPv6 – There and back again
Posted in *nix, *nix-tools, Apache2, iptables, Linux, Power User | Leave a Comment »