New answers tagged

0

You can run an application compiled for one Linux distribution on any other distribution, as long as that other distribution has the required libraries available. The problem in practice is usually that different distributions ship different versions of libraries at a given point in time. Linking libraries statically is a bad idea. It bloats the application ...


0

As others have mentioned, just installing/extracting the app straight onto the system may or may not work, depending on things like whether it's a script or compiled binary, statically vs dynamically linked, lib versions, etc. In order to be sure that the application will run, the app needs to run within the context of the OS that it was built for. One of ...


0

It depends on how the application was created and what dependencies it has. If it's written in for example Python then it can generally run as long as a compatible Python interpreter and modules are installed. If it's an elf binary then it depends on if there are binary compatible libraries installed. Since some libraries might not be available, be ...


0

the process was being started by vnc server. after having disabled the vnc server, the processes are gone! saves me RAM


-1

Try the following: git clone https://github.com/gnab/rtl8812au.git cd rt18812au make make install


0

You'll need a root access anyway to install and configure any software on your server. After that you can work as regular user and access your files. Take a look here for example of installing and configuring LAMP on CentOS server.


0

Fear not! Just install the package libmemcached-last first. This may not get selected automatically if another repo has installed libmemcached. Once installed just run your initial yum install command again and enjoy.


0

Issue: Even though I was doing yum "-y" was at the end , I bought it forward and its all good now. from: yum install httpd php php-cli gcc glibc glibc-common gd gd-devel net-snmp openssl-devel wget unzip -y to: yum -y install httpd php php-cli gcc glibc glibc-common gd gd-devel net-snmp openssl-devel wget unzip People may argue that doesn't make ...


2

When creating the user with useradd use the option -s -s, --shell SHELL The name of the user's login shell. The default is to leave this field blank, which causes the system to select the default login shell specified by the SHELL variable in /etc/default/useradd, or an empty string by default. Give it the value /sbin/nologin. This will prevent ...


1

can't create lock file /etc/mtab~60598: No space left on device (use -n flag to override) open("/etc/passwd.63618", O_WRONLY|O_CREAT|O_EXCL, 0600) = -1 ENOSPC (No space left on device) It's definitely a disk space problem. Most filesystems have two limits: a limit on file contents, and a limit on the number of files — the size of the inode table. Since ...


0

The file /proc/crypto lists algorithms that are available when the kernel itself performs cryptographic operations, for example for network protocols like IPsec and for disk encryption. This file does not convey information about what userland programs can do. The aesni_intel module contains code that implements AES using the Intel AES-NI accelerator. It is ...


2

The standard tool for the job is fail2ban. It bans for a certain time an IP address that tried to login unsuccessfully, and it is highly configurable. It is not available on the standard CentOS repositories, you have to install the EPEL repo first. On CentOS 6: yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm On ...


0

Example : keyboard --vckeymap=us --xlayouts='us' lang en_US.UTF-8 network --device=eth0 --bootproto=static --ip=192.168.1.10 --netmask=255.255.255.0 --gateway=192.168.1.1 --nameserver=192.168.1.5 --activate --ipv6=auto network --hostname=postfix.example.com rootpw Pass1234 timezone Europe/Warsaw --isUtc bootloader --location=mbr --boot-drive=sda clearpart --...


7

If you only want to delete a file in /home/charlesingalls (and not a file in a subdirectory) then it's easy: just check that the argument doesn't contain a /. case "$1" in */*) echo 1>&2 "Refusing to remove a file in another directory"; exit 2;; *) rm -f /home/charlesingalls/"$1";; esac This runs rm even if the argument is . or .. or empty, but ...


0

If you have network access from your live CD boot, you should be able to do something like this: get a root shell in the Live CD running on the VirtualBox VM partition and format the virtual disks however you want. If LVM tools are on the Live CD you can even use LVM. run mkdir -p /target mount your intended rootfs on /target, make directories for any ...


2

If you want to forbid paths completely, the simplest way is to test if the variable contains a slash (/). In bash: if [[ "$1" = */* ]] ; then... This will block all paths, though, including foo/bar. You could test for .. instead, but that would leave the possibility of symlinks pointing to directories outside the target path. If you only want to allow ...


10

This answer assumes that $1 is allowed to include subdirectories. If you are interested in the simpler case where $1 should be a simple directory name, then see one of the other answers. Wildcards are not expanded when in double-quotes. Since $1 is in double-quotes, wildcards are not a problem. Both ../ and symlinks can obscure the real location of a ...


0

As an aside, you should probably check with the vendor demanding you update to an out-of-band package, to confirm what feature absolutely requires this distro change for PHP. Usually, fixes and (few) features are back-ported to the established, certified release version. Some vendors mistakenly believe '5.4 is more than 5.3 so it must be better and ...


0

You must a have a valid dns server to be used for name resolution. If you are using Linux , it is simple , just clean up the /etc/resolv.conf file and use google public dns server entries in it. nameserver 8.8.8.8 nameserver 8.8.4.4 For Windows users see these steps: steps-windows


0

Sometimes you need do difrent scans for detect new r resized disk without reboot Scan device #list devices ls /sys/class/scsi_device/ #rescan device echo 1 > /sys/class/scsi_device/0\:0\:0\:0/device/rescan #another type rescan device echo "- - -" > /sys/class/scsi_host/host#/scan ps rebbot is the best if you can reboot machine . after scan ...


1

In short, the steps are: Reboot or rescan the scsi bus: echo '1' > /sys/class/scsi_disk/0\:0\:0\:0/device/rescan Identify the correct disk: fdisk -l This will be something like /dev/sda or /dev/vda. Create a new partition with fdisk and label it as LVM (replace sdx with the correct disk): fdisk /dev/[sdx] Press p to print the partition table to ...


0

Step 1: yum update Step 2: Go to Device-> Install Guest Additions CD Image -> Next Then provide the root password . That's it.


0

Besides using netstat, you can also use lsof to list open files (streams, sockets, block files etc.). root@host: lsof -i -n -P |grep httpd COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME httpd 4291 root 3u IPv4 124715 0t0 TCP *:80 (LISTEN) lsof (8) - list open files -i = show IPv4/6 files -n = do not ...


0

Being root you can run netstat -ntlp | grep httpd [root@cluster ~]# netstat -ntlp|grep httpd tcp6 0 0 :::80 :::* LISTEN 13876/httpd tcp6 0 0 :::443 :::* LISTEN 13876/httpd :::80 and :::443 are the listening port. 13876 is the process id.


0

nmap localhost cat httpd.conf | grep port


0

You're missing the usual case $1 in stop, start, restart, status stuff (you can see what I mean if you look at existing scripts in /etc/init.d (apologies if you're already aware of that), but as it stands your init script is accepted by chkconfig on my Redhat 5 vm so I would expect it to work for you. I suspect you simply have a typo in your filename or ...


0

drwxrwx--- 2 ftpuser myuser 4096 Jul 12 16:47 ftpuser uid=502(myuser) gid=503(www-data) groups=503(www-data),505(ftpuser) the group on the dir is myuser, and myuser does not have group myuser, but it has ftpuser. Fix with either: usermod -a -G myuser myuser or (preferred so files created by ftpuser also have the same group as you): chgrp ...


0

Thank you... I solved my problem Using LiveDVD of CentOS-6.8-i386, I Opened Disk Utility Reviewing the Hard Disk Distribution... I see the Partition sdb4 maybe is not correct for Linux, and maybe is "hidden (is front of sdb5 Swap Partition) the corrects sdb5 and sdb6"... I deleted the sdb4 (fat32) partition, Restored the initial Settings of grub.conf ...


3

SSH is just a way of logging in. If you are logged in as you say, you don't need SSH anymore. A command to shutdown is shutdown -h now. You edit your current user's crontab with crontab -e. In a user's crontab, the line to execute he above statement should be 0 21 * * * /sbin/shutdown -h now


2

I use SUSE (SLES) linux and have encountered a similiar problem. In my case it has to do with /etc/X11/xorg.conf which is where the graphics drivers start... this file then points to the rest of what's needed for graphics whether it's an nvidia graphics card on a pcie slot or onboard graphics on the motherboard/cpu. I have found that when using a nvidia ...


3

Not only permissions matters, but also the user and group. You should be able to notice that from the below output: ls -ldZ ~username/ ~username/.ssh ~username/.ssh/authorized_keys This is common mistake, especially if you create the folders using root user.


0

It looks like the grub boot loader IS installed on the HD, BUT grub cannot find the grub.cfg file, or there is an error in the file. The easiest way to replace the grub.cfg file would be to boot from an CD or USB with Super Grub Disk. This will allow you to boot into the server OS where you are most comfortable and run the grub-mkconfig command to replace ...


0

This worked: # rpm -qa|grep el5 ffmpeg-0.6.5-1.el5.rf.i386 lame-3.99.5-1.el5.rf.i386 opencore-amr-0.1.2-1.el5.rf.i386 rpmforge-release-0.5.2-2.el5.rf.i386 a52dec-0.7.4-8.el5.rf.i386 faac-1.26-1.el5.rf.i386 ffmpeg-libpostproc-0.6.5-1.el5.rf.i386 x264-0.0.0-0.4.20101111.el5.rf.i386 # rpm --erase rpmforge-release-0.5.2-2.el5.rf.i386 # yum install git


0

You cannot remove systemd from Debian 8 without affecting a wide range of Debian packages which have systemd support already compiled into them. Sure you can remove libsystemd0, but that will also take udev and consolekit with it, for instance. If you decide to install/patch something later which relies on systemd, consolekit or udev, you will not be able to ...


0

There shouldn't be problem with permissions. You can write and read data, that's all, but program has to decide how to work with data inside a file. It looks like R, not system, problem to me. Anyway, outputs from server and local host are different. The one from server looks same like from wget. Check download.file.method which have to be set to internal (...


1

The machine you're working on seems to have some sort of module system for dynamically making software available, possibly the "Modules" system (link currently dead because SourceForge is down). I'm on a system which uses Modules too: $ type mpicc -ksh93: whence: mpicc: not found $ module load openmpi $ type mpicc mpicc is a tracked alias for /opt/openmpi/...


0

I haven't really understood what you're asking since you haven't told us what command was added. In any case, I use the following function to search through the usual suspects: grep_bash(){ grep -H "$@" ~/.bashrc ~/.profile ~/.bash_profile ~/bash.login ~/.bash_aliases \ /etc/bash.bashrc /etc/profile /etc/profile.d/* /etc/environment 2>/dev/null }...


0

You can check the content of /etc/environment. This file is specifically meant for system-wide environment variable settings. It is not a script file, but rather consists of assignment expressions, one per line.


0

I think there's three tasks you'll need to do in order to get persistent ip routes and rules working: first, create a new routing table for your routes by editing /etc/iproute2/rt_tables, and adding a line, where 'mytable' can be changed to something more suitable, 100 is the priority relative to other tables: 100 mytable then specify the rules and ...


0

Your shell is now a file that invokes 'sudo -i' Swish. I've done it, but I don't think that's how I did it. Try that. If it sucks, I'll think harder.


1

NetworkManager-l2tp-1.0.4 is coming to the EPEL7 repository soon, it's in the testing repo now, keep an eye on: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-dbceb878ae You can install it (by temporarily enabling the EPEL7 test repo) with: sudo yum --enablerepo=epel-testing install NetworkManager-l2tp-gnome


0

I fixed this by uninstalling Bumblebee and autoremoving its dependencies. I'll worry about it later.


1

What does your host routing table look like on the Server? netstat -rn It sounds like you have a local host based routing issue. The port forwarding for SSH still works because that has a local connection to your server.


0

drwx--xrwx this means that d is directory the rwxis that this the owner of this direcotry has read/write/execute permitions the next --x is that the users that belong to the group that owns this directory have execute permitions and the last rwx everyone else (not the owner of directory or any member of the owner group of directory can read/write/execute ...


1

As there is a /usr/include/freetype2/config/ftheader.h in freetype-devel, and assuming that a file called ft2build.h actually means freetype2 by "freetype", you could try creating a symbolic link ln -s /usr/include/freetype2 /usr/include/freetype. But you should ask, where did the "ft2build.h" file come from? Does it have any #ifdef around the #include ...


0

You need to have /usr/include/freetype2 in your "include path". This may be done by passing -I/usr/include/freetype2 during compile time, or there may be an option to the DWM configure script.


0

Check the configured limit set by --limit or -l or the limits set in the configuration file using the directive limit. See man fetchmail, search for limit and https://www.freebsd.org/cgi/man.cgi?query=fetchmail&manpath=SuSE+Linux/i386+11.3 for more details.


2

recommend way is as follows. This should work with any Linux distributions or Unix like operating systems: $ nginx -s reload OR $ /path/to/full/nginx -s reload If nginx compiled and installed from source code $ /usr/local/nginx/sbin/nginx -s reload


0

For some reason the mount.ecryptfs_private call is failing, so it's not able to mount the eCryptfs folders it tried to set up. I'm not sure why, but checking man mount.ecryptfs_private it reveals some info like: mount.ecryptfs_private is a mount helper utility for non-root users to cryptographically mount a private directory, ~/Private by ...


3

PYTHONHOME Change the location of the standard Python libraries. By default, the libraries are searched in prefix/lib/pythonversion and exec_prefix/lib/pythonversion, where prefix and exec_prefix are installation-dependent directories, both defaulting to /usr/local. When PYTHONHOME is set to a single directory, its value replaces both prefix ...



Top 50 recent answers are included