Tag Info

Hot answers tagged

5

That's what the -exec predicate is for: find /some/path -type f -name file.pl -size +10M -exec perl /my/script.pl {} \; If you do want to have your shell run the commands based on the output of find, then that will have to be bash/zsh specific if you want to be reliable as in: zsh: IFS=$'\0' for f ($(find /some/path -type f -name file.pl -size +10M ...


5

On Debian derived systems you can get the source (even as a non root user) using apt-get source provided sources.list has some deb-src entries. Otherwise it's stuck with downloading from the project source repository with standard tools. Once you've got that source then: ./configure --prefix=/home/me/mysoftware make make install Will work for most source ...


4

Directories are special in the sense that within a directory you can have references to several files and directories, so, if you remove the parent directory, all those files lose their reference point from where they can be accessed, the same with process. For such cases, rmdir() have different checks, that are different from unlink(): If the directory is ...


3

If you want to map new keys as modifiers (like Shift, Ctrl, Alt), using keycode with xmodmap is not sufficient. You need to do something like: keycode 87 = Shift_L clear shift add shift = Shift_L keycode 88 = Alt_L clear mod1 add mod1 = Alt_L keycode 89 = Control_L clear control add control = Control_L You have some examples in the xmodmap(1) man page. ...


3

If you are using the GNU tools, the following should also work: find /some/path -type f -name file.pl -size +10M -print0 | xargs -0 -n 1 -r perl /my/script.pl Explanation: The option -print0 causes GNU find to separate the file names with \0 bytes. Since \0 bytes cannot be part of the file name, this uniquely separates the file names. The option -0 ...


2

Of course, the error is that you don't have a mailer (sendmail,postfix, etc) implemented and active. That being said your other problem is that the >/dev/null 2>&1 ONLY only applies/associates to the LAST command in this case gzip. Thus there must be some type of output going to STDERR for your mysqldump. The correct way to do what I think you want ...


2

That IP is likely inside a NAT block which VirtualBox has set up. You need to either bridge or forward if you want to access the machine's ports from outside; you can do both from the virtual machine settings panel.


2

Use read -e: $ read -e -n 5 13acX read -e means that: Readline (see Command Line Editing) is used to obtain the line. When you do that, you can edit the input in any of the ways you would when writing at the regular shell prompt, including backspace, Home, and so on.


2

Linux has a mechanism that allows plug-ins to be registered so that the kernel calls an interpreter program when instructed to execute a file: binfmt_misc. Simplifying a bit, when an executable file is executed, the kernel reads the first few bytes and goes like this: Does it start with the four bytes \x7fELF followed by a valid-looking ELF header? If so, ...


1

I think the best way to find out what drains your battery is the powertop utility. Powertop will give you a list of the energy consumption of your devices and will show you whether powersaving is enabled or not (and allows you to toggle these settings). The laptop-mode-tools package (at least that's how it is called in Debian/Ubuntu) can also be helpful in ...


1

Boot into single user mode by going into the Grab menu and selected with the kernel version and press e to edit press space and type single


1

As suggested above, there are a few ways to achieve this. I would use awk as follow last | awk '$1 ~ /root/ && /logged/{print $3 | "uniq" ;}' Or last | awk '$1 ~ /root/ && /logged/{a[$3]++}END{ for (i in a) print i}'


1

So, you want a list of current remote logins with the user root. The command w lists all the logins on a system. So you can manipulate the output using grep or something else. This will provide you the current remote logins of root with IP address and also the local logins. w -s root Using grep with that output, to achieve the output you require:- w -s ...


1

This looks rather obvious, you're not using the same arguments. If this is gnokii-smsd and you specify -v, just like you're specifying in the script version it should print version and exit, just like you told it does. Why haven't you tried with the exact same arguments when in shell mode than in script mode?


1

You can't do fdisk because you're already at twice MBR's maximum with a 4TB device at 512b sectors. You need to format it with GPT. From wikipedia: The organization of the partition table in the MBR limits the maximum addressable storage space of a disk to 2 TB (232 × 512 bytes). Get the gdisk package and reformat the disk (though it seems to me it ...


1

Wine performs at native speed for some stuff, pretty bad for some other which have to be emulated. But performance isn't the biggest problem in wine: stuff not working is. Most likely you would have better reliability using a windows virtual machine. However you should specify which software you plan to use, because whether wine is the right solution really ...


1

What to do? You shouldn't use sudo for graphical applications, such as gedit. Use gksudo instead. What's causing the error I'm not sure. Apparently, the reason of error you get is that gedit is trying to invoke SessionManager's Inhibit method via D-bus. If normal applications can connect to dbus, they should have some config files in /usr/share/dbus-1. ...


1

The answer to this question is multi-faceted. UEFI != BIOS The very first thing you must do is try to forget any BIOS-related boot knowledge you might have - it doesn't apply here. There is no MBR, there is no second-stage boot-loader, there is no boot partition. Those things are thankfully fast becoming as obsolete as the quarter-century old 16-bit BIOS ...


1

After changing to dhcp you need to restart the service or from the NetworkManager gui. So then you will get a new IP and then you need to check the IP with ifconfig command and then you can ping that IP and check.


1

Quoting OpenTheFile : V2I is a disk image backed up from a current volume using Norton Ghost. It contains a base backup of everything on the hard disk, and may be mounted as a new volume or restored to another disk using Norton Ghost. Because of the last sentence, I would be tempted to say that this format can only be handled by Norton Ghost. ...


1

Talking to you for a while on chat it turned out that env | egrep 'INTEL|GL|MESA' showed you have LIBGL_ALWAYS_SOFTWARE=1 set. That's your problem. Per the documentation for LIBGL_ALWAYS_SOFTWARE, that disables all hardware rendering. When you use sudo to try driconf as root, sudo was removing it from the environment. You need to find where that is set, ...


1

As others have suggested I'd start by checking the .ssh directory has permissions of 700. Make sure no other users have write permissions to your home directory. If another user can write to your home directory then they could change/alter anything including the .ssh folder. I allowed group write permissions to my home directory and OpenSSH refused the ...


1

It is possible that some NTP service is still running on your system. Try chkconfig --list ntpdate and chkconfig --list ntpd It is also possible that ntpdate is called after some other event. You can try to uninstall NTP (ntpdate, ntpd) from the guest machine to disable it completely.


1

Not only is it possible; it is also recommended in some situations. GNU Parallel takes around 10 ms to run a job. So if you have 8 cores and the jobs you run take less than 70 ms, then you will see GNU Parallel use 100% of a single core, and yet there will be idle time on other cores. Thus you will not use 100% of all cores. The other situation where it is ...


1

I just had the same problem. The solution was editing the theme style files. An example how to change the font color for the desktop can be found here. The file responsible for the look of selected menu entries is the gtk.css under /usr/share/themes/elementary/gtk-3.0 The Line: @define-color selected_fg_color #FFF; defines the text color for selected ...



Only top voted, non community-wiki answers of a minimum length are eligible