General :: Permanently Saving The Environment Varibles
Jul 8, 2010
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?
View 4 Replies
ADVERTISEMENT
Jul 13, 2010
I have bunch of environment variables that i have to set always for my work.Someone mentioned i can write a script to dp this and i googled it but haven't been successful so far and have to manually do them every time. I have a tcsh shell.I read that i need to change the .login or .tcshrc files but havent been successful in finding these.
View 15 Replies
View Related
Apr 30, 2011
I want to make change to environment PATH system wide. Because I have program called "md5". I want to execute it from anywhere (i.e any directory).
My md5 program is located at "/home/ahuq/MappingServer/md5_program". So what I did was to put: "export PATH=$PATH:/home/ahuq/MappingServer/md5_program" in the running SHELL.
This only makes temporary changes and lets me run the "md5" program from anywhere temporarily.
But I want to make this change permanent. So what I did was to put the "PATH=$PATH:/home/ahuq/MappingServer/md5_program" line into the "/etc/environment" file.
This screwed everything up and then for a while I couldn't execute anything from SHELL. I knew the absolute path of "nano" editor and used it to modify the file (i.e. /etc/environment) back to its original condition.
This fixed the problem and now I can run programs like "ls" from the SHELL.
But still I need a way to permanently add the path of "md5" to the environment. How can I do this in Ubuntu 10.10? Which file needs to edited?
Do I just logout or do I have to restart the system to make the changes active?
View 6 Replies
View Related
Aug 25, 2011
I was using the command export, but it looks that after some time the set variables disappears. What is the easiest way of setting an environment variable forever?
View 2 Replies
View Related
Dec 24, 2009
I am new to Linux. I installed JDK and Apache Tomcat recently but the problem is every time I want to work with them, I have to set the environment variables. I want to run tomcat as a service so that I don't have to set those system variables every time.Can it be done in any way? I am using Tomcat 5.5 and my Kernel version is 2.6.21-1.3194.fc7.
View 3 Replies
View Related
Nov 1, 2010
I've written a for loop with a counter i and I want to use the value of i within sed to edit certain lines of text within a fortran file.I want the the x=10 will be replaced by x =1(counter from the loop).. and so on.But from the following code my x = 10 is replacing by x = i.So
I am getting error.
View 3 Replies
View Related
Jul 2, 2010
i have a script to read a file and get each column with varibles.actually my file: hplog1 sample 3 lines consists of
client1_day- 2010
jan
client2 2009
[code]....
View 1 Replies
View Related
Jun 22, 2010
I have installed two wireless-related drivers:
modprobe lib80211
insmod wl.ok
On rebooting, I find that these are no longer installed. How do I fix them in place?
View 2 Replies
View Related
Sep 5, 2010
I just bought a 31.5" HDTV and have it connected to my laptop as a monitor. My laptop monitor is cracked and pretty much useless so I would like to be able to keep it turned off and stick with my new monitor. So far, I have managed to accomplish all of this, just one problem, I will need to go through too long a process for every login to set it all up again. I'm hoping someone can help me simplify this and have everything done automatically while Ubuntu is booting or even right after login.
Process:
Code:
$ cvt 1366 768 60
# 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz
Modeline "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
[code].....
View 1 Replies
View Related
Jun 13, 2010
I am a newbie and I am compiling a kernel in order to reduce the bootup time. I have a question as follows.
I am trying to remove a module. I used rmmod and modprobe. I can remove the module, but it is loaded again after reboot. How can I remove a module permanently? The module that I am trying to remove is lp.
View 5 Replies
View Related
Apr 28, 2010
I play MAME in Ubuntu 9.10 and every time i boot my PC I calibrate my joystick with jscal. The correction values are stored in a script ( /etc/joystick.cal ) but when I reboot, the old values are written again in so I have either to repeat calibration or open the script and give the right correction values (which I have stored somewhere). So , what is the way to save my changes in this script permanently ?
View 6 Replies
View Related
Mar 7, 2011
Now i want to disable my ssh server "permanently",which means it won't run unless i start it after i login.that is,it is disabled at boot time by default.
i have asked a similar question before,but i still have some confusions.
Say that now the ssh server is running.my system is ubuntu 10.04. code...
The disable|enable API is not stable and might change in the future.
the shell gives me a warning:do not match LSB Default-Start values,this API is not stable and ...
what does this mean? still it can't disable the server "permanently",ethier.
what on earth should i do to solve this?
View 13 Replies
View Related
Feb 24, 2010
I enabled backspace in vim by "set backspace=eol,start" and it worked. But if I close the window and open up another one, the backspace is automatically disabled again. Is there a way to enable backspace once and for all?
View 2 Replies
View Related
Feb 4, 2010
Having openSUSE 11.2, Firefox (latest release) is having some issues when comes to "saving image as", it fails to offer "saving window"? Konqueror works normal, what could be the problem with Firefox?
View 4 Replies
View Related
May 2, 2011
Kernel 2.6.21.5, Slackware 12.0. I have a file named juan34. I was sure it was a plain text file so, instead of running first 'file juan34' I directly did 'cat juan34'. The result was everything echoed to the console are the ascii caracters greater than 127 decimal. In other words, the screen is unreadable.
I typed 'exit' but this did not remedy the situation. The login prompt was written with these strange chars. In another console I'm running a program which I estimate will terminate execution in 20 hours or more, so I do not want to reboot the machine.
When I worked in MS-DOS, I had (made) a program that reinitialized the 6845 CRT controller, fixing this problem (for this could also happen under that O.S.). But, if there is a solution for MS-DOS, all the more so there must be one under unix/linux.
View 6 Replies
View Related
Sep 4, 2010
how can it be done?
I'm running 64 bit linux mint 9.
View 3 Replies
View Related
Jan 22, 2011
I just setup a FireWire audio interface. Everything works fine, except for I need rw-rw-rw- permissions on /dev/fw0. I can always sudo chmod 666 /dev/fw0 just before setting the thing up, but then it will be gone on the next rebooting.The solution to modify /etc/udev/rules.d/020-permissions.rules (which is for Ubuntu Breezy) doesn't go well for Ubuntu 10.10 Maverick because there is no /etc/udev/rules.d directory.
View 1 Replies
View Related
Jul 20, 2011
I need to increase the default stack size on Linux. As I know there are usually two ways:
ulimit -s size
/etc/security/limits.conf
The ulimit method only works as long as I am logged in.
limits.conf will work after a restart.
Is there a possible way to increase the limit without restarting?
View 2 Replies
View Related
Jul 10, 2011
I installed Ubuntu on my Netbook. I like it to use the Terminals. I don't mean the "GUI-Terminal-Emulators", I mean those I can open with "Alt+FX". There the font size is to big, so I changed it with "dpkg-reconfigure console-setup". It worked, but after restart the font were "reseted" and big. Is there a way to permanently change the font size?
View 4 Replies
View Related
Sep 22, 2010
I want to save notes against a file on linux... i want to save meta data about a file..because the file names are restricted in max length...So how to save notes or comments about a file on linux so that it gets saved along with the file itself...I used the notes tab in the file properties dialogbox.. but that way the notes stick to the file only on that OS only.. if i open that file in another linux os.. those comments/notes are gone...Way to embedd these notes into the file so that i dont lose them ever..At lease a solution that makes this possible on switching linux distros. if its not portable enough that these notes stick b/w windows and linux its ok for me.. but atleast if i format my linux os.. atleast i shouldnt lose those important notes..and be able to access on newer linux..
And i also have no idea if this notes tab was implemented to be linked with the OS only.. i dont see much use of it.. and a normal user also has noway to know this.. i also came to know on superuser chat from a buddy.. @Sathya ..this thing is more useless especially if u use ubuntu which has 6 months timeline..and crazy people like me who are always eager to upgrade their os as soon a new one is available..and any way i can search these notes from the terminal?
View 3 Replies
View Related
Dec 1, 2010
I have installed a driver on SUSE, and changed permissions for it (/dev/name) with the chgrp command.
However after rebooting my computer the change is lost. How can I save the permissions for the device?
View 1 Replies
View Related
Feb 21, 2010
I'm using fedora 11. I want to do some operation like after saving a file (moving ,copying,..) the system need to ask that "DO you want to encrypt?" . If yes I am able to run the crypt module (which I already implemented..). Is it possible to invoke a encrypt module which I implemented in c language.
View 2 Replies
View Related
Apr 12, 2010
What would be the best way to install Linux such that I could also on occasion use the Windows XP that came with my new computer? Ubuntu with XP running in Wine? -- so I can use both at the same time? Dual partition to dual boot? I tried putting wubi Ubuntu installed on top of Windows, but have problems with grub crashing and have been told I had best not install Linux on top of Windows. But if I install Linux as the primary OS, how best save the option to do some Windows? I want to do astronomy stuff, so am hoping Ubuntu is good for science, if not, I can use RedHat.
I do not have a Windows XP install disk from the vendor, so if I wipe out the XP install, it might be trouble for me to reinstall windows, so I don't know if I should just copy the hard disk to an external drive. The computer does not have my personal files on it yet.) Is my current idea of running Windows in Wine feasible? Would I need to reinstall Windows by copying back the files from an external hard drive?
View 6 Replies
View Related
Feb 2, 2010
I have a problem with saving output from awk to a file. The commands I tried:
Code:
$ top | awk '/Cpu|Mem/ {if ($1 ~ /Cpu/) {printf strftime("%H:%M:%S")" "; printf strtonum($3)" ";} if ($1 ~ /Mem/) {printf ($5/$3)*100; printf "
";}}' > file.out
and
Code:
$ top | awk '/Cpu|Mem/ {if ($1 ~ /Cpu/) {printf strftime("%H:%M:%S")" "; printf strtonum($3)" ";} if ($1 ~ /Mem/) {printf ($5/$3)*100; printf "
";}}' &> file.out
In both cases file.out is empty. What am I doing wrong?
View 2 Replies
View Related
Jun 17, 2011
When a video is opened in ..... or any other site, where is it saved on my HDD,or how can I save that video?
View 5 Replies
View Related
Aug 8, 2010
I'm using two swap disks. Changing the order they are in in /etc/fstab and using "pri" in fstab doesn't have any effect. This is what it looks like /etc/fstab
#swap on other disk
UUID=90a1550c-84d6-4bde-8bc1-7c15292980f1 none swap sw,pri=-1 0 0
#swap on same disk
UUID=13b70e65-f1c3-4728-920f-9e92467d1df0 none swap sw,pri=-2 0 0
[Code]...
Its opposite of what it is in fstab, and changes to fstab have no effect.
View 1 Replies
View Related
Dec 14, 2010
I have ubuntu 10.10 installed I have 5 more NTFS partitions in my disk other then Home & root My problem is, when I try to delete a file or folder it says "Cannot move file to the Rubbish Bin, do you want to delete permanently? The file "Nisarg" cannot be moved to the Rubbish Bin." I have more 2 NTFS partition on portable hard drive. On It trash is working fine.My home and Root folder also haven't this problem.
View 14 Replies
View Related
Dec 24, 2010
I often send and receive gpg-encrypted mail. At the moment I use thunderbird + enigmail (in linux) to do that. As far as I know there is no way in thunderbird to find all encrypted messages which bodies contain particular keywords. There also seems to be no option to save encrypted mails decrypted (so they would be searchable). However for me it is important to be able to search old encrypted mails.
Is there a way in linux to save incoming mails automatically decrypted in my inbox and save outgoing encrypted mail decrypted in the send folder? Both times adding a line to the body which remarks that the mail was encrypted.It could be another email client for linux that could to that or perhaps a solution using procmail or maildrop.For a procmail solution I guess there could be some problems with encoding (perhaps one have to use emil?). Note that the solution should work for multipart encrypted messages (including encrypted attachments) too. The point is that the mails are encrypted on the mailserver or more generally on their "way through the net".
View 2 Replies
View Related
Dec 29, 2010
An external 3½" HDD seems to be in danger of failing” it's making ticking sounds when idle. I've acquired a replacement drive, and want to know the best strategy to get the data off of the dubious drive with the best chance of saving as much as possible. There are some directories that are more important than others. However, I'm guessing that picking and choosing directories is going to reduce my chances of saving the whole thing. I would also have to mount it, dump a file listing, and then unmount it in order to be able to effectively prioritize directories. Adding in the fact that it's time-consuming to do this, I'm leaning away from this approach.
I've considered just using dd, but I'm not sure how it would handle read errors or other problems that might prevent only certain parts of the data from being rescued, or which could be overcome with some retries, but not so many that they endanger other parts of the drive from being saved. I guess ideally it would do a single pass to get as much as possible and then go back to retry anything that was missed due to errors.
Is it possible that copying more slowly — e.g. pausing every x MB/GB — would be better than just running the operation full tilt, for example to avoid any overheating issues? For the "where is your backup" crowd: this actually is my backup drive, but it also contains some non-critical and bulky stuff, like music, that aren't backups, i.e. aren't backed up. The drive has not exhibited any clear signs of failure other than this somewhat ominous sound. I did have to fsck a few errors recently — orphaned inodes, incorrect free blocks/inodes counts, inode bitmap differences, zero dtime on deleted inodes; about 20 errors in all.The filesystem of the partition is ext3.
View 2 Replies
View Related
May 8, 2011
I loved Gnome's Nautilus and FTP integration and being able to mount a remote FTP directory as a regular bookmark/directory, and double clicking any remote files to open in any unmodified program. I also loved editing text files with GVim.
However, if I double clicked file on Nautilus to open a text file in Gvim, then saving a file will take about 10 seconds and GVim will hang for that amount of time. The major irritant is that I cannot continue editing while the text editor is waiting for the write to finish, this delay interrupted my workflow and thought process and saving becomes a painful process. The other problem is that I don't think simply uploading a file should take that much time.
I'm aware of GVim's internal FTP support, but they are not as well integrated with Nautilus's FTP and it suffers from the same problem.
So a few question:
Is there a way to make GVim or GVFS to save in background while I continue editing?
Why is GVFS so slow? Is there any way to set GVFS to use a single persistent FTP connection instead of creating a new FTP connection each time?
I'm on Gentoo Linux x86-64.
View 1 Replies
View Related