The above command does exactly what I want: limit the search of files in $SEARCHDIR to those specified by --include.
I use double quotes rather than single quotes because of the shell variables. I would have thought this would cause the shell to expand the "*" but this doesn't seem to be the case.
I installed cygwin with rsync on a Win XP Machine. My goal is to backup a folder from one hard drive to another (both on XP machine).
I run the following command from a batch file:
Works fine except the --delete flag is not working. Copies everything in source to destination, but doesn't delete some extra files that are present on the destination, but aren't on the source, which it's supposed to. I looked at the rsync man page, and I'm doing everything right... such as not using wildcard.
The same command works perfect on another computer (XP machine; source and dest both on XP machine).
What is the difference between /usr/local/include and /usr/include? When I compile my program, is both /usr/local/include and /usr/include avaliable? Can I copy a file from /usr/local/include to /usr/include?
I'm running Ubuntu 11.4. I've played with different versions of Picasa, installing the Linux version via Ubuntu Software Center and also using Wine. At a certain point I had several versions of the application installed and things were getting. When I search for Picasa in the Unity application search field (clicking the button with the dot in the centre at the top left of my screen) I got several results for Picasa, some of which when clicked would start Picasa and some which wouldn't. When I remove all versions of Picasa both from Wine and native I still get some results for Picasa which don't start Picasa when clicked.
I just downloaded the SDL source code. i did compile and make of this code.then i did make install. but i didnt see the files of SDL.h and lib.SDL.*** in /usr/include/ but later i found out that these files are placed in /usr/local/include and /usr/local/lib. how can i specifically install libraries on /usr/include and /usr/lib
I'm trying to get a Balkin f5d8010 working in Ubuntu 10.10, 64 bit. Most of what I see from searching the web is from 2008 or earlier. Anyone know if the newer kernel(s) include support for this, or can I get the drivers somewhere?
I recently set up an email server at work on a ubuntu box, running exim4. Everything seems to be working fine, but when I try to change the "from" header in the message, its not letting me.
I wanted to send a message from the root user as "admin".
I assumed this would be easy as:
Code: mailx -r admin recepientname
but for some reason the mailx program is claiming that "-r" is not a legitimate tag, when I try it tells me:
Code: mail: invalid option -- r usage: mail [-eIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] to-addr ... [-- sendmail-options ...] mail [-eIiNnv] -f [name] mail [-eIiNnv] [-u user]
fgrep -iRn -C 2 'print' *.txt ---also recurses one level and displays all kinds of data --------------------------------------------------------------- in root / ext4 directory:
Code:
fgrep -iRn -C 2 'print' *.* or fgrep -iRn -C 2 'print' *.txt ---displays msgs: fgrep: *.*: No such file or directory and fgrep: *.txt: No such file or directory
I am probably missing something very basic.recursive does not seem to work from root directory.Is this (as they used to say) a feature? This is on an 11.2 system, upgraded to 11.3 (ran zypper verify to verify. According to it.. all is well).
yesterday ubuntu 10.04 hanged so i restarted it and i wasnt able to boot again all what i get is a blank screen with a blinking cursor... also windows7 dont boot (hangs during loading) after some googling i was able to boot only in linux by setting the noacpi flag during booting in grub but there was no internet connection (wired connection) i guess that noacpi is the reason ??
what i have tried :livecd: doesnt boot except with the noacpi flag and no internet connection reinstalling grub : doesnt solve the problem replace the power supply : nothing differ
In another forum (I each day visit a lot of them) a user was stating that you need to set a boot flag to make the root partition bootable, if you create partitions with GParted in order to install a Linux with GRUB2. Another was suggesting that, if you install Linux with GRUB2, the installer automatically sets a boot flag to the root partition to make it bootable (I don't remember the names). I neither believe the first nor the second thesis and I'm hoping that in this excellent forum some Gurus not only are saying I'm right but also give a comprehensive answer.
Little explanation: OEM HP pcs come with an HP_RECOVERY partition which contains an installer which will wipe the HD and install vista (shivvers) Now despite how much I looooove vista, I was wondering why the OS_TOOLS partition shows up in places and recovery doesn't... especially cause niether have a hidden flag...
(As a side note, what the hell does OS_TOOLS do? google yields no answers)
A week or two ago I installed Ubuntu Server 9.10 on a Intel DG945SEJT-based machine with two WD RE2-drives. I used unetbootin-windows-408.exe to to prepare a USB stick with the 32 bit version of the server version of Ubuntu. The installation went smooth without any problems.
Now when I'm trying to do the exact same thing to an almost identical server (larger HDD:s) I can't change the bootable flag to "on" on the physical raid partitions I create to host /.
I use the the following partition scheme: 10 GB /, 4 GB swap and the rest as /home. They're all on software-RAID1. Last time I did this (and many times before that) I was able to set the flag to "on".
When I press enter it just shows "updating filsystem.." etc. for some second but then nothing happens, the parameter is still on "off". This causes the whole installation to fail in the end due to an error when installing GRUB -> "can not install grub in /dev/sda "fatal error"".
My only conclusion is that the installer downloads some new files from the internet which causes this problem, as I said - nothing else is different except the harddrives (WD RE4-GP).
I want to append data to a file where immutable flag is set..So i have tried this command chattr +a file_name to append data..But i am unable to append the data..
Well I currently have a windows partition currently formatted as ext3 which has the partition flag bootable (It previously had Windows Vista on it). I also have a windows partition with NTFS filesystem with Windows 7 on it which is not bootable because the previously mentioned partition became formatted by me. And I also have more partitions for Ubuntu, which is currently the only OS working.
To show it visually: [URL]
So my question is can I delete the partition called "Inter" and recreate a new partition and format it again with ext3? It has the partition flag bootable, won't I loose all of the partitions this way? It's also the primary partition? Is there a big risk?
I just installed windows 7 and ubuntu stopped booting even though it was still there, so I thought I would just change the partition flag to boot. I found out later that I had to create a new mbr but after I changed the boot flag, windows 7 stopped booting and I tried changing it back, but it didnt work. So I was wondering if i didn't use the correct flags or is there another way to get windows 7 to boot again? I was using GParted to change the partition flags and that i am using windows 7 ultimate 64bit
I've installed MongoDB and I want init to start the database with the --journal flag. I'm quite rusty on how init works, but I know it involves the /etc/init and /etc/rc directories.I've found /lib/init/upstart-job and someone in the chat is suggesting that I just edit that bash script, but I can see it's involved with more than half the system service, so I'm a little hesitant to edit it. In fact, I'm pretty sure if I followed that advice I'd really screw up my system and then the person "helping" me would just stop responding.
Is the command "ls -d" meant for only listing directories? Because i tried it and it ALWAYS display just a blue dot. If not what is the correct way to show only directories? I.e. MSDOS equivalent "dir /ad".
I recently install 64-bit OpenSuse 11.3, the first time I'd used Suse 64-bit - I have to say it has been all good so far, which is great. However, today I was experimenting with a tool that tests vulnerabilities which should be remedied if using an NX capable processor. I am running 2.6.34.7-0.5-desktop on an Intel Core i7. I downloaded a 64-bit compatible version of paxtest from :
[URL]
Running it I was surprised to see that the NX capabilities of the CPU do not appear to be honored. Here are my results:
PaXtest - Copyright(c) 2003,2004 by Peter Busser <peter@adamantix.org>
Released under the GNU Public Licence version 2 or later
From my understanding, NX was one of the big deals a few years back and was a main feature provided by the PAE kernel. I would have thought the default 64-bit kernel would have included NX support. I also thought per NX bit - Wikipedia, the free encyclopedia that NX support has been in the kernel since 2.6.8 I looked in config-2.6.34.7-0.5-desktop but did not see anything related to NX/XD config wise, other than DEBUG_NX_TEST What am I missing here? Shouln't this test fail in the Executable [bss, stack, etc.] tests on 64-bit with a NX capable processor?
After updating to Karmic, Synaptic shows almost all of my installed packages in the category "Installed (manual)", including about half of the packages that belong to a clean Ubuntu installation (e.g. apparmor, apt and hundreds of others). As a result, I can't easily get a list of those packages that I did indeed install manually and may want to remove. Is there a way of removing the "Installed (manual)" flag from all packages?
If I could do this, all packages that do not belong to the core Ubuntu system should show up as "Installed (auto removable)" and I could individually mark only those as manually installed that I really still need and let apt/synaptic uninstall everything else. I know that with today's hard disks, disk usage of installed packages is not an issue. But those packages accumulate over time and need to be updated with every security update and every ubuntu dist-upgrade, wasting time and bandwidth.
I am getting the following errors continuously whenever I update/save a config file in /etc/
Code:
error: line 29136: bad flag vector alias error: line 29137: bad flag alias index: 0
The config file got updated though. I am just worried that this may be something bad.I update the files using the command sudo gedit <config_file>. I haven't encountered this before in Karmic. Has anyone encountered the same error messages? This might be a problem with gedit. I tried doing the following and the error messages also came up:
1. In terminal, gedit foo.txt
2. In gedit, type anything and save
3. Terminal will show the following:
Code:
... ... error: line 19234: bad flag vector alias
[code]....
Running artha from the terminal also causes the error.I've managed to get the top-most line of the error:
error: line 15: bad flag alias index: 0 error: line 15: bad flag vector alias
The hardest thing about this is I have no idea what's causing it. I thought it was gedit but running artha (from the terminal) also causes the error.Sigh. This is a clean install of Lucid, which again makes it even harder to know what causes it.