Tag Info

New answers tagged

0

You can take a look at this http://kerneldedup.org/en/projects/uksm/introduction/. Disclaimer: I have no idea at all about its reliability, security, performance, ... :-)


0

Here are a couple of approaches: sudo sh -c '(some long-running command > out.txt; echo $? > ret.txt)& echo $!' and sudo -b sh -c 'echo $$ > pid.txt; some long-running command > out.txt; echo $? > ret.txt' A slightly trickier approach:   sudo sleep 0 sudo sh -c 'echo $$ > pid.txt; some long-running command > out.txt; echo $? > ...


0

won't even create .log file Does the user you set the cronjob for have write access to /appl/belo_monthly/results.log? Did you create the cronjob as regular user or as root?


0

Update: Take the following into consideration before using EncFS: Warning: A security review (February 2014) of encfs discovered a number of security issues in the stable release 1.7.4 (June 2014). Please consider the report and the references in it for updated information before using the release. It may be prudent to wait for the anticipated ...


0

I've used a flash drive with hardware-based encryption with success on Windows/Linux. I suspect it was a rebranded version of this. I formatted to FAT32, I don't see any reason it wouldn't work with Mac. "Truecrypt" is also a good answer, though again, I've not used it on Mac. For my encrypted backups on Linux, I use Duplicity. Duplicity requires you ...


3

The program Truecrypt is commonly used for this purpose and is cross-platform. There was a famous announcement about it being discontinued with a suggestion to use (windows-specific) ntfs encryption. I've not looked into the status lately, but use a version from before the hiatus. Meanwhile, a peer-review code review and audit was already underway, so it ...


0

Your DNS is not configured correctly ( no PTR record ) so the other email server thinks you are a spammer and is refusing to accept the mail. Don't use a local MX; use your ISP's instead.


0

Elaborating on @opyate's answer, I am using the following shell script (which may be named mysudo, for example): #!/bin/bash sudo -E env "PATH=$PATH" "$@" -E tells sudo to preserve the environment. env "PATH=$PATH" is expanded outside the sudo call, making the external PATH available inside the sudo too (this is required in addition to the -E as the PATH ...


0

I won't go into deep detail, but I've migrated a few servers and workstations by "cloning" the disks, and my personal favorite is using rsync. Note that you'll need very good understanding of the boot up process to figure out any unexpected issues. Boot up the target from a CD, USB or otherwise so you have unrestricted access to the disks. Try to use the ...


1

As shown in the ACPI data your battery is already fairly worn - ~43.5% rated life left. It seems like although there is still >40% of rated life remaining the battery is unable to supply enough current to power your laptop at full load. Therefore I would suggest these possible solutions: Contact your vendor, see if this is normal and if not check if the ...


1

In principle, it is possible to modify an ISO by inserting a big enough dummy file. mkisofs even allows (via the -sort option) to put that dummy file at the beginning. There are 2 problems remaining: this dummy file might not be readable without errors if your DVD is worn out. That does not really matter, since that's what the dummy file is for. some ...


0

Just to make the story full, because when we want to delete all files older than a specified time within a directory, then that specified time is better specified as for e.g. two-week old or one-month old, instead of specifying a fixed date string. If so, let me present, a ready made Ubuntu package -- tmpreaper: Description: cleans up files in directories ...


1

You've actually already found the answer -- btrfs was designed from ground up to sustain as much damage as a design can handle (e.g. physical damage is beyond any logical design can handle). To read more on btrfs, check out: https://wiki.archlinux.org/index.php/Btrfs https://btrfs.wiki.kernel.org/index.php/Ubuntu_support ...


1

Have you attempted to use some of the timing options of ncat? Here's the relevant event excerpt from man ncat(1). TIMING OPTIONS These options accept a time parameter. This is specified in seconds by default, though you can append ms, s, m, or h to the value to specify milliseconds, seconds, minutes, or hours. -d time, --delay time (Specify ...


0

The name of the executable has changed to plistutil. It's not an editor, it only convert to text format.


0

The syntax of the mount command is basically: mount /path/to/disk/in/dev /path/to/folder The command you probably ran was: mount /dev/sda4 /mnt This means the disk is mounted in /mnt, not /mnt/dev/sda4. To answer the question, checking disk space is accomplished via du: umount /dev/sda4 mkdir -p /sdcard mount /dev/sda4 /sdcard cd /sdcard du -csh * ...


0

You could try using disk destroyer as follows: dd if=/dev/sdb of=/image.iso bs=16M #if is input drive bs is byte size to handle at once Otherwise, you could plug both drives into one computer amd use if=/path/to/master of=/path/to/slave Not sure if you would have to use a live os to make the image though.


0

I found work around by installing the driver separate from CUDA6.5. To do so, I installed CUDA using the package from the website rather than the nvidia RHEL repo. This gives you the option not to install the driver. With driver version 343.36 and CUDA release 6.5, V6.5.16 it works.


0

I don't know of any software that does it without any human interaction, but you could probably write a script pretty easily. Start off with detecting if a disc has been inserted. Use ripit or a similar command to rip CDs. You can also use HandBreakCLI to rip DVDs. Finally, eject the disc when it's done. I haven't found a command that would tell you ...


0

for instance define as your own policy that you will have to type each passwords separated by a dash: "password1-password2" I though about that solution, but it is to easy and I don't like it. To tell the truth I have some RFID Reader that acts like USB HID device (exactly like keyboard) and first my idea was to use some available pam modules or ...


0

In general, if you use an unescape or not-single-quoted dollar sign on the command line, it is subject to parameter expansion, i.e. the parameter value is substituted for the parameter name. Let's assume your password is foo$bar. I use echo to display to actual executed command line: $ echo mount -t cifs ... -o username=user1,password=foo$bar,domain=WIN,ro ...


1

It depends from the column of ps you have activated. If you see in man ps in the section STANDARD FORMAT SPECIFIERS you will find first: %cpu %CPU cpu utilization of the process in "##.#" format. Currently, it is the CPU time used divided by the time the process has been running (cputime/realtime ratio), expressed as a percentage. It will not add up ...


0

This worked for me: # cat /etc/os-release NAME="Amazon Linux AMI" VERSION="2015.03" ID="amzn" ID_LIKE="rhel fedora" VERSION_ID="2015.03" PRETTY_NAME="Amazon Linux AMI 2015.03" ANSI_COLOR="0;33" CPE_NAME="cpe:/o:amazon:linux:2015.03:ga" HOME_URL="http://aws.amazon.com/amazon-linux-ami/"


2

Assuming there are only regular files and no funny things like subdirectories or other file like objects. find -not -newermt "Mar 31 08:04" -delete To see which files are going to be deleted run without -delete first. -not -newermt means to find files which modification time is older than the given time string. The time string is parsed like the date ...


0

Edit: As stated by @grawity, compliant application can handle such authentication scheme gracefully. Graphical issues are avoided by asking the two passwords in two successive steps (not the three fields "login / pass1 / pass2" as I encountered in a specific application using RSA SecureID, but the usual login/password screen followed by a second password ...


0

This is a known bug in KDE: https://bugs.kde.org/show_bug.cgi?id=343468 The comments there suggest to simply replace the faulty strings by hand until the bug is fixed upstream.


0

First of all, the process doesn't exit; it stops.  There is a difference. Secondly, it probably happens immediately; you just don't get notified until after you press Enter. Third, when you put a command into the background (with &), it puts the standard input into a special state so background processes can't read from the keyboard.  When you put sudo ...


0

By default, Linux uses the "weak host" model on IPv4; that is, it answers ARP requests for any address assigned to the system, even if they came through a different interface. So when the router broadcasts an ARP request for .115, your host receives it through both interfaces, sends answers via both, and the router receives the answer over Ethernet first. ...


2

So you want to learn linux... and you want to backup windows. First off, you don't have to destroy your windows installation to play with linux. You can install VirtualBox to run virtual machines under windows. Download a "linux install iso" for installation onto a virtual machine, and you'll have the same experience as if you were installing linux on a ...


0

It was a real pain to get kali to dual boot with windows because the grub boot menu never gets installed, but i got it solved and was able to boot into boot kali and windows with the help of ubuntu live disk. Here is the tutorial with the video ...


0

If you have a disk large enough to handle such an image, it will also be large enough for you to install a Linux-based system onto. In which case, I'd suggest you simply swap disks and use the "other" to try out a Linux-based distribution. If you decide you want to revert you can just swap back the disks.


0

What you want is indeed possible and is called quick search mode. Quoting from the man page: The Quick search mode allows you to perform fast file search in file panel. Press C-s or Alt-s to start a filename search in the directory listing. When the search is active, the user input will be added to the search string instead of the command line. ...


2

To create a softlink use ln -s existing_filename new_link_name not ls -s filename1 filename2 ... Update for the skeptical $ pwd / $ echo proof > /tmp/ordinary $ mkdir /tmp/elsewhere $ ln -s /tmp/ordinary /tmp/elsewhere/link $ cat /tmp/elsewhere/link proof $ ln -s /tmp/ordinary ~/p/link $ cat ~/p/link proof Update for those grappling with ...


0

I also had the same kind of issue with CentOS. Apparently there is an issue with the kernel version support for CUDA-6.5 with CentOS 6.6. Have you tried in combination with nouveau and CUDA 6.5??


0

The solution is to never enter a command until the multi-line is right, just type: CtrlvCtrlj when you want to go to the next line. Metab to go back a word. credit to @rici's answer


0

du processes arguments in order and keeps track of inodes so that they are only counted once (or twice if you use -c). I don't see how 123_AAA gets counted when it is listed after ., however. The first explanation I thought of is that symlinks could be treated differently when listed on the command line, but that is with option -D, not the default. Not ...


1

I think du is aware of hardlinks. Try du -shl . *A .


-1

I couldn't replicate this error, however, when checking the man pages: SYNOPSIS du [OPTION]... [FILE]... So I think that you can only have one file argument at a time. Don't know why you're even getting a result for the last command: wilhelm@server ~ $ du -sh . 2.1G . wilhelm@server ~ $ du -h wa 4.0K wa wilhelm@server ~ $ du -sh wa 4.0K ...


0

You don't say whether you're running wicd-gtk or wicd-curses? It sounds like GTK since you mention "button". wicd-gtk is a single process (Python session). Sorry to knotech, but you're just wrong. There are daemon and monitor processes, but they are supposed to remain running at all times and it is extremely unlikely that there will be multiple copies, ...


0

My favorite way is: Start: time cat Stop: ctrl+c


0

My SpellCheck plugin has a :SpellCheck command that populates Vim's quickfix list with all spelling errors. You can then use Vim's built-in commands to navigate that list, or use mappings provided by the plugin to fix those errors directly from the list.


0

You only need to call gnome_keyring_lock_all_sync(). Here's a simple program which does that: lock-keyring.c: #include <stdio.h> #include <gnome-keyring.h> int main() { GnomeKeyringResult lock_result = gnome_keyring_lock_all_sync(); if (lock_result == GNOME_KEYRING_RESULT_OK) { printf("Successfully locked\n"); return ...


2

Changing an IP Address perl -p -i -e 's/VIP_IP=[[:digit:].]+/VIP_IP=192.17.200.100/' file.txt Or: perl -i -pe 's/(VIP_IP=)[[:digit:].]+/${1}192.17.200.100/' file.txt Or, if the new IP is in a shell variable: export ip=192.17.200.100 perl -i -pe 's/(VIP_IP=)[[:digit:].]+/${1}$ENV{ip}/' file.txt Changing a Name Suppose our file looks like: $ cat ...


0

Have you tried searching Google? Try these: http://www.electrobucket.com/linux/screenshot-print-screen-is-not-working-in-linux-mint-14 https://forums.virtualbox.org/viewtopic.php?f=6&t=56003 From what I've read on those pages, its a problem thats been around a while but there are a few ideas on how to fix it. There are more pages but I can only post ...


1

Search for the "Inode" number of the file/folder and then delete using inode number. Below is an example: ls -il 3407873 drwxr-xr-x. 2 root root 4096 Mar 30 07:49 –p find . -inum 3407873 -exec rm -rf {} \;


0

Add to sudo group (Debian / Ubuntu specific step): $ sudo gpasswd -a <username> sudo Adding user <username> to group sudo


2

You can use aspell -a to do this, and take the file from stdout. This will output the word with line number and alternate spellings: cat example.txt | aspell -a To clean up your list better, I'd use something more like: cat aspell.txt | aspell -a | cut -d ' ' -f 2 | grep -v '*'


1

If you use zsh (and I recommend trying it for magic like this), you can simply use a glob qualifier. ln -s /path/to/foo/*(*) /path/to/bar (*) means just executable files; you can use similar constructions for files, directories, links, etc. or even more advanced sorting and manipulation operations.


1

Right, I just noticed in your dmesg output that the kernel found a Unixware slice: [ 362.320059] sda1: <unixware: sda5 > The first (and only) slice in sda1 is available at sda5. Slices are much like volumes in an Extended Partition. Try mounting it: mount -t sysv /dev/sda5 /mnt/tmp As for fsck: There’s simply none available for SysV FS, as ...


0

However, be aware that the shntool join will insist on joining them in collating sequence (alphabetical) order EVEN IF you specify them otherwise. shntool join fileB.flac fileA.flac will put A before B. You can either rename the files first or use the -r parameter ("-r ask" will prompt for the order). Frankly I find this irritating... Also you can ...



Top 50 recent answers are included