Tag Info

New answers tagged

0

Use the env program for the command in the launcher (setting the Exec key in the according .desktop file): env LANG=en_US.UTF-8 emacs


0

If you're only adding one group, I used the following: exec sg <new group name> newgrp `id -gn` This is a variation on Legooolas's two-layer newgrp trick, but it is in one line and doesn't require you to manually enter your primary group. 'sg' is newgrp but accepting a command to execute with the new group ID. The 'exec' means that the new shell ...


1

I am assuming you have a Raspberry using raspian, which, to the best of my knowledge, has not yet moved on to systemd. In this case, the answer is as follows. First, you can determine which system is currently running by means of the command: sudo service --status-all You will get a list somewhat like this: [ + ] triggerhappy [ + ] udev [ ? ...


0

After an unsuccessful login you could look into ~/.xsession-errors. It usually shows what went wrong. Looking into ~/.xsession-errors won't help though if your home directory is read-only, or full, or you ran into your quota. In this case you would get returned to the login screen quick, too, because X needs write access to your ~/.Xauthority file. Quota ...


2

This should get you going: #!/bin/sh MOUNTPOINTS="/ /home" THRESHOLD=90 for MOUNT in ${MOUNTPOINTS}; do CURRENT=$(df ${MOUNT} | grep / | awk '{ print $5}' | sed 's/%//g') if [ "${CURRENT}" -gt "${THRESHOLD}" ] ; then mail -s 'Disk Space Alert' root << EOF Your ${MOUNT} partition remaining free space is critically low. Used: ${CURRENT}% ...


0

Answer update-alternatives only works if a package explicitly uses the alternatives system. gnupg and gnupg2 don't. Background Usually the reason is that the user-interface differs too much so that scripts using the one tool won't work anymore if suddenly the other tools runs instead. A typical example here is markdown. Each markdown implementation in ...


1

sudo nano /etc/rc.local Here is where you insert batch file or commands to run on boot. I auto run Openvpn on boot too :)


2

Yes, it is possible to install the Java Runtime Environment and the Java web browser plugin in Linux. However, as you noticed, the proprietary Oracle JRE is not available in the Debian or Ubuntu repositories. Oracle revoked the ability for Linux distributions to redistribute Java packages in 2011 (see Ubuntu's and Debian's notifications). This leaves you ...


0

Use sudo command it worked for me. $sudo curlftpfs -o allow_other username:password@ftp.server.com /mnt/myftp/


0

Have you updated your package index with apt-get update? Looks like it's failing when it's trying to overwrite '/usr/share/mime/packages/gramps.xml', which is also in package python-gramps 4.1.1 You could try backing up the /usr/share/mime/packages/gramps.xml file in case you want to keep it, or just delete it, and then see if it will install? I would ...


2

If you've got a disk in the drive, and it's mounted (maybe automatically mounted at boot) then anything that searches the filesystem (backup prog, indexer, antivirus - could be there even on linux) could search the drive & spin it up. If you're not using it at all why not take out the disk? If it still makes "spin up" noises with no disk in it, I think ...


0

Actually it was not systemd but Gnome's NetworkManager. I used the hints on this site to create a small script in /etc/NetworkManager/dispatcher.d that switches on power management when the interface comes up.


0

Use mimeopen tool. It provides you nice options and the saved option is written to ~/.local/share/applications/defaults.list so that your selected option is saved as default. mimeopen -d /path/to/myfile Reference: https://wiki.archlinux.org/index.php/default_applications


0

It was that the loopback network device was disabled. Enabling it solved this issue


0

Found a solution: activate :automatic_image_sizes set :css_dir, '/data.main/css' set :js_dir, '/data.main/js' set :images_dir, '/data.main/img' configure :build do end Fixes it...


0

Try typing STARTX See what happens I'll assume you've not try that since you did not mention anything you've tried to solve the problem. So in case the STARTX didn't solve your issue From the same ttyl1 apt-get update apt-get upgrade -y apt-get install -f gdm3 I recommend you check this out. GDM3


1

Strange, I can run exactly the same wifi adapter on a Debian VM without hitches. It is indeed the right driver. You may try to reload the driver, rmmod rtl8192u modprobe rtl8192cu iwconfig or you may check whether the device is correctly identified by means of iw list Also, you may search for error messages, dmesg -T | grep rtl8192 ...


0

The famous answer of "it depends" applies here... Mostly, it'll depend on what user you ran the command as and if you ran the command exactly as you've written it above. Check the very top of the output - I'm hoping you'll see something like: . find: exec: No such file or directory find: chmod: No such file or directory find: 755: No such file or directory ...


0

During windows installation : Under the tab " Which type of installation do you want ?" Choose - Custom (advanced) Then choose the required disk from the available list, and on the same screen there is a option called "Drive options(advanced)" Choosing that will list few options - Delete, Format, Extent and New, Now choose delete/format based on ...


0

I am just about to install Ubuntu 14.04 on an external HDD with EFI boot partition. I will jump to the point that I seem wasn't covered in this thread thus far. When installing Ubuntu through the advanced "something else" option you don't only need to choose the external HDD as installation device for the bootloader and create/assign an EFI partition BUT ...


0

I came across the same issue and ended up writing this to make it work painlessly across different systems (debian, ubuntu currently): Run make_chroot_initrd script to create a new chroot-enabled initrd image from the existing one: # ./make_chroot_initrd /chroot/trusty/boot/initrd.img-3.13.0-32-generic making new initrd: ...


1

The settings in /etc/security/limits.conf are not working inside the chroot because there is no program using pam_limits to set them. They work when you use sudo, because sudo's PAM configuration does call pam_limits. The obvious answer is to call something inside the chroot that uses pam_limits, like "su", as they say here: ...


0

I've found that it works best to set environment variable via PAM. For modern Linux distos, this means /etc/environment or $HOME/.pam_environment (see man pam_env). As best I can tell, these files don't support variables internally, i.e. you can't use $HOME inside of /etc/environment to set the variable for all users. Instead, I just create a ...


0

You probably need a driver and Wheezy tends to lag on a lot software. Verify that you have the latest version of CUPS available from the Wheezy repository (using Apper). If it doesn't contain support for the HL-5250DN, you can download the driver from Brother here.


0

You seem to have a incorrectly formed pin. Pin: o=Raspberry Pi Foundation,n=wheezy,l=Raspberry Pi Foundation,c=main Try this instead. Pin: release o=Raspberry Pi Foundation,n=wheezy,l=Raspberry Pi Foundation,c=main


1

Your problem is most probably the display manager. XDM and lightdm see themselves not as login shell and therefore do not source /etc/profile or ~/.profile. Other display managers as Slim, KDM or GDM do source those files. I suggest you switch to one of those. See also https://wiki.debian.org/DisplayManager


0

The problem was caused by the malfunctionning onboard LAN controller. It worked enough for DHCP to work, but as soon as serious data was transfered, it failed and took the complete system with it.


0

Have you tried to restart the bluetooth service with: sudo systemctl restart bluetooth.service after wake-up? If that works you can trigger restart with something like this: http://askubuntu.com/questions/308067/how-to-run-a-script-after-or-before-hibernate


0

As Marius notes, you could simply move the disk (or an image of the disk) to the new hardware, and in most cases there would be very little left to update manually. But if you want a fresh install, running debootstrap is the method I use when building a server: I attach the new drive to my main system, configure the partition table, configure LVM, format ...


1

Using the proprietary graphics driver makes a big difference in performance in Linux compared to using the built-in open source graphics driver. In one of your questions you mentioned that you are running Ubuntu. In Ubuntu run the following command from the terminal to identify the recommended proprietary graphics driver to install: ubuntu-drivers devices ...


1

If you want to upgrade a specific package in Debian 7 (Wheezy), you have the option to use backports by simply adding to your /etc/apt/sources.list the following lines: deb http://cloudfront.debian.net/debian wheezy-backports main deb-src http://cloudfront.debian.net/debian wheezy-backports main Then, for installing/upgrading git, run: $ aptitude update ...


0

I had directory permissions set too narrowly on the host, I chmod 755 <dir> to fix it. In your case, the original sudo ls should have worked, but it's possible that you have root squashed (requests made by root on the client are squashed to nobody on the host).


0

The command-not-found package gives you hints about potential commands and the name of the debian package. It works by typing the command in the bash shell and looking at its output. For example if the command name is known: zer@ivy:~ 10:45 $ zsh5 The program 'zsh5' is currently not installed. To run 'zsh5' please ask your administrator to install the ...


0

Try this. instead of auto eth0 try auto eth0 allow-hotplug eth0 allow-hotplug starts the interface when the kernel detects a hotplug event from the interface while auto starts the interface on the system start. I'm sure but I think a DHCP release is a hotplug event. Hope this was helpful.


0

In order to reduce bandwidth use of the Internet, you need to force all traffic through an intermediate that filters and caches. A single computer can do that if it has two network cards, one connected to the inner network and the other probably goes straight to your router. The inner network should consist of a switch with the PC, printer, Wi-Fi access ...


0

Reinstalling / uninstalling/ purging did not work for me. This did: This worked for me: sudo nano /etc/init.d/dovecot put exit 0 in the top line (you may put it on 2nd line after comment) save, and try to aptitude-remove to remove your broken installation :-)


4

What you are trying to do isn't really something that the built-in resolver libraries were designed to handle. (ie use a set of DNS servers only for a specific sub-domain). The built in resolver only skips to another server when communication with the server fails, not when the server reports that a record doesn't exist. A way to handle this might be to ...


0

There was a permission problem. I did a sudo chmod 744 on the file and the link showing itself in the menu bar. Thanks


0

I ran into this same issue and had some problems getting the 32-bit libs installed on Wheezy 7.6. I finally managed to resolve it by targetting 32-bit libgcc1 explicitly: sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install libgcc1:i386 This will add libgcc_s.so.1 to /usr/lib32/



Top 50 recent answers are included