Tag Info

New answers tagged

1

Since putty works, I assume the server side is setup properly. You need to convert the private key(ppk) used in putty. To do so, Run ssh -v user@yourhost from Cmder and check the debug output, you can see that its looking for keys in C:\Users\USERNAME\.ssh folder. first key should be C:\Users\USERNAME\.ssh\id_rsa. Now run puttygen, on the menu ...


1

Plain and Simple, you can eXecute the folder, but you aren't able to Read the folder. all you have to do is set permissions to 0775 or: User: rwx, Read, Write, Execute Group: rwx, Read, Write, Execute Other: rx, Read, Execute i.e.: rwxrwxr-x is what should show up on the folder after listing the parent directory with ls -a and after applying permissions ...


1

You are missing a space in your cut command. cut -d\ -f1 should be cut -d\ -f1 since you are using \ to escape the following space (using space as the delimiter), and arguments are separated by a space, there is a missing space between the -d and -f (for cut it looks like you are trying to use " -f1" as a delimiter, which is more than one character). ...


0

$(command) is “command substitution”.  As you seem to understand, it runs the command, captures its output, and inserts that into the command line that contains the $(…); e.g., $ ls -ld $(date +%B).txt -rwxr-xr-x 1 Noob Noob 867 Jul 2 11:09 July.txt ${parameter} is “parameter substitution”.  parameter is usually a variable name.  In its simplest ...


0

Try to use --network model=virtio,network=default instead of --network model=virtio,bridge=virbr0


1

In your example, $var and ${var} are identical. However, curly braces are useful when you wish to expand the variable in a string: $ string=foo $ echo ${string}bar foobar $ echo $stringbar $ Thus the curly braces provide a means of substituting the variable in order to get the name of new variable, itself to be substituted.


1

I usually see it more commonly in strings. Something like this will not work: var="a" echo "$varRAW_STRING" But this will: var="a" echo "${var}RAW_STRING"


0

After searching for another few days I came to the conclusion that this are bugs in the game server software. When the gameserver software is configured with a specific IP on the system it refuses to do anything with incoming broadcast packages. For now I configured separate ports per application instead of ip-adresses and will use a form of containerbased ...


3

No, you do not need it. Your disk and filesystem will work fine without partition table. Some older BSDs even did this by default if you selected dangerously dedicated. However it is highly recommended for compatability reasons. Somewhat more verbose: You can run mkfs.ext4 directly on /dev/sdb. That will work. You then can mount that without problems. ...


0

You could create a filesystem on a bare drive, but it's rarely going to work. Some pendrives are organised as that. But for the hard drive you don't want to. If it's going to be your primary/only drive, it won't be bootable at all if you create it as such. What BIOS does is read the first sector of drive and execute it (aka jump to it's first byte). Do you ...


0

Even if you intend to use the entire disk, it will still have to be partitioned. In this case with a partition as big as the disk itself (almost, at least. The partition table takes up some space. See below for details on this). When I introduce people to the concept of partitions and filesystems to people who normally just think of "harddrives, empty vs ...


1

You need to create a partition table even if you're going to use the entire physical disk. Think of the partition table as the "table of contents" for the file systems, identifying the start and stop locations of each partition as well as the file system used for it.


0

Did you check in your nameserver /etc/resolv.conf nameserver 4.2.2.1 nameserver 4.2.2.2 or nameserver 8.8.8.8 or check to whether the repository URL ping your server.


0

Let's start with this one: q4) What does 255 heads means ? "255 heads" means that you're looking at made-up numbers. (Also, your fdisk version is rather out-of-date). Modern disk drives haven't used cylinder-head-sector addressing for almost two decades, preferring logical block addresses over CHS. One reason for that is that modern disks are simply ...


0

Turns out that our antivirus was the culprit - We were running avast, and adding the path to exceptions solved the issue. It was still slow tho, but nothing we can do about physics. I must say, this is the most counterintuitive solution, and I didn't even think of adding the AV as a possible variable.


0

You can use Wines cmd wine cmd del "Z:\tmp\myLocalFiles*" exit Shell expansion works great but it has some caveats. The Windows convention never suffers from these problems, but places the duty on the programmer. This is probably better, since the writer of the shell cannot know how any program expects its input data.


0

This can be closed. I noticed that for some reason we were limited to only using 13 of our IP addresses (we have 29), the ISP discovered a massive error in the network. We have maintenance scheduled Tuesday.


3

Device naming is performed as the devices are initialised by the kernel - so no, naming is not persistent. Commonly UUIDs are used to identify disks, as /dev/sdX is subject to change. One can use udev to recognise disks by their serial number (or some other attribute) and create a symlink in /dev , for example /dev/mydisk1. There are a number of ways that ...


3

The link is to /dev/sda1. you can establish that with the file command: in my system, for instance, # file * ff28e743-4409-41b3-99ea-f133cdcc86be: symbolic link to `../../sda1' Thus, your option b is right. /dev/sda is not a link, hence it does not point to anything else at all: it is just a special (device) file, see for instance this Wikipedia ...


0

In file /etc/sysconfig/network-scripts/ifcfg-eth0 turn ONBOOT=yes


1

The simple answer to your query is: add one of the follwoing lines to your /etc/sshd/sshd_config file, AllowUsers root@192.168.0.1 AllowUsers root@192.168.0.? The first line allows root to login from a single IP address, the second one from the whole subnet 192.168.0.0/24. Now restart your ssh daemon, and you are good to go. Even if ...


0

Instead of permitting root login, try this instead: Create a standard user, or use one that exists. You now have 2 choices su sudo For choice 1, login to the user account you just created, and run su. This will allow you to type the root password, and gain root. Beware you need to execute exit then logout to logout from root, then disconnect. For ...


0

In centOS, they're in /etc/udev/rules.d/*disk*, at least on my system. I am given to understand that RHEL-style distros no longer use udev by default.


1

In Ubuntu, which I understand you have available, in the directory /etc/udev/rules.d, there is a README file which states: package-supplied rules ... can be found in /lib/udev/rules.d ... So, now # ls -lhd /lib/udev/rules.d/*disk* -rw-r--r-- 1 root root 8,0K giu 10 18:58 /lib/udev/rules.d/80-udisks2.rules -rw-r--r-- 1 root root 10K mar 10 2014 ...


1

Try as follows: in /etc/pptpd.conf, only these statements localip ipv4-ip-of-your-vps remoteip 10.0.0.10-100 ms-dns 8.8.8.8 ms-dns 8.8.4.4 and nothing else in /etc/ppp/options.pptpd. Now edit /etc/sysctl.conf and edit the line net.ipv4.ip_forward = 1 to have a final 1, not 0. Now implement this as sysctl -p Then give the ...


1

The answer should be complex, I hope not too much complicate, but more you read down more it is complex; for a large quantity of data I can suggest you the number 1 or the numbers 5 and 6: If you will not use at the same time both the virtual machines you can mount the same virtual disk to each of them: no need to copy. You can copy few (or more) lines or ...


1

I beg to differ from Michael Kjörling. The Linux manual for the dhcpd.conf file explicitly states: Reserved Leases It's often useful to allocate a single address to a single client, in approximate perpetuity. Host statements with fixed-address clauses exist to a certain extent to serve this purpose, but because host statements are intended to ...


0

Ok how about list everything in that folder then exclude that folder and delete everything else find MYDIR -not -name EXCEPT_DIR -exec rm -rf {}\; But before doing that, just test what the find command will find, ex: find MYDIR -not -name EXCEPT_DIR


1

The behavior you are seeing is expected. The subnet declaration with its range specifies a range which the DHCP server is free to handle as it pleases. See the documentation, page 21, Subnets. The host declaration specifies a host that should have specific settings (IP address, in this case). The easy fix is to change either the dynamic range or the IP ...


0

You're using, per the tags on your question, Red Hat Enterprise Linux or CentOS. Since version 7, those have used systemd. As such: Forget about runlevels; they exist, but only as compatibility shims. The systemd documentation states that the concept is "obsolete". If you're starting to learn this stuff on a systemd operating system, don't start there. ...


1

First, !(dir_name_not_to_delete) is an extended glob. For it to work, you need to have the extended globs option turned on. Run: shopt -s extglob Secondly, the specific error message that you see, -bash: !: event not found, means that you also have history expansion turned on. If you don't want history expansion, it it safest to turn it off: set +H


2

The term "email server" is vague. E-mail has a lot of moving parts to it. Sendmail is a Mail Transfer/Transport Agent (MTA), a.k.a SMTP server. (There are others, e.g. exim4) Something will open a session with a domain's SMTP server to send a message to another host on that domain. (The domain's SMTP server is found via DNS MX records) Once an SMTP ...


3

I looked into this a bit once. Maybe avoid a term like "mail server" 'cos once you start using a term like MTA you are now using a very specific terminology - nomenclature even, and "mail server" is perhaps just too general, ambiguous even, to be meaningful. From what I can gather, it goes like this MUA-->MSA--->MTA--->(MDA->Comp)<--MUA ...


3

IMHO this tiny tutorial, MUAs, MTAs, and MDAs, is very good at explaining the basic concepts of the Unix email system. Yes, properly configured sendmail should be able to send email to any MTA on reachable hosts (but that MTA may refuse the mail for various reasons) Now when you say mail server that typically refers to an alternate path on either/both of: ...


0

Are you sure netmask is 255.255.255.0? You got 29 addresses from ISP - suggests (maybe) otherwsise. KM


1

There are a couple of options. You could run something like coLinux. But there are a couple of drivers available: Captain Nemo Pro currently around USD90 Crossmeta File System Drivers Not tried either of them I'm afraid but both claim XFS support.


0

Although not the issue here, in my case my config included ControlPath /home/barry/.ssh/tmp/%h_%p_%r and I'd forgotten to create /home/barry/.ssh/tmp first.


0

It's simple, use the following VBoxManage command to get VirtualBox to boot from an external USB. cd %programfiles%\oracle\virtualbox VBoxManage internalcommands createrawvmdk -filename "%USERPROFILE%"\desktop\usb.vmdk -rawdisk \\.\PhysicalDrive# Where # is the disk drive number of the USB. Which can be found in Disk Manager (diskmgmt.msc) The code also ...


0

In the Virtualbox host, open settings -> ports -> USB the second icon on the right with the small plus sign. Select the USB device you want to use. Disconnect and reconnect the device. If that doesn't work, using the above settings: disconnect the USB device, shutdown the virtual machine start the virtual machine and wait for it to load insert the ...


0

Source http://www.ubuntu.com answer csh - which $SHELL still gives /bin/bash by geirha The SHELL environment variable does not indicate what shell you are currently using. It is simply set, when you log in, to the value of the login shell field of /etc/passwd, which in your case is /bin/bash. If you want to change your login shell, run chsh ...


1

It's normal. All the system files – both the rpm database and the directories into which your .rpm would install stuff – are only modifiable by root. Who owns the .rpm file is not important.


1

From the top... Download and install VirtualBox for your platform. Download and install the VirtualBox Extension Pack. Setup CentOS 7 in VirtualBox. Become the root user with su - or sudo -i. Install software needed to compile the kernel module. yum install -y kernel-devel gcc make or (with more than you need but also a good method): yum groupinstall ...


2

According to an entry on the FFmpeg Auto Installer's "support forum", re-running the script should pull down the latest source and upgrade your installation for you. Since said forum is pretty janky (tread carefully, traveler), I pulled the installer down and took a precursory look at its innards. It does appear that the FFmpeg-specific script is set up to ...


1

Drives are organized into clusters. Each cluster is some multiple of a hard drive sector (512 bytes). Initially, a directory is one cluster size big (e.g. 4,096 bytes). Even if there's just one file in the directory, the directory will show up as 4,096 bytes. Larger directories, containing many files, might be 8,192 bytes, 16,384 bytes, etc. Linux, like ...


1

Assuming you have a 64-bit CPU, then one would need to enable VT-x/AMD-v in the BIOS of the host computer. After enabling the virtualization features in the BIOS, VirtualBox can be obtained from www.virtualbox.org. VirtualBox 4.3.28 for Windows hosts x86/amd64 Also install the Extension Pack after installing VirtualBox. I don't know if the feature for ...


0

Virtual Machine - An emulation of a particular computer system VirtualBox - A hypervisor for x86 computers from Oracle Corporation A virtual machine is just that - a virtual computer inside yours. VirtualBox is a free program that enables you to create and run virtual machines. Here's a video I found that will show how to install CentOS on VirtualBox: ...


-2

tested on fedora 21 gufw + ufw: mkdir gufw cd gufw wget https://launchpad.net/gui-ufw/gufw-15.04/15.04/+download/gui-ufw-15.04.4.tar.gz tar -xvf gui-ufw-15.*.tar.gz cd gui-ufw-15.10.0/ echo '[home_zhonghuaren] name=RPM Sphere (Fedora_21) type=rpm-md baseurl=http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_21/ gpgcheck=1 ...


2

Summarizing the comments leading to success to an answer... Some linux distributions (including centos) by default disable direct X access (for which the server would be listening to port 6000 + display num) by running the X server with the -nolisten option. Details here: What is the "-nolisten tcp" parameter for X If direct X access is desired ...


0

It has been the middle of 2015, The version 7 of CentOS has been released for a long time and a major upgrade of Linux kernel -- 4.0 -- was released about two months ago, so I think it's time we keep up with the pace of software development. If CentOS does not want to upgrade the kernel because of steadiness consideration for example, let's do it ourselves! ...


0

I faced the same problem today. It turned out the problem was in use of a rule with a domain name used instead of IP address. I suspect the server tries to start iptables before a network connection is available. So no domain name resolution is possible and consequently iptables fails to start even though there is no problem with iptables service start when ...



Top 50 recent answers are included