New answers tagged

0

There are 3 more steps in setting up Ubuntu 16.04 to serve aspx content residing in different root directories. Put this at the end of apache2.coonf Alias /test "/usr/share/doc/xsp/test" Alias /personal "/home/user/mypages" AddMonoApplications default "/test:/usr/share/doc/xsp/test,/personal:/home/user/mypages" SetHandler mono ...


1

First you can confirm that you already have the mpm_prefork module by seeing that's shipped in the apache2 package in 16.04. You'll see a couple results for it if you do this: dpkg -L apache2 | grep fork /etc/apache2/mods-available/mpm_prefork.conf /etc/apache2/mods-available/mpm_prefork.load Now check which MPM module is enabled, and you'lll see that ...


1

Yes you can. Easily. All the modern file managers are able to scan other hard drives for any readable partitions (e.g. ntfs, fat, ext etc) . It is possible to safely copy data from the hard disk. In case it is not getting automatically mounted, you can first get the UUID or device details by doing a sudo blkid and then using umount to mount the filesystem.


0

You won't be able to use xcalib to invert your monitor. You will have to use the following utility to overcome this limitation. Note that as of date of last testing (2014, xcalib version 0.8) xcalib has not been able to invert the colors on all monitors in a multi-monitor setup, because all monitors are presented by the X11 server as a single ...


1

First of all, your syntax is wrong, and will result in a command line like... dh_gencontrol -- -Vdist:Depends=""php7.0, php7.0-opcache, ..."" rather than (what you would want): dh_gencontrol -- -Vdist:depends="php7.0, php7.0-opcache, ..." this is because make doesn't do quoting, and you quote the data in the variable twice (once in the assignment, once ...


0

NFS uses differents port according if it's running NFSv3 or v4 (which uses tcp as default protocol for connection). If you have NFSv3 running, by default you have to open 4 ports. The ports used for NFS are assigned dynamically by rpcbind, which can cause problems when creating firewall rules. To simplify this process, use the /etc/sysconfig/nfs file to ...


0

From Software Sources Enable all repository under Ubuntu Software (Canonical + community...), just type gksu software-properties-gtk then type the following command: sudo apt-get autoclean sudo apt-get -f install sudo apt-get update sudo apt-get dist-upgrade sudo dpkg --configure -a Install libvpx2 : sudo apt-get install libvpx2 Install virtualbox


1

I am convinced that this issue is a packaging bug in the Supervisor package in Ubuntu 16.04 and it seems to have been caused by the switch to systemd: This issue was already reported upstream on the Supervisor project's issue tracker (where nothing can be fixed) in issue 735. I was bitten by this issue a few days ago and was astonished to find that this ...


1

You cannot define eth0:0 as the origin of your ICMP packet with the pingcommand; as said in previous comments, the routing rules will be applied, and if routing to other networks, the eth0 address will be used. You can however, spoof an ICMP packet having eth0:0 IP address as origin with the hping3 command as in: sudo hping3 -1 8.8.8.8 -a 192.168.2.96 ...


0

As soon as you ping an address in your network 192.168.2.0/24 the eth0:0 address will be used as source. Otherwise, the Interface address of eth0 will be used.


0

Possible workaround would be to rename that directory, and force installation like this, sudo mv /usr/share/doc/libssl1.0.0 /usr/share/doc/libssl1.0.0.backup sudo apt-get -f install Or this might also fix your problem, apt-get install libssl1.0.0 libssl1.0.0:i386


0

After trying @svick 's suggestion to change my class name from @default to @normalName, I still got the following error message and stack trace: Details: Cannot find type MyLinuxTest.@normalName Error origin: Parser Error source file: /var/www/firstaspnet/default.aspx Exception stack trace: at System.Web.UI.BaseParser.ThrowParseException (System....


0

Finally this was the solution: cat $type"_"$NAME_DIR"_"$d"_"$2"_"$1".tar.gz."* > $type"_"$NAME_DIR"_"$d"_"$2"_"$1".tar.gz" I haven't escaped the * and I put it outside of "". Thanks to Archemar for his answer. He helps me to find my error.


0

you shouldn't escape *, this will result in shell/bash searching for a litteral star, not expanding filename. try cat $type"_"$NAME_DIR"_"$d"_"$2"_"$1".tar.gz."* > $type"_"$NAME_DIR"_"$d"_"$2"_"$1".tar.gz" edit on a side note I would quote cat ${type}_${NAME_DIR}_${d}_${2}_${1}.tar.gz.* > ${type}_${NAME_DIR}_${d}_${2}_${1}.tar.gz"


0

First find out the appropriate section by lsblk. I did by following here in the GUI sudo mkdir /mnt/foo sudo mount /dev/sda2 /mnt/foo sudo mount --bind /dev /mnt/foo/dev && sudo mount --bind /dev/pts /mnt/foo/dev/pts && sudo mount --bind /proc /mnt/foo/proc && sudo mount --bind /sys /mnt/foo/sys sudo chroot /mnt/foo sudo apt-get ...


1

Use parallel instead: doit() { i="$1" find "$i" -type f -print0 | xargs -r0 cat | md5sum | awk '{ print $1 }' | sort | md5sum } export -f doit find -type d -links 2 | parallel --tag doit


0

I solved my issue by getting hints from this thread: http://superuser.com/questions/376470/how-to-reinstall-grub2-efi I did not need to use a live installation, I just booted into my ubuntu session through the grub window. I then reinstalled grub: $ apt-get install --reinstall grub-efi-amd64 This also did an update-grub automatically. It works and updated ...


2

The simplest solution is to quote the command passed to sem: sem -j+0 "find \"$i\" -type f -print0" You can see the difference in this example $ sem -j 8 echo "a a" a a $ sem -j 8 'echo "a a"' a a


0

According to the Oracle Fusion Middleware Administrator's Guide for Oracle HTTP Server 11g Release 1(11.1.1) E10144-05 November 2011, Section 4.4.8 page 4-17,the Apache2 AcceptMutex directive is included in the /etc/httpd.conf file.


-1

In my case, in /etc/lightdm/lightdm.conf: session-cleanup-script=service lightdm restart


0

Tricky. The easy way is to set up a looping job that moves the files if there are some. Make it pause at least one second between two iterations. If minutes are ok a simple cron job will do. If you need instant action look at ionotify.


2

I've solved the issue. At the command line I entered apt-get update and it responded there's a problem with something (sorry I should have taken notes) and then suggested to enter something at the command line. I'm under the impression that my computer went to sleep before the install was done and the actions I was told to take resolved the problem. I ...


3

If your source directory is aaa and your target directory is /path/to/bbb this could satisfy your requirement: rmdir aaa ln -s /path/to/bbb aaa Now anything put into aaa will instantly be present in bbb, because they are effectively the same place.


3

Configuration is OK, but you need to have some identities in your ssh-agent to be able to authorize the sudo operation. You can verify that your agent has some identities using ssh-add -L It should print the public keys in your agent and at least one of them should match the public key on server in /etc/security/authorized_keys. If the agent does not ...


1

According to github-s3fs-fuse you can install s3fs through the following steps: sudo apt-get install build-essential git libfuse-dev libcurl4-openssl-dev libxml2-dev mime-support automake libtool sudo apt-get install pkg-config libssl-dev git clone https://github.com/s3fs-fuse/s3fs-fuse cd s3fs-fuse/ ./autogen.sh ./configure --prefix=/usr --with-openssl ...


1

I think you are confused. You do not need swap to cache a slow disk using a faster disk. Swap space is entirely unrelated to that task, it is used to increase the virtual memory available to a system (the kernel will swap out pages to a swap device when it needs more memory for something else - and, of course, using a fast disk like an SSD or a compresssed ...


1

Installing and configuring Arch Linux would be a good next step if you're comfortable with basic terminal commands. The documentation on the Arch Wiki (both for the installation, and the distro in general) is famously good. If you go down this path, it's best to use a virtual machine or a clean computer so that you can experiment safely. The vast ...


0

From the command line, you would simply add the following to your /etc/openvpn/server.conf: push "route 172.17.0.0 255.255.255.0 172.27.232.1 1" The configuration is described in more detail here. But, to answer question about making the change through the OpenVPN AS WebUI, I think you will have use the "Yes, using routing (advanced)" option shown in ...


0

I believe you need to add the following to your server's openvpn.conf file: push "route 172.17.0.0 255.255.255.0 172.27.232.1" the restart things. The default config file has a similar line commented out with a ; as an example.


0

You will have to do in this way: ubuntu-app-launch dialer-app tel:///###-###-####


1

debsums can help you out quite a bit. The oft-quoted debsums -ce will list configuration files which have been changed, from the pool of tracked configuration files; so it's not a complete solution. Instead, you should run debsums -e, and ignore any file which is marked "OK". Anything else — which includes files listed by debsums as "FAILED", and files not ...


0

Try setting your Wired MTU to something really high (like >8192) - I know there was a bug for some Atheros cards (especially AR8161). This is a temporary solution though, and doesn't fix the issue, just postpones it. I am working on a patch for Ubuntu 16.04 - will let you know if fixed :)


0

Ifdown ethx ; ifup ethx Should do it "service networking restart" isnt working in ubuntu, because other services are dependent on it, theres a more complete answer here http://askubuntu.com/questions/561046/why-is-service-networking-restart-not-working-in-14-04


1

On a hardened server, you want as few setuid/setgid binaries, especially such that can be run by a user account that does not need the particular tool, as possible - for one simple reason: You do not absolutely trust these tools to police what someone does with them. Bugs in such programs or their dependencies that allowed users to circumvent such policing ...


0

I faced similar problem. I had ubuntu as guest and Windows 7 as host. I selected NAT and Bridge both but could not succeed. I, finally selected NAT, and checked my browser proxy settings. It was a lot of hit and trials but finally I'm happy. Thanks to somebody's suggestion. I was going mad & literally had to track packets using traceroute. To change ...


0

PHP is trying to use different socket then the one on which MySQL is listening. To see on which socket is MySQL listening, run: mysqld --verbose --help|grep ^socket socket /var/run/mysqld/mysqld.sock To see what socket PHP tries to use, you can check output of script <?php phpinfo(); ?>, it is variable mysqli.default_socket. You can ...


1

I have figured out the culprit. Doing cat /proc/acpi/wakeup, and disabling the *enabled devices one by one (using, e.g., sudo echo 'DEVABBRV' > /proc/acpi/wakeup, where DEVABBRV is the device abbreviation listed in the cat output above), it turns out that LID0 is waking up the machine "prematurely". This is perhaps due to some non-standard, proprietary ...


3

Depending on your users, that may be a good or bad idea. The su command can be used by ordinary users to log into any other account, not just the superuser's, provided they know the password of the account. This is useful e.g. when two users are cooperating on a project, one of them (userA) is logged in and they need to read a file only accessible to the ...


1

Inspect /var/log/pm*. Read man pm-is-supported


15

The purpose is to prevent ordinary users from running the su command (su is similar to sudo, the difference being that sudo executes one command, su starts a new session as a new user, which lasts until that user runs exit) The default mode of su is 4755 or rwsr-xr-x, the "s" means that the command is set-UID (which means that it always runs as the user who ...


0

You are probably using Network-Manager so that would use: sudo service network-manager restart When in doubt try: sudo ifdown <interface> sudo ifup <interface> That should work, if doing this over ssh combine the commands: sudo ifdown <interface> && sudo ifup <interface> Give that a try. Looks like this issue is ...


4

To install skype you need to Enable The Canonical Partners Repository open the terminal and type the following command: sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" To perform an installation of i386 package on 64-bit system we need to enable multi-architecture to support both platforms. sudo dpkg --add-...


0

Ubuntu has a built in installer for many "packages" or software including Skype. Run this code in the terminal to install with automatic detection of your Ubuntu version: sudo apt-get update sudo apt-get install skype This will ask for your account password similar to how Mac or PC requires permission from an admin account to install software. You can ...


0

My mistake appears to be routing all of the traffic over the private network, and via eth1 - xenbr1 - dummy0. eth1 should be used for the private network only, and eth0 used for general traffic. So from eth1 on the virtual machine, remove the gateway in /etc/network/interfaces: iface eth1 inet static address 192.168.122.6 netmask 255.255....


0

run this : echo 'echo "welcom"' >> $HOME/.bashrc


0

I am also running an asus ROG G751 with GTX 965M, and I was also having these problems. I fixed it by disabling Secure Boot. Restart and F2 to enter Bios Go to Security tab and select the Secure Boot option menu Disable Secure Boot, F10 to save and exit


2

Gnash can't work with Chromium. Uninstall it first before doing the following installation. The solution is to install Google's PepperFlash plugin (disclaimer: nonfree) and the freshplayer component: sudo apt install pepperflashplugin-nonfree browser-plugin-freshplayer-pepperflash


1

From the CLI, as requested: gsettings set org.gnome.nautilus.preferences enable-delete true Explanation requested from OP: Nautilus is a part of GNOME, so it stores preferences under org.gnome.nautilus.preferences. From there, just had to look at the list. Also, you can get all Nautilus-related settings by gsettings list-recursively | grep nautilus.


2

For displaying message before successful login: vim /etc/yourmessage.txt <yourcontent here> save/exit vim /etc/ssh/sshd_config Banner /etc/yourmessage.txt Displaying message after users successfully login:- #create the file /etc/motd vim /etc/motd <your content here> save/exit you have to install openssh-server on your server if ...


1

I wish to thank @garethTheRed for suggesting to use systemd instead of update-rc.d The URL Writing basic systemd service files contains this answer. Step 1: I created this file (note location) which essentially fires a bash process with an extended argument. You could fire your own command which could be different from bash. [root@y500-fedora ~]# cat /usr/...



Top 50 recent answers are included