Right now to install software from source I do a ./configure && make && make install which doesn't allow for easy uninstallation (some don't come with an 'uninstall' goal, and if they do you have to keep the source around). I'd like to learn how to create binary RPMs from source tar.gz files (one reason being that it makes for easier uninstallation). I tried the following but it complains with the following errors:
Code: $ rpmbuild -ta mysource.tar.gz error: Name field must be present in package: (main package) error: Version field must be present in package: (main package) error: Release field must be present in package: (main package) error: Summary field must be present in package: (main package) error: Group field must be present in package: (main package) error: License field must be present in package: (main package)
Apparently that's what happens when there is no SPEC file in the tarball. But all the tars I've tried give this same error. Is there a simple way to create binary RPMs from source files - as an example, this source tar [URL].
Very often we get to hear Binary / Source when we talk about installing packages...From what I understand "Binary" refers to a natively packaged installation by a Distro wheras installation from Source would entail fetching the files, Compiling and then building the package. When we say "source" where do these codes reside? Is it diffferent for different distros or one common source like "sourceforge.net" or similar?! I know it sounds silly but what is the origin of the source codes??
One general remedy if a package is not found is to install from source... So , source would refer to a "tar.gz" or "bz2" archive present at some location like "[URL]". In some cases , id it possible that some packageas are not available in "Source". When I tried to build a package for a particular distro , I was told that some dependencies are not un the source ...What is the meaning of this? So do all distros maintain the codes in their official repositories?
I know there's a which command, that echoes the full name of a binary (e.g. which sh). However, I'm fairly sure there's a command that echoes the package that provides a particular binary. Is there such a command? If so, what is it? I'd like to be able to run this:
Before installing Fedora on my laptop I backed up my files onto a USB key. I wiped the hard disk and installed Fedora 12. I copied my files back to my home directory - but all the text files are now binary! Any ideas why this would be or how to fix it??---------- Post added at 10:54 AM CST ---------- Previous post was at 10:35 AM CST ----------Hmm it seems that only some files are binary. Looks like some .tgz files are corrupted too.---------- Post added at 11:02 AM CST ---------- Previous post was at 10:54 AM CST ----------Damn - I wonder if the files weren't completely written to the usb key before I removed it. I don't remember their being a safe mount option in Fedora 10 - but I definitely unmounted it before removing it from the laptop.
I have recently updated my ubuntu 9.10 install to 10.04. And with that I've tried to install snow leopard on my computer so i can dual boot between them.the install was successful, but grub2 (that worked fine) wouldn't see the OS X install on its own partition. so i tried reinstalling it, like you do after you install windows and it would remove grub as the bootloader.That didn't work and i got a lot of messages that it wouldnt work because my partitioning (or something like that) is GPT. by the end of it i didn't have grub installed at all!so i started playing around with GParted, and while doing that i also put a bios_grub flag on my main ubuntu install partition, thinking that it would force grub to load from that partition. But that just gave me the GRUB Rescue prompt when trying to boot.
So i unchecked the bios_grub flag. and now it doesn't boot to anywhere and when inserting the ubuntu live cd i cant even see the ubuntu ext4 partition and mount it.Gparted says that its a partition that its File System is undetectable and unknown.Is there any solution that will allow me just to mount that partition and copy files from it? (unfortunatelly my backups are a little older than i would like them to be)Heres what boot info script gives me: (the partition that i need is sda1)
Code: Boot Info Script 0.55 dated February 15th, 2010 ============================= Boot Info Summary: ==============================
i recently downloaded wubi and attempted to install ubuntu. everything went smoothly and the first time i tried to boot up ubuntu, the purple desktop background came up and ubuntu finished its installation. then i had to select which operating system to use (XP or newly Ubuntu), and when i choose ubuntu i get the following message:
"Choose an operating system to boot from:[XP is the only OS listed]
Use the up and down keys to select which entry is highlighted. Press enter to boot the selected OS. 'e' to edit the commands before booting or 'c' for a command-line. ESC to return to previous menu."after i select XP, the error message "error: unkown command 'drivemap'." displays briefly in the upper left hand corner. I am currently running Windows XP.
My laptop was running Vista just fine. I had and wanted to install Linux and chose Ubuntu. I installed it to a USB and booted using this USB. It installed just fine and ran fine one time as well!When rebooting and wanting to run Windows, I got the diskcheck screen and let it run. Windows booted fine afterwards.On my next reboot all I got and still only get is the following
My sister got a Dell laptop installed Ubuntu 9.10Her 3 year old son got to the laptop and i have no idea how hey did this.He accidentally deleted the hole hard drive + file system ext4.Can com one tel me how the blip i can recover the lost data.Now if i do this sudo fdisk -lu i get this
Device boot Start END Blocks ID System /dev/sda1 * 19131 19458 2620416 C w95 FAT32 (LBA) /dev/sda2 18707 19457 6032407+ 5 Extended
how efficient and effective are these snort, argus, ossec etc etc for an organization having 3500 PC Network, connected through 700+ Cisco Devices (Layer 2 and Layer 3), and scattered on 130 different sites (geographically)? what should be the combination of products and what should be the architecture for an efficient forensics activity?
just tried downloading the latest version of ubuntu and install it on my laptop got an error message at the end of the installation (an I/O error, dev sr0,sector something) now when booting i got grub rescue. the only command working are ls and set. commands such as 'linux' or 'boot' show 'unkown command'
typing ls (hd0,1) or ls /boot/ results in unknown filesystem
I tried to reinstall grub using the 3 different methods as in [URL] got no error message while doing so except when typing sudo grub-install --recheck /dev/sda it told me something about being unable to locate ubuntu or something along those lines - sorry i thought i'd remember .. running out of option is there a possibility to download the latest pre 10.04 stable version?
I'm looking for a way to delay or disable the balloon tips that appear when pointing the curser at certain things. Example: In applications>accessories>archive manager; when the curser is touching "archive manager" for more than 1-second, a balloon tip window appears that says "Create and modify an archive." I would like to increase the delay before the balloon tip appears to be 5 seconds or more, as I rarely need this feature. If delay is not possible then I'd elect to disable it, if that can be done. I've searched Google and these forums but have not found any posts. I'm thinking the setting may be hidden somewhere in the "Configuration Editor," but I haven't been able to find it.
How do I get rid of Yellow Tool Tips? I already tried: gconf-editor and apps > panel > global and uncheck tooltips_enabled; then rebooted. The yellow tips are still there. I find them of little help and a bit annoying. Update: Actually I just noticed that the color depends on the theme being used, therefore it is not always yellow!
My distribution of choice on my desktop is Arch Linux (I like getting all the new stuff before anyone else) but I am going to be making a home server, and I can't imagine Arch Linux working well for that because I want something stable and reliable. I always admired Debian for not only APT but it's reliability. I thought about using Ubuntu server but I don't like the direction Ubuntu is going, and I like Debian better anyway, so I am firmly set on using Debian for this server.
This server will be more advanced than necessary for a home user. The reason is because it's a learning experience. I want to learn all about DHCP, DNS, and all those other things. I'm already very knowledgeable on SSH and Unison, which will be the primary focus (backing up). So I was hoping I would list the things I decided to do and get some opinions/best practices from you guys.First, I decided on a Dell Inspiron 570. It's dirt cheap (around $280) and it has a gigabit network card. (I'm pretty sure). I need to stay as cheap as possible because money is a HUGE factor for me. I have a budget of under $700 to do all this. (So I may need to get smaller hard drives). Whatever default hard drive it comes with I will add two more hard drives in a RAID1 for /home. Like this:
Disk 1: Root, swap and boot partitions (smaller hard drive) Disk 2 & 3: Dedicated to /home, on a RAID1 (two 2TB hard drives)
The idea is that once the server is all the way done, I will image Disk 1 with Clonezilla, and if it fails, just restore it. I personally don't feel that having RAID1 for the root partition is necessary when Clonezilla takes 20 minutes to restore a drive, or less. The OS and all configurations in /etc would automatically be backed up in that image.Since I'm using the server primarily for backups (there won't even be a monitor on it when done) /home will be on a RAID1 since that's the most important thing. (I have backups on external hard drives too, one is off-site, so still no worries). Also, the server will handle DNS for the hostnames on my four other computers, and I'm thinking of replacing my router and having my server do that too. Nothing wrong with my router, but it would be fun for me to set this up.
I've got a non-urgent but itchy thing here - I'm implementing a drag-and-drop. All rolls well, but I'd like to have the component be "followed" - if there is a drag on the component, the form should be visible. I'd like to make a puzzle where the player can see the perimeter of the piece to see if it fits where (s)he'd want to drop it. Before I delve into the tons of code, I'd like to know if that (the following) can be done.
I'm building my new home machine right now and as usual this will be a heavily overloaded workstation that will serve as development and testing machine, file server and game console (plus I'm adding TV cards and multimedia streaming for my home network). Since these use cases work against each other (file server is unavailable when the machine is used as game console), I'm heavily considering the use of Xen to provide everything at once. Performance shouldn't be an issue in general, but the game console use case definitely requires direct access to a GPU.
I am using ubuntu remix 10.04 on Dell mini 12 notebook. Everything is perfect expect coding in Eclipse. If any code tips window pops up, then I can't type in any letter until I click right mouse button or [Alt + Tab] to other window and switch back
This was happend to me 2 days ago when updating Ubuntu 10.10 and I didn't notice that 10.10 was unintentionally upgraded to 11.04. After uninstalling 11.04 and reinstalling 10.10, I made a basic tips on how to update your 10.10 without upgrading to 11.04: Simply install some "Important Security Updates" only in Update Manager.
Now I managed to get iptables to work with my OpenVZ configurations and everything seems to work as it should. However when I run iptables -L I can only see source for the second SSH rule, why isn't the first ones source/IP shown? Also if you have any comments about the setup feel free. I'm running SSH, Apache and local MySQL
The xxx.xxx is simply to hide my IP's Code: iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD DROP
I want to restrict SSH so that its only accessible via the machines I own on this network. Obviously need to secure user authentication/host authentication, that aside though is the following sufficient at a network level given technical users also use this network? IP addresses are static, though I know they could be spoofed.
Code: Chain INPUT (policy DROP) target prot opt source destination existing-connections all -- anywhere anywhere allowed all -- anywhere anywhere