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 06-24-2013, 12:26 AM   #1
mpvmud
LQ Newbie
 
Registered: Jun 2013
Location: Iowa
Distribution: CentOS 6.4
Posts: 7

Rep: Reputation: Disabled
Need help new with CentOS


Hello everyone,

I am new to the forums but not quite new to linux. I feel like I am new again because this is the first time running CentOS (Which is a pretty smooth system I must add and I have been enjoying using). So what I am using this system for is a very simple MUD server.

Quit overkill on the system it is on, an AMD 64 3.2ghz dual core, 4GB RAM.

Well my problem is, I have tried using KDE to install GNU because I need gcc to use my makefile to compile the mud. I could use some help with this.

Another problem I am having is with FTP. I can connect to the server, access my files, but I can not write anything from my windows box to the linux box. I get:

> TYPE I
< 200 Switching to Binary mode.
> PASV
< 227 Entering Passive Mode (192,168,1,150,66,197).
> STOR 1000.log
< 553 Could not create file.
Error 553 Could not create file.
> CWD /mpvmud/mud/src/
< 250 Directory successfully changed.
> TYPE A
< 200 Switching to ASCII mode.
> PASV
< 227 Entering Passive Mode (192,168,1,150,229,207).
> LIST
< 150 Here comes the directory listing.
< 226 Directory send OK.
! 257 bytes received/sent in 0 seconds

Now I have for what I know all permissions set for my user account for the directory everything is under. I have even tried chmod 777 on everything just to make sure there is 100% access but it still seems to not work correctly.

Now... please take your time, last time I had a linux class it was 2002 and that was running Red Hat Linux. So I might be in here a lot until I can get this box setup right. Pretty much what I need left is a compiler to work, I am ok with working with vi for programming, and to be able to FTP in to backup files.

Thank you with your time and patience.
 
Old 06-24-2013, 10:53 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
well the gcc part is simple. as root type the following command:

Code:
# yum -y install gcc gcc-devel
this will install and or update the latest gcc as well as gcc-devel, the development packages.

you might want to perform a yum search gcc before the above command so you can grab what ever is specific to your OS as you didnt state if this is a 32 or 64bit build of CentOS, nor what vs of CentOS you are running.

as for your FTP issues, as a test can you use any other system to ftp into the server? this could be a simple configuration issue on the server, or it could be an issue on the XBox as to how it performs ftp actions. keeping in mind that MS does not perform FTP properly.

is FTP the only option for backing up files? what about a local share? if you can perform a local share you can either mount the XBox as vfat on the CentOS box, or setup SAMBA and share out a director for the XBox to mount (network drive).
 
Old 06-24-2013, 03:22 PM   #3
mpvmud
LQ Newbie
 
Registered: Jun 2013
Location: Iowa
Distribution: CentOS 6.4
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lleb View Post
well the gcc part is simple. as root type the following command:

Code:
# yum -y install gcc gcc-devel
this will install and or update the latest gcc as well as gcc-devel, the development packages.

you might want to perform a yum search gcc before the above command so you can grab what ever is specific to your OS as you didnt state if this is a 32 or 64bit build of CentOS, nor what vs of CentOS you are running.

as for your FTP issues, as a test can you use any other system to ftp into the server? this could be a simple configuration issue on the server, or it could be an issue on the XBox as to how it performs ftp actions. keeping in mind that MS does not perform FTP properly.

is FTP the only option for backing up files? what about a local share? if you can perform a local share you can either mount the XBox as vfat on the CentOS box, or setup SAMBA and share out a director for the XBox to mount (network drive).
Ok I have gnu working thanks.

It is CentOS 6 32bit version 6.4. Would be the latest release offered on the CentOS site.

Ok for FTP, I do not have a monitor on the box so it is hard to go in and keep changing things, so if I could setup sharing between win7 and the box that would be perfect. Now I do not remember how to setup the linux box on sharing with windows anymore. I know in the past I use to do that and then just transfer back and forth like if I was talking to another windows computer.
 
Old 06-24-2013, 03:28 PM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,774
Blog Entries: 1

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
Quote:
Originally Posted by mpvmud View Post
Ok I have gnu working thanks.

It is CentOS 6 32bit version 6.4. Would be the latest release offered on the CentOS site.

Ok for FTP, I do not have a monitor on the box so it is hard to go in and keep changing things, so if I could setup sharing between win7 and the box that would be perfect. Now I do not remember how to setup the linux box on sharing with windows anymore. I know in the past I use to do that and then just transfer back and forth like if I was talking to another windows computer.
First enable SSH on the box, and get yourself a copy of Putty and Winscp so you can access the box without a monitor.

Second thing you are going to need to do is modify the permissions of that directory so they are writable by the ftp user.
 
Old 06-24-2013, 03:30 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
A better option that ensures that you are not missing needed parts of the gcc/ development tools is to use the install " GROUP "
To see the available software groups run
Code:
su -
--- your root pass when asked for ---
yum grouplist 

---- then from that rather LONG list ----

yum groupinstall "Development tools" 

---- and if you are building something that is using Gnome ---

yum groupinstall "Desktop Platform Development"
 
Old 06-24-2013, 06:54 PM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by szboardstretcher View Post
First enable SSH on the box, and get yourself a copy of Putty and Winscp so you can access the box without a monitor.

Second thing you are going to need to do is modify the permissions of that directory so they are writable by the ftp user.
as you are running CentOS ssh will already be enabled, but you might need to adjust the IPTables and or SELinux to allow connection.

http://www.cyberciti.biz/faq/rhel-fe...tion-tutorial/

the line can look like the following:

Code:
4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
this allows any IP from any network to access the server via SSH. note i have mine locked by a hardware firewall so not as open as it appears.

http://wiki.centos.org/HowTos/SELinux

here i my status that allows for ssh connection as well as for several other types of connections i have setup via IPTables.

Code:
# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          permissive
Policy version:                 24
Policy from config file:        targeted
you can just set your /etc/selinux/config to passive. DO NOT DISABLE it just put it to passive.

Code:
# cat /etc/selinux/config 

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=permissive
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
after making these changes you will need to reboot the server for the SELinux changes to take effect.

Code:
# shutdown -r now
will do the trick even via putty:

http://www.chiark.greenend.org.uk/~s.../download.html

just grab putty.exe and you will be set there.

as for WinSCP, id recommend against that for now as of late WinSCP downloads have been full of not so safe code. Id use FileZilla for now:

https://filezilla-project.org/download.php

good luck. post back when you need further help.

FYI my CentOS 6.x box has neither a keyboard nor a monitor. I connect via ssh only.
 
Old 06-24-2013, 07:18 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
I missed this
Quote:
I have even tried chmod 777 on everything j
not good

if you do that on the wrong folder like "/home/YourUserName"
SElinux will BLOCK you from even loging in

and if you did that to most of the folders on "/" ( /bin,/usr,/etc,and so on )
Centos will NOT even let you boot the system until it is fixed
 
Old 06-24-2013, 09:25 PM   #8
mpvmud
LQ Newbie
 
Registered: Jun 2013
Location: Iowa
Distribution: CentOS 6.4
Posts: 7

Original Poster
Rep: Reputation: Disabled
No there is nothing wrong with SSH. I am able to get into shell just fine. It is just the write using FTP that is the only issues atm. I use putty to code so there are no issues with ssh. I only used chmod 777 on the MUD files themselves nothing in the linux system has been changed.

I will try and check on the FTP permissions.
 
Old 06-24-2013, 09:38 PM   #9
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
also post your conf for your ftp program.
 
Old 06-24-2013, 09:50 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
most of the files in that folder will need the permission of 644 with the executable programs "+x" or 755

777'ing files is not recommended (as always there are exceptions )
but that makes EVERY file editable( and runnable) by EVERYONE - including any random person on the internet

As to using ftp to read/write to the linux box from a windows
I would start with using Filezilla on windows - it is a great program and is native to linux,windows and Apple

then the issue of setting up the ftp server on linux

centos has a nice default server in the repos

The CentOS documents as of rhel6/centos6 ARE the red hat docs
-- for ftp see
https://access.redhat.com/site/docum..._Protocol.html


slightly older but is fine
http://ostechnix.wordpress.com/2013/...fic-linux-6-x/
-- or --
http://sharadchhetri.com/2013/02/16/...vsftpd-server/
 
1 members found this post helpful.
Old 06-25-2013, 12:24 AM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
If ssh is fine, then use that instead (scp or sftp).
In fact if you use Filezilla and tell it to use port 22, it'll automatically fire up sftp.
No need for an insecure protocol like ftp.
 
1 members found this post helpful.
Old 06-25-2013, 12:48 AM   #12
mpvmud
LQ Newbie
 
Registered: Jun 2013
Location: Iowa
Distribution: CentOS 6.4
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
If ssh is fine, then use that instead (scp or sftp).
In fact if you use Filezilla and tell it to use port 22, it'll automatically fire up sftp.
No need for an insecure protocol like ftp.
Beautiful! Filezilla works like a charm using ssh

Ok I should be good to go! Thanks everyone.
 
Old 06-25-2013, 12:49 AM   #13
mpvmud
LQ Newbie
 
Registered: Jun 2013
Location: Iowa
Distribution: CentOS 6.4
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lleb View Post
also post your conf for your ftp program.
I was using FTPCommander and with switching to filezilla my problems are solved

Thank you
 
Old 06-25-2013, 05:33 AM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Glad it worked. In that case, you might want to remove the ftp service; extra security.
 
  


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
Email with Postfix,Dovecot & MySQL on CentOS 5-CentOS 6 issues redhat19 Linux - Server 6 05-12-2012 10:15 AM
Unifying permissions between two servers (CentOS + Webmin/CentOs +Cpanel) and rsync d60eba Linux - Server 1 01-01-2010 01:55 PM
LXer: PV-Grub on CentOS 5.2 PV DomU at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit) LXer Syndicated Linux News 0 10-05-2008 11:12 PM
printer setup from Centos 5 to Vista home prem. on a headless centos pc ncsuapex Red Hat 6 03-10-2008 12:40 PM
LXer: Install CentOS 5 DomU on CentOS 5 Dom0(64 bit) from NFS share LXer Syndicated Linux News 0 11-09-2007 04:41 AM


All times are GMT -5. The time now is 02:34 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