>
>
> OK, this is Linux, where someone a long time ago decided to name a root
> folder /usr to save typing just one tiny letter. I mean, seriously.
> There has to be a way to save constantly re-typing at the command line.
> Any suggestions?
>
I have so many command aliases, that I've moved them
On 06/19/2018 10:09 PM, John Jason Jordan wrote:
I prefer Gnome terminal because it is more visually configurable than
others that I have tried.
Often I need to repeat a command with a different object, so the up
arrow doesn't save typing. For example:
mkvmerge -i (and repeat with a
I would check for alias
Man alias or bash is your friend.
That allows you to assign shortcuts to a command and save typing.
Another alternative, more flexible, would be to create wrapper scrtipt or
function for your long commands.
-T
On Tue, Jun 19, 2018, 10:37 PM Russell Senior
wrote:
> You
F1 in the terminal will bring up the terminal help page, there is a
keyboard shortcuts link that lists them.
On Tue, Jun 19, 2018 at 10:37 PM, Russell Senior
wrote:
> You can cut/paste with ctrl-shift-c/ctrl-shift-v in gnome terminal,
> afaik. What don't you like about up-arrow? That you have
You can cut/paste with ctrl-shift-c/ctrl-shift-v in gnome terminal, afaik.
What don't you like about up-arrow? That you have to backspace over
things? There's probably a delete-word binding, Ctrl-W. So, maybe Ctrl-P
Ctrl-W?
On Tue, Jun 19, 2018 at 10:09 PM, John Jason Jordan wrote:
> I
I prefer Gnome terminal because it is more visually configurable than
others that I have tried.
Often I need to repeat a command with a different object, so the up
arrow doesn't save typing. For example:
mkvmerge -i (and repeat with a different movie)
It annoys me that I keep having to
On 06/19/2018 06:02 PM, Rich Shepard wrote:
On Tue, 19 Jun 2018, david wrote:
While I believe the answer has already been found, would the 'uniq'
command have been useful as an alternative?
david,
Good question. Can it find a difference in a specific field and change
only one of them?
On Tue, 19 Jun 2018, david wrote:
While I believe the answer has already been found, would the 'uniq' command
have been useful as an alternative?
david,
Good question. Can it find a difference in a specific field and change
only one of them? Perhaps, but I've no idea.
Thanks,
Rich
On Tue, 19 Jun 2018, Robert Citek wrote:
Awk is a very nice "little" language. Glad to hear it worked. And thanks
for letting us know.
Robert,
I do a lot of environmental data munging/wragling/ETL. These come to me as
.xml spreadsheets or the equivalent of line printer output sent as PDF
On Tue, 19 Jun 2018, Carl Karsten wrote:
It could be done with transistors if you spend enough time ;)
Carl,
Microprocessors.
I would add some code that verifies assumptions, like
are the dates always the same
is it just the 1700 are 1600?
Those are hours on the 24-hour clock: 16:00
This is great technical discussion, thanks for keeping it public.
Reminds me my journey where implementing SSO/AD/LDAP - the project scope
kept expanding beyond my initial expectations.
As per your discussion - this, central, management/authentication needs
fully configured, reverse and
Awk is a very nice "little" language. Glad to hear it worked. And
thanks for letting us know. - Robert
On Tue, Jun 19, 2018 at 4:58 PM, Rich Shepard wrote:
> On Tue, 19 Jun 2018, Robert Citek wrote:
>
>> $2 != "16.00" { print ; next } <= the decimal should be a colon, 16:00 vs
>> 16.00
>
>
>
It could be done with transistors if you spend enough time ;)
I would add some code that verifies assumptions, like
are the dates always the same
is it just the 1700 are 1600?
anyway, assuming all our descriptions and assumptions are correct,
and the file starts at 2012-10-01,14:00
import csv
On Tue, Jun 19, 2018 at 9:02 AM, Tyrell Jentink wrote:
> On the second side, the interface name is enp0s29u1u1u4. On the first side,
> the output doesn't make sense, I would try again.
>
What part doesn't make sense? It looks like he unplugged and replugged in
a different USB port and the
On Tue, 19 Jun 2018, Robert Citek wrote:
$2 != "16.00" { print ; next } <= the decimal should be a colon, 16:00 vs 16.00
Robert,
Oy! Too often we see what we expect to see, not what's actually there. I
had that in a FORTRAN IV program in the early 1970s.
flag == 1 && $2 == "16:00" {
Oh... I meant to also mention... If you want to have a service authenticate
both inside and outside your network, that particular service will need to
have the same FQDN on both the inside and the outside of the network...
Since they aren't likely to share the same IP address (Public vs Private),
Both "Domain Controllers" are called 'pdc' on their respective subdomain;
So, 'pdc.win.example.com' and 'pdc.lin.example.com.'
Yes, my network has A LOT of infrastructure, for what is essentially a 3
user network... I did it as a learning experience, a "Home Lab," so to
speak (Or, "Home
On Tue, Jun 19, 2018 at 2:29 PM, Rich Shepard wrote:
> On Tue, 19 Jun 2018, Robert Citek wrote:
>
>> I don't fully understand your question, but here are some examples
>> that may be a step in the right direction:
>
>
> Robert,
>
> I did not provide as complete an explanation as I should have.
$2 != "16.00" { print ; next } <= the decimal should be a colon, 16:00 vs 16.00
flag == 1 && $2 == "16:00" { $2=="17:00"; print; flag=0 ; next } <=
equality should be assignment, $2= vs $2==
Here's a refactored version that you can put in a file:
BEGIN {OFS=FS=","} ;
flag == 1 && $2 == "16:00"
On Tue, 19 Jun 2018, Robert Citek wrote:
Couple of typos and an addition (-F,) :
I'm not seeing the typos.
{ cat <
I have the code in a file and run it with the '-f' option:
gawk -f correct-double-hour.awk test.dat > out.dat
correct-double-hour.awk:
#!/usr/bin/gawk
#
# This script
Couple of typos and an addition (-F,) :
{ cat < wrote:
> On Tue, 19 Jun 2018, Robert Citek wrote:
>
>> A quick pass. Needs testing and refactoring.
>>
>> $2 != "16.00" { print ; next }
>> flag == 0 && $2 == "16:00" { print ; flag=1 ; next }
>> flag == 1 && $2 == "16:00" { $2=="17:00"; print;
A quick pass. Needs testing and refactoring.
$2 != "16.00" { print ; next }
flag == 0 && $2 == "16:00" { print ; flag=1 ; next }
flag == 1 && $2 == "16:00" { $2=="17:00"; print; flag=0 ; next }
On Tue, Jun 19, 2018 at 2:04 PM, Rich Shepard wrote:
> On Tue, 19 Jun 2018, Robert Citek wrote:
>
On Tue, 19 Jun 2018, Robert Citek wrote:
Good luck and let us know how things go.
This can be done using awk and flags. I've not before used flags in awk so
I don't know the proper sequence of commands. What I have now is:
$2!="16.00" { print }
$2=="16:00" { print; flag=1 }
$2=="16:00" {
I have a couple of somewhat complex firewall related tasks to get finished
and could use some help. Looking for probably 2-3 hours worth of help from
someone very familiar with iptables, paying whatever your normal consulting
rate is.
There are tag-based routing issues involved, I expect that
On 06/19/2018 12:33 PM, Tyrell Jentink wrote:>
The second is FreeIPA, lives at 10.42.1.10 and it serves the lin.example.com
subdomain and the 1.42.10.arpa reverse domain. It has a conditional
forwarder to forward requests under win.example.com to 10.42.2.10
Some questions for you:
What is the
On 06/19/2018 12:33 PM, Tyrell Jentink wrote:
Yeah, this was a struggle for me, too... Not just the forward domains, but
the reverse zones, too. It all required some thinking, and I think I'm
about to change some of it... But this is what I did at the get-go:
My domain name, let's use
Yeah, this was a struggle for me, too... Not just the forward domains, but
the reverse zones, too. It all required some thinking, and I think I'm
about to change some of it... But this is what I did at the get-go:
My domain name, let's use example.com, points at my public website, and my
FreeIPA
On Tue, 19 Jun 2018, Robert Citek wrote:
I don't fully understand your question, but here are some examples
that may be a step in the right direction:
Robert,
I did not provide as complete an explanation as I should have.
Each file has 8761 lines, one for each hour of each day during
I don't fully understand your question, but here are some examples
that may be a step in the right direction:
$ seq 1 5 | sed -e '1~2s/$/ --/'
1 --
2
3 --
4
5 --
$ seq 1 5 | sed -e '0~2s/$/ --/'
1
2 --
3
4 --
5
$ echo -e "2012-10-01,16:00,297.94\n2012-10-01,16:00,297.94" | sed -e
Dredging up an old thread here...
On 05/02/2018 08:25 PM, Tyrell Jentink wrote:
I'm using FreeIPA here at home; As a product, it's really just a bunch of
scripts and a web interface for LDAP+Kerberos+Certificate management+Samba;
It aims to be a complete identity management system, a product
I made a mistake when writing an awk script that inserts the time of an
observation with its value. I had 16:00 twice in a row rather than 16:00 and
17:00. This holds for every day in the year, and I have about 12 year's in
which to make the correction. Specifically, changing the second 16:00
On 06/19/2018 09:02 AM, Tyrell Jentink wrote:
On the second side, the interface name is enp0s29u1u1u4. On the first side,
the output doesn't make sense, I would try again.
BUT, of interest, it looks like the hardware in the middle of the cable
turns out to be two Prolific USB-to-serial adapters
On 06/19/2018 08:15 AM, Richard Owlett wrote:
Plug in one end of cable
[ 1882.167155] usb 4-1.1.4: new high-speed USB device number 4 using
ehci-pci
[ 1882.278177] usb 4-1.1.4: New USB device found, idVendor=067b,
idProduct=25a1
[ 1882.278183] usb 4-1.1.4: New USB device strings: Mfr=1,
On the second side, the interface name is enp0s29u1u1u4. On the first side,
the output doesn't make sense, I would try again.
BUT, of interest, it looks like the hardware in the middle of the cable
turns out to be two Prolific USB-to-serial adapters back to back in
Ethernet Emulator mode... So,
On Tue, Jun 19, 2018 at 5:13 AM Richard Owlett wrote:
> On 06/19/2018 06:45 AM, Russell Senior wrote:
> > Here is someone 10 years ago, using debian:
> >
> >
> >
> https://jonmccune.wordpress.com/2008/12/09/prolific-pl-25a1-usb-to-usb-bridge-in-linux/
>
> Now bookmarked. I read. It stated in
Plug in one end of cable
[ 1882.167155] usb 4-1.1.4: new high-speed USB device number 4 using
ehci-pci
[ 1882.278177] usb 4-1.1.4: New USB device found, idVendor=067b,
idProduct=25a1
[ 1882.278183] usb 4-1.1.4: New USB device strings: Mfr=1, Product=2,
SerialNumber=0
[ 1882.278187] usb
Now that you know how to find the interface names, you can use them to
replace eth0 in my examples.
On Mon, Jun 18, 2018 at 8:14 AM, Russell Senior
wrote:
>
>
>
> The description says, in part:
>
> "Supported by Linux kernel 3.0 and later as a high-speed virtual network
> interface, no special
On 06/19/2018 06:45 AM, Russell Senior wrote:
Here is someone 10 years ago, using debian:
https://jonmccune.wordpress.com/2008/12/09/prolific-pl-25a1-usb-to-usb-bridge-in-linux/
What your distribution does (even if it is still Debian) might be different
today, but it looks like it creates a
Just as an example of something remotely like what you might expect to see
in the dmesg output, here's what I see when I plug a usb-ethernet adapter
into a Ubuntu 16.04 USB 3 port:
[...]
[2793539.351788] usb 3-2: new SuperSpeed USB device number 2 using xhci_hcd
[2793539.378837] usb 3-2: New USB
So, do you see the usbN interface or not?
On Tue, Jun 19, 2018 at 5:12 AM, Richard Owlett wrote:
> On 06/19/2018 06:45 AM, Russell Senior wrote:
>
>> Here is someone 10 years ago, using debian:
>>
>>
>> https://jonmccune.wordpress.com/2008/12/09/prolific-pl-25a1-
>> usb-to-usb-bridge-in-linux/
On 06/19/2018 06:45 AM, Russell Senior wrote:
Here is someone 10 years ago, using debian:
https://jonmccune.wordpress.com/2008/12/09/prolific-pl-25a1-usb-to-usb-bridge-in-linux/
Now bookmarked. I read. It stated in part "... a new usbX network
interface (view with `ifconfig -a`)."
I tried
Wow... He doesn't know what dmesg is, and you're throwing him straight into
pipes, tail, and less? What's wrong with just running a command naked?
This is how people get overwhelmed... And overwhelmed people start asking
questions like "How do I make my Linux system single-user?"
On Tue, Jun 19,
On 06/18/2018 12:58 PM, Galen Seitz wrote:
On 06/18/2018 02:55 AM, Richard Owlett wrote:
On 06/18/2018 02:44 AM, Russell Senior wrote:
>
That said, consider the following questions as you begin your quest:
You say "networking". Can you define what you mean by that word?
A LAN with only
On 06/18/2018 10:14 AM, Russell Senior wrote:
On Mon, Jun 18, 2018 at 2:55 AM, Richard Owlett wrote:
[snip]
You say "USB Master-USB Master" cable. Which one?
I didn't buy online but from local computer store.
This page describes what I bought.
44 matches
Mail list logo