CentOS 5 :: Display Script That Users Can SSH In And Invoke?

May 11, 2009

I'm trying to do a little bit of setup on our new server and could use a hand.I'm working on creating a simple display script that our users can SSH in and invoke, here is what I'm attempting to do.

Requirements.

1. Must run X over ssh on Mac OS X 10.5 or greater

2. Must work in the office, or on the road

Implementation:
1. Set up the system to auth against LDAP (Open Directory)

2. Create a script on the PATH that checks which displays are available, and launches Xephyr for the first available one.

3. Create a client script that performs the SSH and Xephyr command so that users can simply click the script to start an X session.

I have 1 set up, but I'm having issues with 2 and hence 3. For instance, I can start XNest with the following commands.Start my SSH session

ssh ninet@10.0.1.50 -X

Load XNest
Xnest :1 -ac -geometry 1024x768 -once -query localhost

View 2 Replies


ADVERTISEMENT

OpenSUSE :: Users Accessing One Another's Display?

Jan 11, 2011

When you guys su or su -l in a X terminal as another user and/or root, do your user get a ~/.xauthXXXXXX with the magic cookie of the display owner, which allows him/her to start a GUI application? ... or is that just me? If not, under which environment (KDE, Gnome, etc) and how do you start X then?

View 1 Replies View Related

General :: How To Display Users Log On Time?

Feb 28, 2010

I was wondering how could I display a list of all of my users and their log on time, you know like small reports on what user was connected for how long.

View 5 Replies View Related

Ubuntu Multimedia :: Different Users With Different Display Settings?

Jul 31, 2011

I'd like to do something, but I don't seem to find the solution. Here is my problem: I have a laptop and I plugged in another monitor to it. What I want to do is when UserA logs in, both of the monitor is used, but when UserB logs in, only one of the monitor is used. When I change the display settings it applies to the other user too. I'd like to have different display settings for each user

View 7 Replies View Related

General :: System Script To Display All Users?

Jul 15, 2010

Can anybody help with with shell scripting.I need a script to display all users in system.i know there are commands to display all users but i need a script for that.hope someone can share the script.

View 4 Replies View Related

Ubuntu :: Font And Display Inconsistency Between Two Users On Same Machine?

Jan 3, 2011

I have two user accounts on this machine. This problem is particularly noticed when browsing the web in Google Chrome (though I'm not sure if this a Chrome-only problem, so I'm posting this here). My distro is Kubuntu, but all my user accounts use Gnome.

Basically, I have the same font and display settings set up on both user accounts, but the fonts are not showing up the same. I'm not sure if at some point a long time ago I did something on one account that I never did on another to change something, but either way I can't seem to find any difference in any of the settings, yet the display is still different.

This is easier explained with screenshots.

1st user account: [URL]

2nd user account: [URL]

Note how the fonts appear bold and not bold, note the different appearance of the (c) character on the webpage, and note the size of the "Google" image is different.

For Chrome settings, both are set at 100% zoom, so this is not an issue of scale. Both user accounts are also set at 1600x900 resolution. Notice that the Google Chrome fonts are both set exactly the same, as are the Gnome system fonts.

Does anybody have a clue what I'm forgetting to check here? I believe the 2nd user account is the correct one, and the 1st one is wrong, since it clearly looks uglier.

View 2 Replies View Related

General :: How To Use Grep To Display All Users Running Particular Command?

Mar 19, 2010

Can someone please tell me how I can use grep to display all users running a particular command.

View 3 Replies View Related

General :: IceWM - Customizing Display Settings For Different Users

Jan 15, 2010

I have a Debian machine running IceWM. I want to set it up so when userA signs in they get a screen resolution of 1280x1024 and normal size icons and normal size cursors. Then I want it setup so if UserB signs in they get a screen resolution of 800x600 larger icons and larger mouse cursor icons. How can I customize the display settings per user with IceWM? I did not see where I can set these options in ~/.icewm/preferences.

View 2 Replies View Related

CentOS 5 :: Unable To Get Box (Centos 5.3) Authenticate Users Through LDAP?

Jun 4, 2009

So far, I've been able to get my Box (Centos 5.3) authenticate users through LDAP. My next plan was to automount their home directory from our NAS device.But I'm struggling getting autofs talking to the LDAP Server.My Config Files:

/etc/ldap.conf
[root@tmplt_CentOS-5 ~]# egrep -v '^#|^$?' /etc/ldap.conf
base ou=intern,o=zde,dc=simiangroup,dc=com

[code]....

View 2 Replies View Related

CentOS 5 Hardware :: Fresh Install Of Centos Doesnt Display On Whole Screen?

Jun 8, 2009

i didnt find a solution to a display problem im having. my server mobo is an asus k8n-dre with built in video. after the install(using built in video) the screen dosnt display fully as in black sections on the left and top of the screen. from the searching i did i found something about an "xrandr" command that would let me change the video settings but it didnt do anything with the black areas when i tried it. i also have a nvidia geforce 9500gt video card so i changed the jumper to boot from it and tried again. the black sections are still there but the centos display covers much more of the screen now. theres still about a third of an inch gap on the left hand side and about 1/4 of an inch on the top. ive also tried updating the software to see if it may be a driver issue but no luck. anyone know how or if it can fit to full sceen? the screen displays up to 1440x900 if im not mistaken but with the built in video it gave me lots of display options including the 1440x900. after changing to the nvidia card it only shows 800x600 and 640x480.

View 5 Replies View Related

General :: Php Cannot Invoke The Msmtp

Mar 7, 2011

I want to use php for mailing on linux.But when I do it with"$a=`msmtp niubl967@gmail.com < /u1/ftp/mail.txt &`",it does not work.The mail.txt's contents are following:

Subject:test

View 6 Replies View Related

Software :: How To Invoke The Xterminal

Jul 6, 2010

setting up the Xterminal ( xmanager ) application on Linux. I've installed Xterminal-1.0.7-1.i386.rpm on RHEL 4.0.May i know how could i invoke the installed application? What commands should i use?

View 13 Replies View Related

Programming :: Invoke Methods Via Ssh On Servers From CSV?

Jan 14, 2011

I have to execute certain commands (like shutdown Tomcat) on several servers so I'm using a loop and ssh. I put the server's IP on a CSV file which I parse, execute the commands for each line and send the output to a file. The problem is that after processing one line the program stops execution. I wonder if someone could lend me a hand with this, I'm new in bash scripting and I ran out of ideas.

The CSV (servers.csv) file looks like this:

Code:

192.168.254.5:Server 1
192.168.254.6:Server 2
...

And the script looks like this:

Code:

#!/bin/bash
while IFS=: read ip name
do
sshpass -p "pass" ssh -o "StrictHostKeyChecking no" root@"$ip" 'sh <CATALINA_BASE>/bin/shutdown.sh' >> output.log
done < servers.csv

View 1 Replies View Related

OpenSUSE :: 11.3 KDE - Adobe Air Not Able To Invoke Password Dialog

Jul 16, 2010

Adobe Air are not able to invoke the password dialog for installing apps in opensuse11.3 (i686) .. it waits for root password confirmation however there is no dialog window to input the password to. I've tried installing adobe air apps as both su and normal user, no mather what I do it's not envoking the password dialog..

I've also tried to install the gnome su library to see if it helps any but it don't...

I have also tried to reinstall Adobe Air using both the rpm installer and the binary installer from [URL], the binary installer won't even install.

I can get the use of the AIR apps I need ?

From AIR installation log [Adobe AIR Application Installer:12808][INFO] Waiting for user confirmation

Edit: By the way, I've also tried the normal troubleshooting such as removing the crypt cataloge, removing cache and etc..

View 5 Replies View Related

Programming :: Invoke The Calculator In Bash Script?

May 16, 2010

My main problem right now is doing floating point arithmetic within a bash script, with variables.Right now I have a folder called "myExamples" with a script called "run_example" that runs with no issues.I plan to(1) create many folders inside [myExamples], that are named [example10] [example11]...each containing an identical copy of (run_example),(2) modify Line 172 of each copy of (run_example)...in one copy, it would be 3.00, the next copy would have 3.05, etc. (This part doesn't work!)How can I use the available calculator bc code to do floating point operationsMy code is below -

#!/bin/sh
# run from directory where this script is
cd `echo $0 | sed 's/(.*)/.*/1/'` # extract pathname

[code]....

View 1 Replies View Related

General :: How To Invoke Wireless Without Root Password

Apr 3, 2010

Whenever I got to type the command below:

#iwconfig eth1 essid mynetwork key xxxxxxxx
#dhclient eth1

to use this command, i have to be in su or sudo. Is there a way I could allow all users to invoke these commands without the root password?? I try to make a file (wireless.sh), which consists the commands above, in /usr/local/bin/. Change the mode to 755 (chmod 755 wireless.sh) however, it does not allow me to use this also.

View 1 Replies View Related

General :: Udev Rule To Invoke A Script?

Mar 29, 2011

I am not good at writing udev rules. I am using RHEL 4.7, I would like to invoke a file install.sh which is in CDROM as soon as the CDROM is inserted

View 2 Replies View Related

Programming :: Invoke A ButtonPress Event Using XLib?

Nov 17, 2010

I'm working on an application which generates random shapes when clicking on a window. I designed the window using Motif. I want to invoke the ButtonPress Event .

View 1 Replies View Related

Programming :: Invoke Cairo Functions From Glade?

Feb 12, 2011

I have created a glade file which so far have two regions in it:

1) On the right division is a toggle button which calls a C script when enabled.

2) I have a drawing area, in which I would like to plot a point (X-Y scatter plot). The plot should be generated dynamically using a C script. I am not sure how the integration between the two is possible for a drawing area.

In glade what properties of drawing area should I set? eg.expose event, realize etc. I was thinking of using cairo for generating the plot.

View 2 Replies View Related

Programming :: Not Able To Invoke Variable Values / Sort It?

May 5, 2010

I am trying to import variable values from a profile file to a perl program.
I am using the below command for doing it.

Quote:

system (". /opt/bbfb/bin/setbbfbenv $codeset");

the above command does make variable values available to the running perl program..
Can some one help me on this front..

View 1 Replies View Related

Ubuntu :: Installed Lucid - Can't Invoke Programs After A While

Mar 22, 2011

I am running usb version of lucid 10.04.2, with many apt-get installs. Shortly after running awhile, programs will not run, I get either an "input/output error" or "Bus error (core dumped)". (Examples of programs rendered inoperable are top, df, file)

I've read something about a memory leak in Lucid, but in my case, the computer doesnt slow down, things just stop working. Is this a known problem with Lucid? I'm thinking maybe one of my apt-get installs corrupted something. Is this a known problem that has a software update available?

Here is the output of "top" which fortunately currently DOES work, while other progs don't. (the memory usage stays constantly in that 1.5 GB range)

Mem: 3056772k total, 1554952k used, 1501820k free, 173004k buffers
Swap: 0k total, 0k used, 0k free, 1081808k cached

View 2 Replies View Related

General :: Invoke A Function In Bash Shell Script?

Apr 24, 2010

I just wonder the distinction calling the function between $(one_function) and one_function in bash shell script.

When I set the variable PS1 in ~/.bashrc, I can't invoke the function by one_func
ex:

export PS1="
[e[31m] $(one_func) # it works
export PS1="
[e[31m] one_func # it doesn't work

View 3 Replies View Related

Ubuntu :: Invoke The Terminal In LINUX When A Process Becomes Unresponsive?

Jan 6, 2010

If a process becomes unresponsive in WINDOWS then we press "alt+ctrl+del" to invoke the task manager & then terminate the process.Is there any similar way to invoke the Linux Terminal so that we can end a process by the 'kill' command when it becomes unresponsive?

View 2 Replies View Related

Ubuntu Servers :: Invoke Script On Boot By Pressing Key

May 1, 2011

I have created a script which asks the user a few questions and then it configures the wireless network. I'd like to run it somehow while Ubuntu still boots by pressing a key for example. Let's say, while booting, when it comes to the script I made, it will sleep for a few seconds giving the user the oportunity to press the pre-defined key (eg: spacebar). Once pressed, then the script will load.

View 7 Replies View Related

Programming :: Can't Invoke A Command From Within Shell Script / Sort It?

May 17, 2010

When I try to invoke 'source' command from within a shell script, namely, myscript.sh, I get the following error message code...

View 1 Replies View Related

Hardware :: Invoke GRUB2 Present On A Hard Disk From A CD Or A USB Drive?

Jan 26, 2011

I have a very strange problem. My computer is unable to boot from any hard disk but is able to boot from any CD or DVD. I have double-checked the BIOS settings and I am unable to figure out why is this happening. I have noticed that the Windows installer boots from the CD only if one presses a key when the message "Pressany key to boot from CD..." is displayed on the screen, otherwise it boots from the first hard disk.I have a triple boot system with Windows 7 (64-bit), Ubuntu 10.10 (64-bit), and Fedora 14 (64-bit). I have a dedicated GRUB2 partion on one of my disks. What I want is a boot-loader (any would do) on a CD/DVD/USB drive to chain load the GRUB2 present on my hard disk, without a delay, that is, without showing any message, menu, warning, etc. So, is there a way to do that?

View 6 Replies View Related

CentOS 5 Hardware :: Centos 5.4 Hardware - Display Driver Not Support And Also Missing Xorg.config File?

Jun 15, 2011

I tried to installed Centos5.4 version on Dell PC intel corei3 inspiron580s and succeeded but found some issues following below

1 Hardware issue for LAN driver ( Broadcomlink(TM)gigabit ethernet)

2 Display Driver not support and also missing Xorg.config file (i.e ., My Screen Starts from center of screen )

3. What is minimum configuration for centos 5.4 ?

View 2 Replies View Related

CentOS 5 :: Migrating FTP And Users Db From Fedora 4?

May 4, 2009

I have an old fedora 4 server, used primarily for ftp access, that I need to migrate to a new machine that will run Centos 5.There are 50 user accounts defined locally on that server: how can I migrate them (user, pass, login options -ie no shell access-, data dir) to the new centos 5 server?

View 3 Replies View Related

CentOS 5 :: Mapping Directories To Users?

May 6, 2009

Problem: I need to map directories to a user's home directory when they log in.

For example, I need to map /school/homework/ to user "steve" in his home directory when he logs in. I'm guessing I could use a logon script, but I can't figure out what command I should be putting in the script. I've been searching for hours through man pages and googled it a ton and can't find anything on it.

View 3 Replies View Related

CentOS 5 :: GUI For Managing Users And Groups?

Mar 31, 2010

I have centos 5.4 installed (2.6.18-128.2.1.el5 #1 SMP Tue Jul 14 06:36:37 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux), and I am using WHM/Cpanel to manage my server. I am looking for a GUI utility, so I can graphically manage users/groups.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved