General :: Exporting A Variable From Within .xsession?
Mar 31, 2011
I'm trying to export a variable from within the .xsession so it will be available to any application started afterwards.
Here is a minimial .xsession file:
Code:
export MYVAR=123
exec gnome-session
The problem is that when I start a terminal and do:
Code:
echo $MYVAR
I get an empty string, meaning it's undefined.
View 2 Replies
ADVERTISEMENT
May 9, 2011
Is it possible to export the console display to my desktop?
I'm running Exceed 14.x the console is RHEL 5.6 running gnome.
I know how to export my display in an individual putty session and run whatever x app I need, but would like to be able to export the console session to my desktop also.
View 1 Replies
View Related
Feb 17, 2011
how to assign a local variable value to a global variable....
View 2 Replies
View Related
Jun 2, 2010
I know many people have asked about environment variables before, but I am having a hard time dealing with these paths while ensuring I don't mess around with the original settings. How would you go about executing these commands in Ubuntu in terms of environment variables?
put /home/stanley/Downloads/ns-allinone-2.34/bin:/home/stanley/Downloads ns-allinone-2.34/tcl8.4.18/unix:/home/stanley/Downloads/ns-allinone-2.34/tk8.4.18/unixinto your PATH environment; so that you'll be able to run itm/tclsh wish/xgraph.
IMPORTANT NOTICES:
(1) You MUST put
/home/stanley/Downloads/ns-allinone-2.34/otcl-1.13,
/home/stanley/Downloads/ns-allinone-2.34/lib,
into your LD_LIBRARY_PATH environment variable.
[Code]....
View 1 Replies
View Related
Apr 16, 2011
I am supposed to create an environment variable with the PRINTER variable, which should resolve to the word sales. Would the command be like this?: env PRINTER - NAME=SALES (is this the command to create that variable with resolving the word sales to it?)
View 3 Replies
View Related
May 28, 2011
I want to put:
xmodmap -e "pointer =3 2 1"
somewhere in the startup. It seems creating an .xsession is the solution. But after I create a .xsession file in my home folder, the next time I run startx the screen just turns black. (And only for a short while can I switch to another virtual terminal, before that too becomes impossible). After deleting the file it runs OK again. I'm not using any login/desktop manager. I use IceWM on Debian Squeeze. Is there some script/import that has to be present in the .xsession file, or is something else going on? Also I'd like to know what I should do when I get a black screen. Turning off the PC is such a crude method
View 11 Replies
View Related
Aug 30, 2010
Im trying to create a custom xsession on Ubuntu 10.04 that will launch nxclient and logout automatically when it closes.
This is what I have so far
Code:
How would I go about altering this script to logout when nxclient closes? To make this more complicated, nxclient spawns a separate process (nxssh) when it logs in and closes itself.
Is it possible for a script to listen for a child process to close and then execute some commands (in this case a logout)?
View 1 Replies
View Related
Feb 3, 2011
I have a VirtualBox 3.1.2 image of Debian 5.0.2 running on Windows XP SP3. I would like to export that Debian image to a USB harddrive such that I could boot to that drive and run it natively. Is that possible to do with a VDI?
View 1 Replies
View Related
Sep 15, 2010
i am a new guy here..i unfortunately removed all my files from /home folderrm -rf ~ /. picasa / As some of the files were important i tried recovering data using foremost..i used the command foremost -i /dev/sda1 -o /mnt/foremostThen there started a process..it was downloading something..and i left the computer for an hour or so..when i return there was nothing on screen..so i reloaded the system..And after that when i try to login i get the error"xsession: warning: unable to write to /tmp; xsession may exit with an error"..so when i googled for it i found its because there is no memmory in my /root ..so i tried login via console (tried ctrl+alt+f1..after the login screen appears..when i type ctrl+alt+f1 i get a black screen)..but nothings happening...how can i login via console..can my datas be recovered.
View 6 Replies
View Related
Jul 25, 2010
can i use the value of one variable to generate a name for another variable? for example i want to use the counter from a "do while" loop to name and define a variable each time the loop executes. for example
objectnames1=`ls -a`
objectnames2=`ls -a`
etc.
i don't have a script yet but each time through the loop i intend to cd to a particular directory and then define a variable containing a list of each object in that directory as values. for the rest of the script to work, each variable generated has to be unique, and i can't think of a good way to accomplish this.
if using a value from one variable to name another isn't possible, can anyone think of a more elegant solution? i know limited syntax but i'm willing to read up...
View 6 Replies
View Related
Dec 27, 2010
I am trying to alter the character position of residue numbers above 999 in a pdb file.The following script is an attempt to:1) Get all unique pdb residue numbers (in column 5) using awk and assign it to a variable i.2) Loop through all the values in $i and if it is greater than 999, shift that number one character to the right using sed.However, the script only manages to alter the final residue numberCould anyone please advise how I can loop through all values in $i and shift it one character to the right?
#!/bin/bash
# Script to alter position of residue number in pdb file for resid above 999
i=$(awk '{print $5}' wt-test.pdb | uniq)
[code]...
View 6 Replies
View Related
Jun 9, 2010
I recently upgraded to 10.04, but I'll be darned if I can get GDM to run my personal .Xsession (or .xsession or .xinitrc or.Xclients...) when I log in. I don't see any option on the session menu. The only entries are window managers and "xterm". My script works when I log in from the console. don't tell me that Ubuntu (or GDM) has made things simpler by taking away the option of a .Xsession! Nah, couldn't be.
View 5 Replies
View Related
Aug 4, 2009
Normally you can put your xrandr command in /etc/kde4/kdm/Xsetup to change resolution before login. This does not work for openSUSE. Why, where else ?
View 1 Replies
View Related
Aug 21, 2009
I'm trying to read content of file to variable and use this variable in for loop. The problem is, when I have c++ comment style in file - /*. Spaces in line are also interpreted as separated lines.
For example:
Code:
Changing $files to "$files" eliminate these problems but causes that whole content of variable is treated as one string (one execution of loop).
View 6 Replies
View Related
Apr 7, 2010
my script has a variable which comes in the form +00.00 +0.00 -00.00 or -0.00 (the numbers can be any in that form) for any that have a + symbol I need to remove the +, but if it has a - symbol it needs to stay.
i need to make a new variable with the string from the old variable btut without any plus sign. I have tried a lot of different ways with no success, each thing I tried either left the + or removed the entire string. I think this should work but doesn't
foo=+12.40
bar=${foo#+}
View 4 Replies
View Related
Jun 10, 2009
I have a text file i that has a mailTo: NAME in it. In a bash script i need to extract NAME and put it in a $variable to use. How do i do this?
View 2 Replies
View Related
Apr 25, 2011
how I can search within a variable and assign the results to a new variable. I'll use the following as an example -
cars="Audi BMW Cadillac Chevy Dodge Ferrari Ford Mercedes"
list=`echo ${cars} | egrep -o '<A?+|<C+'`
with the echo command I get the following output assigned to list -
A
C
C
What I'd like to get for output is -
Audi
Cadillac
Chevy
how I could do this regardless of upper/lower case letters?
View 5 Replies
View Related
Apr 22, 2011
I'm trying to control my media center via my netbook
but when I ssh into the machine and do
Code ...
So I guess the ssh session is trying to start an x session. Obviously I don't want another session but instead use the existing x session that the machine runs anyway (and on which Rhythmbox runs)
googling I found a similar bug for f12 but no solution or fix or anything...
sorry if this is such a noob question. I've never dealt with xsessions in that way...
View 2 Replies
View Related
Aug 23, 2010
I've just install SUSE 11.3. GNOME and KDE are selected as GUI session.At the login screen, in Session list I saw TWM, and after selected it as login session I couldnt login, and login screen disappear as well. It shows a black screen and the mouse pointer, and I have no idea how to switch to KDE or GNOME since no login screen.
View 2 Replies
View Related
Apr 13, 2010
I delete the file and within about a week i am back to a "out of space error" I have tried root owning the file with no permission to write, but it still gets written, just with a number on the end
the system appears to be working fine otherwise. I could set a cron remove but that seems a bit more hacky than telling it to shut up.
View 4 Replies
View Related
Jul 19, 2010
My problem is, when I start my custom xsession through startx I get almost ideal results; the network manager requires a password every time. But when it is run through gdm I cannot use any of the awesome3 hotkeys (and so alas, cannot actually do _anything_) although the wireless does connect automatically (?).
[Code]...
View 2 Replies
View Related
Feb 18, 2011
Just today I started getting notices about lack of disk space on my system. After much digging I found that .xsession-errors and .xsession-errors.old were taking nearly 70GB of space combined. The primary message I'm getting over and over again is: SSL_Write: I/O Error I have been unable to figure out what's causing this error.
View 3 Replies
View Related
Jul 16, 2010
Cannot login as root or any user.
Message "xsession login to root disable".
View 6 Replies
View Related
Jun 18, 2011
my mouse is not being seen so I need to log in without the xsession autostarting to get a cmd line login.
my account will not let me login with my passd so the console is my only access with root but i cannot do anything withourt a mouse.
1. How can i get logged in?
2. How can I stop xsession from autostarting on a reboot once i get loged in i can try to remove that setting and boot the box.
3. secure session lets me in but the xterm is not active so I cannot type any commands.
View 5 Replies
View Related
Dec 5, 2010
We need to export images to camera but digikam does not support this feature. Is there any linux program that supports export to camera. Open Suse 11.3
View 1 Replies
View Related
Nov 26, 2010
I am aware this has probably been covered hundreds of times, so apologies if so. I am fairly new to the linux scripting scene, so again apologies if what I'm saying seems pretty odd and makes no sense. I am attempting to write a script for some Linux Fedora test servers I have set up. For me to change which domain I have this set to point to, I would have previously changed the HOSTS and profile files manually, however I managed to make a script which changes these easily with the use of one command to launch the script.The problem I'm having is getting it to use the "export" command. I am aware this would have to be launched in the parent shell rather than the child and so I made a seperate script which has "export SIP_DOMAIN="test.blah.net" in it and had the first script "source" it. This doesn't work and I've probably done something somewhere that is incredibly stupid.
View 2 Replies
View Related
Jun 7, 2011
I have sles 10 . A user has a default shell of tcsh. I want to run a script which has to use ksh . In that script only some variables are exported, which will be used in subsequent scripts which are called inside it.
But the variables are not exported. I am unable to find whether its a conflict of shell or what ?? I tried with debug mode, it only displays the command but not execute anyone ..
View 14 Replies
View Related
Dec 8, 2009
On one of my servers I see this when I log in. What does this mean and how can I get it to go away? Everything seems to work fine, but none of my other machines give this error.
View 5 Replies
View Related
Mar 26, 2009
I noticed the xsession-error file in my main user's home folder grow up to a big size, it's usually at 2-3MB sometimes up to 20MB. I use Fedora 10 64bit and KDE4.2. I got no problems at all and the xsession-error logfile is full of weird entrys, almost everything is reporting to it, mplayer, xine, opera, firefox, dolphin and many other software I use. I don't think the most of these entrys are real and critical system errors, especially all the mplayer stuff. However, I'm not worried about the file size since Fedora 10 seems to delete the file on every log in.
My problem is the disc access because all this never ending writings to hard disc kinda break things like the mount options noatime, nodiratime. I read something about you can redirect the logfile to /dev/null but that was for an ubunto distribution and I would like to get a how to for a save way to disable the xsession-error logfile, I got 8GB RAM so everything is in cache anyway after a long session, I really want to get rid of unnessesary hard disc access like that. If not recommend to disable it, can I direct it to an usb stick or ssd?
View 7 Replies
View Related
May 5, 2010
I have had a few X crashes and started to suspect compiz as they usually happened when I was resizing a window or the window was wobbling.
Here is the Xsession-errors log (it's a hidden file in your home folder). It mentions:
Code:
WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported! This is an application bug!
Starting gtk-window-decorator
Unable to find a synaptics device.
[Code].....
View 3 Replies
View Related