Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum Linuxiarze.pl

Author Topic: SOLVED: getcwd, leafpad, vi  (Read 297 times)

Offline pccobbler

  • Newbie
  • *
  • Posts: 25
  • Karma: +0/-0
SOLVED: getcwd, leafpad, vi
« on: February 17, 2020, 11:06:27 pm »
I just built a minimal (Openbox) system. I realize that Openbox is not Cinnamon, KDE, or MATE, but there were three things I found strange:

1) During the first update, the error mesage "getcwd() failed" appeared many times. WTF?

2) Leafpad, my favorite minimalist text editor, was not available. I thought this was strange given that it's available in pretty much every distribution. Is it available?

3) I've used vi since my days with Unix. I depend upon it in terminals and consoles. It wasn't included. Just for laughs I tried "apt install vi" but that did not work. I thought it was standard in all Linux flavors. build-essential was already installed, so that's not a solution. Why isn't it included?
« Last Edit: February 17, 2020, 11:53:17 pm by pccobbler »

Offline lami07

  • Global Moderator
  • Full Member
  • *****
  • Posts: 214
  • Karma: +0/-0
    • Sparky Community Repos
Re: getcwd, leafpad, vi
« Reply #1 on: February 17, 2020, 11:35:05 pm »
Hi.
1). https://unix.stackexchange.com/questions/477872/error-sh-0-getcwd-failed-no-such-file-or-directory-when-i-try-to-upgrade-de/477938

2)Leafpad is based on GTK2 liberties, and GTK2 libs have been abandoned. Try mousepad instead.

3)try sudo apt install vim
Quote from: forum rules
When an issue has been resolved for you, please edit the original post to include <SOLVED> in the title. This provides a good indicator for users with a similar problem to check out the thread
Want to chat? Join #sparkylinux at irc.freenode.net

Offline pccobbler

  • Newbie
  • *
  • Posts: 25
  • Karma: +0/-0
Re: getcwd, leafpad, vi
« Reply #2 on: February 17, 2020, 11:52:54 pm »
Thanks for the reply.

1) From that link: "The error code is obvious: someone removed your current working directory" That's strange, given that this is a new installation.

2) I should have remembered that Leafpad comes from the dinosaur LXDE, with LXQt taking its place. I suppose LXTerminal is also extinct, though it is present in Sparky minimal.

3) I'll remember this one.
« Last Edit: February 18, 2020, 12:22:26 am by pccobbler »

Offline lami07

  • Global Moderator
  • Full Member
  • *****
  • Posts: 214
  • Karma: +0/-0
    • Sparky Community Repos
Re: SOLVED: getcwd, leafpad, vi
« Reply #3 on: February 18, 2020, 09:21:20 am »
Quote
From that link: "The error code is obvious: someone removed your current working directory" That's strange, given that this is a new installation.
I install sparky quite often and I never seen this specific error code. My guts tell me you messed up something. Despite that I will look into it. Feed my with more details so I could try to reproduce this issue.

Quote
I suppose LXTerminal is also extinct
On the contrary, lxterminal is breathing and kicking. Someone ported it to GTK3
« Last Edit: February 18, 2020, 09:31:51 am by lami07 »
Quote from: forum rules
When an issue has been resolved for you, please edit the original post to include <SOLVED> in the title. This provides a good indicator for users with a similar problem to check out the thread
Want to chat? Join #sparkylinux at irc.freenode.net

Offline paxmark1

  • Hero Member
  • *****
  • Posts: 724
  • Karma: +0/-0
  • https://forum.sparkylinux.org/index.php/topic,4614
Re: SOLVED: getcwd, leafpad, vi
« Reply #4 on: February 18, 2020, 03:59:43 pm »
I use lxterminal in wayand, - Sway in Sid.   Also available in my several years old sparky lxqt. 

I can confirm  that leafpad locked up my old sparky lxqt yesterday.  reminds me I have to ssh in to fix.   I will remove it, it was nice and light, but I will say goodbye.
« Last Edit: February 18, 2020, 04:05:31 pm by paxmark1 »
Search forum for "More info easier via inxi"    If requested -  no inxi, no help for you by  me.

Offline pccobbler

  • Newbie
  • *
  • Posts: 25
  • Karma: +0/-0
Re: SOLVED: getcwd, leafpad, vi
« Reply #5 on: February 20, 2020, 11:08:43 pm »
"I install sparky quite often and I never seen this specific error code."

Sorry, I should have copied the output from Sparky's update, but I was in a hurry to see if Budgie could be installed. It was quite strange, as the error message repeated at least twenty times. I'm going to reinstall Sparky-minimal in a few days, on a USB flash drive, so if the error shows up again, I will post it. The errors appeared in the very first auto-update, before I installed any software or modified anything. One thing that's possible is that the external enclosure I used is my worst one, meaning that I believe the controller has occasional USB or SATA errors. I use it only to test distributions. I should probably buy a new one.

Offline aus9

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: SOLVED: getcwd, leafpad, vi
« Reply #6 on: March 18, 2020, 02:43:05 am »
I found this post by searching for lxterminal....one of my fav.

I noticed that a moderator, lami07 has suggested vim (a terminal editor)  as an alternative. Can I suggest nano it easier to use?

Code: [Select]
nano /tmp/test
# type something
# press Ctrl + o  (o to over-write).......saves your typing
# press enter (You will see your  new file name at the bottom of the terminal
# press Ctrl + x ( eXit) ........................to go back to empty prompt line


combined screenshot shows filename to write to
and second box shows you do not even need to remember x or o
https://imgur.com/7hNKSNT
vim IMHO is much harder.....and involves the use of : which is needs a shift key to input.

my 2 cents worth.

Offline lami07

  • Global Moderator
  • Full Member
  • *****
  • Posts: 214
  • Karma: +0/-0
    • Sparky Community Repos
Re: SOLVED: getcwd, leafpad, vi
« Reply #7 on: March 18, 2020, 09:20:22 am »
@aus9. If you slow down for a moment and carefully read this thread you surely will realize that my mentioning vim was just a tip for OP's trouble with installation his editor of choice - vi. It was not a recommendation.

My personal editor of choice is nano.
Quote from: forum rules
When an issue has been resolved for you, please edit the original post to include <SOLVED> in the title. This provides a good indicator for users with a similar problem to check out the thread
Want to chat? Join #sparkylinux at irc.freenode.net