Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

Seems like that was a red herring. Actual problem is that the chrome book won't connect to my wpa2 enterprise network...

code:
 2014-08-15T14:54:36.631636+00:00 localhost wpa_supplicant[470]: mlan0: RX EAPOL from 00:19:77:3a:7f:e9

2014-08-15T14:54:36.631677+00:00 localhost wpa_supplicant[470]: mlan0: Setting authentication timeout: 70 sec 0 usec

2014-08-15T14:54:36.631695+00:00 localhost wpa_supplicant[470]: EAPOL: Received EAP-Packet frame

2014-08-15T14:54:36.631713+00:00 localhost wpa_supplicant[470]: EAPOL: SUPP_PAE entering state RESTART

2014-08-15T14:54:36.631729+00:00 localhost wpa_supplicant[470]: EAP: EAP entering state INITIALIZE

2014-08-15T14:54:36.631745+00:00 localhost wpa_supplicant[470]: EAP: EAP entering state IDLE

2014-08-15T14:54:36.631763+00:00 localhost wpa_supplicant[470]: EAPOL: SUPP_PAE entering state AUTHENTICATING

2014-08-15T14:54:36.631779+00:00 localhost wpa_supplicant[470]: EAPOL: SUPP_BE entering state REQUEST

2014-08-15T14:54:36.631800+00:00 localhost wpa_supplicant[470]: EAPOL: getSuppRsp

2014-08-15T14:54:36.631822+00:00 localhost wpa_supplicant[470]: EAP: EAP entering state RECEIVED

2014-08-15T14:54:36.631839+00:00 localhost wpa_supplicant[470]: EAP: Received EAP-Request id=252 method=1 vendor=0 vendorMethod=0

2014-08-15T14:54:36.633217+00:00 localhost wpa_supplicant[470]: EAP: EAP entering state IDENTITY

2014-08-15T14:54:36.633249+00:00 localhost wpa_supplicant[470]: mlan0: CTRL-EVENT-EAP-STARTED EAP authentication started

2014-08-15T14:54:36.633271+00:00 localhost wpa_supplicant[470]: EAP: Status notification: started (param=)

2014-08-15T14:54:36.633295+00:00 localhost wpa_supplicant[470]: EAP: EAP-Request Identity data - hexdump(len=0):

2014-08-15T14:54:36.633316+00:00 localhost wpa_supplicant[470]: EAP: using real identity - hexdump(len=16): 6a 6f 72 64 61 6e 2e 67 6f 6f 64 6e 6f 75 67 68

2014-08-15T14:54:36.633342+00:00 localhost wpa_supplicant[470]: EAP: EAP entering state SEND_RESPONSE

2014-08-15T14:54:36.633364+00:00 localhost wpa_supplicant[470]: EAP: EAP entering state IDLE

2014-08-15T14:54:36.633386+00:00 localhost wpa_supplicant[470]: EAPOL: SUPP_BE entering state RESPONSE

2014-08-15T14:54:36.633408+00:00 localhost wpa_supplicant[470]: EAPOL: txSuppRsp

2014-08-15T14:54:36.633430+00:00 localhost wpa_supplicant[470]: TX EAPOL: dst=00:19:77:3a:7f:e9

2014-08-15T14:54:36.633452+00:00 localhost wpa_supplicant[470]: EAPOL: SUPP_BE entering state RECEIVE

2014-08-15T14:54:36.645289+00:00 localhost wpa_supplicant[470]: mlan0: RX EAPOL from 00:19:77:3a:7f:e9

2014-08-15T14:54:36.645330+00:00 localhost wpa_supplicant[470]: EAPOL: Received EAP-Packet frame

2014-08-15T14:54:36.645350+00:00 localhost wpa_supplicant[470]: EAPOL: SUPP_BE entering state REQUEST

2014-08-15T14:54:36.645394+00:00 localhost wpa_supplicant[470]: EAPOL: getSuppRsp

2014-08-15T14:54:36.645418+00:00 localhost wpa_supplicant[470]: EAP: EAP entering state RECEIVED

2014-08-15T14:54:36.645437+00:00 localhost wpa_supplicant[470]: EAP: Received EAP-Request id=253 method=25 vendor=0 vendorMethod=0

2014-08-15T14:54:36.645456+00:00 localhost wpa_supplicant[470]: EAP: EAP entering state GET_METHOD

2014-08-15T14:54:36.645474+00:00 localhost wpa_supplicant[470]: mlan0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25

2014-08-15T14:54:36.645491+00:00 localhost wpa_supplicant[470]: EAP: Status notification: accept proposed method (param=PEAP)

2014-08-15T14:54:36.645510+00:00 localhost wpa_supplicant[470]: EAP: Initialize selected EAP method: vendor 0 method 25 (PEAP)

2014-08-15T14:54:36.645531+00:00 localhost wpa_supplicant[470]: TLS: Phase2 EAP types - hexdump(len=8): 00 00 00 00 1a 00 00 00

2014-08-15T14:54:36.645550+00:00 localhost wpa_supplicant[470]: TLS: using phase1 config options

2014-08-15T14:54:36.645929+00:00 localhost wpa_supplicant[470]: TLS: Trusted root certificate(s) loaded

2014-08-15T14:54:36.645953+00:00 localhost wpa_supplicant[470]: mlan0: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected

2014-08-15T14:54:36.645974+00:00 localhost wpa_supplicant[470]: EAP: EAP entering state METHOD

2014-08-15T14:54:36.645994+00:00 localhost wpa_supplicant[470]: SSL: Received packet(len=6) - Flags 0x20

2014-08-15T14:54:36.646010+00:00 localhost wpa_supplicant[470]: EAP-PEAP: Start (server ver=0, own ver=1)

2014-08-15T14:54:36.646027+00:00 localhost wpa_supplicant[470]: EAP-PEAP: Using PEAP version 0

2014-08-15T14:54:36.646046+00:00 localhost wpa_supplicant[470]: SSL: (where=0x10 ret=0x1)

2014-08-15T14:54:36.646086+00:00 localhost wpa_supplicant[470]: SSL: (where=0x1001 ret=0x1)

2014-08-15T14:54:36.646108+00:00 localhost wpa_supplicant[470]: SSL: SSL_connect:before/connect initialization

2014-08-15T14:54:36.646208+00:00 localhost wpa_supplicant[470]: SSL: (where=0x1001 ret=0x1)

2014-08-15T14:54:36.646230+00:00 localhost wpa_supplicant[470]: SSL: SSL_connect:SSLv3 write client hello A

2014-08-15T14:54:36.646248+00:00 localhost wpa_supplicant[470]: SSL: (where=0x1002 ret=0xffffffff)

2014-08-15T14:54:36.646267+00:00 localhost wpa_supplicant[470]: SSL: SSL_connect:error in SSLv3 read server hello A

2014-08-15T14:54:36.646287+00:00 localhost wpa_supplicant[470]: SSL: SSL_connect - want more data

2014-08-15T14:54:36.646305+00:00 localhost wpa_supplicant[470]: SSL: 120 bytes pending from ssl_out

2014-08-15T14:54:36.646324+00:00 localhost wpa_supplicant[470]: SSL: 120 bytes left to be sent out (of total 120 bytes)

2014-08-15T14:54:36.646342+00:00 localhost wpa_supplicant[470]: EAP: method process -> ignore=FALSE methodState=MAY_CONT decision=FAIL

2014-08-15T14:54:36.646359+00:00 localhost wpa_supplicant[470]: EAP: EAP entering state SEND_RESPONSE

2014-08-15T14:54:36.646377+00:00 localhost wpa_supplicant[470]: EAP: EAP entering state IDLE

2014-08-15T14:54:36.646396+00:00 localhost wpa_supplicant[470]: EAPOL: SUPP_BE entering state RESPONSE

2014-08-15T14:54:36.646413+00:00 localhost wpa_supplicant[470]: EAPOL: txSuppRsp

2014-08-15T14:54:36.646432+00:00 localhost wpa_supplicant[470]: TX EAPOL: dst=00:19:77:3a:7f:e9

2014-08-15T14:54:36.646483+00:00 localhost wpa_supplicant[470]: EAPOL: SUPP_BE entering state RECEIVE

2014-08-15T14:54:36.654577+00:00 localhost wpa_supplicant[470]: mlan0: RX EAPOL from 00:19:77:3a:7f:e9

2014-08-15T14:54:36.654607+00:00 localhost wpa_supplicant[470]: EAPOL: Received EAP-Packet frame

2014-08-15T14:54:36.654626+00:00 localhost wpa_supplicant[470]: EAPOL: SUPP_BE entering state REQUEST

2014-08-15T14:54:36.654645+00:00 localhost wpa_supplicant[470]: EAPOL: getSuppRsp

2014-08-15T14:54:36.654662+00:00 localhost wpa_supplicant[470]: EAP: EAP entering state RECEIVED

2014-08-15T14:54:36.654681+00:00 localhost wpa_supplicant[470]: EAP: Received EAP-Failure

2014-08-15T14:54:36.654700+00:00 localhost wpa_supplicant[470]: EAP: Status notification: completion (param=failure)

2014-08-15T14:54:36.654720+00:00 localhost wpa_supplicant[470]: EAP: EAP entering state FAILURE

2014-08-15T14:54:36.654739+00:00 localhost wpa_supplicant[470]: mlan0: CTRL-EVENT-EAP-FAILURE EAP authentication failed
Microsoft NPS logs say client and server do not possess a common algorithm; no EAP type shows up in the event, but it does for successful connections. Chromebook is set to PEAP and MSCHAP v2, which is correct, cert has been loaded... I don't get it. At first I thought that it didn't know what to do with the cert, but that seems to not be the case.

Adbot
ADBOT LOVES YOU

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

Suggestions for a USB wifi adapter I can go out today and buy at Best Buy or Walmart? Needs to work with Ubuntu 14.04

fuf
Sep 12, 2004

haha
my TP-Link TL-WN727N works fine on ubuntu 14.04

thebigcow
Jan 3, 2001

Bully!
Not available in stores

fuf
Sep 12, 2004

haha
haha and here was me thinking I was actually going to be helpful in the linux thread for once

Polidoro
Jan 5, 2011


Huevo se dice argidia. Argidia!
I bought this one a couple months ago, and a quick google search show it's available on walmart. I actually bought it for a RaspberryPi but I guess it'll work in Ubuntu.

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

fuf posted:

haha and here was me thinking I was actually going to be helpful in the linux thread for once

yospos, bicth

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

Actually my problem might be my NPS server being insane

Naffer
Oct 26, 2004

Not a good chemist
I added a pair of entries to my crontab (root) to kill and start a service daily, and for whatever reason the first one works but the second one doesn't. If I paste the exact same command into the terminal it works fine.
0 4 * * * killall irqbalance > /dev/null 2>&1
2 4 * * * start irqbalance > /dev/null 2>&1

Shouldn't that kill irqbalance at 4 AM and start it at 4:02AM? I'm not sure why cron isn't starting it.

JHVH-1
Jun 28, 2002
If the start command works manually in your shell, but not in cron then you may need to put the full path to wherever start is. Cron doesn't always have all the environment variables if you call things directly like that. So in general its a good idea to either put the full path or put things in a shell script that makes it run from whatever your favorite shell is.

Naffer
Oct 26, 2004

Not a good chemist

JHVH-1 posted:

If the start command works manually in your shell, but not in cron then you may need to put the full path to wherever start is. Cron doesn't always have all the environment variables if you call things directly like that. So in general its a good idea to either put the full path or put things in a shell script that makes it run from whatever your favorite shell is.

Thanks, I'll give that a try.

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

Thanks for this!! Alias was definitely what I was looking for. Things are starting to make more sense now. I also had to remove the trailing slash on the location /rtgui line, otherwise it was requesting somefile.js/.

Here's my new nginx config:

https://gist.github.com/fletchowns/f343929d22a30b46f86b

Still have a couple questions though:

1. Why does a request to json.php 404?
code:
2014/08/20 09:28:31 [error] 17734#0: *7 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream
2. Why can't I move the php stuff inside the rtgui block? Seems to break things.
3. Do I need the try_files $uri = 404; in the php block? It also seems to break things.

Qtotonibudinibudet
Nov 7, 2011



Omich poluyobok, skazhi ty narkoman? ya prosto tozhe gde to tam zhivu, mogli by vmeste uyobyvat' narkotiki

Illusive gently caress Man posted:

I have a bunch of networked devices with no internal battery or persistent storage. When they boot, they have no idea what the time/date is. I need a way for these devices to securely get the time. When I say securely, I mean the devices should only accept a time which comes from 'me', or some server I control. Ideally, the devices should just have a trusted certificate on their disk which they can use to verify a chain a server provides.

ntpd seems to have an authentication mode that does something like this, but it's kinda confusing, involving servers dynamically signing each other's certificates. Also, instructions for setting it up are all pretty old and sometimes different from one another. Has anyone here ever dealt with a problem like this, using ntpd or otherwise?

That looks like a contradiction to me, I assume the devices do have some form of persistent storage (where are they storing the ntpd binary?).

Autokey does provide for PKI-based authentication of NTP, though I've never set it up. As best I can tell it still requires storing the CA/CA equivalent certs somewhere. Assuming you do have some means of storing ntpd configuration on the devices, configuring symmetric key authentication is dead simple, but has the obvious caveat that anyone who could steal a device and read the keys would be able to masquerade as you, whereas with autokey they'd need to compromise the central timeserver or signing authority.

Illusive Fuck Man
Jul 5, 2004
RIP John McCain feel better xoxo Ă°ÂŸÂ’Â‹ Ă°ÂŸÂ™Â
Taco Defender

IPvSH6T posted:

That looks like a contradiction to me, I assume the devices do have some form of persistent storage (where are they storing the ntpd binary?).

Autokey does provide for PKI-based authentication of NTP, though I've never set it up. As best I can tell it still requires storing the CA/CA equivalent certs somewhere. Assuming you do have some means of storing ntpd configuration on the devices, configuring symmetric key authentication is dead simple, but has the obvious caveat that anyone who could steal a device and read the keys would be able to masquerade as you, whereas with autokey they'd need to compromise the central timeserver or signing authority.

Yeah, I didn't word that very clearly. The devices load a kernel/ramdisk over tftp every time they boot. The devices do some software attestation poo poo later on, and one of our custom attestation protocols currently uses timestamps. This is dumb and backwards imo, and it's literally the only reason they need to know the time.

My current plan is to convince my boss to let me change the protocol to a more standard challenge-response deal, and forget about keeping time synchronized for now. Setting up a PKI for ntp seems like kind of a hassle (and extra annoying since this project already has a shitload of other key management issues for a bunch of other poo poo) and symmetric keys won't work for the reason you stated.

a cat
Aug 8, 2003

meow.
I recently put Ubuntu 14.04 on a computer I built. I'm trying to use the ethernet that's built into the motherboard (which is a MAXIMUS VII HERO) and a PCI wireless card. My wireless internet is working OK, but it's at considerably slower speeds that the previous windows computer I used on this same exact connection and it's almost unusable at times. The ethernet is not working at all. I'd really like to fix both these problems but the ethernet is more important I guess since this is a desktop I'm not really going to be moving around. I've been screwing around on google all day trying to fix things with no luck. I'm also a total linux noob.

Here are some outputs to things that might or might not be useful:

http://pastebin.com/e3qm4tBp

Any advice?

If I can't get this to work is there any hardware I could buy that would guarantee it would? Or even another linux distro?

Longinus00
Dec 29, 2005
Ur-Quan

jjttjj posted:

I recently put Ubuntu 14.04 on a computer I built. I'm trying to use the ethernet that's built into the motherboard (which is a MAXIMUS VII HERO) and a PCI wireless card. My wireless internet is working OK, but it's at considerably slower speeds that the previous windows computer I used on this same exact connection and it's almost unusable at times. The ethernet is not working at all. I'd really like to fix both these problems but the ethernet is more important I guess since this is a desktop I'm not really going to be moving around. I've been screwing around on google all day trying to fix things with no luck. I'm also a total linux noob.

Here are some outputs to things that might or might not be useful:

http://pastebin.com/e3qm4tBp

Any advice?

If I can't get this to work is there any hardware I could buy that would guarantee it would? Or even another linux distro?

code:
eth0      Link encap:Ethernet  HWaddr 40:16:7e:ae:6a:c4  
          inet6 addr: fe80::4216:7eff:feae:6ac4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:104030 errors:0 dropped:1 overruns:0 frame:0
          TX packets:16728 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7176017 (7.1 MB)  TX bytes:2787691 (2.7 MB)
          Interrupt:20 Memory:f7300000-f7320000 
It looks like the hardware is working so I would try and figure out why it's not getting an ip address. You could try assigning one manually and seeing if it works then.

a cat
Aug 8, 2003

meow.

Longinus00 posted:

code:
eth0      Link encap:Ethernet  HWaddr 40:16:7e:ae:6a:c4  
          inet6 addr: fe80::4216:7eff:feae:6ac4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:104030 errors:0 dropped:1 overruns:0 frame:0
          TX packets:16728 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7176017 (7.1 MB)  TX bytes:2787691 (2.7 MB)
          Interrupt:20 Memory:f7300000-f7320000 
It looks like the hardware is working so I would try and figure out why it's not getting an ip address. You could try assigning one manually and seeing if it works then.

Hmm I've been messing around with manually adding an IP address for 2 hours now with no results. Any further tips/tricks to help figure out what's going on?

CaptainSarcastic
Jul 6, 2013



jjttjj posted:

Hmm I've been messing around with manually adding an IP address for 2 hours now with no results. Any further tips/tricks to help figure out what's going on?

Did you disable the wireless connection before trying to get the ethernet up and running?

a cat
Aug 8, 2003

meow.

CaptainSarcastic posted:

Did you disable the wireless connection before trying to get the ethernet up and running?

Yes I've done this every time I tried something new.

I'm assuming I can rule out having to change anything on my router, since the ethernet works perfectly when plugged into another computer?

Alternatively is there any way to stop my wireless speeds from sucking? Wireless was so fast on my windows computer I never felt the need for wired. Is that just an unavoidable problem of the drivers sucking?

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
http://blog.mecheye.net/2014/08/hanging-up-the-hat/

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell


Thanks for helping to make Gnome pretty cool!

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

Wow! Congrats on the new job. I can only imagine how tough it is to leave an org like Red Hat. And nice job on the GNOME stability fix!

evol262
Nov 30, 2010
#!/usr/bin/perl

Congrats on the move! I saw their initial announcement last year, but I haven't really kept up, and I had no idea they were using GTK/Gnome.

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

fletcher posted:

Thanks for this!! Alias was definitely what I was looking for. Things are starting to make more sense now. I also had to remove the trailing slash on the location /rtgui line, otherwise it was requesting somefile.js/.

Here's my new nginx config:

https://gist.github.com/fletchowns/f343929d22a30b46f86b

Still have a couple questions though:

1. Why does a request to json.php 404?
code:
2014/08/20 09:28:31 [error] 17734#0: *7 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream
2. Why can't I move the php stuff inside the rtgui block? Seems to break things.
3. Do I need the try_files $uri = 404; in the php block? It also seems to break things.

Got some answers to my questions on #nginx irc, here's the new config http://p.ngx.cc/13

One of the key changes was the /rtgui/rtgui on line 43, apparently I was running into this bug. And now the blocks can be nested. I also had to move the SCRIPT_FILENAME line to be after the include scgi_params line (even though like every tutorial I saw online had it the other way around). It finally works!!!!

fletcher fucked around with this message at 21:48 on Aug 21, 2014

fuf
Sep 12, 2004

haha
Is there a clever tool for navigating through directories more quickly? Right now I type "ls" and then "cd whatever". But what I'd really love is something whose output looks like ls but then lets me navigate through the directories using hjkl (like vifm), then press enter to return to the command line at that location.

This thing kind of does something similar: https://github.com/philc/fuzzycd
If you type an ambiguous cd command you pick one of the directories by hitting a number.

taqueso
Mar 8, 2004


:911:
:wookie: :thermidor: :wookie:
:dehumanize:

:pirate::hf::tinfoil:

This isn't what you asked for, but I find tab completion is quite fast. Type "cd <tab><tab>" for a list of possibilities, then type one (or a couple) letter of your desired destination and hit tab again. You have to hit tab again if there are multiple options. Refine more if necessary, then hit enter when it completes to the full directory name.

taqueso fucked around with this message at 21:02 on Aug 22, 2014

Maluco Marinero
Jan 18, 2001

Damn that's a
fine elephant.
Something that I've heard of but haven't tried is xiki.org , which is as far as I can see is a shell augmentation that let's you run commands and then interact with their output rather than as a second command. For example, you'd run 'ls' and then you could use arrow keys to go through the resulting list and expand your desired directory.

I'm leery of how primetime ready it is but it's an interesting concept.

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.

Maluco Marinero posted:

Something that I've heard of but haven't tried is xiki.org , which is as far as I can see is a shell augmentation that let's you run commands and then interact with their output rather than as a second command. For example, you'd run 'ls' and then you could use arrow keys to go through the resulting list and expand your desired directory.

I'm leery of how primetime ready it is but it's an interesting concept.
So it's kind of an IPython Notebook for shell, then

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.
Has anyone tried to HA-cluster HAProxy instances in a cloud environment like Amazon EC2? What strategies/tools did you end up using for failover, and why? I'm very familiar with stuff like Pacemaker, but it looks like keepalived is pretty popular with HAProxy nowadays.

Active/passive is fine for us right now, but I'd like to be able to switch up to active/active without re-tooling the whole stack.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Maluco Marinero posted:

Something that I've heard of but haven't tried is xiki.org , which is as far as I can see is a shell augmentation that let's you run commands and then interact with their output rather than as a second command. For example, you'd run 'ls' and then you could use arrow keys to go through the resulting list and expand your desired directory.

I'm leery of how primetime ready it is but it's an interesting concept.

That is pretty bitchin'

https://www.youtube.com/watch?v=bUR_eUVcABg

spankmeister
Jun 15, 2008






fuf posted:

Is there a clever tool for navigating through directories more quickly? Right now I type "ls" and then "cd whatever". But what I'd really love is something whose output looks like ls but then lets me navigate through the directories using hjkl (like vifm), then press enter to return to the command line at that location.

This thing kind of does something similar: https://github.com/philc/fuzzycd
If you type an ambiguous cd command you pick one of the directories by hitting a number.

Try if mc suits your needs.

FoodProcessor
Nov 6, 2011

fuf posted:

Is there a clever tool for navigating through directories more quickly? Right now I type "ls" and then "cd whatever". But what I'd really love is something whose output looks like ls but then lets me navigate through the directories using hjkl (like vifm), then press enter to return to the command line at that location.

This thing kind of does something similar: https://github.com/philc/fuzzycd
If you type an ambiguous cd command you pick one of the directories by hitting a number.

I've been using this lately: https://github.com/junegunn/fzf
The Alt-C default keybinding seems to do what you're looking for.

Hollow Talk
Feb 2, 2014

spankmeister posted:

Try if mc suits your needs.

I was thinking of Midnight Commander as well! :argh: The real answer is of course dired, because everybody is basically using Emacs as a full operating system that also runs all of their shells anyway, right?

edit: Actually, a mixture of the above answer answers might work as well by using zsh. You can set it up so that it gives you a list that can be navigated with the arrows keys or some such upon using tab-completion, which would have the advantage of being an otherwise tested shell and not being an extra program.

Hollow Talk fucked around with this message at 10:50 on Aug 23, 2014

evol262
Nov 30, 2010
#!/usr/bin/perl

Hollow Talk posted:

I was thinking of Midnight Commander as well! :argh: The real answer is of course dired, because everybody is basically using Emacs as a full operating system that also runs all of their shells anyway, right?

edit: Actually, a mixture of the above answer answers might work as well by using zsh. You can set it up so that it gives you a list that can be navigated with the arrows keys or some such upon using tab-completion, which would have the advantage of being an otherwise tested shell and not being an extra program.

emacs is less bloated and more portable than zsh

There, I said it.

Hollow Talk
Feb 2, 2014

evol262 posted:

emacs is less bloated and more portable than zsh

There, I said it.

Right were it hurts. Twice. :saddowns:

fuf
Sep 12, 2004

haha
thanks for all the responses re cli navigation. I tried them all:

Maluco Marinero posted:

Something that I've heard of but haven't tried is xiki.org , which is as far as I can see is a shell augmentation that let's you run commands and then interact with their output rather than as a second command. For example, you'd run 'ls' and then you could use arrow keys to go through the resulting list and expand your desired directory.

I'm leery of how primetime ready it is but it's an interesting concept.


I got this working in vim after some work and it kinda blew my mind - pretty drat cool. Not much vim support yet though so you can't actually use it for digging into directories etc.


spankmeister posted:

Try if mc suits your needs.

I like that MC has a shell right there at the bottom, but I wish the file browser behaved more like vifm. (maybe there's a plugin or something? I'll check)
MC and vifm both let you switch to a full screen shell at the current location, which is cool but I keep forgetting it's not a regular shell. I wish you could split the screen in half instead - like use the file manager in one pane to move around, then press a key to send the current dir / file to a shell in the other panel ready to run a command on. I'm kinda surprised there isn't a vifm plugin that just changes one of the panels into a shell (maybe there is one for mc).


FoodProcessor posted:

I've been using this lately: https://github.com/junegunn/fzf
The Alt-C default keybinding seems to do what you're looking for.

Yeah this is pretty cool. I think it'll be useful for quickly jumping to particular places, but not so good for just quickly scooting around directories.


Hollow Talk posted:


edit: Actually, a mixture of the above answer answers might work as well by using zsh. You can set it up so that it gives you a list that can be navigated with the arrows keys or some such upon using tab-completion, which would have the advantage of being an otherwise tested shell and not being an extra program.

I tried out zsh and yeah the menu completion thing is pretty drat cool - it's the closest to what I was imagining. but poo poo I don't really wanna switch to a new shell when I barely have a handle on bash.

SurgicalOntologist
Jun 17, 2004

fish shell > zsh

You also may want to try z.

revmoo
May 25, 2006

#basta
My NIC in my router just poo poo the bed. Can anyone recommend a 100 megabit PCI card (Amazon link preferably) that will work without additional drivers?

spankmeister
Jun 15, 2008






Pretty much anything with a realtek or Intel chip, but 100mbit might be harder to get than gigabit these days.

Adbot
ADBOT LOVES YOU

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

revmoo posted:

My NIC in my router just poo poo the bed. Can anyone recommend a 100 megabit PCI card (Amazon link preferably) that will work without additional drivers?

PCI? Can you just find a 3com 9cx laying around in a drawer

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply