Tag Info

New answers tagged

0

You need to get an SSH server working on Computer B. So you can do from comp A SSH is like telnet but with more security and with TCP port forwarding features.You can ignore the telnet aspect of it ssh is a tool that system administrators are familiar with, but general techies as well. You can install ssh via cygwin in windows. A$ssh user@compB let's ...


0

I don't know how it works but running stty sane usually fixes those kind of terminal issues for me. Shell Prompt Given the description of your problem, I suspect that the issue may be related to your prompt. You have to be careful when setting prompts that include ANSI escape sequences that change colour, etc. Some of them cause bash to think the prompt ...


0

I find the first line of the routing table, default dev wwan0 proto static truly puzzling. When I do the same, I get the following output: # ip route show 172.16.0.0/12 dev venet0 proto kernel scope link src 172.16.188.252 default dev venet0 scope link So the scope, in my case, is link. I have no idea what a static scope is: in the ...


0

IMO, if you have already done reset than there is really nothing much else you can do. Bite the bullet and start a new terminal session instead. It basically happens to me when/after I wrongly cat the content of binary file to terminal. If it is beyond repair, then it is beyond repair.


0

One way to meet your storage requirements would be to create a loopback filesystem inside your NTFS partition, but the catch to this is that performance of such a loop device would be worse because input-output (I/O) would be happening in a filesystem within a filesystem. It's fairly simple to set up a loopback filesystem. Assuming that /demo is where you ...


1

You use policy routing. First you mark some packets, iptables -A PREROUTING -t mangle -d 10.0.0.1 -j MARK --set-mark 1 then you create a new routing table, call it TunRoutTable: echo 201 TunRoutTable >> /etc/iproute2/rt_tables then you tell your pc to use table TunRoutTable for packets marked 1: ip rule add fwmark 1 table TunRoutTable and ...


1

Create standard user (root is default) and run it with him. If you want other solutions please use google. There are many but this is the simplest. EDIT (as root): cd /opt/google/chrome Launching chrome simply will not work because in Kali linux we are the root user, chrome wants us to be another user. So launch it like this First make a ...


0

you can use Chmod 755 dir/sub-dir and everything will be allright


0

You do not need to remove grub. Just use gparted live (gparted.org) and remove the boot flag from Linux partition (in case you have a separated boot partition remove the boot flag from it) and attribute the boot flag to Windows partition. Reboot the PC (it will boot in Window), install the update (the PC will need a reboot). Shutdown the PC, and reboot it ...


0

You may try using ex: ex +"%s/$/--end/g" -cwq foo.txt which is equivalent to vi -e. Option -i isn't quite compatible between Linux and Unix and it may not be available on other operating systems.


0

I think what you need to do is edit your /etc/sudoers file. Add something like this: <your username> ALL=(ALL) NOPASSWD: ALL You can find more information here: http://askubuntu.com/questions/147241/execute-sudo-without-password May I suggest that you fix the formatting for your question? Most of what you write (the script) is not really relevant ...


0

If it was working at one point and isn't now, do: # Adjust paths as necessary. May need to add sudo if you're not running it as root. chmod 700 ~/.ssh && chmod 600 ~/.ssh/* && chmod 644 ~/.ssh/authorized_keys If still no love, verify contents of authorized_keys, and check the following values in /etc/ssh/sshd_config (or whatever your sshd ...


1

I know file systems can handle time differently, so this is likely the source of the discrepancy. You can adjust the threshold of the mod-time comparison with --modify-window. # Ignore up to a 5 second difference. Tighten up as desired. rsync --modify-window=5 do whatever... Enjoy


0

If you use tar with the -p flag it will preserve permissions. Compress example: tar -cvfp file.tar FolderToCompress When extracting you need to use --same-owner to preserve ownership. Extract example: tar -xvf --same-owner file.tar


0

Here's what you need: find -name "(*)*" -type f | rename 's/\(|\)//g' It first finds files in the current directory matching the described name, then renames them by removing the brackets. You can see the matching characters ( and ) are replaced with nothing.


1

Yes, you are. From "man iptables" [!] -i, --in-interface name Name of an interface via which a packet was received (only for packets entering the INPUT, FORWARD and PREROUTING chains). When the "!" argument is used before the interface name, the sense is inverted. If the interface name ends in a "+", then any interface which ...


1

In my experience, it is safe. I have run a home server for several years with "hdparm -S 240" and didn't experience any problems. Be aware though: All the disks time out and wake up individually. In a RAID-5 this may take a long time, because the disks wake up one after each other. Also, some popular drives like the WD RED series lack APM features and ...


0

I looked up the tutorial from Michael Noll and it explains how to get /usr/local/hadoop as follows: $ cd /usr/local $ sudo tar xzf hadoop-1.0.3.tar.gz $ sudo mv hadoop-1.0.3 hadoop $ sudo chown -R hduser:hadoop hadoop It's not unusual to have to extract a package to a destination under /usr/local/. Enjoy.


0

You do not need to remove grub. Do the following. Download gparted live (gparted.org) create a bootable CD. Boot your machine with it. Change the boot flag from the Linux boot partition to the windows partition, install the update and undo the flags change.


0

Also looking for a better answer. I'm assuming you want to know because your OS doesn't seem to support the compression used in providing you with the squashedfs in question. Or perhaps like the unsquashfs on CentOS6, yours doesn't report the Compression type. So I strings | head on the compressed file. The first line will be hsqs and the second line ...


0

You probably cannot "fix" it, since McAfee does not support that version. The particular check which fails is in the script which you ran, in a chunk that looks like this: installFromHere() { cd `uname -s`-${OSVER}-${PACKAGE_ARCH} 2>/dev/null || cd `uname -s`-NAI-${PACKAGE_ARCH} 2>/dev/null if [ $? -ne 0 ] then terminationMsg 7 "no ...


1

unsquashfs -s did not have the capability of displaying the compression type used until this commit on 07 August 2009. This means that if you are running squashfs-tools 4.0 or older, you wouldn't be able to see the compression method used. From this information, I derived a way to read the SquashFS 4.0 superblock to determine the compression method used ...


0

ssh has the -o switch, which allows you to provide additional options. Of particular use here is the ConnectTimeout option, which takes an arguement specified in seconds: ssh -o ConnectTimeout=5 123.123.123.123 In addition, ConnectionAttempts might also be useful to you.


0

Close enough: timeout -5s "ssh $line true" That is: Use correct quotes. timeout `ssh …` cannot possibly work here, because it means "run 'ssh', capture its output, then give the output to 'timeout'." Run ssh in "batch" mode, that is, give it a command to run. Without it, ssh will run in interactive mode, and will hang forever even on successful ...


0

UPDATE (24 May 2015): After three years, I investigated the true cause of the RAID 1 array being degraded. tl;dr: One of the drives was bad, and I didn't notice this because I had only run a full surface test on the good drive. Three years ago, I didn't think to check any logs about I/O issues. Had I thought to check /var/log/syslog, I would've seen ...


0

The core of routing/sharing/IP forwarding in linux is: echo 1 > /proc/sys/net/ipv4/ip_forward After that, if you set the IP of the linux machine as the default gateway on any networked computers, the linux machine will forward as needed. Note that this allows forwarding betwees all interfaces. Once you have this up and running, you should set up some ...


0

I had the same problem a lot and what I've learned so far: doing a successful fsck is essential. As this is not working at your machine I think this should be your approach for a fix: which version of hfsprogs / fsck.hfsplus have you installed? on my machine (running Debian) I installed it from source (using the downloads from a different source) wget ...


0

Science is progressing. It appears that the new BLAKE2 hash function is faster than MD5 (and cryptographically much stronger to boot). Reference: https://leastauthority.com/blog/BLAKE2-harder-better-faster-stronger-than-MD5.html From Zooko's slides: cycles per byte on Intel Core i5-3210M (Ivy Bridge) function cycles per byte long msg 4096 ...


1

I can't download that image with my browser either getting "The page isn't redirecting properly" error, so this may as well be a correct wget behavior. I suggest you try to download some other image to confirm. For example http://cdn.sstatic.net/superuser/img/sprites.svg opens fine for me. If you need to download a file which is only accessible from a ...


0

If you need it to be accessible as a regular filesystem, then it must be mounted – whether via cifs.ko or via FUSE – there's no good way around that. Though, GNOME, Xfce or KDE programs have their own virtual filesystem layers, called Gvfs and KIO respectively. Both allow you to access smb://server/share/... within the program, as long as the needed clients ...


2

Based on @Michał Górny's answer. Here are the commands to disable num-lock, use numbers anyway, and map numlock to F13 (may be handy to bind to a special function in your window manager). # NumLock is F13 xmodmap -e "remove mod2 = Num_Lock" \ -e "keycode 77 = F13" # Use numbers even when numlock is off xmodmap -e "keysym KP_End = KP_1" \ -e ...


0

There's actually a really easy solution to achieve this. The following process will create a virtual disk (.vmdk) that will boot to a designated drive/partition. You essentially "fake" boot directly to the drive so the created virtual drive isn't very big in size and it doesn't get any bigger. However, a downfall to the following suggestion would be that it ...


3

If you look under the Performance section on the Intel specs page you linked to, you'll see: # of Cores: 2 # of Threads: 4 Intel® Hyper-Threading Technology: Yes Hyper threading on Intel Core i-x series allows the processor to run two threads simultaneously on a single processor core. Most operating systems will see this as four cores, ...


3

Your CPU has Intel Hyper-Threading Technology, which takes advantage of otherwise unused resources on each core to enhance performance. Hyper-Threading Technology duplicates a limited set of CPU resources, such as registers, to enable each core to handle multiple threads. Modern CPUs have many different execution units in each core and not all of them may ...


2

There is no magic you can use to sort the chapters of your book automatically -- not, if the file naming convention doesn't support it. This is an act that has to be accomplished by a human. The only way to do it fast is by putting the ordered filenames into a text file, similar to what you quoted in your OP. Then simply run: pdftk $(cat mychapters.txt) ...


0

Can you check the GNU screen syntax for this line: 3 0 * * * /home/root/spaceengineers/start.sh /usr/bin/screen -x spaceengineers I would've expected something like: 3 0 * * * /usr/bin/screen -S spaceengineers -X stuff 'command with newline' However, using the -X means screen expects screen commands and not a script to run. Therefore you need to use ...


1

I was facing the same issue and could solve it by adding the libssl-dev package. On Debian-based distributions you can install the package via apt-get: $ apt-get update && apt-get -y install libssl-dev Update: If the libssl-dev packages is not available for your distro, you can use the openssl-dev package instead. For example on Alpine Linux: $ ...


-2

They are the same thing except that the Live CD/DVD/USB drives are always bootable by the BIOS, but most bootable content requires an operating system of some sort to already be installed on the system. An example of live content would be the disc you receive when purchasing a copy of Windows 8. An example of bootable content would be the system recovery ...


1

You can boot up an operating system from a Live CD/USB. A bootable CD/USB just means you don't have have to have an operating system (running or even installed), to use the disk.


0

I work mostly with an English layout, when I need to enter Spanish or Portuguese characters I switch the layout with Alt-RightShift (Windows|Linux (i3wm)), it shifts through my defined layout list on this way EN->ES->PT->EN->.. For Linux I created a shell script who allows me to do this shift-keyboard-layout, on Windows it just works.


1

from: http://mysteriousswede.blogspot.com/2012/01/mount-local-directory-to-server-on.html How to do it? You set up ssh forwarding by using port 10000 on the machine you log in on to port 22 on your local machine and use sshfs to mount in on the other side. F.ex. to mount /home/username/mywwwdevelstuff on your local machine to /var/www on the server side: ...


2

try executing export DISPLAY=:0 to make sure it knows which X display to use before executing eclipse. If that doesn't work, this user may also need to have configuration files for a window manager. So just do the GUI route for adding a new user (I believe it's under Preferences -> Users and Groups) so all the default configs are loaded.


0

Assuming you have correctly set up your virtual machine, a remote desktop server should be up and running. It will provide direct access to the VM’s console. Depending on which version of Virtual Box (OSE or proprietary) you have installed, it will be either VNC (OSE) or RDP (proprietary). To use RDP, you need to have the “Oracle VM VirtualBox Extension ...


0

There is an easy way to do this, which circumvents PhpVirtualbox, thus letting you use your keyboard for the installation. Connect to your remote machine via ssh with either the -X or the -Y option: ssh -Y myuser@remotepc Then start the Virtualbox GUI from the CLI, /usr/bin/VirtualBox & and now you are free to use your local keyboard.


1

If you didn't want 5 to be echoed this also works: sudo sh -c 'echo 5 > /sys/class/backlight/acpi_video0/brightness'


3

You shouldn't copy them to C:\windows\system32. Instead, place them in a sensible location and add that location to your %PATH% environment variable. If you don't install the utilities in their default location (specified by the website or installer), you might place such utilities in a dedicated folder such as C:\bin\ or C:\programs\. I prefer this to a ...


0

Stupid of me. It was pretty simple, I just had to copy wget.exe to C:\windows\system32.


0

There are some good hints in this answer suggesting a path of least resistance using a scripting language like Perl, Python, Ruby, etc. which allows intermixing of mathematical and matching operations. Here is a brief demo with Perl: $ echo '2014-12-05 10:00:10, 1234, 2015-02-01 09:12:24' | perl -pe \ 's/(\d{4}-\d{2}-\d{2} ...


1

I'm in a similar situation. As mentioned by others, audio and screen will still be outputted by your desktop using VNC. If you're concerned about the performance hit of unneeded screen streaming, I recommend installing x11vnc server on your desktop. It has a "slow_fb" tuning option which lets you set a screen pooling delay, without affecting inputs. Just ...


3

What you want is to use is the a command instead of the i command to enter insert mode. Or if you want to jump to the end of the line and start insert mode, use A. Note that I will jump to the beginning of the line and enter insert mode.



Top 50 recent answers are included