Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Remote connection to HP-UX from Linux, GUI issues. Post 302204532 by stefcha on Thursday 12th of June 2008 12:46:48 AM
Old 06-12-2008
DISPLAY is set in the profile on login, there's probably a better way but it always seems to be right:

TTY=`who am i | awk '{print $2}'`
IP=`who -a |grep $TTY | awk '{print $8}'`
export DISPLAY=$IP:0.0

xhost + is being run on the linux laptop, I've tried it both as my user and setting it via sudo. I'm not running a specific firewall, but isn't linux secure in this sort of manner by default? Still, as I understand it the xhost + should be all that's needed.

... and I've not been using swinstall because they're not all package based installs, the majority are third party installs using a java GUI.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Red Hat 7.2 GUI not loading & Connection issue

Please Help Let me start off by saying that I am a total idiot when it comes to unix. Please, if you would care to reply keep this in mind. Thank you. I have been attempting to get my unix machine online to no avail. I have the rest of the house networked with 3 other windows machines into a... (1 Reply)
Discussion started by: kmer
1 Replies

2. UNIX for Dummies Questions & Answers

Connection problem with gui java program to postgreaql database using unix

Having problem in connecting my gui java program to postgreaql database. I first used setenv classpath /home/share/postgresql/java/postgresql.jar:proj1, where proj1 is my folder conatining all java and class file, to set classpath. Then javac *.java. Then java proj1.Login. It gives me... (2 Replies)
Discussion started by: uci
2 Replies

3. Ubuntu

graphical remote connection to linux

is there any way to connect to linux server from windows machine in graphical mode like remote desktop in windows. Thanx (5 Replies)
Discussion started by: mm00123
5 Replies

4. UNIX for Advanced & Expert Users

Exceed connection issues

I'm trying to use Exceed 7.1 to connect to a Solaris server (T2000, running Solaris 10). What are the settings that should be specified on Solaris to enable this connectivity to happen? I'm getting connection issues. Is there a type of service that needs to be running? If sombody can give a... (1 Reply)
Discussion started by: Sunguy222
1 Replies

5. Linux

GUI remote connection

Hello, I need a tool for remote GUI connection to Linux machine ,something like remote Desktop in windows?????any help Thanks in advance (4 Replies)
Discussion started by: mm00123
4 Replies

6. UNIX for Dummies Questions & Answers

ssh to see remote desktop gui

Hey, how do I access the desktop gui for a remote fedora box? $ ssh user@ip $ xinit Fatal server error: Server is already active for display 0 If this server is no longer running, remove /tmp/.X0-lock and start again. Thanks (1 Reply)
Discussion started by: JustinT
1 Replies

7. Debian

Launch remote gui apps in remote hosts

Hi, I've been looking for a way to execute a console program (is in windows but by now I accept the linux way) from a linux machine, but this program has to be opened in the remote side. Linux machine acts only as a "signaling" host. My program has to open the camera in the remote side, but only... (7 Replies)
Discussion started by: zauberberg
7 Replies

8. Shell Programming and Scripting

Rsync through java program - issues with remote connection failure

Hi Everybody, I am running rsync through my java application. The Java application will sync the files with remote machine. During our connection failure testing we noticed an issue running rsync through java program. The java application which is running at source side is not receiving any... (2 Replies)
Discussion started by: MVEERA
2 Replies

9. UNIX for Advanced & Expert Users

lftp connection issues

Hi guys, We are receiving fatal error while trying to use lftp client to connect to an external server using ftps protocol. It seems to connect but when I issue 'ls' command, it fails with below error: $ lftp -u user,pwd ftps://<URL>:990/Submit lftp user@URL:~> ls ls: Fatal error:... (0 Replies)
Discussion started by: nice_chapp
0 Replies

10. Red Hat

RedHat Linux GUI Issues

hi all i have installed Windows 7 first. then i installed linux on dual partations... i am booting both of them through dual boot... but when i start linux its only working well with CUI, when i used commands like startx or changed the initd to 5 then its loading the GUI interface of RedHat... (9 Replies)
Discussion started by: Nikhil Dethe
9 Replies
READPROFILE(1)							   User Commands						    READPROFILE(1)

NAME
readprofile - read kernel profiling information SYNOPSIS
readprofile [options] VERSION
This manpage documents version 2.0 of the program. DESCRIPTION
The readprofile command uses the /proc/profile information to print ascii data on standard output. The output is organized in three col- umns: the first is the number of clock ticks, the second is the name of the C function in the kernel where those many ticks occurred, and the third is the normalized `load' of the procedure, calculated as a ratio between the number of ticks and the length of the procedure. The output is filled with blanks to ease readability. Available command line options are the following: -m mapfile Specify a mapfile, which by default is /usr/src/linux/System.map. You should specify the map file on cmdline if your current kernel isn't the last one you compiled, or if you keep System.map elsewhere. If the name of the map file ends with `.gz' it is decompressed on the fly. -p pro-file Specify a different profiling buffer, which by default is /proc/profile. Using a different pro-file is useful if you want to `freeze' the kernel profiling at some time and read it later. The /proc/profile file can be copied using `cat' or `cp'. There is no more support for compressed profile buffers, like in readprofile-1.1, because the program needs to know the size of the buffer in advance. -i Info. This makes readprofile only print the profiling step used by the kernel. The profiling step is the resolution of the profil- ing buffer, and is chosen during kernel configuration (through `make config'), or in the kernel's command line. If the -t (terse) switch is used together with -i only the decimal number is printed. -a Print all symbols in the mapfile. By default the procedures with 0 reported ticks are not printed. -b Print individual histogram-bin counts. -r Reset the profiling buffer. This can only be invoked by root, because /proc/profile is readable by everybody but writable only by the superuser. However, you can make readprofile setuid 0, in order to reset the buffer without gaining privileges. -M multiplier On some architectures it is possible to alter the frequency at which the kernel delivers profiling interrupts to each CPU. This option allows you to set the frequency, as a multiplier of the system clock frequency, HZ. This is supported on i386-SMP (2.2 and 2.4 kernel) and also on sparc-SMP and sparc64-SMP (2.4 kernel). This option also resets the profiling buffer, and requires supe- ruser privileges. -v Verbose. The output is organized in four columns and filled with blanks. The first column is the RAM address of a kernel function, the second is the name of the function, the third is the number of clock ticks and the last is the normalized load. -V Version. This makes readprofile print its version number and exit. EXAMPLES
Browse the profiling buffer ordering by clock ticks: readprofile | sort -nr | less Print the 20 most loaded procedures: readprofile | sort -nr +2 | head -20 Print only filesystem profile: readprofile | grep _ext2 Look at all the kernel information, with ram addresses" readprofile -av | less Browse a `freezed' profile buffer for a non current kernel: readprofile -p ~/profile.freeze -m /zImage.map.gz Request profiling at 2kHz per CPU, and reset the profiling buffer sudo readprofile -M 20 BUGS
readprofile only works with an 1.3.x or newer kernel, because /proc/profile changed in the step from 1.2 to 1.3 This program only works with ELF kernels. The change for a.out kernels is trivial, and left as an exercise to the a.out user. To enable profiling, the kernel must be rebooted, because no profiling module is available, and it wouldn't be easy to build. To enable profiling, you can specify "profile=2" (or another number) on the kernel commandline. The number you specify is the two-exponent used as profiling step. Profiling is disabled when interrupts are inhibited. This means that many profiling ticks happen when interrupts are re-enabled. Watch out for misleading information. FILES
/proc/profile A binary snapshot of the profiling buffer. /usr/src/linux/System.map The symbol table for the kernel. /usr/src/linux/* The program being profiled :-) AVAILABILITY
The readprofile command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. 4th Berkeley Distribution May 1996 READPROFILE(1)
All times are GMT -4. The time now is 08:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy