LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-20-2009, 05:39 PM   #1
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Rep: Reputation: 32
Centos 5 questions


I could't find a Centos forum if any. Apologies if i missed it.

I have a few diverse questions;
  • I am trying to install the reiserfs drivers to read/write to my external drive. But keep getting command not found. Although the system can get man pages for modprobe.

    modprobe reiserfs
    bash: modprobe: command not found


  • What repos do I need in order to download flash player for my browser.

  • I can find /etc/resolv.conf to setup nameserver. But where do i set up ip for gateway and host.? As in Debian's /etc/network/interfaces.
 
Old 07-20-2009, 08:48 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by siawash View Post
bash: modprobe: command not found
Happens when /sbin is not in your $PATH: either prefix it when executing a command or add it to /root/.bash_profile.


Quote:
Originally Posted by siawash View Post
What repos do I need in order to download flash player for my browser.
Dag Apt Repository, http://dag.wieers.com/apt/


Quote:
Originally Posted by siawash View Post
where do i set up ip for gateway and host.? As in Debian's /etc/network/interfaces.
Hostname is HOSTNAME in /etc/sysconfig/network and IP, gw, net and 'mask are IPADDR, GATEWAY, NETMASK and NETWORK in /etc/sysconfig/network-scripts/ifcfg-eth.*$. If the host uses DHCP you could use fixed-address and supersede statements in /etc/dhclient-eth.*\.conf, and please note that Centos is derived from RHEL meaning it inherited the installation and administration documentation too.
 
Old 07-20-2009, 08:54 PM   #3
jhcaiced
Member
 
Registered: Mar 2009
Distribution: CentOS - Ubuntu - Debian
Posts: 83

Rep: Reputation: 27
Hi,
Quote:
  • I am trying to install the reiserfs drivers to read/write to my external drive. But keep getting command not found. Although the system can get man pages for modprobe.
    modprobe reiserfs
    bash: modprobe: command not found
You need to specify the correct path for the modprobe command,
usually:
/sbin/modprobe reiserfs

(I am not sure but I think reiserfs doesn't come installed
by default in CentOS kernels)

Quote:
  • What repos do I need in order to download flash player for my browser.
I haven't found a rpm install for the flash player but it's
easy to do manually, just download the file from:
http://www.adobe.com/support/flashplayer/downloads.html

Extract the file called libflashplayer.so in the .mozilla/plugins
directory of your account and start firefox, the plugin
should be detected by firefox.

Quote:
  • I can find /etc/resolv.conf to setup nameserver. But where do i set up ip for gateway and host.? As in Debian's /etc/network/interfaces.
In CentOS, the configuration for network interfaces
comes in the files at /etc/sysconfig/network-scripts,
if your interface is eth0, there will be a file
called ifcfg-eth0 edit that file and setup
the gateway with a line:
GATEWAY=XXX.XXX.XXX.XXX

Hostname of the server can be set in the file
/etc/sysconfig/network, there should be a line
called HOSTNAME=xxxxxxx

Best regard.
 
Old 07-21-2009, 02:42 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The supported repo for flash-plugin :
http://fedoraproject.org/wiki/Flash
> >
http://get.adobe.com/flashplayer/
> select 'Yum'
... and get the repo file adobe-release-i386-1.0-1.noarch.rpm
( 4.3 kB )
.....
 
Old 07-21-2009, 02:05 PM   #5
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
Hi folks, thanks for everything. I think I managed most of the tasks as shown below including adobe flash plugin with only the real player 11 and reiserfs remaining.

I also need to know how to add myself in the sudoers file. Unlike Debian I cannot run "visudo".



Here is what happens when i try the modprobe command pre .bash_profile modification.

[root@cento siawash]# /sbin/modprobe reiserfs
FATAL: Module reiserfs not found.
[root@cento siawash]#

Then I added /sbin to .bash_profile
-------------------------------------------------------------------------------------------------------------------------------
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin;/sbin
---------------------------------------------------------------------------------------------------------------------------

export PATH
unset USERNAME

-----------------------------------------------------------------

post .bash_profile modification


[root@cento siawash]# /sbin/modprobe reiserfs
FATAL: Module reiserfs not found.

**************************************************************************************************** ************************

This my modified network script.

From my understanding of your post there is no explicit script to determine dhcp or static addressing. i.e. The above network scrip would override the network settings. In addition to network I also found a networking and a network-scripts file which I was not sure what to do with.

Network script:


NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=cento.mydomain.com
GATEWAY=192.168.0.1
IPADDR=192.168.0.5
NETMASK=255.255.255.0
NETWORK=192.168.00
~

Last edited by siawash; 07-21-2009 at 02:16 PM.
 
Old 07-21-2009, 02:25 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
FYI if you use su to become root then you will still use the current users environment unless you add a - i.e.
su -

As already stated the default kernel does not include support for resierfs
To add support you will need to include the centosplus repositories.
http://mirror.centos.org/centos/4/centosplus/Readme.txt
http://wiki.centos.org/Repositories/CentOSPlus
http://www.electrictoolbox.com/mount...ions-centos-4/

You can use any text editor to modify the files like gedit
 
Old 07-21-2009, 04:04 PM   #7
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
Hi, the reason I want to add myself to sudoers is to save myself the hassle of having to login as root each time I want to install something. Do you mean Centos does not have a visudo utility?

I went through the reiserfs instructions step by step. By adding the scripts to
CentOS-Base.repo. My kernel is now updated to Installed: kernel-xen.i686 0:2.6.18-128.2.1.el5.
However, when i reboot and check

cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cpuset
nodev binfmt_misc
nodev debugfs
nodev securityfs
nodev sockfs
nodev usbfs
nodev pipefs
nodev anon_inodefs
nodev futexfs
nodev tmpfs
nodev inotifyfs
nodev eventpollfs
nodev devpts
ext2
nodev ramfs
nodev hugetlbfs
iso9660
nodev mqueue
nodev selinuxfs
ext3
nodev rpc_pipefs
nodev autofs

I have saved all the verbose command output. I am not including them here because its too long.
 
Old 07-21-2009, 04:54 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
I would expected you to have a plus kernel but your last post does not indicate you are running one.

You did add this line to your configuration file?
includepkgs=kernel* reiserfs-utils
 
Old 07-21-2009, 05:38 PM   #9
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
This what i have in my CentOS-Base.repo file:
------------------------------------------------------------------

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
exclude=postfix-*
exclude=kernel kernel-devel kernel-smp-* kernel-hugemem* kernel-largesmp* (CentOS 4 only)
exclude=kernel kernel-devel kernel-PAE-* (CentOS 5 only)


#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus

#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
includepkgs=postfix-*
exclude=postfix-*plus*
enabled=1
includepkgs=kernel* jfsutils reiserfs-utils



#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
exclude=postfix-*
exclude=kernel kernel-devel kernel-smp-* kernel-hugemem* kernel-largesmp* (CentOS 4 only)
exclude=kernel kernel-devel kernel-PAE-* (CentOS 5 only)



name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
exclude=xfs* kmod-xfs* dmapi*


#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
includepkgs=kernel* reiserfs-utils


#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
 
Old 07-21-2009, 05:56 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
You have two centosplus sections. Could be the problem.
 
Old 07-21-2009, 07:02 PM   #11
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
Yes, I removed the duplicate entry. Then updated yum and reboot. But then tried;
------------------------------------------------------------------------------------------

[root@cento siawash]# yum install reiserfs-utils kernel
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* extras: ftp.heanet.ie
* base: ftp.heanet.ie
* updates: ftp.heanet.ie
Excluding Packages from CentOS-5 - Extras
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Addons
Finished
Setting up Install Process
Parsing package install arguments
No package reiserfs-utils available.
Package kernel-xen-2.6.18-128.2.1.el5.i686 already installed and latest version
Nothing to do
---------------------------------------------------------------------------------------

Also tried

[root@cento siawash]# /sbin/modprobe reiserfs
FATAL: Module reiserfs not found.
 
Old 07-23-2009, 01:48 AM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I think you need the CentosPlus repo: http://isoredirect.centos.org/centos...lus/i386/RPMS/
http://wiki.centos.org/AdditionalRes...s%2FCentOSPlus
 
Old 07-23-2009, 06:21 PM   #13
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Rep: Reputation: 18
Yes Centos does have a visudo utility.
You can also add yourself to the group 'wheel' as users in that group usually have sudo access. But again, its something that must be specified with visudo.

to run visudo just type

Code:
visudo
 
Old 07-23-2009, 06:52 PM   #14
siawash
Member
 
Registered: Jun 2004
Location: Ireland
Distribution: Zorin 6
Posts: 589

Original Poster
Rep: Reputation: 32
As you can see I tried this as root and also with /sbin. But it was not recognized.

[root@cento siawash]# visudo
bash: visudo: command not found
[root@cento siawash]# /sbin/visudo
bash: /sbin/visudo: No such file or directory
[root@cento siawash]#
 
Old 07-24-2009, 03:33 AM   #15
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Rep: Reputation: 18
check if sudo is installed

Code:
rpm -qa | grep sudo
 
  


Reply



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
Newbie Questions with FreeRadius on CentOS 5.2 budlightnmyhand Red Hat 1 09-10-2008 04:16 AM
Using CentOS over RHEL: Some questions Swakoo Linux - Enterprise 8 03-20-2007 08:30 PM
Questions about bridging on CentOS ouroboros1827 Linux - Networking 1 02-22-2007 12:11 AM
Several Redhat and CentOS Questions V Naveen Linux - General 3 01-12-2007 03:44 AM
CentOS - some basic questions marshalx Linux - Newbie 1 11-13-2005 06:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:49 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
Open Source Consulting | Domain Registration