Programming :: Different Initialized Environments For Shells Vs Emacs?
Aug 7, 2010
I'm finalizing the the dual-boot addition that I recently completed. I've added lubuntu to the LT3114u Netbook that I use. That's done, now I'm migrating my user environment back from the Cygwin one that I've been using on Windoze, as of late. One of features that's been useful has been the global environment management possible with the windoze UI functions. As I coded my emacs environment while 'over there' (windoze side), I included a check for the lisp library repository path environment variable EMACSLOADPATH. It is globally available when one logs in, and does not get set in any user scripts, or dot files any to do with CYGWIN or emacs.
While it has been easy enough to set EMACSLOADPATH for the login shell environment, via .bashrc, .profile, and system wide via /etc/profile, I have not been able to have '/usr/bin/emacs23' have EMACSLOADPATH set when invoked via the LXDE UI. Thus, it would appear that emacs is not being initialized with the same environment that any of the shells are (old school?). Thus, what is it that one must update in order to have GNU emacs initialized with the same environment variables as bash? Or, put another way, why aren't the environment variable defined in /etc/profile, ~/.bashrc and/or ~/.profile ending up in the initialized environment upon invocation of emacs23 on lubuntu Linux?
I write a small program to learn overflow. But when I input more than 5 characters (exceed the boundaries of the buffer),I can't get the character that I have initialized. I used gcc4.5.2 to compile this program. Then I used gdb to debug it. I found that when I input more than 5 characters, the variable 'test' was set to 0(ASCII code or '00').
I'm implementing exceptions using longjmp() (since C++ exceptions don't offer the features that I need, including resuming and a "finally" block), like this:
I'm getting something(s) wrong, trying to run commands (both simple and piped) in shells from Perl programs. The ultimate objective is to set up "copy X selection to clipboard" from urxvt but apparently simple debugging statements are not working.Here's the Perl, taken from here and modified to use xclip instead of xsel and with debugging added, shown in green
I have installed Kubuntu 9.10 on my old laptop, and tho the graphics are nice, the performance is not spectacular.
Here's my system - humble but not too lousy either
CPU: Intel Pentium M 1.80GHz Memory: 512MB Graphics controller: ATI RV350 (Mobility Radeon 9600 M10)
So, I thought I'd like to test out other desktop environment, without too much bells and whistles, I am considering Xfce.
But I lack deeper Linux knowledge in order to complete this without messing up my system.
1) how to install the secondary DE properly, without hurting the existing DE?
2) How much duplication takes place, when one installs the secondary DE. Ie, will I need to reinstall, say, Firefox for the other DE? I guess KDE and Xfce definitely have different desktop managers, network managers, etc, so there will be some overhead because of this. Will I be able to install new apps and enjoy using them in both DEs, will their configs be the same?
I imagine this question is hard to answer and will get very few takers but I am hoping someone will be able to help. Has anyone ever done a cost analysis of video production facilities that use Linux vs Windows vs OS X?
My company use Final Cut on OS X to edit video, Photoshop on Windows or OS X for photo editing and Nuke on Linux for visual effects composting. We have multiple computers running in this configuration but have not looked deeply into how to achieve maximum value for our money.
Mac's can cost up to four times as much as a comparable Windows machine but save on electricity over the course of their life and have better software for our workflow. Linux machines are even cheaper as they use the same electricity as Windows but the OS is free. Unfortunately, Linux does not have Photoshop, or a good video editor. Gimp does not support opening PSD files, which as used extensively in production environments. Basically my question is has there been any studies done on this subject?
I have both xmonad and Gnome installed and tend to switch between them quite often. Normally, I need to log out and log back in which is starting to become annoying because I need to open any running applications again.I have tried using "Switch User", but it doesn't work. I go to the switching screen when I am logged into Gnome and log in again after selecting Xmonad, but it brings me back to my Gnome session.
So is there any way to log in as the same user with two different desktop environments at the same time?
currently i run both KDE and Ubuntu Unity 11.04 on my machine. I have encountered a little problem when switching desktop environments. With KDE, i prefer to use KWin as my windows manager (since i find it highly polished), and with Unity, compiz (not by choice). The problem is that if i don't switch the windows manager to compiz before switching over to unity, all hell breaks loose. Same with switching over from Unity to KDE.
The only solution i have found is to switch to Classic Ubuntu. and use the compiz fusion icon to select the windows manager in order to avoid any problems.
when i log onto the either KDE or Unity, how can i load the correct desktop environment in case it crashes (which it has)?
Note: this has also become a concern to me because of 11.10 removing the classic gnome. If the proper window manger can be loaded before entering the preferred desktop environment KDE, Gnome3 or Unity,
i was wondering how tto switch the desktop environment from ubuntu to kde. The ubuntu looks too much like the evil microsoft environment. I am new to linux but not to unix.
I work with python and I use emacs as my IDE tool. I have been running Debian Squeeze (6.0.9) for some time now with emacs 23.2.1 and ecb 2.32. I am able to access my python methods in the ecb-methods window with no problems. However I recently upgraded my desktop to Debian Wheezy (7.5) running emacs 23.4.1 and ecb 2.40 but I have lost access to the methods in the ecb-methods window. The window is just empty while the others (directories, sources and history) are all populated. I have a second laptop which I decided to upgrade to Debian Jessie, however Jessie recommends emacs 23.4.1 which is running with ecb 2.40 also. The result is the same as on Wheezy.
I have used the ecb menus and googled for a solution or even just a mention that such a problem exists but have come up with nothing. Either I have a unique situation here or am doing something really dumb.
I would like to upgrade to Wheezy or Jessie but I need access to methods in the ecb methods window. How to keep my upgrade and see the methods in the methods window of the ecb system ....
I have two desktop environments installed on my Fedora pc. Here it is
[Code]...
Is it still possible to install other desktop environments despite already having installed KDE and GNOME? If I happen to install other desktop environments such as XFCE, LXDE, CDE, EDE, UDE, will I be able to use one particular environment by disabling the rest whenever needed
I'm trying to get Gnome 3 to work on 11.04 under virtualbox (3D acceleration enabled) but I get the message that "it can't load session gnome" when I try to log in. The same message appears when I try to do this on an EC2 instance. Please let me know if someone got it to work on EC2.
we have here a few openSUSE-machines (some 11.1 and 11.2) which mounts their /home from a NFS-Server and imports the users via NIS. I now wanted to use X-Forwarding via SSH, but that doesn't work with NIS-Users.On my machine I use Gnome and my XAUTHORITY-Variable points to /var/run/gdm/auth-for-bup_deg-E3TMSz/database
Why isn't the default ~/.Xauthority-File used for my cookies? What do I have to change to get X-Forwarding in my Setup running?
How to use git? I want to download git: [URL]. All what I get is: ~$ git clone [URL] Initialized empty Git repository in /home/john/xfce4-generic-slider/.git/ fatal: [URL] not found: did you run git update-server-info on the server?
I have a slight problem with an applet I'm trying to run. I don't have problems running any other java applets from other websites or anything but for some reason the applet I developed shows the gray-screen and says 'Start: applet not initialized.' at the bottom.
There are no errors in the error console.Java is working on my web browser (mozilla firefox).I'm running Ubuntu 10.10.Here's my code, the program is for my friend and she uses a mac, so is this issue specific for Ubuntu? I made the applet using Eclipse Ganymede.
I am trying to upgrade from version 11 to v13. I have tried using preinstall as well as 2 live CDs (gnome and KDE). In all cases, I get a message saying that the HD which contains FC11 needs to be reinitialized. My most recent attempt was to upgrade using the preinstall. Upon reboot, Grub still shows the old (v11) and I can boot that with no problem. If I choose the upgrade option, it fails!
Failure message: Error processing drive /dev/sdc Hitachi HDT 72101 (1TB) The device may have to be reinitialized device details: pci-0000:00:1f.2-scsi-1:0:1:0
The drive (sdc) contains several other flavors of Linux and they all run fine. FC11 also runs from that drive with no problem.
I am a opensuse 11.3 user with firefox 3.6.8.I use 32 bit version and having trouble with one of my banks applet when launched from the firefox , it shows up as 'start:applet not initiazed' and then just hangs there.I have tried a lot googling and looking around in opensuse forums, but could not get my browser working. If I use How do I test whether Java is working on my computer? , it shows the java version is working. I have tried removing icedtea , but did not help.I have also found , when I install opensuse 11.3 , this applet seemed to have worked fine. BUt, after all the online updates system did , it just stopped working with this applet not iniatilized message.
I have a new 16GB nano ipod, and I "initialized" it in Rhythmbox. I added about 6GB of music into it (via Rhythmbox).When I eject and disconnect the ipod, it tells me that 6GB are occupied, but the music directory says that it's empty. Does the ipod need to be "initialized" in itunes? I have another ipod that was first used in itunes and it never gave me any issues with Rhythmbox.I have two machines running Ubuntu 9.10. I can't get itunes working with wine, and I don't have a mac or a windows machine.
Does anyone know of any free services offering debian or ubuntu shells? I want to run IRC remotely with screen, but free services only seem to offer unix shells. I'm not really bothered by that but I feel more comfortable on ubuntu.