Ubuntu :: Saving Current Programming Before Upgrading?
Jun 7, 2011
I am writing this because I want to keep all of the things that I have now on my ubuntu 10.
4 computer and do not want to upgrade until I have some way of keeping all of the things that I currently have on it.Sohow so I make this happen? Should I try to load these program settings on a flash drive?
i'm using centos 5 and i want to save my setup when switching the user.when i switched user from user1 to user2 and then i logged in user1 back without shutting down, i couldn't see any working window on user1. But since it's working on the CPU, i guess it's working but i cannot just see the window(such as terminal in my case) i was using. i have been using scientific linux which have "save current setup" when logging out. but centos seems not to have that check box!i want to know whether centos can contain the setup for each user when switching user.
I'm looking at running -current instead of 13.1, and wondering about 'upgrading' to -current, as well as running multi-lib. I found the following procedures from another post of about a year ago, but I'm not sure from what directory to run such a script:
Should the procedures above work for me? and although I know that things may occasionally break here and there (and get fixed too), are there any known issues right now that would break things on my machine?
I use Evolution mail and use 2 PCs When I send mail it saves it to my current PC but not to the other PC so instead i want it to save the sent to the email server i'm using.
after i update to -current a few days ago. my slack partition cannot be mounted...and after that it's show 'kernel panic'.before i experience that problem, i have encounter an odd problem after i update my slack to -current, after i lock my screen and i want to unlock it, i cannot unlock it, it says 'i must kill kscreenlocker manually'. After that i reboot using root account. then i cannot enter my slackware again.kernel panic in boot screen.Kernel panic: VFS : Unable to mount root fs (8,2)
I currently have a server that is running on the Linux kernel 2.6.18-128.7.1.el5xen and I was wondering if it was possible to upgrade it to a new official Red Hat non-xen kernel(currently 2.6.37.1).What is unique about this kernel is that it is NOT a virtual system kernel but an older XEN kernel with proprietary material removed.If it is possible I was wondering about any repercussions that may occur as a result of said update. This would include, any issues with potential data/driver losses as well as recovery procedures that may be used if something would happen to it during the upgrade.
I'm trying to install s3fs but get a configuration warning saying that the current version of s3fs requires fuse 2.8.4 or greater. when I run pkg-config I see that fuse is 2.7.x.I downloaded the source for 2.8.5, configured, make, make installed and it appears to have correctly built the 2.8.5 libraries in /usr/local/lib but after running 'modprobe fuse' and ldconfig with the correct directory settings, pkg-config still says that 2.7.x is the active version and the s3fs configuration see barks about needing 2.8.4 or higher
How do I get the newly compiled version of fuse to be the one the system uses?I want to use s3fs to rsync my sever to Amazon S3.I'm running CENTOS 5.5 i686 standard and have cPanel installed on the machine.
I blame myself but I am lazy person. Now I am trying to learn a bit a bash scripting. But saving any script to see how it works is so boring. You know these exercises:
Code:
Now save this in a file - say helloworld.sh (haha), chmod and execute to see
Code:
Is there a way to execute text as a script? I mean
I have a lot of scripts in Bash and am 'converting' one of them to Python just to get to know how Python works. Up to now I'm loving it, the feel, the logic, the power, ...
1. I have a template file which will be filled in by a technician, meaning it's filled with comments (#) and variable = value combinations, where the technician needs to fill in the values needed under the section referring to the configuration he's performing. 2. After installing from DVD/ISO, the software RPMs get installed and there is a default configuration file containing variable = value combinations where the values need to be changed to the values indicated in the template file mentioned in 1.
In order to do this I played around (and Googled a lot) with ConfigParser. I can load the template, get whatever value I need, load the configuration file, set the new value to the correct variable and write the file.
I checked that the template and configuration files loaded (open()) contain everything, including comments. However when I write the configuration file all comments get lost.
Here's what I have so far: Class to create a fakesection header since ConfigParser needs sections and the configuration file doesn't have those.
Code: class FakeSectionHead(object): def __init__(self, fd): self.fd = fd
I found out how to save an object using Serializable in JAVA, the standard however how can I set up my MainVariableList to have a function/method saveobject so it saves the object within it's own class, the below code compiles, however when I run it reports an error on startup but works, basically what do I use for the red line, how do I tell it what object is passed to the class?
got a textfile with : as delimiters in between fields. e.g.1:2:3:4:5:6Thomas Cruise:Johnavid:Peter:Betty:JaneThe names may or may not contain white spaces.I am required to substitute any one of these names in the file with a new one inputted by user.e.g. to change John to Johnny, David to Beckham, etc. without touching any of the other names in the same line. Just one at a time.So here's the sed expression I was trying out with:
sed -i "s/<(.:.:)David>/$1Beckham/" names.txt I also tried: sed -i "s/<(.*)David>/<1Beckham>/" names.txt
I have one machine where I have several versions installed on different partitions. The base partition (/dev/hda1) is Slack 12.1. On a spare partition (/dev/hdc4) I had installed Slackware64-current. Last week I slackpkg upgraded and installed the 2.6.32.2 kernel, and now that partition will not boot. I know that with the new kernels the hd* designation has been removed, and have already redone that fstab (accessing it from a different boot) to reflect the sd*. Here is the slack64 section of my lilo.conf:
Code: # Linux bootable partition config begins image = /other/spare4/boot/vmlinuz
I've upgraded Slackware-13.1 I had installed to Slackware-Current using a local tree I had download with mirror-slackware-current.sh script, but when I rebooted I could not get the graphics to load. I think it's because I've also modified /etc/groups and add an username after audio: and video: group, but I forgot that and had to remove slackware from the machine.
I am accessing a firewire camera using the libdc1394 library and saving the image as a PPM file, using the code below:
[Code].....
My question is whether the above code is portable. I presume it is, since the result is a binary PPM file which should be capable of being read across multiple computers with different architectures and different operating systems. But at the same time, all that the above code is doing is just saving the binary representation of unsigned chars on the harddrive, and there does not seem to be any reason why the binary representations of the unsigned chars will be identical across multiple computers.
I am developing a program in a system where the Linux does not take care of the sync command automatically. So I have to run it from my application always I save some data in the disk, which in my case is a 2GB sdcard. It is true that I can make the operation system takes care of the syncronization, using a proper mount option, but in this case the programm's performance drops drastically. In particular I use the shelve module from Python to save data that comes from a socket/TCP connection and I have to deal with the potencial risk of the system being turned off suddenly Initially I wrote something like that to save data using shelve:
But that takes too much time to save the data. Note that I use the sync from the OS every time I close a file to prevent data corruption in the case of the "computer" being turned off with data even in the buffer. To improve the performance I made something like that:
Code:
def saveListData( list ) fd = shelve.open('file_name', 'c') for itemVo in list: fd[itemVo.key] = itemVo fd.close() os.system("sync")
Thus, first I saved an amount of objects in a list then I open the file and save the objects. In this way I have to open the file just one time to save a lot of objects.However I would like to know if adding a lot of objects before closing the file would increase the risk of data corruption.I known that turning off the system after fd.close() and before os.sync may cause problems. But what about turning off the system after
I have to write a script that says Hello, [current user]. Today is [date]. The time is [time am/pm]. You have logged into a [term] terminal.My script looks like this:
I'm looking for a function (prefer POSIX, but Linux specific would do if it has to) to get the current timezone offset. For my location, eastern USA, that should be -14400 when daylight time is in effect, and -18000 otherwise.
When I run:make -f mymakefile clean I get:rm -f mybinary *.so.* *.dep *.o mybinary.symand all the above files are removed from the current directory.But I have a directory /src/ where I have all my source files located. The *.o file in this directory are not removed?
how to pipe the current directory listing into sort so that the output is the date in descending order (primary sort key). If there are multiple entries with the same date, I'd like the times sorted in ascending order. It seems simple but for some reason this isn't working:
ls -l | sort -k 6r -k 7
For some reason it doesn't seem to ever get to the second sort key when using column 6 (last modified date).
Actually I suppose to use this "htop" command to get the system utilities like current processor speed ,running programs ,memory usage(ram and swap) to my program. I planned to get it using popen(). I was success popen("top | grep Mem", "r") with top command. But are there a way to take such information using "htop". Or are there any idea of taking current CPU,MEM,Swp usage as well as Tasks and running tasks using htop or other way to C program...
I noticed there's a new JRE in town, the upgrade 20, I still use the 13. What will the up to 20 do for the software I write? I use openJDK (came with the Fedora I use) to write software, and the JRE to use it in the browser, I needed to see the Java console, hence the need for the Sun JRE...
So: bottomline: if I upgrade to the new JRE - use the alternatives configurator to use that in the browser, will the software written in the current JDK (1.6) still work? Or: is Java downward compatible?
PS : I dont use anything fancy, just RMI, mySQL connectivity and a bit of Swing...
I've got some bash scripts that I'm testing which operate on different screen sessions under different usernames. In order to check the status of them, however, I have to attach the screen sessions to my current terminal.
I run into problems, though; I only allow SSH to my machine from one username; the others shouldn't need SSH access. So, I log in as one user, and su into whichever user I need. Without performing a chmod o+rw on the terminal before I su into a different user, screen complains that it can't reattach to my terminal, because the user trying to make it attach doesn't have the permissions to do so.
Seeing as I forget to do this a lot, I wanted to make a script that I'd run on log-in to do this for me. Unfortunately, I don't know if there's a bash variable that refers to the current terminal - I can't always guarantee that I'll be logging in to /dev/pts/0, especially if my internet connection gets cut and I leave a hanging terminal...
Is there a variable for that or a way to refer to it in a script? If not, how do I work around that?
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?