I had asked red hat support how to do a full systems backup of a server, they said to use dd to make a full copy of the disk which looks straight forwards enough:dd if=/dev/c0d0 of=/path/to/file/system/backup.img However, red hat have said that backups and restores are not supported. I just wanted to find out whether anyone had successfully done this, and whether anyone had tried creating a clone using this method.Is it as simple as it appears or are there any points of note.
I'm planning to partition a new hard drive to dual-boot Mint+Mepis. I've read partitioning tutorials and posts, and want to check my understanding--I'd appreciate input from an experienced person.For 500GB hard drive, dual-boot Mint+Mepis:
--Mint: / root partition for OS; /home partition for ease of upgrading --Mepis: same as Mint = four partitions
And: /swap partition to be shared between Mint+Mepis /shared partition for shared data = two partitions
Total = six partitions
Since four primary partitions are allowed, I should use three primary partitions and one extended partition containing three logical partitions.Is that correct?If so, what should go where? I assume there's an optimal strategy--Should each /root of Mint+Mepis go in a primary? What should go in the other primary, and in the three logicals? Or maybe I don't need three primaries?--use two primaries and four logicals?
I want to get Ubuntu blazing fast and I started out by changing the swappiness to just 10 and got a huge performance spike. I was very happy with that. Then I used rcconf and GNOME's startup applications GUI and edited out quite a bit but still have a somewhat slow boot. Well, the next thing I thought I should do is edit the inittab and rid my self of some surely unneeded services. Well, according to this website, Ubuntu doesn't use this inittab, but etc/event.d doesn't exist either! Well I looked in /etc for something related to init, and I believe I have found where these services are called upon. /etc/init.d and /etc/init.
Now the files contain many scripts for different services so I was wondering how to edit these to turn them off to optimize my boot! Do I comment out the unneeded ones? My next question is what strategy should I use as I edit these? I think I can get rid of "ssh" and "cups" and "samba" since I don't use these. Can someone point me to a nice list of services and their functions? I just want to optimize Ubuntu as much as possible to not only have a fast computer for my self and family to use, but to impress Windows users with the speed that can be obtained from Linux!
I have huge files, wherein some lines begin with a number. I want to convert that number to a bookmark link
Sample file:
Code:
C.S. Lewis (I think) wrote:
1 If war is ever 2 legal, then peace 3 is sometimes 4 sinful.
Text without numbers toom I need the numbers to be <a name tags where the id is the letter x and the number that is at the beginning of the line:
Code:
C.S. Lewis (I think) wrote: <a name="x1">1</a> If war is ever <a name="x2">2</a> legal, then peace <a name="x3">3</a> is sometimes <a name="x4">4</a> sinful.
Text without numbers too I'm not sure why I can't get this, but after hours of 3 line long seds and endless while read lines, grepping ^[[:digits:]]s I can't figure it out.
I am trying to create a backup script that will back up a single folder for a class i am in. I was wandering if I could get some help. If possible I would also like to know how to write a script that can encrypt that same file . I will be putting the back up in my /home/usr/Backup directory. I am not trying to back up my whole system just a single folder. I am using Fedora 11
I'm just setting up a partition on a seperate HDD in my system. I plan to use the partition to backup the important files on my main HDD (to guard against HD crash).
The question I have is about where would be the typical location to auto mount this partition? Which would it be normal to go for:
I'm setting up a Fedora 11 server for the company of one of my friends. So far so good. But now he has asked me to setup access restrictions to folders through samba. Now I'm quite familiar with user access policies, even though I'm quite new to the GNU/Linux world. What I want to know is : what is the best way to give and remove, on the go, rwx access for a specific user to a certain folder in a linux system? Can I create groups for each folders, whose members will have the given permissions? Or do I have to create users for each folder and add to their group the user witch i want to give privilege to?
I just did my first rsnapshot backup of my /home/ to an external harddisk. When I am not at my computer for a couple of hours, I always shut it down. Therefore, there are no predictable hours of the day where I know that my computer is running. So, how should I schedule/crontab my rotating rsnapshot backups?
Is anyone using rsnapshot in combination with a schedule which is not based on exact times but rather on the time the computer is running?
I compiled and install a binary source using "make" and "make install", but after I done that I think it's kind a messy not to build it in package. Therefore I tried to uninstall it and make a package out of it.
Questions:
1. How do I uninstall a compiled binary from "make install"? Some suggested to do it manually. How do I do it cleanly so that I won't miss any spot?
2. I understand that makepkg is used to build a package. I have the binary compressed in tar.gz format and have some difficulties to understand the man page for makepkg since I'm not familiar with "make". How do I build it using makepkg, what is the proper step?
I have a rock solid server running CentOS 5.3 (probably 5.4 soon enough). Basic LAMP box with a few tweaks thrown in. Everything is running perfectly, with one problem - the drive is too small (I project it filling up to dangerous levels in 6-8 months). So, what I'm looking to do is basically clone the drive, store the image, pull the current drive and replace with a bigger drive (same number of heads and cylinders though), and install the image.
What I did do once, a million years ago, is put the new drive as a slave on the same IDE cable, and use dd (working from a live CD of the distro) to copy from the master (smaller) to slave (larger). Then, yank the smaller, change jumper on bigger drive from slave to master, and away I go. Next step as I recall was using gparted to get access to all the space on the new, bigger drive.
Is this more less still a reasonable way to go? I recall the issue was making sure the old smaller and new larger drive had the same number of heads/cylinders (although I don't remember exactly why).
Was running 10.10 64-bit on Thinkpad X201. I mistakenly clicked on upgrade this morning (really meant to just do a plain old update)... I tried to stop the process, but nothing that I did could get me out of the upgrade loop... so I eventually was forced to go ahead. Machine boots into 11.04; however, keyboard and mouse doesn't work. I have an external keyboard/mouse combo and that will intermittently work, but questionable. I was able to turnoff Unity; however, Classic doesn't seem to work with either external keyboard or laptop builtin.
My root and home are on separate partitions. I have a very fresh copy of home backed up on a separate drive. I don't have a recent backup of root. If I could get Natty working with Classic (including minimize/maximize) I'd be OK...I'd be also OK with going back to 10.10 if I could do it without too much pain. Meanwhile, I'm using another machine with Windows 7 so that I can at least do some work and come back to resurrecting my machine after I've had a bit of a timeout..
[URL]. I am installing the above later this week with the intent of it being my OS drive.
Potential Partition Scheme -> Boot 100 M Swap 8 Gig / -> Balance /home --> Separate Drive
Does this make sense for a SSD drive. Not sure if I should place the swap on the SSD drive or if there are any issues around any paticular partition set up. I am looking at installing either -> LM 9 / Ultimate Edition 2.8 / Debian / Ubuntu 10.1.
Having just executed a 11.2 to 11.3 upgrade (KDE), in which I preserved /home from 11.2 to preserve my data and settings, I now wonder if there is a "Best Practice" on how to setup the environment, anticipating future upgrades.Currently, for applications I frequently use and wish to launch from the desktop, I open /usr/share/applications (using Dolphin) and drag the application to my Desktop Folder, choosing the "Copy To:" option.After the recent update, my Desktop Folder files remain those from 11.2 or earlier.It seems now a better practice would be to populate the Desktop Folder with links back to /usr/share/ applications, so that changes would be implemented the the link to a newer file. That would be easily implemented by choosing the "Link To:" option when dragging.
ow Debian init system is organized actually (btw i am using stretch) ? I see systemd installed, with some services run from it (systemctl shows a small list), but at the same, i still see /etc/init.d full of traditional init scripts.
I've just spent the past two days trying to figure out how to convert an NRG image to BIN/CUE format. I've found all kinds of info on how to convert it to ISO. I've tried lots of different packages (K3B, Brasero, AcetoneISO...). No luck.
My NRG is an image of an old DOS game I want to play in DOSBox. The catch is that it's mixed-mode, so converting to ISO is not a possibility. DOSBox will mount BIN/CUEs, so that seems the route to go. But while K3B supports creating mixed-mode CDs, it doesn't read NRG images. And while AcetoneISO will mount the NRG, only the data track is accessible; the audio tracks aren't.
After upgrading our vmware template server from debian wheezy to debian jessie the output of the df command seems broken with regards to the root and /usr mount.We are using LVM on this machine.I've been searching for quite some time for a solution, but lack of linux knowledge is bothering me to get it fixed. The system seems to run fine without issues.
I can temporarily resolve the issue (untill next boot) by doing a lazy umount and a new mount of for example the /usr.I found a thread that something has changed in the way df presents the devices, however it is not consistent in our case (it shows a mix of both) and it seems to go wrong at an earlier stage during boot.Either show all dm devices or mapper devices is fine with me although I have a slight preference for the mapper names as it makes it more obvious LVM is being used.
Both my printers can't print more that one page on the row whatever the application I use.
I used to have a all-in-one printer HP PSC 1510 that I installed without any trouble.
A few days ago, I've got another scanner-printer HP 1050 that I tried to install on the same laptop in order to use it in another place. I had to take the new version of HP-lip, since 11.3 did not provide the right driver. I just printed the test page and it seemed okay.
Then, I upgraded from 11.3 to 11.4. And I had to print a long document. Only the first page was displayed correctly. All the following pages are more and more mixed up. It prints allways the same paragraph with big dark lines...
Following to cup, the drivers in use are : Deskjet_1050_J410 : HP Deskjet 1050 j410 Series, hpcups 3.11.3a PSC-1500-series : HP PSC 1500 Series, hpcups 3.10.2rc1.9
But the trouble is the same for both printers.
I can't guess if it comes from HP-lip or from my upgrade.
When the summer-holidays are a fact and it's time for some fun I will be upgrading my home network with a diskstation of some kind, and since all models I currently looks at supports 10/100/1000 M/Bit networking it got me thinking.
My desktop also supports 10/100/1000 M/Bit networking and since I already uses a 10/100 M/Bit switch between my desktop and (file)server, it would be very easy to buy a new switch that also supports 1000 M/Bit networking and then connect the diskstation to that switch as well. But the router the new switch will be connected to is only running 10/100 M/Bit so the question is, at what speed will the new switch be running?
I have a Dell 17R Dual Booted with Win7 and Ubuntu 10.04.I had problems getting online via Wired and/or Wireless.Ubuntu 10.10 is up, running, and updated. Broadcom Corp 4727rev 01 Wireless not detected [URL].The solution involved the installing of Ubuntu 10.10. However, now after a complete shut down I cannot boot into Win7 anymore. The boot loader recycles to the selection screen and I can go back to Ubuntu 10.10 but not Win7.
So this guy brought a CD full of crap (audio, picture, documents) and wanted to view the content. Ubuntu mounted it but said it was a blank CD. I think Ubuntu has some problems handling CD with mixed contents based on googling, I found some several years old bug reports and threads, but they either get closed without answers or just died because no one cares to respond.
Yesterday, I had the problem where I would browse to linuxpc2 and it would send me to linuxpc5. Theses computers are on my AD domain (server2003), so I decided to set a dhcp reservation on the server and del /var/lib/dhcpcd/*.* This fixed 1 of the 3 linuxpcs that had mixed up or matching ip addresses. What is happening now, and I've never seen this happen before, maybe it's a server thing, I'm not a huge network guy, so here it goes... from the server I can brows with the explorer to linuxpc2 and all is well, it's IP is 192.168.0.150, but when I ping it, or do anything command line (ping linuxpc2) it pings the address 192.168.0.101 (it's old address). From a linux box browsing to smb://linuxpc2 shows me no shares, and ping goes to ...101 address. If I brows to smb://192.168.0.150, all is well and ping 192.168.0.150 is fine also. What could be causing this? only 2 of my 8 linuxpcs are doing this. all installed and configured within the same day using suse 11.1 and updated.
I have a multi-boot system in my MSI Wind netbook that includes Win xp home, Ubuntu, and another Linux distro. The internal HD is 160gb, but most of it isn't used. I just bought a 60gb SSD, and would like to use it as the primary disk in my netbook. I would like to clone the Win xp and Ubuntu volumes to the SSD, which would leave me plenty of space, even if I added another distro later. With gparted, I can see that there is an initial logical volume of about 4gb (dev/sda1) with 775mb used, and by mounting and checking it I can see that it has a boot folder in it. It is formatted as ext3 (no flags). I don't understand the MBR concept very well, so I'm wondering if this is where the MBR is stored. The next volume is my Windows volume and is formatted NTFS with a boot flag. Subsequent volumes are clearly Linux volumes, including swapfile volumes. I have already formatted the SSD as NTFS, but as of yet haven't added any partitions.
(1) How do I clone the volumes I want onto the SSD? (Presumably with dd or a similar utility). (2) Does the destination volume have to be initially set to be the same as the source volume? (3) Do I need that first partition or would a new one automatically be created if I reinstall Ubuntu or any Debian-based distro from scratch or use a utility to fix the MBR?
I have several websites available via both HTTP and HTTPS, with images served from a separate virtual host. This breaks in IE because the images are loaded by the CSS, and because they're in a separate Virtual Host, I have to use absolute paths in the CSS.
Example:
[URL]
Renders in IE like this:
[URL]
The issue being that the wiki.archserver.org is being served via SSL, but the header logo is served by img.archserver.org and the CSS uses the absolute path [URL] to load the logo. So, the only solutions I can see are:
1) Change the CSS to always use SSL. This will slow down the site, increase load on the server and is generally a poor-practise as a "solution"
2) Maintain 2 copies of the CSS, serving a HTTP version to HTTP requests, and HTTPS version to HTTP. This creates a management overhead which is less than desirable.
3) Create an Alias in Apache to send requests for [URL] to [URL] internally then rewriting the CSS to use relative paths.
4) Screw IE; it works in Firefox, Chrome and every other browser AFAIK. The sites are for a Linux project anyway.
Without knowing the consequences I added the Sid repository to Wheezy (installed version) in order to install some software. Only much later I discovered that this generated me some mess which does not allow now to install additional software due to library conflicts.
I tried to install some packages needed to build the PhantomJS but here is what I got:
Code: Select allReading package lists... Building dependency tree... Reading state information... build-essential is already the newest version. g++ is already the newest version. g++ set to manually installed.
[Code] ....
Is there a way to clean up the mess that Sid introduced and revert back to the Wheezy versions?
I have an old backup, so it would take me much more time to reinstall/reconfigure certain software, so I am looking to alternatives.
Is there a way to check all the packages and find all the potential conflicts and then a way to restore the original Wheezy content?
I'm running fedora 12, am a relatively new user, and downloaded OO 320. package is 9483. I installed it before I realized fedora already included an OO version. Now, I click the icons and nothing happens. I looked at the desktop-integration area, and see the package for the icons is 7823? Yum will now neither update, nor remove OO. I hate having to revert to Windows to do some of my work.
This time I install fedora I get a sound card. It says Audio oupt or something well I can hear my speakers making sounds like blerereblumm like someone is rubbing a cloth over them yt no sound though. My output volume for all applications is maxed. So, what can I do to fix this?
I have installed KDE from the Ubuntu Software Center. Now I have the following... well, I wont call them problems, rather just annoyances.
1. The mouse pointer is KDE's pointer (I presume) in both interfaces. 2. I have mixed applications in the menus of both GNOME and KDE... GNOME has KDE's stuff and KDE has GNOME's stuff. 3. The Ubuntu screen at shutdown turned to Kubuntu regardless of being in GNOME.
The first and last one is not much of a problem for me, but is there a way of restoring each interface's default menu items? Since I know what I manually installed, I can just enable them again in Main Menu of Administration in GNOME and in KDE wherever that setting will be. If not, can someone maybe just give me a menu list in text or pics (ok, I know this might be asking a lot) so I can at least only have GNOME stuff in GNOME and KDE in KDE.
not matter is it Firefox or Opera.. I sometimes have problem after closing tab, in which I watched some flash video ( mostly ........ First specifinations : GPU : MSI Nvidia GeForce 9500GT 512MB, 128 bit ( installed restricted drivers, latest version, recomended..) Flash plugin is latest stable, Firefox and Opera too... System : Ubuntu 10.10 gnome ( installed just few days ago, but it happened before to..) Compiz enabled, latest stable...
So I open video in new tab... watch it ( sometimes whole, sometimes just part..) and sometimes, when I close that tab, I have problems with that part of screen, where that video was - system wide.. Some letter are not whole.. you can't read them... some colors are mixed, and wrong.. It looks like this :
I have to take picture with digital camera, since print screen points correct image, so that means that I have either monitor, or GPU problem.. (No problem on Windows 7, and I think no problem with Compiz beta, but alot of other bugs with compiz beta) This is how it should look:
When I opened those images on ubuntu, I wanted to crop them.. I noticed that some flash video, in background.. not the flash, but that last image frame only.. So how I move image viewer, that image stays in same place - that is the place where I have problem.. Here are images on that :...