I would like to set up the shell env that i get after SSH to a remote host.
I am using a color screen in my terminal, having cusomtized LS_COLORS environment variable. Problem is, every time i log in to a remote host using SSH, i have to manually export LS_COLORS. You can say put that in ever .bashrc file in every host, but that is not very helpful because the remote host are lab servers that keep getting new OS very often(testing stuff), and the team and I usually log in there with root user.
I have my work PC in the office, and time to time I access it via TeamViewer from home. I have access to it also via ssh, over the VPN connection. I have problems with this setup, when for some reason the work PC must be rebooted (or it just happened by itself - power failure). The Ubuntu gets to the login screen and that's it. I can not access it remotely because the TeamViewer application is not started on that PC yet. I'd like to know, if there is a way how I can access my work PC over the VPN connection - open SSH session, and write some commands, to log in that desktop environment user, and launch the TeamViewer application. Ie, if someone would be looking on the screen at that moment, she would see that login screen disappears, desktop environment is loaded, and the TeamViewer app is started.
If that's not possible, then, I guess, I'll have resort to some alternative remote access tool (ie, VNC) what could be loaded before the Ubuntu login screen is shown. Then I could access it over the VPN connection, using appropriate client.
I am running Red Hat Linux Enterprise 5; I am always using the export command to set environment variables.Are there any other ways to set environment variables and what are the advantages/disadvantages of them?
Can I use two or more different profiles used in my console as the same time? Since, I always ssh to the other machines ,e.g. servers. in my console. Somehow, I always mix it up with my current PC.
I want to use 2 different profiles for different environments. Say, in server console, I use red background color. in my pc console, I use green background color such that i can easily distinguish out.or can i set the background color in .bashrc?
he $g09root is picked up ( in both the csh and the bash), but not the $GV_DIR or the $GAUSS_SCRDIR. I guess it's some stupid error, but it is highly frustrating.Here is the .profile file:Quote:
# To make use of this feature, simply uncomment one of the lines below or # add your own one (see /usr/share/locale/locale.alias for more codes) #
i have to set environment variables , after the installation of intel(R)MKL for linux OS given in intel mkl user guide, which are INCLUDE, LD_LIBRARY_PATH, MANPATH,LIBRARY_PATH, CPATH, FPATH, NLSPATH using the script file which, in my case,is "mklvarsem64t.sh"How can i set these environment variables?Do i need to set all these variables?
I am working for a web hosting company. We work in red hat linux environment and the employees at present are having their data stored in individual systems. We wish to have a centralized environment, so that users can log in to a server with their user names irrespective of the systems they will set. Also, this could facilitate easy backup. we have about 70 systems, 90% linux machines. The number will grow in future. I am good in NIS, but not at all with LDAP. Is it okay if I suggest NIS?
I'm trying to setup a PXE boot environment.Now the diskless machine reads in vmlinuz and initrd.lz from the /tftpboot directory of the dhcp server machine (host name: antilop, runing slackware 11.0).There is a NFS export named /usr/data/ubuntu on antilop (which can be mounted from the client when runing mandriva mcnlive Toronto)When I'm trying to boot with PXE, the kernel and initrd starts, eth0 gets a valid ip address.Then a lot of error messages appear saying: NFS over TCP not available from 192.168.1.48 <- this is antilop, my DHCP server and NFS server too.
There is no process listening on tcp port 2049 (on antilop)I asked my friend google but it didn't give a satisfying answer so far.Some said that no nfs-over-tcp exists on slackware, some said nfs clients trying over tcp must fallback to udp.
I need to do to make my VI scripts better formatted. The colorized commands, etc.., and the indents where necessary. Hope this question makes sense. I am running Fedora and Redhate Ent 5.
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.
I'm currently installing Arch Linux on my old netbook. What desktop environment should I use? GNOME and KDE both seem way too big and unnecessarily fancy for what I want to do with my basic netbook. I just want internet, read pdfs, run emacs. no fancy stuff. What should I use? xfce? lxde? and why?
I am running an application which requires setting environment variables to be set.At the moment, the way I am achieving this is by exporting the EV at the command line, and then running the app from the command line.I want to be able to run the app from my menu (it is already a menu item after I installed it).How may I set the env var so that it is always available, so I can just run the app from the menu instead of from the CLI?
With a desktop environment, there are file associations that goes with it. I'm a minimalistic user, who doesn't use any of such, but still want some kind of file associations to ease my burden. So I'm searching for a program that does something like the following. open file.pdf this will look at the extension, and translate to okular file.pdf. Of course one can always write a bash script to do this. I wonder if there is something existing, so I don't reinvent the wheel.
How can I use the ping command in a chroot environment? $ ping 8.8.8.8 ping: icmp open socket: Operation not permitted Currently I am using CentOs, but ideally there must be a solution that works in all chrooted environments.
I'm looking for the best way to identify what distro the user is running and what the desktop environment is running. I'm building some pipeline tools for a visual effects studio and need some generic commands for passing paths to the user's file manager from within Maya and Nuke. The workstations I have access to are FC12 with xfce4 so for that I'd pass a system command :
Code: ("thunar "+$path)I've been identifying Fedora workstations with:
Code: # cat /etc/issue
Is there a command to identify what the current window manager is? Preferably something generic that'll work on the other distros as well.
I have files that are sourced when users are working on a project. The files set environment variables and cd to the correct working directory and automate a few other things for the end users.
One thing I have not been able to figure out is how to change the user to a different group. Files created in a project context should have the project GID instead of the users default GID. I tried the newgroup command but it starts a new shell and breaks the other automation.
My problem started only after I upgraded my hardware. I'll describe the problem and the changes that led to it.
Problem: I have to restart my computer a second time before my icon set and controls are shown properly. The first time I boot up, I get an ancient looking set of controls. (By controls, I mean buttons, window splitters, etc.). My custom icon set is replaced by an ancient looking icon set I've never seen in Ubuntu before. (Maybe it is a Debian default? It certainly isn't stock Ubuntu). The Gnome panels are completely different from normal too. I simply reboot again and everything comes up the way it should. Every time I start my computer, I have to restart a second time. After that, no problems until I need to shut it down and start again.
I'm running a relatively new installation of Ubuntu 10.10. I changed the theme to a bisigi theme [url] and everything was fine. No problems at all until...
Changes: Then I upgraded my video card from an older nVidia to a GT430. I had to change a couple things in xorg.conf. For that, I just used the suggestions made by the nVidia settings utility. I also upgraded my mobo and RAM (from 4GB to 16).
These problems started only after I upgraded my hardware. Of course, the hardware upgrade involved the above noted software configuration changes. (xorg.conf was the only required change.)
I'm looking for ideas on how to troubleshoot this? I don't even know the first step. For example, what logs should I check? Should I suspect a hardware problem (e.g., bad video card) or is this software/configuration related?
Every time when i want to set an environment variable i need to export it and when i close the terminal and again open it the variables are lost. Is there a way to permanently save the environment variables?
For a while I have been searching for a new desktop environment to use on my netbook, since gnome 3 is too heavy for it. Currently it is running ubuntu because unity is lighter than gnome 3, but I am planning to go back to fedora at some point in time. So far I found LXDE to be my favorite, after trying XFCE and Enlightenment.I'm not looking for a solution here, just opinions, what is your favorite lightweight desktop environment (and with which WM if you wish) and why?