Tag Info

New answers tagged

1

I think he meant: $ who -am i which could (depending) be parsed the same as: $ who -am The "-a" lists all users currently logged in and "-m" filters that down to only those users (should really be one) who are associated with who's STDIN, which is to say it'll tell you who is logged in at your terminal. That's what you're looking for. $ who -am


0

Please read the below note form CentOS. It clearly says: CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by Red Hat1.CentOS conforms fully with Red Hat's redistribution policy and aims to have full functional compatibility with the upstream product. CentOS mainly changes packages to remove ...


0

This question discussion http://stackoverflow.com/questions/16880830/centos-5-8-with-gcc-4-4-7-links-against-libstdc-6-0-8-how-is-it-possible has given me a key to resolution. There are standard packages gcc44 and gcc44-c++ exist for RHEL5.


0

You may also try avconv: $ avconv -t 1 -s 2024x768 -f x11grab -i :0.0+0,0 -r 0.5 -f image2 foo.png May be a bit exaggerated, though. Note to adjust your desktop size as "2024x768" might not fit.


0

From the comments, it sounds as if you added a 3rd Party repo before registering with RHN. By doing so, every package on the system is treating the third party repo as all repos. Please: Remove the 3rd-Party Repo from /etc/yum.conf or /etc/yum.repos.d/redhat.repo Read all of Chapter 5: Registering a Redhat System Register the system as per Chapter 5. ...


0

If none of the other options are working you can use the command line to acquire screenshots too. $ import screenshot.png $ import -window root -resize 400×300 -delay 200 screenshot.png This is part of ImageMagick. There's also scrot too. $ scrot MyScreenshot.png $ scrot -b -d 5 '%Y:%m:%d:%H:%M:%S.png' -e 'mv $f ~/Desktop/' In this example, -b ...


1

Short answer: You can't. work around: change twice, e.g. old passwd is Bilbo1, change to Frodo1 (from Bilbo1), then change to Bilbo2 (from Frodo1). why two changes ? on the first change, Linux can only compare clear text Bilbo1 and Frodo1, on second Linux can only compare Frodo1 and Bilbo2 (and all the crypted passwd, you can't revert to ...


2

Check if immutable flag is set on .bash_profile: lsattr .bash_profile You can remove it with: chattr -i .bash_profile HTH, Cheers


0

That's really strange, you should be able to kill the process regardless of the user root or any other user and the fact that it gets owned by root. I understand it's hard that it's hard to even begin to solve it since it's not a common issue. Have you done any updates? My main question is when you kill the process are you doing sudo kill -KILL PID? ...


0

You should definitely look into /etc/init.d/functions. There is a nice function called daemon. It will run your program as specified user. Example: daemon --user=your_user /apps/data/service/bin/startup.sh &>/dev/null & ← or some logfile maybe… Init script you can copy from some other service ;-) HTH, Cheers


1

You can download ISO files and burn it into a CD/DVD using specific format and continue the installation offline. Hope below links address your issues: https://access.redhat.com/articles/142303 http://www.redhat.com/download/howto_download.html+++#3


1

This blurb on the Sun Studio 12 website would seem to imply that they're basically useless. excerpt - http://docs.oracle.com/cd/E19205-01/819-5257/blabs/index.html If Your Core File Is Truncated If you have problems loading a core file, check whether you have a truncated core file. If you have the maximum allowable size of core files set too ...


0

I finally found a solution! After flushing iptables, it's allowing telnet connection. I don't know the difference between flushing iptables and stopping iptables stop but this seems to work.


1

~/.bashrc is only executed for non-login shells, check your terminal settings: Edit -> Profile Preferences -> Title and Command -> "Run command as a login shell The usual ~/.profile loads ~/.bashrc if it is available, if - assuming $BASH_VERSION is present in your environment. Keep in mind though that ~/.profile is ignored if if there's ...


0

I think there are two questions in there. a. What would happen to Redhat if and when it says "no more RHEL clones" b. What would happen to the clones themselves. As far as a. is concerned, there would be a backlash from the community and there might be some exits from the company itself, maybe not so drastic but certainly there would be disquiet within ...


0

I have seen OSSEC connection related questions here and on other websites, with no suitable answer. Did you check the server log and does it show "Message from w.x.y.z not allowed"? That indicates (I think) an IP address mismatch. The messages from the agent are getting through, i.e. no firewall or NAT issues, but the server does not accept them. The IP ...


1

This comment by ott-- seems correct. If the screen dump above is complete, the service is only listening to 5500 on IPv6 and it's not listening to 1158 at all.


2

The answer from slm is very good, but I was interested in exactly which files are going to be modified. This can be found in /usr/share/authconfig/authinfo.py. The below excerpt is from CentOS6: SYSCONFDIR = "/etc" PASSWORD_AUTH_PAM_SERVICE_AC = "password-auth-ac" FINGERPRINT_AUTH_PAM_SERVICE_AC = "fingerprint-auth-ac" SMARTCARD_AUTH_PAM_SERVICE_AC = ...


0

If you just want to make sure that your script restarts when it dies, you can do something like while true ; do php my_script.php ; done > /dev/null This will wait for my_script.php to finish running, and then run it again. All output will be sent to /dev/null If you want to use nohup, then you should do the following $ echo 'while true ; do php ...


-3

You could try the following technique of ssh'ing into server1 followed by ssh'ing into server2. $ ssh -t user1@server1 ssh -t user2@server2 Doing it like this works for me.


0

With nohup you must redirect also errors. The next command run script with output and errors redirecting to /dev/null: nohup php my_script.php >/dev/null 2>&1 & But your script can be terminated by some other reasons (error in script, oom-killer, etc). So, you should daemonise it by system's init (if it support auto-restart - upstart, ...


0

whatis displays one-line manual page descriptions, intended to give you a general idea of what a program do, while apropos searches the manual page names and descriptions, intended to help you to learn what program to use when performing a certain job. Some examples Say, I want to know what does df program do. whatis gives me answer. $ whatis df df (1) ...


2

Perhaps you want to see what's going on and not redirect output to /dev/null. I suggest you open a screen or tmux session. Both are terminal multiplexers, which will stay alive even if you log out. E.g. (..) for info $ screen $(inside screen-t1): ./get_tweets.php .... running first Now press Ctrl-a c to open a new terminal. $(inside screen-t2): ...


0

I have found a solution to my problem. I don't know the default behavior of the Overview w/o extensions (because I installed the Workspace Grid extension almost immediately), but it turns out that my experience is not the default behavior with Workspace Grid installed. Indeed, the Workspace List is supposed to appear as soon as the Overview is brought up, ...


1

If you know the passwd, you can generate de md5 string with openssl passwd -salt $salt -1 foo The point is getting the value for "$salt". This can be retrieved using awk on the crypted passwd from /etc/shadow. echo $CRYPTIC | awk -F\$ '{print $3}'


1

# yum provides '*bin/g++' ... gcc-c++-4.4.7-4.el6.i686 : C++ support for GCC Repo : sl Matched from: Filename : /usr/bin/g++ tells us that the gcc-c++ package has g++, so you'll need to run: yum install gcc-c++


0

You can use the command command-not-found to search for the package of g++ and how to install it. On my debian machine, I get this result: $ command-not-found g++ The program 'g++' is currently not installed. You can install it by typing: apt-get install g++ tcsh: command not found $ So, on my computer, g++ is in the package g++ and not in the package ...


1

or is it already installed Looks like it is not; if it were g++ would be available. Try: yum search ++ | grep ^g The package is likely called gcc-c++, but this should catch it just in case it is, e.g., just g++. Do not use one of the packages with "cross" in the description (e.g., "Cross-build binary for ....").


1

While you could dive to the bottom of the pool on this, in this case, I'd say you should just tell RPM to skip that script: # rpm -e --noscripts vmware-open-vm-tools-xorg-utilities If that's not a "leaf" in the dependency graph, I'd force uninstall just that one package, then remove the others that depended on it without skipping scripts: # rpm -e ...


1

How did you install PHP 5.5 in the first place? Because the default PHP version in RHEL and CentOS 6 is PHP 5.3.3 and installing mcrypt support would than be as simple as installing the php-mcrypt package. If you built PHP from source did you install the libmcrypt-devel rpm package beforehand and include mcrypt support in your ./configure options? The ...


1

Since this is the way to enable a function that acts on pressing Ctrl+Alt+Del, it is also the, probably official, point to switch if off. You should just comment out ('#' in front of the line) the exec shutdown... and there is no need to insert exec /bin/true. No need to keep a copy of the file if you just comment things out. I would reboot the system ...


2

I needed cmake 2.8 on CentOS 6.5, but my attempts at using yum would also always keep cmake at 2.6 even though I tried adding repos that seemingly contained the correct version. It's kind of hacky, but I was able to get what I needed by executing the following commands as root: wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm ...


2

This is Predictable Network Interface Device Names in action. en is for Ethernet o is for on-board The number is a firmware/BIOS provided index. More details in the source of udev-builtin-net_id.c


4

In RHEL6 there is command repoquery from yum-utils package. It can do this: # repoquery --tree-requires bash bash-4.1.2-15.el6_4.x86_64 [cmd line] \_ glibc-2.12-1.132.el6_5.4.i686 [1: rtld(GNU_HASH)] | \_ basesystem-10.0-4.el6.noarch [1: basesystem] | | \_ filesystem-2.4.30-3.el6.x86_64 [1: filesystem] | | | \_ ...


0

I believe you could do as suggested in the answer from here assuming you have access to shell. killall -STOP -u user1 killall -KILL -u user1


2

This is what I did. (add nomodeset) label CentOS 7 x86_64 KERNEL linux/centos/7/x86_64/vmlinuz initrd linux/centos/7/x86_64/initrd.img APPEND nomodeset lang=us keymap=us noipv6 ip=dhcp ks=http://pxe.example.com/pxe/linux/centos/ks7.cfg


0

The issue was that Apache was still writing to a certain log file: access_log. I commented that out, using the # tag, and after running a full weekend using the Apache server, it did not run out of space. I typed: df -h on Friday and got this: [root@localhost logs]# df -h Filesystem Size Used Avail Use% Mounted on ...


0

If you're registered to Satellite (you have a subscription to rhn-tools so I'm betting this is the case), the ACME repo is probably a child channel your system is subscribed to in which case it's made available to yum by way of the rhnplugin module which enumerates all the channels you're subscribed to and presents to yum as if they're repositories. The ...


1

Most likely it is using the rhnplugin to access "RHN Classic." To disable a repository (unsubscribe from a channel) you use the rhn-channelcommand or the web interface at http://rhn.redhat.com/


0

While .repo files are usually placed in /etc/yum.repos.d you can specify a different directory by using reposdir=xxx in/etc/yum.conf.


2

It's a bad idea if it doesn't work. I think your concern about profile.d not running unless someone logs in is legitimate. Put an init script in /etc/rc.d/init.d (I think this is the correct directory for Red Hat; in Ubuntu it's /etc/init.d) to start your daemon. In this script you can declare/define any variables you need and when you start the daemon ...


1

To directly answer your question, it's only a bad idea if it doesn't work. So my direct answer is "no", if it doesn't work, "yes" if it works. Did you try it? That is, have you confirmed that profile.d doesn't run on your system if no one logs in? As a suggestion of how to make it work: Edit the rc.local file in the same way, to ensure the settings are ...


2

After analyzing the scripts in Fedora, I realize that the configuration file path is read from the symlink /etc/grub2.conf. The correct grub2-mkconfig line is thus: grub2-mkconfig -o "$(readlink /etc/grub2.conf)"


3

Specific actions that need to happen when a RPM package is installed or removed are included within the RPM package itself in pre-install, post-install, pre-uninstall and post-uninstall sections. For every installed RPM package you can query the RPM database for the exact scripts that are included with the rpm command: rpm -q --scripts ...


1

You can use su with -c: /bin/su tomcat -c "$CATALINA_HOME/bin/catalina.sh stop 30 -force" From su man page: -c, --command=COMMAND pass a single COMMAND to the shell with -c


0

init does more than run the scripts in /etc/rc.d. For one, it spawns mingetty or getty on each virtual terminal. Check that you haven't commented out, or have a typo near, the following lines: # Run gettys in standard runlevels 1:2345:respawn:/sbin/mingetty tty1 2:2345:respawn:/sbin/mingetty tty2 3:2345:respawn:/sbin/mingetty tty3 ...


0

One important difference of SLED/RHEL -vs- public distros is that SLED/RHEL have paid support that is available. I find that for many companies this fact is VERY important.


1

What are the difference between SLED and RHEL WorkStation? As I understand it they are mostly related to configuration (e.g. SuSE has YaST, while RHEL has the system-config-*) tools. What are the advantages over community supported distros? You have a company that can provide you support (rather than needing to rely on mailing lists, forums ...



Top 50 recent answers are included