LinuxQuestions.org
Visit Jeremy's Blog.
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 07-08-2008, 05:35 PM   #1
xwishmasterx
Member
 
Registered: Jul 2008
Posts: 30

Rep: Reputation: 0
Question Complete noob lost in Linux World. Need Help :-)


Hello

As the title say, a Noob lost...

I have a NAS, (WD MyBook world edition II) And so I want to install some FTP so I can access the hardisk remotely. I have read tons of pages, forum posts, and was "told" I needed to use "ssh". OK followed some guidelines, and by using "PuTTy" I was able to gain access (I think). Following the guide I ended up in [root@MyBookWorld ~] #.

Ok know they guide tells me to add something to the /etc/inittab
PROBLEM!!: How the H... do I do that?!
(guide can be found at nanalegumene.net/using-ssh-and-ftp-on-western-digital-mybook-world/

I really need someone to explain this to me like I am a four-year-old with learning dissorders, 'cause this Linux is Greek to me:-)

Hope someone will try and answer the post and help me out :-)

Regards,
Casper
 
Old 07-08-2008, 07:09 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,359
Blog Entries: 55

Rep: Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545Reputation: 3545
Hello and welcome to LQ. Hope you like it here.


Quote:
Originally Posted by xwishmasterx View Post
Ok know they guide tells me to add something to the /etc/inittab
PROBLEM!!: How the H... do I do that?!
Type this:
Code:
cp /etc/inittab /etc/inittab.clean
echo '::sysinit:/usr/sbin/sshd' >> /etc/inittab
The other commands can be run as posted, just remove the comment character in from of them: so "# su" becomes just "su" and "# cd /etc/init.d" becomes "cd /etc/init.d".
 
Old 07-09-2008, 10:39 AM   #3
xwishmasterx
Member
 
Registered: Jul 2008
Posts: 30

Original Poster
Rep: Reputation: 0
thanks for the quick reply.

I had a couple of problems..(can't even follow two easy steps..doh!)

I first tried:
Code:
[root@<iphere> ~]# cp /etc/inittab.clean
which returned:
Code:
missing destination file operand after `/etc/inittab.clean'
Try `cp --help' for more information.
Thought I might had to write both lines in one "big" line:

Code:
[root@iphere ~]# cp /etc/inittab.clean echo '::sysinit:/user/sbin/sshd' >> /etc/inittab
But that returned:
Code:
target `::sysinit:/user/sbin/sshd' is not a directory
[root@ ~]#
So what do I do wrong?
 
Old 07-09-2008, 10:53 AM   #4
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Stretch Amd64
Posts: 1,477

Rep: Reputation: Disabled
I think the command should be as follows:

Code:
cp /etc/inittab /etc/inittab.clean/
echo '::sysinit:/usr/sbin/sshd' >> /etc/inittab
Don't forget the first part of the cp command.
Regards.
The trooper.
 
Old 07-09-2008, 11:01 AM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
Quote:
I think the command should be as follows:
...not quite.
it was:
Code:
cp /etc/inittab /etc/inittab.clean
- and that is what it was from the beginning - xwishmasterx just forgot to type half of it

Last edited by jomen; 07-09-2008 at 11:04 AM.
 
Old 07-09-2008, 11:28 AM   #6
xwishmasterx
Member
 
Registered: Jul 2008
Posts: 30

Original Poster
Rep: Reputation: 0
well, I did remember to write the first part, but had a couple of typos..lol.

I tried again and got no return messages. (this is good right?)

Now when following this "guide" it gives this code to install some ftp script-thingie-stuff:


Code:
wget ftp://ftp.penguin.cz/pub/users/mhi/mybook/vsftpd.tar.gz -q -O - | tar xzvf - -C /
It returns the following error:

Code:
wget: illegal option -- 0

what is wrong here..?

AND..while I am here..after installatioon, I am suppose to "Use vi and open /etc/vsftpd.conf."

What is vi, and how can I access the config options?

Hope I don't sound to retarded..lol

Casper
 
Old 07-09-2008, 11:43 AM   #7
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
Quote:
Hope I don't sound to...
no - but on a few of those question you could have used a search engine instead...

"vi" is an editor - to make changes to the file - to make it fit your needs
You can (and probably should) use any other editor - "nano" will be easier on you

Code:
wget ftp://ftp.penguin.cz/pub/users/mhi/mybook/vsftpd.tar.gz -q -O - | tar xzvf - -C /
this line are really two commands:
(get the archive from the web)
Code:
tar xzvf vsftpd.tar.gz -C /
(unpack the tar.gz archive into the / directory)

What is that guide which recommends to unpack an archive right into / ?
You should really make sure before you do that - unpack it to a directory into your /home first - and later move it.
Quote:
I tried again and got no return messages. (this is good right?)
You can always use "ls" to check what you did:
Code:
ls -al /etc/init*
will list both the new (backup) and the original file - if only one is there - something went wrong.

Last edited by jomen; 07-09-2008 at 11:50 AM.
 
Old 07-09-2008, 12:08 PM   #8
xwishmasterx
Member
 
Registered: Jul 2008
Posts: 30

Original Poster
Rep: Reputation: 0
ok..thanks for the reply:-)

I've found the "nano" website with mulitple download options, but the unzipped files is not really do me any good..Let me guess,: it needs to be installed? (wonder if I'll ever get this done..and working..lol)

Ok, so How do I install this nano thing?


by the way, I thought tha PuTTy program was such and editor...guess not...I tried the "/etc/vsftpd.conf" command and it returned:

Code:
-bash: /etc/vsftpd.conf: Permission denied
any ideas why? what permission?


Casper

PS. you can find the address to the guide that "recommends" installing to "/", in the very first post.

Last edited by xwishmasterx; 07-09-2008 at 12:28 PM.
 
Old 07-09-2008, 12:19 PM   #9
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Stretch Amd64
Posts: 1,477

Rep: Reputation: Disabled
My bad! i typo'd also.Cheers for correcting jomen.
 
Old 07-09-2008, 12:31 PM   #10
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
I forgot for a moment that we are talking about some embedded system(?) - so it seems vi is your only option. My bad.
Also forget my complaits on how you are supposed to install it - it is probably o.k.
Find some info on how to use vi though...
 
Old 07-09-2008, 07:53 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
vi: http://www.lagmonster.org/docs/vi.html
 
Old 07-11-2008, 12:39 PM   #12
xwishmasterx
Member
 
Registered: Jul 2008
Posts: 30

Original Poster
Rep: Reputation: 0
Unhappy

Thanks for all your help guys (girls?), but I have come to realize that this is way to wierd (and complicated) for me to do. I simple do not have time or the will to learn what I need, to make this work probably.

Thanks anyway:-)

Casper
 
Old 07-11-2008, 04:13 PM   #13
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
Sorry to hear that - I read through the guide and it all seems pretty straightforward.
But you made a typo - can't you just use copy&paste instead of typing it in?
One typo was in the command to download and extract it - this is why you got the error.
-O ... this is the capital letter "O" and not the number 0
wget ftp://ftp.penguin.cz/pub/users/mhi/mybook/vsftpd.tar.gz -q -O - | tar xzvf - -C /

Or is the problem with "vi" ?

You can start to type after you hit "i" for "insert"
When you are done you save the file by
1.) hitting ESCAPE (to change the mode from insert mode to command mode)
2.) then you type " :wq " for write and then quit

A little more effort is required to know what needs to be written to configure the ftp-server so you can use it.
 
Old 07-12-2008, 02:13 AM   #14
xwishmasterx
Member
 
Registered: Jul 2008
Posts: 30

Original Poster
Rep: Reputation: 0
Well, first yes the problem right now is "vi". I need to knnow how to install it (where to get it) and so on...

SO as you can see we have a long road ahead of us.

Casper
 
Old 07-12-2008, 02:39 AM   #15
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
From what I read in that guide I had the impression that "vi" was just put to use - it was used because it is already installed there.
Is it not?
After all, it is a linux system - even though a stripped down one.

vi /etc/vsftpd.conf will open the file /etc/vsftpd.conf in vi
hit i and start to edit - when you are done : ESCAPE followed by :wq and you are done (don't forget the colon)
 
  


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
<--Complete Linux Noob stevejoul LinuxQuestions.org Member Intro 4 06-13-2008 01:30 PM
just got damn small linux and am a complete and total noob jcapinc Linux - Newbie 1 11-02-2007 09:03 PM
COMPLETE LINUX NOOB - needs wireless networking help. noobrm Linux - Wireless Networking 13 02-13-2007 05:19 AM
Complete Linux noob BurtonSquirton Linux - Software 7 08-24-2004 01:32 PM
Complete linux noob trying to configure his hardwares... skyro Linux - Hardware 3 10-17-2003 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:53 PM.

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