Tag Info

New answers tagged

0

I'm using Windows 10 preview, and was able to install grub normally. Mount your ext4 partition to /mnt, bind /dev and /proc, cp /etc/resolv.conf, chroot into /mnt and run grub-install /dev/sda (or whatever HDD you need). Ask if you need more detailed instructions.


-4

The Linux password are stored in the /etc/password AND /etc/shadow which is a copy of the other one. The /etc/shadow file is readable and writable only by root. In these shadow files there is a field to hold the password expîration date but this field do not exist in the password file. Ref.: Linux tutorial: Password files EDIT: to clarify my answer. In ...


6

At least in my Ubuntu, the "too similar" messages cames out when: "...more than half of the characters are different ones...." (see below for details). thanks to the PAM support, as clearly explained in the @slhck answer. For other platform, where PAM is not used, the "too similar" messages comes out when: "...more than half of the characters are different ...


8

This is a feature of the PAM system which is used in the background of the passwd tool. More specifically, pam_cracklib is a module for PAM which allows to reject passwords based on weaknesses. Since you supply both the old and the new password, they can be easily compared. The source code has various examples of what can be checked, e.g. whether a ...


4

Your symlink is broken. Delete it with rm netlogs. Recreate it using absolute paths, like this: ln -s /home/dir3/logs /home/dir1/netlogs The first argument is the existing real file or directory. The second argument is the link that will point to the first argument. Extra tip: lrwxrwxrwx 1 joasia None 9 Dec 27 14:06 netlogs -> dir1/logs The ...


1

You need to create your symbolic link with a path that will work wherever you are, either an absolute one like ln -s $HOME/dir3/logs $HOME/dir1/netlogs or better, a relative path with will allow the upper directory to be moved elsewhere without the link being broken. ln -s ../dir3/logs dir1/netlogs


1

You’re not using NFS but CIFS. CIFS hides the underlying file system structure. The appropriate command to mount the “software” share is as follows: mount -t cifs //x.x.x.x/software /mnt/software


0

The problem is not your Samba config here because the machines on the network can access your shares without problem. The error message clearly shows that a memory error was returned to smbclient from Windows. The only fix here is for your housemates to change the system memory settings on their Windows boxes. The memory usage for the share pool will be ...


0

I'm not an expert at all when it comes to SysVinit scripts. But from what I can tell, if you specify that a initscript should be started at only one runlevel (for example, runlevel 3), you will have S symlinks in /etc/rc3.d only, and K symlinks in all other /etc/rcX.d directories. Chances are, your script is getting called with stop on shutdown; the K ...


1

Some other answers have hinted that 4 GiB of memory is the minimum for a 64-bit o/s, but I have not found any support for that, and maybe some contraindication. I have a Lenovo R61 laptop which came with 1 GiB of RAM. I run Fedora spins of Linux, at first not realizing this has a 64-bit CPU, so I installed 32-bit Linux. Of course, Linux ran just fine, ...


0

"Connection reset by peer" means the TCP stream was abnormally closed from the other end. I think the most likely explanations are that the remote server process handling the connection has crashed, or else some network device (like a stateful firewall or load balancer) has decided to interfere with the connection. You need to debug this on the remote ...


-1

gmusicbrowser is the only application that could read my (600 GB) music collection without problems.


0

Your VirtualHost configuration indicates that apache accepts request from any of the interfaces in the host but it should have a Host: www.abctest.com header to select DocumentRoot as /websites/abctest.com/htdocs. Generally any other Host header will cause apache to use the default VirtualHost to be used. In case if you are trying to open the webpage with ...


-2

Tripwire is an open source tool for monitoring file changes.


0

You can try this: find . -name 'flibble*' -ctime +90 -exec du -ch {} + | grep total


2

Have you checked these fairly detailed documents http://as6edriver.sourceforge.net/Parallel-Port-Programming-HOWTO/parallel-port-programming-howto.html http://www.tldp.org/HOWTO/Serial-HOWTO.html


1

I found lpquota Perl script from http://perlwatch.net/perl-scripts/, this might be the one you're looking for. Also DK Tools have printqd daemon for enforcing print quotas on LPRng print systems. This is available in http://dktools.sourceforge.net/printqd.html, which doesn't appear to be related.


0

You probably meant to use the -K flag instead of -k: -k checksum-mode valid values: all, noip, notcp, noudp, noicmp, and none -K logging-mode valid values: pcap, ascii, and none For more details see man snort.


0

Ok, so it was all the problem of the Netgear router (NETGEAR N450 WiFi DOCSIS 3.0 Cable Modem Router (N450-100NAS)) rather than SSH. When I switched back to Comcast's router (the ones you can rent) then the connection stopped dropping. Don't buy this router if you plan to expose a port from from your internal network to the world.


0

gzexe is an underappreciated awfulhack. There is a similar functionalty in one of the various zip incarnations - pkzip? If it can solve your problem, please let me know :). Being a presenile dummy, I would use a small perl stub to xor and unxor the script and pipe it to sh.


1

A POSIX-compliant shell script that requires openssl, curl and sed only; supporting AWS Signature Version 4, which is required for region eu-central-1 (Frankfurt) and recommended for the others: https://gist.github.com/vszakats/2917d28a951844ab80b1 #!/bin/sh # Copyright 2014 Viktor Szakats (vszakats.net) # Upload a file to Amazon AWS S3 using Signature ...


0

First of all, does the VM have an IP address? Many corporate networks will only give an IP address to registered MAC addresses, and the VM's network interface will have a MAC address not registered with the company. If you don't have an IP address, then you can try to use one that's not used by another computer. Most probably you would have to do all the ...


0

Try putting a echo $ PATH in the script, to ensure the path is what you think it is, and ensure the script itself can run (executable bit set, correct shebang #!/bin/sh or whatever in the first line). If nothing else works, you may try stracing the script invocation call.


0

..i know its bandwidth and it will never congestion, but will lost packet sometimes. but there's congestion control in tcp, once packet loss, it will slow down, which is meaningless and loss performance. I don't think you understand the concept of congestion. Congestion can not only be happen in the network, but also in the network stack, that is ...


0

As I was still able to boot Windows using Hiren's Boot CD, I could reinstall the bootloader using a tool called EasyBCD.


0

You might have to still Mount it. Try to look into this, the Mount command. https://wiki.ubuntu.com/MountWindowsSharesPermanently Update: Better yet, try this command. sudo mount -t cifs //ip_of_host/share/path /local/mount/dir


0

Solved by installing grub without chrooting to system, then booting the system and installling grub again from there.


0

The probleme in your regex lies in the grouping of the second part: var regex_cron = "^((" + variants + ")(\\s+" + variants + "){4})$"; --- should be : var regex_cron = "^((" + variants + ")(\\s+(" + variants + ")){4})$"; ! ! Because as you wrote it the ...


0

Run encfsw.exe with Administrator rights. (%Program Files℅\encfs4win\encfsw.exe)


1

This makes linux ignore the LVDS output altogether. That way it will not be used by all login managers, and won't appear in display configuration dialogs. Create a file /usr/share/X11/xorg.conf.d/50-disable-lvds.conf and write there: Section "Monitor" Identifier "lvds monitor" Option "ignore" "true" EndSection Section "Device" ...


2

The standard test for memory is Memtest86+. Since you're just testing basic functionality rather than long-term stability, you only need to let it run for the first few tests, rather than the full multi-hour test series. The standard test for the CPU is mprime in "torture test" mode. As a side benefit, it'll also test the CPU heatsink -- if the heatsink ...


1

You could always transfer files to the intermediate server and then copy it from there. However if the intermediate server has space limitations and cannot hold large files, then you need to create a tunnel through the intermediate server to the second server. Creating a tunnel through putty, 1) your ssh config should point the intermediate server like ...


3

Just thoughts - I've never actually tried anything like this - but could you not write your own script interpreter which contains a decoder engine? So the first line of your script is "#!/bin/cryptoshell", and everything else in the script file is encrypted by a separate script encoder engine. The question, though, is why you would want to do such a ...


1

Your problem is that you are moving, say, Downloads/2014-12-24-first to ~/docs/2014-12-24-first, and THEN trying to change the owner and permissions on Downloads/2014-12-24-first; which will not work, because you have already moved the file to ~/docs. Try re-ordering your -execs so the chmod/chown are first, and the mv last.


0

If I understand your scenario right, you are saying that you have to connect to one computer via SSH, and then connect to another computer from there? If so, why not log in to the first server, and then run scp mainserver:file.txt ./. Then log out, and run scp firstserver:file.txt ./ to get it from the first server. You can then log in to the first server ...


2

per the smbclient manpage, you need to use the mget command, with a mask and recursion and prompt set. Then cd to the directory you want to get recursively smbclient '\\server\share' mask "" recurse ON prompt OFF cd 'path\to\remote\dir' lcd '~/path/to/download/to/' mget * or, all on one line, smbclient '\\server\share' -N -c ...


0

Check out this somewhat old tomshardware article http://www.tomshardware.com/reviews/a-sturdy-companion,758-2.html Note that the circa 2004 drives were rated to take ~ 300g+ while not operating. Check all socketed components, cpu, mem and fire her up. I'd bet the laptop survived. G/L


9

Realistically by far the most likely damage to the system will be the hard drive, as its the only thing with moveable parts. If the HDD works without errors, its a fair bet the system will be fine. To test the HDD, start off with doing some kind of SMART test, then, if that passes, do some full testing with badblocks (but backup the data off the hard ...


11

My question is how I can make my script not readable/binary format? In general you can't easily do this in any way that isn't painful. Scripts are plain text files (not non-text binary) that have to be readable by a script interpreter. The script interpreter runs using the ID and permissions of the user running the script. Therefore the script has to ...


1

If /proc/mdstat exists you have the capability to set up software raid - although if it does not have anything meaningful it means you have not set it up. Software RAID under Linux does not require any particular hardware [ you could argue the ability to support 2 drives, but even thats debatable if you consider USB]


1

If You want to know capability to build hardware array. You can use lspci to view list of PCI controllers, determine type of disk controllers and for specs and manuals for it. UPD. Examples 1. # lspci |grep -iE "sata|sas|scsi|ide|disk" 00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02) 06:00.0 RAID bus controller: LSI ...


0

Your programs are all stored on your hard drive, but it's too slow to run them from there so the OS caches them (or the currently accessed parts of them) in ram when you use them. It takes time to copy this data to the ram. If you have the program installed to a ram-drive it can provide faster read speeds which means it will take less time to copy the ...


1

Programs and data are loaded form a drive into the system memory to execute. A RAM Drive is a virtual drive that exists entirely in system RAM. System RAM access, and data transfers to and from, are orders of magnitude faster than when dealing with a hard drive, so you aren't waiting nearly as long for the program (or data) to be loaded from the RAM ...


2

As it seems your bios may not support USB flash drives. I recommend you to use PLoP: Boot From a USB Drive Even if your BIOS Won’t Let You You’ve always got a trusty bootable USB flash drive with you to solve computer problems, but what if a PC’s BIOS won’t let you boot from USB? We’ll show you how to make a CD or floppy disk that will let you boot ...


0

You are using the diff utility correctly. It seems that the system calls are reporting that those files are directories instead. This is probably an issue somewhere else in the system, not in busybox diff. This all comes down to the following lines of code in editors/diff.c: if (S_ISDIR(stb[0].st_mode) && S_ISDIR(stb[1].st_mode)) ...


0

After some research, it looks like the answer is "no". What I'm wanting is basically to connect to IMAP in "disconnected mode" which fetchmail does not support (see the fetchmail FAQ). I will probably migrate over to offlineimap for this.


4

You're supposed to create the file yourself. It's in the tutorial, where it says: cat > /etc/ntp.conf << "EOF" # Asia server 0.asia.pool.ntp.org # Australia server 0.oceania.pool.ntp.org # Europe server 0.europe.pool.ntp.org # North America server 0.north-america.pool.ntp.org # South America server 2.south-america.pool.ntp.org driftfile ...


0

Check all allowed public keys by cat ~/.ssh/authorized_keys Find and remove your particular public keys to revoke access.


1

I can just help you with the dialog box. Create a .desktop file, that will run you executable script. You can find a quick introduction to .desktop files here or take a look at one of the files in /usr/share/applications. As for the rest of the questions please take a look at this question.


0

Shutdown actually shuts down most parts of the computer, where with reboot all the components are running. If you have hardware problems it could be, that the shutdown emptied some bad capacitors and after power on the system will work ok for a while. Look for some bad capacitors on your motherboard. You can find some descriptions how to find them here



Top 50 recent answers are included