LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2012, 12:17 PM   #1
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Rep: Reputation: Disabled
VIM wont close, keeps leaveing swp files


totally new to linux
i'm running ubuntu server 12.4 on an old PC
i'm trying to make a home server
i've been tying to follow...
http://linuxhomeserverguide.com/
http://www.linuxuser.co.uk/tutorials...-file-server/2
but i notice when i try and execute commands from these howto's they dont work. i copy them letter for letter but i still get errors.
also when i edit the smb.conf and exit with "ZZ" it leaves a swp file and when i try and open it again i get a message the the swp file is there.

help please

ps shouls i have posted this in the server section?
 
Old 10-13-2012, 01:40 PM   #2
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch
Posts: 443

Rep: Reputation: 21
Quote:
Originally Posted by skinney View Post
totally new to linux
i'm running ubuntu server 12.4 on an old PC
i'm trying to make a home server
i've been tying to follow...
http://linuxhomeserverguide.com/
http://www.linuxuser.co.uk/tutorials...-file-server/2
but i notice when i try and execute commands from these howto's they dont work. i copy them letter for letter but i still get errors.
also when i edit the smb.conf and exit with "ZZ" it leaves a swp file and when i try and open it again i get a message the the swp file is there.

help please

ps shouls i have posted this in the server section?
This is a guess because you don't say specifically which file you are trying to edit, but if ZZ fails to work in Vim, it maybe because you started vim in your user account, and the file you are trying to change is for root only, ie you do not have permission to write to that file. Do
Code:
ls -l /path/to/file
e.g.
Code:
~ $ ls -l /etc/fstab
-rw-r--r-- 1 root root 699 Oct  9 08:12 /etc/fstab
If you are not logged in as root, vim will open this file as read-only, and will let you make changes in its buffer after issuing this message
Quote:
W10: Warning: Changing a readonly file
but it will not write your changes to the file itself, instead producing this dialog
Quote:
File permissions of "fstab" are read-only. ZZ
It may still be possible to write it.
Do you wish to try?

"fstab"
"fstab" E212: Can't open file for writing
Press ENTER or type command to continue

Last edited by porphyry5; 10-13-2012 at 01:42 PM.
 
Old 10-13-2012, 01:48 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
Duplicate of:
http://www.linuxquestions.org/questi...er-4175431886/
 
Old 10-13-2012, 03:56 PM   #4
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Original Poster
Rep: Reputation: Disabled
yeah, sorry for the duplicate.
i didn't think my first one posted
i couldn't find it so i posted again
 
Old 10-13-2012, 04:48 PM   #5
mmheera
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Ubuntu, Debian, Fedora,Windows 7
Posts: 107

Rep: Reputation: 11
If you are new to linux, it is good to give some time to learn a few basics. Don't just follow the instructions but try to understand also what you are doing and why. Spend a little time to read the introductions. You may check this:

http://www.linuxhomenetworking.com/wiki/

Regards.
 
1 members found this post helpful.
Old 10-13-2012, 05:58 PM   #6
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Original Poster
Rep: Reputation: Disabled
absolutely!
i want to know what i'm doing so i can manage/administer it confidently and securely

thx!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sound wont stop when i close kaffeine Arkan123 Linux - Newbie 2 01-14-2006 07:57 AM
How to deal with huge swp files such as .store.log.2.swp from squid directory? Niceman2005 Linux - General 2 11-01-2005 08:25 AM
removing hidden .swp files blackzone Linux - Newbie 1 08-26-2004 03:49 AM
X Wont Close (Kernel 2.6 + ATI) dawizman Linux - Software 3 05-13-2004 10:22 AM
.swp files sadiboyz Linux - Newbie 2 05-02-2003 12:33 AM


All times are GMT -5. The time now is 02:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration