Applies to many Linux distros and explains a lot about sudo, su and their parameters: sudo – How to run a command as a user whose login is disabled? – Ask Ubuntu.
Archive for the ‘Linux’ Category
Linux: sudo, su and their options (via: Ask Ubuntu)
Posted by jpluimers on 2014/08/25
Posted in *nix, Linux, Power User, SuSE Linux | Leave a Comment »
Linux/bash: using mutt to send a file as an email attachment (via: Stack Overflow)
Posted by jpluimers on 2014/08/21
Just in case I need this again:
None of the mutt ones worked for me. It was thinking the email address was part of the attachemnt. Had to do:
echo “This is the message body” | mutt -a “/path/to/file.to.attach” -s “subject of message” — recipient@domain.com
Thanks Alexander Bird for noticing the double-dash, rynop for the modified answer and Chris N for the original answer.
From mutt(1): Mutt Mail User Agent – Linux man page: Read the rest of this entry »
Posted in *nix, bash, Development, Linux, Power User, Scripting, Software Development, SuSE Linux | Leave a Comment »
Mac/PC: sending Wake-on-LAN (WOL) packets
Posted by jpluimers on 2014/07/25
I’ve succesfully woken up these machines:
- HP XW6600 running ESXi 5.1
- ThinkPad W701U running Windows 7
I still need to try to wake up a Mac Mini Server running OS X 10.6 (Snow Leopard).
MacBook Air on 10.7 (Lion) and Retina on 10.8 (Mountain Lion) won’t work as they are WiFi only, and WOL does not work over WiFi.
On 10.7 and up it might not work on a Mac Mini Server either, as Apple Introduced Dark Wake.
I used these tools to send WOL packets: Read the rest of this entry »
Posted in *nix, Apple, ESXi5.1, Ethernet, Hardware, HP XW6600, Linux, Mac OS X / OS X / MacOS, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, Network-and-equipment, openSuSE, OS X 10.8 Mountain Lion, Power User, SuSE Linux, Virtualization, VMware, VMware ESXi, Wake-on-LAN (WoL), Windows, Windows 7 | Leave a Comment »
Using inotify-wait to check filesystem events
Posted by jpluimers on 2014/07/21
Thanks to Using inotify-wait to check filesystem events I got pointed to How to use inotify-tools to trigger scripts on filesystem events which is now on my research list.
–jeroen
Note that Kristian later on commented this:
The solution shown in the article has race conditions and should not be used.
It is based on
while :
do
inotifywait $options && run-backup
doneand that means that while the backup runs, the directory in question is unmonitored. When the backup finishes, new changes may have been accumulating during backup run, but without being picked up by the backup.
A proper solution would do something like
inotifywait -m $options | while read line
do
do-something-that-logs-multile-changes-and-triggers-backup-once
doneThe important thing is that “inotifywait -m” does not terminate and hence no changes will be lost. It is wrong to run the backup once in full for each change, though.
Posted in *nix, *nix-tools, Linux, Monitoring, Power User, SuSE Linux | Leave a Comment »
HTTP debugging tools
Posted by jpluimers on 2014/07/15
Any web developer should know how to capture and trace HTTP traffic.
I’ve written about Fiddler before, but that’s a Windows specific tool.
Time to have a small list of posts and links to tools that work on various platforms.
I’ve left out Java based tools as there have been too many security issues with Java over the last couple of years.
Posted in *nix, Apple, Development, Fiddler, 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, OS X 10.8 Mountain Lion, Power User, SOAP/WebServices, Software Development, SuSE Linux, Web Development, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | 2 Comments »
Windows: programmatically setting date/time stamps of files
Posted by jpluimers on 2014/07/01
For DOS programs, date and time stamps were used to mark versions of files. For instance, Turbo Pascal 6.0, had a 06:00 time stamp on every file.
You can still do this in Windows, but need to watch for a couple of things:
- daylight saving time
- more than one time stamp per file
There are various ways to do it. Besides a graphical Attribute Changer at www.petges.lu (thanks User Randolf Richardson), these are console approaches via How can I change the timestamp on a file?:
Read the rest of this entry »
Posted in *nix, Apple, Batch-Files, Cygwin, 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, OS X 10.8 Mountain Lion, Power User, PowerShell, Scripting, Software Development, SuSE Linux, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | 2 Comments »
Hiding email behind a 30x redirect.
Posted by jpluimers on 2014/06/24
Last week, I thanked Jaykul for helping me out on PowerShell.
But he taught me another thing that was new for me: on his site, he has hidden his email address behind a 302-redirect.
I didn’t even realize that was possible until I saw his site start my mail program without initially showing a mailto in the url. A quick check showed me he was using a 302-redirect: Read the rest of this entry »
Posted in *nix, Apache2, bash, Development, Linux, Power User, Scripting, Software Development, SuSE Linux, wget | Leave a Comment »
alias suse_version for getting the openSUSE version – openSUSE
Posted by jpluimers on 2014/05/19
I always forget where SuSE keeps its’ version number.
Hence my alias:
alias suse_version='cat /etc/SuSE-release'
–jeroen
Posted in *nix, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »
A Quick Test Drive of Tails, a Privacy Focused Linux Distribution
Posted by jpluimers on 2014/05/05
Fazit:
You’ll probably want a standard OS for day to day tasks, and only use Tails if you really need to remain anonymous.
–jeroen
via A Quick Test Drive of Tails, a Privacy Focused Linux Distribution.
Posted in *nix, LifeHacker, Linux, Power User | Leave a Comment »





